[ARM] length pop* pattern in epilogue correctly
[gcc.git] / gcc / ChangeLog
1 2016-06-11 Jiong Wang <jiong.wang@arm.com>
2
3 PR target/71061
4 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
5 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
6 length for pop patterns.
7 (arm_attr_length_push_multi): Update comments.
8 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
9 attribute.
10 (*pop_multiple_with_writeback_and_return): Likewise.
11 (*pop_multiple_with_return): Likewise.
12
13 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
14
15 PR middle-end/71310
16 * fold-const.c (optimize_bit_field_compare): Don't try to use
17 word_mode unconditionally for reading the bit field, look at
18 DECL_BIT_FIELD_REPRESENTATIVE instead.
19
20 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
21
22 PR middle-end/71478
23 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
24 vector integer type.
25
26 2016-06-10 Jakub Jelinek <jakub@redhat.com>
27
28 PR middle-end/71494
29 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
30 without LABEL_DECL, set *handled_ops_p to false instead of true.
31
32 2016-06-10 Martin Sebor <msebor@redhat.com>
33
34 PR c/71392
35 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
36 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
37 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
38 them.
39 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
40 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
41 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
42 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
43 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
44 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
45 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
46 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
47
48 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
49
50 * config/arm/arm.h (pool_vector_label,
51 return_used_this_function): Remove.
52
53 2016-06-10 Jeff Law <law@redhat.com>
54
55 PR tree-optimization/71335
56 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
57 zero length paths here.
58 (convert_and_register_jump_thread_path): Remove hacks related to
59 duplicated blocks in the jump thread path.
60 (fsm_find_control_statement_thread_paths): Avoid putting the same
61 block on the thread path twice, but ensure the thread path is
62 unchanged from the caller's point of view.
63
64 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
65
66 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
67 * predict.def (PRED_LOOP_BRANCH): Remove.
68
69 2016-06-10 David Malcolm <dmalcolm@redhat.com>
70
71 * Makefile.in (OBJS): Add ggc-tests.o.
72 (GTFILES): Add ggc-tests.c.
73 * ggc-tests.c: New file.
74 * selftest-run-tests.c (selftest::run_tests): Call
75 selftest::ggc_tests_c_tests.
76 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
77
78 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
79
80 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
81
82 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
83
84 PR sanitizer/71480
85 * varasm.c (place_block_symbol): Adjust alignment for asan protected
86 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
87
88 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
89
90 * profile.c: Include cfgloop.h.
91 (branch_prob): Compute estimated number of iterations.
92 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
93 recompute estimate number of iterations from profile.
94
95 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
96
97 PR inline-asm/68843
98 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
99 must be grouped on top of stack. Don't force early clobber
100 on ordinary reg outputs.
101
102 2016-06-10 Richard Biener <rguenther@suse.de>
103
104 * targhooks.c (default_builtin_vectorization_cost): Adjust
105 vec_construct cost.
106
107 2016-06-10 Richard Biener <rguenther@suse.de>
108
109 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
110 to fold the RHS to a constant if possible.
111
112 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
113
114 PR middle-end/71373
115 * tree-nested.c (convert_nonlocal_omp_clauses)
116 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
117 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
118 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
119
120 * gimplify.c (gimplify_adjust_omp_clauses): Discard
121 OMP_CLAUSE_TILE.
122 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
123
124 * omp-low.c (scan_sharing_clauses): Don't expect
125 OMP_CLAUSE__CACHE_.
126
127 2016-06-10 Alan Hayward <alan.hayward@arm.com>
128
129 PR tree-optimization/71407
130 PR tree-optimization/71416
131 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
132 BIT_FIELD_REF type.
133
134 2016-06-10 Richard Biener <rguenther@suse.de>
135
136 PR middle-end/71477
137 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
138
139 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
140
141 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
142
143 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
144 Jiong Wang <jiong.wang@arm.com>
145
146 PR rtl-optimization/70751
147 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo spilled
148 into memory.
149
150 2016-06-09 Jonathan Yong <10walls@gmail.com>
151
152 Revert:
153 2015-09-21 Jonathan Yong <10walls@gmail.com>
154 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
155 sysroot/usr/lib/32api for additional win32 libraries,
156 fixes failing Cygwin bootstrapping.
157
158 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
159
160 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
161 delete.
162
163 2016-06-09 David Malcolm <dmalcolm@redhat.com>
164
165 PR bootstrap/71471
166 * pretty-print.c (pp_indent): Specify that %p is printed in a
167 host-dependent manner.
168 (test_pp_format): Remove the test for %p.
169
170 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
171
172 * config/mips/mips.c (mips_output_jump): Fix formatting.
173
174 2016-06-09 Richard Biener <rguenther@suse.de>
175
176 PR tree-optimization/71462
177 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
178 removed blocks.
179
180 2016-06-09 Martin Liska <mliska@suse.cz>
181
182 * predict.c (dump_prediction): Add new argument.
183 (enum predictor_reason): New enum.
184 (struct predictor_hash): New struct.
185 (predictor_hash::hash): New function.
186 (predictor_hash::equal): Likewise.
187 (not_removed_prediction_p): New function.
188 (prune_predictions_for_bb): Likewise.
189 (combine_predictions_for_bb): Prune predictions.
190
191 2016-06-09 Martin Liska <mliska@suse.cz>
192
193 * predict.c (filter_predictions): New function.
194 (remove_predictions_associated_with_edge): Use the filter
195 function.
196 (equal_edge_p): New function.
197
198 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
199
200 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
201 Correct usage of @samp vs @option, add @samp where appropriate.
202 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
203 Add armv6s-m and document it, as it is no official ARM name.
204
205 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
206
207 * ifcvt.c (struct noce_if_info): Add transform_name field.
208 (noce_try_move): Set if_info->transform_name to the function name.
209 (noce_try_ifelse_collapse): Likewise.
210 (noce_try_store_flag): Likewise.
211 (noce_try_inverse_constants): Likewise.
212 (noce_try_store_flag_constants): Likewise.
213 (noce_try_addcc): Likewise.
214 (noce_try_store_flag_mask): Likewise.
215 (noce_try_cmove): Likewise.
216 (noce_try_cmove_arith): Likewise.
217 (noce_try_minmax): Likewise.
218 (noce_try_abs): Likewise.
219 (noce_try_sign_mask): Likewise.
220 (noce_try_bitop): Likewise.
221 (noce_convert_multiple_sets): Likewise.
222 (noce_process_if_block): Print if_info->transform_name to
223 dump_file if transformation succeeded.
224
225 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
226
227 * config/arm/cortex-a57.md (cortex_a57_alu):
228 Handle csel type.
229
230 2016-06-08 Martin Sebor <msebor@redhat.com>
231 Jakub Jelinek <jakub@redhat.com>
232
233 PR c++/70507
234 PR c/68120
235 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
236 BUILT_IN_MUL_OVERFLOW_P): New builtins.
237 * builtins.c: Include gimple-fold.h.
238 (fold_builtin_arith_overflow): Handle
239 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
240 (fold_builtin_3): Likewise.
241 * doc/extend.texi (Integer Overflow Builtins): Document
242 __builtin_{add,sub,mul}_overflow_p.
243
244 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
245
246 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
247 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
248
249 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
250
251 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
252 Rewrite, looking one level down for records and arrays.
253
254 2016-06-08 David Malcolm <dmalcolm@redhat.com>
255
256 * pretty-print.c: Include "selftest.h".
257 (pp_format): Fix comment.
258 (identifier_to_locale): Likewise.
259 (selftest::test_basic_printing): New function.
260 (selftest::assert_pp_format): New function.
261 (selftest::test_pp_format): New function.
262 (selftest::pretty_print_c_tests): New function.
263 * selftest-run-tests.c (selftest::run_tests): Call
264 selftest::pretty_print_c_tests.
265 * selftest.h (pretty_print_c_tests): New declaration.
266
267 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
268
269 * invoke.texi (max-loop-headers-insns): Document.
270 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
271 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
272 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
273
274 2016-06-08 Richard Biener <rguenther@suse.de>
275
276 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
277 on strided SLP loads and fall back to scalar loads in case
278 we can't chunk them.
279
280 2016-06-08 Richard Biener <rguenther@suse.de>
281
282 PR tree-optimization/71452
283 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
284 type used for the SSA rewrite has enough precision to cover
285 the dynamic type of the location.
286
287 2016-06-08 Jakub Jelinek <jakub@redhat.com>
288 Richard Biener <rguenther@suse.de>
289
290 PR c++/71448
291 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
292 the same as DECL_P (base0) for indirect_base0. Use equality_code
293 in one further place.
294
295 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
296
297 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
298 to one word if the field is known to overlap other words.
299 (extract_bit_field_1): Likewise.
300 (store_split_bit_field): Remove compensating code.
301 (extract_split_bit_field): Likewise.
302
303 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
304
305 PR debug/71432
306 PR ada/71413
307 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
308
309 2016-06-08 Jiong Wang <jiong.wang@arm.com>
310
311 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
312 VDQF.
313 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
314 (arch64_addpv4sf): Delete.
315 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
316 "gen_aarch64_addpv4sf".
317 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
318 builtin.
319 (vpadds_f32): Likewise.
320 (vpaddq_f32): Likewise.
321 (vpaddq_f64): Likewise.
322
323 2016-06-08 Jiong Wang <jiong.wang@arm.com>
324
325 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
326 VALLF.
327 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
328 to VALLF. Rename to "fabd<mode>3".
329 "*fabd_scalar<mode>3): Delete.
330 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
331 Use builtin.
332 (vabdd_f64): Likewise.
333 (vabd_f32): Likewise.
334 (vabd_f64): Likewise.
335 (vabdq_f32): Likewise.
336 (vabdq_f64): Likewise.
337
338 2016-06-08 Jiong Wang <jiong.wang@arm.com>
339
340 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
341 VALLF.
342 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
343 "aarch64_rsqrts<mode>".
344 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
345 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
346 builtin.
347 (vrsqrtsd_f64): Likewise.
348 (vrsqrts_f32): Likewise.
349 (vrsqrts_f64): Likewise.
350 (vrsqrtsq_f32): Likewise.
351 (vrsqrtsq_f64): Likewise.
352
353 2016-06-08 Jiong Wang <jiong.wang@arm.com>
354
355 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
356 VALLF.
357 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
358 "aarch64_rsqrte<mode>".
359 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
360 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
361 builtin.
362 (vrsqrted_f64): Likewise.
363 (vrsqrte_f32): Likewise.
364 (vrsqrte_f64): Likewise.
365 (vrsqrteq_f32): Likewise.
366 (vrsqrteq_f64): Likewise.
367
368 2016-06-08 Jiong Wang <jiong.wang@arm.com>
369
370 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
371 (ucvtf): Likewise.
372 (fcvtzs): Likewise.
373 (fcvtzu): Likewise.
374 * config/aarch64/aarch64-simd.md
375 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
376 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
377 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
378 Use builtin.
379 (vcvt_n_f32_u32): Likewise.
380 (vcvt_n_s32_f32): Likewise.
381 (vcvt_n_u32_f32): Likewise.
382 (vcvtq_n_f32_s32): Likewise.
383 (vcvtq_n_f32_u32): Likewise.
384 (vcvtq_n_f64_s64): Likewise.
385 (vcvtq_n_f64_u64): Likewise.
386 (vcvtq_n_s32_f32): Likewise.
387 (vcvtq_n_s64_f64): Likewise.
388 (vcvtq_n_u32_f32): Likewise.
389 (vcvtq_n_u64_f64): Likewise.
390 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
391 (VSDQ_SDI): Likewise.
392 (fcvt_target): Support V4DI, V4SI and V2SI.
393 (FCVT_TARGET): Likewise.
394
395 2016-06-08 Jiong Wang <jiong.wang@arm.com>
396
397 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
398 (TYPES_BINOP_SUS): Likewise.
399 (aarch64_simd_builtin_data): Update include file name.
400 (aarch64_builtins): Likewise.
401 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
402 for conversion between scalar float-point and fixed-point.
403 (ucvtf): Likewise.
404 (fcvtzs): Likewise.
405 (fcvtzu): Likewise.
406 * config/aarch64/aarch64.md
407 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
408 pattern for conversion between scalar float to fixed-pointer.
409 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
410 (UNSPEC_FCVTZS): New UNSPEC enumeration.
411 (UNSPEC_FCVTZU): Likewise.
412 (UNSPEC_SCVTF): Likewise.
413 (UNSPEC_UCVTF): Likewise.
414 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
415 Use builtin.
416 (vcvtd_n_f64_u64): Likewise.
417 (vcvtd_n_s64_f64): Likewise.
418 (vcvtd_n_u64_f64): Likewise.
419 (vcvtd_n_f32_s32): Likewise.
420 (vcvts_n_f32_u32): Likewise.
421 (vcvtd_n_s32_f32): Likewise.
422 (vcvts_n_u32_f32): Likewise.
423 * config/aarch64/iterators.md (fcvt_target): Support integer to float
424 mapping.
425 (FCVT_TARGET): Likewise.
426 (FCVT_FIXED2F): New iterator.
427 (FCVT_F2FIXED): Likewise.
428 (fcvt_fixed_insn): New define_int_attr.
429
430 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
431
432 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
433 some statements was removed.
434
435 2016-06-08 Alan Hayward <alan.hayward@arm.com>
436
437 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
438 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
439 (vect_can_advance_ivs_p): likewise.
440 (vect_update_ivs_after_vectorizer): likewise.
441 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
442 (vect_analyze_scalar_cycles_1): likewise.
443 (vect_analyze_loop_operations): likewise.
444 (report_vect_op): likewise.
445 (vect_is_slp_reduction): likewise.
446 (vect_is_simple_reduction): likewise.
447 (get_initial_def_for_induction): likewise.
448 (vect_transform_loop): likewise.
449 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
450 (vect_recog_sad_pattern): likewise.
451 (vect_recog_widen_sum_pattern): likewise.
452 (vect_recog_widening_pattern): likewise.
453 (vect_recog_divmod_pattern): likewise.
454 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
455 (vect_analyze_slp_instance): likewise.
456 (vect_transform_slp_perm_load): likewise.
457 (vect_schedule_slp_instance): likewise.
458
459 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
460
461 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
462 (return_prediction): PRED_CONST_RETURN predict return as not taken.
463 * predict.def (PRED_CONTINUE): Change hitrate 50->67
464 (PRED_LOOP_BRANCH): Document predictor as broken.
465 (PRED_LOOP_EXIT): Change hitrate 91->92.
466 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
467 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
468 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
469 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
470 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
471 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
472 (PRED_CALL): Chane hitrate 71->67.
473 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
474 (PRED_GOTO): Document as unused right now.
475 (PRED_CONST_RETURN): Change hitrate 67->69
476 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
477 (PRED_NULL_RETURN): Change hitrate 91->90.
478 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
479 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
480 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
481
482 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
483
484 * config/rs6000/altivec.h: Add __builtin_vec_mul.
485 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
486 special case Altivec builtin.
487 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
488 VSX_BUILTIN_VEC_MUL (replaced with special case code).
489 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
490 code for ALTIVEC_BUILTIN_VEC_MUL.
491 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
492 for __builtin_vec_mul.
493
494 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
495
496 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
497 -mno-htm.
498
499 2016-06-07 David Malcolm <dmalcolm@redhat.com>
500
501 * spellcheck.c (selftest::test_find_closest_string): New function.
502 (spellcheck_c_tests): Call the above.
503
504 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
505
506 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local
507 variable.
508
509 2016-06-07 Jakub Jelinek <jakub@redhat.com>
510
511 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
512 Yv=Yv,C alternatives.
513
514 2016-06-07 Richard Biener <rguenther@suse.de>
515
516 PR c/61564
517 * common.opt (ffast-math): Make Optimization.
518
519 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
520 Prachi Godbole <prachi.godbole@imgtec.com>
521
522 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
523 `fabs' and `fneg' type attributes.
524 (p5600_fpu_fabs): Add `fmove' to the comment.
525
526 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
527
528 * gimple.c: Include builtins.h
529 (gimple_inexpensive_call_p): New function.
530 * gimple.h (gimple_inexpensive_call_p): Declare.
531 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
532 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
533 fix formatting.
534
535 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
536
537 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
538 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
539 warning_at_rich_loc, warning_n, pedwarn, permerror,
540 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
541 sorry, fatal_error, internal_error, internal_error_no_backtrace):
542 Use the above.
543
544 2016-06-07 Richard Biener <rguenther@suse.de>
545
546 PR tree-optimization/71428
547 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
548 BIT_FIELD_REF op vs. load.
549
550 2016-06-07 Richard Biener <rguenther@suse.de>
551
552 PR middle-end/71423
553 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
554 for signed ops.
555
556 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
557
558 * config/pa/pa.md (call): Generate indirect long calls to non-local
559 functions on TARGET_64BIT.
560 (call_value): Likewise.
561
562 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
563
564 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
565 pattern and subsequent splitters.
566 (call_val_reg_64bit_post_reload): Likewise.
567
568 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
569
570 PR middle-end/71408
571 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
572 propagate_op_to_single_use.
573
574 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
575
576 PR middle-end/71281
577 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
578
579 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
580
581 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
582 (enum x86_dirflag_state): New enum.
583 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
584 (machine_function): Remove needs_cld.
585 (ix86_current_function_needs_cld): Remove.
586 * config/i386/i386.c (ix86_set_func_type): Set
587 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
588 (ix86_expand_prologue): Do not emit CLD here.
589 (ix86_dirflag_mode_needed): New function.
590 (ix86_dirflag_mode_entry): Ditto.
591 (ix86_mode_needed): Handle X86_DIRFLAG entity.
592 (ix86_mode_after): Ditto.
593 (ix86_mode_entry): Ditto.
594 (ix86_mode_exit): Ditto.
595 (ix86_emit_mode_set): Ditto.
596 * config/i386/i386.md (strmov_singleop): Set
597 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
598 Do not set ix86_current_function_needs_cld.
599 (rep_mov): Ditto.
600 (strset_singleop): Ditto.
601 (rep_stos): Ditto.
602 (cmpstrnqi_nz_1): Ditto.
603 (cmpstrnqi_1): Ditto.
604 (strlenqi_1): Ditto.
605
606 2016-06-06 Jakub Jelinek <jakub@redhat.com>
607
608 PR tree-optimization/71259
609 * tree-vect-slp.c (vect_get_constant_vectors): For
610 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
611 one for constant op, and use COND_EXPR for non-constant.
612
613 2016-06-06 David Malcolm <dmalcolm@redhat.com>
614
615 * Makefile.in (OBJS): Add function-tests.o,
616 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
617 selftest-run-tests.o.
618 (OBJS-libcommon): Add selftest.o.
619 (OBJS-libcommon-target): Add selftest.o.
620 (all.internal): Add "selftest".
621 (all.cross): Likewise.
622 (selftest): New phony target.
623 (s-selftest): New target.
624 (selftest-gdb): New phony target.
625 (COLLECT2_OBJS): Add selftest.o.
626 * bitmap.c: Include "selftest.h".
627 (selftest::test_gc_alloc): New function.
628 (selftest::test_set_range): New function.
629 (selftest::test_clear_bit_in_middle): New function.
630 (selftest::test_copying): New function.
631 (selftest::test_bitmap_single_bit_set_p): New function.
632 (selftest::bitmap_c_tests): New function.
633 * common.opt (fself-test): New.
634 * diagnostic-show-locus.c: Include "selftest.h".
635 (make_range): New function.
636 (test_range_contains_point_for_single_point): New function.
637 (test_range_contains_point_for_single_line): New function.
638 (test_range_contains_point_for_multiple_lines): New function.
639 (assert_eq): New function.
640 (test_get_line_width_without_trailing_whitespace): New function.
641 (selftest::diagnostic_show_locus_c_tests): New function.
642 * et-forest.c: Include "selftest.h".
643 (selftest::test_single_node): New function.
644 (selftest::test_simple_tree): New function.
645 (selftest::test_disconnected_nodes): New function.
646 (selftest::et_forest_c_tests): New function.
647 * fold-const.c: Include "selftest.h".
648 (selftest::assert_binop_folds_to_const): New function.
649 (selftest::assert_binop_folds_to_nonlvalue): New function.
650 (selftest::test_arithmetic_folding): New function.
651 (selftest::fold_const_c_tests): New function.
652 * function-tests.c: New file.
653 * gimple.c: Include "selftest.h".
654 Include "gimple-pretty-print.h".
655 (selftest::verify_gimple_pp): New function.
656 (selftest::test_assign_single): New function.
657 (selftest::test_assign_binop): New function.
658 (selftest::test_nop_stmt): New function.
659 (selftest::test_return_stmt): New function.
660 (selftest::test_return_without_value): New function.
661 (selftest::gimple_c_tests): New function.
662 * hash-map-tests.c: New file.
663 * hash-set-tests.c: New file.
664 * input.c: Include "selftest.h".
665 (selftest::assert_loceq): New function.
666 (selftest::test_accessing_ordinary_linemaps): New function.
667 (selftest::test_unknown_location): New function.
668 (selftest::test_builtins): New function.
669 (selftest::test_reading_source_line): New function.
670 (selftest::input_c_tests): New function.
671 * rtl-tests.c: New file.
672 * selftest-run-tests.c: New file.
673 * selftest.c: New file.
674 * selftest.h: New file.
675 * spellcheck.c: Include "selftest.h".
676 (selftest::levenshtein_distance_unit_test_oneway): New function,
677 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
678 (selftest::levenshtein_distance_unit_test): Likewise.
679 (selftest::spellcheck_c_tests): Likewise.
680 * toplev.c: Include selftest.h.
681 (toplev::run_self_tests): New.
682 (toplev::main): Handle -fself-test.
683 * toplev.h (toplev::run_self_tests): New.
684 * tree.c: Include "selftest.h".
685 (selftest::test_integer_constants): New function.
686 (selftest::test_identifiers): New function.
687 (selftest::test_labels): New function.
688 (selftest::tree_c_tests): New function.
689 * tree-cfg.c: Include "selftest.h".
690 (selftest::push_fndecl): New function.
691 (selftest::test_linear_chain): New function.
692 (selftest::test_diamond): New function.
693 (selftest::test_fully_connected): New function.
694 (selftest::tree_cfg_c_tests): New function.
695 * vec.c: Include "selftest.h".
696 (selftest::safe_push_range): New function.
697 (selftest::test_quick_push): New function.
698 (selftest::test_safe_push): New function.
699 (selftest::test_truncate): New function.
700 (selftest::test_safe_grow_cleared): New function.
701 (selftest::test_pop): New function.
702 (selftest::test_safe_insert): New function.
703 (selftest::test_ordered_remove): New function.
704 (selftest::test_unordered_remove): New function.
705 (selftest::test_block_remove): New function.
706 (selftest::reverse_cmp): New function.
707 (selftest::test_qsort): New function.
708 (selftest::vec_c_tests): New function.c.
709 * wide-int.cc: Include selftest.h and wide-int-print.h.
710 (selftest::from_int <wide_int>): New function.
711 (selftest::from_int <offset_int>): New function.
712 (selftest::from_int <widest_int>): New function.
713 (selftest::assert_deceq): New function.
714 (selftest::assert_hexeq): New function.
715 (selftest::test_printing <VALUE_TYPE>): New function template.
716 (selftest::test_ops <VALUE_TYPE>): New function template.
717 (selftest::test_comparisons <VALUE_TYPE>): New function template.
718 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
719 template.
720 (selftest::wide_int_cc_tests): New function.
721
722 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
723
724 PR middle-end/37780
725 * ifcvt.c (noce_try_ifelse_collapse): New function.
726 Declare prototype.
727 (noce_process_if_block): Call noce_try_ifelse_collapse.
728 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
729 (simplify_ternary_operation): Use the above to simplify
730 conditional CLZ/CTZ expressions.
731
732 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
733
734 PR middle-end/37780
735 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
736 define_insn_and_split.
737
738 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
739
740 PR middle-end/37780
741 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
742
743 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
744
745 PR c/24414
746 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
747 Implicitly clobber memory for basic asm with non-empty assembler
748 string. Use targetm.md_asm_adjust also here.
749 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
750 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
751 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
752 non-empty assembler string.
753 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
754 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
755 (decode_asm_operands): Handle basic asm in PARALLEL block.
756 (extract_insn): Handle basic asm in PARALLEL block.
757 * doc/extend.texi: Mention new behavior of basic asm.
758 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
759 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
760 branch_needs_nop_p): Use asm_noperands.
761
762 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
763
764 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
765 Include the M7 SPARC DFA scheduler.
766 New attribute v3pipe.
767 Annotate insns with v3pipe where appropriate.
768 Define cpu_feature vis4.
769 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
770 Add (V8QI "8") to vbits.
771 Add insns {add,sub}v8qi3
772 Add insns ss{add,sub}v8qi3
773 Add insns us{add,sub}{v8qi,v4hi}3
774 Add insns {min,max}{v8qi,v4hi,v2si}3
775 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
776 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
777 * config/sparc/niagara4.md: Add a comment explaining the
778 discrepancy between the documented latenty numbers and the
779 implemented ones.
780 * config/sparc/niagara7.md: New file.
781 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
782 supports SPARC5 and VIS 4.0 instructions.
783 * configure: Regenerate.
784 * config.in: Likewise.
785 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
786 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
787 TARGET_CPU_niagara7.
788 (ASM_CPU64_DEFAULT_SPEC): Likewise.
789 (CPP_CPU_SPEC): Handle niagara7.
790 (ASM_CPU_SPEC): Likewise.
791 * config/sparc/sparc-opts.h (processor_type): Add
792 PROCESSOR_NIAGARA7.
793 (mvis4): New option.
794 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
795 (AS_NIAGARA7_FLAG): Define.
796 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
797 (CPP_CPU64_DEFAULT_SPEC): Likewise.
798 (CPP_CPU_SPEC): Handle niagara7.
799 (ASM_CPU_SPEC): Likewise.
800 * config/sparc/sparc.c (niagara7_costs): Define.
801 (sparc_option_override): Handle niagara7 and adjust cache-related
802 parameters with better values for niagara cpus. Also support VIS4.
803 (sparc32_initialize_trampoline): Likewise.
804 (sparc_use_sched_lookahead): Likewise.
805 (sparc_issue_rate): Likewise.
806 (sparc_register_move_cost): Likewise.
807 (dump_target_flag_bits): Support VIS4.
808 (sparc_vis_init_builtins): Likewise.
809 (sparc_builtins): Likewise.
810 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
811 VIS4 4.0.
812 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
813 UltraSparc M7.
814 * config/sparc/sparc.opt (sparc_processor_type): New value
815 niagara7.
816 * config/sparc/visintrin.h (__attribute__): Prototypes for the
817 VIS4 builtins.
818 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
819 -mvis4.
820 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
821 VIS4 builtins.
822
823 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
824
825 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
826
827 2016-06-06 Richard Biener <rguenther@suse.de>
828
829 PR tree-optimization/71398
830 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
831 remove edges.
832
833 2016-06-05 James Bowman <james.bowman@ftdichip.com>
834
835 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
836 ft32_expand_prolog, ft32_expand_epilogue):
837 Handle pretend_args.
838 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
839 * config/ft32/ft32.md: Add pretend_returner.
840
841 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
842
843 PR target/71389
844 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
845 Copy op1 RTX to avoid invalid sharing.
846 (ix86_expand_vector_move_misalign): Ditto.
847
848 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
849
850 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
851 ATTRIBUTE_UNUSED.
852
853 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
854
855 * predict.c (predicted_by_loop_heuristics_p): New function.
856 (predict_iv_comparison): Use it.
857 (predict_loops): Walk from innermost loops; do not predict edges
858 leaving multiple loops multiple times; implement
859 PRED_LOOP_ITERATIONS_MAX heuristics.
860 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
861
862 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
863
864 * cfg.c (check_bb_profile): Do not report mismatched profiles when
865 only edges out of BB are EH edges.
866
867 2016-06-04 Martin Sebor <msebor@redhat.com>
868 Marcin Baczyński <marbacz@gmail.com>
869
870 PR c/48116
871 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
872 a void expression in a void function.
873
874 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
875
876 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
877 aux; dump reasons of decisions.
878 (should_duplicate_loop_header_p): Likewise.
879 (do_while_loop_p): Likewise.
880 (ch_base::copy_headers): Dump asi num insns duplicated.
881
882 2016-06-04 Jakub Jelinek <jakub@redhat.com>
883
884 PR tree-optimization/71405
885 * tree-ssa.c (execute_update_addresses_taken): For clobber with
886 incompatible type, build a new clobber with the right type instead
887 of building a VIEW_CONVERT_EXPR around it.
888
889 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
890
891 PR tree-optimization/52171
892 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
893 by_pieces_ninsns instead of move_by_pieces_ninsns.
894
895 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
896
897 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
898 for reg+reg addressing mode.
899
900 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
901
902 * rs6000-c.c (c/c-tree.h): Add #include.
903 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
904 in C++ when found in the base position of vec_ld or vec_st.
905
906 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
907
908 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
909 use of profile unless profile status is PROFILE_READ.
910 * profile.c (compute_branch_probabilities): Set profile status
911 only after reporting predictor hitrates.
912
913 2016-06-03 Joseph Myers <joseph@codesourcery.com>
914
915 PR target/71276
916 PR target/71277
917 * common.opt (ffp-int-builtin-inexact): New option.
918 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
919 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
920 (ceil@var{m}2): Document dependence on this option.
921 * ipa-inline-transform.c (inline_call): Handle
922 flag_fp_int_builtin_inexact.
923 * ipa-inline.c (can_inline_edge_p): Likewise.
924 * config/i386/i386.md (rintxf2): Do not test
925 flag_unsafe_math_optimizations.
926 (rint<mode>2_frndint): New define_insn.
927 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
928 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
929 for 387 instead of extending and truncating.
930 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
931 !flag_trapping_math instead of flag_unsafe_math_optimizations.
932 Change to frndint<mode>2_<rounding>.
933 (frndintxf2_<rounding>_i387): Likewise. Change to
934 frndint<mode>2_<rounding>_i387.
935 (<rounding_insn>xf2): Likewise.
936 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
937 !flag_trapping_math instead of flag_unsafe_math_optimizations for
938 x87. Test TARGET_ROUND || !flag_trapping_math ||
939 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
940 SSE. Use ROUND_NO_EXC in constant operand of
941 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
942 for 387 instead of extending and truncating.
943
944 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
945 Julia Koval <julia.koval@intel.com>
946
947 PR target/66960
948 PR target/67630
949 PR target/67634
950 PR target/67841
951 PR target/68037
952 PR target/68618
953 PR target/68661
954 PR target/69575
955 PR target/69596
956 PR target/69734
957 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
958 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
959 all registers, except for function return registers if there are
960 no caller-saved registers.
961 (ix86_set_func_type): New function.
962 (ix86_set_current_function): Call ix86_set_func_type to set
963 no_caller_saved_registers and func_type. Call reinit_regs if
964 caller-saved registers are changed. Don't allow MPX, SSE, MMX
965 nor x87 instructions in interrupt handler nor function with
966 no_caller_saved_registers attribute.
967 (ix86_function_ok_for_sibcall): Return false if there are no
968 caller-saved registers.
969 (type_natural_mode): Don't warn ABI change for MMX in interrupt
970 handler.
971 (ix86_function_arg_advance): Skip for callee in interrupt handler.
972 (ix86_function_arg): Return special arguments in interrupt handler.
973 (ix86_promote_function_mode): Promote pointer to word_mode only
974 for normal functions.
975 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
976 interrupt handler.
977 (ix86_epilogue_uses): New function.
978 (ix86_hard_regno_scratch_ok): Likewise.
979 (ix86_save_reg): Preserve all registers in interrupt handler
980 after reload. Preserve all registers, except for function return
981 registers, if there are no caller-saved registers after reload.
982 (find_drap_reg): Always use callee-saved register if there are
983 no caller-saved registers.
984 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
985 for interrupt handler.
986 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
987 Emit cld instruction if stringops are used in interrupt handler
988 or interrupt handler isn't a leaf function.
989 (ix86_expand_epilogue): Generate interrupt return for interrupt
990 handler and pop the 'ERROR_CODE' off the stack before interrupt
991 return in exception handler.
992 (ix86_expand_call): Disallow calling interrupt handler directly.
993 If there are no caller-saved registers, mark all registers that
994 are clobbered by the call which returns as clobbered.
995 (ix86_handle_no_caller_saved_registers_attribute): New function.
996 (ix86_handle_interrupt_attribute): Likewise.
997 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
998 attributes.
999 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
1000 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
1001 accumulation in interrupt function if stack may be realigned to
1002 avoid DRAP.
1003 (EPILOGUE_USES): New.
1004 (function_type): New enum.
1005 (machine_function): Add func_type and no_caller_saved_registers.
1006 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
1007 (interrupt_return): New pattern.
1008 * doc/extend.texi: Document x86 interrupt and
1009 no_caller_saved_registers attributes.
1010
1011 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
1012
1013 PR tree-optimization/52171
1014 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
1015 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
1016 Look for constant strings. Move some code to emit_block_cmp_hints
1017 and use it.
1018 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
1019 * defaults.h (COMPARE_MAX_PIECES): New macro.
1020 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
1021 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
1022 (clear_by_pieces_1): Don't declare. Move definition before use.
1023 (can_do_by_pieces): New static function.
1024 (can_move_by_pieces): Use it. Return bool.
1025 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
1026 OP. All callers changed. Handle COMPARE_BY_PIECES.
1027 (class pieces_addr); New.
1028 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
1029 pieces_addr::adjust, pieces_addr::increment_address,
1030 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
1031 functions for it.
1032 (class op_by_pieces_d): New.
1033 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
1034 functions for it.
1035 (class move_by_pieces_d, class compare_by_pieces_d,
1036 class store_by_pieces_d): New subclasses of op_by_pieces_d.
1037 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
1038 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
1039 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
1040 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
1041 compare_by_pieces_d::finish_mode): New member functions.
1042 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
1043 functions.
1044 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
1045 (emit_block_cmp_hints): New function.
1046 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
1047 use the newly defined classes.
1048 * expr.h (by_pieces_constfn): New typedef.
1049 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
1050 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
1051 (move_by_pieces_ninsns): Don't declare.
1052 (can_move_by_pieces): Change return value to bool.
1053 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
1054 (compare_by_pieces_branch_ratio): New hook.
1055 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
1056 (by_pieces_ninsns): Declare.
1057 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
1058 COMPARE_BY_PIECES.
1059 (default_compare_by_pieces_branch_ratio): New function.
1060 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
1061 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
1062 * doc/tm.texi: Regenerate.
1063 * tree-ssa-strlen.c: Include "builtins.h".
1064 (handle_builtin_memcmp): New static function.
1065 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
1066 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
1067
1068 2016-06-03 Alan Hayward <alan.hayward@arm.com>
1069
1070 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
1071 relevant stmts which are simple and invariant.
1072 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
1073 instead of simple and invariant
1074
1075 2016-06-03 Alan Hayward <alan.hayward@arm.com>
1076
1077 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
1078 (vectorizable_reduction): Check for new relevant state.
1079 (vectorizable_live_operation): vectorize live stmts using
1080 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
1081 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
1082 (vect_stmt_relevant_p): Check for stmts which are only used live.
1083 (process_use): Use of a stmt does not inherit it's live value.
1084 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
1085 (vect_analyze_stmt): Check for new relevant state.
1086 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
1087 outside the loop, but not inside it.
1088
1089 2016-06-03 Alan Hayward <alan.hayward@arm.com>
1090
1091 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
1092 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
1093 (vect_get_vec_def_for_operand): Split out code.
1094
1095 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
1096
1097 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
1098
1099 2016-06-03 Alan Hayward <alan.hayward@arm.com>
1100
1101 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
1102
1103 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1104
1105 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
1106
1107 2016-06-03 Jakub Jelinek <jakub@redhat.com>
1108
1109 PR middle-end/71387
1110 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
1111 to noreturn e->callee->decl that has void return type and void
1112 arguments, adjust gimple_call_fntype and remove lhs even if it had
1113 previously addressable type.
1114
1115 2016-06-02 Jeff Law <law@redhat.com>
1116
1117 PR tree-optimization/71328
1118 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
1119 error when checking for a jump back onto the copied path.
1120
1121 2016-06-02 David Malcolm <dmalcolm@redhat.com>
1122
1123 * config/microblaze/microblaze.c (get_branch_target): Add return
1124 NULL_RTX for the non-CALL_P case.
1125 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
1126 (insert_wic): Remove unused local "j".
1127
1128 2016-06-02 Martin Liska <mliska@suse.cz>
1129
1130 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
1131
1132 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
1133 Julia Koval <julia.koval@intel.com>
1134
1135 * function.c (assign_parm_setup_stack): Force source into a
1136 register if needed.
1137 * target.def (function_incoming_arg): Update documentation to
1138 allow arbitrary address computation based on hard register.
1139 * doc/tm.texi: Regenerated.
1140
1141 2016-06-02 Martin Liska <mliska@suse.cz>
1142
1143 * predict.c (combine_predictions_for_bb): Fix first match in
1144 cases where a first predictor contains more than one occurence
1145 in list of predictors. Take the best value in such case.
1146
1147 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1148
1149 PR rtl-optimization/71295
1150 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
1151 offset would go over the size of the inner mode reject it.
1152
1153 2016-06-02 Jakub Jelinek <jakub@redhat.com>
1154
1155 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
1156 x=x,x and v=v,m instead of x=x,m.
1157
1158 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
1159 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
1160 alternative to v=rm,C.
1161
1162 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
1163 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
1164 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
1165 instead of vex for the last two above mentioned alternatives.
1166
1167 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1168
1169 PR target/70830
1170 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
1171
1172 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
1173
1174 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
1175
1176 2016-06-01 David Malcolm <dmalcolm@redhat.com>
1177
1178 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
1179 from int to unsigned.
1180
1181 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
1182
1183 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
1184 alternatives, eliminating preferred register class. Add support
1185 for the MTVSRDD instruction in ISA 3.0.
1186 (vsx_splat_v4si_internal): Use splat_input_operand instead of
1187 reg_or_indexed_operand.
1188 (vsx_splat_v4sf_internal): Likewise.
1189
1190 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
1191
1192 PR target/71186
1193 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
1194 for loading up all 0's or all 1's.
1195
1196 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
1197
1198 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
1199
1200 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
1201
1202 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
1203 extension.
1204 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
1205 * gcc.c (set_source_date_epoch_envvar): New function, sets
1206 the SOURCE_DATE_EPOCH environment variable to the current time.
1207
1208 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
1209
1210 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
1211 the factor for live Phi nodes.
1212
1213 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
1214
1215 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
1216 * tree-parloops.c (parallelize_loops): likewise.
1217 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
1218 tree_unswitch_outer_loop): likewise.
1219
1220 2016-06-01 Jakub Jelinek <jakub@redhat.com>
1221
1222 PR middle-end/71371
1223 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
1224 around creation of the temporary.
1225
1226 2016-06-01 Richard Biener <rguenther@suse.de>
1227
1228 PR tree-optimization/71366
1229 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
1230 (unloop_loops): Move removing edges here ...
1231 (try_unroll_loop_completely): ... from here.
1232 (try_peel_loop): ... and here.
1233 (tree_unroll_loops_completely_1): Track parent loops via
1234 bitmap of header BBs.
1235 (tree_unroll_loops_completely): Adjust for that.
1236
1237 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
1238
1239 * config/rs6000/altivec.h (vec_slv): New macro.
1240 (vec_srv): New macro.
1241 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
1242 (UNSPEC_VSRV): New value.
1243 (vslv): New insn.
1244 (vsrv): New insn.
1245 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
1246 (vsrv): New builtin definition.
1247 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
1248 define argument types for new builtin.
1249 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
1250 new builtin.
1251 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
1252 functions.
1253
1254 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
1255 Jocelyn Mayer <l_indien@magic.fr>
1256
1257 PR target/67310
1258 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
1259 detect processor family for signature_CENTAUR_ebx.
1260 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
1261 signature_CENTAUR_ebx.
1262 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
1263 <default>: Pass x86-64 for has_longmode.
1264
1265 2016-06-01 Nathan Sidwell <nathan@acm.org>
1266
1267 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
1268 undefined weak.
1269
1270 2016-06-01 Richard Biener <rguenther@suse.de>
1271
1272 PR tree-optimization/71261
1273 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
1274 of stmts successfully put in the bool pattern. Remove
1275 single-use restriction.
1276 (adjust_bool_pattern_cast): Add cast at the use site via the
1277 pattern def sequence.
1278 (adjust_bool_pattern): Remove recursion, maintain a hash-map
1279 of patterned defs. Use the pattern def seqence instead of
1280 multiple independent patterns.
1281 (sort_after_uid): New qsort compare function.
1282 (adjust_bool_stmts): New function to process stmts in the bool
1283 pattern in IL order.
1284 (vect_recog_bool_pattern): Adjust.
1285 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
1286 (ifcvt_walk_pattern_tree): Likewise.
1287 (stmt_is_root_of_bool_pattern): Likewise.
1288 (ifcvt_repair_bool_pattern): Likewise.
1289 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
1290
1291 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
1292
1293 * loop-unroll.c (decide_unroll_constant_iterations,
1294 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
1295 likely upper bounds.
1296 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
1297
1298 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
1299
1300 * tree-core.h (enum omp_clause_code): Remove
1301 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
1302
1303 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1304
1305 * config/arm/sync.md (arm_store_exclusive<mode>):
1306 Use 'H' output modifier on operands[2] rather than creating a new
1307 entry in out-of-bounds memory of the operands array.
1308 (arm_store_release_exclusivedi): Likewise.
1309
1310 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1311
1312 * config/arm/arm.c (arm_fusion_enabled_p): New function.
1313 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
1314 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
1315 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
1316
1317 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
1318
1319 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
1320 into account live statements for mask producers.
1321
1322 2016-06-01 Richard Biener <rguenther@suse.de>
1323
1324 PR tree-optimization/71311
1325 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
1326 restrict to non-INTEGER_CST @0.
1327
1328 2016-06-01 Richard Biener <rguenther@suse.de>
1329
1330 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
1331 (relational patterns): Use :c to avoid pattern duplications.
1332
1333 2016-06-01 Richard Biener <rguenther@suse.de>
1334
1335 * genmatch.c (comparison_code_p): New predicate.
1336 (swap_tree_comparison): New function.
1337 (commutate): Add for_vec parameter to append new for entries.
1338 Support commutating relational operators by swapping it alongside
1339 operands.
1340 (lower_commutative): Adjust.
1341 (dt_simplify::gen): Do not pass artificial operators to gen
1342 functions.
1343 (decision_tree::gen): Do not add artificial operators as parameters.
1344 (parser::parse_expr): Verify operator commutativity when :c is
1345 applied. Allow :C to override this.
1346 * match.pd: Adjust patterns to use :C instead of :c where required.
1347
1348 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
1349
1350 PR tree-optimization/71077
1351 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
1352 the combining step, use boolean_false_node and boolean_true_node
1353 as the designated false/true return values.
1354
1355 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
1356
1357 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
1358 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
1359 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
1360 PRED_LOOP_EXIT.
1361
1362 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
1363
1364 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
1365 of flags impliying the register renaming.
1366 * toplev.c (process_options): Do not imply flag_rename_registers with
1367 loop peeling.
1368
1369 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
1370
1371 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
1372 default implementation.
1373
1374 2016-05-31 Nathan Sidwell <nathan@acm.org>
1375
1376 * dwarf2out.c (cur_line_info_table): Add GTY marker.
1377
1378 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
1379
1380 * config/sh/constraints.md (b): Remove constraint.
1381 * config/sh/predicates.md (arith_reg_operand): Remove
1382 TARGET_REGISTER_P.
1383 * config/sh/sh-modes.def (PDI): Remove.
1384 * config/sh/sh.c (sh_target_reg_class,
1385 sh_optimize_target_register_callee_saved): Remove functions.
1386 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
1387 (sh_expand_epilogue): Update comment.
1388 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
1389 sh_secondary_reload): Remove TARGET_REGS related code.
1390 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
1391 TARGET_REGISTER_P): Remove macros.
1392 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
1393 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
1394 TR1_REG, TR2_REG): Remove constants.
1395 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
1396
1397 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
1398
1399 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
1400 define_expand patterns.
1401 (adddi3_compact): Rename to adddi3.
1402 (subdi3_compact): Rename to subdi3.
1403 (*negdi2): Rename to negdi2.
1404 (*abs<mode>2): Rename to abs<mode>2.
1405
1406 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
1407
1408 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
1409 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
1410 (atomic_sub_fetchsi): ... this new pattern.
1411 (mvtc): Add CC_REG clobber.
1412
1413 2016-05-31 Marek Polacek <polacek@redhat.com>
1414
1415 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
1416
1417 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1418
1419 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
1420 aarch64_fusion_enabled_p to check for fusion capabilities.
1421
1422 2016-05-31 Richard Biener <rguenther@suse.de>
1423
1424 PR tree-optimization/71352
1425 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
1426 minus one and a negate.
1427
1428 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1429
1430 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
1431 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
1432 Delete prototype.
1433 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
1434 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
1435 Remove use of aarch64_simd_attr_length_move, set length attribute
1436 directly.
1437 (*aarch64_be_movoi): Likewise.
1438 (*aarch64_be_movci): Likewise.
1439 (*aarch64_be_movxi): Likewise.
1440
1441 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
1442
1443 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
1444 It no longer does that.
1445 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
1446
1447 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
1448
1449 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
1450 attribute __unused__.
1451
1452 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
1453
1454 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
1455 * config/arm/arm.c (arm_arch_thumb1): Define.
1456 (arm_option_override): Initialize arm_arch_thumb1.
1457 * config/arm/arm.h (arm_arch_thumb1): Declare.
1458 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
1459 support Thumb-1 ISA.
1460
1461 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
1462
1463 PR target/71346
1464 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
1465 `Yv' for scalar operand.
1466
1467 2016-05-31 Tom de Vries <tom@codesourcery.com>
1468
1469 PR tree-optimization/69068
1470 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
1471 phis with more than two args.
1472
1473 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
1474
1475 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
1476 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
1477 target.
1478
1479 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
1480
1481 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
1482 tune_64.
1483 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
1484 support on SPARC.
1485 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
1486 cpu_32, cpu_64, tune_32 and tune_64.
1487 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
1488
1489 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
1490
1491 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
1492
1493 2016-05-30 Andi Kleen <ak@linux.intel.com>
1494
1495 * auto-profile.c (read_profile): Replace asserts with errors
1496 when file does not exist.
1497 * gcov-io.c (gcov_read_words): Dito.
1498
1499 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
1500
1501 * tree-cfg.c (print_loop): Print likely upper bounds.
1502
1503 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
1504
1505 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
1506 * opts.c (default_options): Enable peel loops at -O3.
1507 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
1508 (try_peel_loop): Do not re-peel already peeled loops;
1509 use likely upper bounds; fix profile updating.
1510 (pass_complete_unroll::execute): Initialize peeled_loops.
1511
1512 2016-05-30 Martin Liska <mliska@suse.cz>
1513
1514 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
1515 computed costs by frequency of BB they belong to.
1516 (get_scaled_computation_cost_at): New function.
1517
1518 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
1519 Marc Glisse <marc.glisse@inria.fr>
1520
1521 PR tree-optimization/71289
1522 * match.pd (-1 / B < A, A > -1 / B): New transformations.
1523
1524 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
1525
1526 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
1527
1528 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
1529
1530 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
1531 for peeled copies; avoid underflow when updating estimates; correctly
1532 scale loop profile.
1533
1534 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
1535
1536 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
1537 r236875. Corrected oe3 to oe2 as obvious.
1538
1539 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
1540
1541 PR middle-end/71269
1542 PR middle-end/71252
1543 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
1544 that inserted stmt will not dominate stmts that defines its operand.
1545 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
1546 (rewrite_expr_tree_parallel): Likewise.
1547
1548 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
1549
1550 PR middle-end/71252
1551 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
1552 all fields including stmt_to_insert are swapped.
1553
1554 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
1555
1556 * predict.h (force_edge_cold): Declare.
1557 * predict.c (force_edge_cold): New function.
1558 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
1559 updating.
1560 (canonicalize_loop_induction_variables): Fix formating.
1561
1562 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
1563
1564 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
1565 (visium_expand_copysign): Use gen_int_mode directly.
1566 (visium_compute_frame_size): Minor tweaks.
1567
1568 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
1569
1570 * tree-vect-loop.c (vect_analyze_loop_2): Use
1571 likely_max_stmt_executions_int.
1572
1573 2016-05-30 Tom de Vries <tom@codesourcery.com>
1574
1575 PR tree-optimization/69067
1576 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
1577
1578 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
1579
1580 PR target/71245
1581 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
1582 New peepholes to remove unneeded fild/fistp pairs.
1583 (define_peephole2 atomic_loaddi_fpu): Ditto.
1584
1585 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
1586
1587 * predict.c (maybe_hot_frequency_p): Avoid division.
1588
1589 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
1590
1591 * doc/install.texi: Use https for shop.fsf.org.
1592
1593 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
1594
1595 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
1596 likely_max_stmt_executions_int.
1597
1598 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
1599
1600 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
1601 likely_max_stmt_executions_int.
1602
1603 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
1604
1605 * profile.c (compute_branch_probabilities): Do not report hitrates
1606 here.
1607 (branch_prob): Report hitrates here.
1608 * predict.c (gimple_predict_edge): Do not assert profile status;
1609 fix formatting issues.
1610
1611 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
1612
1613 * predict.c (edge_predicted_by_p): New function.
1614 (predict_paths_for_bb): Do not put multiple predictions of the same type
1615 on one edge.
1616
1617 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
1618
1619 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
1620 commit.
1621
1622 2016-05-28 Alan Modra <amodra@gmail.com>
1623
1624 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
1625
1626 2016-05-28 Alan Modra <amodra@gmail.com>
1627
1628 PR rtl-optimization/71275
1629 * ira.c (ira): Free dominance info.
1630
1631 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
1632
1633 * doc/sourcebuild.texi: New address for upstream Go repository.
1634
1635 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
1636
1637 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
1638 (TARGET_ARM_V7M): Likewise.
1639
1640 2016-05-26 Jeff Law <law@redhat.com>
1641
1642 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
1643 (thread_across_edge): Remove calls to find_jump_threads_backwards.
1644 * passes.def: Add jump threading passes before DOM/VRP.
1645 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
1646 argument to a basic block from an edge. Remove tests which are
1647 handled elsewhere.
1648 (pass_data_thread_jumps, class pass_thread_jumps): New.
1649 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
1650 (make_pass_thread_jumps): Likewise.
1651 * tree-pass.h (make_pass_thread_jumps): Declare.
1652
1653 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
1654
1655 * config/visium/visium-protos.h (split_double_move): Rename into...
1656 (visium_split_double_move): ...this.
1657 (visium_split_double_add): Declare.
1658 * config/visium/visium.c (split_double_move): Rename into...
1659 (visium_split_double_move): ...this.
1660 (visium_split_double_add): New function.
1661 (visium_expand_copysign): Renumber operands for consistency.
1662 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
1663 (DFmode move splitter): Likewise.
1664 (*addi3_insn): Split by means of visium_split_double_add.
1665 (*adddi3_insn_flags): Delete.
1666 (*plus_plus_sltu<subst_arith>): New insn.
1667 (*subdi3_insn): Split by means of visium_split_double_add.
1668 (subdi3_insn_flags): Delete.
1669 (*minus_minus_sltu<subst_arith>): New insn.
1670 (*negdi2_insn): Split by means of visium_split_double_add.
1671 (*negdi2_insn_flags): Delete.
1672
1673 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
1674
1675 * configure.ac: Treat a --with-headers option without argument
1676 the same as the default (i.e. consult sys-include directory).
1677 * configure: Regenerate.
1678
1679 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1680
1681 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
1682 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
1683 prototype.
1684 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
1685 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
1686
1687 2016-05-27 Jiong Wang <jiong.wang@arm.com>
1688
1689 PR target/63596
1690 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
1691 tree-stdarg analysis results.
1692 (aarch64_setup_incoming_varargs): Likewise.
1693
1694 2016-05-27 Jiong Wang <jiong.wang@arm.com>
1695
1696 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
1697 va_list_gpr_counter_field and va_list_fpr_counter_field.
1698
1699 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
1700
1701 PR67609
1702 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
1703 * config/aarch64/aarch64.c
1704 (aarch64_cannot_change_mode_class): Remove function.
1705 * config/aarch64/aarch64-protos.h
1706 (aarch64_cannot_change_mode_class): Remove.
1707
1708 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
1709
1710 * cfgloop.c (record_niter_bound): Record likely upper bounds.
1711 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
1712 get_likely_max_loop_iterations_int): New.
1713 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
1714 any_likely_upper_bound.
1715 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
1716 Declare.
1717 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
1718 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
1719 upper bound.
1720 (unroll_loop_constant_iterations): Likewise.
1721 (unroll_loop_runtime_iterations): Likewise.
1722 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
1723 * lto-streamer-out.c (output_cfg): Likewise.
1724 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
1725 bounds.
1726 (canonicalize_loop_induction_variables): Dump likely upper bounds.
1727 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
1728 (likely_max_loop_iterations): New.
1729 (likely_max_loop_iterations_int): New.
1730 (likely_max_stmt_executions): New.
1731 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
1732 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
1733 likely_max_stmt_executions): Declare.
1734
1735 2016-05-27 Marek Polacek <polacek@redhat.com>
1736
1737 PR middle-end/71308
1738 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
1739
1740 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1741
1742 * config/s390/s390.md (2x risbg splitters): Use
1743 reg_overlap_mentioned_p instead of rtx_equal_p.
1744
1745 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
1746
1747 * combine.c (make_compound_operation): Take known zero bits into
1748 account when checking for possible zero_extend.
1749
1750 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1751
1752 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
1753 Use const_int_operand for operand 2 predicate. Simplify expand code
1754 as a result.
1755
1756 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
1757
1758 PR middle-end/71279
1759 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
1760 into comparison.
1761
1762 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1763
1764 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
1765 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
1766 that returns CC_SESWPmode and CC_ZESWPmode.
1767 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
1768 and CC_SESWPmode.
1769 (aarch64_rtx_costs): Likewise.
1770
1771 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1772
1773 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
1774 for ISA 3.0 min/max support.
1775 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
1776 conditional move support.
1777 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
1778 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
1779 available.
1780 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
1781 conditional moves where the comparison type is different from move
1782 type.
1783 (fp_minmax): New code iterator for smin/smax.
1784 (minmax): New code attributes for min/max.
1785 (SMINMAX): Likewise.
1786 (smax<mode>3): Combine min, max insns into one insn using the
1787 fp_minmax code iterator. Add support for ISA 3.0 min/max
1788 instructions that don't need -ffast-math.
1789 (s<minmax><mode>3): Likewise.
1790 (smax<mode>3_vsx): Likewise.
1791 (smin<mode>3): Likewise.
1792 (s<minmax><mode>3_vsx): Likewise.
1793 (smin<mode>3_vsx): Likewise.
1794 (pre-VSX min/max splitters): Likewise.
1795 (s<minmax><mode>3_fpr): Likewise.
1796 (movsfcc): Rewrite floating point conditional moves to combine
1797 SFmode/DFmode into a single insn.
1798 (mov<mode>cc): Likewise.
1799 (movdfcc): Likewise.
1800 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
1801 SFDF2 iterators to handle all combinations.
1802 (fseldfsf4): Likewise.
1803 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
1804 (fseldfdf4): Likewise.
1805 (fselsfdf4): Likewise.
1806 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
1807 comparison instructions that set a 0/-1 mask, and use it for
1808 floating point conditional move via XXSEL.
1809 (fpmask<mode>): Likewise.
1810 (xxsel<mode>): Likewise.
1811 * config/rs6000/predicates.md (min_max_operator): Delete, no
1812 longer used.
1813 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
1814 instructions that generate a 0/-1 mask for use with XXSEL.
1815 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
1816 say whether floating point min/max is available, either through
1817 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
1818 (TARGET_MINMAX_DF): Likewise.
1819
1820 2016-05-27 Alan Modra <amodra@gmail.com>
1821
1822 PR rtl-optimization/71275
1823 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
1824 for update_equiv_regs and combine_and_move_insns.
1825
1826 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
1827
1828 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
1829 if_then_else or cond RTXes to calculate attribute value.
1830 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
1831 <attr "length_immediate>: Ditto.
1832 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
1833 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
1834 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
1835 <attr "type">: Ditto.
1836 <attr "prefix_data16">: Ditto.
1837 <attr "prefix_extra">: Ditto.
1838 <attr "length_immediate">: Ditto.
1839 <attr "prefix">: Ditto.
1840 (vec_set<mode>_0) <attr "isa">: Ditto.
1841 <attr "prefix_extra">: Ditto.
1842 <attr "length_immediate">: Ditto.
1843 <attr "prefix">: Ditto.
1844 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
1845 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
1846 (sse2_storelpd) <attr "prefix_data16">: Ditto.
1847 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
1848 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
1849 <attr "length_immediate">: Ditto.
1850 <attr "prefix">: Ditto.
1851 (sse2_movsd) <attr "length_immediate">: Ditto.
1852 <attr "prefix">: Ditto.
1853 (vec_concatv2df) <attr "isa">: Ditto.
1854 <attr "prefix">: Ditto.
1855 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
1856 (*vec_extractv2di_1) <attr "isa">: Ditto.
1857 <attr "type">: Ditto.
1858 <attr "length_immediate">: Ditto.
1859 <attr "prefix_rex">: Ditto.
1860 <attr "prefix_extra">: Ditto.
1861 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
1862 <attr "prefix_extra">: Ditto.
1863 <attr "length_immediate">: Ditto.
1864 (vec_concatv2di) <attr "isa">: Ditto.
1865 <attr "prefix_extra">: Ditto.
1866 <attr "length_immediate">: Ditto.
1867 <attr "prefix">: Ditto.
1868
1869 2016-05-26 Martin Liska <mliska@suse.cz>
1870
1871 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
1872 function.
1873 (operator+): Likewise.
1874 (operator-): Likewise.
1875 (comp_cost::operator+=): Likewise.
1876 (comp_cost::operator-=): Likewise.
1877 (comp_cost::operator/=): Likewise.
1878 (comp_cost::operator*=): Likewise.
1879 (operator<): Likewise.
1880 (operator==): Likewise.
1881 (operator<=): Likewise.
1882 (new_cost): Remove.
1883 (infinite_cost_p): Likewise.
1884 (add_costs): Likewise.
1885 (sub_costs): Likewise.
1886 (compare_costs): Likewise.
1887 (set_group_iv_cost): Use the newly introduced functions.
1888 (get_address_cost): Likewise.
1889 (get_shiftadd_cost): Likewise.
1890 (force_expr_to_var_cost): Likewise.
1891 (split_address_cost): Likewise.
1892 (ptr_difference_cost): Likewise.
1893 (difference_cost): Likewise.
1894 (get_computation_cost_at): Likewise.
1895 (determine_group_iv_cost_generic): Likewise.
1896 (determine_group_iv_cost_address): Likewise.
1897 (determine_group_iv_cost_cond): Likewise.
1898 (autoinc_possible_for_pair): Likewise.
1899 (determine_group_iv_costs): Likewise.
1900 (cheaper_cost_pair): Likewise.
1901 (iv_ca_recount_cost): Likewise.
1902 (iv_ca_set_no_cp): Likewise.
1903 (iv_ca_set_cp): Likewise.
1904 (iv_ca_cost): Likewise.
1905 (iv_ca_new): Likewise.
1906 (iv_ca_dump): Likewise.
1907 (iv_ca_narrow): Likewise.
1908 (iv_ca_prune): Likewise.
1909 (iv_ca_replace): Likewise.
1910 (try_add_cand_for): Likewise.
1911 (try_improve_iv_set): Likewise.
1912 (find_optimal_iv_set): Likewise.
1913
1914 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
1915
1916 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
1917 that internal functions will clobber all caller-saved registers.
1918
1919 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
1920
1921 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
1922 Return a better case_values_threshold when optimizing.
1923
1924 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
1925
1926 * config/aarch64/aarch64-simd.md (aarch64_combinez):
1927 Add ? to integer variant.
1928 (aarch64_combinez_be): Likewise.
1929
1930 2016-05-26 Jakub Jelinek <jakub@redhat.com>
1931
1932 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
1933 instead of x constraint.
1934 (vcvtps2ph256<mask_name>): Likewise.
1935
1936 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
1937 alternative. Formatting fix.
1938
1939 * config/i386/sse.md
1940 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
1941 to ...
1942 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
1943 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
1944 maybe_evex prefix instead of vex.
1945 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
1946 EXT_REX_SSE_REG_P (op0) case in the splitter.
1947
1948 2016-05-25 Jeff Law <law@redhat.com>
1949
1950 PR tree-optimization/71272
1951 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
1952 Update comments. Add test for empty path.
1953
1954 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
1955
1956 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
1957 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
1958 special case builtin.
1959 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
1960 code for ALTIVEC_BUILTIN_VEC_CMPNE.
1961 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
1962 for __builtin_vec_cmpne.
1963
1964 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
1965
1966 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
1967 redundant test and bail out if the type of the new operand is not
1968 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
1969
1970 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
1971
1972 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
1973 (x_ix86_target_flags_explicit): Remove.
1974 * config/i386/i386.c (ix86_function_specific_save): Do not copy
1975 x_ix86_target_flags_explicit.
1976 (ix86_function_specific_restore): Ditto.
1977
1978 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
1979 H.J. Lu <hongjiu.lu@intel.com>
1980
1981 PR target/70738
1982 * common/config/i386/i386-common.c
1983 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
1984 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
1985 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
1986 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
1987 (-mgeneral-regs-only): Add new option.
1988 * config/i386/i386.c (ix86_option_override_internal): Don't enable
1989 x87 instructions if only general registers are allowed.
1990 (ix86_target_string): Add ix86_flags argument. Handle additional
1991 flags options through ix86_flags argument. Update all callers.
1992 * doc/invoke.texi: Document -mgeneral-regs-only.
1993
1994 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1995
1996 PR rtl-optimization/66940
1997 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
1998 decrementing desired_val will not overflow before performing these
1999 operations.
2000
2001 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
2002
2003 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
2004 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
2005 * config/i386/i386.c (enum ix86_builtins): Add
2006 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
2007 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
2008 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
2009 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
2010 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
2011 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
2012 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
2013 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
2014 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
2015 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
2016 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
2017 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
2018 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
2019 __builtin_ia32_cvtps2dq512_mask.
2020 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
2021 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
2022 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
2023 * config/i386/sse.md
2024 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
2025 Rename to ...
2026 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
2027 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
2028 to ...
2029 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
2030 (avx512f_vec_pack_sfix_v8df): New define_expand.
2031 (avx512f_roundpd512): Rename to ...
2032 (avx512f_round<castmode>512): ... this. Change iterator.
2033 (avx512f_roundps512_sfix): New define_expand.
2034 (round<mode>2_sfix): Change iterator.
2035
2036 2016-05-25 Nick Clifton <nickc@redhat.com>
2037
2038 * config/msp430/msp430.c (msp430_attr): Produce an error if a
2039 static interrupt handler is detected.
2040 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
2041 default linker script.
2042 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
2043 the low part of a symbolic pointer.
2044
2045 2016-05-25 Richard Biener <rguenther@suse.de>
2046
2047 PR tree-optimization/71261
2048 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
2049 interesting stmt instead of immediate uses when looking
2050 for the use operand to replace.
2051
2052 2016-05-25 Martin Liska <mliska@suse.cz>
2053
2054 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
2055
2056 2016-05-25 Richard Biener <rguenther@suse.de>
2057
2058 PR tree-optimization/71264
2059 * tree-vect-stmts.c (vect_init_vector): Properly deal with
2060 vector type val.
2061
2062 2016-05-25 Martin Liska <mliska@suse.cz>
2063
2064 PR tree-optimization/71239
2065 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
2066 if DECL_SIZE is NULL.
2067
2068 2016-05-25 Richard Biener <rguenther@suse.de>
2069
2070 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
2071 * tree-if-conv.c (pass_data_if_conversion): Use it.
2072
2073 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2074
2075 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
2076 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
2077 * varpool.c (varpool_node::get_availability): Likewise.
2078
2079 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2080
2081 * config/rs6000/altivec.md (VNEG iterator): New iterator for
2082 VNEGW/VNEGD instructions.
2083 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
2084 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
2085 support for ISA 3.0 VNEGW/VNEGD instructions.
2086
2087 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
2088
2089 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
2090 pointers inside OACC_DATA regions.
2091 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
2092 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
2093 (gimplify_adjust_omp_clauses): Fix typo in comment.
2094
2095 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2096
2097 * config/rs6000/altivec.md (VParity): New mode iterator for vector
2098 parity built-in functions.
2099 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
2100 zeros.
2101 (p9v_parity<mode>2): Likewise.
2102 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
2103 parity.
2104 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
2105 (parity<mode>2): ISA 3.0 expander for vector parity.
2106 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
2107 power9 built-ins.
2108 (BU_P9_64BIT_MISC_0): Likewise.
2109 (BU_P9_MISC_0): Likewise.
2110 (BU_P9V_AV_1): Likewise.
2111 (BU_P9V_AV_2): Likewise.
2112 (BU_P9V_AV_3): Likewise.
2113 (BU_P9V_AV_P): Likewise.
2114 (BU_P9V_VSX_1): Likewise.
2115 (BU_P9V_OVERLOAD_1): Likewise.
2116 (BU_P9V_OVERLOAD_2): Likewise.
2117 (BU_P9V_OVERLOAD_3): Likewise.
2118 (VCTZB): Add vector count trailing zeros support.
2119 (VCTZH): Likewise.
2120 (VCTZW): Likewise.
2121 (VCTZD): Likewise.
2122 (VPRTYBD): Add vector parity support.
2123 (VPRTYBQ): Likewise.
2124 (VPRTYBW): Likewise.
2125 (VCTZ): Add overloaded vector count trailing zeros support.
2126 (VPRTYB): Add overloaded vector parity support.
2127 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2128 overloaded vector count trailing zeros and parity instructions.
2129 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
2130 vector parity support.
2131 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
2132 trailing zeros support.
2133 (vec_cntlz): Likewise.
2134 (vec_vctzb): Likewise.
2135 (vec_vctzd): Likewise.
2136 (vec_vctzh): Likewise.
2137 (vec_vctzw): Likewise.
2138 (vec_vprtyb): Add ISA 3.0 vector parity support.
2139 (vec_vprtybd): Likewise.
2140 (vec_vprtybw): Likewise.
2141 (vec_vprtybq): Likewise.
2142 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2143 the ISA 3.0 vector count trailing zeros and vector parity built-in
2144 functions.
2145
2146 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
2147
2148 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
2149 when there is stmt_to_insert.
2150
2151 2016-05-24 Martin Sebor <msebor@redhat.com>
2152
2153 PR c++/71147
2154 * tree.h (complete_or_array_type_p): New inline function.
2155
2156 2016-05-24 Jakub Jelinek <jakub@redhat.com>
2157
2158 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
2159 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
2160 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
2161
2162 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
2163 Limit 1st alternative to noavx isa, split 2nd alternative into one
2164 noavx and one avx alternative, use *x and Bm in the former and
2165 x and m in the latter.
2166
2167 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
2168 of sse4 for the first alternative, drop %v from the template
2169 and d operand modifier. Split second alternative into one sse4_noavx
2170 and one avx alternative, use *x instead of *v in the former and v
2171 instead of *v in the latter.
2172 (*sse4_1_extractps): Use noavx isa instead of * for the first
2173 alternative, drop %v from the template. Split second alternative into
2174 one noavx and one avx alternative, use *x instead of *v in the
2175 former and v instead of *v in the latter.
2176 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
2177 with noavx and the last one with avx.
2178 (sse4_1_phminposuw): Guard first alternative with noavx isa,
2179 split the second one into one noavx and one avx alternative,
2180 use *x and Bm in the former and x and m in the latter one.
2181 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
2182 alternatives.
2183
2184 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
2185 first two alternatives to noavx, use *x instead of *v in the second
2186 one, add avx alternative without *.
2187 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
2188 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
2189 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
2190
2191 2016-05-24 Jeff Law <law@redhat.com>
2192
2193 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
2194 New function, extracted from...
2195 (fsm_find_control_statement_thread_paths): Here. Use the new function.
2196 Allow simple copies and constant initializations in the SSA chain.
2197
2198 2016-05-24 Marek Polacek <polacek@redhat.com>
2199
2200 PR c/71249
2201 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
2202 scope.
2203
2204 2016-05-24 Jakub Jelinek <jakub@redhat.com>
2205
2206 PR c++/71257
2207 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
2208 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
2209 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
2210 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
2211 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
2212
2213 2016-05-24 Richard Biener <rguenther@suse.de>
2214
2215 PR tree-optimization/71240
2216 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
2217 has integral type.
2218
2219 2016-05-24 Richard Biener <rguenther@suse.de>
2220
2221 PR tree-optimization/71230
2222 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
2223
2224 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
2225
2226 * tree-vectorizer.h (vectorizable_comparison): Delete.
2227 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
2228 PURE_SLP_STMT check.
2229 * tree-vect-stmts.c (vectorizable_call): Likewise.
2230 (vectorizable_simd_clone_call): Likewise.
2231 (vectorizable_conversion): Likewise.
2232 (vectorizable_assignment): Likewise.
2233 (vectorizable_shift): Likewise.
2234 (vectorizable_operation): Likewise.
2235 (vectorizable_load): Likewise.
2236 (vectorizable_condition): Likewise.
2237 (vectorizable_store): Likewise. Assert that we don't have
2238 hybrid SLP.
2239 (vectorizable_comparison): Make static. Remove redundant
2240 PURE_SLP_STMT check.
2241 (vect_transform_stmt): Assert that we always have an slp_node
2242 if PURE_SLP_STMT.
2243
2244 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2245
2246 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
2247 operands[2] against 1 with comparison against CONST1_RTX.
2248 (<shift>di3_neon): Likewise.
2249 * config/arm/predicates.md (const0_operand): Replace with comparison
2250 against CONST0_RTX.
2251
2252 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2253
2254 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
2255 operands[2] against 1 with comparison against CONST1_RTX.
2256 (ashrdi3): Likewise.
2257 (lshrdi3): Likewise.
2258 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
2259 UINTVAL.
2260 (ashrsi3): Likewise.
2261 (lshrsi3): Likewise.
2262 (rotrsi3): Likewise.
2263 (define_split above *compareqi_eq0): Likewise.
2264 (define_split above "prologue"): Likewise.
2265 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
2266 * config/arm/predicates.md (shift_operator): Likewise.
2267 (shift_nomul_operator): Likewise.
2268 (sat_shift_operator): Likewise.
2269 (thumb1_cmp_operand): Likewise.
2270 (const_neon_scalar_shift_amount_operand): Replace manual range
2271 check with IN_RANGE.
2272 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
2273 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
2274
2275 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2276
2277 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
2278 with HOST_WIDE_INT_1.
2279 (insv): Likewise.
2280 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
2281 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
2282 (arm_canonicalize_comparison): Likewise.
2283 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
2284 HOST_WIDE_INT_1.
2285 (thumb1_size_rtx_costs): Likewise.
2286 (vfp_const_double_index): Replace cast of 1 to unsigned
2287 HOST_WIDE_INT with HOST_WIDE_INT_1U.
2288 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
2289 HOST_WIDE_INT_1.
2290 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
2291 HOST_WIDE_INT with HOST_WIDE_INT_1U.
2292 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
2293 HOST_WIDE_INT with HOST_WIDE_INT_1.
2294
2295 2016-05-24 Marek Polacek <polacek@redhat.com>
2296
2297 * tree-cfg.h (should_remove_lhs_p): New predicate.
2298 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
2299 * gimplify.c (gimplify_modify_expr): Likewise.
2300 * tree-cfg.c (verify_gimple_call): Likewise.
2301 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
2302 * gimple-fold.c: Include "tree-cfg.h".
2303 (gimple_fold_call): Use should_remove_lhs_p.
2304
2305 2016-05-24 Richard Biener <rguenther@suse.de>
2306
2307 PR tree-optimization/71253
2308 * cfganal.h (control_dependences): Make robust against edge
2309 and BB removal.
2310 (control_dependences::control_dependences): Remove edge_list argument.
2311 (control_dependences::get_edge): Remove.
2312 (control_dependences::get_edge_src): Add.
2313 (control_dependences::get_edge_dest): Likewise.
2314 (control_dependences::m_el): Make a vector of edge src/dest index.
2315 * cfganal.c (control_dependences::find_control_dependence): Adjust.
2316 (control_dependences::control_dependences): Likewise.
2317 (control_dependences::~control_dependence): Likewise.
2318 (control_dependences::get_edge): Remove.
2319 (control_dependences::get_edge_src): Add.
2320 (control_dependences::get_edge_dest): Likewise.
2321 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
2322 get_edge_src.
2323 (perform_tree_ssa_dce): Adjust.
2324 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
2325 get_edge_src.
2326 (pass_loop_distribution::execute): Adjust. Do loop destroying
2327 conditional on changed.
2328
2329 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2330
2331 PR target/69857
2332 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
2333 return. Reindent transformation comment and mention the ARM state
2334 behavior.
2335
2336 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
2337
2338 PR middle-end/71252
2339 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
2340 after build_and_add_sum creates new use stmt.
2341
2342 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
2343
2344 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
2345 load_lanes/grouped_load classification comes first. Don't check
2346 whether the vectorization factor is a multiple of the group size
2347 for load_lanes.
2348
2349 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
2350
2351 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
2352 GROUP_GAP for single-element interleaving.
2353 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
2354 variable.
2355
2356 2016-05-24 Richard Biener <rguenther@suse.de>
2357
2358 PR middle-end/70434
2359 PR c/69504
2360 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
2361 bases which are accessed with non-invariant indices.
2362 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
2363 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
2364
2365 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
2366
2367 PR middle-end/71170
2368 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
2369 (add_to_ops_vec): Add stmt_to_insert.
2370 (add_repeat_to_ops_vec): Init stmt_to_insert.
2371 (insert_stmt_before_use): New.
2372 (transform_add_to_multiply): Remove mult_stmt insertion and add it
2373 to ops vector.
2374 (get_ops): Init stmt_to_insert.
2375 (maybe_optimize_range_tests): Likewise.
2376 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
2377 (rewrite_expr_tree_parallel): Likewise.
2378 (reassociate_bb): Likewise.
2379
2380 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2381
2382 PR target/71201
2383 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
2384 ISA 3.0 xxperm fusion alternative.
2385 (altivec_vperm_v8hiv16qi): Likewise.
2386 (altivec_vperm_<mode>_uns_internal): Likewise.
2387 (vperm_v8hiv4si): Likewise.
2388 (vperm_v16qiv8hi): Likewise.
2389
2390 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2391 Kelvin Nilsen <kelvin@gcc.gnu.org>
2392
2393 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
2394 vpermr/xxpermr on ISA 3.0.
2395 (altivec_expand_vec_perm_le): Likewise.
2396 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
2397 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
2398 ISA 3.0.
2399
2400 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
2401
2402 * config/i386/i386.h (IS_STACK_MODE): Enable for
2403 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
2404 SSE_FLOAT_MODE_P macros.
2405 * config/i386/i386.c (ix86_preferred_reload_class): Use
2406 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
2407 Cleanup regclass processing for CONST_DOUBLE_P.
2408 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
2409 (ix86_rtx_costs): Remove redundant TARGET_80387 check
2410 with IS_STACK_MODE macro.
2411 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
2412 with TARGET_SSE2.
2413 (*movdf_internal): Use IS_STACK_MODE macro.
2414 (*movsf_internal): Ditto.
2415
2416 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
2417
2418 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
2419 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
2420
2421 2016-05-23 Jeff Law <law@redhat.com>
2422
2423 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
2424 extracted from ...
2425 (fsm_find_control_statement_thread_paths): Call it.
2426
2427 2016-05-23 Martin Jambor <mjambor@suse.cz>
2428
2429 PR ipa/71234
2430 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
2431 from_global_constant if t is not NULL.
2432
2433 2016-05-23 Marek Polacek <polacek@redhat.com>
2434
2435 PR c/49859
2436 * common.opt (Wswitch-unreachable): New option.
2437 * doc/invoke.texi: Document -Wswitch-unreachable.
2438 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
2439 warning.
2440
2441 2016-05-23 Bin Cheng <bin.cheng@arm.com>
2442
2443 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
2444 TMR_INDEX is non-NULL.
2445
2446 2016-05-23 Richard Biener <rguenther@suse.de>
2447
2448 PR tree-optimization/71230
2449 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
2450 (try_special_add_to_ops): ... here. Always test for single-use.
2451
2452 2016-05-23 Martin Jambor <mjambor@suse.cz>
2453
2454 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
2455 default block if a PHI node in the original one would be resized.
2456
2457 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2458
2459 PR tree-optimization/58135
2460 * tree-vect-slp.c: When group size is not multiple
2461 of vector size, allow splitting of store group at
2462 vector boundary.
2463
2464 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
2465
2466 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
2467
2468 2016-05-22 Jakub Jelinek <jakub@redhat.com>
2469
2470 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
2471 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
2472 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
2473 of 64x2.
2474
2475 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
2476 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
2477 v constraint instead of x and vinserti32x4 insn.
2478
2479 * config/i386/sse.md (i128vldq): New mode iterator.
2480 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
2481 avx512dq and avx512vl alternatives.
2482
2483 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
2484 constraint, use maybe_evex prefix instead of vex.
2485 (vec_dupv4sf): Use v constraint instead of x for output
2486 operand except for noavx alternative, use Yv constraint
2487 instead of x for input. Use maybe_evex prefix instead of vex.
2488 (*vec_dupv4si): Likewise.
2489 (*vec_dupv2di): Likewise.
2490
2491 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
2492
2493 PR middle-end/40921
2494 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
2495 (linearize_expr_tree): Call try_special_add_to_ops.
2496 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
2497
2498 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2499
2500 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
2501 to computed stack_usage.
2502
2503 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2504
2505 PR target/71103
2506 * config/avr/avr.md (define_expand "mov<mode>"): If the source
2507 operand is subreg (symbol_ref) then move the symbol ref to register.
2508
2509 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
2510
2511 * tree.c (array_at_struct_end_p): Look through MEM_REF.
2512
2513 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
2514
2515 PR middle-end/71179
2516 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
2517 VECTOR type.
2518
2519 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
2520
2521 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
2522 ranges by calling get_single_symbol and tidy up. Look more closely
2523 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
2524
2525 2016-05-20 Jeff Law <law@redhat.com>
2526
2527 * bitmap.c (bitmap_find_bit): Remove useless test.
2528
2529 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
2530
2531 * function.c (thread_prologue_and_epilogue_insns): Commit the
2532 insertion of the epilogue.
2533
2534 2016-05-20 Martin Jambor <mjambor@suse.cz>
2535
2536 PR tree-optimization/70884
2537 * tree-sra.c (initialize_constant_pool_replacements): Do not check
2538 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
2539 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
2540 of constant pool data as a reason for scalarization.
2541
2542 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
2543
2544 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
2545 for naked functions.
2546 (thumb1_expand_prologue): Likewise.
2547
2548 2016-05-20 Nathan Sidwell <nathan@acm.org>
2549
2550 * config/nvptx/nptx.c (nvptx_option_override): Only set
2551 flag_toplevel_reorder, if not explicitly specified. Set
2552 flag_no_common, unless explicitly specified.
2553
2554 2016-05-20 David Malcolm <dmalcolm@redhat.com>
2555
2556 * calls.c (can_implement_as_sibling_call_p): Mark param
2557 reg_parm_stack_space with ATTRIBUTE_UNUSED.
2558
2559 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
2560
2561 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
2562 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
2563 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
2564 constants.
2565 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
2566 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
2567 and CASE_CONST_ANY.
2568
2569 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
2570
2571 * config/nvptx/nvptx.md (sincossf3): New pattern.
2572
2573 2016-05-20 David Malcolm <dmalcolm@redhat.com>
2574
2575 * calls.c (maybe_complain_about_tail_call): New function.
2576 (initialize_argument_information): Call
2577 maybe_complain_about_tail_call when clearing *may_tailcall.
2578 (can_implement_as_sibling_call_p): Call
2579 maybe_complain_about_tail_call when returning false.
2580 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
2581 ensure try_tail_call is set. Call maybe_complain_about_tail_call
2582 if tail-call optimization fails.
2583 * cfgexpand.c (expand_call_stmt): Initialize
2584 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
2585 * gimple-pretty-print.c (dump_gimple_call): Dump
2586 gimple_call_must_tail_p.
2587 * gimple.c (gimple_build_call_from_tree): Call
2588 gimple_call_set_must_tail with the value of
2589 CALL_EXPR_MUST_TAIL_CALL.
2590 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
2591 (gimple_call_set_must_tail): New function.
2592 (gimple_call_must_tail_p): New function.
2593 * print-tree.c (print_node): Update printing of TREE_STATIC
2594 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
2595 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
2596 trailing comment listing applicable flags.
2597 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
2598
2599 2016-05-20 David Malcolm <dmalcolm@redhat.com>
2600
2601 * calls.c (expand_call): Move "Rest of purposes for tail call
2602 optimizations to fail" to...
2603 (can_implement_as_sibling_call_p): ...this new function, and
2604 split into multiple "if" statements.
2605
2606 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
2607
2608 * cfgloop.h (expected_loop_iterations_unbounded,
2609 expected_loop_iterations): Unconstify.
2610 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
2611 profile with known upper bound; return 3 when profile is absent.
2612 (expected_loop_iterations): Update.
2613
2614 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
2615
2616 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
2617 and get_max_loop_iterations_int.
2618
2619 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
2620
2621 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
2622 realistic upper bounds here.
2623
2624 2016-05-20 Jakub Jelinek <jakub@redhat.com>
2625
2626 PR c++/71210
2627 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
2628 calls if the LHS is variable length or has addressable type.
2629 If targets[0]->decl is a noreturn call with void return type and
2630 zero arguments, adjust fntype and remove lhs in that case.
2631
2632 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
2633
2634 PR tree-optimization/71079
2635 PR tree-optimization/71206
2636 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
2637
2638 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2639
2640 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
2641 (get_vec_alignment_for_array_decl): Likewise.
2642 (get_vec_alignment_for_record_decl): Likewise.
2643 (increase_alignment::execute): Move code to find alignment to
2644 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
2645 (type_align_map): New hash_map.
2646
2647 2016-05-20 Richard Guenther <rguenther@suse.de>
2648
2649 PR tree-optimization/29756
2650 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
2651 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
2652 * fold-const.c (operand_equal_p): Likewise.
2653 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
2654 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
2655 * tree-inline.c (estimate_operator_cost): Likewise.
2656 * tree-pretty-print.c (dump_generic_node): Likewise.
2657 * tree-ssa-operands.c (get_expr_operands): Likewise.
2658 * cfgexpand.c (expand_debug_expr): Likewise.
2659 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
2660 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
2661 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
2662 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
2663 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
2664 (execute_update_addresses_taken): Do it.
2665
2666 2016-05-20 Richard Biener <rguenther@suse.de>
2667
2668 PR tree-optimization/71185
2669 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
2670 register operations.
2671
2672 2016-05-20 Richard Biener <rguenther@suse.de>
2673
2674 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
2675 gimple_seq_add_seq_without_update.
2676 (release_bb_predicate): Assert we have no operands to free.
2677 (if_convertible_loop_p_1): Calculate post dominators later.
2678 Do not free BB predicates here.
2679 (combine_blocks): Do not recompute BB predicates.
2680 (version_loop_for_if_conversion): Save BB predicates around
2681 loop versioning.
2682
2683 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
2684
2685 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
2686 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
2687 code. Ignore sibcalls on EDGE_IGNORE edges.
2688 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
2689 on edges for sibcalls that run without prologue. The rest of the
2690 function is combined from...
2691 (fix_fake_fallthrough_edge): ... this, and ...
2692 (try_shrink_wrapping): ... a part of this. Remove the bb_with
2693 function argument, make it a local variable.
2694
2695 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
2696
2697 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
2698 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
2699 for 32-bit mode and SEH for 64-bit.
2700 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
2701 TARGET_64BIT_DEFAULT.
2702
2703 2016-05-19 Ryan Burn <contact@rnburn.com>
2704
2705 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
2706 * gengtype.c (open_base_files): Add cilk.h to ifiles.
2707
2708 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
2709
2710 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
2711 force pending loads from memory.
2712
2713 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
2714
2715 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
2716 (UNSPEC_DARN_32): New unspec constant.
2717 (UNSPEC_DARN_RAW): New unspec constant.
2718 (darn_32): New instruction.
2719 (darn_raw): New instruction.
2720 (darn): New instruction.
2721 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
2722 support and documentation for this macro.
2723 (BU_P9_MISC_1): New macro definition.
2724 (BU_P9_64BIT_MISC_0): New macro definition.
2725 (BU_P9_MISC_0): New macro definition.
2726 (darn_32): New builtin definition.
2727 (darn_raw): New builtin definition.
2728 (darn): New builtin definition.
2729 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
2730 RS6000_BUILTIN_0 directives to surround each occurrence of
2731 #include "rs6000-builtin.def".
2732 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
2733 RS6000_BTM_64BIT flags to the returned mask, depending on
2734 configuration.
2735 (def_builtin): Correct an error in the assignments made to the
2736 debugging variable attr_string.
2737 (rs6000_expand_builtin): Add support for no-operand built-in
2738 functions.
2739 (builtin_function_type): Remove fatal_error assertion that is no
2740 longer valid.
2741 (rs6000_common_init_builtins): Add support for no-operand built-in
2742 functions.
2743 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
2744 definition.
2745 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
2746 definition.
2747 (RS6000_BTM_64BIT): New macro definition.
2748 * doc/extend.texi: Document __builtin_darn (void),
2749 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
2750 functions.
2751
2752 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
2753
2754 * tree-vect-loop.c (vect_analyze_loop_2): Use also
2755 max_loop_iterations_int.
2756
2757 2016-05-19 Marek Polacek <polacek@redhat.com>
2758
2759 PR tree-optimization/71031
2760 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
2761 condition and adjust the code a bit.
2762
2763 2016-05-19 Martin Liska <mliska@suse.cz>
2764
2765 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
2766 auto_vec instead of vec.
2767
2768 2016-05-19 Martin Liska <mliska@suse.cz>
2769
2770 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
2771
2772 2016-05-19 Martin Liska <mliska@suse.cz>
2773
2774 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
2775
2776 2016-05-19 Martin Liska <mliska@suse.cz>
2777
2778 * ipa-pure-const.c (set_function_state): Remove an existing
2779 funct_state.
2780 (remove_node_data): Do not free it as it's released
2781 in set_function_state.
2782
2783 2016-05-19 Martin Liska <mliska@suse.cz>
2784
2785 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
2786 bitmap.
2787
2788 2016-05-19 Martin Liska <mliska@suse.cz>
2789
2790 * omp-simd-clone.c (simd_clone_adjust): Release vector.
2791
2792 2016-05-19 Martin Liska <mliska@suse.cz>
2793
2794 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
2795 an auto_vec instead of re-creating it.
2796
2797 2016-05-19 Martin Liska <mliska@suse.cz>
2798
2799 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
2800 auto_vec instead of vec.
2801
2802 2016-05-19 Martin Liska <mliska@suse.cz>
2803
2804 * lto-section-in.c (lto_get_section_data): Call
2805 lto_check_version with additional argument.
2806 * lto-streamer.c (lto_check_version): Add new argument.
2807 * lto-streamer.h (lto_check_version): Likewise.
2808
2809 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2810
2811 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
2812 Don't add cost of inner memory when handling sign-extended loads.
2813
2814 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
2815
2816 PR rtl-optimization/71148
2817 * cse.c (cse_main): Free dominance info.
2818 (rest_of_handle_cse): Don't free dominance info.
2819 (rest_of_handle_cse2): Likewise.
2820 (rest_of_handle_cse_after_global_opts): Likewise.
2821
2822 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2823
2824 PR target/71056
2825 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
2826 NULL_TREE early if NEON is not available. Remove now redundant check
2827 in ARM_CHECK_BUILTIN_MODE.
2828
2829 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
2830
2831 PR sanitizer/64354
2832 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
2833 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
2834 * doc/cpp.texi: Document new macros.
2835
2836 2016-05-19 Bin Cheng <bin.cheng@arm.com>
2837
2838 PR tree-optimization/69848
2839 * tree-vect-loop.c (vectorizable_reduction): Don't factor
2840 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
2841
2842 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
2843
2844 * function.c (thread_prologue_and_epilogue_insn): Move the
2845 "goto epilogue_done" one block later.
2846
2847 2016-05-19 Richard Biener <rguenther@suse.de>
2848
2849 PR tree-optimization/70729
2850 * passes.def: Move LIM pass before PRE. Remove no longer
2851 required copyprop and move first DCE out of the loop pipeline.
2852
2853 2016-05-18 David Malcolm <dmalcolm@redhat.com>
2854
2855 PR driver/69265
2856 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
2857 (OBJS-libcommon-target): ...here.
2858 * opts-common.c: Include spellcheck.h.
2859 (cmdline_handle_error): Build a vec of valid options and use it
2860 to suggest provide hints for misspelled arguments.
2861
2862 2016-05-18 Jakub Jelinek <jakub@redhat.com>
2863
2864 PR c++/71100
2865 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
2866 lhs if it has TREE_ADDRESSABLE type.
2867
2868 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
2869
2870 PR target/71145
2871 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
2872 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
2873
2874 2016-05-18 Martin Jambor <mjambor@suse.cz>
2875
2876 PR ipa/69708
2877 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
2878 input for NOP_EXPR pass-through functions.
2879 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
2880 aggregate global constant VAR_DECLs in constant jump functions.
2881
2882 2016-05-18 Martin Jambor <mjambor@suse.cz>
2883
2884 PR ipa/69708
2885 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
2886 from TREE_READONLY parameters.
2887
2888 2016-05-18 Martin Jambor <mjambor@suse.cz>
2889
2890 PR ipa/69708
2891 * cgraph.h (cgraph_indirect_call_info): New field
2892 guaranteed_unmodified.
2893 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
2894 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
2895 appropriate.
2896 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
2897 pass the parameter value to ipa_find_agg_cst_for_param.
2898 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
2899 guaranteed_unmodified, store AA results there instead of bailing out
2900 if present.
2901 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
2902 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
2903 (find_constructor_constant_at_offset): New function.
2904 (ipa_find_agg_cst_from_init): Likewise.
2905 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
2906 static initializers of contants, report back through a new paameter
2907 from_global_constant if that was the case.
2908 (try_make_edge_direct_simple_call): Also pass parameter value to
2909 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
2910 appropriate.
2911 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
2912 (ipa_read_indirect_edge_info): Likewise.
2913 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
2914 (ipa_load_from_parm_agg): Likewise.
2915
2916 2016-05-18 Jiong Wang <jiong.wang@arm.com>
2917
2918 PR rtl-optimization/71150
2919 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
2920 check.
2921
2922 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2923
2924 PR target/70915
2925 * config/rs6000/constraints.md (wE constraint): New constraint
2926 for a vector constant that can be loaded with XXSPLTIB.
2927 (wM constraint): New constraint for a vector constant of a 1's.
2928 (wS constraint): New constraint for a vector constant that can be
2929 loaded with XXSPLTIB and a vector sign extend instruction.
2930 * config/rs6000/predicates.md (xxspltib_constant_split): New
2931 predicates for wE/wS constraints.
2932 (xxspltib_constant_nosplit): Likewise.
2933 (easy_vector_constant): Add support for constants that can be
2934 loaded via XXSPLTIB.
2935 (all_ones_constant): New predicate for vector constant with all
2936 1's set.
2937 (splat_input_operand): Add support for ISA 3.0 word splat operations.
2938 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
2939 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
2940 instruction and possibly with a sign extension.
2941 (output_vec_const_move): Add support for XXSPLTIB. If we are
2942 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
2943 instead of XXLXOR/XXLORC.
2944 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
2945 operations.
2946 (rs6000_legitimize_reload_address): Likewise.
2947 (rs6000_output_move_128bit): Use output_vec_const_move to emit
2948 constants.
2949 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
2950 combine VSX_M and VSX_M2 into one iterator.
2951 (VSX_M2): Likewise.
2952 (VSINT_84): New iterators for loading constants with XXSPLTIB.
2953 (VSINT_842): Likewise.
2954 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
2955 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
2956 XXSPLTIB instruction.
2957 (xxspltib_<mode>_nosplit): Likewise.
2958 (xxspltib_<mode>_split): New insn to load up constants with
2959 XXSPLTIB and a sign extend instruction.
2960 (vsx_mov<mode>): Replace single move that handled all vector types
2961 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
2962 moves (when -mvsx-timode is in effect) into the main vector
2963 moves. Eliminate separate moves for <VSr> <VSa>, where the
2964 preferred register class (<VSr>) is listed first, and the
2965 secondary register class (<VSa>) is listed second with a '?' to
2966 discourage use. Prefer loading 0/-1 in any VSX register for ISA
2967 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
2968 that if the register was involved in a slow operation, the
2969 clear/set operation does not wait for the slow operation to
2970 finish. Adjust the length attributes for 32-bit mode. Use
2971 rs6000_output_move_128bit and drop the use of the string
2972 instructions for 32-bit movti when -mvsx-timode is in effect. Use
2973 spacing so that the alternatives and attributes don't generate
2974 long lines, and put things in columns, so that it is easier to
2975 match up the operands and attributes with the insn alternatives.
2976 (vsx_mov<mode>_64bit): Likewise.
2977 (vsx_mov<mode>_32bit): Likewise.
2978 (vsx_movti_64bit): Fold movti into normal vector moves.
2979 (vsx_movti_32bit): Likewise.
2980 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
2981 splat instructions.
2982 (vsx_splat_v4si_internal): Likewise.
2983 (vsx_splat_v4sf_internal): Likewise.
2984 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
2985 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
2986 extend vector elements.
2987 (vsx_sign_extend_hi_<mode>): Likewise.
2988 (vsx_sign_extend_si_v2di): Likewise.
2989 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
2990 declaration.
2991 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
2992 constraints. Add trailing period to wL documentation.
2993
2994 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
2995
2996 PR middle-end/71020
2997 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
2998 * tree-dfa.c (replace_abnormal_ssa_names): New function.
2999 * tree-call-cdce.c: Include tree-dfa.h.
3000 (can_guard_call_p): New function, extracted from...
3001 (can_use_internal_fn): ...here.
3002 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
3003 and return void.
3004 (shrink_wrap_one_built_in_call): Likewise.
3005 (use_internal_fn): Likewise.
3006 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
3007 and return void. Call replace_abnormal_ssa_names.
3008 (pass_call_cdce::execute): Check can_guard_call_p during the
3009 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
3010 will always change something.
3011
3012 2016-05-18 Martin Jambor <mjambor@suse.cz>
3013
3014 PR ipa/70646
3015 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
3016 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
3017
3018 2016-05-18 Martin Jambor <mjambor@suse.cz>
3019
3020 PR ipa/70646
3021 * ipa-inline.h (condition): New field size.
3022 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
3023 for comaprison and store it into the new condition.
3024 (evaluate_conditions_for_known_args): Use condition size to check
3025 access sizes for all but CHANGED conditions.
3026 (unmodified_parm_1): New parameter size_p, store access size into it.
3027 (unmodified_parm): Likewise.
3028 (unmodified_parm_or_parm_agg_item): Likewise.
3029 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
3030 (set_cond_stmt_execution_predicate): Extract access sizes and store
3031 them to conditions.
3032 (set_switch_stmt_execution_predicate): Likewise.
3033 (will_be_nonconstant_expr_predicate): Likewise.
3034 (will_be_nonconstant_predicate): Likewise.
3035 (inline_read_section): Stream condition size.
3036 (inline_write_summary): Likewise.
3037
3038 2016-05-18 Richard Biener <rguenther@suse.de>
3039
3040 * tree-ssa-loop-im.c (determine_max_movement): Properly add
3041 condition cost to PHI cost instead of total_cost.
3042
3043 2016-05-18 Martin Liska <mliska@suse.cz>
3044
3045 PR fortran/70856
3046 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
3047 merged variables.
3048
3049 2016-05-18 Richard Biener <rguenther@suse.de>
3050
3051 * lto-streamer.h (LTO_major_version): Bump to 6.
3052
3053 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
3054
3055 * function.c (make_split_prologue_seq, make_prologue_seq,
3056 make_epilogue_seq): New functions, factored out from...
3057 (thread_prologue_and_epilogue_insns): Here.
3058
3059 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
3060
3061 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
3062 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
3063 of before. Add a comment.
3064
3065 2016-05-18 Bin Cheng <bin.cheng@arm.com>
3066
3067 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
3068 expression pointer, not pointer to the pointer.
3069
3070 2016-05-18 Jakub Jelinek <jakub@redhat.com>
3071
3072 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
3073 (avx2_pbroadcast<mode>): Add another alternative with v instead
3074 of x constraints in it, using <pbroadcast_evex_isa> isa.
3075 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
3076
3077 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
3078 constraint x instead of v in second alternative, add avx512bw
3079 alternative.
3080
3081 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
3082 constraint x instead of v in second alternative, add avx512bw
3083 alternative.
3084
3085 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
3086 constraint x instead of v in second alternative, add avx512bw
3087 alternative.
3088
3089 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
3090 avx512bw alternative.
3091
3092 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
3093
3094 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
3095 array to 128 chars.
3096 (define_insn "*andnottf3"): Ditto.
3097 (define_insn "*<code><mode>3"/any_logic): Ditto.
3098 (define_insn "*<code>tf3"/any_logic): Ditto.
3099 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
3100 operand to block AVX-512VL insn variant emit when it is not enabled.
3101
3102 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
3103
3104 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
3105 constraint fot SF mode.
3106
3107 2016-05-18 Petr Murzin <petr.murzin@intel.com>
3108 Kirill Yukhin <kirill.yukhin@intel.com>
3109
3110 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
3111 modifiers.
3112 (define_insn "rsqrt14<mode>"): Ditto.
3113 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3114 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3115 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
3116 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3117 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
3118 Ditto.
3119 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
3120 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
3121 * config/i386/i386.c (ix86_print_operand): Expand check for size
3122 override codes for Intel syntax.
3123
3124 2016-05-18 Richard Biener <rguenther@suse.de>
3125
3126 PR tree-optimization/71168
3127 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
3128 initialization earlier.
3129
3130 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
3131
3132 * config/aarch64/aarch64-simd.md
3133 (aarch64_reduc_plus_internal<mode>): Rename to...
3134 (reduc_plus_scal): ...This, and remove previous implementation.
3135
3136 2016-05-18 Richard Biener <rguenther@suse.de>
3137
3138 * passes.def: Put late dse and cd_dce in canonical order.
3139
3140 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
3141
3142 * ipa-inline-transform.c (preserve_function_body_p): Look for
3143 first non-thunk clone.
3144 (save_function_body): Save into first non-thunk.
3145 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
3146 up call stmt id.
3147 (lto_output_node): Inline thunks don't need body in every
3148 partition.
3149 * lto-streamer-in.c: Do not fixup thunk clones.
3150 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
3151 thunks.
3152 * tree-inline.c (copy_bb): Be prepared for target node to be new after
3153 folding suceeds.
3154
3155 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
3156
3157 PR middle-end/63586
3158 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
3159 (reassociate_bb): Call transform_add_to_multiply.
3160
3161 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
3162
3163 * config/aarch64/aarch64.c (all_extensions): Removed unused
3164 static variable.
3165
3166 2016-05-17 Nathan Sidwell <nathan@acm.org>
3167
3168 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
3169 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
3170
3171 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
3172
3173 PR tree-optimization/54579
3174 PR middle-end/55299
3175 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
3176
3177 2016-05-17 Marek Polacek <polacek@redhat.com>
3178
3179 PR ipa/71146
3180 * tree-inline.c (expand_call_inline): Call
3181 maybe_remove_unused_call_args.
3182
3183 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
3184
3185 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
3186 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
3187 * doc/md.texi (fmin@var{m}3): Likewise.
3188
3189 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
3190
3191 * match.pd (X & C): New transformation.
3192
3193 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
3194
3195 * match.pd (~X & Y): New transformation.
3196
3197 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
3198
3199 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
3200 information for new SSA_NAME.
3201 (simplify_conversion_using_ranges): Get range through get_range_info
3202 instead of get_value_range.
3203
3204 2016-05-17 Jiong Wang <jiong.wang@arm.com>
3205
3206 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
3207 Remove inline assembly.
3208 (vmvn_s16): Likewise.
3209 (vmvn_s32): Likewise.
3210 (vmvn_u8): Likewise.
3211 (vmvn_u16): Likewise.
3212 (vmvn_u32): Likewise.
3213 (vmvnq_s8): Likewise.
3214 (vmvnq_s16): Likewise.
3215 (vmvnq_s32): Likewise.
3216 (vmvnq_u8): Likewise.
3217 (vmvnq_u16): Likewise.
3218 (vmvnq_u32): Likewise.
3219 (vmvn_p8): Likewise.
3220 (vmvnq_p16): Likewise.
3221
3222 2016-05-17 Jiong Wang <jiong.wang@arm.com>
3223
3224 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
3225 Use builtin.
3226 (vmul_n_s16): Likewise.
3227 (vmul_n_s32): Likewise.
3228 (vmul_n_u16): Likewise.
3229 (vmul_n_u32): Likewise.
3230 (vmulq_n_f32): Likewise.
3231 (vmulq_n_f64): Likewise.
3232 (vmulq_n_s16): Likewise.
3233 (vmulq_n_s32): Likewise.
3234 (vmulq_n_u16): Likewise.
3235 (vmulq_n_u32): Likewise.
3236
3237 2016-05-17 Jiong Wang <jiong.wang@arm.com>
3238
3239 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
3240 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
3241
3242 2016-05-17 Jiong Wang <jiong.wang@arm.com>
3243
3244 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
3245 to *aarch64_fma4_elt_from_dup<mode>.
3246 (*aarch64_fnma4_elt_to_128df): Rename to
3247 *aarch64_fnma4_elt_from_dup<mode>.
3248 * config/aarch64/arm_neon.h (vfma_n_f64): New.
3249 (vfms_n_f32): Likewise.
3250 (vfms_n_f64): Likewise.
3251 (vfmsq_n_f32): Likewise.
3252 (vfmsq_n_f64): Likewise.
3253
3254 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
3255
3256 * wide-int.h: Change fixed_wide_int_storage from class to struct.
3257
3258 2016-05-17 Richard Biener <rguenther@suse.de>
3259
3260 PR tree-optimization/71132
3261 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
3262 Only add control dependences for blocks in the loop.
3263 (build_rdg): Adjust.
3264 (generate_code_for_partition): Return whether loop should
3265 be destroyed and delay that.
3266 (distribute_loop): Likewise.
3267 (pass_loop_distribution::execute): Record loops to be destroyed
3268 and perform delayed destroying of loops.
3269
3270 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3271
3272 PR target/70809
3273 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
3274
3275 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
3276
3277 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
3278
3279 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
3280
3281 PR target/71114
3282 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
3283 insertion point for instructions generated by validize_mem.
3284
3285 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
3286
3287 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
3288 in brackets.
3289
3290 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
3291
3292 * config/aarch64/aarch64.c
3293 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
3294 rather than a macro.
3295
3296 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
3297
3298 * doc/invoke.texi (AArch64 Options): Various updates.
3299
3300 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
3301
3302 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
3303 into instrumentation thunks.
3304 * cif-code.def (CIF_CHKP): New.
3305
3306 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
3307
3308 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
3309
3310 2016-05-16 Martin Jambor <mjambor@suse.cz>
3311
3312 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
3313 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
3314
3315 2016-05-16 Marek Polacek <polacek@redhat.com>
3316
3317 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
3318 commentary.
3319
3320 2016-05-16 Martin Jambor <mjambor@suse.cz>
3321
3322 PR hsa/70857
3323 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
3324 the outlined kernel function.
3325
3326 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
3327
3328 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
3329 (ISA_HAS_DLSA): Ditto.
3330
3331 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
3332
3333 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
3334
3335 2016-05-16 Nathan Sidwell <nathan@acm.org>
3336
3337 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
3338 (nvptx_name_replacement): Restore. Add comment.
3339 (write_fn_proto, write_fn_proto_from_insn,
3340 nvptx_output_call_insn): Restore
3341 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
3342
3343 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
3344
3345 * config/aarch64/aarch64.md
3346 (add<mode>3_compareC_cconly_imm): Remove use of %w.
3347 (add<mode>3_compareC_imm): Likewise.
3348 (<optab>si3_uxtw): Split into register and immediate variants.
3349 (andsi3_compare0_uxtw): Likewise.
3350 (and<mode>3_compare0): Likewise.
3351 (and<mode>3nr_compare0): Likewise.
3352 (stack_protect_test_<mode>): Don't use %x for memory operands.
3353
3354 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
3355
3356 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
3357
3358 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
3359
3360 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
3361 Split integer shifts into shift_reg and bfm.
3362 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
3363 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
3364 (ror<mode>3_insn): Likewise.
3365 (<optab>si3_insn_uxtw): Likewise.
3366 (<optab><mode>3_insn): Change to rotate_imm.
3367 (extr<mode>5_insn_alt): Likewise.
3368 (extrsi5_insn_uxtw): Likewise.
3369 (extrsi5_insn_uxtw_alt): Likewise.
3370
3371 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
3372
3373 * doc/tm.texi: Regenerate.
3374 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
3375 (TARGET_INVALID_RETURN_TYPE): Remove.
3376 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
3377 TARGET_INVALID_RETURN_TYPE.
3378 * target.def (invalid_parameter_type): Remove.
3379 (invalid_return_type): Remove.
3380
3381 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
3382
3383 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
3384 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
3385 calls from thunk.
3386 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
3387 gimple body.
3388 (preserve_function_body_p): No need to preserve function body
3389 * cif-codes.def (CIF_THUNK): Remove.
3390 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
3391
3392 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
3393
3394 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
3395
3396 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
3397
3398 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
3399 for thunks.
3400
3401 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
3402
3403 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
3404 (inline_small_functions): Do not look for function symbol when
3405 resetting caches.
3406
3407 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
3408
3409 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
3410 of inline thunks
3411
3412 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
3413 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3414 Jiong Wang <jiong.wang@arm.com>
3415
3416 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
3417 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
3418 Define __ARM_FP16_ARGS when appropriate.
3419 * config/arm/arm.c (arm_invalid_parameter_type): Remove
3420 declaration.
3421 (arm_invalid_return_type): Likewise.
3422 (TARGET_INVALID_PARAMETER_TYPE): Remove.
3423 (TARGET_INVALID_RETURN_TYPE): Remove.
3424 (aapcs_vfp_sub_candidate): Allow HFmode.
3425 (aapcs_vfp_allocate): Add comment. Support HFmode.
3426 (aapcs_vfp_allocate_return_reg): Likewise.
3427 (struct aapcs_cp_arg_layout): Slightly reword comments for
3428 is_return_candidate and allocate_return_reg.
3429 (output_mov_vfp): Update assert.
3430 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
3431 condition.
3432 (arm_invalid_parameter_type): Remove.
3433 (amr_invalid_return_type): Remove.
3434 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
3435 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
3436 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
3437
3438 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
3439
3440 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
3441 * config/aarch64/arch64-protos.h
3442 (aarch64_legitimize_reload_address): Remove.
3443 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
3444 Remove.
3445
3446 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
3447
3448 * configure.ac: Add ACX_NONCANONICAL_HOST.
3449 * configure: Regenerate.
3450 * Makefile.in: Set host_noncanonical.
3451
3452 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
3453
3454 PR target/71097
3455 * config/i386/i386.md (*movtf_internal): Before register allocation,
3456 do not allow FP constants for CM_MEDIUM memory model, allow only
3457 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
3458 (*movxf_internal): Ditto.
3459 (*movdf_internal): Ditto.
3460 (*movsf_internal): Ditto.
3461
3462 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
3463
3464 PR rtl-optimization/67483
3465 * combine.c (make_compound_operation): Don't call extract_left_shift
3466 with negative shift amounts.
3467
3468 2016-05-13 Jakub Jelinek <jakub@redhat.com>
3469
3470 PR bootstrap/71071
3471 * fold-const.c (fold_checksum_tree): Allow modification
3472 of TYPE_ALIAS_SET during folding.
3473
3474 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
3475 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
3476 (ix86_split_to_parts): Likewise. Fix up formatting.
3477
3478 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
3479
3480 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
3481 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
3482 printf format.
3483
3484 2016-05-13 Nathan Sidwell <nathan@acm.org>
3485
3486 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
3487 (nvptx_name_replacement): Delete.
3488 (write_fn_proto, write_fn_proto_from_insn,
3489 nvptx_output_call_insn): Remove nvptx_name_replacement call.
3490 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
3491 * langhooks.c (add_builtin_funcction_common): Call
3492 targetm.mangle_decl_assembler_name.
3493
3494 * config/nvptx/nvptx.c (write_fn_proto): Handle
3495 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
3496
3497 2016-05-13 Martin Liska <mliska@suse.cz>
3498
3499 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
3500 and PRIu64 in printf format.
3501
3502 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3503
3504 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
3505 comment.
3506
3507 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3508
3509 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
3510 Change --param max-completely-peeled-times to
3511 --param max-completely-peel-times in dump file printing.
3512
3513 2016-05-13 Richard Biener <rguenther@suse.de>
3514
3515 PR tree-optimization/42587
3516 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
3517 (find_bswap_or_nop_1): Likewise.
3518 (bswap_replace): Likewise.
3519
3520 2016-05-13 Martin Liska <mliska@suse.cz>
3521
3522 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
3523 Initialize a variable with default value.
3524
3525 2016-05-13 Martin Liska <mliska@suse.cz>
3526
3527 * doc/invoke.texi: Enhance explanation of error recovery
3528 of sanitizers.
3529
3530 2016-05-13 Martin Liska <mliska@suse.cz>
3531
3532 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
3533 (struct cost_pair): Change inv_expr_id (int) to inv_expr
3534 (iv_inv_expr_ent *).
3535 (struct iv_inv_expr_ent): Comment struct fields.
3536 (sort_iv_inv_expr_ent): New function.
3537 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
3538 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
3539 a hash_map between iv_inv_expr_ent and number of usages.
3540 (niter_for_exit): Fix coding style.
3541 (tree_ssa_iv_optimize_init): Use renamed variable.
3542 (determine_base_object): Fix coding style.
3543 (alloc_iv): Likewise.
3544 (find_interesting_uses_outside): Likewise.
3545 (add_candidate_1): Likewise.
3546 (add_standard_iv_candidates): Likewise.
3547 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
3548 (prepare_decl_rtl): Fix coding style.
3549 (get_address_cost): Likewise.
3550 (get_shiftadd_cost): Likewise.
3551 (force_expr_to_var_cost): Likewise.
3552 (compare_aff_trees): Likewise.
3553 (get_expr_id): Restructure the function.
3554 (get_loop_invariant_expr_id): Renamed to
3555 get_loop_invariant_expr.
3556 (get_computation_cost_at): Replace usage of inv_expr_id with
3557 inv_expr.
3558 (get_computation_cost): Likewise.
3559 (determine_group_iv_cost_generic): Likewise.
3560 (determine_group_iv_cost_address): Likewise.
3561 (iv_period): Fix coding style.
3562 (iv_elimination_compare_lt): Likewise.
3563 (may_eliminate_iv): Likewise.
3564 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
3565 inv_expr.
3566 (determine_group_iv_costs): Dump invariant expressions.
3567 (iv_ca_recount_cost): Use the newly added hash_map.
3568 (iv_ca_set_remove_invariants): Fix coding style.
3569 (iv_ca_set_add_invariants): Fix coding style.
3570 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
3571 invariants.
3572 (iv_ca_set_cp): Likewise.
3573 (iv_ca_new): Initialize the newly added hash_map and remove
3574 initialization of fields.
3575 (iv_ca_free): Delete the hash_map.
3576 (iv_ca_dump): Dump invariant expressions.
3577 (iv_ca_extend): Fix coding style.
3578 (try_add_cand_for): Likewise.
3579 (create_new_ivs): Dump information about # of avg iterations and
3580 # of used invariant expressions.
3581 (rewrite_use_compare): Fix coding style.
3582 (free_loop_data): Set default value for max_inv_expr_id.
3583
3584 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
3585
3586 * cse.c (rest_of_handle_cse): Use cleanup_cfg
3587 returned value cse_cfg_altered computation.
3588 (rest_of_handle_cse2): Likewise.
3589 (rest_of_handle_cse_after_global_opts): Likewise.
3590
3591 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3592
3593 PR target/53440
3594 * config/arm/arm.c (arm32_output_mi_thunk): New.
3595 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
3596 to split Thumb1 vs TARGET_32BIT functionality.
3597 (arm_thumb1_mi_thunk): New.
3598
3599 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3600
3601 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
3602 to true.
3603
3604 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3605
3606 PR target/71080
3607 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
3608
3609 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
3610
3611 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
3612 (expand_builtin_trap): Emit a regular call.
3613 (set_builtin_user_assembler_name): Remove obsolete cases.
3614 * dse.c (scan_insn): Adjust.
3615 * except.c: Include calls.h.
3616 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
3617 emit a regular call to setjmp.
3618 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
3619 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
3620 (emit_block_move_via_libcall): Delete.
3621 (block_move_fn): Delete.
3622 (init_block_move_fn): Likewise.
3623 (emit_block_move_libcall_fn): Likewise.
3624 (emit_block_op_via_libcall): New function.
3625 (set_storage_via_libcall): Tidy up and use memset builtin.
3626 (block_clear_fn): Delete.
3627 (init_block_clear_fn): Likewise.
3628 (clear_storage_libcall_fn): Likewise.
3629 (expand_assignment): Call emit_block_move_via_libcall.
3630 Do not include gt-expr.h.
3631 * expr.h (emit_block_op_via_libcall): Declare.
3632 (emit_block_copy_via_libcall): New inline function.
3633 (emit_block_move_via_libcall): Likewise.
3634 (emit_block_comp_via_libcall): Likewise.
3635 (block_clear_fn): Delete.
3636 (init_block_move_fn): Likewise.
3637 (init_block_clear_fn): Likewise.
3638 (emit_block_move_via_libcall): Likewise.
3639 (set_storage_via_libcall): Add default parameter value.
3640 * libfuncs.h (enum libfunc_index): Remove obsolete values.
3641 (abort_libfunc): Delete.
3642 (memcpy_libfunc): Likewise.
3643 (memmove_libfunc): Likewise.
3644 (memcmp_libfunc): Likewise.
3645 (memset_libfunc): Likewise.
3646 (setbits_libfunc): Likewise.
3647 (setjmp_libfunc): Likewise.
3648 (longjmp_libfunc): Likewise.
3649 (profile_function_entry_libfunc): Likewise.
3650 (profile_function_exit_libfunc): Likewise.
3651 (gcov_flush_libfunc): Likewise.
3652 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
3653 and DECL_VISIBILITY on the declaration.
3654 (init_optabs): Do not initialize obsolete libfuncs.
3655 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
3656 * tree-core.h (ECF_RET1): Define.
3657 (ECF_TM_PURE): Adjust.
3658 (ECF_TM_BUILTIN): Likewise.
3659 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
3660 (build_common_builtin_nodes): Initialize abort builtin.
3661 Add ECF_RET1 on memcpy, memmove and memset builtins.
3662 Pass final flags for alloca and alloca_with_align builtins.
3663 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
3664 obsolete builtins.
3665 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
3666 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
3667 set_storage_via_libcall and call emit_block_copy_via_libcall.
3668
3669 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
3670
3671 * config/i386/i386.md (*call_got_x32): Change operand 0 to
3672 DImode before it is passed to ix86_output_call_operand.
3673 (*call_value_got_x32): Ditto for operand 1.
3674
3675 2016-05-12 Jiong Wang <jiong.wang@arm.com>
3676
3677 PR rtl-optimization/70904
3678 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
3679 reload for wide mode.
3680
3681 2016-05-12 Marek Polacek <polacek@redhat.com>
3682
3683 PR c/70756
3684 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
3685 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
3686 * langhooks.h (incomplete_type_error): Likewise.
3687 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
3688 parameter, pass it down to incomplete_type_error.
3689 * tree.h (size_in_bytes): New inline overload.
3690 (size_in_bytes_loc): Renamed from size_in_bytes.
3691
3692 2016-05-12 Richard Biener <rguenther@suse.de>
3693
3694 PR tree-optimization/71059
3695 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
3696 nary before looking up or entering the expression into the VN
3697 hashes.
3698 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
3699 Make sure to re-use NARYs without result as inserted by
3700 phi-translation.
3701
3702 2016-05-12 Richard Biener <rguenther@suse.de>
3703
3704 PR tree-optimization/71062
3705 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
3706 field.
3707 * tree-ssa-structalias.c (set_uids_in_ptset): Set
3708 vars_contains_restrict if the var is a restrict tag.
3709 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
3710 do not disambiguate pointers against it.
3711 (dump_points_to_solution): Re-structure and adjust for new
3712 vars_contains_restrict flag.
3713 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
3714
3715 2016-05-12 Martin Liska <mliska@suse.cz>
3716
3717 * doc/invoke.texi: Explain connection between
3718 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
3719
3720 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
3721
3722 PR tree-optimization/71006
3723 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
3724 consider COND_EXPR as a mask producer.
3725
3726 2016-05-12 Marek Polacek <polacek@redhat.com>
3727
3728 PR driver/71063
3729 * opts.c (common_handle_option): Detect missing argument for --help^.
3730
3731 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3732
3733 PR target/70830
3734 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
3735 when popping the PC and within an interrupt handler routine.
3736 Add missing tab to output of "ldmfd".
3737 (output_return_instruction): Output LDMFD with SP update rather
3738 than POP when returning from interrupt handler.
3739
3740 2016-05-12 Jakub Jelinek <jakub@redhat.com>
3741
3742 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
3743 TARGET_64BIT && TARGET_AVX512DQ.
3744 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
3745 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
3746 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
3747 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
3748 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
3749 (*vec_extractv4si_zext): Add avx512dq alternative.
3750 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
3751 use v instead of x constraint in other alternatives where possible.
3752
3753 * config/i386/sse.md (sse2_loadld): Use v instead of x
3754 constraint in alternatives 0,1,4.
3755
3756 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
3757 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
3758 v constraints instead of x and <pinsr_evex_isa> isa attribute.
3759
3760 PR target/71019
3761 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
3762 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
3763 is not emitted unless TARGET_AVX512BW.
3764 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
3765 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
3766 for the result operand.
3767
3768 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
3769 constraint instead of x in avx alternatives. Use maybe_evex instead
3770 of vex prefix.
3771
3772 * config/i386/constraints.md (Yv): New constraint.
3773 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
3774 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
3775 * config/i386/i386.md (avx512fvecmode): New mode attr.
3776 (*pushtf): Use v constraint instead of x.
3777 (*movtf_internal): Likewise. For TARGET_AVX512VL and
3778 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
3779 (*absneg<mode>2): Use Yv constraint instead of x constraint.
3780 (*absnegtf2_sse): Likewise.
3781 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
3782 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
3783 avx512f alternatives.
3784 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
3785
3786 2016-05-12 Richard Biener <rguenther@suse.de>
3787
3788 PR tree-optimization/71060
3789 * tree-data-ref.c (initialize_data_dependence_relation): Do not
3790 require exact match of DR_BASE_OBJECT but only matching address and
3791 type.
3792
3793 2016-05-12 Richard Biener <rguenther@suse.de>
3794
3795 PR tree-optimization/70986
3796 * cfganal.c: Include cfgloop.h.
3797 (dfs_find_deadend): Prefer to take edges exiting loops.
3798
3799 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3800
3801 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
3802 compile and run time.
3803
3804 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
3805
3806 PR c/43651
3807 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
3808
3809 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
3810
3811 * config/i386/i386.c (legitimize_pic_address): Use
3812 copy_to_suggested_reg instead of gen_movsi.
3813
3814 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3815
3816 * config/rs6000/predicates.md (quad_memory_operand): Move most of
3817 the code into quad_address_p and call it to share code with
3818 vsx_quad_dform_memory_operand.
3819 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
3820 d-form support.
3821 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
3822 bit instead of being a separate word. Split -mpower9-dform into
3823 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
3824 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
3825 for the register class supporting 128-bit quad word memory offsets.
3826 (mode_supports_vsx_dform_quad): Helper function to return if the
3827 register class uses quad word memory offsets.
3828 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
3829 (rs6000_debug_reg_global): Always print if we are using LRA or not.
3830 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
3831 instructions are enabled, set up the appropriate addr_masks for
3832 128-bit types.
3833 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
3834 -mpower9-dform-scalar, instead of -mpower9-dform.
3835 (rs6000_option_override_internal): Split -mpower9-dform into two
3836 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
3837 -mpower9-dform switch sets or clears both. If we are not using
3838 the LRA register allocator, do not enable -mpower9-dform-vector by
3839 default. If we are using LRA, enable -mpower9-dform-vector and
3840 -mvsx-timode if it is appropriate. Issue a warning if either
3841 -mpower9-dform-vector or -mvsx-timode are explicitly used without
3842 enabling LRA.
3843 (quad_address_offset_p): New helper function to return if the
3844 offset is legal for quad word memory instructions.
3845 (quad_address_p): New function to determin if GPR or vector
3846 register quad word memory addresses are legal.
3847 (mem_operand_gpr): Validate quad word address offsets.
3848 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
3849 d-form (register + offset) instructions.
3850 (offsettable_ok_by_alignment): Likewise.
3851 (rs6000_legitimate_offset_address_p): Likewise.
3852 (legitimate_lo_sum_address_p): Likewise.
3853 (rs6000_legitimize_address): Likewise.
3854 (rs6000_legitimize_reload_address): Add more debug statements for
3855 -mdebug=addr.
3856 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
3857 d-form instructions.
3858 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
3859 d-form instructions. Distinguish different cases in debug
3860 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
3861 d-form instructions.
3862 (rs6000_preferred_reload_class): Likewise.
3863 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
3864 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
3865 of the ISA 2.06 indexed memory instructions.
3866 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
3867 use them to save/restore the saved vector registers instead of
3868 using Altivec instructions.
3869 (rs6000_emit_epilogue): Likewise.
3870 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
3871 (rs6000_opt_masks): Split -mpower9-dform into
3872 -mpower9-dform-scalar and -mpower9-dform-vector.
3873 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
3874 was not selected.
3875 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
3876 ISA 3.0 vector indexed memory instructions, and fold the code into
3877 the normal mov<mode> patterns.
3878 (p9_vecstore_<mode>): Likewise.
3879 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
3880 instructions.
3881 (vsx_movti_64bit): Likewise.
3882 (vsx_movti_32bit): Likewise.
3883 * config/rs6000/constraints.md (wO constraint): New constraint for
3884 ISA 3.0 vector d-form support.
3885 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
3886 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
3887 include -mpower9-dform-vector until we switch over to LRA.
3888 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
3889 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
3890 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
3891 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
3892 for -mpower9-dform and -mlra.
3893 * doc/md.texi (wO constraint): Document wO constraint.
3894
3895 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
3896
3897 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
3898 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
3899 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
3900 Move handling of non-insn arguments inline into the sole user:
3901 (output_trans_func): ...here.
3902 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
3903 in emitted function prototype.
3904 (output_internal_insn_latency_func): Ditto. Simplify.
3905 (output_internal_maximal_insn_latency_func): Ditto. Delete
3906 always-unused argument.
3907 (output_insn_latency_func): Ditto.
3908 (output_maximal_insn_latency_func): Ditto.
3909
3910 2016-05-11 Richard Biener <rguenther@suse.de>
3911
3912 PR tree-optimization/71055
3913 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
3914 sth with precision not equal to access size verify we don't chop
3915 off bits.
3916
3917 2016-05-11 Richard Biener <rguenther@suse.de>
3918
3919 PR debug/71057
3920 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
3921 (dwarf2out_finish): Move retry_incomplete_types call ...
3922 (dwarf2out_early_finish): ... here.
3923
3924 2016-05-11 Richard Biener <rguenther@suse.de>
3925
3926 PR middle-end/71002
3927 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
3928 if the langhook insists on it.
3929 * fold-const.c (make_bit_field_ref): Add arg for the original
3930 reference and preserve its alias-set.
3931 (decode_field_reference): Take exp by reference and adjust it
3932 to the original memory reference.
3933 (optimize_bit_field_compare): Adjust callers.
3934 (fold_truth_andor_1): Likewise.
3935 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
3936
3937 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
3938
3939 PR middle-end/70807
3940 * cfgrtl.h (delete_insn_and_edges): Now return bool.
3941 * cfgrtl.c (delete_insn_and_edges): Likewise.
3942 * config/i386/i386.c (convert_scalars_to_vector): Remove
3943 redundant code.
3944 * cse.c (cse_insn): Compute cse_cfg_altered.
3945 (delete_trivially_dead_insns): Likewise.
3946 (cse_cc_succs): Likewise.
3947 (rest_of_handle_cse): Free dominance info if required.
3948 (rest_of_handle_cse2): Likewise.
3949 (rest_of_handle_cse_after_global_opts): Likewise.
3950
3951 2016-05-11 Alan Modra <amodra@gmail.com>
3952
3953 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
3954 abi_v4_pass_in_fpr): New functions.
3955 (rs6000_function_arg_boundary): Exclude complex IBM long double
3956 from 64-bit alignment when ABI_V4.
3957 (rs6000_function_arg, rs6000_function_arg_advance_1,
3958 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
3959
3960 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
3961
3962 PR rtl-optimization/71028
3963 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
3964 jump with just a return in the fallthrough block if the branch
3965 block contains just a return as well.
3966
3967 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
3968
3969 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
3970 * match.pd ((X & Y) ^ Y): ... this.
3971 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
3972 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
3973
3974 2016-05-10 David Malcolm <dmalcolm@redhat.com>
3975
3976 * read-md.c (require_char_ws): New function.
3977 (read_string): Simplify using require_char_ws.
3978 (handle_constants): Likewise.
3979 (handle_enum): Likewise.
3980 (handle_file): Likewise.
3981 * read-md.h (require_char_ws): New declaration.
3982 * read-rtl.c (read_conditions): Simplify using require_char_ws.
3983 (read_mapping): Likewise.
3984 (read_rtx_code): Likewise.
3985 (read_nested_rtx): Likewise.
3986
3987 2016-05-10 James Norris <jnorris@codesourcery.com>
3988
3989 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
3990 if offloading is enabled and -fopenacc or -fopenmp is specified.
3991 (CRTOFFLOADEND): Likewise.
3992 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
3993 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
3994
3995 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
3996
3997 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
3998 gotoff_operand code paths. Use copy_to_suggested_regs and
3999 expand_simple_binop where appropriate. Cleanup.
4000
4001 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
4002
4003 PR target/70799
4004 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
4005 integer constants.
4006 (dimode_scalar_chain::vector_const_cost): New.
4007 (dimode_scalar_chain::compute_convert_gain): Handle constants.
4008 (dimode_scalar_chain::convert_op): Likewise.
4009 (dimode_scalar_chain::convert_insn): Likewise.
4010
4011 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
4012
4013 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
4014 unary operation, not a binary one.
4015
4016 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
4017
4018 PR middle-end/70877
4019 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
4020 calls with type casted fndecl.
4021
4022 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
4023
4024 PR tree-optimization/70786
4025 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
4026 * calls.c (initialize_argument_information): Bind bounds
4027 with corresponding args passed by reference.
4028
4029 2016-05-10 Jakub Jelinek <jakub@redhat.com>
4030
4031 PR target/70927
4032 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
4033 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
4034 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
4035 accordingly.
4036
4037 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4038
4039 PR target/70963
4040 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
4041 code for a zero scale factor.
4042 (vsx_xvcvdpuxds_scale): Likewise.
4043
4044 2016-05-10 David Malcolm <dmalcolm@redhat.com>
4045
4046 * diagnostic-show-locus.c (layout::layout): Call show_ruler
4047 if show_ruler_p was set on the context.
4048 (layout::show_ruler): New method.
4049 * diagnostic.h (struct diagnostic_context): Add field
4050 "show_ruler_p".
4051
4052 2016-05-10 Richard Biener <rguenther@suse.de>
4053
4054 PR tree-optimization/71039
4055 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
4056 (chk_uses): New function.
4057 (propagate_with_phi): Verify we can safely replicate the lhs of an
4058 aggregate assignment on all incoming edges.
4059
4060 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
4061
4062 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
4063 Forward declare.
4064 (rx_atomic_sequence): New class.
4065 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
4066 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
4067 non-inline.
4068 (rx_atomic_sequence::rx_atomic_sequence,
4069 rx_atomic_sequence::~rx_atomic_sequence): New functions.
4070 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
4071 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
4072 CTRLREG_INTB): New constants.
4073 (FETCHOP): New code iterator.
4074 (fethcop_name, fetchop_name2): New iterator code attributes.
4075 (QIHI): New mode iterator.
4076 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
4077 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
4078 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
4079
4080 2016-05-10 Martin Liska <mliska@suse.cz>
4081
4082 * tree-inline.c (remap_dependence_clique): Do not remap
4083 debugging statements.
4084
4085 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4086
4087 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
4088 ("*fixuns_truncdfdi2_z13")
4089 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
4090 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
4091 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
4092
4093 2016-05-10 Richard Biener <rguenther@suse.de>
4094
4095 PR tree-optimization/70497
4096 PR tree-optimization/28367
4097 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
4098 split out from ...
4099 (visit_reference_op_load): ... here.
4100 (vn_reference_lookup_3): Use it to handle subreg-like accesses
4101 with simplified BIT_FIELD_REFs.
4102 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
4103 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
4104 correctly.
4105
4106 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
4107
4108 * dwarf2out.c (add_abstract_origin_attribute): Adjust
4109 documentation comment. For BLOCK nodes, add a
4110 DW_AT_abstract_origin attribute that points to the DIE generated
4111 for the origin BLOCK.
4112 (gen_lexical_block_die): Call add_abstract_origin_attribute for
4113 blocks from inlined functions.
4114
4115 2016-05-10 Alan Modra <amodra@gmail.com>
4116
4117 PR target/70947
4118 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
4119 regrename modifying insns saving lr before __morestack call.
4120 * config/rs6000/rs6000.md (split_stack_return): Similarly for
4121 insns restoring lr after __morestack call.
4122
4123 2016-05-09 Jakub Jelinek <jakub@redhat.com>
4124
4125 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
4126 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
4127 expanders.
4128 * config/i386/sse.md (vec_interleave_high<mode>,
4129 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
4130 <avx512>_vpermt2var<mode>3_maskz): Likewise.
4131
4132 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4133
4134 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
4135 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
4136 parallel reassociation for power8 and forward.
4137
4138 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
4139
4140 * config/i386/i386.md (absneg splitters with general regs): Use
4141 general_reg_operand predicate.
4142 (btsq peephole2): Use x86_64_immediate_operand to check if new
4143 value is suitable for immediate operand. Generate emitted insn
4144 using RTL expressions.
4145 (btcq peephole2): Ditto.
4146 (btrq peephole2): Ditto. Generate correct immediate operand
4147 for AND masking.
4148
4149 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
4150
4151 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
4152 bitpos.
4153
4154 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
4155
4156 * tree-affine.c (wide_int_constant_multiple_p): Add missing
4157 pointer dereference.
4158
4159 2016-05-09 Richard Biener <rguenther@suse.de>
4160
4161 PR tree-optimization/70985
4162 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
4163 op0 isn't a gimple register.
4164
4165 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
4166
4167 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
4168 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
4169 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
4170 (i6400_fpu_mult): New cpu units.
4171 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
4172 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
4173 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
4174 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
4175 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
4176 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
4177 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
4178 (i6400_msa_long_float4, i6400_msa_long_float5)
4179 (i6400_msa_long_float8, i6400_msa_fdiv_df)
4180 (i6400_msa_fdiv_sf): New reservations.
4181 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
4182 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
4183 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
4184 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
4185 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
4186 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
4187 (msa_short_cmp, msa_short_float2, msa_short_logic3)
4188 (msa_short_store4, msa_long_load, msa_short_store)
4189 (msa_long_logic, msa_long_float2, msa_long_float4)
4190 (msa_long_float5, msa_long_float8, msa_long_mult)
4191 (msa_long_fdiv, msa_long_div): New reservations.
4192
4193 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
4194 Sameera Deshpande <sameera.deshpande@imgtec.com>
4195 Matthew Fortune <matthew.fortune@imgtec.com>
4196 Graham Stott <graham.stott@imgtec.com>
4197 Chao-ying Fu <chao-ying.fu@imgtec.com>
4198
4199 * config.gcc: Add MSA header file for mips*-*-* target.
4200 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
4201 (Ubv8i, Urv8): New constraints.
4202 * config/mips/mips-ftypes.def: Add function types for MSA
4203 builtins.
4204 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
4205 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
4206 * config/mips/mips-msa.md: New file.
4207 * config/mips/mips-protos.h
4208 (mips_split_128bit_const_insns): New prototype.
4209 (mips_msa_idiv_insns): Likewise.
4210 (mips_split_128bit_move): Likewise.
4211 (mips_split_128bit_move_p): Likewise.
4212 (mips_split_msa_copy_d): Likewise.
4213 (mips_split_msa_insert_d): Likewise.
4214 (mips_split_msa_fill_d): Likewise.
4215 (mips_expand_msa_branch): Likewise.
4216 (mips_const_vector_same_val_p): Likewise.
4217 (mips_const_vector_same_bytes_p): Likewise.
4218 (mips_const_vector_same_int_p): Likewise.
4219 (mips_const_vector_shuffle_set_p): Likewise.
4220 (mips_const_vector_bitimm_set_p): Likewise.
4221 (mips_const_vector_bitimm_clr_p): Likewise.
4222 (mips_msa_vec_parallel_const_half): Likewise.
4223 (mips_msa_output_division): Likewise.
4224 (mips_ldst_scaled_shift): Likewise.
4225 (mips_expand_vec_cond_expr): Likewise.
4226 * config/mips/mips.c (enum mips_builtin_type): Add
4227 MIPS_BUILTIN_MSA_TEST_BRANCH.
4228 (mips_gen_const_int_vector_shuffle): New prototype.
4229 (mips_const_vector_bitimm_set_p): New function.
4230 (mips_const_vector_bitimm_clr_p): Likewise.
4231 (mips_const_vector_same_val_p): Likewise.
4232 (mips_const_vector_same_bytes_p): Likewise.
4233 (mips_const_vector_same_int_p): Likewise.
4234 (mips_const_vector_shuffle_set_p): Likewise.
4235 (mips_symbol_insns): Forbid loading symbols via immediate for
4236 MSA.
4237 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
4238 stores.
4239 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
4240 MSA.
4241 (mips_lx_address_p): Add support load indexed address for MSA.
4242 (mips_address_insns): Add calculation of instructions needed for
4243 stores and loads for MSA.
4244 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
4245 CONST_VECTOR for MSA and let it fall through.
4246 (mips_ldst_scaled_shift): New function.
4247 (mips_subword_at_byte): Likewise.
4248 (mips_msa_idiv_insns): Likewise.
4249 (mips_legitimize_move): Validate MSA moves.
4250 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
4251 calculation of costs for MSA division.
4252 (mips_split_move_p): Check if MSA moves need splitting.
4253 (mips_split_move): Split MSA moves if necessary.
4254 (mips_split_128bit_move_p): New function.
4255 (mips_split_128bit_move): Likewise.
4256 (mips_split_msa_copy_d): Likewise.
4257 (mips_split_msa_insert_d): Likewise.
4258 (mips_split_msa_fill_d): Likewise.
4259 (mips_output_move): Handle MSA moves.
4260 (mips_expand_msa_branch): New function.
4261 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
4262 Reinstate 'y' modifier.
4263 (mips_file_start): Add MSA .gnu_attribute.
4264 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
4265 FPRs.
4266 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
4267 (mips_class_max_nregs): Add register size for MSA supported mode.
4268 (mips_cannot_change_mode_class): Allow conversion between MSA
4269 vector modes and TImode.
4270 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
4271 instruction.
4272 (mips_secondary_reload_class): Force MSA loads/stores via memory.
4273 (mips_preferred_simd_mode): Add preffered modes for MSA.
4274 (mips_vector_mode_supported_p): Add MSA supported modes.
4275 (mips_autovectorize_vector_sizes): New function.
4276 (mips_msa_output_division): Likewise.
4277 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
4278 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
4279 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
4280 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
4281 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
4282 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
4283 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
4284 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
4285 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
4286 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
4287 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
4288 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
4289 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
4290 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
4291 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
4292 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
4293 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
4294 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
4295 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
4296 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
4297 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
4298 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
4299 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
4300 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
4301 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
4302 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
4303 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
4304 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
4305 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
4306 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
4307 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
4308 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
4309 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
4310 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
4311 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
4312 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
4313 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
4314 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
4315 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
4316 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
4317 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
4318 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
4319 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
4320 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
4321 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
4322 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
4323 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
4324 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
4325 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
4326 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
4327 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
4328 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
4329 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
4330 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
4331 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
4332 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
4333 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
4334 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
4335 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
4336 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
4337 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
4338 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
4339 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
4340 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
4341 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
4342 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
4343 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
4344 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
4345 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
4346 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
4347 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
4348 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
4349 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
4350 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
4351 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
4352 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
4353 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
4354 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
4355 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
4356 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
4357 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
4358 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
4359 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
4360 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
4361 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
4362 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
4363 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
4364 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
4365 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
4366 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
4367 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
4368 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
4369 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
4370 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
4371 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
4372 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
4373 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
4374 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
4375 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
4376 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
4377 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
4378 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
4379 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
4380 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
4381 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
4382 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
4383 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
4384 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
4385 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
4386 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
4387 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
4388 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
4389 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
4390 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
4391 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
4392 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
4393 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
4394 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
4395 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
4396 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
4397 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
4398 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
4399 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
4400 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
4401 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
4402 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
4403 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
4404 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
4405 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
4406 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
4407 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
4408 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
4409 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
4410 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
4411 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
4412 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
4413 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
4414 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
4415 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
4416 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
4417 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
4418 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
4419 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
4420 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
4421 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
4422 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
4423 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
4424 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
4425 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
4426 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
4427 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
4428 move_v builtins.
4429 (mips_get_builtin_decl_index): New array.
4430 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
4431 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
4432 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
4433 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
4434 (mips_init_builtins): Initialize mips_get_builtin_decl_index
4435 array.
4436 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
4437 hook.
4438 (mips_expand_builtin_insn): Prepare operands for
4439 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
4440 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
4441 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
4442 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
4443 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
4444 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
4445 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
4446 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
4447 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
4448 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
4449 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
4450 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
4451 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
4452 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
4453 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
4454 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
4455 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
4456 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
4457 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
4458 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
4459 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
4460 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
4461 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
4462 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
4463 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
4464 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
4465 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
4466 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
4467 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
4468 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
4469 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
4470 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
4471 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
4472 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
4473 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
4474 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
4475 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
4476 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
4477 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
4478 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
4479 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
4480 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
4481 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
4482 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
4483 These are set implicitly and an error is reported if overridden.
4484 (mips_expand_builtin_msa_test_branch): New function.
4485 (mips_expand_msa_shuffle): Likewise.
4486 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
4487 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
4488 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
4489 (mips_expand_vec_unpack): Add support for MSA.
4490 (mips_expand_vector_init): Likewise.
4491 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
4492 instead of const0_rtx.
4493 (mips_msa_vec_parallel_const_half): New function.
4494 (mips_gen_const_int_vector): Likewise.
4495 (mips_gen_const_int_vector_shuffle): Likewise.
4496 (mips_expand_msa_cmp): Likewise.
4497 (mips_expand_vec_cond_expr): Likewise.
4498 * config/mips/mips.h
4499 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
4500 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
4501 specified.
4502 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
4503 (ISA_HAS_MSA): New macro.
4504 (UNITS_PER_MSA_REG): Likewise.
4505 (BITS_PER_MSA_REG): Likewise.
4506 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
4507 (MSA_REG_FIRST): New macro.
4508 (MSA_REG_LAST): Likewise.
4509 (MSA_REG_NUM): Likewise.
4510 (MSA_REG_P): Likewise.
4511 (MSA_REG_RTX_P): Likewise.
4512 (MSA_SUPPORTED_MODE_P): Likewise.
4513 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
4514 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
4515 * config/mips/mips.md: Include mips-msa.md.
4516 (alu_type): Add simd_add.
4517 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
4518 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
4519 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
4520 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
4521 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
4522 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
4523 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
4524 simd_move, simd_load, simd_store. Choose "multi" for moves
4525 for "qword_mode".
4526 (qword_mode): New attribute.
4527 (insn_count): Add instruction count for quad moves.
4528 Increase the count for MIPS SIMD division.
4529 (UNITMODE): Add UNITMODEs for vector types.
4530 (addsub): New code iterator.
4531 * config/mips/mips.opt (mmsa): New option.
4532 * config/mips/msa.h: New file.
4533 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
4534 specified.
4535 * config/mips/mti-linux.h: Likewise.
4536 * config/mips/predicates.md
4537 (const_msa_branch_operand): New constraint.
4538 (const_uimm3_operand): Likewise.
4539 (const_uimm4_operand): Likewise.
4540 (const_uimm5_operand): Likewise.
4541 (const_uimm8_operand): Likewise.
4542 (const_imm5_operand): Likewise.
4543 (aq10b_operand): Likewise.
4544 (aq10h_operand): Likewise.
4545 (aq10w_operand): Likewise.
4546 (aq10d_operand): Likewise.
4547 (const_m1_operand): Likewise.
4548 (reg_or_m1_operand): Likewise.
4549 (const_exp_2_operand): Likewise.
4550 (const_exp_4_operand): Likewise.
4551 (const_exp_8_operand): Likewise.
4552 (const_exp_16_operand): Likewise.
4553 (const_vector_same_val_operand): Likewise.
4554 (const_vector_same_simm5_operand): Likewise.
4555 (const_vector_same_uimm5_operand): Likewise.
4556 (const_vector_same_uimm6_operand): Likewise.
4557 (const_vector_same_uimm8_operand): Likewise.
4558 (par_const_vector_shf_set_operand): Likewise.
4559 (reg_or_vector_same_val_operand): Likewise.
4560 (reg_or_vector_same_simm5_operand): Likewise.
4561 (reg_or_vector_same_uimm6_operand): Likewise.
4562 * doc/extend.texi (MIPS SIMD Architecture Functions): New
4563 section.
4564 * doc/invoke.texi (-mmsa): Document new option.
4565
4566 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4567
4568 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
4569 * configure: Regenerate.
4570 * config.in: Regenerate.
4571 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
4572 on -fvtable-verify.
4573 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
4574 (ENDFILE_VTV_SPEC): Define.
4575
4576 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
4577
4578 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
4579 registers in all interrupt handlers if necessary.
4580 (rl78_option_override): Add warning.
4581 (MUST_SAVE_MDUC_REGISTERS): New macro.
4582 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
4583 * config/rl78/rl78.c (check_mduc_usage): New function.
4584 (mduc_regs): New structure to hold MDUC register data.
4585 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
4586 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
4587 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
4588 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
4589 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
4590 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
4591
4592 2016-05-09 Bin Cheng <bin.cheng@arm.com>
4593
4594 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
4595 (tree-ssa-loop-niter.h): Ditto.
4596 (idx_within_array_bound, ref_within_array_bound): New functions.
4597 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
4598 Factor out check on writable base object to ...
4599 (base_object_writable): ... here.
4600
4601 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4602
4603 * config/arm/arm.md (probe_stack): Add modes to set source
4604 and destination.
4605
4606 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
4607
4608 * regrename.c (base_reg_class_for_rename): New static function.
4609 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
4610
4611 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
4612
4613 * cgraph.c (thunk_adjust): Export.
4614 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
4615 * cgraphunit.c (thunk_adjust): Export.
4616 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
4617 thunks.
4618 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
4619 inlinable.
4620 * tree-inline.c (expand_call_inline): Expand thunks inline.
4621
4622 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
4623
4624 PR target/70998
4625 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
4626 (*sse2_vd_cvtss2sd): Ditto.
4627 * config/i386/i386.md
4628 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
4629 Generate *sse2_vd_cvtsd2ss pattern.
4630 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
4631 Generate *sse2_vd_cvtss2sd pattern.
4632
4633 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
4634
4635 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
4636 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
4637 users.
4638
4639 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
4640
4641 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
4642 * config/sh/sh.c: Define and declare variables on first use throughout
4643 the file.
4644 (current_function_interrupt): Change to bool type.
4645 (frame_insn): Rename to emit_frame_insn and update users.
4646 (push_regs): Use bool for 'interrupt_handler' argument.
4647 (save_schedule_s): Remove.
4648 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
4649 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
4650 targetm.asm_out.unaligned_op.di.
4651 (gen_far_branch): Remove redundant forward declaration.
4652 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
4653 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
4654 (sh_set_return_address, sh_function_ok_for_sibcall,
4655 scavenge_reg): Update comments.
4656 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
4657 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
4658 (sh_attr_renesas_p): Remove unnecessary parentheses.
4659 (branch_dest): Simplify.
4660 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
4661 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
4662 (CUMULATIVE_ARGS): Change macro to typedef.
4663 (current_function_interrupt): Change to bool type.
4664 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
4665 Surround with __cplusplus ifdef.
4666 (sh_compare_op0, sh_compare_op1): Remove.
4667 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
4668
4669 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
4670
4671 * config/arm/arm.md: (arch): Add neon.
4672 (arch_enabled): Return yes for arch neon when TARGET_NEON.
4673 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
4674 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
4675 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
4676 attributes for alt renumbering. Mark alt 3 as non-predicable.
4677 (thumb2_movdf_vfp): Likewise.
4678
4679 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
4680
4681 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
4682 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
4683 (*andqi_1): Add preferred_for_speed attribute to disparage
4684 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
4685 (*<code>qi_1): Ditto.
4686 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
4687 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
4688 (*ashlqi3_1): Ditto.
4689 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
4690 Add preferred_for_size attribute to disparage alternative 0 and
4691 preferred_for_speed attribute to disparage alternative 1 for
4692 TARGET_PARTIAL_REG_STALL targets.
4693
4694 2016-05-07 Tom de Vries <tom@codesourcery.com>
4695
4696 PR tree-optimization/70956
4697 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
4698 def.
4699
4700 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
4701
4702 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
4703 * config/sh/sh.c (sh_cbranch_distance): Implement it.
4704 * config/sh/sh.md (branch_zero): Remove define_attr.
4705 (define_delay): Disable delay slot if branch distance is one insn.
4706
4707 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
4708
4709 * config/i386/i386.md (LEAMODE): New mode attribute.
4710 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
4711 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
4712 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
4713 operand 2 predicate.
4714 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
4715 (*lea<mode>_general_3): Ditto.
4716 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
4717
4718 2016-05-06 Jakub Jelinek <jakub@redhat.com>
4719
4720 * genmddump.c (main): Convert argv from char ** to const char **.
4721
4722 2016-05-06 David Malcolm <dmalcolm@redhat.com>
4723
4724 * coretypes.h (OVERRIDE): New macro.
4725 (FINAL): New macro.
4726
4727 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
4728
4729 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
4730 allow coalescing if the types are compatible.
4731
4732 2016-05-06 David Malcolm <dmalcolm@redhat.com>
4733
4734 * pass_manager.h (pass_manager::register_pass_name): New method.
4735 (pass_manager::get_pass_by_name): New method.
4736 (pass_manager::create_pass_tab): New method.
4737 (pass_manager::m_name_to_pass_map): New field.
4738 * passes.c (name_to_pass_map): Delete global in favor of field
4739 "m_name_to_pass_map" of pass_manager.
4740 (register_pass_name): Rename from a function to...
4741 (pass_manager::register_pass_name): ...this method, updating
4742 for renaming of global "name_to_pass_map" to field
4743 "m_name_to_pass_map".
4744 (create_pass_tab): Rename from a function to...
4745 (pass_manager::create_pass_tab): ...this method, updating
4746 for renaming of global "name_to_pass_map" to field.
4747 (get_pass_by_name): Rename from a function to...
4748 (pass_manager::get_pass_by_name): ...this method.
4749 (enable_disable_pass): Convert use of get_pass_by_name to
4750 a method call, locating the pass_manager singleton.
4751
4752 2016-05-06 David Malcolm <dmalcolm@redhat.com>
4753
4754 * genattr-common.c (main): Convert argv from char ** to const char **.
4755 * genattr.c (main): Likewise.
4756 * genattrtab.c (main): Likewise.
4757 * genautomata.c (initiate_automaton_gen): Likewise.
4758 (main): Likewise.
4759 * gencodes.c (main): Likewise.
4760 * genconditions.c (main): Likewise.
4761 * genconfig.c (main): Likewise.
4762 * genconstants.c (main): Likewise.
4763 * genemit.c (main): Likewise.
4764 * genenums.c (main): Likewise.
4765 * genextract.c (main): Likewise.
4766 * genflags.c (main): Likewise.
4767 * genmddeps.c (main): Likewise.
4768 * genopinit.c (main): Likewise.
4769 * genoutput.c (main): Likewise.
4770 * genpeep.c (main): Likewise.
4771 * genpreds.c (main): Likewise.
4772 * genrecog.c (main): Likewise.
4773 * gensupport.c (init_rtx_reader_args_cb): Likewise.
4774 (init_rtx_reader_args): Likewise.
4775 * gensupport.h (init_rtx_reader_args_cb): Likewise.
4776 (init_rtx_reader_args): Likewise.
4777 * gentarget-def.c (main): Likewise.
4778 * read-md.c (read_md_files): Likewise.
4779 * read-md.h (read_md_files): Likewise.
4780
4781 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
4782
4783 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
4784 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
4785 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
4786 Remove unused predicate.
4787 (register_and_not_fp_reg_operand): Ditto.
4788
4789 2016-05-06 Martin Liska <mliska@suse.cz>
4790
4791 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
4792 instead of vec as the vector is local to the function.
4793
4794 2016-05-06 Jakub Jelinek <jakub@redhat.com>
4795
4796 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
4797 avx512bw alternative.
4798
4799 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
4800 before the ashr<mode>3 pattern.
4801
4802 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
4803 v instead of x in vex or maybe_vex alternatives, use
4804 maybe_evex instead of vex in prefix.
4805
4806 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
4807 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
4808 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
4809 in vex or maybe_vex alternatives, use maybe_evex instead of vex
4810 in prefix.
4811
4812 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
4813 v instead of x in vex or maybe_vex alternatives, use
4814 maybe_evex instead of vex in prefix.
4815
4816 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
4817 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
4818 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
4819 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
4820 alternatives, use maybe_evex instead of vex in prefix.
4821
4822 * config/i386/sse.md (vec_interleave_lowv4sf,
4823 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
4824 v instead of x in vex or maybe_vex alternatives, use
4825 maybe_evex instead of vex in prefix.
4826
4827 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
4828 v instead of x in vex or maybe_vex alternatives, use
4829 maybe_evex instead of vex in prefix.
4830
4831 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
4832 v constraint instead of x.
4833
4834 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
4835
4836 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
4837 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
4838 equality first.
4839
4840 2016-05-06 Richard Biener <rguenther@suse.de>
4841
4842 PR tree-optimization/70948
4843 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4844 Properly clobber all fields of va_list for __builtin_va_start.
4845
4846 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
4847
4848 PR debug/70935
4849 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
4850 loop latch destination.
4851
4852 2016-05-06 Martin Liska <mliska@suse.cz>
4853
4854 * tree-ssa-uninit.c: Apply manual changes
4855 to the GNU coding style.
4856 (prune_uninit_phi_opnds): Rename from
4857 prune_uninit_phi_opnds_in_unrealizable_paths.
4858
4859 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4860
4861 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
4862 mspace): Remove deprecated options.
4863 * doc/invoke.texi (SH options): Remove -mspace.
4864
4865 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4866
4867 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
4868
4869 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4870
4871 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
4872 corresponding combine split pattern.
4873
4874 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4875
4876 PR target/58219
4877 * config/sh/predicates.md (long_displacement_mem_operand): New.
4878 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
4879 Add movi20, movi20s alternatives. Adjust length attribute for
4880 alternatives.
4881 (movsi_ie): Allow for any FPU. Adjust length attribute for
4882 alternatives.
4883 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
4884 attribute for alternatives.
4885 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
4886 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
4887 length attribute for alternatives.
4888
4889 2016-05-06 Richard Biener <rguenther@suse.de>
4890
4891 PR tree-optimization/70960
4892 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
4893
4894 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4895
4896 PR target/52933
4897 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
4898 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
4899
4900 2016-05-06 Marek Polacek <polacek@redhat.com>
4901
4902 PR sanitizer/70875
4903 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
4904
4905 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4906
4907 PR target/54089
4908 * config/sh/sh.md (*rotcr): Add another variant.
4909
4910 2016-05-06 Richard Biener <rguenther@suse.de>
4911
4912 PR middle-end/70931
4913 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
4914
4915 2016-05-06 Richard Biener <rguenther@suse.de>
4916
4917 PR middle-end/70941
4918 * fold-const.c (split_tree): Always convert to the original type
4919 before negating.
4920
4921 2016-05-06 Richard Biener <rguenther@suse.de>
4922
4923 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
4924 (fwprop_addr): Likewise.
4925
4926 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
4927
4928 PR target/70873
4929 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
4930 New prototype.
4931 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
4932 * config/i386/i386.md (push mem splitter): Use find_constant_src in
4933 the splitter condition.
4934 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
4935 the splitter condition.
4936 (FP float_extend load splitter): Ditto.
4937
4938 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
4939
4940 * config/i386/i386.md (peehole2 patterns): Change true_regnum
4941 to REGNO in all peephole2 patterns.
4942 (post-reload splitters): Change true_regnum to REGNO in
4943 post-reload splitters.
4944 (zero_extend splitters): Use general_reg_operand and
4945 nonimmediate_gr_operand predicates.
4946
4947 2016-05-05 Jakub Jelinek <jakub@redhat.com>
4948
4949 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
4950 v constraint instead of x.
4951
4952 2016-05-05 Alan Modra <amodra@gmail.com>
4953
4954 PR target/68662
4955 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
4956 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
4957 TARGET_NO_FP_IN_TOC for -mrelocatable.
4958 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
4959 TARGET_RELOCATABLE test.
4960 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4961 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
4962 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
4963 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4964 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
4965 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
4966 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
4967 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
4968 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
4969 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
4970 Likewise.
4971 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
4972 (rs6000_stack_info): Likewise.
4973 (rs6000_elf_asm_out_constructor): Likewise.
4974 (rs6000_elf_asm_out_destructor): Likewise.
4975 (rs6000_elf_declare_function_name): Likewise.
4976 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
4977 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
4978 Don't define.
4979
4980 2016-05-05 Alan Modra <amodra@gmail.com>
4981
4982 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
4983
4984 2016-05-05 Alan Modra <amodra@gmail.com>
4985
4986 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
4987 out-of-line gpr restore for one or two regs if that would add
4988 a save of lr.
4989
4990 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
4991
4992 PR target/70873
4993 * config/i386/i386.md
4994 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
4995 Change to post-epilogue_completed late splitter. Use sse_reg_operand
4996 as operand 0 predicate.
4997 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
4998 Ditto.
4999 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
5000 Ditto. Emit the pattern using RTX.
5001
5002 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
5003 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
5004 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
5005 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
5006 Ditto.
5007 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
5008 sse_reg_operand as operand 0 predicate.
5009
5010 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
5011 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
5012 instead of gen_rtx_REG.
5013 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
5014 Ditto.
5015
5016 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5017
5018 * function.c (emit_use_return_register_into_block): Delete.
5019 (gen_return_pattern): Delete.
5020 (emit_return_into_block): Delete.
5021 (active_insn_between): Delete.
5022 (convert_jumps_to_returns): Delete.
5023 (emit_return_for_exit): Delete.
5024 (thread_prologue_and_epilogue_insns): Delete all code dealing with
5025 simple_return for shrink-wrapped blocks.
5026 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
5027 end of blocks that need one.
5028 (get_unconverted_simple_return): Delete.
5029 (convert_to_simple_return): Delete.
5030 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
5031 (convert_to_simple_return): Ditto.
5032
5033 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5034
5035 * cfgcleanup.c (bb_is_just_return): New function.
5036 (try_optimize_cfg): Simplify jumps to return, branches to return,
5037 and branches around return.
5038
5039 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5040
5041 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
5042 branch to a return.
5043
5044 2016-05-04 Jakub Jelinek <jakub@redhat.com>
5045
5046 PR c++/70906
5047 PR c++/70933
5048 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
5049 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
5050 assert flags & OEP_HASH_CHECK, instead of asserting it
5051 never happens. Handle TARGET_EXPR.
5052 * fold-const.c (operand_equal_p): For hash verification,
5053 or in OEP_HASH_CHECK into flags.
5054
5055 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
5056
5057 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
5058 comment.
5059 (compute_samebase_partition_bases): Fix typo.
5060
5061 2016-05-04 Jakub Jelinek <jakub@redhat.com>
5062
5063 * config/i386/sse.md (vec_interleave_highv8sf,
5064 vec_interleave_lowv8sf, vec_interleave_highv4df,
5065 vec_interleave_lowv4df): Remove constraints from expanders.
5066
5067 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
5068
5069 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
5070
5071 * tree-inline.c (expand_call_inline): Fix path dealing with
5072 making lhs of call statement undefined.
5073
5074 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
5075
5076 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
5077 Check availability on NODE, too.
5078 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
5079 (cgraph_node::call_for_symbol_and_aliases): Likewise.
5080 (varpool_node::call_for_symbol_and_aliase): Likewise.
5081 * ipa-pure-const.c (add_new_function): Analyze all bodies.
5082 (propagate_pure_const): Propagate across interposable functions, too.
5083 (skip_function_for_local_pure_const): Do not skip interposable bodies
5084 with aliases.
5085 (pass_local_pure_const::execute): Update.
5086
5087 2016-05-04 Marek Polacek <polacek@redhat.com>
5088
5089 * doc/invoke.texi: Document -Wdangling-else.
5090
5091 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5092
5093 * config.gcc: Error out when conflicting multilib is detected. Do not
5094 loop over multilibs since no combination is legal.
5095
5096 2016-05-04 Alan Modra <amodra@gmail.com>
5097
5098 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
5099 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
5100 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
5101 Align .toc.
5102
5103 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
5104
5105 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
5106 Clean up p5600 comments.
5107
5108 2016-05-04 Richard Biener <rguenther@suse.de>
5109
5110 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
5111 constructor simplifications.
5112 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
5113
5114 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
5115
5116 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
5117 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
5118 result.set_rtx is null instead of aborting.
5119 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
5120 Always enable.
5121 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
5122 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
5123 *mov<mode>_store_postinc): New patterns.
5124
5125 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
5126
5127 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
5128 as commutative. Check both conversions are NOP.
5129 ((A & B) OP (C & B)): Remove.
5130
5131 2016-05-04 Alan Modra <amodra@gmail.com>
5132
5133 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
5134
5135 2016-05-04 Alan Modra <amodra@gmail.com>
5136
5137 PR target/70866
5138 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
5139 when cr2,3,4 are all fixed regs.
5140
5141 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
5142
5143 PR rtl-optimization/57193
5144 * opts.c (default_options_table): Revert OPT_frename_registers change.
5145 * doc/invoke.texi (-frename-registers, -O2): Likewise.
5146
5147 2016-05-03 Martin Sebor <msebor@redhat.com>
5148
5149 PR c++/66561
5150 * builtins.c (fold_builtin_FILE): New function.
5151 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
5152 (fold_builtin_0): Call them.
5153 * gimplify.c (gimplify_call_expr): Remove the handling of
5154 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
5155
5156 PR c++/66561
5157 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
5158 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
5159 constants.
5160
5161 PR c++/66639
5162 * doc/extend.texi (Function Names as Strings): Update __func__,
5163 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
5164 constants.
5165
5166 2016-05-03 Jakub Jelinek <jakub@redhat.com>
5167 Richard Biener <rguenther@suse.de>
5168
5169 PR tree-optimization/70916
5170 * tree-if-conv.c: Include cfganal.h.
5171 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
5172 and remove_fake_exit_edges around the optimization pass.
5173
5174 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
5175
5176 * cgraph.c (symbol_table::create_edge): Set inline_failed.
5177 (cgraph_edge::make_direct): Likewise.
5178 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
5179 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
5180 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
5181 (CIF_THUNK): New code.
5182 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
5183 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
5184 (compute_inline_parameters): Set inline_failed for thunks.
5185 (inline_analyze_function): Cleanup.
5186 * ipa-inline.c (can_inline_edge_p): Do not deal with
5187 call_stmt_cannot_inline_p.
5188 (can_early_inline_edge_p): Likewise.
5189 (early_inliner): Initialize inline_failed.
5190 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
5191
5192 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
5193
5194 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
5195 from nonimm_ssenomem_operand.
5196 (nonimm_ssenomem_operand): New predicate.
5197 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
5198 as operand 0 predicate.
5199 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
5200 Disable unsupported alternatives using "enabled" attribute.
5201 Use register_ssemem_operand as operand 0 predicate.
5202 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
5203
5204 2016-05-03 Marek Polacek <polacek@redhat.com>
5205
5206 PR c/70859
5207 * input.c (expansion_point_location): New function.
5208 * input.h (expansion_point_location): Declare.
5209
5210 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
5211
5212 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
5213 occurence with frame_offset_ ones.
5214
5215 2016-05-03 Alan Modra <amodra@gmail.com>
5216
5217 PR rtl-optimization/70890
5218 * ira.c (combine_and_move_insns): When moving def_insn, remove
5219 equivs on use_insn.
5220
5221 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
5222
5223 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
5224 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
5225 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
5226 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
5227
5228 2016-05-03 Alan Modra <amodra@gmail.com>
5229
5230 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
5231 for SAVE_MULTIPLE/STORE_MULTIPLE.
5232
5233 2016-05-03 Jakub Jelinek <jakub@redhat.com>
5234
5235 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
5236 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
5237
5238 2016-05-03 Richard Biener <rguenther@suse.de>
5239
5240 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
5241 default true.
5242 (gimplify_arg): Likewise.
5243 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
5244 re-writing the result to a decl if required.
5245 (internal_get_tmp_var): Add allow_ssa parameter
5246 and override into_ssa with it.
5247 (get_formal_tmp_var): Adjust.
5248 (get_initialized_tmp_var): Add allow_ssa parameter.
5249 (gimplify_arg): Add allow_ssa parameter and avoid generating
5250 SSA names for the result false.
5251 (gimplify_call_expr): If the call may return twice do not
5252 gimplify parameters into SSA.
5253 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
5254 (gimplify_modify_expr): Adjust assert. For noreturn calls
5255 with a SSA name LHS adjust its def.
5256 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
5257 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
5258 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
5259 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
5260 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
5261 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
5262 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
5263 (optimize_target_teams): Do not allow SSA names for clause operands.
5264 (gimplify_expr): Likewise for where we mark the result addressable.
5265 * passes.def (pass_init_datastructures): Remove.
5266 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
5267 (rewrite_stmt): Likewise.
5268 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
5269 (replace_locals_op): Replace SSA names.
5270 (copy_gimple_seq_and_replace_locals): Init src_cfun.
5271 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
5272 * cgraph.c (release_function_body): Free CFG annotations only
5273 when we have a CFG. Simplify.
5274 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
5275 force_gimple_operand instead of get_initialized_tmp_var.
5276 * tree-pass.h (make_pass_init_datastructures): Remove.
5277 * tree-ssa.c (execute_init_datastructures): Remove.
5278 (pass_data_init_datastructures): Likewise.
5279 (class pass_init_datastructures): Likewise.
5280 (make_pass_init_datastructures): Likewise.
5281 * omp-low.c (create_omp_child_function): Init SSA data structures.
5282 (grid_expand_target_grid_body): Likewise.
5283 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
5284 name before adding it to names_to_release.
5285 (remove_bb): Always release SSA defs.
5286 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
5287 before dereferencing it.
5288 * cgraphunit.c (init_lowered_empty_function): Always
5289 int SSA data structures.
5290 * tree-ssanames.c (release_defs): Remove assert that we are in
5291 SSA form.
5292 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
5293
5294 2016-05-03 Jakub Jelinek <jakub@redhat.com>
5295 Uros Bizjak <ubizjak@gmail.com>
5296
5297 PR rtl-optimization/70467
5298 * config/i386/predicates.md (x86_64_hilo_int_operand,
5299 x86_64_hilo_general_operand): New predicates.
5300 * config/i386/constraints.md (Wd): New constraint.
5301 * config/i386/i386.md (mode attr di): Use Wd instead of e.
5302 (general_hilo_operand): New mode attr.
5303 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
5304 instead of <general_operand>.
5305 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
5306 x86_64_hilo_general_operand instead of <general_operand>.
5307
5308 2016-05-03 Jakub Jelinek <jakub@redhat.com>
5309
5310 PR tree-optimization/70916
5311 * tree-if-conv.c (constant_or_ssa_name): Removed.
5312 (fold_build_cond_expr): Use is_gimple_val instead of
5313 constant_or_ssa_name.
5314
5315 PR tree-optimization/70916
5316 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
5317 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
5318
5319 PR target/49244
5320 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
5321 (optimize_atomic_bit_test_and): New function.
5322 (pass_fold_builtins::execute): Use it.
5323 * optabs.def (atomic_bit_test_and_set_optab,
5324 atomic_bit_test_and_complement_optab,
5325 atomic_bit_test_and_reset_optab): New optabs.
5326 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
5327 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
5328 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
5329 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
5330 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
5331 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
5332 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
5333 * doc/md.texi (atomic_bit_test_and_set@var{mode},
5334 atomic_bit_test_and_complement@var{mode},
5335 atomic_bit_test_and_reset@var{mode}): Document.
5336 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
5337 atomic_bit_test_and_complement<mode>,
5338 atomic_bit_test_and_reset<mode>): New expanders.
5339 (atomic_bit_test_and_set<mode>_1,
5340 atomic_bit_test_and_complement<mode>_1,
5341 atomic_bit_test_and_reset<mode>_1): New insns.
5342
5343 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
5344
5345 PR rtl-optimization/70687
5346 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
5347 instead of unsigned HOST_WIDE_INT.
5348
5349 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
5350
5351 PR rtl-optimization/44281
5352 * hard-reg-set.h (struct target_hard_regs): New field
5353 x_fixed_nonglobal_reg_set.
5354 (fixed_nonglobal_reg_set): New macro.
5355 * reginfo.c (init_reg_sets_1): Initialize it.
5356 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
5357 of fixed_reg_set.
5358 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
5359
5360 2016-05-03 Bin Cheng <bin.cheng@arm.com>
5361
5362 PR tree-optimization/56541
5363 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
5364 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
5365 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
5366 (any_complicated_phi): new static variable.
5367 (aggressive_if_conv): delete.
5368 (if_convertible_phi_p): support phis with more than two arguments.
5369 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
5370 critical pred edges.
5371 (ifcvt_split_critical_edges): support phis with more than two
5372 arguments by checking new parameter. only split critical edges
5373 if needed.
5374 (tree_if_conversion): handle simd pragma marked loop using new
5375 local variable aggressive_if_conv. check any_complicated_phi.
5376
5377 2016-05-03 Bin Cheng <bin.cheng@arm.com>
5378
5379 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
5380 before using it.
5381
5382 2016-05-03 Bin Cheng <bin.cheng@arm.com>
5383
5384 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
5385 cbase.
5386
5387 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
5388
5389 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
5390 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
5391 define_insn_and_split.
5392 (mulsi3_i): New define_insn_and_split.
5393 (mulsi3_call): Convert to define_insn.
5394 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
5395 Remove constraints.
5396
5397 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
5398
5399 * machmode.h (mode_complex): Add support to give the complex mode
5400 for a given mode.
5401 (GET_MODE_COMPLEX_MODE): Likewise.
5402 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
5403 stored by build_complex_type and gfc_build_complex_type instead of
5404 trying to figure out the appropriate mode based on the size. Raise
5405 an assertion error, if the type was not set.
5406 * genmodes.c (struct mode_data): Add field for the complex type of
5407 the given type.
5408 (blank_mode): Likewise.
5409 (make_complex_modes): Remember the complex mode created in the
5410 base type.
5411 (emit_mode_complex): Write out the mode_complex array to map a
5412 type mode to the complex version.
5413 (emit_insn_modes_c): Likewise.
5414 * tree.c (build_complex_type): Set the complex type to use before
5415 calling layout_type.
5416 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
5417 support for __float128 complex datatypes.
5418 (rs6000_hard_regno_mode_ok): Likewise.
5419 (rs6000_setup_reg_addr_masks): Likewise.
5420 (rs6000_complex_function_value): Likewise.
5421 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
5422 __float128 and __ibm128 complex.
5423 (FLOAT128_IBM_P): Likewise.
5424 (ALTIVEC_ARG_MAX_RETURN): Likewise.
5425 * doc/extend.texi (Additional Floating Types): Document that
5426 -mfloat128 must be used to enable __float128. Document complex
5427 __float128 and __ibm128 support.
5428
5429 2016-05-02 Jakub Jelinek <jakub@redhat.com>
5430
5431 PR target/49244
5432 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
5433 char/short arguments promoted to int because of promote_prototypes.
5434
5435 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
5436
5437 * config/i386/predicates.md (register_ssemem_operand): New predicate.
5438 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
5439 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
5440 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
5441 alternatives using "enabled" attribute. Use register_ssemem_operand
5442 as operand 1 predicate.
5443 (*cmpi<unord>xf_i387): Split XFmode pattern from
5444 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
5445 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
5446 *absneg<mode>2_i387. Disable unsupported alternatives using
5447 "enabled" attribute.
5448 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
5449
5450 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
5451
5452 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
5453 marker.
5454 (oacc_loop_process): Check mask for loop termination.
5455
5456 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
5457
5458 * cif-code.def (CIF_THUNK): Add.
5459 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
5460 accidental change.
5461
5462 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
5463
5464 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
5465 (dump_inline_summary): Dump it.
5466 (fp_expression_p): New predicate.
5467 (estimate_function_body_sizes): Use it.
5468 (inline_merge_summary): Merge fp_expressions.
5469 (inline_read_section): Read fp_expressions.
5470 (inline_write_summary): Write fp_expressions.
5471 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
5472 codegen boundary if either caller or callee is !fp_expressions.
5473 * ipa-inline.h (inline_summary): Add fp_expressions.
5474 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
5475 to fp_expressions be sure the fp generation flags are updated.
5476
5477 2016-05-02 Jakub Jelinek <jakub@redhat.com>
5478
5479 PR rtl-optimization/70467
5480 * cse.c (cse_insn): Handle no-op MEM moves after folding.
5481
5482 PR rtl-optimization/70467
5483 * ipa-pure-const.c (check_call): Handle internal calls even in
5484 ipa mode like in local mode.
5485
5486 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5487
5488 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
5489
5490 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
5491
5492 * match.pd (X u< X, X u> X): New transformations.
5493
5494 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
5495
5496 * flag-types.h (enum warn_strict_overflow_code): Move ...
5497 * coretypes.h: ... here.
5498 * fold-const.h (fold_overflow_warning): Declare.
5499 * fold-const.c (fold_overflow_warning): Make non-static.
5500 (fold_comparison): Move the transformation of X +- C1 CMP C2
5501 into X CMP C2 -+ C1 ...
5502 * match.pd: ... here.
5503 * gimple-fold.c (fold_stmt_1): Protect with
5504 fold_defer_overflow_warnings.
5505
5506 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
5507
5508 * omp-low.c (struct oacc_loop): Add 'inner' field.
5509 (new_oacc_loop_raw): Initialize it to zero.
5510 (oacc_loop_fixed_partitions): Initialize it.
5511 (oacc_loop_auto_partitions): Partition outermost loop to outermost
5512 available partitioning.
5513
5514 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
5515
5516 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
5517 register_operand.
5518 (umulsidi3): Likewise.
5519 (indirect_jump): Fix jump instruction assembly patterns.
5520
5521 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
5522
5523 PR target/70860
5524 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
5525 (nvptx_function_value): Assert non-NULL cfun.
5526
5527 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
5528
5529 PR rtl-optimization/70886
5530 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
5531
5532 * cselib.h (rtx_equal_for_cselib_1): Declare.
5533 (rtx_equal_for_cselib_p: New inline function.
5534 * cselib.c (rtx_equal_for_cselib_p): Delete.
5535 (rtx_equal_for_cselib_1): Make public.
5536
5537 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
5538
5539 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
5540 (register_mixssei387nonimm_operand): Remove predicate.
5541 * config/i386/i386.md (*fop_<mode>_comm): Merge from
5542 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
5543 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
5544 for TARGET_MIX_SSE_I387 alternatives.
5545 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
5546 Disable unsupported alternatives using "enabled" attribute. Use
5547 nonimm_ssenomem_operand as operand 1 predicate. Also check
5548 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
5549
5550 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
5551
5552 * tree.c (cst_and_fits_in_hwi): Simplify.
5553
5554 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
5555
5556 * tree.h (wi::to_wide): New function.
5557 * expr.c (expand_expr_real_1): Use wi::to_wide.
5558 * fold-const.c (int_const_binop_1): Likewise.
5559 (extract_muldiv_1): Likewise.
5560
5561 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
5562
5563 * wide-int.h: Update offset_int and widest_int documentation.
5564 (WI_SIGNED_SHIFT_RESULT): New macro.
5565 (wi::binary_shift): Define signed_shift_result_type for
5566 shifts on offset_int- and widest_int-like types.
5567 (generic_wide_int): Support <<= and >>= if << and >> are supported.
5568 * tree.h (int_bit_position): Use shift operators instead of wi::
5569 shifts.
5570 * alias.c (adjust_offset_for_component_ref): Likewise.
5571 * expr.c (get_inner_reference): Likewise.
5572 * fold-const.c (fold_comparison): Likewise.
5573 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
5574 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
5575 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5576 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
5577 (stmt_kills_ref_p): Likewise.
5578 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
5579 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
5580 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5581 (ao_ref_init_from_vn_reference): Likewise.
5582
5583 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
5584
5585 * wide-int.h: Update offset_int and widest_int documentation.
5586 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
5587 (wi::binary_traits): Allow ordered comparisons between offset_int and
5588 offset_int, between widest_int and widest_int, and between either
5589 of these types and basic C types.
5590 (operator <, <=, >, >=): Define for the same combinations.
5591 * tree.h (tree_int_cst_lt): Use comparison operators instead
5592 of wi:: comparisons.
5593 (tree_int_cst_le): Likewise.
5594 * gimple-fold.c (fold_array_ctor_reference): Likewise.
5595 (fold_nonarray_ctor_reference): Likewise.
5596 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
5597 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
5598 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
5599 * tree-sra.c (completely_scalarize): Likewise.
5600 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
5601 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
5602 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
5603 (check_for_binary_op_overflow): Likewise.
5604 (search_for_addr_array): Likewise.
5605 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
5606
5607 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
5608
5609 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
5610 (arc_save_restore): Likewise.
5611 (arc_dwarf_register_span): Likewise.
5612 (arc_output_pic_addr_const): Initialize suffix variable.
5613
5614 2016-05-02 Martin Liska <mliska@suse.cz>
5615
5616 * symbol-summary.h (function_summary::function_summary):
5617 Remove checking assert for all cgraph nodes.
5618 (function_summary::get): Check summary_uid.
5619 (symtab_insertion): Check summary_uid.
5620
5621 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
5622
5623 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
5624 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
5625 bmaskn instruction.
5626 (arc_dwarf_register_span): Remove enum keyword.
5627 (compact_memory_operand_p): New function.
5628 * config/arc/arc.h (reg_class): Add code density register classes.
5629 (REG_CLASS_NAMES): Likewise.
5630 (REG_CLASS_CONTENTS): Likewise.
5631 * config/arc/arc.md (*movqi_insn): Add code density instructions.
5632 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
5633 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
5634 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
5635 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
5636 constraints.
5637 (h, Rcd, Rsd, Rzd): New register constraints.
5638 (T): Use compact_memory_operand_p function.
5639 * config/arc/predicates.md (compact_load_memory_operand): Remove.
5640
5641 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
5642
5643 * config/sh/sh.md (*negnegt, *movtt): Remove.
5644
5645 2016-05-02 Marek Polacek <polacek@redhat.com>
5646 Tom de Vries <tom@codesourcery.com>
5647
5648 PR tree-optimization/70700
5649 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
5650 bigger than FIRST_REF_NODE.
5651
5652 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
5653
5654 PR target/52898
5655 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
5656 TARGET_CMPEQDI_T.
5657 (prepare_cbranch_operands): Don't use scratch register. Assume that
5658 function is used when pseudos can be created.
5659 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
5660 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
5661 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
5662 define_expand. Allow it only when pseudos can be created.
5663 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
5664
5665 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
5666
5667 * config/i386/constraints.md (BC): Only allow -1 operands.
5668 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
5669 Add "enabled" attribute. Update XI mode attribute calculation.
5670 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
5671 (*movoi_internal_avx): Update XI mode attribute calculation.
5672 (*movti_internal): Ditto.
5673
5674 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
5675
5676 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
5677 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
5678
5679 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
5680
5681 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
5682 statement on instruction code. Remove trailing spaces.
5683 (altivec_expand_stv_builtin): Likewise.
5684
5685 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
5686
5687 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
5688 (TARGET_FPU_DOUBLE): Simplify.
5689 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
5690 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
5691 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
5692 with 'TARGET_FPU_DOUBLE'.
5693 * config/sh/sh.md: Likewise.
5694
5695 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
5696
5697 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
5698 SH_DIV_STR_FOR_SIZE): Remove.
5699 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
5700 SH_DIV_STR_FOR_SIZE): Remove.
5701
5702 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
5703
5704 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
5705 logical_reg_operand): Delete.
5706 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
5707 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
5708 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
5709 match_operand and match_test.
5710 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
5711 variables on their first use. Return bool values.
5712 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
5713 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
5714 arith_reg_operand for input operand. Remove empty constraints.
5715 (xorsi3): Delete.
5716 (*xorsi3_compact): Rename to xorsi3.
5717 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
5718 (*zero_extend<mode>si2_disp_mem): Update comment.
5719 (mov_nop): Delete.
5720
5721 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
5722
5723 * config/sh/t-sh: Remove SH5 support.
5724 * config.gcc: Likewise.
5725 * configure: Likewise.
5726
5727 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5728
5729 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
5730
5731 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
5732
5733 * config/sh/sh.c (register_sh_passes, sh_option_override,
5734 sh_print_operand, prepare_move_operands,
5735 sh_can_follow_jump): Remove TARGET_SH1 checks.
5736 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
5737 PROMOTE_MODE): Likewise.
5738 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
5739 movdi): Likewise.
5740
5741 2016-04-30 Alan Modra <amodra@gmail.com>
5742
5743 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
5744 restoring when fixed_reg_p, but allow out-of-line or stmw save.
5745 Check for user regs later to avoid unnecessary looping over regs.
5746 Merge user reg check with non-saved reg check. Don't force
5747 inline VR restore when static chain used.
5748 (rs6000_frame_related): Omit eh_frame info for user regs when
5749 saving.
5750 (fixed_regs_p): Delete.
5751
5752 2016-04-30 Alan Modra <amodra@gmail.com>
5753
5754 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
5755 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
5756 Update all uses.
5757
5758 2016-04-30 Alan Modra <amodra@gmail.com>
5759
5760 PR target/69645
5761 * config/rs6000/rs6000.c (fixed_reg_p): New function.
5762 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
5763 Update all uses.
5764
5765 2016-04-30 Alan Modra <amodra@gmail.com>
5766
5767 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
5768 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
5769 flag_pic test for Darwin.
5770
5771 2016-04-30 Alan Modra <amodra@gmail.com>
5772
5773 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
5774 throw_calls_crossed.
5775 (REG_FREQ_CALLS_CROSSED): Delete.
5776 (REG_N_THROWING_CALLS_CROSSED): Delete.
5777 * regstat.c (regstat_bb_compute_ri): Don't calculate
5778 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
5779 (dump_reg_info): Don't print call cross frequency.
5780 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
5781 and REG_N_THROWING_CALLS_CROSSED.
5782
5783 2016-04-30 Alan Modra <amodra@gmail.com>
5784
5785 * regs.h (struct reg_info_t): Delete live_length.
5786 (REG_LIVE_LENGTH): Delete macro.
5787 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
5788 local_live, local_processed and local_live_last_luid params.
5789 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
5790 Formatting fixes.
5791 (regstat_compute_ri): Adjust for above. Don't set
5792 REG_LIVE_LENGTH.
5793 (dump_reg_info): Don't print live length.
5794 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
5795 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
5796 Localize loop_depth var.
5797
5798 2016-04-30 Alan Modra <amodra@gmail.com>
5799
5800 * ira.c (enum valid_equiv): New.
5801 (validate_equiv_mem): Return enum.
5802 (update_equiv_mem): Create replacement in more cases.
5803 (add_store_equivs): Update validate_equiv_mem call.
5804
5805 2016-04-30 Alan Modra <amodra@gmail.com>
5806
5807 * ira.c (combine_and_move_insns): Rather than scanning insns,
5808 use DF infrastucture to find use and def insns.
5809
5810 2016-04-30 Alan Modra <amodra@gmail.com>
5811
5812 ira.c (combine_and_move_insns): Move invariant conditions..
5813 (ira.c): ..to here. Call combine_and_move_insns before
5814 add_store_equivs. Call grow_reg_equivs later. Allocate
5815 req_equiv later using max_reg_num() rather than global max_regno.
5816 (contains_replace_regs): Delete.
5817 (add_store_equivs): Remove contains_replace_regs test.
5818
5819 2016-04-30 Alan Modra <amodra@gmail.com>
5820
5821 * ira.c (struct equiv_mem_data): New.
5822 (equiv_mem, equiv_mem_modified): Delete static vars.
5823 (validate_equiv_mem_from_store): Use "data" param to communicate..
5824 (validate_equiv_mem): ..from here.
5825
5826 2016-04-30 Alan Modra <amodra@gmail.com>
5827
5828 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
5829 split out from..
5830 (update_reg_equivs): ..here. Move allocation and freeing of
5831 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
5832 end_alias_analysis to..
5833 (ira): ..here.
5834
5835 2016-04-30 Alan Modra <amodra@gmail.com>
5836
5837 * ira.c (pdx_subregs): Delete.
5838 (struct equivalence): Add pdx_subregs field.
5839 (set_paradoxical_subreg): Remove pdx_subregs param. Update
5840 pdx_subregs access.
5841 (update_equiv_regs): Don't create or free pdx_subregs. Update
5842 pdx_subregs access.
5843
5844 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5845
5846 * config/rs6000/altivec.h: Change definitions of vec_xl and
5847 vec_xst.
5848 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
5849 (LD_ELEMREV_V2DI): New.
5850 (LD_ELEMREV_V4SF): New.
5851 (LD_ELEMREV_V4SI): New.
5852 (LD_ELEMREV_V8HI): New.
5853 (LD_ELEMREV_V16QI): New.
5854 (ST_ELEMREV_V2DF): New.
5855 (ST_ELEMREV_V2DI): New.
5856 (ST_ELEMREV_V4SF): New.
5857 (ST_ELEMREV_V4SI): New.
5858 (ST_ELEMREV_V8HI): New.
5859 (ST_ELEMREV_V16QI): New.
5860 (XL): New.
5861 (XST): New.
5862 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5863 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
5864 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
5865 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
5866 (altivec_expand_builtin): Add handling for
5867 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
5868 (rs6000_invalid_builtin): Add error-checking for
5869 RS6000_BTM_P9_VECTOR.
5870 (altivec_init_builtins): Define builtins used to implement vec_xl
5871 and vec_xst.
5872 (rs6000_builtin_mask_names): Define power9-vector.
5873 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
5874 (RS6000_BTM_P9_VECTOR): Define.
5875 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
5876 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
5877 (vsx_ld_elemrev_v2df): Likewise.
5878 (vsx_ld_elemrev_v4sf): Likewise.
5879 (vsx_ld_elemrev_v4si): Likewise.
5880 (vsx_ld_elemrev_v8hi): Likewise.
5881 (vsx_ld_elemrev_v16qi): Likewise.
5882 (vsx_st_elemrev_v2df): Likewise.
5883 (vsx_st_elemrev_v2di): Likewise.
5884 (vsx_st_elemrev_v4sf): Likewise.
5885 (vsx_st_elemrev_v4si): Likewise.
5886 (vsx_st_elemrev_v8hi): Likewise.
5887 (vsx_st_elemrev_v16qi): Likewise.
5888 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
5889 grammar.
5890
5891 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
5892
5893 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
5894 out into ...
5895 (simplify_control_stmt_condition_1): ... here. Recurse into
5896 BIT_AND_EXPRs and BIT_IOR_EXPRs.
5897
5898 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
5899
5900 PR target/69810
5901 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
5902 (zero_extendqi<mode>2_dot): Revert earlier conversion from
5903 define_insn_and_split to define_insn.
5904 (zero_extendqi<mode>2_dot2): Same.
5905 (extendqi<mode>2_dot): Same.
5906 (extendqi<mode>2_dot2): Same.
5907
5908 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
5909
5910 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
5911 (probe_stack): New expander.
5912 (probe_stack_<mode>): New insn pattern.
5913
5914 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
5915
5916 * config/i386/i386.md
5917 (operations with memory inputs setting flags peephole2):
5918 Remove uneeded REG_P checks. Cleanup pattern generation.
5919
5920 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
5921
5922 * tree-vect-loop.c (vect_transform_loop): Fix
5923 nb_iterations_upper_bound computation for vectorized loop.
5924
5925 2016-04-29 Marek Polacek <polacek@redhat.com>
5926 Jakub Jelinek <jakub@redhat.com>
5927
5928 PR sanitizer/70342
5929 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
5930 TARGET_EXPR_SLOT as a base.
5931
5932 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
5933
5934 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
5935 with 'rCm2' constraints to limit possible immediate size.
5936 (*load_zeroextendqisi_update): Likewise.
5937 (*load_signextendqisi_update): Likewise.
5938 (*loadhi_update): Likewise.
5939 (*load_zeroextendhisi_update): Likewise.
5940 (*load_signextendhisi_update): Likewise.
5941 (*loadsi_update): Likewise.
5942 (*loadsf_update): Likewise.
5943
5944 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
5945
5946 * config/i386/predicates.md (constm1_operand): Fix comparison.
5947
5948 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
5949
5950 * testsuite/gcc.target/arc/ieee_eq.c: New test.
5951
5952 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
5953
5954 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
5955 remaining SH5 related settings.
5956 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
5957 shmedia_prepare_call_address): Delete.
5958 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
5959 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
5960 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
5961 UNSUPPORTED_SH2A): Remove m5 checks.
5962 (sh_divide_strategy_e): Remove SH5 division strategies.
5963 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
5964 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
5965
5966 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
5967
5968 * config/s390/s390.c (s390_rtx_costs): Update documentation.
5969
5970 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5971
5972 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
5973 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
5974 Change lder to ldr.
5975 * config/s390/vector.md ("mov<mode>"): Likewise.
5976
5977 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
5978
5979 * config/s390/constraints.md ("U", "W"): Invoke
5980 s390_mem_constraint with "ZR" and "ZT".
5981 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
5982 addresses when using LRA. Accept also short displacements for S
5983 and T constraints. Do not check for long displacement target for
5984 S and T constraints.
5985 (s390_mem_constraint): Remove handling of U and W constraints.
5986 * config/s390/s390.md (various patterns): Remove the short
5987 displacement constraints (Q and R) if a long displacement
5988 constraint is present. Add longdisp as required CPU capability.
5989 * config/s390/vector.md: Likewise.
5990 * config/s390/vx-builtins.md: Likewise.
5991
5992 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5993
5994 PR target/60040
5995 * reload1.c (reload): Call finish_spills before
5996 restarting reload loop. Skip select_reload_regs
5997 if update_eliminables_and_spill returns true.
5998
5999 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
6000
6001 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
6002 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
6003 (umulhisi3_imm): Update predicates and constraint letters.
6004 (umulhisi3_reg): Declare instruction as commutative.
6005 * config/arc/constraints.md (J12, J16): New constraints.
6006 * config/arc/predicates.md (short_unsigned_const_operand): New
6007 predicate.
6008 (arc_short_operand): Likewise.
6009 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
6010
6011 2016-04-29 Richard Biener <rguenther@suse.de>
6012
6013 PR tree-optimization/13962
6014 PR tree-optimization/65686
6015 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
6016 * tree-ssa-alias.c (ptrs_compare_unequal): New function
6017 using PTA to compare pointers.
6018 * match.pd: Add pattern for pointer equality compare simplification
6019 using ptrs_compare_unequal.
6020
6021 2016-04-29 Richard Biener <rguenther@suse.de>
6022
6023 * stor-layout.c (layout_type): Do not build a pointer-to-element
6024 type for arrays.
6025
6026 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
6027
6028 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
6029 Use SWI mode iterator. Use general_reg_operand predicate.
6030 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
6031 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
6032 predicates.
6033
6034 2016-04-29 Jakub Jelinek <jakub@redhat.com>
6035
6036 PR middle-end/70843
6037 * fold-const.c (operand_equal_p): Don't verify hash value equality
6038 if arg0 == arg1.
6039 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
6040 and OMP_CLAUSE.
6041
6042 2016-04-28 Jakub Jelinek <jakub@redhat.com>
6043
6044 PR target/70858
6045 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
6046 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
6047 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
6048 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
6049 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
6050
6051 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
6052
6053 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
6054 to info. Don't initialize separate fields to 0. Clean up
6055 formatting a bit.
6056
6057 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
6058
6059 * config/i386/i386.md (peephole2s for operations with memory inputs):
6060 Use SWI mode iterator.
6061 (peephole2s for operations with memory outputs): Ditto.
6062 Do not check for stack checking probe.
6063
6064 (probe_stack): Remove expander.
6065
6066 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
6067 Andrew Burgess <andrew.burgess@embecosm.com>
6068
6069 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
6070 operands as 32-bits.
6071
6072 2016-04-28 Jason Merrill <jason@redhat.com>
6073
6074 * gdbinit.in: Skip line-map.h.
6075
6076 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
6077 Andrew Burgess <andrew.burgess@embecosm.com>
6078
6079 * config/arc/arc.c (arc_conditional_register_usage): Take
6080 TARGET_RRQ_CLASS into account.
6081 (arc_print_operand): Support printing 'p' and 's' operands.
6082 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
6083 as 0.
6084 (TARGET_RRQ_CLASS): Define.
6085 (IS_POWEROF2_OR_0_P): Define.
6086 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
6087 alternatives.
6088 (*tst_movb): New define_insn.
6089 (*tst): Avoid recognition if it could prevent '*tst_movb'
6090 combination; replace c/CnL with c/Chs alternative.
6091 (*tst_bitfield_tst): New define_insn.
6092 (*tst_bitfield_asr): New define_insn.
6093 (*tst_bitfield): New define_insn.
6094 (andsi3_i): Add Rrq variant.
6095 (extzv): New define_expand.
6096 (insv): New define_expand.
6097 (*insv_i): New define_insn.
6098 (*movb): New define_insn.
6099 (*movb_signed): New define_insn.
6100 (*movb_high): New define_insn.
6101 (*movb_high_signed): New define_insn.
6102 (*movb_high_signed + 1): New define_split pattern.
6103 (*mrgb): New define_insn.
6104 (*mrgb + 1): New define_peephole2 pattern.
6105 (*mrgb + 2): New define_peephole2 pattern.
6106 * config/arc/arc.opt (mbitops): New option for nps400, uses
6107 TARGET_NPS_BITOPS_DEFAULT.
6108 * config/arc/constraints.md (q): Make register class conditional.
6109 (Rrq): New register constraint.
6110 (Chs): New constraint.
6111 (Clo): New constraint.
6112 (Chi): New constraint.
6113 (Cbf): New constraint.
6114 (Cbn): New constraint.
6115 (C18): New constraint.
6116 (Cbi): New constraint.
6117
6118 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
6119
6120 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
6121 dst->popcount.
6122 (bitmap_intersection_of_preds): Ditto.
6123 (bitmap_union_of_succs): Ditto.
6124 (bitmap_union_of_preds): Ditto.
6125 * sbitmap.c (do_popcount): Delete.
6126 (BITMAP_DEBUGGING): Delete.
6127 (sbitmap_verify_popcount): Delete.
6128 (sbitmap_alloc): Don't initialize the popcount field.
6129 (sbitmap_alloc_with_popcount): Delete.
6130 (sbitmap_resize): Don't resize the popcount array.
6131 (sbitmap_vector_alloc): Don't initialize the popcount field.
6132 (bitmap_copy): Don't copy the popcount array.
6133 (bitmap_clear): Don't clear the popcount array.
6134 (bitmap_clear): Delete the popcount array handling.
6135 (bitmap_ior_and_compl): Delete the popcount assert.
6136 (bitmap_not): Ditto.
6137 (bitmap_and_compl): Ditto.
6138 (bitmap_and): Delete the popcount array handling.
6139 (bitmap_xor): Ditto.
6140 (bitmap_ior): Ditto.
6141 (bitmap_or_and): Delete the popcount assert.
6142 (bitmap_and_or): Ditto.
6143 (popcount_table): Delete.
6144 (sbitmap_elt_popcount): Delete.
6145 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
6146 (bitmap_set_bit): Delete the popcount assert.
6147 (bitmap_clear_bit): Ditto.
6148 (sbitmap_free): Don't free the popcount array.
6149 (sbitmap_alloc_with_popcount): Delete declaration.
6150 (sbitmap_popcount): Ditto.
6151
6152 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
6153 Andrew Burgess <andrew.burgess@embecosm.com>
6154
6155 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
6156 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
6157 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
6158 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
6159 * config/arc/arc.opt (mcmem): New option.
6160 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
6161 supply length for r/m alternative.
6162 (*extendqisi2_ac): Likewise.
6163 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
6164 r/Uex alternative.
6165 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
6166 (movhi_insn): Likewise.
6167 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
6168 (*zero_extendqihi2_i): Add r/Ucm alternative.
6169 (*zero_extendqisi2_ac): Likewise.
6170 (*zero_extendhisi2_i): Likewise.
6171 * config/arc/constraints.md (Uex): New memory constraint.
6172 (Ucm): New define_constraint.
6173 * config/arc/predicates.md (long_immediate_loadstore_operand):
6174 Return 0 for MEM with cmem_address address.
6175 (cmem_address_0): New predicates.
6176 (cmem_address_1): Likewise.
6177 (cmem_address_2): Likewise.
6178 (cmem_address): Likewise.
6179
6180 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
6181
6182 * config/rs6000/rs6000.c (machine_function): Rename
6183 insn_chain_scanned_p to spe_insn_chain_scanned_p.
6184 (rs6000_stack_info): Adjust.
6185
6186 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
6187 Andrew Burgess <andrew.burgess@embecosm.com>
6188
6189 * config/arc/constraints.md (Usd): Convert to define_constraint.
6190 (Us<): Likewise.
6191 (Us>): Likewise.
6192
6193 2016-04-28 Jakub Jelinek <jakub@redhat.com>
6194
6195 PR target/70821
6196 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
6197 Add new peephole2 where the first insn is *mov<mode>_or instead of
6198 *mov<mode>_internal.
6199
6200 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
6201
6202 * tracer.c (bb_seen): Make static.
6203
6204 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
6205
6206 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
6207 support, setup defaults.
6208 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
6209 * config/arc/arc.c (arc_init): Add NPS400 support.
6210 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
6211 (TARGET_ARC700): NPS400 is also an ARC700.
6212 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
6213
6214 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
6215
6216 PR target/70668
6217 * config/nds32/nds32.md (casesi): Don't access the operands array
6218 out of bounds.
6219
6220 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
6221
6222 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
6223 (or $-1,reg peephole2): Ditto.
6224 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
6225
6226 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
6227
6228 * doc/extend.texi (Common Function Attributes) [optimize]:
6229 Discourage use of the optimize attribute.
6230
6231 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
6232
6233 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
6234 special case builtin.
6235 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
6236 ALTIVEC_BUILTIN_VEC_ADDE.
6237 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
6238 support for ALTIVEC_BUILTIN_VEC_ADDE.
6239 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
6240 for __builtin_vec_adde.
6241
6242 2016-04-28 Jakub Jelinek <jakub@redhat.com>
6243
6244 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
6245 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
6246
6247 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6248
6249 PR testsuite/70595
6250 * doc/sourcebuild.texi (Effective-Target Keywords, Other
6251 attributes): Document cilkplus_runtime.
6252
6253 2016-04-28 Martin Jambor <mjambor@suse.cz>
6254
6255 * tree-cfg.c (verify_expr): Verify that local declarations belong to
6256 this function. Call verify_expr on MEM_REFs and bases of other
6257 handled_components.
6258
6259 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6260
6261 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
6262 for WORD_REGISTER_OPERATIONS to runtime check.
6263
6264 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
6265
6266 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
6267
6268 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
6269
6270 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
6271 big-endian compilation.
6272 * config/arc/arc.md (addf3): Likewise.
6273 (subdf3): Likewise.
6274 (muldf3): Likewise.
6275
6276 2016-04-28 Richard Biener <rguenther@suse.de>
6277
6278 PR tree-optimization/70840
6279 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
6280 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
6281 Mark x * pow(x,c) -> pow(x,c+1) commutative.
6282 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
6283
6284 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6285
6286 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
6287 and explain why in a comment.
6288
6289 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
6290
6291 * config/arc/arc.md (cpu_facility): Add fpx variant.
6292 (subdf3): Prohibit use reverse sub when assist operations option
6293 is enabled.
6294 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
6295 instructions only when FPX is enabled.
6296 * testsuite/gcc.target/arc/trsub.c: New test.
6297
6298 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
6299
6300 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
6301 mult_operator when calculating "type" attribute.
6302 (*fop_<mode>_1_i387): Ditto.
6303 (*fop_xf_1_i387): Ditto.
6304 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
6305 Use std::swap to swap operands. Use RTL expressions to generate
6306 converted pattern.
6307
6308 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
6309 Joern Rennecke <joern.rennecke@embecosm.com>
6310
6311 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
6312 declaration.
6313 (emit_pic_move): Remove.
6314 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
6315 * config/arc/arc.c (emit_pic_move): Removed.
6316 (TARGET_HAVE_TLS): Define.
6317 (arc_conditional_register_usage): Test for arc_tp_regno.
6318 (arc_print_operand, arc_print_operand_address): Handle TLS
6319 unspecs.
6320 (arc_needs_pcl_p): New function.
6321 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
6322 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
6323 (arc_raw_symbolic_reference_mentioned_p): Likewise.
6324 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
6325 (arc_legitimize_tls_address): Likewise.
6326 (DTPOFF_ZERO_SYM): Define.
6327 (arc_legitimize_pic_address): Make it static, handle TLS cases.
6328 (arc_output_pic_addr_const): Print TLS unspecs.
6329 (prepare_pic_move): New function, replaces emit_pic_move.
6330 (arc_legitimate_constant_p): Handle TLS unspecs.
6331 (arc_legitimate_address_p): Likewise.
6332 (arc_rewrite_small_data_p): Use assert for TLS constants.
6333 (prepare_move_operands): Use prepare_pic_move.
6334 (arc_legitimize_address): Legitimize tls addresses.
6335 (arc_epilogue_uses): Check for arc_tp_regno.
6336 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
6337 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
6338 Define.
6339 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
6340 Likewise.
6341 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
6342 %(arc_tls_extra_start_spec).
6343 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
6344 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
6345 (EH_USES): Define.
6346 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
6347 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
6348 (UNSPEC_TLS_OFF): Add.
6349 (R10_REG): Define.
6350 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
6351 (get_thread_pointersi): New patterns.
6352 * config/arc/arc.opt (mtp-regno): New option.
6353 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
6354 (move_dest_operand): Likewise.
6355 * configure: Regenerate.
6356 * configure.ac: Add arc*-*-* case to test for tls.
6357 * doc/invoke.texi (ARC options): Document mtp-regno.
6358
6359 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
6360
6361 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
6362 the new ARC HS SIMD instructions.
6363 (arc_preferred_simd_mode): New function.
6364 (arc_autovectorize_vector_sizes): Likewise.
6365 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
6366 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
6367 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
6368 (arc_init_builtins): Add new SIMD builtin types.
6369 (arc_split_move): Handle 64 bit vector moves.
6370 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
6371 (TARGET_PLUS_QMACW): Define.
6372 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
6373 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
6374 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
6375 (VSUBADD4H): New builtins.
6376 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
6377 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
6378
6379 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
6380 Matthias Klose <doko@debian.org>
6381
6382 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
6383
6384 2016-04-28 Richard Biener <rguenther@suse.de>
6385
6386 PR middle-end/70777
6387 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
6388 canonicalization.
6389
6390 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
6391
6392 * common/config/sh/sh-common.c: Remove SH5 support.
6393 * config/sh/constraints.md: Likewise.
6394 * config/sh/config/sh/elf.h: Likewise.
6395 * config/sh/linux.h: Likewise.
6396 * config/sh/netbsd-elf.h: Likewise.
6397 * config/sh/predicates.md: Likewise.
6398 * config/sh/sh-c.c: Likewise.
6399 * config/sh/sh-protos.h: Likewise.
6400 * config/sh/sh.c: Likewise.
6401 * config/sh/sh.h: Likewise.
6402 * config/sh/sh.md: Likewise.
6403 * config/sh/sh.opt: Likewise.
6404 * config/sh/sync.md: Likewise.
6405 * config/sh/sh64.h: Delete.
6406 * config/sh/shmedia.h: Likewise.
6407 * config/sh/shmedia.md: Likewise.
6408 * config/sh/sshmedia.h: Likewise.
6409 * config/sh/t-netbsd-sh5-64: Likewise.
6410 * config/sh/t-sh64: Likewise.
6411 * config/sh/ushmedia.h: Likewise.
6412
6413 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
6414
6415 * config/i386/i386.md (sign_extend to memory peephole2s): Use
6416 general_reg_operand instead of register_operand predicate.
6417
6418 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6419
6420 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
6421
6422 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
6423
6424 * match.pd (A - B > A, A + B < A): New transformations.
6425
6426 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
6427
6428 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
6429 which defaults to true. Emit an outer pair of parentheses only if
6430 EMIT_PARENS. When continuing a chain of && or || (or & or |),
6431 don't emit parentheses for the right-hand operand.
6432
6433 2016-04-27 Jeff Law <law@redhat.com>
6434
6435 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
6436
6437 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6438
6439 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
6440 (altivec_lvx_<mode>_internal): Document.
6441 (altivec_lvx_<mode>_2op): New define_insn.
6442 (altivec_lvx_<mode>_1op): Likewise.
6443 (altivec_lvx_<mode>_2op_si): Likewise.
6444 (altivec_lvx_<mode>_1op_si): Likewise.
6445 (altivec_stvx_<mode>): Remove.
6446 (altivec_stvx_<mode>_internal): Document.
6447 (altivec_stvx_<mode>_2op): New define_insn.
6448 (altivec_stvx_<mode>_1op): Likewise.
6449 (altivec_stvx_<mode>_2op_si): Likewise.
6450 (altivec_stvx_<mode>_1op_si): Likewise.
6451 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6452 Expand vec_ld and vec_st during parsing.
6453 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
6454 changes.
6455 (altivec_expand_stvx_be): Likewise.
6456 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
6457 address-masking behavior in RTL.
6458 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
6459 address-masking behavior in RTL.
6460 (altivec_expand_builtin): Change builtin code arguments for calls
6461 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
6462 (insn_is_swappable_p): Avoid incorrect swap optimization in the
6463 presence of lvx/stvx patterns.
6464 (alignment_with_canonical_addr): New function.
6465 (alignment_mask): Likewise.
6466 (find_alignment_op): Likewise.
6467 (recombine_lvx_pattern): Likewise.
6468 (recombine_stvx_pattern): Likewise.
6469 (recombine_lvx_stvx_patterns): Likewise.
6470 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
6471 stvx patterns from expand.
6472 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
6473 expansions.
6474 (vector_altivec_store_<mode>): Likewise.
6475
6476 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
6477
6478 * config/aarch64/aarch64.md
6479 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
6480 remove the "fp" attributes.
6481 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
6482 add the "simd" attributes.
6483 (*movdf_aarch64): Likewise.
6484 (*movtf_aarch64): Remove the "fp" attributes.
6485 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
6486 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
6487
6488 2016-04-27 David Malcolm <dmalcolm@redhat.com>
6489
6490 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
6491 rtx to rtx_code_label *.
6492 * rtl.h (maybe_set_first_label_num): Likewise.
6493
6494 2016-04-27 David Malcolm <dmalcolm@redhat.com>
6495
6496 * df-core.c (df_add_problem): Make the problem param be const.
6497 (df_remove_problem): Make local "problem" be const.
6498 * df-problems.c (problem_RD): Make const.
6499 (problem_LR): Likewise.
6500 (problem_LIVE): Likewise.
6501 (problem_MIR): Likewise.
6502 (problem_CHAIN): Likewise.
6503 (problem_WORD_LR): Likewise.
6504 (problem_NOTE): Likewise.
6505 (problem_MD): Likewise.
6506 * df-scan.c (problem_SCAN): Likewise.
6507 * df.h (struct df_problem): Make field "dependent_problem" be
6508 const.
6509 (struct dataflow): Likewise for field "problem".
6510 (df_add_problem): Make param const.
6511
6512 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
6513
6514 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
6515 inter-unit moves to/from vector registers are enabled. Do not disable
6516 for TARGET_MMX.
6517
6518 2016-04-27 David Malcolm <dmalcolm@redhat.com>
6519
6520 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
6521 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
6522 #define to...
6523 (enum df_problem_id): ...this new enum.
6524 (struct df_problem): Convert field "id" from "int" to
6525 enum df_problem_id.
6526
6527 2016-04-27 David Malcolm <dmalcolm@redhat.com>
6528
6529 * rtl.def: Update comment for "things in the instruction chain" to
6530 reflect the removal of the leading "i" field for INSN_UID in
6531 r210360. Fix bogus apostrophe.
6532
6533 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
6534
6535 * config/i386/i386.md
6536 (lea arith with mem operand + setcc peephole2): Set operator mode.
6537
6538 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
6539
6540 PR target/70155
6541 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
6542 (dimode_scalar_to_vector_candidate_p): This.
6543 (timode_scalar_to_vector_candidate_p): New function.
6544 (scalar_to_vector_candidate_p): Likewise.
6545 (timode_check_non_convertible_regs): Likewise.
6546 (timode_remove_non_convertible_regs): Likewise.
6547 (remove_non_convertible_regs): Likewise.
6548 (remove_non_convertible_regs): Renamed to ...
6549 (dimode_remove_non_convertible_regs): This.
6550 (scalar_chain::~scalar_chain): Make it virtual.
6551 (scalar_chain::compute_convert_gain): Make it pure virtual.
6552 (scalar_chain::mark_dual_mode_def): Likewise.
6553 (scalar_chain::convert_insn): Likewise.
6554 (scalar_chain::convert_registers): Likewise.
6555 (scalar_chain::add_to_queue): Make it protected.
6556 (scalar_chain::emit_conversion_insns): Likewise.
6557 (scalar_chain::replace_with_subreg): Likewise.
6558 (scalar_chain::replace_with_subreg_in_insn): Likewise.
6559 (scalar_chain::convert_op): Likewise.
6560 (scalar_chain::convert_reg): Likewise.
6561 (scalar_chain::make_vector_copies): Likewise.
6562 (scalar_chain::convert_registers): New pure virtual function.
6563 (class dimode_scalar_chain): New class.
6564 (class timode_scalar_chain): Likewise.
6565 (scalar_chain::mark_dual_mode_def): Renamed to ...
6566 (dimode_scalar_chain::mark_dual_mode_def): This.
6567 (timode_scalar_chain::mark_dual_mode_def): New function.
6568 (timode_scalar_chain::convert_insn): Likewise.
6569 (dimode_scalar_chain::convert_registers): Likewise.
6570 (scalar_chain::compute_convert_gain): Renamed to ...
6571 (dimode_scalar_chain::compute_convert_gain): This.
6572 (scalar_chain::replace_with_subreg): Renamed to ...
6573 (dimode_scalar_chain::replace_with_subreg): This.
6574 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
6575 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
6576 (scalar_chain::make_vector_copies): Renamed to ...
6577 (dimode_scalar_chain::make_vector_copies): This.
6578 (scalar_chain::convert_reg): Renamed to ...
6579 (dimode_scalar_chain::convert_reg ): This.
6580 (scalar_chain::convert_op): Renamed to ...
6581 (dimode_scalar_chain::convert_op): This.
6582 (scalar_chain::convert_insn): Renamed to ...
6583 (dimode_scalar_chain::convert_insn): This.
6584 (scalar_chain::convert): Call convert_registers.
6585 (convert_scalars_to_vector): Change to scalar_chain pointer to
6586 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
6587 in 32-bit mode. Delete scalar_chain pointer. Call
6588 free_dominance_info in 64-bit mode.
6589 (pass_stv::gate): Remove TARGET_64BIT check.
6590 (ix86_option_override): Put the 64-bit STV pass before the CSE
6591 pass.
6592
6593 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
6594
6595 * dwarf2out.h (struct dw_loc_descr_node): Remove the
6596 dw_loc_frame_offset field.
6597 * dwarf2out.c (new_loc_descr): Likewise.
6598 (resolve_args_picking_1): Turn the VISITED hash set into a
6599 FRAME_OFFSET hash map. Use it to associate a frame offset to
6600 visited nodes. Remove uses of the CHECKING_P macro.
6601 (resolve_args_picking): Update call to resolve_args_picking_1.
6602
6603 2016-04-27 Martin Liska <mliska@suse.cz>
6604
6605 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
6606 (free_loop_data): Release vuses of groups.
6607
6608 2016-04-27 Bin Cheng <bin.cheng@arm.com>
6609
6610 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
6611 instead of redundant use_id and boolean have_use_for.
6612 (struct iv_use): Change sub_id into group_id. Remove field next.
6613 Move fields: related_cands, n_map_members, cost_map and selected
6614 to ...
6615 (struct iv_group): ... here. New structure.
6616 (struct iv_common_cand): Use structure declaration directly.
6617 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
6618 (MAX_CONSIDERED_USES): Rename macro to ...
6619 (MAX_CONSIDERED_GROUPS): ... here.
6620 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
6621 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
6622 (dump_uses): Rename to ...
6623 (dump_groups): ... here. Update all uses.
6624 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
6625 (find_induction_variables): Refactor format of dump information.
6626 (record_sub_use): Delete.
6627 (record_use): Update all uses.
6628 (record_group): New function.
6629 (record_group_use, find_interesting_uses_op): Call above functions.
6630 Update all uses.
6631 (find_interesting_uses_cond): Ditto.
6632 (group_compare_offset): New function.
6633 (split_all_small_groups): Rename to ...
6634 (split_small_address_groups_p): ... here. Update all uses.
6635 (split_address_groups): Update all uses.
6636 (find_interesting_uses): Refactor format of dump information.
6637 (add_candidate_1): Update all uses. Remove redundant check on iv,
6638 base and step.
6639 (add_candidate, record_common_cand): Remove redundant assert.
6640 (add_iv_candidate_for_biv): Update use.
6641 (add_iv_candidate_derived_from_uses): Update all uses.
6642 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
6643 (alloc_use_cost_map): Ditto.
6644 (set_use_iv_cost, get_use_iv_cost): Rename to ...
6645 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
6646 (determine_use_iv_cost_generic): Ditto.
6647 (determine_group_iv_cost_generic): Ditto.
6648 (determine_use_iv_cost_address): Ditto.
6649 (determine_group_iv_cost_address): Ditto.
6650 (determine_use_iv_cost_condition): Ditto.
6651 (determine_group_iv_cost_cond): Ditto.
6652 (determine_use_iv_cost): Ditto.
6653 (determine_group_iv_cost): Ditto.
6654 (set_autoinc_for_original_candidates): Update all uses.
6655 (find_iv_candidates): Update all uses. Refactor dump information.
6656 (determine_use_iv_costs): Ditto.
6657 (determine_iv_costs): Ditto.
6658 (iv_ca_cand_for_use): Rename to ...
6659 (iv_ca_cand_for_group): ... here. Update all uses.
6660 (iv_ca_add_use, iv_ca_add_group): Ditto.
6661 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
6662 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
6663 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
6664 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
6665 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
6666 (create_new_iv, adjust_iv_update_pos): Ditto.
6667 (rewrite_use_address): Delete.
6668 (rewrite_use_address_1): Rename to ...
6669 (rewrite_use_address): ... here.
6670 (rewrite_use_compare): Update all uses.
6671 (rewrite_use): Delete.
6672 (rewrite_uses): Rename to ...
6673 (rewrite_groups): ... here. Update all uses.
6674 (remove_unused_ivs, free_loop_data): Update all uses.
6675 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
6676
6677 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6678
6679 * rtlanal.c (nonzero_bits1): Convert preprocessor check
6680 for WORD_REGISTER_OPERATIONS to runtime check.
6681
6682 2016-04-27 Richard Biener <rguenther@suse.de>
6683
6684 PR ipa/70760
6685 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
6686 aggregate_value_p to determine if a function result is
6687 returned by reference.
6688 (ipa_pta_execute): Functions having their address taken are
6689 not automatically nonlocal.
6690
6691 2016-04-27 Jakub Jelinek <jakub@redhat.com>
6692
6693 PR sanitizer/70683
6694 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
6695 * fold-const.c (operand_equal_p): If flag_checking and
6696 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
6697 and if it returns non-zero, assert iterative_hash_expr on both
6698 args is the same.
6699
6700 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
6701
6702 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
6703
6704 2016-04-27 Nick Clifton <nickc@redhat.com>
6705
6706 PR middle-end/49889
6707 * varasm.c (merge_weak): Generate an error if an attempt is made
6708 to convert a non-weak static function into a weak, public function.
6709
6710 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6711
6712 * params.def (MAX_PARTITION_SIZE): New param.
6713 * doc/invoke.texi: Document lto-max-partition.
6714
6715 2016-04-27 Richard Biener <rguenther@suse.de>
6716
6717 PR ipa/70785
6718 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
6719 function cummulating used_from_other_partition, externally_visible
6720 and force_output from aliases.
6721 (refered_from_nonlocal_var): Likewise.
6722 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
6723 node flags properly.
6724
6725 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
6726
6727 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
6728 (-Wmemset-elt-size): New item.
6729
6730 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
6731
6732 PR ada/70759
6733 * stor-layout.h (internal_reference_types): Delete.
6734 * stor-layout.c (reference_types_internal): Likewise.
6735 (internal_reference_types): Likewise.
6736 (layout_type) <REFERENCE_TYPE>: Adjust.
6737
6738 2016-04-27 Jakub Jelinek <jakub@redhat.com>
6739
6740 PR sanitizer/70683
6741 * tree.h (inchash::add_expr): Add FLAGS argument.
6742 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
6743 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
6744 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
6745 Formatting fix. Adjust recursive calls. For tcc_comparison,
6746 if swap_tree_comparison (code) is smaller than code, hash that
6747 and arguments in the other order. Hash CONVERT_EXPR the same
6748 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
6749 of ADDR_EXPR of decl as the decl itself. Add or remove
6750 OEP_ADDRESS_OF from recursive flags as needed. For
6751 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
6752 operands commutatively and only the third one normally.
6753 For internal CALL_EXPR hash in CALL_EXPR_IFN.
6754
6755 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
6756
6757 * config/rtems.h (LIB_SPEC): Add -latomic.
6758
6759 2016-04-27 Joel Sherrill <joel@rtems.org>
6760
6761 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
6762 xilink.ld and flags not relevant to RTEMS.
6763
6764 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6765
6766 * toplev.c (backend_init_target): Avoid calling init_reload when using
6767 LRA.
6768
6769 2016-04-26 Jakub Jelinek <jakub@redhat.com>
6770
6771 * reorg.c (try_merge_delay_insns): Declare i and j inside the
6772 for loops rather than one for the whole function.
6773
6774 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
6775
6776 * match.pd (X + CST CMP X): New transformation.
6777
6778 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
6779
6780 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
6781 * fold-const.c (fold_binary_loc): Remove 2 transformations
6782 superseded by match.pd.
6783 * match.pd (x+x -> x*2): Generalize to integers.
6784
6785 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
6786
6787 * config/i386/i386.md (operation on memory peephole): Duplicate an
6788 existing peephole and adapt it to match lea rather than an operation
6789 that clobbers CC.
6790
6791 PR rtl-optimization/57193
6792 * opts.c (default_options_table): Add OPT_frename_registers at -O2
6793 and above.
6794 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
6795
6796 2016-04-26 Bin Cheng <bin.cheng@arm.com>
6797
6798 * tree-if-conv.c (any_pred_load_store): New static variable.
6799 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
6800 any_pred_load_store instead of and_mask_load_store.
6801 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
6802 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
6803 (combine_blocks, tree_if_conversion): Ditto.
6804
6805 2016-04-26 Bin Cheng <bin.cheng@arm.com>
6806
6807 PR tree-optimization/70771
6808 PR tree-optimization/70775
6809 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
6810 virtual PHI nodes. Delete parameter.
6811 (if_convertible_loop_p_1): Delete argument to above function.
6812 (predicate_all_scalar_phis): Delete code handling single-argument
6813 PHIs.
6814 (tree_if_conversion): Mark and update virtual SSA.
6815
6816 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6817
6818 PR target/61821
6819 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
6820 (x86_elf_aligned_common): Rename to ...
6821 (x86_elf_aligned_decl_common): ... this.
6822 Add decl arg. Switch to .lbss for largecomm object. Use
6823 LARGECOMM_SECTION_ASM_OP.
6824 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
6825 renaming.
6826 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
6827 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
6828 Pass new decl arg.
6829 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6830 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
6831
6832 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6833
6834 PR target/59407
6835 * config/i386/i386.c (SECTION_LARGE): Define.
6836 (x86_64_elf_select_section): Set it for large data/bss sections.
6837 Only clear SECTION_WRITE for .lrodata.
6838 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
6839 data/bss sections.
6840 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
6841 * varasm.c (default_elf_asm_named_section): Grow flagchars.
6842 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
6843 SECTION_MACH_DEP.
6844 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
6845 * doc/tm.texi: Regenerate.
6846
6847 2016-04-26 Jakub Jelinek <jakub@redhat.com>
6848
6849 PR bootstrap/70704
6850 * configure.ac (--enable-checking): Document extra flag, for
6851 non-release builds default to --enable-checking=yes,extra.
6852 If misc checking and extra checking, define CHECKING_P to 2 instead
6853 of 1.
6854 * common.opt (fchecking=): Add.
6855 * doc/invoke.texi (-fchecking=): Document.
6856 * doc/install.texi: Document --enable-checking changes.
6857 * configure: Regenerated.
6858 * config.in: Regenerated.
6859
6860 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
6861
6862 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
6863 attribute instead of which_alternative.
6864 * config/i386/sse.md (*mov<mode>_internal): Ditto.
6865 Use EXT_REX_SSE_REG_P where appropriate.
6866
6867 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
6868
6869 * config/i386/predicates.md (const0_operand): Do not match
6870 const_wide_int code.
6871 (const1_operand): Ditto.
6872
6873 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
6874
6875 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
6876 for SSE constm1 operands and TARGET_AVX512VL.
6877 (*movti_internal): Ditto.
6878 (*mov<mode>_or): Use constm1_operand predicate.
6879 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
6880 for SSE vector_all_ones operands and TARGET_AVX512VL.
6881 * config/i386/predicates.md (constm1_operand): New predicate.
6882 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
6883 emission of constant -1 load.
6884
6885 2016-04-25 Jason Merrill <jason@redhat.com>
6886
6887 * gdbinit.in: Skip is-a.h.
6888
6889 * attribs.c (register_scoped_attributes): Fix logic.
6890 * attribs.h: Declare register_scoped_attributes.
6891
6892 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6893
6894 * config/rs6000/rs6000-builtin.def: Correct pasto error for
6895 stxvd2x and stxvw4x built-in functions.
6896
6897 2016-04-25 DJ Delorie <dj@redhat.com>
6898
6899 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
6900 (ashrhi3): Likewise.
6901 (lshrhi3): Likewise.
6902
6903 2016-04-25 Richard Biener <rguenther@suse.de>
6904
6905 PR tree-optimization/70780
6906 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
6907 wasn't visited yet.
6908 (compute_antic): Mark blocks with abnormal preds as visited as
6909 they have a final empty antic-in solution already.
6910
6911 2016-04-25 Michael Collison <michael.collison@linaro.org>
6912
6913 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
6914
6915 2016-04-25 Michael Collison <michael.collison@linaro.org>
6916
6917 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
6918 mode is VQI to improve mixed mode vectorization.
6919 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
6920 define_insn to match low half of signed vaddw.
6921 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
6922 define_insn to match high half of signed vaddw.
6923 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
6924 define_insn to match low half of unsigned vaddw.
6925 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
6926 define_insn to match high half of unsigned vaddw.
6927 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
6928 (arm_simd_check_vect_par_cnst_half_p): Likewise.
6929 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
6930 for new function.
6931 (arm_simd_check_vect_par_cnst_half_p): Likewise.
6932 * config/arm/predicates.md (vect_par_constant_high): Support
6933 big endian and simplify by calling
6934 arm_simd_check_vect_par_cnst_half
6935 (vect_par_constant_low): Likewise.
6936
6937 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
6938
6939 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
6940 predicate for operand 2.
6941
6942 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
6943 H.J. Lu <hongjiu.lu@intel.com>
6944
6945 * config/i386/i386-protos.h (standard_sse_constant_p): Add
6946 machine_mode argument.
6947 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
6948 constm1_rtx operands. For VOIDmode constants, get mode from
6949 pred_mode. Check mode size if the mode is supported by ABI.
6950 (standard_sse_constant_opcode): Do not use standard_constant_p.
6951 Strictly check ABI support for all-ones operands.
6952 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
6953 immediates. Update calls to standard_sse_constant_p.
6954 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
6955 (ix86_rtx_costs): Ditto.
6956 * config/i386/i386.md (*movxi_internal_avx512f): Use
6957 nonimmediate_or_sse_const_operand instead of vector_move_operand.
6958 Use (v,BC) alternative instead of (v,C). Use register_operand
6959 checks instead of MEM_P.
6960 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
6961 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
6962 isa attribute. Use register_operand checks instead of MEM_P.
6963 (*movti_internal): Use nonimmediate_or_sse_const_operand for
6964 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
6965 alternative and corresponding sse2 isa attribute.
6966 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
6967 to standard_sse_constant_p.
6968 (FP constant splitters): Ditto.
6969 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
6970 (C): Ditto.
6971 * config/i386/predicates.md (constm1_operand): Remove.
6972 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
6973 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
6974 vector_all_ones_operand instead of constm1_operand.
6975
6976 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6977
6978 * print-rtl.c (print_rtx_insn_vec): New function.
6979 * print-rtl.h: New prototype.
6980 * store-motion.c (struct st_expr): Make avail_stores a vector.
6981 (st_expr_entry): Adjust.
6982 (free_st_expr_entry): Likewise.
6983 (print_store_motion_mems): Likewise.
6984 (find_moveable_store): Likewise.
6985 (compute_store_table): Likewise.
6986 (delete_store): Likewise.
6987 (build_store_vectors): Likewise.
6988
6989 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6990
6991 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
6992
6993 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6994
6995 * vec.h (vec_safe_contains): New function.
6996 (vec::contains): Likewise.
6997 (vec::begin): Likewise.
6998 (vec::end): Likewise.
6999
7000 2016-04-23 Jakub Jelinek <jakub@redhat.com>
7001
7002 PR sanitizer/70712
7003 * cfgexpand.c (expand_stack_vars): Fix typo.
7004
7005 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
7006
7007 * system.h (list, map, set, vector): Include conditionally.
7008 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
7009 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
7010 * ipa-icf.c (INCLUDE_LIST): Define.
7011 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
7012 * config/sh/sh.c (INCLUDE_VECTOR): Define.
7013 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
7014 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
7015 * cp/logic.cc (INCLUDE_LIST): Define.
7016 * fortran/trans-common.c (INCLUDE_MAP): Define.
7017
7018 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
7019
7020 * auto-profile.c: Remove <string.h> include.
7021 * ipa-icf-gimple.c: Remove <list> include.
7022 * diagnostic.c: Remove <new> include.
7023 * genmatch.c: Likewise.
7024 * pretty-print.c: Likewise.
7025 * toplev.c: Likewise
7026 * c/c-objc-common.c: Likewise.
7027 * cp/error.c: Likewise.
7028 * fortran/error.c: Likewise.
7029
7030 2016-04-22 Richard Biener <rguenther@suse.de>
7031
7032 * lto-streamer-in.c (input_ssa_names): Do not allocate
7033 GIMPLE_NOP for all SSA names.
7034 * lto-streamer-out.c (output_ssa_names): Do not output
7035 SSA names that should have been released.
7036
7037 2016-04-22 Richard Biener <rguenther@suse.de>
7038
7039 PR tree-optimization/70740
7040 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
7041 VDEF.
7042
7043 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
7044
7045 PR target/70750
7046 * config/i386/predicates.md (call_insn_operand): Replace
7047 sibcall_memory_operand with memory_operand.
7048
7049 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
7050
7051 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
7052 has_single_use() tests.
7053 (register_edge_assert_for_1): Likewise.
7054 (find_assert_locations_1): Check the liveness bitmap instead of
7055 checking has_single_use().
7056
7057 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
7058
7059 PR target/70728
7060 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
7061 Extract AVX-512BW constraint from AVX.
7062
7063 2016-04-21 Richard Biener <rguenther@suse.de>
7064
7065 PR tree-optimization/70725
7066 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
7067 for phi_convertible_by_degenerating_args.
7068 (predicate_all_scalar_phis): Handle single-argument PHIs.
7069
7070 2016-04-21 Richard Biener <rguenther@suse.de>
7071
7072 PR middle-end/70747
7073 * fold-const.c (fold_comparison): Return properly typed
7074 constant boolean.
7075
7076 2016-04-21 Bin Cheng <bin.cheng@arm.com>
7077
7078 PR tree-optimization/70715
7079 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
7080 after expanding BASE using expand_simple_operations.
7081
7082 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
7083
7084 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
7085 New transformations.
7086
7087 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
7088
7089 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
7090
7091 2016-04-20 Jan Hubicka <jh@suse.cz>
7092
7093 * ipa-inline.c (can_inline_edge_p): Pass caller info to
7094 ultiimate_alias_target.
7095 (update_callee_keys): Likewise.
7096 (lookup_recursive_calls): Likewise.
7097 (speculation_useful_p): Likewise.
7098
7099 2016-04-20 Jan Hubicka <jh@suse.cz>
7100
7101 PR ipa/70018
7102 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
7103 (set_nothrow_flag_1): ... this; handle interposition correctly;
7104 recurse on aliases and thunks.
7105 (cgraph_node::set_nothrow_flag): New.
7106 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
7107 functions compiled with non-call exceptions that binds to current
7108 def.
7109 (propagate_nothrow): Be safe WRT interposition.
7110 * cgraph.h (set_nothrow_flag): Update prototype.
7111
7112 2016-04-18 Jan Hubicka <jh@suse.cz>
7113
7114 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
7115 max_loop_iterations_int.
7116 (tree_unswitch_outer_loop): Likewise.
7117
7118 2016-04-20 Bin Cheng <bin.cheng@arm.com>
7119
7120 PR tree-optimization/69489
7121 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
7122 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
7123 Revise dump message.
7124 (if_convertible_bb_p): Remove check on edge count of basic block's
7125 predecessors.
7126
7127 2016-04-20 Bin Cheng <bin.cheng@arm.com>
7128
7129 PR tree-optimization/56625
7130 PR tree-optimization/69489
7131 * tree-data-ref.h (DR_INNERMOST): New macro.
7132 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
7133 hashing struct innermost_loop_behavior.
7134 (ref_DR_map): Remove.
7135 (innermost_DR_map): New map.
7136 (baseref_DR_map): Revise comment.
7137 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
7138 to innermost_DR_map accroding to its innermost loop behavior.
7139 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
7140 to its innermost loop behavior.
7141 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
7142 Add initialization for innermost_DR_map. Record memory reference
7143 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
7144 have innermost loop behavior.
7145 (if_convertible_loop_p): Remove release for ref_DR_map. Release
7146 innermost_DR_map.
7147
7148 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
7149
7150 * config/i386/i386.md (*lea<mode>_general_1): Rename from
7151 *lea_general_1. Use explicit SWI12 mode interator.
7152 (*lea<mode>_general_2): Rename from *lea_general_2.
7153 Use explicit SWI12 mode interator.
7154 (*lea<mode>_general_3): Rename from *lea_general_3.
7155 Use explicit SWI12 mode interator.
7156 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
7157 Use explicit SWI12 mode interator.
7158 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
7159 Use explicit SWI48 mode interator.
7160
7161 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
7162
7163 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
7164 Short-cut unaligned load and store cases. Handle all integer
7165 vector modes.
7166 (ix86_expand_vector_move_misalign): Short-cut unaligned load
7167 and store cases. Call ix86_avx256_split_vector_move_misalign
7168 directly without checking mode class.
7169
7170 2016-04-20 Andrew Pinski <apinski@cavium.com>
7171 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7172
7173 PR target/64971
7174 * config/aarch64/aarch64.md (sibcall): Force call
7175 address to be DImode for ILP32.
7176 (sibcall_value): Likewise.
7177
7178 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
7179
7180 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
7181
7182 2016-04-20 Richard Biener <rguenther@suse.de>
7183
7184 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
7185 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
7186 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
7187 (maybe_push_res_to_seq): Adjust.
7188 * gimple-fold.c (maybe_build_generic_op): Likewise.
7189
7190 2016-04-20 Marek Polacek <polacek@redhat.com>
7191
7192 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
7193 rather than true.
7194
7195 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
7196
7197 * config/i386/sse.md (vec_unpacks_lo_hi): Always
7198 use kmovw to support AVX512F target.
7199
7200 2016-04-20 Bin Cheng <bin.cheng@arm.com>
7201
7202 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
7203
7204 2016-04-20 Marek Polacek <polacek@redhat.com>
7205
7206 PR tree-optimization/70725
7207 * tree-if-conv.c (is_false_predicate): New function.
7208 (predicate_mem_writes): Use it.
7209
7210 2016-04-20 Richard Biener <rguenther@suse.de>
7211
7212 PR tree-optimization/70726
7213 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
7214 shift amounts from a pattern stmt operand.
7215
7216 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7217
7218 PR target/70674
7219 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
7220 stack_restore_from_fpr pattern when restoring r15.
7221 (s390_optimize_prologue): Strip away the memory barrier in the
7222 parallel when trying to get rid of restore insns.
7223 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
7224 definition for loading the stack pointer from an FPR. Compared to
7225 the normal move insn this pattern includes a full memory barrier.
7226
7227 2016-04-19 Jakub Jelinek <jakub@redhat.com>
7228
7229 PR middle-end/70680
7230 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
7231 implicitly linear or lastprivate iterator on the outer context.
7232
7233 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
7234
7235 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
7236 alignment check.
7237 * config/i386/i386.md (ssememalign): Removed.
7238 * config/i386/sse.md: Remove ssememalign attribute from patterns.
7239
7240 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
7241
7242 PR target/69201
7243 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
7244 const short * to __builtin_ia32_loaddquhi512_mask.
7245 (_mm512_maskz_loadu_epi16): Likewise.
7246 (_mm512_mask_storeu_epi16): Pass short * to
7247 __builtin_ia32_storedquhi512_mask.
7248 (_mm512_mask_loadu_epi8): Pass const char * to
7249 __builtin_ia32_loaddquqi512_mask.
7250 (_mm512_maskz_loadu_epi8): Likewise.
7251 (_mm512_mask_storeu_epi8): Pass char * to
7252 __builtin_ia32_storedquqi512_mask.
7253 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
7254 const double * to __builtin_ia32_loadupd512_mask.
7255 (_mm512_mask_loadu_pd): Likewise.
7256 (_mm512_maskz_loadu_pd): Likewise.
7257 (_mm512_storeu_pd): Pass double * to
7258 __builtin_ia32_storeupd512_mask.
7259 (_mm512_mask_storeu_pd): Likewise.
7260 (_mm512_loadu_ps): Pass const float * to
7261 __builtin_ia32_loadups512_mask.
7262 (_mm512_mask_loadu_ps): Likewise.
7263 (_mm512_maskz_loadu_ps): Likewise.
7264 (_mm512_storeu_ps): Pass float * to
7265 __builtin_ia32_storeups512_mask.
7266 (_mm512_mask_storeu_ps): Likewise.
7267 (_mm512_mask_loadu_epi64): Pass const long long * to
7268 __builtin_ia32_loaddqudi512_mask.
7269 (_mm512_maskz_loadu_epi64): Likewise.
7270 (_mm512_mask_storeu_epi64): Pass long long *
7271 to __builtin_ia32_storedqudi512_mask.
7272 (_mm512_loadu_si512): Pass const int * to
7273 __builtin_ia32_loaddqusi512_mask.
7274 (_mm512_mask_loadu_epi32): Likewise.
7275 (_mm512_maskz_loadu_epi32): Likewise.
7276 (_mm512_storeu_si512): Pass int * to
7277 __builtin_ia32_storedqusi512_mask.
7278 (_mm512_mask_storeu_epi32): Likewise.
7279 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
7280 char * to __builtin_ia32_storedquqi256_mask.
7281 (_mm_mask_storeu_epi8): Likewise.
7282 (_mm256_mask_loadu_epi16): Pass const short * to
7283 __builtin_ia32_loaddquhi256_mask.
7284 (_mm256_maskz_loadu_epi16): Likewise.
7285 (_mm_mask_loadu_epi16): Pass const short * to
7286 __builtin_ia32_loaddquhi128_mask.
7287 (_mm_maskz_loadu_epi16): Likewise.
7288 (_mm256_mask_loadu_epi8): Pass const char * to
7289 __builtin_ia32_loaddquqi256_mask.
7290 (_mm256_maskz_loadu_epi8): Likewise.
7291 (_mm_mask_loadu_epi8): Pass const char * to
7292 __builtin_ia32_loaddquqi128_mask.
7293 (_mm_maskz_loadu_epi8): Likewise.
7294 (_mm256_mask_storeu_epi16): Pass short * to.
7295 __builtin_ia32_storedquhi256_mask.
7296 (_mm_mask_storeu_epi16): Pass short * to.
7297 __builtin_ia32_storedquhi128_mask.
7298 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
7299 const double * to __builtin_ia32_loadupd256_mask.
7300 (_mm256_maskz_loadu_pd): Likewise.
7301 (_mm_mask_loadu_pd): Pass onst double * to
7302 __builtin_ia32_loadupd128_mask.
7303 (_mm_maskz_loadu_pd): Likewise.
7304 (_mm256_mask_storeu_pd): Pass double * to
7305 __builtin_ia32_storeupd256_mask.
7306 (_mm_mask_storeu_pd): Pass double * to
7307 __builtin_ia32_storeupd128_mask.
7308 (_mm256_mask_loadu_ps): Pass const float * to
7309 __builtin_ia32_loadups256_mask.
7310 (_mm256_maskz_loadu_ps): Likewise.
7311 (_mm_mask_loadu_ps): Pass const float * to
7312 __builtin_ia32_loadups128_mask.
7313 (_mm_maskz_loadu_ps): Likewise.
7314 (_mm256_mask_storeu_ps): Pass float * to
7315 __builtin_ia32_storeups256_mask.
7316 (_mm_mask_storeu_ps): ass float * to
7317 __builtin_ia32_storeups128_mask.
7318 (_mm256_mask_loadu_epi64): Pass const long long * to
7319 __builtin_ia32_loaddqudi256_mask.
7320 (_mm256_maskz_loadu_epi64): Likewise.
7321 (_mm_mask_loadu_epi64): Pass const long long * to
7322 __builtin_ia32_loaddqudi128_mask.
7323 (_mm_maskz_loadu_epi64): Likewise.
7324 (_mm256_mask_storeu_epi64): Pass long long * to
7325 __builtin_ia32_storedqudi256_mask.
7326 (_mm_mask_storeu_epi64): Pass long long * to
7327 __builtin_ia32_storedqudi128_mask.
7328 (_mm256_mask_loadu_epi32): Pass const int * to
7329 __builtin_ia32_loaddqusi256_mask.
7330 (_mm256_maskz_loadu_epi32): Likewise.
7331 (_mm_mask_loadu_epi32): Pass const int * to
7332 __builtin_ia32_loaddqusi128_mask.
7333 (_mm_maskz_loadu_epi32): Likewise.
7334 (_mm256_mask_storeu_epi32): Pass int * to
7335 __builtin_ia32_storedqusi256_mask.
7336 (_mm_mask_storeu_epi32): Pass int * to
7337 __builtin_ia32_storedqusi128_mask.
7338 * config/i386/i386-builtin-types.def (PCSHORT): New.
7339 (PINT64): Likewise.
7340 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
7341 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
7342 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
7343 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
7344 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
7345 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
7346 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
7347 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
7348 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
7349 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
7350 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
7351 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
7352 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
7353 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
7354 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
7355 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
7356 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
7357 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
7358 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
7359 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
7360 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
7361 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
7362 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
7363 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
7364 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
7365 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
7366 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
7367 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
7368 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
7369 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
7370 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
7371 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
7372 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
7373 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
7374 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
7375 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
7376 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
7377 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
7378 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
7379 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
7380 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
7381 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
7382 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
7383 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
7384 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
7385 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
7386 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
7387 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
7388 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
7389 use UNSPEC_STOREU.
7390 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
7391 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
7392 load nor store.
7393 (ix86_expand_vector_move_misalign): Likewise.
7394 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
7395 to scalar function prototype for unaligned load/store builtins.
7396 (ix86_expand_special_args_builtin): Updated.
7397 * config/i386/sse.md (UNSPEC_LOADU): Removed.
7398 (UNSPEC_STOREU): Likewise.
7399 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
7400 (VI_ULOADSTORE_F_AVX512VL): Likewise.
7401 (ssescalarsize): Handle V4TI, V2TI and V1TI.
7402 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
7403 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
7404 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
7405 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
7406 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
7407 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
7408 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
7409 (<avx512>_storedqu<mode>_mask): Likewise.
7410 (*sse4_2_pcmpestr_unaligned): Likewise.
7411 (*sse4_2_pcmpistr_unaligned): Likewise.
7412 (*mov<mode>_internal): Renamed to ...
7413 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
7414 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
7415 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
7416 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
7417
7418 2016-04-19 Richard Biener <rguenther@suse.de>
7419
7420 PR tree-optimization/70171
7421 * tree-ssa-phiprop.c: Include stor-layout.h.
7422 (phiprop_insert_phi): Handle the aggregate copy case.
7423 (propagate_with_phi): Likewise.
7424
7425 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
7426
7427 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
7428 instead of simplify_gen_subreg (... , 0).
7429 (ix86_delegitimize_address): Ditto.
7430 (ix86_split_divmod): Ditto.
7431 (ix86_split_copysign_const): Ditto.
7432 (ix86_split_copysign_var): Ditto.
7433 (ix86_expand_args_builtin): Ditto.
7434 (ix86_expand_round_builtin): Ditto.
7435 (ix86_expand_special_args_builtin): Ditto.
7436 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
7437 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
7438 (udivmodqi4): Ditto.
7439 (absneg splitters): Ditto.
7440 (*jcc_bt<mode>_1): Ditto.
7441
7442 2016-04-19 Richard Biener <rguenther@suse.de>
7443
7444 PR tree-optimization/70724
7445 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
7446 restoring out from ...
7447 (free_scc_vn): ... here.
7448 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
7449 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
7450 tail merging.
7451 (pass_fre::execute): Restore SSA info.
7452
7453 2016-04-19 Richard Biener <rguenther@suse.de>
7454
7455 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
7456 * gimple-walk.c (walk_gimple_op): Initialize it.
7457 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
7458 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
7459 remapping SSA names of defs.
7460 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
7461 adjustment.
7462
7463 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
7464
7465 PR middle-end/70689
7466 * lra-constraints.c (equiv_substition_p): New.
7467 (process_alt_operands): Use it.
7468 (swap_operands): Swap it.
7469 (curr_insn_transform): Update it.
7470
7471 2016-04-18 Michael Matz <matz@suse.de>
7472
7473 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
7474 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
7475 * tree-core.h (tree_type_common.align): Use bit-field.
7476 (tree_type_common.spare): New.
7477 (tree_decl_common.off_align): Make smaller.
7478 (tree_decl_common.align): Use bit-field.
7479
7480 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
7481 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
7482 (scan_sharing_clauses): Ditto.
7483 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
7484 (omp_finish_file): Ditto.
7485 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
7486 (layout_decl): Ditto.
7487 (relayout_decl): Ditto.
7488 (finalize_record_size): Use SET_TYPE_ALIGN.
7489 (finalize_type_size): Ditto.
7490 (finish_builtin_struct): Ditto.
7491 (layout_type): Ditto.
7492 (initialize_sizetypes): Ditto.
7493 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
7494 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
7495 (lookup_field_for_decl): Use SET_DECL_ALIGN.
7496 (get_chain_field): Ditto.
7497 (get_trampoline_type): Ditto.
7498 (get_nl_goto_field): Ditto.
7499 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
7500 SET_DECL_ALIGN.
7501 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
7502 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
7503 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
7504 (build_qualified_type): Use SET_TYPE_ALIGN.
7505 (build_aligned_type, build_range_type_1): Ditto.
7506 (build_atomic_base): Ditto.
7507 (build_common_tree_nodes): Ditto.
7508 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
7509 (expand_one_stack_var_at): Ditto.
7510 * coverage.c (build_var): Use SET_DECL_ALIGN.
7511 * except.c (init_eh): Ditto.
7512 * function.c (assign_parm_setup_block): Ditto.
7513 * symtab.c (increase_alignment_1): Ditto.
7514 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
7515 * tree-vect-stmts.c (ensure_base_align): Ditto.
7516 * varasm.c (align_variable): Ditto.
7517 (assemble_variable): Ditto.
7518 (build_constant_desc): Ditto.
7519 (output_constant_def_contents): Ditto.
7520
7521 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
7522 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
7523 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
7524 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
7525 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
7526
7527 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
7528
7529 PR target/70708
7530 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
7531 replace %vmovsd with "%vmovq".
7532 (vec_concatv2df): Likewise.
7533
7534 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
7535
7536 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
7537 (*vec_extractv2si_0): Ditto.
7538 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
7539 (zero_extended_scalar_load_operand splitters): Ditto.
7540 (vec_extract splitters): Ditto.
7541 (*vec_extractv4si_0_zext): Ditto.
7542 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
7543 and lowpart_subreg.
7544 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
7545 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
7546 (*sse4_1_extractps): Use lowpart_subreg.
7547 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
7548
7549 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7550
7551 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
7552 gld requirements.
7553 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
7554 Mention Solaris 11 packaging changes.
7555 Update gas and gld requirements.
7556 Remove reference to pre-Solaris 10 bug.
7557 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
7558 systems and bugs.
7559 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
7560 with cc.
7561
7562 2016-04-17 Jan Hubicka <jh@suse.cz>
7563
7564 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
7565 max_loop_iterations_int.
7566
7567 2016-04-18 Richard Biener <rguenther@suse.de>
7568
7569 PR tree-optimization/43434
7570 * tree-ssa-structalias.c (struct vls_data): New.
7571 (visit_loadstore): Handle all pointer-based accesses.
7572 (compute_dependence_clique): Compute a bitmap of restrict tags
7573 assigned bases and pass it to visit_loadstore.
7574
7575 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
7576
7577 PR target/70711
7578 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
7579 armv8.1-a and armv8.1-a+crc.
7580
7581 2016-04-18 Richard Biener <rguenther@suse.de>
7582
7583 PR tree-optimization/70701
7584 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
7585 references after translating through a memcpy.
7586
7587 2016-04-18 Richard Biener <rguenther@suse.de>
7588
7589 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
7590 (compute_antic): ... here. For partial antic use regular
7591 postorder and scrap iteration.
7592 (compute_partial_antic_aux): Remove unused return value.
7593 (init_pre): Do not allocate postorder.
7594 (fini_pre): Do not free postorder.
7595
7596 2016-04-18 Richard Biener <rguenther@suse.de>
7597
7598 PR middle-end/37870
7599 * expmed.c (extract_bit_field_1): Remove broken case
7600 using a wider MODE_INT mode.
7601
7602 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
7603
7604 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
7605 unless compiling with at least GCC-4.8.
7606
7607 2016-04-17 Jan Hubicka <jh@suse.cz>
7608
7609 PR bootstrap/70706
7610 * graphite.c (graphite_finalize): Update call to
7611 tree_estimate_probability.
7612 * predict.h (tree_estimate_probability): Update prototype.
7613
7614 2016-04-17 Jan Hubicka <jh@suse.cz>
7615
7616 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
7617 (tree_estimate_probability): Likewise.
7618 (pass_profile::execute): Update.
7619 (report_predictor_hitrates): New function.
7620 * profile.c (compute_branch_probabilities): Use it.
7621 * predict.h (report_predictor_hitrates): Declare.
7622
7623 2016-04-17 Jan Hubicka <jh@suse.cz>
7624
7625 PR ipa/70018
7626 * cgraph.h (cgraph_node::set_const_flag,
7627 cgraph_node::set_pure_flag): Update prototype to return bool;
7628 update comment.
7629 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
7630 of interposable symbol are interposable, too.
7631 (cgraph_set_const_flag_1): Rename to ...
7632 (set_const_flag_1): ... this one; change to self recursive function
7633 instead of call_for_symbol_thunks_and_aliases. Handle correctly
7634 clearnig the flag in all variants and also virtual thunks of const
7635 functions are pure; track if any change was done.
7636 (cgraph_node::set_const_flag): Update.
7637 (struct set_pure_flag_info): New struct.
7638 (cgraph_set_pure_flag_1): Rename to ...
7639 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
7640 rather than pointer encoded flags; track if any changes was done;
7641 handle correctly clearning flag and setting flag of aliases already
7642 declared const.
7643 (cgraph_node::set_pure_flag): Update.
7644 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
7645
7646 2016-04-17 Tom de Vries <tom@codesourcery.com>
7647
7648 PR other/70433
7649 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
7650 backslash in label.
7651
7652 2016-04-17 Tom de Vries <tom@codesourcery.com>
7653
7654 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
7655 '{}<> ' as escape-for-record.
7656
7657 2016-04-17 Tom de Vries <tom@codesourcery.com>
7658
7659 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
7660 structure.
7661
7662 2016-04-17 Tom de Vries <tom@codesourcery.com>
7663
7664 PR other/70185
7665 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
7666 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
7667 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
7668 * passes.c (finish_optimization_passes): Only call
7669 finish_graph_dump_file if dfi->graph_dump_initialized.
7670 (execute_function_dump, pass_init_dump_file): Use
7671 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
7672
7673 2016-04-17 Tom de Vries <tom@codesourcery.com>
7674
7675 PR tree-optimization/70256
7676 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
7677 (debug_varmap): New function.
7678
7679 2016-04-17 Tom de Vries <tom@codesourcery.com>
7680
7681 PR other/70183
7682 * passes.c (pass_manager::register_pass): Propagate pflags.
7683
7684 2016-04-17 Tom de Vries <tom@codesourcery.com>
7685
7686 PR other/68875
7687 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
7688 * passes.c (pass_manager::pass_manager): Declare and init p_start in
7689 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
7690 check if it's equal to p_start.
7691 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
7692
7693 2016-04-15 Jan Hubicka <jh@suse.cz>
7694
7695 PR ipa/70018
7696 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
7697 function does not bind to current def.
7698 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
7699 handle conservatively calls to functions that does not need to bind
7700 to current def.
7701 (check_call): Update call of worse_state.
7702 (ignore_edge_for_nothrow): Update.
7703 (ignore_edge_for_pure_const): Likewise.
7704 (propagate_pure_const): Update calls to worse_state.
7705 (skip_function_for_local_pure_const): Reformat comments.
7706
7707 2016-04-15 Jan Hubicka <jh@suse.cz>
7708
7709 PR ipa/70018
7710 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
7711 (cgraph_node::function_symbol): Likewise.
7712 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
7713 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
7714 (symtab_node::ultimate_alias_target): Add REF parameter.
7715 (symtab_node::binds_to_current_def_p): Declare.
7716 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
7717 (cgraph_node::function_symbol): Likewise.
7718 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
7719 (cgraph_node::get_availability): Likewise.
7720 (cgraph_edge::binds_to_current_def_p): New inline function.
7721 (varpool_node::get_availability): Add REF parameter.
7722 (varpool_node::ultimate_alias_target): Likewise.
7723 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
7724 (symtab_node::binds_to_current_def_p): Likewise.
7725 * varpool.c (varpool_node::get_availability): Likewise.
7726
7727 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
7728
7729 PR target/70662
7730 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
7731 Fix mode size check.
7732
7733 2016-04-15 Jakub Jelinek <jakub@redhat.com>
7734
7735 * BASE-VER: Set to 7.0.0.
7736
7737 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
7738
7739 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
7740
7741 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7742
7743 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
7744 architecture revisions.
7745
7746 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
7747
7748 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
7749 * config/i386/i386.c (ix86_using_red_zone): No longer static.
7750 * config/i386/i386.md (stack decrement to push peepholes): Guard
7751 with !x86_using_red_zone ().
7752
7753 2016-04-15 Jakub Jelinek <jakub@redhat.com>
7754
7755 PR c++/70675
7756 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
7757 to dump_generic_node.
7758 (NIY): Pass also flags to do_niy.
7759
7760 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
7761
7762 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
7763 (simd_clone_vector_of_formal_parm_types)
7764 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
7765 (simd_clone_mangle, simd_clone_create)
7766 (simd_clone_adjust_return_type, create_tmp_simd_array)
7767 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
7768 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
7769 (ipa_simd_modify_function_body, simd_clone_linear_addend)
7770 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
7771 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
7772 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
7773 * omp-simd-clone.c: ... this new file.
7774 (simd_clone_vector_of_formal_parm_types): Make it static.
7775 * Makefile.in (OBJS): Add omp-simd-clone.o.
7776
7777 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
7778
7779 PR target/70662
7780 * config/i386/sse.md: Use proper memory operand modifiers.
7781
7782
7783 2016-04-15 Richard Biener <rguenther@suse.de>
7784 Alan Modra <amodra@gmail.com>
7785
7786 PR tree-optimization/70130
7787 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
7788 when alignment stays not the same and no not use the realign
7789 scheme then.
7790
7791 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7792
7793 PR target/70669
7794 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
7795 direct move handlers for KFmode. Change TFmode handlers test from
7796 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
7797
7798 2016-04-14 Jakub Jelinek <jakub@redhat.com>
7799
7800 PR c++/70594
7801 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
7802 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
7803 (inlined_polymorphic_ctor_dtor_block_p): Use it.
7804 * tree-ssa-live.c (remove_unused_scope_block_p): When
7805 in_ctor_dtor_block, avoid discarding not just BLOCKs with
7806 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
7807 block_ultimate_origin is FUNCTION_DECL.
7808 (remove_unused_locals): If current_function_decl is
7809 polymorphic_ctor_dtor_p, pass initial true to
7810 remove_unused_scope_block_p' is_ctor_dtor_block.
7811
7812 2016-04-14 Martin Sebor <msebor@redhat.com>
7813
7814 PR c++/69517
7815 PR c++/70019
7816 PR c++/70588
7817 * doc/extend.texi (Variable Length): Revert.
7818
7819 2016-04-14 Marek Polacek <polacek@redhat.com>
7820 Jan Hubicka <hubicka@ucw.cz>
7821
7822 PR c++/70029
7823 * tree.c (verify_type): Disable the canonical type of main variant
7824 check.
7825
7826 2016-04-14 Jason Merrill <jason@redhat.com>
7827
7828 * cfgexpand.c, expr.c: Revert previous change.
7829
7830 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
7831
7832 PR middle-end/70643
7833 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
7834 when building a mem ref for the incoming reduction variable.
7835
7836 2016-04-14 Richard Biener <rguenther@suse.de>
7837
7838 PR tree-optimization/70614
7839 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
7840 loop if the evolution dropped to chrec_dont_know.
7841 (interpret_condition_phi): Likewise.
7842
7843 2016-04-14 Richard Biener <rguenther@suse.de>
7844
7845 PR tree-optimization/70623
7846 * tree-ssa-pre.c (changed_blocks): Make global ...
7847 (compute_antic): ... local here. Move and fix worklist
7848 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
7849 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
7850 worklist handling, dump when ANTIC_IN changed.
7851 (compute_partial_antic_aux): Remove worklist handling.
7852 (init_pre): Do not compute post dominators. Add a comment about
7853 the CFG order chosen.
7854 (fini_pre): Do not free post dominators.
7855
7856 2016-04-13 Martin Sebor <msebor@redhat.com>
7857
7858 PR c++/69517
7859 PR c++/70019
7860 PR c++/70588
7861 * doc/extend.texi (Variable Length): Document C++ specifics.
7862
7863 2016-04-13 Jakub Jelinek <jakub@redhat.com>
7864
7865 PR c++/70641
7866 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
7867 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
7868 eh edges have been purged.
7869
7870 PR c++/70594
7871 * tree-sra.c (create_access_replacement,
7872 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
7873 gets fancy name.
7874 * tree-pretty-print.c (dump_fancy_name): New function.
7875 (dump_decl_name, dump_generic_node): Use it.
7876
7877 2016-04-13 Jason Merrill <jason@redhat.com>
7878
7879 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
7880 * expr.c (expand_expr_real_1): Likewise.
7881
7882 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
7883
7884 * config/i386/i386.md (kunpckhi): Swap operands.
7885 (kunpcksi): Likewise.
7886 (kunpckdi): Likewise.
7887 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
7888 (vec_pack_trunc_<mode>): Likewise.
7889
7890 2016-04-13 Jakub Jelinek <jakub@redhat.com>
7891
7892 PR debug/70628
7893 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
7894
7895 PR middle-end/70633
7896 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
7897 gimplification turns some element into non-constant.
7898
7899 PR debug/70628
7900 * rtl.h (convert_memory_address_addr_space_1): New prototype.
7901 * explow.c (convert_memory_address_addr_space_1): No longer static,
7902 add NO_EMIT argument and don't call convert_modes if true, pass
7903 it down recursively, remove break after return.
7904 (convert_memory_address_addr_space): Adjust caller.
7905 * simplify-rtx.c (simplify_unary_operation_1): Call
7906 convert_memory_address_addr_space_1 instead of convert_memory_address,
7907 if it returns NULL, don't simplify.
7908
7909 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
7910
7911 PR target/70630
7912 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
7913
7914 2016-04-12 Jakub Jelinek <jakub@redhat.com>
7915
7916 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7917 Bump the upper SIMDLEN limits, so that if the return type or
7918 characteristic type if the return type is void can be passed in
7919 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
7920 allowed.
7921
7922 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
7923
7924 PR target/70640
7925 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
7926 Do not use "=" constraint on an input constraint.
7927 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7928 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7929 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
7930 generates (neg (abs ...)) instead of (abs ...).
7931
7932 2016-04-12 Jakub Jelinek <jakub@redhat.com>
7933
7934 PR rtl-optimization/70596
7935 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
7936 just invalidate LRA data and reset them. Adjust dump wording.
7937
7938 2016-04-12 Martin Liska <mliska@suse.cz>
7939
7940 Revert
7941 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
7942
7943 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
7944 estimates here.
7945 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
7946 max_loop_iterations_int.
7947 (tree_unswitch_outer_loop): Likewise.
7948 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
7949 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7950
7951 2016-04-12 Tom de Vries <tom@codesourcery.com>
7952
7953 PR tree-optimization/68756
7954 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
7955 instead of new_name.
7956
7957 2016-04-12 Jakub Jelinek <jakub@redhat.com>
7958
7959 PR tree-optimization/70602
7960 * tree-sra.c (generate_subtree_copies): Don't write anything into
7961 constant pool decls.
7962
7963 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
7964 regardless whether there are depend clauses or not.
7965
7966 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7967
7968 PR target/70381
7969 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
7970 target attribute and pragma from changing the -mfloat128
7971 and -mfloat128-hardware options.
7972
7973 * doc/extend.texi (Additional Floating Types): Document PowerPC
7974 __float128 restrictions.
7975
7976 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
7977
7978 PR target/70133
7979 * config/aarch64/driver-aarch64.c
7980 (aarch64_get_extension_string_for_isa_flags): New.
7981 (arch_extension): Rename to...
7982 (aarch64_arch_extension): ...This.
7983 (ext_to_feat_string): Rename to...
7984 (aarch64_extensions): ...This.
7985 (aarch64_core_data): Keep track of architecture extension flags.
7986 (cpu_data): Rename to...
7987 (aarch64_cpu_data): ...This.
7988 (aarch64_arch_driver_info): Keep track of architecture extension
7989 flags.
7990 (get_arch_name_from_id): Rename to...
7991 (get_arch_from_id): ...This, change return type.
7992 (host_detect_local_cpu): Update and reformat for renames, handle
7993 extensions through common infrastructure.
7994
7995 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
7996
7997 PR target/70133
7998 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
7999 track of a canonical flag name.
8000 (all_extensions): Likewise.
8001 (arch_to_arch_name): Also track extension flags enabled by the arch.
8002 (all_architectures): Likewise.
8003 (aarch64_parse_extension): Move to here.
8004 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
8005 rework.
8006 (aarch64_rewrite_selected_cpu): Update for above change.
8007 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
8008 are handled, such that the single explicit value enabled by an
8009 extension is kept seperate from the implicit values it also enables.
8010 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
8011 to here.
8012 (aarch64_parse_extension): New.
8013 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
8014 here to config/aarch64/aarch64-protos.h.
8015 (aarch64_parse_extension): Move from here to
8016 common/config/aarch64/aarch64-common.c.
8017 (aarch64_option_print): Update.
8018 (aarch64_declare_function_name): Likewise.
8019 (aarch64_start_file): Likewise.
8020 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
8021 the canonical flag for extensions.
8022 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
8023 flags.
8024
8025 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
8026
8027 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
8028 AARCH64_FL_CRC.
8029
8030 2016-04-09 Tom de Vries <tom@codesourcery.com>
8031
8032 PR tree-optimization/68953
8033 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
8034 first to last subscript.
8035
8036 2016-04-09 Jakub Jelinek <jakub@redhat.com>
8037
8038 PR tree-optimization/70586
8039 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
8040 for any calls.
8041
8042 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
8043
8044 PR lto/70289
8045 PR ipa/70348
8046 PR tree-optimization/70373
8047 PR middle-end/70533
8048 PR middle-end/70534
8049 PR middle-end/70535
8050 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
8051 clauses for acc parallel reductions as necessary. Error on those
8052 that are private.
8053 * omp-low.c (scan_sharing_clauses): Don't install variables which
8054 are used in acc parallel reductions.
8055 (lower_rec_input_clauses): Remove dead code.
8056 (lower_oacc_reductions): Add support for reference reductions.
8057 (lower_reduction_clauses): Remove dead code.
8058 (lower_omp_target): Don't remap variables appearing in acc parallel
8059 reductions.
8060 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
8061
8062 2016-04-08 Jakub Jelinek <jakub@redhat.com>
8063
8064 PR middle-end/70593
8065 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
8066 with multiple SSA_NAME defs, force the outputs other than first
8067 to be live before calling live_track_process_def on each output.
8068
8069 PR rtl-optimization/70574
8070 * fwprop.c (forward_propagate_and_simplify): Don't add
8071 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
8072 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
8073 paradoxical subregs within *loc.
8074
8075 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
8076
8077 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
8078 -ftree-parallelize-loops={0,1}.
8079 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
8080 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
8081 * config/ia64/hpux.h (LIB_SPEC): Likewise.
8082 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8083 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
8084
8085 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
8086
8087 PR sanitizer/70541
8088 * asan.c (instrument_derefs): If we get unknown location, extract it
8089 with EXPR_LOCATION.
8090 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
8091
8092 2016-04-08 Tom de Vries <tom@codesourcery.com>
8093
8094 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
8095 implicit firstprivate clause.
8096
8097 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8098
8099 PR target/70566
8100 * config/arm/thumb2.md (tst + branch-> lsls + branch
8101 peephole below *orsi_not_shiftsi_si): Require that condition
8102 register is dead after the peephole.
8103 (second peephole after the above): Likewise.
8104
8105 2016-04-08 Alan Modra <amodra@gmail.com>
8106
8107 PR target/70117
8108 * builtins.c (fold_builtin_classify): For IBM extended precision,
8109 look at just the high-order double to test for NaN.
8110 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
8111 test just the high double for Inf but both doubles for subnormal
8112 limit.
8113
8114 2016-04-07 Jakub Jelinek <jakub@redhat.com>
8115
8116 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
8117 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
8118 node->simdclone->mask_mode != VOIDmode masks.
8119 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
8120 earlier, use it instead of node->simdclone.
8121 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8122 Set clonei->mask_mode.
8123
8124 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
8125
8126 PR c/70436
8127 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
8128 Pass it through to cp_parser_already_scoped_statement.
8129 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
8130 it through to cp_parser_statement.
8131 (cp_parser_statement): Pass IF_P through to
8132 cp_parser_iteration_statement.
8133 (cp_parser_pragma): Adjust call to
8134 cp_parser_iteration_statement.
8135
8136 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
8137
8138 PR c/70436
8139 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
8140 resolve a future -Wparentheses warning.
8141 * omp-low.c (scan_sharing_clauses): Likewise.
8142 * tree-parloops.c (eliminate_local_variables): Likewise.
8143
8144 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
8145
8146 PR rtl-optimization/70398
8147 * lra-constraints.c (process_address_1): Check zero scale and code
8148 for reloading with zero scale.
8149
8150 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
8151
8152 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
8153 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
8154
8155 2016-04-06 Jakub Jelinek <jakub@redhat.com>
8156
8157 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8158 Add support for AVX512F clones, include them by default for
8159 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
8160 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
8161 up to 128.
8162
8163 PR middle-end/70550
8164 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
8165 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
8166 firstprivate clauses.
8167 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
8168 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
8169 (lower_omp_target): Set TREE_NO_WARNING for
8170 non-addressable possibly uninitialized vars which are copied into
8171 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
8172
8173 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
8174
8175 * config/pa/predicates.md (integer_store_memory_operand): Accept
8176 REG+D operands with a large offset when reload_in_progress is true.
8177 (floating_point_store_memory_operand): Likewise.
8178
8179 2016-04-05 Jakub Jelinek <jakub@redhat.com>
8180
8181 PR c++/70336
8182 * match.pd (nested int casts): Limit to GIMPLE.
8183
8184 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
8185
8186 PR ipa/66223
8187 * ipa-devirt.c (maybe_record_node): Fix comment; use
8188 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
8189
8190 2016-04-05 Jakub Jelinek <jakub@redhat.com>
8191
8192 PR rtl-optimization/70542
8193 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
8194 if there are any uses other than insn or debug insns.
8195
8196 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
8197 Jakub Jelinek <jakub@redhat.com>
8198
8199 PR tree-optimization/70509
8200 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
8201 Shift HOST_WIDE_INT_1U instead of 1.
8202
8203 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
8204
8205 PR tree-optimization/70509
8206 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
8207 of the vector base type for index.
8208
8209 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
8210
8211 PR target/70510
8212 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
8213
8214 2016-04-05 Richard Biener <rguenther@suse.de>
8215
8216 PR tree-optimization/70526
8217 * tree-sra.c (build_ref_for_offset): Use prev_base to
8218 extract the alias pointer type.
8219
8220 2016-04-05 Richard Biener <rguenther@suse.de>
8221
8222 * dse.c (struct store_info): Remove alias_set member.
8223 (struct read_info_type): Likewise.
8224 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
8225 spill_deleted, clear_alias_set_lookup): Remove.
8226 (get_group_info): Remove dead base == NULL_RTX case.
8227 (dse_step0): Remove initialization of removed variables.
8228 (delete_dead_store_insn): Reomve alias set dumping.
8229 (free_read_records): Remove alias_set handling.
8230 (canon_address): Remove alias_set_out parameter.
8231 (record_store): Remove spill_alias_set, it's always zero.
8232 (check_mem_read_rtx): Likewise.
8233 (dse_step2): Rename from ...
8234 (dse_step2_nospill): ... this. Adjust.
8235 (scan_stores): Rename from ...
8236 (scan_stores_nospill): ... this.
8237 (scan_reads): Rename from ...
8238 (scan_reads_nospill): ... this.
8239 (scan_stores_spill, scan_reads_spill): Remove.
8240 (dse_step3_scan): Remove for_spills argument which is always false.
8241 (dse_step3): Likewise.
8242 (dse_step5): Rename from ...
8243 (dse_step5_nospill): ... this. Remove alias_set handling.
8244 (rest_of_handle_dse): Adjust.
8245
8246 2016-04-05 Jakub Jelinek <jakub@redhat.com>
8247
8248 PR target/70525
8249 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
8250 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
8251 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
8252 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
8253
8254 2016-04-05 Richard Biener <rguenther@suse.de>
8255
8256 PR middle-end/70499
8257 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
8258 non-register type temporaries into SSA.
8259
8260 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
8261
8262 PR ipa/66223
8263 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
8264 calls when sanitizing.
8265 (possible_polymorphic_call_target_p): Fix formatting.
8266
8267 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8268 Jakub Jelinek <jakub@redhat.com>
8269
8270 PR middle-end/70457
8271 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
8272 to ensure a call statement is compatible with a built-in's
8273 prototype.
8274 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
8275 Likewise.
8276
8277 2016-04-04 Richard Biener <rguenther@suse.de>
8278
8279 PR rtl-optimization/70484
8280 * rtl.h (canon_output_dependence): Declare.
8281 * alias.c (canon_output_dependence): New function.
8282 * dse.c (record_store): Use canon_output_dependence rather
8283 than canon_true_dependence.
8284
8285 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
8286
8287 PR ipa/68881
8288 * cgraph.h (symtab_node::copy_visibility_from): New function.
8289 * symtab.c (symtab_node::copy_visibility_from): New function.
8290 * ipa-visibility.c (optimize_weakref): New function.
8291 (function_and_variable_visibility): Use it.
8292
8293 2016-04-04 Martin Liska <mliska@suse.cz>
8294
8295 PR hsa/70402
8296 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
8297 value that is really in range handled by SBR instruction.
8298 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
8299 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
8300 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
8301
8302 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
8303
8304 PR target/70416
8305 PR target/67391
8306 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
8307 set, but not for SP_REG operands.
8308
8309 2016-04-02 Martin Sebor <msebor@redhat.com>
8310
8311 PR c++/67376
8312 * fold-const.c (maybe_nonzero_address): New function.
8313 (fold_comparison): Call it. Fold equality and relational
8314 expressions involving null pointers.
8315 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
8316
8317 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
8318
8319 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
8320 the "Y" constraint (scalar FP 0.0 immediate).
8321
8322 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
8323 Add the "const_double" to the list of operand constraints.
8324
8325 2016-04-01 Jakub Jelinek <jakub@redhat.com>
8326
8327 PR rtl-optimization/70467
8328 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
8329 If low word of the last operand is 0, just emit addition/subtraction
8330 for the high word.
8331
8332 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8333
8334 PR target/70404
8335 * config/s390/s390.c (s390_expand_insv): Check for everything
8336 constant instead of just VOIDmode stuff.
8337
8338 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8339
8340 PR target/70496
8341 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
8342
8343 2016-04-01 Nathan Sidwell <nathan@acm.org>
8344
8345 * tree.def (TRY_CATCH_EXPR): Correct documentation.
8346
8347 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
8348
8349 PR rtl-optimization/70461
8350 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
8351 is necessary.
8352
8353 2016-03-31 Martin Liska <mliska@suse.cz>
8354
8355 PR hsa/70399
8356 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
8357 a tree value or an immediate integer value to a buffer
8358 that is eventually copied to a BRIG section.
8359 (emit_immediate_operand): Call the function here.
8360 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
8361 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
8362 of class' fields that are removed.
8363 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
8364 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
8365 m_brig_repr_size fields.
8366
8367 2016-03-31 Martin Liska <mliska@suse.cz>
8368
8369 PR hsa/70391
8370 * hsa-gen.c (hsa_function_representation::update_dominance): New
8371 function.
8372 (convert_addr_to_flat_segment): Likewise.
8373 (gen_hsa_memory_set): New alignment argument.
8374 (gen_hsa_ctor_assignment): Likewise.
8375 (gen_hsa_insns_for_single_assignment): Provide alignment
8376 to gen_hsa_ctor_assignment.
8377 (gen_hsa_insns_for_direct_call): Add new argument.
8378 (expand_lhs_of_string_op): New function.
8379 (expand_string_operation_builtin): Likewise.
8380 (expand_memory_copy): New function.
8381 (expand_memory_set): New function.
8382 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
8383 (convert_switch_statements): Change signature.
8384 (generate_hsa): Use a return value of the function.
8385 (pass_gen_hsail::execute): Do not call
8386 convert_switch_statements here.
8387 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
8388 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
8389 (hsa_function_representation::update_dominance): New function.
8390
8391 2016-03-31 Martin Liska <mliska@suse.cz>
8392
8393 PR hsa/70391
8394 * hsa-brig.c (emit_directive_variable): Emit alignment
8395 according to hsa_symbol::m_align.
8396 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
8397 (dump_hsa_symbol): Dump alignment of HSA symbols.
8398 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
8399 (gen_hsa_addr_with_align): New function.
8400 (hsa_bitmemref_alignment): Use newly added function.
8401 (gen_hsa_insns_for_load): Likewise.
8402 (gen_hsa_insns_for_store): Likewise.
8403 (gen_hsa_memory_copy): New argument added.
8404 (gen_hsa_insns_for_single_assignment): Respect
8405 alignment for assignments processed via gen_hsa_memory_copy.
8406 (gen_hsa_insns_for_direct_call): Likewise.
8407 (gen_hsa_insns_for_return): Likewise.
8408 (gen_function_def_parameters): Set default alignment.
8409 * hsa.c (hsa_object_alignment): New function.
8410 (hsa_byte_alignment): Pasted function.
8411 * hsa.h (hsa_symbol::m_align): New field.
8412
8413 2016-03-31 Bin Cheng <bin.cheng@arm.com>
8414
8415 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
8416 scratch field for goto case.
8417
8418 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
8419
8420 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
8421
8422 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
8423
8424 PR target/70442
8425 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
8426 (scalar_chain::convert_insn): Call convert_op for reg
8427 moves to handle undefined registers.
8428
8429 2016-03-31 Nathan Sidwell <nathan@acm.org>
8430
8431 PR c++/70393
8432 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
8433 Assert we don't want to move backwards.
8434
8435 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
8436
8437 PR target/70453
8438 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
8439
8440 2016-03-31 Jakub Jelinek <jakub@redhat.com>
8441
8442 PR rtl-optimization/70460
8443 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
8444 with operand from REG_LABEL_OPERAND, instead substitute
8445 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
8446 Don't do anything for REG_NON_LOCAL_GOTO jumps.
8447
8448 2016-03-31 Martin Liska <mliska@suse.cz>
8449
8450 * passes.c (execute_one_pass): Do not call
8451 todo_after for a discarded function.
8452
8453 2016-03-31 Bin Cheng <bin.cheng@arm.com>
8454
8455 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
8456 (no_cost, infinite_cost): Initialize the new field.
8457 (get_computation_cost_at): Record setup cost.
8458 (determine_use_iv_cost_address): Skip cost computation for sub
8459 uses if we can estimate it without losing accuracy.
8460
8461 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
8462
8463 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
8464 estimates here.
8465 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
8466 max_loop_iterations_int.
8467 (tree_unswitch_outer_loop): Likewise.
8468 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
8469 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8470
8471 2016-03-30 Richard Biener <rguenther@suse.de>
8472
8473 PR middle-end/70450
8474 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
8475
8476 2016-03-30 Jakub Jelinek <jakub@redhat.com>
8477
8478 PR target/70421
8479 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
8480 in gen_blendm expander.
8481
8482 2016-03-30 Nick Clifton <nickc@redhat.com>
8483
8484 PR target/62254
8485 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
8486 case where we are already provided with an SImode SUBREG.
8487
8488 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
8489
8490 PR target/70439
8491 * config/i386/i386.c (ix86_expand_epilogue): Properly check
8492 conflict between DRAP register and __builtin_eh_return.
8493
8494 2016-03-30 Michael Matz <matz@suse.de>
8495 Richard Biener <rguenther@suse.de>
8496
8497 PR ipa/12392
8498 * ipa-polymorphic-call.c (struct type_change_info): Change
8499 speculative to an unsigned allowing to limit the work we do.
8500 (csftc_abort_walking_p): New inline function..
8501 (check_stmt_for_type_change): Limit the number of may-defs
8502 skipped for speculative devirtualization to
8503 max-speculative-devirt-maydefs.
8504 * params.def (max-speculative-devirt-maydefs): New param.
8505 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
8506
8507 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
8508
8509 PR target/63890
8510 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
8511 and TARGET_MACHO.
8512
8513 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
8514
8515 PR tree-optimization/59124
8516 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
8517 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
8518
8519 2016-03-29 Jeff Law <law@redhat.com>
8520
8521 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
8522
8523 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
8524
8525 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
8526 to HOST_WIDE_INT.
8527
8528 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
8529
8530 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
8531 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
8532 gcrt0.o if linking dynamically.
8533
8534 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
8535
8536 PR ipa/70283
8537 * ipa-devirt.c (methods_equal_p): New function.
8538 (compare_virtual_tables): Use it.
8539 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
8540 * cgraphclones.c (clone_function_name_1): Use
8541 symbol_table::symbol_suffix_separator.
8542 * coverage.c (build_var): Likewise.
8543 * symtab.c (symbol_table::symbol_suffix_separator): New.
8544
8545 2016-03-29 Jakub Jelinek <jakub@redhat.com>
8546
8547 PR rtl-optimization/70429
8548 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
8549 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
8550 mode != result_mode.
8551
8552 PR c++/70353
8553 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
8554
8555 PR tree-optimization/70405
8556 * ssa-iterators.h (num_imm_uses): Add missing braces.
8557
8558 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
8559
8560 PR rtl-optimization/68695
8561 * ira-color.c (allocno_copy_cost_saving): New.
8562 (improve_allocation): Use it.
8563
8564 2016-03-29 Richard Henderson <rth@redhat.com>
8565
8566 PR middle-end/70355
8567 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
8568
8569 2016-03-29 Richard Biener <rguenther@suse.de>
8570
8571 PR middle-end/70424
8572 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
8573 use alignment returned by get_pointer_alignment_1 if it is
8574 bigger than BITS_PER_UNIT.
8575 * builtins.c (get_pointer_alignment_1): Do not return true
8576 for alignment extracted from SSA info.
8577
8578 2016-03-28 James Bowman <james.bowman@ftdichip.com>
8579
8580 * config/ft32/ft32.opt (mnodiv): New.
8581 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
8582 * doc/invoke.texi (FT32 Options -mnodiv): New.
8583
8584 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
8585
8586 PR target/70406
8587 * config/i386/i386.md (define_split, andn): Fix modes.
8588
8589 2016-03-26 Richard Biener <rguenther@suse.de>
8590 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8591
8592 PR ipa/70366
8593 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
8594 instead of
8595 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
8596 as 2nd argument to cl_optimization_restore().
8597
8598 2016-03-25 Richard Henderson <rth@redhat.com>
8599
8600 PR target/70120
8601 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
8602 * config/aarch64/aarch64-protos.h: Declare it.
8603 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
8604
8605 2016-03-25 Alan Modra <amodra@gmail.com>
8606
8607 PR target/70052
8608 * config/rs6000/constraints.md (j): Simplify.
8609 * config/rs6000/predicates.md (easy_fp_constant): Exclude
8610 decimal float 0.D.
8611 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
8612 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
8613 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
8614 in all constraint alternatives.
8615 (movtd_64bit_nodm): Delete "j" constraint alternative.
8616
8617 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
8618
8619 * tree-ssa-propagate.c: Enhance docs for
8620 SSA_PROP_NOT_INTERESTING.
8621
8622 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
8623
8624 * doc/extend.texi: Fix typo in documentation to pure attribute.
8625
8626 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
8627
8628 PR target/70319
8629 * config/pa/pa.md (bswapdi2): Use a scratch register.
8630
8631 2016-03-24 Richard Henderson <rth@redhat.com>
8632
8633 PR middle-end/69845
8634 * fold-const.c (extract_muldiv_1): Correct test for multiplication
8635 overflow.
8636
8637 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
8638
8639 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
8640 using ix86_expand_binary_operator instead of gen_andsi3.
8641
8642 2016-03-24 Richard Biener <rguenther@suse.de>
8643
8644 PR tree-optimization/70396
8645 * tree-vect-stmts.c (vectorizable_comparison): Use
8646 get_vectype_for_scalar_type.
8647
8648 2016-03-24 Richard Biener <rguenther@suse.de>
8649
8650 PR middle-end/70370
8651 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
8652 with register bases.
8653
8654 2016-03-24 Richard Biener <rguenther@suse.de>
8655
8656 PR tree-optimization/70372
8657 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
8658 build_all_ones_cst to also handle vector types correctly.
8659
8660 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
8661
8662 PR target/70381
8663 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
8664 -mfloat128 here.
8665
8666 2016-03-23 Marek Polacek <polacek@redhat.com>
8667
8668 PR c++/69884
8669 * doc/invoke.texi: Document -Wignored-attributes.
8670
8671 2016-03-23 Bin Cheng <bin.cheng@arm.com>
8672
8673 PR tree-optimization/69042
8674 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
8675 parameter from 30 to 40.
8676
8677 2016-03-23 Bin Cheng <bin.cheng@arm.com>
8678
8679 PR tree-optimization/69042
8680 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
8681 for use with constant offset stripped in base.
8682
8683 2016-03-23 Richard Biener <rguenther@suse.de>
8684
8685 PR middle-end/70251
8686 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
8687 mode compatibility check.
8688 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
8689
8690 2016-03-23 Jeff Law <law@redhat.com>
8691
8692 PR tree-optimization/64058
8693 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
8694 CONFLICT_COUNT.
8695 (struct ssa_conflicts): Move up earlier in the file.
8696 (conflicts_, var_map_): New static variables.
8697 (initialize_conflict_count): New function to initialize the
8698 CONFLICT_COUNT field for each conflict pair.
8699 (compare_pairs): Lazily initialize the conflict count and use it
8700 as the first tie-breaker.
8701 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
8702 and wipe conflicts_ and map_ around the call to qsort. Remove
8703 special case for 2 coalesce pairs.
8704 * bitmap.c (bitmap_count_unique_bits): New function.
8705 (bitmap_count_bits_in_word): New function, extracted from
8706 bitmap_count_bits.
8707 (bitmap_count_bits): Use bitmap_count_bits_in_word.
8708 * bitmap.h (bitmap_count_unique_bits): Declare it.
8709
8710 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8711
8712 PR target/69917
8713 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
8714 transparent alias chain for decl assembler name.
8715 * config/sol2.c (solaris_assemble_visibility): Likewise.
8716
8717 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8718
8719 * config/arm/arm1020e.md (1020call_op): Reduce reservation
8720 duration.
8721 (v10_fdivs): Likewise.
8722 (v10_fdivd): Likewise.
8723
8724 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8725
8726 PR driver/70132
8727 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
8728 to not call fclose twice on file.
8729
8730 2016-03-23 Jakub Jelinek <jakub@redhat.com>
8731
8732 PR tree-optimization/70354
8733 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
8734 oprnd0 is wider than oprnd1 and there is a cast from the wider
8735 type to oprnd1, mask it with the mask of the narrower type.
8736
8737 PR target/70321
8738 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
8739 Optimize TARGET_STV splitters, if high or low word of last argument
8740 is 0 or -1.
8741
8742 2016-03-22 Jeff Law <law@redhat.com>
8743
8744 PR target/70232
8745 tree-ssa-threadbackward.c
8746 (fsm_find_control_statement_thread_paths): Correctly distinguish
8747 between old style jump threads vs FSM jump threads.
8748
8749 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
8750
8751 PR target/70302
8752 * config/i386/i386.c (scalar_chain::convert_op): Support
8753 uninitialized register usage case.
8754
8755 2016-03-22 Richard Biener <rguenther@suse.de>
8756
8757 PR middle-end/70251
8758 * genmatch.c (gen_transform): Adjust last parameter to a three-state
8759 int...
8760 (capture::gen_transform): ... to change behavior when substituting
8761 a condition into cond or not-cond expr context.
8762 (dt_simplify::gen_1): Adjust.
8763 * gimple-match-head.c: Include gimplify.h for unshare_expr.
8764 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
8765 last change and instead change to
8766 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
8767 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
8768
8769 2016-03-22 Anthony Green <green@moxielogic.com>
8770
8771 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
8772 issue for moxiebox targets.
8773 (CC1PLUS_SPEC): Ditto.
8774
8775 2016-03-22 Richard Biener <rguenther@suse.de>
8776
8777 PR middle-end/70333
8778 * fold-const.c (extract_muldiv_1): Properly perform multiplication
8779 in the wide type.
8780
8781 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
8782
8783 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
8784
8785 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
8786
8787 PR target/70325
8788 * config/i386/i386.c (def_builtin): Handle
8789 OPTION_MASK_ISA_AVX512VL to be and-ed with other
8790 bits.
8791 (const struct builtin_description bdesc_special_args[]):
8792 Remove duplicate ISA bits.
8793
8794 2016-03-22 Jakub Jelinek <jakub@redhat.com>
8795
8796 PR target/70329
8797 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
8798 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
8799 in a way that works also for AVX512BW.
8800
8801 PR target/70300
8802 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
8803 instead of source if operands[1] is xmm16 and above and
8804 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
8805 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
8806
8807 PR c++/70295
8808 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
8809 on assign if (*from_p) is a comparison, set it to
8810 TREE_NO_WARNING (*from_p).
8811
8812 2016-03-21 Jakub Jelinek <jakub@redhat.com>
8813
8814 PR middle-end/70326
8815 * lra.c (restore_scratches): Ignore deleted insns.
8816
8817 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
8818 Jakub Jelinek <jakub@redhat.com>
8819
8820 PR tree-optimization/70317
8821 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
8822 to HONOR_NANS.
8823
8824 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
8825
8826 PR target/70327
8827 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
8828 of ix86_expand_move.
8829 (movoi): Ditto.
8830 (movti): Use general_operand for operand 1 predicate.
8831
8832 2016-03-21 Martin Liska <mliska@suse.cz>
8833
8834 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
8835 insns.
8836 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
8837
8838 2016-03-21 Martin Liska <mliska@suse.cz>
8839
8840 PR ipa/70306
8841 * ipa-icf.c (sem_function::parse): Skip static
8842 constructors and destructors.
8843
8844 2016-03-21 Jakub Jelinek <jakub@redhat.com>
8845
8846 PR target/70296
8847 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
8848 function-like macro, peek following token(s) if it is followed
8849 by CPP_OPEN_PAREN token with optional padding in between, and
8850 if not, don't treat it like a macro.
8851
8852 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
8853 Alexander Monakov <amonakov@ispras.ru>
8854
8855 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
8856 for the stabs debug format.
8857
8858 2016-03-21 Richard Biener <rguenther@suse.de>
8859
8860 PR tree-optimization/70310
8861 * tree-vect-generic.c (expand_vector_condition): Fold the built
8862 condition.
8863
8864 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
8865
8866 PR target/70293
8867 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
8868 Block third alternative for AVX-512VL target,
8869
8870 2016-03-21 Martin Liska <mliska@suse.cz>
8871
8872 PR hsa/70234
8873 * hsa-brig.c (emit_function_directives): Mark unemitted
8874 global variables for emission.
8875 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
8876 (get_symbol_for_decl): Likewise.
8877 * hsa.h (struct hsa_symbol): New flag.
8878
8879 2016-03-21 Richard Biener <rguenther@suse.de>
8880
8881 PR tree-optimization/70288
8882 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
8883 we do not estimate unsimplified all-constant conditionals or
8884 switches as optimized away.
8885
8886 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
8887
8888 PR rtl-optimization/69102
8889 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
8890 when we have a readonly dependency context.
8891
8892 2016-03-18 Jeff Law <law@redhat.com>
8893
8894 PR rtl-optimization/70263
8895 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
8896 (update_equiv_regs): When trying to move a store to after the insn
8897 that sets the source of the store, make sure the store occurs after
8898 the insn that sets the source of the store. When successful note
8899 the REG_EQUIV note created in the dump file.
8900
8901 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
8902 Bernd Schmidt <bschmidt@redhat.com>
8903
8904 * doc/extend.texi: Document more potential problems with basic asms.
8905
8906 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
8907
8908 PR rtl-optimization/70278
8909 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
8910 VOIDmode.
8911
8912 2016-03-18 Jason Merrill <jason@redhat.com>
8913
8914 * calls.c (load_register_parameters): Fix zero size sibcall logic.
8915
8916 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
8917
8918 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
8919 values to 128b regs.
8920
8921 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
8922
8923 PR tree-optimization/70252
8924 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
8925 boolean vector has a proper number of elements.
8926 (supportable_narrowing_operation): Likewise.
8927
8928 2016-03-18 Tom de Vries <tom@codesourcery.com>
8929
8930 PR ipa/70269
8931 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
8932
8933 2016-03-18 Jakub Jelinek <jakub@redhat.com>
8934
8935 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
8936 instead of replace_rtx for DEBUG_INSNs.
8937
8938 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8939
8940 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
8941 load type reservations.
8942
8943 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
8944
8945 PR target/70188
8946 * config/pa/constraints.md: Revert 2015-02-13 change. Use
8947 define_constraint for "Q" and "T" constraints.
8948
8949 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
8950
8951 Tweak the pipeline model for Exynos M1
8952
8953 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
8954 model.
8955
8956 2016-03-17 David Malcolm <dmalcolm@redhat.com>
8957
8958 PR c/70264
8959 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
8960 where one or both locations aren't within a line_map.
8961
8962 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
8963
8964 PR driver/70192
8965 * opts.c (finish_options): Don't set flag_pie to the default if
8966 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
8967 if it is -1.
8968
8969 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
8970
8971 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
8972 true as ALL_REGS argument to replace_rtx.
8973
8974 2016-03-17 Richard Biener <rguenther@suse.de>
8975
8976 PR debug/70271
8977 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
8978 last.
8979
8980 2016-03-17 Jakub Jelinek <jakub@redhat.com>
8981
8982 PR target/70245
8983 * rtl.h (replace_rtx): Add ALL_REGS argument.
8984 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
8985 equality and assert mode is the same, instead of just rtx pointer
8986 equality.
8987 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
8988 true as ALL_REGS argument to replace_rtx.
8989
8990 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
8991
8992 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
8993 for boolean vector with vector mode only.
8994 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
8995
8996 2016-03-17 Nick Clifton <nickc@redhat.com>
8997
8998 PR target/70162
8999 * config/rx/rx.c (rx_print_integer): Print negative constants in
9000 decimal.
9001
9002 2016-03-17 Jakub Jelinek <jakub@redhat.com>
9003
9004 PR target/70261
9005 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
9006
9007 2016-03-16 Richard Henderson <rth@redhat.com>
9008 Richard Biener <rguenth@suse.de>
9009
9010 PR middle-end/70240
9011 PR middle-end/68215
9012 PR tree-opt/68714
9013 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
9014 first operand as is_gimple_condexpr.
9015
9016 PR middle-end/70240
9017 PR middle-end/68215
9018 Revert r231575
9019 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
9020 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
9021 Do not gimplify the result.
9022 (do_unop): Adjust call to tree_vec_extract.
9023 (do_binop): Likewise.
9024 (do_compare): Likewise.
9025 (do_plus_minus): Likewise.
9026 (do_negate): Likewise.
9027 (expand_vector_condition): Likewise.
9028 (do_cond): Likewise.
9029
9030 2016-03-16 Richard Henderson <rth@redhat.com>
9031
9032 PR target/70048
9033 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
9034 (aarch64_classify_address): Use it.
9035 (aarch64_legitimize_address): Force all subexpressions of PLUS
9036 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
9037
9038 2016-03-16 Jakub Jelinek <jakub@redhat.com>
9039 Richard Biener <rguenth@suse.de>
9040
9041 PR target/70245
9042 * rtlanal.c (replace_rtx): For REG, if from is a REG,
9043 return to even if only REGNO is equal, and assert
9044 mode is the same.
9045
9046 2016-03-11 Jeff Law <law@redhat.com>
9047
9048 PR rtl-optimization/70224
9049 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
9050
9051 2016-03-16 Richard Henderson <rth@redhat.com>
9052
9053 PR middle-end/70199
9054 * function.h (struct function): Add has_forced_label_in_static.
9055 * gimplify.c (force_labels_r): Set it.
9056 * lto-streamer-in.c (input_struct_function_base): Read it.
9057 * lto-streamer-out.c (output_struct_function_base): Write it.
9058 * tree-inline.c (has_label_address_in_static_1): Remove.
9059 (copy_forbidden): Remove fndecl parameter; test
9060 has_forced_label_in_static.
9061 (inline_forbidden_p): Update call to copy_forbidden.
9062 (tree_versionable_function_p): Likewise.
9063 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
9064 (chkp_versioning): Likewise.
9065 * tree-inline.h (copy_forbidden): Update decl.
9066
9067 2016-03-16 Marek Polacek <polacek@redhat.com>
9068
9069 PR c/70093
9070 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
9071 function being thunked if the result type doesn't have fixed size.
9072 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
9073 doesn't have fixed size.
9074
9075 2016-03-16 Bin Cheng <bin.cheng@arm.com>
9076
9077 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
9078 reporting malformed loop nest.
9079
9080 2016-03-16 Tom de Vries <tom@codesourcery.com>
9081
9082 PR lto/70187
9083 * ipa-devirt.c (possible_polymorphic_call_targets): Move
9084 nodes.length () == 1 test to before first nodes[0] access.
9085
9086 2016-03-16 Tom de Vries <tom@codesourcery.com>
9087
9088 PR tree-optimization/68715
9089 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
9090 single_pred_p test.
9091
9092 2016-03-16 Tom de Vries <tom@codesourcery.com>
9093
9094 PR tree-optimization/68809
9095 * graphite-scop-detection.c (same_close_phi_node): Test if result types
9096 are the same.
9097
9098 2016-03-16 Carlos O'Donell <carlos@redhat.com>
9099 Sandra Loosemore <sandra@codesourcery.com>
9100
9101 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
9102 on leaf attribute. Mention ELF interposition problems.
9103
9104 2016-03-16 Alan Modra <amodra@gmail.com>
9105
9106 PR rtl-optimization/69195
9107 PR rtl-optimization/47992
9108 * ira.c (indirect_jump_optimize): Ignore artificial defs.
9109 Add comments.
9110
9111 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
9112
9113 PR bootstrap/69513
9114 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
9115
9116 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9117
9118 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
9119
9120 2016-03-15 Jakub Jelinek <jakub@redhat.com>
9121
9122 PR rtl-optimization/70222
9123 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
9124 optimization if mode is different from result_mode, queue up masking
9125 of the result in outer_op. Formatting fix.
9126
9127 PR middle-end/70239
9128 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
9129 of safe_grow.
9130
9131 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
9132
9133 PR rtl-optimization/69032
9134 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
9135 looping backwards over basic block insns.
9136
9137 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
9138
9139 PR target/66660
9140 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
9141 to non-speculative when propagating trap bits.
9142
9143 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
9144
9145 PR rtl-optimization/63384
9146 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
9147 DEBUG_INSN_P insns.
9148
9149 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
9150
9151 PR target/64411
9152 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
9153 factored out from ...
9154 (sched_analyze_insn): ... here.
9155 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
9156 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
9157 get_implicit_reg_pending_clobbers in it.
9158 (setup_id_reg_sets): Use setup_id_implicit_regs.
9159 (deps_init_id): Ditto.
9160
9161 2016-03-15 Tom de Vries <tom@codesourcery.com>
9162
9163 PR ipa/70161
9164 * cgraph.c (cgraph_node::get_body): Save, reset and restore
9165 dump_file_name.
9166 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
9167 execute_function_dump.
9168 (execute_one_pass): Don't dump function if it will be dumped after ipa
9169 transform.
9170
9171 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
9172
9173 * genrecog.c (match_pattern_2): If pred is NULL don't call
9174 safe_predicate_mode on it.
9175
9176 2016-03-14 Jakub Jelinek <jakub@redhat.com>
9177
9178 PR middle-end/70219
9179 * lra-constraints.c (delete_move_and_clobber): Change assertion
9180 to also allow dregno == 0.
9181
9182 2016-03-14 Richard Henderson <rth@redhat.com>
9183
9184 PR tree-opt/68714
9185 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
9186 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
9187 (reassociate_bb): Use optimize_vec_cond_expr; avoid
9188 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
9189 on vectors.
9190
9191 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
9192
9193 PR target/70083
9194 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
9195 regs.
9196 (lra_create_live_ranges_1): initialize hard register biggest_mode to
9197 VOIDmode.
9198 * lra-constraints.c (split_reg): For hard regs, try to find the
9199 biggest single-register mode used in the function.
9200
9201 2016-03-14 Richard Biener <rguenther@suse.de>
9202
9203 PR tree-optimization/56365
9204 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
9205 constants to compare against.
9206
9207 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
9208
9209 PR target/70098
9210 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
9211 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
9212 (define_split for the GPR case): Use int_reg_operand instead of
9213 gpc_reg_operand for the output.
9214
9215 2016-03-14 Tom de Vries <tom@codesourcery.com>
9216
9217 PR tree-optimization/70045
9218 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
9219 create_empty_if_region_on_edge argument.
9220
9221 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
9222
9223 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
9224 (STACK_CHECK_PROTECT): Likewise.
9225 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
9226 (STACK_CHECK_PROTECT): Likewise.
9227 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
9228 (STACK_CHECK_PROTECT): Likewise.
9229 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
9230 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9231 (STACK_CHECK_PROTECT): Likewise.
9232
9233 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
9234
9235 PR rtl-optimization/69307
9236 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
9237 registers in modes that span more than one register.
9238
9239 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
9240
9241 PR target/69614
9242 * lra-constraints.c (delete_move_and_clobber): New.
9243 (remove_inheritance_pseudos): Use it.
9244
9245 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
9246
9247 PR ada/70017
9248 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
9249 the libcall is LCT_THROW.
9250 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
9251 for the checking routine.
9252
9253 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9254
9255 PR target/70131
9256 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
9257 optimization if we have direct move.
9258 (roundu32<mode>2_fprs): Likewise.
9259
9260 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
9261
9262 PR target/70123
9263 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
9264 be rematerialized.
9265 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
9266 Arguments swapped. All callers changed. Take reg_renumber into
9267 account, and Calculate and compare register ranges for hard regs.
9268
9269 2016-03-11 Jeff Law <law@redhat.com>
9270
9271 PR tree-optimization/70190
9272 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9273 Handle cases where we can not extract the taken edge, even though we
9274 found a constant value.
9275
9276 PR tree-optimization/64058
9277 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
9278 (num_coalesce_pairs): Move up earlier in file.
9279 (find_coalesce_pair): Initialize the INDEX field for each pair
9280 discovered.
9281 (compare_pairs): No longer sort on the elements in each pair.
9282 Instead break ties with the index of the coalesce pair.
9283
9284 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9285
9286 PR target/70002
9287 * config/aarch64/aarch64-protos.h
9288 (aarch64_save_restore_target_globals): New prototype.
9289 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
9290 Call the above when popping pragma.
9291 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
9292 New function.
9293 (aarch64_set_current_function): Rewrite using the above.
9294
9295 2016-03-11 Jakub Jelinek <jakub@redhat.com>
9296
9297 PR tree-optimization/70177
9298 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
9299 (extract_ops_from_tree): ... this. In the 2 argument
9300 overload remove _1 suffix.
9301 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
9302 (extract_ops_from_tree): ... this.
9303 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
9304 Adjust callers.
9305 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
9306 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
9307 extract_ops_from_tree instead of 2 operand one.
9308
9309 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
9310
9311 PR tree-optimization/70013
9312 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
9313 for constant-pool entries.
9314
9315 2016-03-11 Jakub Jelinek <jakub@redhat.com>
9316
9317 PR rtl-optimization/70174
9318 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
9319 followed by gen_lowpart on force_reg instead of just gen_lowpart.
9320
9321 PR tree-optimization/70169
9322 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
9323 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
9324 for unknown codes.
9325
9326 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
9327 Jakub Jelinek <jakub@redhat.com>
9328
9329 PR target/70160
9330 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
9331 of uninitialized values.
9332
9333 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9334
9335 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
9336 define_expand.
9337 ("*trunctddd2"): New pattern definition.
9338 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
9339 TD->DD truncation.
9340
9341 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9342
9343 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
9344 definitions for BFP and DFP rounding modes.
9345 ("fixuns_truncdddi2", "fixuns_trunctddi2")
9346 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
9347 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
9348 ("fix_trunctf<mode>2"): Use the new constants instead of magic
9349 numbers.
9350
9351 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9352
9353 * config/s390/constraints.md: Adjust comment.
9354 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
9355 s390_decompose_addrstyle_without_index.
9356 * config/s390/predicates.md (shift_count_or_setmem_operand):
9357 Rename to setmem_operand.
9358 * config/s390/s390-protos.h
9359 (s390_decompose_shift_count): Rename to
9360 s390_decompose_addrstyle_without_index.
9361 * config/s390/s390.c (s390_decompose_shift_count)
9362 (s390_mem_constraint, print_shift_count_operand)
9363 (print_operand_address, print_operand): Rename
9364 s390_decompose_shift_count to
9365 s390_decompose_addrstyle_without_index and rename
9366 print_shift_count_operand to print_addrstyle_operand troughout the
9367 file.
9368 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
9369 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
9370 Rename shift_count_or_setmem_operand to setmem_operand.
9371 * config/s390/vx-builtins.md ("vec_insert<mode>")
9372 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
9373 nonmemory_operand.
9374
9375 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9376
9377 PR target/70168
9378 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
9379 Handle overlapping retval and newval.
9380
9381 2016-03-10 Nick Clifton <nickc@redhat.com>
9382
9383 PR target/7044
9384 * config/aarch64/aarch64.c
9385 (aarch64_override_options_after_change_1): When forcing
9386 flag_omit_frame_pointer to be true, use a special value that can
9387 be detected if this function is called again, thus preventing
9388 flag_omit_leaf_frame_pointer from being forced to be false.
9389
9390 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9391
9392 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
9393 Set x_flag_omit_leaf_frame_pointer when handling
9394 -momit-leaf-frame-pointer.
9395
9396 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
9397
9398 PR lto/69589
9399 * cgraph.c (cgraph_node::dump): Dump split_part and
9400 indirect_call_target.
9401 * cgraph.h (cgraph_node): Add indirect_call_target flag.
9402 * ipa.c (has_addr_references_p): Cleanup.
9403 (is_indirect_call_target_p): New.
9404 (walk_polymorphic_call_targets): Do not mark virtuals that may be
9405 called indirectly as local.
9406 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
9407
9408 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
9409
9410 PR ipa/69630
9411 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
9412 on cxa_pure_virtual.
9413
9414 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
9415
9416 PR lto/69589
9417 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
9418
9419 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
9420
9421 PR lto/69589
9422 * tree.c (need_assembler_name_p): Only record main variant type names.
9423
9424 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
9425
9426 PR target/70113.
9427 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
9428 Always define to 0 or 1.
9429 (TARGET_FIX_ERR_A53_843419): New macro.
9430 * config/aarch64/aarch64-elf-raw.h
9431 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
9432 * config/aarch64/aarch64-linux.h: Likewise.
9433 * config/aarch64/aarch64.c
9434 (aarch64_override_options_after_change_1): Do not default
9435 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
9436 843419 is on.
9437 (aarch64_attributes): Handle fix-cortex-a53-843419.
9438 (aarch64_can_inline_p): Likewise.
9439 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
9440
9441 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
9442 Jakub Jelinek <jakub@redhat.com>
9443
9444 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
9445 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
9446 DECL_COMMONS if flag_unconstrained_commons is set.
9447 * tree-dfa.c (get_ref_base_and_extent): Likewise.
9448 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
9449 (funconstrained-commons): Document.
9450
9451 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
9452
9453 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
9454 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
9455
9456 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
9457
9458 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
9459 has a proper number of elements.
9460
9461 2016-03-10 Alan Modra <amodra@gmail.com>
9462
9463 PR rtl-optimization/69195
9464 PR rtl-optimization/47992
9465 * ira.c (recorded_label_ref): Delete.
9466 (update_equiv_regs): Return void.
9467 (indirect_jump_optimize): New function.
9468 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
9469 before regstat_compute_ri. Don't rebuild_jump_labels here.
9470 Delete update_regstat.
9471
9472 2016-03-10 Richard Biener <rguenther@suse.de>
9473
9474 PR tree-optimization/70128
9475 * tree-ssa-structalias.c (set_uids_in_ptset): Set
9476 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
9477
9478 2016-03-09 Jakub Jelinek <jakub@redhat.com>
9479
9480 PR tree-optimization/70152
9481 * tree-sra.c (replace_removed_params_ssa_names): Copy over
9482 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
9483
9484 PR target/70086
9485 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
9486 instead of gen_sse2_loadlpd.
9487 * config/i386/sse.md (*vec_concatv2df): Rename to...
9488 (vec_concatv2df): ... this.
9489
9490 PR tree-optimization/70127
9491 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
9492
9493 2016-03-09 David Malcolm <dmalcolm@redhat.com>
9494
9495 PR c/68473
9496 PR c++/70105
9497 * diagnostic-show-locus.c (compatible_locations_p): New function.
9498 (layout::layout): Sanitize ranges using compatible_locations_p.
9499
9500 2016-03-09 David Malcolm <dmalcolm@redhat.com>
9501
9502 PR c/68473
9503 PR c++/70105
9504 * diagnostic-show-locus.c (layout_range::layout_range): Replace
9505 location_range param with three const expanded_locations * and a
9506 bool.
9507 (layout::layout): Replace call to
9508 rich_location::lazily_expand_location with get_expanded_location.
9509 Extract the range and perform location expansion here, passing
9510 the results to the layout_range ctor.
9511 * diagnostic.c (source_range::debug): Delete.
9512 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
9513 of rich_location::get_expanded_location.
9514 * gcc-rich-location.c (get_range_for_expr): Delete.
9515 (gcc_rich_location::add_expr): Reimplement to avoid the
9516 rich_location::add_range overload that took a location_range,
9517 passing a location_t instead.
9518
9519 2016-03-09 Richard Biener <rguenther@suse.de>
9520 Jakub Jelinek <jakub@redhat.com>
9521
9522 PR tree-optimization/70138
9523 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
9524 Also skip vect_double_reduction_def.
9525
9526 2016-03-09 Jakub Jelinek <jakub@redhat.com>
9527
9528 PR target/70049
9529 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
9530 if the operand is "m".
9531
9532 2016-03-09 Nathan Sidwell <nathan@acm.org>
9533
9534 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
9535
9536 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9537
9538 * config/i386/i386.c (processor_target_table): Fix cost table
9539 intialization order for znver1.
9540
9541 2016-03-08 Jakub Jelinek <jakub@redhat.com>
9542
9543 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
9544 - becuase -> because.
9545 * ipa-reference.c (ignore_module_statics): Likewise.
9546 * cgraph.c (cgraph_node::get_body): Likewise.
9547 * ipa-inline.c (early_inliner): Likewise.
9548 * ipa-devirt.c (types_same_for_odr): Likewise.
9549 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
9550 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
9551
9552 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9553
9554 * tree-ssa-math-opts.c: Fix typo in comment.
9555
9556 2016-03-08 Jakub Jelinek <jakub@redhat.com>
9557
9558 PR target/70110
9559 * config/i386/i386.c (scalar_chain::make_vector_copies,
9560 scalar_chain::convert_reg): Call end_sequence in between
9561 get_insns and emit_conversion_insns rather than after both
9562 calls.
9563
9564 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
9565
9566 PR target/70064
9567 * config/i386/i386.h (machine_function): Add
9568 pc_thunk_call_expanded flag.
9569 (ix86_pc_thunk_call_expanded): New define.
9570 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
9571 (*set_got): Rename insn pattern from set_got.
9572 (*set_got_labelled): Rename inst pattern from set_got_labelled.
9573 * config/i386/i386.c (ix86_compute_frame_layout): Use
9574 ix86_pc_thunk_call_expanded to prevent red-zone.
9575
9576 2016-03-07 Martin Jambor <mjambor@suse.cz>
9577
9578 * hsa.h (hsa_get_ctor_statements): Declare.
9579 (hsa_get_dtor_statements): Likewise.
9580 (hsa_get_kernel_dispatch_type): Likewise.
9581 * hsa.c (hsa_get_ctor_statements): New function.
9582 (hsa_get_dtor_statements): Likewise.
9583 (hsa_get_kernel_dispatch_type): Likewise.
9584 * hsa-brig.c (hsa_cdtor_statements): Removed.
9585 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
9586 hsa_get_dtor_statements.
9587 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
9588 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
9589
9590 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
9591
9592 * config/arm/arm-cores.def (cortex-r8): New.
9593 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
9594 * config/arm/arm-tune.md: Likewise.
9595 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
9596
9597 2016-03-07 Martin Sebor <msebor@redhat.com>
9598
9599 PR rtl-optimization/19705
9600 * doc/invoke.texi (Options That Control Optimization): Clarify
9601 -fno-branch-count-reg.
9602
9603 2016-02-26 Richard Biener <rguenther@suse.de>
9604 Jeff Law <law@redhat.com>
9605
9606 PR tree-optimization/69740
9607 * cfghooks.c (remove_edge): Request loop fixups if we delete
9608 an edge that might turn an irreducible loop into a natural
9609 loop.
9610 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
9611 Move after definition of loops_state_clear.
9612
9613 2016-03-07 Bin Cheng <bin.cheng@arm.com>
9614
9615 PR rtl-optimization/69052
9616 * rtlanal.c (commutative_operand_precedence): Set higher precedence
9617 to CONST_WIDE_INT.
9618
9619 2016-03-07 Tom de Vries <tom@codesourcery.com>
9620
9621 PR tree-optimization/70116
9622 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
9623 is_tm_ending stmts and ubsan/asan internal functions.
9624 (find_duplicate): Use it. Don't test is_tm_ending here.
9625
9626 2016-03-07 Richard Biener <rguenther@suse.de>
9627
9628 PR tree-optimization/70115
9629 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
9630 (propagate_constants_for_unrolling): Use replace_uses_by.
9631
9632 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
9633
9634 PR middle-end/69916
9635 * omp-low.c (struct oacc_loop): Add ifns.
9636 (new_oacc_loop_raw): Initialize it.
9637 (finish_oacc_loop): Clear mask & flags if no ifns.
9638 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
9639 (oacc_loop_xform_loop): Add ifns arg & adjust.
9640 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
9641
9642 2016-03-07 Richard Henderson <rth@redhat.com>
9643
9644 PR rtl-opt/70061
9645 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
9646 (insert_value_copy_on_edge): Likewise.
9647
9648 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9649
9650 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
9651
9652 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9653
9654 PR target/62281
9655 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
9656
9657 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9658
9659 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
9660
9661 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9662
9663 Fix sseimul type attribute.
9664 * config/i386/znver1.md
9665 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
9666 znver1_sseimul_avx256_load) : Fix the type attribute.
9667 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
9668 pipe usage and latency.
9669
9670 2016-03-05 Jakub Jelinek <jakub@redhat.com>
9671
9672 PR c++/70084
9673 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
9674 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
9675 to the right type.
9676
9677 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
9678
9679 PR c/69973
9680 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
9681
9682 PR rtl-optimization/69941
9683 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
9684 the reg share its mode.
9685
9686 2016-03-04 Jeff Law <law@redhat.com>
9687
9688 PR tree-optimization/69196
9689 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9690 If the both SSA_NAMEs are anonymous, then consider them unassociated
9691 and include the PHI in the statement count.
9692
9693 2016-03-05 Tom de Vries <tom@codesourcery.com>
9694
9695 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
9696 construct in oacc routine. Check for oacc region in oacc routine.
9697
9698 2016-03-04 Jakub Jelinek <jakub@redhat.com>
9699
9700 PR target/70062
9701 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
9702 2016-02-22 changes, instead don't recurse if RECUR is already true.
9703 Don't change *dynamic_check if RECUR. Adjust recursive caller
9704 to pass true to the new argument.
9705 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
9706
9707 PR target/70059
9708 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
9709 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
9710 fixes.
9711 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
9712
9713 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
9714
9715 PR rtl-optimization/57676
9716 * lra-assigns.c (lra_assign): Guard test for maximum iterations
9717 with flag_checking.
9718
9719 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
9720
9721 * tree-vect-patterns.c (search_type_for_mask): Handle
9722 comparison of booleans.
9723
9724 2016-03-04 Jakub Jelinek <jakub@redhat.com>
9725
9726 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
9727 Fix @xref usage.
9728
9729 PR debug/69947
9730 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
9731 all other ops that have dw_val_class_die_ref operands,
9732 and DW_OP_GNU_entry_value.
9733
9734 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9735
9736 PR rtl-optimization/69904
9737 * config/arm/arm.c (arm_cannot_copy_insn_p):
9738 Return true for load-exclusive instructions.
9739
9740 2016-03-03 Jakub Jelinek <jakub@redhat.com>
9741
9742 PR target/70021
9743 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
9744 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
9745 the pattern no matter if it is used just by non-pattern, pattern
9746 or mix thereof.
9747 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
9748 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
9749 oprnd1 def_stmt is in pattern, don't look through it.
9750
9751 2016-03-03 Marek Polacek <polacek@redhat.com>
9752
9753 PR middle-end/70050
9754 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
9755
9756 2016-03-03 Martin Liska <mliska@suse.cz>
9757
9758 PR tree-optimization/70043
9759 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
9760 previous statement if we see a debug statement.
9761
9762 2016-03-03 Richard Biener <rguenther@suse.de>
9763
9764 PR tree-optimization/55936
9765 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
9766 parameter and guard unsafe equivalence use.
9767 (vrp_evaluate_conditional_warnv_with_ops): Always use
9768 safe equivalences but not via the quadratic compare_names
9769 helper.
9770
9771 2016-03-03 Michael Collison <michael.collison@linaro.org>
9772
9773 PR target/70014
9774 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
9775 for operand 1 to s_register_operand. Change predicate for operand
9776 2 to arm_not_immediate_operand.
9777
9778 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
9779
9780 * doc/tm.texi: Regenerated.
9781
9782 2016-03-02 Richard Henderson <rth@redhat.com>
9783
9784 PR rtl-opt/67145
9785 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
9786 simplification when all args are positive non-fixed registers.
9787
9788 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9789
9790 * target.def (lra_p): Specify that new ports should use LRA.
9791
9792 2016-03-02 Jakub Jelinek <jakub@redhat.com>
9793
9794 PR libgomp/69555
9795 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
9796 gimplify_type_sizes the type they refer to.
9797 (omp_notice_variable): Handle reference vars to VLAs.
9798 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
9799 reference to VLA decls in the second pass instead of first pass.
9800
9801 2016-03-02 Tom de Vries <tom@codesourcery.com>
9802
9803 PR tree-optimization/68659
9804 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
9805 new_expr == NULL_TREE.
9806 (get_new_name): Handle ADDR_EXPR.
9807
9808 2016-03-02 Bin Cheng <bin.cheng@arm.com>
9809
9810 PR rtl-optimization/69052
9811 * loop-invariant.c (canonicalize_address): New function.
9812 (inv_can_prop_to_addr_use): Check validity of address expression
9813 which is canonicalized by above function.
9814
9815 2016-03-02 Alan Modra <amodra@gmail.com>
9816
9817 PR ipa/69990
9818 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
9819 larger alignment.
9820
9821 2016-03-02 Jakub Jelinek <jakub@redhat.com>
9822
9823 PR target/70028
9824 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
9825 (*movhi_internal): Put mask moves from and to memory separately
9826 from moves from/to GPRs.
9827
9828 2016-03-02 Richard Biener <rguenther@suse.de>
9829
9830 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
9831 GENERIC expressions in GIMPLE.
9832
9833 2016-03-02 Richard Biener <rguenther@suse.de>
9834
9835 * config/i386/i386.c (type_natural_mode): Fix typo.
9836
9837 2016-03-02 Nick Clifton <nickc@redhat.com>
9838
9839 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
9840
9841 2016-03-02 Richard Biener <rguenther@suse.de>
9842 Uros Bizjak <ubizjak@gmail.com>
9843
9844 PR target/67278
9845 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
9846
9847 2016-03-02 Richard Biener <rguenther@suse.de>
9848
9849 PR middle-end/67278
9850 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
9851
9852 2016-03-02 Marek Polacek <polacek@redhat.com>
9853
9854 PR c/67854
9855 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
9856 "is promoted to" warning.
9857
9858 2016-03-01 DJ Delorie <dj@redhat.com>
9859
9860 * config.gcc: Deprecate mep-*.
9861
9862 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
9863
9864 PR middle-end/70025
9865 * lra-constraints.c (regno_val_use_in): New.
9866 (match_reload): Use it instead of regno_use_in.
9867
9868 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
9869
9870 PR rtl-optimization/70007
9871 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
9872 references present in REG_EQUAL notes attached to non-SET patterns.
9873
9874 2016-03-01 Jeff Law <law@redhat.com>
9875
9876 PR tree-optimization/69196
9877 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9878 Appropriately clamp the number of statements to copy when the
9879 thread path does not traverse a loop backedge.
9880
9881 PR tree-optimization/69196
9882 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9883 Do count some PHIs in the thread path against the insn count. Decrease
9884 final statement count by one as the control statement in the last
9885 block will get removed. Remove special cased code for handling PHIs
9886 in the last block.
9887
9888 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
9889
9890 PR target/70027
9891 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
9892 asm dialect alternatives to explicit GOTPCREL calls.
9893
9894 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
9895
9896 PR ada/70017
9897 * ira.c (do_reload): Issue warning for generic stack checking here...
9898 * reload1.c (reload): ...instead of here and streamline it.
9899
9900 2016-03-01 Nick Clifton <nickc@redhat.com>
9901
9902 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
9903
9904 2016-03-01 Richard Biener <rguenther@suse.de>
9905
9906 PR tree-optimization/69983
9907 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
9908 types and fall back to operand_equal_p.
9909
9910 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9911
9912 Revert
9913 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9914
9915 * config/s390/constraints.md ("jm8"): New constraint.
9916 * config/s390/predicates.md ("const_int_8bitset_operand"): New
9917 predicate.
9918 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
9919 into ...
9920 ("*setmem_long<setmem_and>"): New pattern.
9921 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
9922 into ...
9923 ("*setmem_long_31z<setmem_and>"): New pattern.
9924 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
9925 New substitution rules with the required attributes.
9926
9927
9928 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9929
9930 Revert
9931 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9932
9933 * gensupport.c (process_substs_on_one_elem): Split loop to
9934 complete mark_operands_used_in_match_dup on all expressions in the
9935 vector first.
9936 (adjust_operands_numbers): Inline into process_substs_on_one_elem
9937 and remove function.
9938
9939 2016-03-01 Richard Biener <rguenther@suse.de>
9940
9941 PR middle-end/70022
9942 * fold-const.c (fold_indirect_ref_1): Fix range checking for
9943 vector BIT_FIELD_REF extract.
9944
9945 2016-03-01 Richard Biener <rguenther@suse.de>
9946
9947 PR tree-optimization/69994
9948 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
9949
9950 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
9951
9952 PR tree-optimization/69956
9953 * tree-vect-stmts.c (supportable_widening_operation): Support
9954 multi-step conversion of boolean vectors.
9955 (supportable_narrowing_operation): Likewise.
9956
9957 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9958
9959 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
9960 anymore.
9961
9962 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9963
9964 * config/s390/subst.md (DSI_VI): New mode iterator.
9965 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
9966 * config/s390/vector.md ("vec_set<mode>"): Move expander before
9967 the insn definition.
9968 ("*vec_set<mode>"): Change predicate and add alternative to
9969 support only either register or const_int operands as element
9970 selector.
9971 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
9972 operands.
9973 ("vec_extract<mode>"): New expander.
9974 ("*vec_extract<mode>"): New insn definition supporting reg and
9975 const_int element selectors.
9976 ("*vec_extract<mode>_plus"): New insn definition supporting
9977 reg+const_int element selectors.
9978 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
9979 following expander+insn definition.
9980 ("<vec_shifts_name><mode>3"): New expander.
9981 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
9982
9983 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9984
9985 * config/s390/s390.md ("*tabort_1"): Change predicate to
9986 nonmemory_operand. Add a second alternative to cover
9987 register as well as const int operands.
9988 ("*tabort_1_plus"): New pattern definition.
9989
9990 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9991
9992 * config/s390/s390.md ("*ashrdi3_cc_31")
9993 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
9994 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
9995 Merge insn definitions into ...
9996 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
9997 New pattern definition.
9998 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
9999 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
10000 ("*ashr<mode>3_and"): Merge insn definitions into ...
10001 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
10002 New pattern definition.
10003 * config/s390/subst.md ("addr_style_op_cc_subst")
10004 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
10005 substitutions patterns plus attributes.
10006 Add ashiftrt to SUBST iterator.
10007
10008 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10009
10010 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
10011 op2 to nonmemory_operand.
10012 ("*<shift>di3_31", "*<shift>di3_31_and"):
10013 Merge into single pattern definition ...
10014 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
10015 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
10016 pattern definition ...
10017 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
10018 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
10019 iterator.
10020
10021 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10022
10023 * config/s390/predicates.md (const_int_6bitset_operand): New
10024 predicate.
10025 * config/s390/s390.md: Include subst.md.
10026 ("rotl<mode>3"): New expander.
10027 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
10028 ...
10029 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
10030 * config/s390/subst.md: New file.
10031
10032 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10033
10034 * config/s390/s390.md ("op_type", "atype", "length" attributes):
10035 Remove RRR type. It doesn't really exist.
10036 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
10037 attributes.
10038 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
10039 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
10040 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
10041 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
10042 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
10043 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
10044 `enabled' attribute.
10045
10046 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10047
10048 * gensupport.c (process_substs_on_one_elem): Split loop to
10049 complete mark_operands_used_in_match_dup on all expressions in the
10050 vector first.
10051 (adjust_operands_numbers): Inline into process_substs_on_one_elem
10052 and remove function.
10053
10054 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
10055
10056 PR target/69706
10057 * config/sparc/sparc.c (NWORDS_UP): Rename to...
10058 (CEIL_NWORDS): ...this. Use CEIL macro.
10059 (compute_fp_layout): Adjust to above renaming.
10060 (function_arg_union_value): Likewise.
10061 (sparc_arg_partial_bytes): Likewise.
10062 (sparc_function_arg_advance): Likewise.
10063
10064 2016-02-29 Jeff Law <law@redhat.com>
10065
10066 PR tree-optimization/70005
10067 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
10068 where an object with a boolean range is compared against a value
10069 outside [0..1].
10070
10071 PR tree-optimization/69999
10072 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
10073 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
10074 loop cleanups.
10075
10076 2016-02-29 Richard Biener <rguenther@suse.de>
10077
10078 PR tree-optimization/69994
10079 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
10080 (get_unary_op): Look through nop conversions.
10081 (ops_equal_values_p): New function, look for equality diregarding
10082 nop conversions.
10083 (eliminate_plus_minus_pair): Use ops_equal_values_p
10084 (repropagate_negates): Do not use get_unary_op here.
10085
10086 2016-02-29 Martin Liska <mliska@suse.cz>
10087
10088 * system.h: Poison ENABLE_CHECKING macro.
10089
10090 2016-02-29 Martin Liska <mliska@suse.cz>
10091
10092 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
10093 is presented in dump flags.
10094 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
10095 (hsa_regalloc): Likewise.
10096
10097 2016-02-19 Richard Biener <rguenther@suse.de>
10098
10099 PR tree-optimization/69980
10100 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
10101 permutation of those we need to keep.
10102
10103 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
10104
10105 PR target/69706
10106 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
10107 (NWORDS_UP): ...this
10108 (init_cumulative_args): Minor tweaks.
10109 (sparc_promote_function_mode): Likewise.
10110 (scan_record_type): Delete.
10111 (traverse_record_type): New function template.
10112 (classify_data_t): New structure type.
10113 (classify_registers): New inline function.
10114 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
10115 exhausted. Instantiate traverse_record_type on classify_registers and
10116 deal with the case of a structure passed in slot #15 with no FP field
10117 in the first word.
10118 (assign_data_t): New structure type.
10119 (compute_int_layout): New static function.
10120 (compute_fp_layout): Likewise.
10121 (count_registers): New inline function.
10122 (assign_int_registers): New static function.
10123 (assign_fp_registers): Likewise.
10124 (assign_registers): New inline function.
10125 (function_arg_record_value_1): Delete.
10126 (function_arg_record_value_2): Likewise.
10127 (function_arg_record_value_3): Likewise.
10128 (function_arg_record_value): Adjust to above changes. Instantiate
10129 traverse_record_type on count_registers to first count the number of
10130 registers to be used and then on assign_registers to assign them.
10131 (function_arg_union_value): Adjust to above renaming.
10132 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
10133 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
10134 case of a structure passed in slot #15
10135 (sparc_function_arg_advance): Likewise.
10136 (function_arg_padding): Minor tweak.
10137
10138 2016-02-29 Richard Biener <rguenther@suse.de>
10139
10140 PR tree-optimization/69720
10141 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
10142 the adjustment_def path for possibly vectorized defs.
10143 (vect_create_epilog_for_reduction): Handle vectorized initial
10144 defs properly.
10145
10146 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
10147
10148 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
10149
10150 2016-02-27 Jeff Law <law@redhat.com>
10151
10152 Revert
10153 2016-02-26 Richard Biener <rguenther@suse.de>
10154 Jeff Law <law@redhat.com>
10155
10156 PR tree-optimization/69740
10157 * cfghooks.c (remove_edge): Request loop fixups if we delete
10158 an edge that might turn an irreducible loop into a natural
10159 loop.
10160
10161 2016-02-27 Jakub Jelinek <jakub@redhat.com>
10162
10163 PR rtl-optimization/69896
10164 * tree-vect-generic.c (get_compute_type): Avoid single element
10165 vector types.
10166
10167 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
10168
10169 Rename the AArch64 tuning option and related functions to enable the
10170 Newton series for the reciprocal square root to reflect its
10171 approximative characteristic.
10172
10173 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
10174 function to "aarch64_emit_approx_rsqrt".
10175 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
10176 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
10177 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
10178 (xgene1_tunings): Likewise.
10179 (use_rsqrt_p): Likewise.
10180 (aarch64_emit_swrsqrt): Use new function name.
10181 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
10182 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
10183 text explaining this option.
10184 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
10185
10186 2016-02-26 Jakub Jelinek <jakub@redhat.com>
10187
10188 PR target/69969
10189 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10190 complain about -mallow-movmisalign without -mvsx if
10191 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
10192
10193 2016-02-26 Joel Sherrill <joel@rtems.org>
10194
10195 * config.gcc: Add x86_64-*-rtems*.
10196 * config/i386/rtems-64.h: New file.
10197
10198 2016-02-26 Joel Sherrill <joel@rtems.org>
10199
10200 * config.gcc: Add aarch64-*-rtems*.
10201 * config/aarch64/rtems.h: New file.
10202
10203 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
10204
10205 PR target/69946
10206 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
10207 shift amount using %h. Add comment.
10208
10209 2016-02-26 Richard Biener <rguenther@suse.de>
10210 Jeff Law <law@redhat.com>
10211
10212 PR tree-optimization/69740
10213 * cfghooks.c (remove_edge): Request loop fixups if we delete
10214 an edge that might turn an irreducible loop into a natural
10215 loop.
10216
10217 2016-02-26 Martin Jambor <mjambor@suse.cz>
10218
10219 PR middle-end/69920
10220 * tree-sra.c (sra_modify_assign): Do not remove loads of
10221 uninitialized aggregates to SSA_NAMEs.
10222
10223 2016-02-26 Richard Henderson <rth@redhat.com>
10224
10225 PR target/69709
10226 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
10227 pseudo in case the target rtx matches the source of the left
10228 shift.
10229
10230 2016-02-26 Martin Jambor <mjambor@suse.cz>
10231
10232 PR hsa/69568
10233 * hsa.h (hsa_type_packed_p): Declare.
10234 * hsa.c (hsa_type_packed_p): New function.
10235 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
10236 loads.
10237 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
10238 * hsa-brig.c (emit_basic_insn): Likewise.
10239
10240 2016-02-26 Martin Jambor <mjambor@suse.cz>
10241
10242 pr hsa/69674
10243 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
10244 pointers.
10245 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
10246
10247 2016-02-26 Martin Jambor <mjambor@suse.cz>
10248
10249 * hsa.h (is_a_helper): New overload for hsa_op_immed for
10250 hsa_op_with_type operands.
10251 (hsa_unsigned_type_for_type): Declare.
10252 * hsa.c (hsa_unsigned_type_for_type): New function.
10253 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
10254 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
10255 the finalizer. Do not emit extra move.
10256
10257 2016-02-26 Martin Jambor <mjambor@suse.cz>
10258
10259 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
10260 atomic operations in private segment.
10261
10262 2016-02-26 Martin Jambor <mjambor@suse.cz>
10263
10264 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
10265 statements to wi->info. Also disallow omp simd constructs.
10266 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
10267 for not gridifying. Dump special string for omp_for.
10268
10269 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10270
10271 PR target/69245
10272 * config/aarch64/aarch64.c (aarch64_set_current_function):
10273 Save/restore target globals when switching to
10274 target_option_default_node.
10275
10276 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10277
10278 PR target/69613
10279 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
10280 Return 0 if !SHIFT_COUNT_TRUNCATED.
10281
10282 2016-02-26 Jakub Jelinek <jakub@redhat.com>
10283 Eric Botcazou <ebotcazou@adacore.com>
10284
10285 PR rtl-optimization/69891
10286 * dse.c (scan_insn): If we can't figure out memset arguments
10287 or they are non-constant, call clear_rhs_from_active_local_stores.
10288
10289 2016-02-26 Martin Liska <mliska@suse.cz>
10290
10291 * doc/extend.texi: Mention clog10, clog10f an clog10l
10292 in Builtins section.
10293
10294 2016-02-26 Martin Liska <mliska@suse.cz>
10295
10296 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
10297 CHECKING_P.
10298 (resolve_args_picking_1): Likewise.
10299 * dwarf2out.h (struct GTY): Likewise.
10300
10301 2016-02-26 Martin Liska <mliska@suse.cz>
10302
10303 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
10304 with flag_checking.
10305 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
10306
10307 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
10308 Martin Liska <mliska@suse.cz>
10309
10310 * doc/install.texi: Mention --enable-valgrind-annotations.
10311
10312 2016-02-26 Richard Biener <rguenther@suse.de>
10313
10314 PR tree-optimization/69551
10315 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
10316 looking through aliases adjust DECL_PT_UID to refer to the
10317 ultimate alias target.
10318
10319 2016-02-25 Martin Liska <mliska@suse.cz>
10320
10321 PR middle-end/69919
10322 * alloc-pool.c (after_memory_report): New variable.
10323 * alloc-pool.h (base_pool_allocator ::release): Do not use
10324 the infrastructure if after_memory_report.
10325 * toplev.c (toplev::main): Mark after memory report.
10326
10327 2016-02-25 Richard Biener <rguenther@suse.de>
10328
10329 PR tree-optimization/48795
10330 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
10331
10332 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
10333
10334 PR driver/68463
10335 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
10336 offloading is enabled and -fopenacc or -fopenmp is specified.
10337 (CRTOFFLOADEND): Likewise.
10338 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
10339 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
10340 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
10341 (offload_objects_file_name): New static var.
10342 (tool_cleanup): Remove offload_objects_file_name file.
10343 (find_offloadbeginend): Replace with ...
10344 (find_crtoffloadtable): ... this.
10345 (run_gcc): Remove offload_argc and offload_argv.
10346 Get offload_objects_file_name from -foffload-objects=... option.
10347 Read names of object files with offload from this file, pass them to
10348 compile_images_for_offload_targets. Don't call find_offloadbeginend and
10349 don't pass offloadbegin and offloadend to the linker. Don't pass
10350 offload non-LTO files to the linker, because now they're not claimed.
10351
10352 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
10353
10354 PR ipa/69630
10355 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
10356 on builtin_unreachable.
10357
10358 2016-02-25 Jakub Jelinek <jakub@redhat.com>
10359
10360 PR rtl-optimization/69896
10361 * regcprop.c: Include cfgrtl.h.
10362 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
10363 than remembered mode, either delete it (if noop_move_p), or
10364 treat like copy_p but not noop_p instruction.
10365
10366 2016-02-24 Jakub Jelinek <jakub@redhat.com>
10367
10368 PR debug/69705
10369 * dwarf2out.c (gen_variable_die): Work around buggy LTO
10370 - allow NULL decl for Fortran DW_TAG_common_block variables.
10371
10372 2016-02-24 Jason Merrill <jason@redhat.com>
10373
10374 * common.opt (flifetime-dse): Add -flifetime-dse=1.
10375
10376 2016-02-24 Richard Biener <rguenther@suse.de>
10377 Jakub Jelinek <jakub@redhat.com>
10378
10379 PR middle-end/69760
10380 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
10381 conditionally executed ops to well-defined overflow behavior.
10382
10383 2016-02-24 Jakub Jelinek <jakub@redhat.com>
10384
10385 PR middle-end/69915
10386 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
10387 elements.
10388
10389 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10390
10391 PR rtl-optimization/69886
10392 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
10393 argument. Use it when checking validity of set instructions.
10394 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
10395 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
10396 callsite.
10397 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
10398 * store-motion.c (find_moveable_store): Update
10399 can_assign_to_reg_without_clobbers_p callsite.
10400
10401 2016-02-24 Richard Biener <rguenther@suse.de>
10402
10403 PR middle-end/68963
10404 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
10405 bogus check.
10406 (record_nonwrapping_iv): Do not fall back to the low/high bound
10407 for non-constant IV bases if the stmt is not always executed.
10408
10409 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10410
10411 * config/arm/arm-cores.def (cortex-a32): New entry.
10412 * config/arm/arm-tables.opt: Regenerate.
10413 * config/arm/arm-tune.md: Regenerate.
10414 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
10415 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
10416 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
10417 for -mcpu and -mtune.
10418
10419 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10420
10421 PR target/69875
10422 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
10423 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
10424 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
10425 (atomic_loaddi_1): Delete.
10426 (atomic_loaddi): Rewrite expander using the above changes.
10427
10428 2016-02-24 Jakub Jelinek <jakub@redhat.com>
10429
10430 PR c/69918
10431 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
10432 2 to 3.
10433
10434 2016-02-24 Jakub Jelinek <jakub@redhat.com>
10435 Richard Biener <rguenth@suse.de>
10436
10437 PR middle-end/69909
10438 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
10439 set_mem_attributes if tem is SSA_NAME which got expanded
10440 as a MEM.
10441
10442 2016-02-24 Richard Biener <rguenther@suse.de>
10443
10444 PR tree-optimization/69907
10445 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
10446 end of permutations for BB vectorization.
10447
10448 2016-02-24 Christian Bruel <christian.bruel@st.com>
10449
10450 * config/arm/arm-c.c (arm_option_override): Initialize
10451 target_option_current_node.
10452 * config/arm/arm.c (arm_pragma_target_parse): Replace
10453 build_target_option_node call by target_option_current_node.
10454 Set target_option_current_node.
10455 Fix comments.
10456
10457 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
10458
10459 PR target/69810
10460 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
10461 define_insn_and_split to define_insn.
10462 (zero_extendqi<mode>2_dot2): Same.
10463 (extendqi<mode>2_dot): Same.
10464 (extendqi<mode>2_dot2): Same.
10465
10466 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
10467
10468 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
10469 and add bypass for AES{D,E} and AESMC pairs.
10470 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
10471 and AESMC pairs.
10472
10473 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
10474
10475 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
10476 series for reciprocal square root in Exynos M1.
10477
10478 2016-02-23 Martin Sebor <msebor@redhat.com>
10479
10480 PR c/69759
10481 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
10482 __builtin_alloca_with_align.
10483
10484 2016-02-23 Richard Henderson <rth@redhat.com>
10485
10486 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
10487 (ix86_register_pragmas): Remove __seg_tls.
10488 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
10489 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
10490 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
10491 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
10492 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
10493 * doc/extend.texi (__seg_tls): Remove item.
10494
10495 2016-02-23 Richard Biener <rguenther@suse.de>
10496
10497 * alloc-pool.h (struct allocation_object): Make id member
10498 conditional on CHECKING_P again.
10499 (get_instance): Adjust.
10500 (base_pool_allocator): Likewise.
10501
10502 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
10503
10504 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
10505 (parallelize_loops): In OpenACC kernels mode, set n_threads to
10506 zero.
10507 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
10508 flag_openacc.
10509 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
10510
10511 2016-02-23 Richard Biener <rguenther@suse.de>
10512
10513 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
10514 * bitmap.h (struct bitmap_usage): Likewise.
10515 (bitmap_move): Declare.
10516 * bitmap.c (register_overhead): Take size_t argument.
10517 (bitmap_move): New function.
10518 * df-problems.c (df_rd_transfer_function): Use bitmap_move
10519 to properly account overhead.
10520 * tree.c (free_node): Use tree_size.
10521
10522 2016-02-23 Jakub Jelinek <jakub@redhat.com>
10523
10524 PR c++/69902
10525 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
10526 when inverting comparison.
10527
10528 PR c/69900
10529 * common.opt (Wunreachable-code): Add Warning flag.
10530
10531 2016-02-23 Mark Wielaard <mjw@redhat.com>
10532 Jakub Jelinek <jakub@redhat.com>
10533
10534 PR c/69911
10535 * cgraphunit.c (check_global_declaration): Check main_input_filename
10536 and DECL_SOURCE_FILE are not NULL.
10537
10538 2016-02-23 Martin Jambor <mjambor@suse.cz>
10539
10540 PR tree-optimization/69666
10541 * tree-sra.c (sra_modify_assign): Do not attempt to create
10542 default_def replacements for unscalarizable regions.
10543
10544 2016-02-20 Mark Wielaard <mjw@redhat.com>
10545
10546 PR c/28901
10547 * cgraphunit.c (check_global_declaration): Check level of
10548 warn_unused_const_variable and main_input_filename.
10549 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
10550 (-Wunused-variable): For C implies -Wunused-const-variable=1.
10551 (-Wunused-const-variable): Explain levels 1 and 2.
10552
10553 2016-02-22 Jakub Jelinek <jakub@redhat.com>
10554
10555 PR target/69888
10556 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
10557 identical arguments. Formatting and spelling fixes.
10558
10559 PR target/69885
10560 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
10561 be specified.
10562
10563 PR target/69894
10564 PR target/69895
10565 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
10566 and m68k-devices.def.
10567 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
10568 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
10569
10570 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
10571
10572 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
10573 and HImode registers.
10574
10575 2016-02-22 Richard Biener <rguenther@suse.de>
10576
10577 PR tree-optimization/69882
10578 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
10579 preserve permutations present because of gaps.
10580 (vect_supported_load_permutation_p): Always continue checking
10581 permutations after vect_attempt_slp_rearrange_stmts.
10582
10583 2016-02-22 Bin Cheng <bin.cheng@arm.com>
10584
10585 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
10586 min_profitable_estimate, rather than min_profitable_iters.
10587
10588 2016-02-22 Jakub Jelinek <jakub@redhat.com>
10589
10590 PR target/69885
10591 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
10592 SImode for last match_operand.
10593
10594 2016-02-22 Martin Liska <mliska@suse.cz>
10595
10596 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
10597 return bitsize - 1 as the return value.
10598
10599 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
10600
10601 PR target/69806
10602 PR target/54089
10603 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
10604 Handle negative shift counts.
10605 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
10606 force_reg on the shift constant.
10607 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
10608 (lshrsi3_d): Handle negative shift counts.
10609
10610 2016-02-22 Richard Biener <rguenther@suse.de>
10611 Tom de Vries <tom@codesourcery.com>
10612
10613 * graph.c: Include dumpfile.h.
10614 (print_graph_cfg): Split into three overloads.
10615 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
10616
10617 2016-02-22 Tom de Vries <tom@codesourcery.com>
10618
10619 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
10620 dump-fn.
10621
10622 2016-02-22 Richard Biener <rguenther@suse.de>
10623
10624 PR ipa/37448
10625 * ipa-inline-transform.c (inline_call): When not updating
10626 overall summaries adjust self size by the growth estimate.
10627 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
10628 hash-set, do not update overall summaries here. Renamed from ...
10629 (inline_to_all_callers): ... this which is now wrapping the
10630 above and performing delayed overall summary update.
10631 (early_inline_small_functions): Delay updating of the overall
10632 summary.
10633
10634 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
10635
10636 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
10637 variable.
10638
10639 2016-02-19 Jakub Jelinek <jakub@redhat.com>
10640
10641 PR driver/69805
10642 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
10643 :%* in %:gt() argument.
10644 (greater_than_spec_func): Adjust for expecting only numbers,
10645 if there are more than two numbers, compare the last two.
10646
10647 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
10648
10649 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
10650 -Wnarrowing with -std.
10651
10652 2016-02-19 Jakub Jelinek <jakub@redhat.com>
10653
10654 PR c++/69851
10655 * expr.c (store_field): Don't use bit-field path if exp is
10656 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
10657 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
10658 and the assignment can be performed by bitwise copy. Formatting
10659 fix.
10660
10661 PR middle-end/69838
10662 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
10663 call copy_reg_eh_region_note_forward on before and/or after sequences
10664 and remove note from insn if it no longer can throw.
10665
10666 PR target/69820
10667 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
10668 if TARGET_AVX512BW.
10669
10670 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10671
10672 * config/s390/vector.md: Add missing commutative operand markers
10673 to the patterns which qualify for one.
10674 * config/s390/vx-builtins.md: Likewise.
10675
10676 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10677
10678 * config/s390/vector.md (VI, VI_QHS): Add single element vector
10679 types to mode iterators.
10680 (vec_double): ... and mode attribute.
10681 * config/s390/vx-builtins.md (non_vec_int): Likewise.
10682
10683 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10684
10685 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
10686 Change the predicate of op2 from nonimmediate to general and let
10687 reload fix it if necessary.
10688
10689 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10690
10691 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
10692
10693 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10694
10695 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
10696 mode.
10697
10698 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10699
10700 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
10701 * config/s390/s390.c (s390_expand_vec_movstr): New function.
10702 * config/s390/s390.md ("movstr<P:mode>"): Call
10703 s390_expand_vec_movstr.
10704
10705 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10706
10707 * config/s390/s390.md: Add missing output modifier for operand 1
10708 to print it as address properly.
10709
10710 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10711
10712 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
10713 * config/s390/2964.md: New file.
10714 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
10715 of insn grouping attributes depending on the CPU level.
10716 (s390_get_unit_mask): New function.
10717 (s390_sched_score): Remove the OOO from the scheduling macros.
10718 Add loop to calculate a score for the instruction mix.
10719 (s390_sched_reorder): Likewise plus improve debug output.
10720 (s390_sched_variable_issue): Rename macros as above. Calculate
10721 the unit distances after actually scheduling an insn. Improve
10722 debug output.
10723 (s390_sched_init): Clear last_scheduled_unit_distance array.
10724 * config/s390/s390.md: Include 2964.md.
10725
10726 2016-02-18 Jakub Jelinek <jakub@redhat.com>
10727
10728 PR target/69671
10729 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
10730 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
10731 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
10732 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
10733 *avx512f_<code>v8div16qi2_mask_1): New insns.
10734
10735 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
10736
10737 PR target/68404
10738 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
10739 2016-02-09 change.
10740
10741 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
10742 earlyclobber from target. Use wF constraint for fused memory
10743 address.
10744 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
10745
10746 2016-02-18 Jakub Jelinek <jakub@redhat.com>
10747 Martin Liska <mliska@suse.cz>
10748
10749 PR sanitizer/69863
10750 * cfgexpand.c (asan_sanitize_stack_p): New function.
10751 (partition_stack_vars): Use the function.
10752 (expand_stack_vars): Likewise.
10753 (defer_stack_allocation): Likewise.
10754 (expand_used_vars): Likewise.
10755
10756 2016-02-18 Richard Biener <rguenther@suse.de>
10757
10758 PR middle-end/69553
10759 * fold-const.c (operand_equal_p): Properly compare offsets for
10760 IMAGPART_EXPR and ARRAY_REF.
10761
10762 2016-02-18 Nick Clifton <nickc@redhat.com>
10763
10764 PR target/62254
10765 PR target/69610
10766 * config/arm/arm.c (arm_option_override_internal): Disable
10767 interworking if the target does not support thumb instructions.
10768 (arm_reload_in_hi): Handle the case where a register to register
10769 move needs reloading because there is no simple pattern to handle
10770 it.
10771 (arm_reload_out_hi): Likewise.
10772
10773 2016-02-18 Richard Biener <rguenther@suse.de>
10774
10775 PR middle-end/69854
10776 * match.pd: Don't use fold_binary or fold_unary for folding
10777 constants.
10778
10779 2016-02-17 Jakub Jelinek <jakub@redhat.com>
10780
10781 PR c++/69850
10782 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
10783 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
10784 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
10785 warn on gimple_no_warning_p statements.
10786
10787 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
10788
10789 * doc/extend.texi (C++ Attributes): Correct description of
10790 warn_unused type attribute.
10791
10792 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10793
10794 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
10795 correct instruction.
10796
10797 2016-02-17 Richard Biener <rguenther@suse.de>
10798
10799 PR rtl-optimization/69609
10800 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
10801 (find_traces_1_round): When ending a trace update cached priority
10802 of successors.
10803 (bb_to_key): Use cached priority when available.
10804 (copy_bb): Initialize cached priority.
10805 (reorder_basic_blocks_software_trace_cache): Likewise.
10806
10807 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10808
10809 PR target/69161
10810 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
10811 New predicate.
10812 (aarch64_comparison_operator): Break overly long line into two.
10813 (aarch64_comparison_operation): Likewise.
10814 * config/aarch64/aarch64.md (cstorecc4): Use
10815 aarch64_comparison_operator_mode instead of
10816 aarch64_comparison_operator.
10817 (cstore<mode>4): Likewise.
10818 (aarch64_cstore<mode>): Likewise.
10819 (*cstoresi_insn_uxtw): Likewise.
10820 (cstore<mode>_neg): Likewise.
10821 (*cstoresi_neg_uxtw): Likewise.
10822
10823 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10824
10825 PR target/69161
10826 * config/arm/predicates.md (arm_comparison_operator_mode):
10827 New predicate.
10828 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
10829 instead of arm_comparison_operator.
10830 (*mov_negscc): Likewise.
10831 (*mov_notscc): Likewise.
10832 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
10833 (*thumb2_mov_negscc): Likewise.
10834 (*thumb2_mov_negscc_strict_it): Likewise.
10835 (*thumb2_mov_notscc): Likewise.
10836 (*thumb2_mov_notscc_strict_it): Likewise.
10837
10838 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
10839
10840 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
10841 Add missing return.
10842
10843 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
10844
10845 * config/visium/visium.c (machine_libfunc_index): New enum.
10846 (machine_libfuncs): New structure.
10847 (visium_libfuncs): New static variable.
10848 (TARGET_INIT_LIBFUNCS): Define to...
10849 (visium_init_libfuncs): ...this. New function.
10850 (expand_block_move_4): Use the appropriate libfunc.
10851 (expand_block_move_2): Likewise.
10852 (expand_block_move_1): Likewise.
10853 (expand_block_set_4): Likewise.
10854 (expand_block_set_2): Likewise.
10855 (expand_block_set_1): Likewise.
10856 (visium_trampoline_init): Likewise.
10857
10858 2016-02-17 Nick Clifton <nickc@redhat.com>
10859
10860 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
10861 TI's devices.csv file as of March 2016.
10862
10863 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
10864
10865 PR Target/48344
10866 * opts-global.c (handle_common_deferred_options): Introduce and
10867 initialize two global variables to remember command-line options
10868 specifying a stack-limiting register.
10869 * opts.h: Add extern declarations of the two new global variables.
10870 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
10871 variable based on the values of the two new global variables.
10872
10873 2016-02-16 Jakub Jelinek <jakub@redhat.com>
10874
10875 PR c/69835
10876 * common.opt (Wnonnull-compare): New warning.
10877 * doc/invoke.texi (-Wnonnull): Remove text about comparison
10878 of arguments against NULL.
10879 (-Wnonnull-compare): Document.
10880 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
10881 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
10882 * passes.def (pass_warn_nonnull_compare): Add.
10883 * gimple-ssa-nonnull-compare.c: New file.
10884
10885 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
10886
10887 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
10888 AARCH64_EXTRA_TUNE_RECIP_SQRT.
10889
10890 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
10891
10892 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
10893 reciprocal sqrt for -mlow-precision-recip-sqrt.
10894
10895 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
10896 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10897
10898 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
10899 always use lane loads to construct non-constant vectors.
10900
10901 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
10902
10903 * config/aarch64/aarch64.md
10904 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
10905 constraints for operand 3.
10906 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
10907
10908 2016-02-16 Jakub Jelinek <jakub@redhat.com>
10909 Richard Biener <rguenther@suse.de>
10910
10911 PR tree-optimization/69820
10912 * tree-vect-patterns.c (type_conversion_p): Return false if
10913 *orig_type is unsigned single precision or boolean.
10914 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
10915 Formatting fix.
10916
10917 2016-02-16 Jakub Jelinek <jakub@redhat.com>
10918
10919 PR rtl-optimization/69764
10920 PR rtl-optimization/69771
10921 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
10922 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
10923
10924 2016-02-16 Richard Biener <rguenther@suse.de>
10925
10926 PR tree-optimization/69776
10927 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
10928 sets from caller.
10929 (indirect_refs_may_alias_p): Likewise.
10930 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
10931 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
10932 according to tbaa_p.
10933 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
10934 (optimize_stmt): For redundant store discovery do not allow tbaa.
10935
10936 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
10937
10938 PR tree-optimization/69714
10939 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
10940 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
10941
10942 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
10943
10944 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
10945 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
10946 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
10947 * config/arc/arc.c (arc_init): Check FPU options.
10948 (get_arc_condition_code): Handle new CC_FPU* modes.
10949 (arc_select_cc_mode): Likewise.
10950 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
10951 register pair only. Allow access for ARCv2 accumulator.
10952 (gen_compare_reg): Whenever we have FPU support use FPU compare
10953 instructions.
10954 (arc_reorg): Don't generate brcc insns when FPU compare
10955 instructions are involved.
10956 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
10957 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
10958 floating point emulation.
10959 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
10960 (REVERSE_CONDITION): Add new CC_FPU* modes.
10961 (TARGET_FP_SP_BASE): Define.
10962 (TARGET_FP_DP_BASE): Likewise.
10963 (TARGET_FP_SP_FUSED): Likewise.
10964 (TARGET_FP_DP_FUSED): Likewise.
10965 (TARGET_FP_SP_CONV): Likewise.
10966 (TARGET_FP_DP_CONV): Likewise.
10967 (TARGET_FP_SP_SQRT): Likewise.
10968 (TARGET_FP_DP_SQRT): Likewise.
10969 (TARGET_FP_DP_AX): Likewise.
10970 * config/arc/arc.md (ARCV2_ACC): New constant.
10971 (type): New fpu type attribute.
10972 (SDF): Conditional iterator.
10973 (cstore<mode>, cbranch<mode>): Change expand condition.
10974 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
10975 handles FPU/FPX cases as well.
10976 * config/arc/arc.opt (mfpu): New option.
10977 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
10978 Renamed.
10979 (adddf3, muldf3, subdf3): Removed.
10980 * config/arc/predicates.md (proper_comparison_operator): Recognize
10981 CC_FPU* modes.
10982 * config/arc/fpu.md: New file.
10983 * doc/invoke.texi (ARC Options): Document mfpu option.
10984
10985 2016-02-16 Richard Biener <rguenther@suse.de>
10986
10987 PR rtl-optimization/69291
10988 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
10989 noce_operand_ok check.
10990
10991 2016-02-16 Tom de Vries <tom@codesourcery.com>
10992
10993 PR lto/67709
10994 * omp-low.c (simd_clone_create): Remove call to
10995 symtab->call_cgraph_insertion_hooks.
10996
10997 2016-02-16 Jakub Jelinek <jakub@redhat.com>
10998
10999 PR tree-optimization/69802
11000 * tree-ssa-reassoc.c (update_range_test): If op is
11001 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
11002 op == 1 test of precision 1 integral op, otherwise handle
11003 that case as op itself. Fix up formatting.
11004 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
11005 up formatting.
11006
11007 2016-02-16 Richard Biener <rguenther@suse.de>
11008
11009 PR tree-optimization/69586
11010 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
11011 types for conversion sources.
11012
11013 2016-02-16 Richard Biener <rguenther@suse.de>
11014
11015 PR middle-end/69801
11016 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
11017 mask OEP_ADDRESS_OF.
11018
11019 2016-02-16 Alan Modra <amodra@gmail.com>
11020
11021 PR target/68973
11022 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
11023 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
11024 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
11025 (p8_mtvsrwz): New.
11026 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
11027 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
11028 (p8_fmrgow_<mode>): Likewise.
11029 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
11030 changes.
11031 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
11032 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
11033 to use movdi_internal64. Remove op0_di.
11034 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
11035
11036 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
11037
11038 Add support for the FCCMP insn types
11039
11040 * config/aarch64/aarch64.md (fccmp): Change insn type.
11041 (fccmpe): Likewise.
11042 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
11043 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
11044 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
11045 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
11046 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
11047 * config/arm/types.md (fccmps): Add new insn type.
11048 (fccmpd): Likewise.
11049
11050 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
11051
11052 * alias.c (get_alias_set): Fix a typo in comment.
11053
11054 2016-02-15 Richard Biener <rguenther@suse.de>
11055
11056 PR tree-optimization/69595
11057 * match.pd: Complete range test simplification to true.
11058
11059 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
11060
11061 PR rtl-optimization/69648
11062 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
11063 pic_offset_table_rtx.
11064
11065 PR rtl-optimization/69752
11066 * ira.c (update_equiv_regs): When looking for more than a single SET,
11067 also take other side effects into account.
11068
11069 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
11070
11071 * config/s390/s390.c (s390_function_profiler): Add a new sequence
11072 for z900+ CPUs in 31-bit mode.
11073
11074 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
11075
11076 * common/config/s390/s390-common.c (s390_supports_split_stack):
11077 New function.
11078 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
11079 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
11080 * config/s390/s390.c (struct machine_function): New field
11081 split_stack_varargs_pointer.
11082 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
11083 in s390_emit_prologue.
11084 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
11085 vararg pointer.
11086 (morestack_ref): New global.
11087 (SPLIT_STACK_AVAILABLE): New macro.
11088 (s390_expand_split_stack_prologue): New function.
11089 (s390_live_on_entry): New function.
11090 (s390_va_start): Use split-stack vararg pointer if appropriate.
11091 (s390_asm_file_end): Emit the split-stack note sections.
11092 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
11093 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
11094 (UNSPECV_SPLIT_STACK_CALL): New unspec.
11095 (UNSPECV_SPLIT_STACK_DATA): New unspec.
11096 (split_stack_prologue): New expand.
11097 (split_stack_space_check): New expand.
11098 (split_stack_data): New insn.
11099 (split_stack_call): New expand.
11100 (split_stack_call_*): New insn.
11101 (split_stack_cond_call): New expand.
11102 (split_stack_cond_call_*): New insn.
11103
11104 2016-02-15 Richard Biener <rguenther@suse.de>
11105
11106 PR tree-optimization/69783
11107 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
11108 Add trivially correct cases.
11109
11110 2016-02-15 Tom de Vries <tom@codesourcery.com>
11111
11112 PR lto/69655
11113 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
11114 do_force_output.
11115 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
11116
11117 2016-02-15 Richard Biener <rguenther@suse.de>
11118
11119 PR tree-optimization/69776
11120 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
11121 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
11122 indicate whether we can use TBAA to disambiguate against stores.
11123 Use alias-set zero if not.
11124 (visit_reference_op_store): Do not use TBAA when looking up
11125 redundant stores.
11126 * tree-ssa-pre.c (compute_avail): Use TBAA here.
11127 (eliminate_dom_walker::before_dom_children): But not when looking
11128 up redundant stores.
11129
11130 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
11131
11132 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
11133
11134 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11135
11136 * config/i386/znver1.md
11137 (znver1_pop, znver1_pop_mem,
11138 znver1_load_imov_double_store,
11139 znver1_load_imov_direct_store,
11140 znver1_load_imov_direct_load,
11141 znver1_load_imov_double_load): Add new.
11142 (znver1_insn, znver1_insn_load): Add icmov type.
11143 (znver1_sseavx_fma,
11144 znver1_sseavx_fma_load,
11145 znver1_avx256_fma,
11146 znver1_avx256_fma_load): Fix pipe usage.
11147
11148 2016-02-14 Alan Modra <amodra@gmail.com>
11149
11150 PR target/68973
11151 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
11152 with an invalid hard reg, reload just the reg not the entire
11153 pre/post-inc/dec address expression.
11154
11155 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
11156
11157 PR target/67260
11158 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
11159 fixed R1_REG scratch reg.
11160 (sibcall_value_pcrel_fdpic): Likewise.
11161
11162 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
11163
11164 PR target/67636
11165 PR target/64345
11166 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
11167
11168 2016-02-12 Walter Lee <walt@tilera.com>
11169
11170 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
11171 * config/tilegx/t-tilegx: Likewise.
11172
11173 2016-02-12 David Malcolm <dmalcolm@redhat.com>
11174
11175 PR other/69554
11176 * diagnostic-show-locus.c (struct line_span): New struct.
11177 (layout::get_first_line): Delete.
11178 (layout::get_last_line): Delete.
11179 (layout::get_num_line_spans): New member function.
11180 (layout::get_line_span): Likewise.
11181 (layout::print_heading_for_line_span_index_p): Likewise.
11182 (layout::get_expanded_location): Likewise.
11183 (layout::calculate_line_spans): Likewise.
11184 (layout::m_first_line): Delete.
11185 (layout::m_last_line): Delete.
11186 (layout::m_line_spans): New field.
11187 (layout::layout): Update comment. Replace m_first_line and
11188 m_last_line with m_line_spans, replacing their initialization
11189 with a call to calculate_line_spans.
11190 (diagnostic_show_locus): When printing source lines and
11191 annotations, rather than looping over a single span
11192 of lines, instead loop over each line_span within
11193 the layout, with an inner loop over the lines within them.
11194 Call the context's start_span callback when changing line spans.
11195 * diagnostic.c (diagnostic_initialize): Initialize start_span.
11196 (diagnostic_build_prefix): Break out the building of the location
11197 part of the string into...
11198 (diagnostic_get_location_text): ...this new function, rewriting
11199 it from nested ternary expressions to a sequence of "if"
11200 statements.
11201 (default_diagnostic_start_span_fn): New function.
11202 * diagnostic.h (diagnostic_start_span_fn): New typedef.
11203 (diagnostic_context::start_span): New field.
11204 (default_diagnostic_start_span_fn): New prototype.
11205
11206 2016-02-12 David Malcolm <dmalcolm@redhat.com>
11207
11208 PR driver/69779
11209 * gcc.c (driver::finalize): Fix cleanup of "specs".
11210
11211 2016-02-12 David Malcolm <dmalcolm@redhat.com>
11212
11213 PR driver/69265
11214 PR driver/69453
11215 * gcc.c (driver::driver): Initialize m_option_suggestions.
11216 (driver::~driver): Clean up m_option_suggestions.
11217 (suggest_option): Convert to...
11218 (driver::suggest_option): ...this, and split out into
11219 driver::build_option_suggestions and find_closest_string.
11220 (driver::build_option_suggestions): New function, from
11221 first half of suggest_option. Special-case
11222 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
11223 the sanitizer_opts array. For options of enum types, add the
11224 various enum values to the candidate strings.
11225 (driver::handle_unrecognized_options): Remove "const".
11226 * gcc.h (driver::handle_unrecognized_options): Likewise.
11227 (driver::build_option_suggestions): New decl.
11228 (driver::suggest_option): New decl.
11229 (driver::m_option_suggestions): New field.
11230 * opts-common.c (add_misspelling_candidates): New function.
11231 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
11232 and make non-static.
11233 * opts.h (sanitizer_opts): New array decl.
11234 (add_misspelling_candidates): New function decl.
11235 * spellcheck.c (find_closest_string): New function.
11236 * spellcheck.h (find_closest_string): New function decl.
11237
11238 2016-02-12 Jakub Jelinek <jakub@redhat.com>
11239
11240 PR rtl-optimization/69764
11241 PR rtl-optimization/69771
11242 * optabs.c (expand_binop_directly): For shift_optab_p, force
11243 convert_modes with VOIDmode if xop1 has VOIDmode.
11244
11245 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
11246
11247 PR target/69729
11248 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
11249 to correctly determine instrumentation thunks.
11250
11251 2016-02-12 Jakub Jelinek <jakub@redhat.com>
11252
11253 PR ipa/69241
11254 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
11255 type by reference, force lhs on the call.
11256
11257 PR ipa/68672
11258 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
11259 Compute retval and retbnd early in all cases if split_part_return_p
11260 and return_bb is not EXIT. Remove all clobber stmts and reset
11261 all debug stmts that refer to SSA_NAMEs defined in split part,
11262 except if it is retval, in that case replace the old retval with the
11263 lhs of the call to the split part.
11264
11265 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
11266
11267 revert:
11268 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
11269
11270 PR middle-end/66726
11271 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
11272 whose result is used in PHI.
11273 (maybe_optimize_range_tests): Likewise.
11274 (final_range_test_p): Likweise.
11275
11276 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
11277
11278 PR middle-end/66726
11279 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
11280 whose result is used in PHI.
11281 (maybe_optimize_range_tests): Likewise.
11282 (final_range_test_p): Likweise.
11283
11284 2016-02-12 Jakub Jelinek <jakub@redhat.com>
11285
11286 * cgraph.c: Spelling fixes - behaviour -> behavior and
11287 neighbour -> neighbor.
11288 * target.def: Likewise.
11289 * sel-sched.c: Likewise.
11290 * config/mips/mips.c: Likewise.
11291 * config/arc/arc.md: Likewise.
11292 * config/arm/cortex-a57.md: Likewise.
11293 * config/arm/arm.c: Likewise.
11294 * config/arm/neon.md: Likewise.
11295 * config/arm/arm-c.c: Likewise.
11296 * config/vms/vms-c.c: Likewise.
11297 * config/s390/s390.c: Likewise.
11298 * config/i386/znver1.md: Likewise.
11299 * config/i386/i386.c: Likewise.
11300 * config/ia64/hpux-unix2003.h: Likewise.
11301 * config/msp430/msp430.md: Likewise.
11302 * config/rx/rx.c: Likewise.
11303 * config/rx/rx.md: Likewise.
11304 * config/aarch64/aarch64-simd.md: Likewise.
11305 * config/aarch64/aarch64.c: Likewise.
11306 * config/nvptx/nvptx.c: Likewise.
11307 * config/bfin/bfin.c: Likewise.
11308 * config/cris/cris.opt: Likewise.
11309 * config/rs6000/rs6000.c: Likewise.
11310 * target.h: Likewise.
11311 * spellcheck.c: Likewise.
11312 * ira-build.c: Likewise.
11313 * tree-inline.c: Likewise.
11314 * builtins.c: Likewise.
11315 * lra-constraints.c: Likewise.
11316 * explow.c: Likewise.
11317 * hwint.h: Likewise.
11318 * targhooks.c: Likewise.
11319 * tree-vect-data-refs.c: Likewise.
11320 * expr.c: Likewise.
11321 * doc/tm.texi: Likewise.
11322 * doc/extend.texi: Likewise.
11323 * doc/install.texi: Likewise.
11324 * doc/md.texi: Likewise.
11325 * tree-ssa-tail-merge.c: Likewise.
11326 * sched-int.h: Likewise.
11327 * match.pd: Likewise.
11328 * sched-ebb.c: Likewise.
11329 * target.def (omit_struct_return_reg): Likewise.
11330 * gimple-ssa-isolate-paths.c: Likewise.
11331 (find_implicit_erroneous_behaviour): Renamed to...
11332 (find_implicit_erroneous_behavior): ... this.
11333 (find_explicit_erroneous_behaviour): Renamed to...
11334 (find_explicit_erroneous_behavior): ... this.
11335 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
11336
11337 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
11338
11339 PR rtl-optimization/64682
11340 PR rtl-optimization/69567
11341 PR rtl-optimization/69737
11342 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
11343 in I2 as well, just lose it.
11344
11345 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11346
11347 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
11348 New variable.
11349 (aarch64_last_printed_tune_string): Likewise.
11350 (aarch64_declare_function_name): Only output .arch assembler
11351 directive if it will be different from the previously output
11352 directive. Same for .tune comment but only if -dA is set.
11353 (aarch64_start_file): New function.
11354 (TARGET_ASM_FILE_START): Define.
11355
11356 2016-02-11 David Malcolm <dmalcolm@redhat.com>
11357
11358 PR plugins/69758
11359 * Makefile.in (PLUGIN_HEADERS): Add params.list.
11360
11361 2016-02-11 Jakub Jelinek <jakub@redhat.com>
11362
11363 PR target/65313
11364 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
11365 -Wmaybe-uninitialized warning.
11366
11367 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
11368
11369 PR target/69713
11370 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
11371
11372 2016-02-11 Richard Biener <rguenther@suse.de>
11373
11374 PR rtl-optimization/69291
11375 * ifcvt.c (noce_try_store_flag_constants): Do not allow
11376 subexpressions affected by changing the result.
11377
11378 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
11379
11380 PR target/69148
11381 * lra-constraints.c (curr_insn_transform): Find in/out operands
11382 for secondary memory moves. Update dups.
11383
11384 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
11385
11386 PR tree-optimization/69652
11387 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
11388 to nested loop, did source re-formatting, skip debug statements,
11389 add check on statement with volatile operand, remove dead scalar
11390 statements.
11391
11392 2016-02-10 Jakub Jelinek <jakub@redhat.com>
11393 Patrick Palka <ppalka@gcc.gnu.org>
11394
11395 PR ipa/69241
11396 PR c++/69649
11397 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
11398 calls if the return type is TREE_ADDRESSABLE.
11399 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
11400 * ipa-split.c (split_function): Fix doubled "we" in comment.
11401 Use void return type for the split part even if
11402 !split_point->split_part_set_retval.
11403
11404 2016-02-10 Bin Cheng <bin.cheng@arm.com>
11405
11406 PR tree-optimization/68021
11407 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
11408 when computing the value of biv cand by itself.
11409
11410 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
11411
11412 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
11413 (cortexa57_tunings): Likewise.
11414 (cortexa72_tunings): Likewise.
11415 (arch_macro_fusion_pair_p): Add support for AES fusion.
11416 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
11417 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
11418 Allow virtual registers before reload so early scheduling works.
11419 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
11420 correct latency and pipeline.
11421 (cortex_a57_crypto_complex): Likewise.
11422 (cortex_a57_crypto_xor): Likewise.
11423 (define_bypass): Add AES bypass.
11424
11425 2016-02-10 Richard Biener <rguenther@suse.de>
11426
11427 PR tree-optimization/69726
11428 * passes.def: Add DCE pass before late uninit.
11429 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
11430 really fixup if-conversions job.
11431
11432 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
11433
11434 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
11435 (arm_cortex_a57_tune): Likewise.
11436 (aarch_macro_fusion_pair_p): Add support for AES fusion.
11437 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
11438
11439 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
11440
11441 * timevar.def (TV_PHASE_DBGINFO): Delete.
11442 (TV_PHASE_CHECK_DBGINFO): Likewise.
11443 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
11444
11445 2016-02-10 Richard Biener <rguenther@suse.de>
11446
11447 PR tree-optimization/69719
11448 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
11449 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
11450
11451 2016-02-09 Andrew Pinski <apinski@cavium.com>
11452
11453 PR tree-opt/69282
11454 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
11455 get_vcond_mask_icode returns false.
11456
11457 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
11458
11459 PR target/68404
11460 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
11461 an ADDIS that adds a pointer to a large constant that sets the
11462 upper16 bits with a load operation.
11463
11464 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
11465
11466 PR target/68532
11467 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
11468 order.
11469 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
11470 endian.
11471 (vzipq_s16): Likewise.
11472 (vzipq_s32): Likewise.
11473 (vzipq_f32): Likewise.
11474 (vzipq_u8): Likewise.
11475 (vzipq_u16): Likewise.
11476 (vzipq_u32): Likewise.
11477 (vzipq_p8): Likewise.
11478 (vzipq_p16): Likewise.
11479
11480 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
11481
11482 PR target/68532
11483 * config/arm/arm.c (neon_endian_lane_map): New function.
11484 (neon_vector_pair_endian_lane_map): New function.
11485 (arm_evpc_neon_vuzp): Allow for big endian lane order.
11486 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
11487 endian.
11488 (vuzpq_s16): Likewise.
11489 (vuzpq_s32): Likewise.
11490 (vuzpq_f32): Likewise.
11491 (vuzpq_u8): Likewise.
11492 (vuzpq_u16): Likewise.
11493 (vuzpq_u32): Likewise.
11494 (vuzpq_p8): Likewise.
11495 (vuzpq_p16): Likewise.
11496
11497 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
11498
11499 PR target/69634
11500 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
11501 debug insns.
11502
11503 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
11504
11505 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
11506 truncate const_int operand 1 to QImode.
11507
11508 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
11509
11510 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
11511 corresponding to an abnormal edge.
11512
11513 2016-02-09 Tom de Vries <tom@codesourcery.com>
11514
11515 PR tree-optimization/69599
11516 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
11517 function.
11518 (find_func_aliases_for_builtin_call, find_func_clobbers)
11519 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
11520 partition.
11521
11522 2016-02-09 Richard Biener <rguenther@suse.de>
11523
11524 PR tree-optimization/69715
11525 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
11526 LHS on calls as non-rewritable.
11527
11528 2016-02-09 Tom de Vries <tom@codesourcery.com>
11529
11530 PR lto/69707
11531 * lto-wrapper.c (append_diag_options): New function.
11532 (compile_offload_image): Call append_diag_options.
11533
11534 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
11535
11536 PR other/69722
11537 * doc/extend.texi (Flag Output Operands): Correct sectioning.
11538 Minor copy-edit to fix verb tenses.
11539
11540 2016-02-08 Jakub Jelinek <jakub@redhat.com>
11541
11542 PR tree-optimization/69209
11543 * ipa-split.c (split_function): If split part is not
11544 returning retval, retval has gimple type but is not
11545 gimple value, force it into a SSA_NAME first.
11546
11547 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
11548
11549 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
11550 outdated section.
11551
11552 2016-02-08 Jason Merrill <jason@redhat.com>
11553
11554 PR c++/69631
11555 * convert.c (convert_to_integer_1): Check dofold on truncation
11556 distribution.
11557 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
11558 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
11559 Rename from *_nofold.
11560 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
11561 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
11562
11563 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
11564
11565 PR target/60410
11566 * tree.c (build_common_tree_nodes): Remove short_double argument.
11567 All callers changed.
11568 * tree.h (build_common_tree_nodes): Adjust declaration.
11569 * doc/invoke.texi (-fshort-double): Remove documentation.
11570 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
11571 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
11572 * lto-wrapper.c (merge_and_complain, append_compiler_options)
11573 (append_linker_options): Don't handle OPT_fshort_double.
11574
11575 PR rtl-optimization/68730
11576 * lra-remat.c (insn_to_cand_activation): New static variable.
11577 (lra_remat): Allocate and free it.
11578 (create_cand): New arg activation. Initialize a field in
11579 insn_to_cand_activation if it is nonnull.
11580 (create_cands): Pass the activation insn to create_cand when making
11581 a candidate involving an output reload. Reorganize code a little.
11582 (do_remat): Keep track of active status of candidates in a separate
11583 bitmap.
11584
11585 2016-02-08 Richard Biener <rguenther@suse.de>
11586
11587 PR tree-optimization/69719
11588 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
11589 Properly use absolute of the difference of the two offsets to
11590 compare or adjust the segment length.
11591
11592 2016-02-08 Richard Biener <rguenther@suse.de>
11593 Jeff Law <law@redhat.com>
11594
11595 PR target/68273
11596 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
11597 types for anonymous SSA names.
11598
11599 2016-02-08 Richard Biener <rguenther@suse.de>
11600
11601 PR rtl-optimization/69274
11602 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
11603
11604 2016-02-08 Jeff Law <law@redhat.com>
11605
11606 PR tree-optimization/65917
11607 * tree-ssa-dom.c (record_temporary_equivalences): Record both
11608 equivalences from if (x == y) style conditionals.
11609 (loop_depth_of_name): Remove.
11610 (record_equality): Remove loop depth check.
11611 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
11612 (const_and_copies::record_const_or_copy_raw): New member function.
11613 * tree-ssa-scopedtables.c
11614 (const_and_copies::record_const_or_copy_raw): New, factored out of
11615 (const_and_copies::record_const_or_copy): Call new member function.
11616
11617 2016-02-05 Jeff Law <law@redhat.com>
11618
11619 PR tree-optimization/68541
11620 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
11621 (count_stmts_in_block): New function.
11622 (poor_ifcvt_candidate_code): Likewise.
11623 (is_feasible_trace): Add some heuristics to determine when path
11624 splitting is profitable.
11625 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
11626 is a diamond with a single exit.
11627
11628 2016-02-05 Martin Sebor <msebor@redhat.com>
11629
11630 PR c++/69662
11631 * doc/invoke.texi: Update -Wplacement-new to take an optional
11632 argument.
11633
11634 2016-02-06 Richard Henderson <rth@redhat.com>
11635
11636 PR c/69643
11637 * tree.c (tree_nop_conversion_p): Do not strip casts into or
11638 out of non-standard address spaces.
11639
11640 2016-02-05 Jakub Jelinek <jakub@redhat.com>
11641
11642 PR rtl-optimization/69691
11643 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
11644
11645 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
11646
11647 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
11648 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
11649 (*ieee128_mfvsrd_64bit): Likewise.
11650 (*ieee128_mfvsrd_32bit): Likewise.
11651
11652 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
11653
11654 PR target/69369
11655 Revert r232560:
11656 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
11657
11658 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
11659 instrumented_version.
11660
11661 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
11662
11663 * doc/invoke.texi (Optimize Options): In table of --param options
11664 rename second occurrence of tracer-min-branch-ratio to
11665 tracer-min-branch-probability, rename
11666 tracer-min-branch-ratio-feedback to
11667 tracer-min-branch-probability-feedback and clarify description,
11668 rename sched-spec-state-edge-prob-cutoff to
11669 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
11670 to selsched-insns-to-rename, rename lto-minpartition to
11671 lto-min-partition, delete reorder-blocks-duplicate and
11672 reorder-blocks-duplicate-feedback.
11673
11674 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11675
11676 * config/s390/s390.c (s390_register_info_set_ranges): Remove
11677 superfluous loops.
11678
11679 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
11680
11681 * doc/extend.texi: S/390: Correct some typos.
11682
11683 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11684
11685 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
11686
11687 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11688
11689 PR target/69625
11690 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
11691 (s390_register_info_gprtofpr): Use new macros above.
11692 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
11693 its name.
11694 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
11695 its name. Adjust restore and save gpr ranges.
11696 (s390_register_info_set_ranges): New function.
11697 (s390_register_info): Use new macros above. Call
11698 s390_register_info_set_ranges.
11699 (s390_optimize_register_info): Likewise.
11700 (s390_hard_regno_rename_ok): Use new macros.
11701 (s390_hard_regno_scratch_ok): Likewise.
11702 (s390_emit_epilogue): Likewise.
11703 (s390_can_use_return_insn): Likewise.
11704 (s390_optimize_prologue): Likewise.
11705 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
11706
11707 2016-02-05 Jakub Jelinek <jakub@redhat.com>
11708
11709 PR bootstrap/69677
11710 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
11711 alignment fixes.
11712 (ix86_option_override_internal): Disable TARGET_STV even for
11713 -m{incoming,preferred}-stack-boundary=3.
11714
11715 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11716
11717 * config.gcc: Mark deprecated rtems targets as obsolete.
11718
11719 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
11720
11721 PR rtl-optimization/64682
11722 PR rtl-optimization/69567
11723 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
11724 before I2 only if the register is both used and set in I2.
11725
11726 2016-02-04 DJ Delorie <dj@redhat.com>
11727
11728 * config/msp430/msp430.c (msp430_start_function): Add function type.
11729
11730 2016-02-04 Jakub Jelinek <jakub@redhat.com>
11731
11732 PR fortran/69368
11733 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
11734
11735 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
11736
11737 PR rtl-optimization/69577
11738 Revert:
11739 2015-10-29 Richard Henderson <rth@redhat.com>
11740
11741 PR target/68124
11742 PR rtl-opt/67609
11743 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
11744 sse check to the exact conditions of PR 67609.
11745
11746 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
11747
11748 PR target/69667
11749 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
11750 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
11751 not allowed into the traditional Altivec registers.
11752 (movtd_64bit_nodm): Likewise.
11753 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
11754
11755 2016-02-04 David Malcolm <dmalcolm@redhat.com>
11756
11757 * config/aarch64/cortex-a57-fma-steering.c
11758 (aarch64_register_fma_steering): Remove "static" from arguments
11759 to register_pass.
11760
11761 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
11762
11763 PR target/69619
11764 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
11765 twice when complex.
11766
11767 2016-02-04 Mike Frysinger <vapier@gentoo.org>
11768
11769 * doc/invoke.texi: Delete -mno-fma4.
11770
11771 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
11772
11773 PR rtl-optimization/69577
11774 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
11775 (find_subregs_of_mode): Update accordingly. Iterate over partial
11776 definitions.
11777
11778 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
11779
11780 * config/arm/arm-protos.h (neon_reinterpret): Remove.
11781 * config/arm/arm.c (neon_reinterpret): Remove.
11782 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
11783 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
11784 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
11785 vreinterpretti): Remove.
11786 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
11787 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
11788 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
11789 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
11790 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
11791 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
11792 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
11793 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
11794 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
11795 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
11796 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
11797 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
11798 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
11799 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
11800 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
11801 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
11802 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
11803 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
11804 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
11805 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
11806 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
11807 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
11808 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
11809 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
11810 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
11811 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
11812 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
11813 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
11814 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
11815 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
11816 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
11817 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
11818 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
11819 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
11820 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
11821 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
11822 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
11823 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
11824 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
11825 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
11826 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
11827 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
11828 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
11829 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
11830 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
11831 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
11832 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
11833 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
11834 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
11835 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
11836 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
11837 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
11838 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
11839 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
11840 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
11841 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
11842 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
11843 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
11844 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
11845 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
11846 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
11847 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
11848 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
11849 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
11850 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
11851 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
11852 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
11853 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
11854 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
11855 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
11856 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
11857 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
11858 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
11859 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
11860 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
11861 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
11862 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
11863 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
11864 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
11865 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
11866 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
11867 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
11868 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
11869 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
11870 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
11871 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
11872 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
11873 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
11874 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
11875 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
11876 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
11877 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
11878 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
11879 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
11880 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
11881 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
11882 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
11883 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
11884 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
11885 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
11886 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
11887 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
11888 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
11889
11890 2016-02-04 Martin Liska <mliska@suse.cz>
11891
11892 PR sanitizer/69276
11893 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
11894 that are gimple_store_p.
11895 (maybe_instrument_call): Likewise.
11896
11897 2016-02-04 Bin Cheng <bin.cheng@arm.com>
11898
11899 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
11900 register scaling out of memory reference and comment why.
11901
11902 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11903
11904 PR target/65932
11905 PR target/67714
11906 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
11907 folding the source of a SET.
11908
11909 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11910
11911 PR target/65932
11912 PR target/67714
11913 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
11914 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
11915
11916 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
11917
11918 PR target/65932
11919 PR target/67714
11920 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
11921 HImode.
11922
11923 2016-02-04 Christian Bruel <christian.bruel@st.com>
11924
11925 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
11926 * config/arm/arm.c (arm_set_current_function): Likewise.
11927
11928 2016-02-04 Jakub Jelinek <jakub@redhat.com>
11929 Ilya Enkovich <enkovich.gnu@gmail.com>
11930 H.J. Lu <hongjiu.lu@intel.com>
11931
11932 PR target/69454
11933 * config/i386/i386.c (convert_scalars_to_vector): Remove
11934 stack alignment fixes.
11935 (ix86_option_override_internal): Disable TARGET_STV if stack
11936 might not be aligned enough.
11937 (ix86_minimum_alignment): Assert that TARGET_STV is false.
11938
11939 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
11940
11941 * config/i386/x86-tune.def: Disable default prefetching
11942 for -march=znver1.
11943
11944 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
11945 Vladimir Makarov <vmakarov@redhat.com>
11946
11947 PR target/69461
11948 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
11949 in validating fused toc addresses.
11950
11951 2016-02-03 Jakub Jelinek <jakub@redhat.com>
11952
11953 PR c/69627
11954 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
11955 range->m_caret fields if range->m_show_caret_p is false.
11956
11957 PR target/69644
11958 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
11959 Force oldval into register if it does not satisfy reg_or_short_operand
11960 predicate. Fix up formatting.
11961
11962 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
11963 Alexandre Oliva <aoliva@redhat.com>
11964
11965 PR target/69461
11966 * lra-constraints.c (simplify_operand_subreg): Check additionally
11967 address validity after potential reloading.
11968 (process_address_1): Check insns validity. In case of failure do
11969 nothing.
11970
11971 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
11972
11973 PR target/69118
11974 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
11975 Fix target.
11976
11977 2016-02-02 Jakub Jelinek <jakub@redhat.com>
11978
11979 * wide-int.cc (canonize_uhwi): New function.
11980 (wi::divmod_internal): Use it.
11981
11982 2016-02-02 James Norris <jnorris@codesourcery.com
11983
11984 * gimplify.c (omp_notice_variable): Add usage check.
11985
11986 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
11987
11988 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
11989 like LE, GE, LT, GT when emitting relational operator.
11990
11991 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
11992
11993 * ira-costs.c (find_costs_and_classes): Add extra argument.
11994 * target.def (ira_change_pseudo_allocno_class): Add parameter.
11995 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
11996 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
11997 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
11998 Add best_class parameter, and return it if not ALL_REGS.
11999 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
12000 Add parameter.
12001 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
12002 Update target hook.
12003
12004 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
12005
12006 * config/aarch64/aarch64.c
12007 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
12008 (aarch64_ira_change_pseudo_allocno_class): New function.
12009
12010 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
12011
12012 PR target/67032
12013 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
12014
12015 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12016
12017 * config/avr/avr.c (avr_option_override): Set
12018 PARAM_ALLOW_STORE_DATA_RACES to 1.
12019
12020 2016-02-02 Richard Biener <rguenther@suse.de>
12021
12022 PR tree-optimization/69595
12023 * match.pd: Add range test simplifications to true/false.
12024
12025 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
12026
12027 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
12028 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
12029 instead.
12030
12031 2016-02-02 Richard Biener <rguenther@suse.de>
12032
12033 PR tree-optimization/69606
12034 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
12035 info on the result before moving a stmt.
12036
12037 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
12038
12039 PR middle-end/68542
12040 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
12041 branch with vector comparison.
12042 * config/i386/sse.md (VI48_AVX): New mode iterator.
12043 (define_expand "cbranch<mode>4): Add support for conditional branch
12044 with vector comparison.
12045 * tree-vect-loop.c (optimize_mask_stores): New function.
12046 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
12047 has_mask_store field of vect_info.
12048 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
12049 vectorized loops having masked stores after vec_info destroy.
12050 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
12051 correspondent macros.
12052 (optimize_mask_stores): Add prototype.
12053
12054 2016-02-02 Alan Modra <amodra@gmail.com>
12055
12056 PR target/69548
12057 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
12058 allow subregs.
12059
12060 2016-02-02 Alan Modra <amodra@gmail.com>
12061
12062 PR target/68662
12063 * config/rs6000/rs6000.c (need_toc_init): New var, set it
12064 whenever toc_label_name used.
12065 (rs6000_file_start): Don't set up toc section here,
12066 (rs6000_output_function_epilogue): do so here instead,
12067 (rs6000_xcoff_file_start): and here.
12068 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
12069 (load_toc_aix_di): Likewise.
12070
12071 2016-02-01 Jakub Jelinek <jakub@redhat.com>
12072
12073 PR rtl-optimization/69592
12074 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
12075 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
12076 (num_sign_bit_copies_binary_arith_p): New inline function.
12077 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
12078
12079 2016-02-01 Jeff Law <law@redhat.com>
12080
12081 PR tree-optimization/69580
12082 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
12083 * tree-ssa-threadbackward.c
12084 (fsm_find_control_statement_thread_paths): Do not try to walk
12085 through large PHI nodes.
12086
12087 2016-02-01 Jakub Jelinek <jakub@redhat.com>
12088
12089 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
12090 when count is incremented above limit, don't analyze further
12091 insns afterwards.
12092
12093 * omp-low.c (oacc_parse_default_dims): Avoid
12094 -Wsign-compare warning, make sure value fits into int
12095 rather than just unsigned int.
12096
12097 2016-02-01 Bin Cheng <bin.cheng@arm.com>
12098
12099 PR tree-optimization/67921
12100 * fold-const.c (split_tree): New parameters. Convert pointer
12101 type variable part to proper type before negating.
12102 (fold_binary_loc): Pass new arguments to split_tree.
12103
12104 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
12105
12106 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
12107 (nvptx_goacc_validate_dims): Extend to handle global defaults.
12108 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
12109 * doc/tm.texti: Rebuilt.
12110 * doc/invoke.texi (fopenacc-dim): Document.
12111 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
12112 (append_compiler_options): Likewise.
12113 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
12114 (oacc_parse_default_dims): New.
12115 (oacc_validate_dims): Add USED arg. Select non-unity default when
12116 possible.
12117 (oacc_loop_fixed_partitions): Return mask of used partitions.
12118 (oacc_loop_auto_partitions): Emit dump info.
12119 (oacc_loop_partition): Return mask of used partitions.
12120 (execute_oacc_device_lower): Parse default dimension arg. Adjust
12121 loop partitioning and validation calls.
12122
12123 2016-02-01 Richard Biener <rguenther@suse.de>
12124
12125 PR middle-end/69556
12126 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
12127
12128 2016-02-01 Richard Biener <rguenther@suse.de>
12129
12130 PR tree-optimization/69574
12131 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
12132 of asserting return chrec_dont_know.
12133
12134 2016-02-01 Martin Liska <mliska@suse.cz>
12135
12136 * mem-stats-traits.h: Add copyright header.
12137 * mem-stats.h: Likewise.
12138
12139 2016-02-01 Richard Biener <rguenther@suse.de>
12140
12141 PR tree-optimization/69579
12142 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
12143 Do not propagate through abnormal PHI results.
12144
12145 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
12146
12147 * postreload.c (reload_cse_simplify): Remove dead code.
12148
12149 2016-02-01 Jakub Jelinek <jakub@redhat.com>
12150
12151 PR rtl-optimization/69570
12152 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
12153 if there is more than one set, not if there is a single set.
12154
12155 2016-02-01 Richard Henderson <rth@redhat.com>
12156
12157 PR rtl-opt/69535
12158 * combine.c (make_compound_operation): When looking through a
12159 subreg, make sure to re-extend to the width of the outer mode.
12160
12161 2016-01-30 Jakub Jelinek <jakub@redhat.com>
12162
12163 PR tree-optimization/69546
12164 * wide-int.cc (wi::divmod_internal): For unsigned division
12165 where both operands fit into uhwi, if o1 is 1 and o0 has
12166 msb set, if divident_prec is larger than bits per hwi,
12167 clear another quotient word and return 2 instead of 1.
12168 Similarly for remainder with msb in HWI set, if dividend_prec
12169 is larger than bits per hwi.
12170
12171 2016-01-29 Martin Jambor <mjambor@suse.cz>
12172
12173 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
12174 Use short lowercase names.
12175 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
12176 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
12177 acq_rel one. Protect warning agains segfaults if
12178 get_memory_order_name returns NULL.
12179 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
12180 with release semantics. Do not warn if get_memory_order already did.
12181 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
12182 semantics. Fix check for relaxed or acquire semantics. Do not warn
12183 if get_memory_order already did.
12184
12185 2016-01-29 Sebastian Pop <s.pop@samsung.com>
12186
12187 * doc/install.texi: Document that isl-0.16 is supported.
12188
12189 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
12190
12191 PR target/69299
12192 * config/i386/constraints.md (Bm): Describe as special memory
12193 constraint.
12194 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
12195 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
12196 * genpreds.c (struct constraint_data): Add is_special_memory.
12197 (have_special_memory_constraints, special_memory_start): New
12198 static vars.
12199 (special_memory_end): Ditto.
12200 (add_constraint): Add new arg is_special_memory. Add code to
12201 process its true value. Update have_special_memory_constraints.
12202 (process_define_constraint): Pass the new arg.
12203 (process_define_register_constraint): Ditto.
12204 (choose_enum_order): Process special memory.
12205 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
12206 function insn_extra_special_memory_constraint.
12207 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
12208 * gensupport.c (process_rtx): Process
12209 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
12210 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
12211 * ira-lives.c (single_reg_class): Use
12212 insn_extra_special_memory_constraint.
12213 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
12214 * lra-constraints.c (process_alt_operands): Ditto.
12215 (curr_insn_transform): Use insn_extra_special_memory_constraint.
12216 * recog.c (asm_operand_ok, preprocess_constraints): Process
12217 CT_SPECIAL_MEMORY.
12218 * reload.c (find_reloads): Ditto.
12219 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
12220 * stmt.c (parse_input_constraint): Use
12221 insn_extra_special_memory_constraint.
12222
12223 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
12224
12225 PR target/69530
12226 * lra-splill.c (lra_final_code_change): Revert r229087 by
12227 removing all sub-registers.
12228
12229 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
12230
12231 PR target/65604
12232 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
12233
12234 2016-01-29 Jakub Jelinek <jakub@redhat.com>
12235
12236 PR target/69551
12237 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
12238 SSE1, copy target into the temporary reg first before recursing
12239 on it.
12240
12241 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
12242
12243 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
12244 with vm.
12245
12246 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
12247
12248 * ginclude/stdarg.h: Test __cplusplus instead of
12249 __GXX_EXPERIMENTAL_CXX0X__.
12250
12251 2016-01-29 Richard Biener <rguenther@suse.de>
12252
12253 PR tree-optimization/69547
12254 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
12255 Do not mark clobbers necessary.
12256 (mark_all_reaching_defs_necessary_1): Likewise.
12257
12258 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
12259
12260 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
12261 declaration name with %qs and print it in both error messages.
12262 Also fix indentation.
12263
12264 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
12265
12266 PR other/69006
12267 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
12268 trailing blank line from error message.
12269
12270 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
12271
12272 PR c++/69462
12273 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
12274 for C++-11.
12275
12276 2016-01-29 Richard Biener <rguenther@suse.de>
12277
12278 PR middle-end/69537
12279 * match.pd: Allow all integral types when simplifying a
12280 widening or sign-changing conversion.
12281
12282 2016-01-28 Sebastian Pop <s.pop@samsung.com>
12283
12284 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
12285 back to setting codegen_error to fail codegen.
12286
12287 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
12288
12289 PR target/69459
12290 * config/i386/constraints.md (C): Only accept constant zero operand.
12291 (BC): New constraint.
12292 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
12293 instead of C constraint.
12294 * doc/md.texi (Machine Constraints): Update description
12295 of C constraint.
12296
12297 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
12298
12299 PR target/68400
12300 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
12301
12302 2016-01-28 Jakub Jelinek <jakub@redhat.com>
12303
12304 PR middle-end/69542
12305 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
12306 non-debug insns.
12307
12308 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
12309
12310 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
12311 branches if using guessed profile.
12312
12313 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
12314
12315 * graphite-optimize-isl.c (optimize_isl): Fix dump.
12316
12317 2016-01-28 Richard Henderson <rth@redhat.com>
12318
12319 PR target/69305
12320 * config/aarch64/aarch64-modes.def (CC_Cmode): New
12321 * config/aarch64/aarch64-protos.h: Update.
12322 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
12323 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
12324 (aarch64_get_condition_code_1): Handle CC_Cmode.
12325 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
12326 (*add<mode>3_compareC_cconly_imm): New.
12327 (*add<mode>3_compareC_cconly): New.
12328 (*add<mode>3_compareC_imm): New.
12329 (add<mode>3_compareC): New.
12330 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
12331 to be first. Use aarch64_carry_operation.
12332 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
12333 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
12334 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
12335 (subti3): Use subdi3_compare1.
12336 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
12337 (sub<mode>3_compare1): New.
12338 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
12339 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
12340 (*subsi3_carryin_uxtw): Likewise.
12341 (*ngc<mode>, *ngcsi_uxtw): Likewise.
12342 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
12343 * config/aarch64/iterators.md (DWI): New.
12344 * config/aarch64/predicates.md (aarch64_carry_operation): New.
12345 (aarch64_borrow_operation): New.
12346
12347 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
12348
12349 * graphite-optimize-isl.c (optimize_isl): Print a different debug
12350 message when isl does not return a valid schedule.
12351
12352 2016-01-28 Sebastian Pop <s.pop@samsung.com>
12353
12354 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
12355 Remove comments from class declarations: they are already in the code
12356 close by the defs.
12357
12358 2016-01-28 Sebastian Pop <s.pop@samsung.com>
12359
12360 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
12361 codegen_error_p.
12362 (ternary_op_to_tree): Same.
12363 (unary_op_to_tree): Same.
12364 (nary_op_to_tree): Same.
12365 (gcc_expression_from_isl_expr_op): Same.
12366 (gcc_expression_from_isl_expression): Same.
12367 (graphite_create_new_loop): Same.
12368 (graphite_create_new_loop_guard): Same.
12369 (build_iv_mapping): Same.
12370 (graphite_create_new_guard): Same.
12371 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
12372 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
12373
12374 2016-01-28 Sebastian Pop <s.pop@samsung.com>
12375
12376 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
12377 instead of setting codegen_error to fail codegen.
12378
12379 2016-01-28 Jason Merrill <jason@redhat.com>
12380
12381 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
12382
12383 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
12384
12385 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
12386 Remove CONST_INT_P check in CCMP cost calculation.
12387
12388 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
12389
12390 * config/aarch64/aarch64.c (generic_vector_cost):
12391 Set vec_permute_cost.
12392 (cortexa57_vector_cost): Likewise.
12393 (exynosm1_vector_cost): Likewise.
12394 (xgene1_vector_cost): Likewise.
12395 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
12396 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
12397 Add vec_permute_cost entry.
12398
12399 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
12400
12401 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
12402 immediate as %1.
12403 (add<mode>3_compare0): Likewise.
12404 (addsi3_compare0_uxtw): Likewise.
12405 (add<mode>3nr_compare0): Likewise.
12406 (compare_neg<mode>): Likewise.
12407 (<optab><mode>3): Likewise.
12408
12409 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
12410
12411 * tree-vect-stmts.c (vectorizable_comparison): Add
12412 NULL check for vectype.
12413
12414 2016-01-28 Richard Biener <rguenther@suse.de>
12415
12416 PR tree-optimization/69466
12417 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
12418 Account for PHIs we couldn't duplicate.
12419
12420 2016-01-28 Martin Liska <mliska@suse.cz>
12421
12422 PR pch/68758
12423 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
12424 instead of ENABLE_VALGRIND_CHECKING.
12425
12426 2016-01-27 Richard Henderson <rth@redhat.com>
12427
12428 PR rtl-opt/69447
12429 * lra-remat.c (subreg_regs): New.
12430 (dump_candidates_and_remat_bb_data): Dump it.
12431 (operand_to_remat): Reject if operand in subreg_regs.
12432 (set_bb_regs): Collect subreg_regs.
12433 (lra_remat): Init and free subreg_regs. Compute
12434 calculate_local_reg_remat_bb_data before create_cands.
12435
12436 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
12437
12438 PR target/68986
12439 * config/i386/i386.c (ix86_update_stack_boundary): Don't
12440 change stack_alignment_needed for __tls_get_addr call.
12441
12442 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
12443
12444 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
12445
12446 2016-01-27 Jeff Law <law@redhat.com>
12447
12448 PR tree-optimization/68398
12449 PR tree-optimization/69196
12450 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
12451 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
12452 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12453 Only count PHIs in the last block in the path. The others will
12454 const/copy propagate away. Add heuristic to allow more irreducible
12455 subloops to be created when it is likely profitable to do so.
12456
12457 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12458 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
12459 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
12460
12461 2016-01-27 Jakub Jelinek <jakub@redhat.com>
12462
12463 PR lto/69254
12464 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
12465 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
12466 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
12467 * tree-streamer-in.c: Include asan.h.
12468 (streamer_get_builtin_tree): For builtins in sanitizer
12469 range call initialize_sanitizer_builtins and retry.
12470
12471 2016-01-27 Ian Lance Taylor <iant@google.com>
12472
12473 * common.opt (fkeep-gc-roots-live): New undocumented option.
12474 * tree-ssa-loop-ivopts.c (add_candidate_1): If
12475 -fkeep-gc-roots-live, skip pointers.
12476 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
12477 NULL.
12478
12479 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
12480
12481 PR target/69512
12482 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
12483 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
12484
12485 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
12486
12487 PR target/68380
12488 * configure.ac: NetBSD provides SSP in its C library.
12489 * configure: Updated.
12490
12491 2016-01-27 Richard Biener <rguenther@suse.de>
12492
12493 PR tree-optimization/69166
12494 * tree-vect-loop.c (vect_is_simple_reduction): Always check
12495 reduction code for commutativity / associativity.
12496
12497 2016-01-27 Martin Jambor <mjambor@suse.cz>
12498
12499 PR tree-optimization/69355
12500 * tree-sra.c (analyze_access_subtree): Correct hole detection when
12501 total_scalarization fails.
12502
12503 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
12504
12505 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
12506 power9.
12507
12508 2016-01-27 Christian Bruel <christian.bruel@st.com>
12509
12510 PR target/69245
12511 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
12512 Move arm_reset_previous_fndecl and set_target_option_current_node in
12513 the conditional part. Call save_restore_target_globals.
12514 * config/arm/arm.c (arm_set_current_function):
12515 Refactor to better support #pragma target and attribute mix.
12516 Call save_restore_target_globals.
12517 * config/arm/arm-protos.h (save_restore_target_globals): New function.
12518
12519 2016-01-27 Martin Liska <mliska@suse.cz>
12520
12521 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
12522 reference for an HSA kernel and its host function.
12523
12524 2016-01-27 Jakub Jelinek <jakub@redhat.com>
12525
12526 PR tree-optimization/69399
12527 * wide-int.h (wi::lrshift): For larger precisions, only
12528 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
12529
12530 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
12531
12532 * config/arc/predicates.md (proper_comparison_operator): Reject
12533 constant-constant comparison.
12534
12535 2016-01-26 Tom de Vries <tom@codesourcery.com>
12536
12537 PR tree-optimization/69110
12538 * tree-data-ref.c (initialize_data_dependence_relation): Handle
12539 DR_NUM_DIMENSIONS == 0.
12540
12541 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
12542 Sebastian Pop <s.pop@samsung.com>
12543
12544 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
12545 isl_ast_op_cond and isl_ast_op_select.
12546 (gcc_expression_from_isl_expr_op): Same.
12547
12548 2016-01-26 Jason Merrill <jason@redhat.com>
12549
12550 PR c++/68782
12551 * tree.c (recompute_constructor_flags): Split out from
12552 build_constructor.
12553 (verify_constructor_flags): New.
12554 * tree.h: Declare them.
12555
12556 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
12557
12558 PR rtl-optimization/69217
12559 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
12560 are no TYPE_FIELDS set for the record type.
12561
12562 2016-01-26 Jakub Jelinek <jakub@redhat.com>
12563
12564 PR target/68662
12565 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
12566 toc_label_name unconditionally.
12567 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
12568 SYMBOL_REF string. Use toc_label_name instead of constructing
12569 LCTOC1.
12570 (rs6000_elf_declare_function_name): Use toc_label_name instead of
12571 constructing LCTOC1.
12572
12573 2016-01-26 Martin Sebor <msebor@redhat.com>
12574
12575 PR other/69477
12576 * doc/extend.texi (Common Type Attributes): Move text that talks about
12577 attribute packed from attribute aligned to the section discussing
12578 the former attribute for clarity.
12579
12580 2016-01-26 Richard Henderson <rth@redhat.com>
12581
12582 PR middle-end/60908
12583 * trans-mem.c (tm_region_init): Mark entry block as visited.
12584
12585 2016-01-26 David Malcolm <dmalcolm@redhat.com>
12586
12587 PR other/69006
12588 * diagnostic-show-locus.c (layout::print_source_line): Replace
12589 call to pp_newline with call to layout::print_newline.
12590 (layout::print_annotation_line): Likewise.
12591 (layout::move_to_column): Likewise.
12592 (layout::print_any_fixits): After printing any fixits, print a
12593 trailing newline, if necessary.
12594 (layout::print_newline): New method, resetting any colorization
12595 before a newline.
12596 (diagnostic_show_locus): Move the pp_newline to before the
12597 early bailout. Remove dummy block enclosing the layout instance.
12598 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
12599 of pp_newline_and_flush with pp_flush.
12600 (diagnostic_append_note): Delete use of pp_newline.
12601 (diagnostic_append_note_at_rich_loc): Delete.
12602 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
12603 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
12604 when newline characters are added to the buffer.
12605
12606 2016-01-26 Michael Matz <matz@suse.de>
12607
12608 * configure.ac (ac_cv_std_swap_in_utility): New test.
12609 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
12610 * configure: Regenerate.
12611 * config.in: Regenerate.
12612
12613 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
12614
12615 * config/arc/arc.md (cstoresi4): Force operand into register.
12616 (arcset<code>): Fix predicate.
12617 (arcsetltu): Likewise.
12618 (arcsetgeu): Likewise.
12619 (arcsethi): Likewise.
12620 (arcsetls): Likewise.
12621
12622 2016-01-26 Jakub Jelinek <jakub@redhat.com>
12623
12624 PR tree-optimization/69483
12625 * gimple-fold.c (canonicalize_constructor_val): Return NULL
12626 if base has error_mark_node type.
12627
12628 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
12629
12630 PR target/68620
12631 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
12632 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
12633 New helper macros.
12634 (vget_lane_f16): Handle big-endian.
12635 (vgetq_lane_f16): Likewise.
12636 (vset_lane_f16): Likewise.
12637 (vsetq_lane_f16): Likewise.
12638 * config/arm/iterators.md (VQXMOV): Add V8HF.
12639 (VDQ): Add V4HF and V8HF.
12640 (V_reg): Handle V4HF and V8HF.
12641 (Is_float_mode): Likewise.
12642 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
12643 neon_vdup_nv8hf): New patterns.
12644 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
12645 Use VD_LANE iterator.
12646 (neon_vld1_dup<mode>): Use VQ2 iterator.
12647
12648 2016-01-26 Nathan Sidwell <nathan@acm.org>
12649
12650 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
12651 (set_oacc_fn_attrib): Add IS_KERNEL arg.
12652 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
12653 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
12654 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
12655 (oacc_validate_dims): Add LEVEL arg, don't return level.
12656 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
12657 oacc_validate_dims.
12658 (execute_oacc_device_lower): Adjust, add more dump output.
12659 * tree-ssa-loop.c (gate_oacc_kernels): Use
12660 oacc_fn_attrib_kernels_p.
12661 * tree-parloops.c (create_parallel_loop): Adjust
12662 set_oacc_fn_attrib call.
12663
12664 2016-01-26 Jakub Jelinek <jakub@redhat.com>
12665
12666 PR lto/69254
12667 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
12668 (append_compiler_options): Handle -fcilkplus.
12669 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
12670
12671 2016-01-26 Nick Clifton <nickc@redhat.com>
12672
12673 PR target/66655
12674 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
12675 been marked as DECL_ONE_ONLY but we do not the means to make it
12676 so, then do not allow it to bind locally.
12677
12678 2016-01-26 Jakub Jelinek <jakub@redhat.com>
12679
12680 PR lto/69254
12681 * opts.h (parse_sanitizer_options): New prototype.
12682 * opts.c (sanitizer_opts): New array.
12683 (parse_sanitizer_options): New function.
12684 (common_handle_option): Use parse_sanitizer_options.
12685
12686 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
12687
12688 PR target/68986
12689 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
12690 alignment adjustment to ...
12691 (ix86_update_stack_boundary): Here. Don't over-align stack for
12692 __tls_get_addr.
12693 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
12694 if __tls_get_addr is called.
12695
12696 2016-01-26 Christian Bruel <christian.bruel@st.com>
12697
12698 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
12699
12700 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
12701
12702 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
12703
12704 2016-01-26 Richard Biener <rguenther@suse.de>
12705
12706 PR middle-end/69467
12707 * match.pd: Guard X * CST CMP 0 pattern with single_use.
12708
12709 2016-01-26 Richard Biener <rguenther@suse.de>
12710
12711 PR tree-optimization/69452
12712 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
12713 (move_computations_dom_walker::before_dom_children): Rename
12714 to ...
12715 (move_computations_worker): This.
12716 (move_computations): Perform an RPO rather than a DOM walk.
12717
12718 2016-01-26 Jakub Jelinek <jakub@redhat.com>
12719
12720 PR target/69442
12721 * combine.c (combine_instructions): For REG_EQUAL note with
12722 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
12723 to the underlying register.
12724 * doc/rtl.texi (REG_EQUAL): Document the behavior of
12725 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
12726
12727 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
12728
12729 PR target/67896
12730 * config/aarch64/aarch64-builtins.c
12731 (aarch64_init_simd_builtin_types): Do not set structural
12732 equality to __Poly{8,16,64,128}_t types.
12733
12734 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
12735
12736 PR tree-optimization/69400
12737 * wide-int.cc (wi_pack): Take the precision as argument and
12738 perform canonicalization here rather than in the callers.
12739 Use the main loop to handle all full-width HWIs. Add a
12740 zero HWI if in_len isn't a full result.
12741 (wi::divmod_internal): Update accordingly.
12742 (wi::mul_internal): Likewise. Simplify.
12743
12744 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
12745 Sebastian Pop <s.pop@samsung.com>
12746
12747 * graphite-poly.c (apply_poly_transforms): Simplify.
12748 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
12749 (print_isl_map): Same.
12750 (print_isl_union_map): Same.
12751 (print_isl_schedule): New.
12752 (debug_isl_schedule): New.
12753 * graphite-dependences.c (scop_get_reads): Do not call
12754 isl_union_map_add_map that is undocumented isl functionality.
12755 (scop_get_must_writes): Same.
12756 (scop_get_may_writes): Same.
12757 (scop_get_original_schedule): Remove.
12758 (scop_get_dependences): Do not call isl_union_map_compute_flow that
12759 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
12760 (compute_deps): Remove.
12761 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
12762 (debug_schedule_ast): New.
12763 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
12764 set_separate_option.
12765 (graphite_regenerate_ast_isl): Add dump.
12766 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
12767 from scop->transformed_schedule.
12768 (graphite_regenerate_ast_isl): Add more dump.
12769 * graphite-optimize-isl.c (optimize_isl): Set
12770 scop->transformed_schedule. Check whether schedules are equal.
12771 (apply_poly_transforms): Move here.
12772 * graphite-poly.c (apply_poly_transforms): ... from here.
12773 (free_poly_bb): Static.
12774 (free_scop): Static.
12775 (pbb_number_of_iterations_at_time): Remove.
12776 (print_isl_ast): New.
12777 (debug_isl_ast): New.
12778 (debug_scop_pbb): New.
12779 * graphite-scop-detection.c (print_edge): Move.
12780 (print_sese): Move.
12781 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
12782 (build_scop_scattering): Remove.
12783 (create_pw_aff_from_tree): Assert instead of bailing out.
12784 (add_condition_to_pbb): Remove unused code, do not fail.
12785 (add_conditions_to_domain): Same.
12786 (add_conditions_to_constraints): Remove.
12787 (build_scop_context): New.
12788 (add_iter_domain_dimension): New.
12789 (build_iteration_domains): Initialize pbb->iterators.
12790 Call add_conditions_to_domain.
12791 (nested_in): New.
12792 (loop_at): New.
12793 (index_outermost_in_loop): New.
12794 (index_pbb_in_loop): New.
12795 (outermost_pbb_in): New.
12796 (add_in_sequence): New.
12797 (add_outer_projection): New.
12798 (outer_projection_mupa): New.
12799 (add_loop_schedule): New.
12800 (build_schedule_pbb): New.
12801 (build_schedule_loop): New.
12802 (embed_in_surrounding_loops): New.
12803 (build_schedule_loop_nest): New.
12804 (build_original_schedule): New.
12805 (build_poly_scop): Call build_original_schedule.
12806 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
12807 (free_poly_dr): Remove.
12808 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
12809 (free_poly_bb): Remove.
12810 (debug_loop_vec): Remove.
12811 (print_isl_ast): Declare.
12812 (debug_isl_ast): Declare.
12813 (scop_do_interchange): Remove.
12814 (scop_do_strip_mine): Remove.
12815 (scop_do_block): Remove.
12816 (flatten_all_loops): Remove.
12817 (optimize_isl): Remove.
12818 (pbb_number_of_iterations_at_time): Remove.
12819 (debug_scop_pbb): Declare.
12820 (print_schedule_ast): Declare.
12821 (debug_schedule_ast): Declare.
12822 (struct scop): Remove schedule. Add original_schedule,
12823 transformed_schedule.
12824 (free_gimple_poly_bb): Remove.
12825 (print_generated_program): Remove.
12826 (debug_generated_program): Remove.
12827 (unify_scattering_dimensions): Remove.
12828 * sese.c (print_edge): ... here.
12829 (print_sese): ... here.
12830 (debug_edge): ... here.
12831 (debug_sese): ... here.
12832 * sese.h (print_edge): Declare.
12833 (print_sese): Declare.
12834 (dump_edge): Declare.
12835 (dump_sese): Declare.
12836
12837 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
12838 Sebastian Pop <s.pop@samsung.com>
12839
12840 * Makefile.in: Set ISLVER in site.exp.
12841
12842 2016-01-25 Jakub Jelinek <jakub@redhat.com>
12843
12844 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
12845 DECL_VALUE_EXPR of new_var even for the non-array case. Look
12846 through DECL_VALUE_EXPR for expansion.
12847
12848 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
12849
12850 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
12851 the frame info after reload completed.
12852
12853 2016-01-25 Jeff Law <law@redhat.com>
12854
12855 PR tree-optimization/69196
12856 PR tree-optimization/68398
12857 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
12858 tree-ssa-threadupdate.c.
12859 (determine_bb_domination_status): Prototype
12860 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
12861 (determine_bb_domination_status): No longer static.
12862 (valid_jump_thread_path): Remove code to detect characteristics
12863 of the jump thread path not associated with correctness.
12864 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
12865 Correct test for thread path length. Count PHIs for real operands as
12866 statements that need to be copied. Do not count ASSERT_EXPRs.
12867 Look at all the blocks in the thread path. Compute and selectively
12868 filter thread paths based on threading through the latch, threading
12869 a multiway branch or crossing a multiway branch.
12870
12871 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12872
12873 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
12874 decl with __attribute__ ((unused)) annotation.
12875
12876 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
12877
12878 PR target/69421
12879 * tree-vect-stmts.c (vectorizable_condition): Check vectype
12880 of operands is compatible with a statement vectype.
12881
12882 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
12883
12884 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
12885 improve wording for mixed storage order support.
12886
12887 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
12888
12889 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
12890 (vcvt_u64_f64): Likewise.
12891 (vcvta_s64_f64): Likewise.
12892 (vcvta_u64_f64): Likewise.
12893 (vcvtm_s64_f64): Likewise.
12894 (vcvtm_u64_f64): Likewise.
12895 (vcvtn_s64_f64): Likewise.
12896 (vcvtn_u64_f64): Likewise.
12897 (vcvtp_s64_f64): Likewise.
12898 (vcvtp_u64_f64): Likewise.
12899
12900 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
12901
12902 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
12903 (arc_init): Check validity mll64 option.
12904 (arc_save_restore): Use double load/store instruction.
12905 (arc_expand_movmem): Likewise.
12906 (arc_split_move): Don't split if we have double load/store
12907 instructions. Returns a boolean.
12908 (arc_process_double_reg_moves): Change function to return boolean
12909 instead of a sequence of instructions.
12910 (arc_dwarf_register_span): New function.
12911 * config/arc/arc-protos.h (arc_split_move): Change prototype.
12912 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
12913 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
12914 (*movdf_insn): Likewise.
12915 * config/arc/arc.opt (mll64): New option.
12916 * config/arc/predicates.md (even_register_operand): New predicate.
12917 * doc/invoke.texi (ARC Options): Add mll64 documentation.
12918
12919 2016-01-25 Richard Biener <rguenther@suse.de>
12920
12921 PR lto/69393
12922 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
12923 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
12924 DECL_NAMELESS.
12925 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
12926
12927 2016-01-25 Richard Biener <rguenther@suse.de>
12928
12929 PR tree-optimization/69376
12930 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
12931 flag.
12932 (VN_INFO_ANTI_RANGE_P): New inline.
12933 (VN_INFO_RANGE_TYPE): Likewise.
12934 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
12935 SSA_NAME_ANTI_RANGE_P.
12936 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
12937 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12938 Properly query VN_INFO_RANGE_TYPE.
12939
12940 2016-01-25 Nick Clifton <nickc@redhat.com>
12941
12942 PR target/66655
12943 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
12944
12945 2016-01-23 Tom de Vries <tom@codesourcery.com>
12946
12947 PR tree-optimization/69426
12948 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
12949 removed clobber.
12950
12951 2016-01-23 Jakub Jelinek <jakub@redhat.com>
12952
12953 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
12954 "the the" with "the" in the comments.
12955 * ipa-devirt.c (build_type_inheritance_graph,
12956 update_type_inheritance_graph): Likewise.
12957 * tree.c (build_function_type_list_1): Likewise.
12958 * cfgloopmanip.c (scale_loop_profile): Likewise.
12959 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
12960 * gimple-ssa-split-paths.c
12961 (find_block_to_duplicate_for_splitting_paths): Likewise.
12962 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
12963 * expr.c (convert_move): Likewise.
12964 * var-tracking.c (vt_stack_adjustments): Likewise.
12965 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
12966 * tree-vrp.c (test_for_singularity): Likewise.
12967
12968 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
12969 directly instead of building a temporary tree.
12970
12971 PR bootstrap/69434
12972 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
12973 remove <algorithm> include.
12974
12975 2016-01-22 Jakub Jelinek <jakub@redhat.com>
12976
12977 PR target/69432
12978 * config/i386/i386.c: Include dojump.h.
12979 (expand_small_movmem_or_setmem,
12980 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
12981 fixes.
12982 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
12983 if dynamic_check != -1.
12984
12985 2016-01-21 Jeff Law <law@redhat.com>
12986
12987 PR middle-end/69347
12988 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
12989 record_temporary_equivalences. Rewritten to avoid unnecessary calls
12990 into dominated_by_p.
12991 (cprop_into_successor_phis): Avoid unnecessary tests.
12992
12993 2016-01-22 Richard Henderson <rth@redhat.com>
12994
12995 PR target/69416
12996 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
12997 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
12998
12999 2016-01-22 Michael Matz <matz@suse.de>
13000
13001 * system.h (string, algorithm): Include only conditionally.
13002 (new): Include always under C++.
13003 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
13004 * final.c (toplevel): Ditto.
13005 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
13006 * genconditions.c (write_header): Make gencondmd.c define
13007 INCLUDE_STRING.
13008 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
13009
13010 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
13011 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
13012
13013 2016-01-22 Christian Bruel <christian.bruel@st.com>
13014
13015 PR target/68674
13016 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
13017
13018 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13019
13020 PR target/69403
13021 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
13022 define_insn_and_split. Ensure operands[1] and operands[0] do not
13023 get assigned the same register.
13024
13025 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
13026
13027 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
13028
13029 2016-01-22 Christian Bruel <christian.bruel@st.com>
13030
13031 * config/arm/arm-c.c (arm_pragma_target_parse):
13032 Remove warn_builtin_macro_redefined overwrite.
13033
13034 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
13035
13036 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
13037 flag_non_call_exceptions compatibility.
13038
13039 2016-01-22 Jakub Jelinek <jakub@redhat.com>
13040
13041 PR debug/66668
13042 * dwarf2out.c (add_child_die_after): New function.
13043 (dwarf_qual_info_t): New type.
13044 (dwarf_qual_info): New variable.
13045 (qualified_die_p): New function.
13046 (modified_type_die): For -fdebug-types-section, ensure
13047 canonical order of qualifiers. Put qualified DIEs adjacent
13048 to the corresponding non-qualified type DIE and search there
13049 for existing qualified DIEs.
13050
13051 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
13052
13053 * doc/extend.texi (scalar_storage_order type attribute): Document
13054 restriction on type punning and aliasing, and remove future tense.
13055
13056 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
13057
13058 PR target/69252
13059 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
13060 first stage.
13061
13062 2016-01-21 Jeff Law <law@redhat.com>
13063
13064 PR middle-end/69347
13065 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
13066 useless call to record_temporary_equivalences.
13067 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
13068 allocate 10 slots in the bb_path vector and let it grow as needed.
13069 (fsm_find_control_statement_thread_paths): Similarly for the next_path
13070 vector.
13071
13072 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
13073
13074 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
13075 Detangle.
13076 * configure: Regenerate.
13077
13078 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
13079
13080 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
13081 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
13082
13083 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
13084
13085 PR middle-end/66178
13086 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
13087 drop EXPAND_INITIALIZER.
13088 * rtl.h (contains_symbolic_reference_p): Declare.
13089 * rtlanal.c (contains_symbolic_reference_p): New function.
13090 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
13091 a subtraction into a NOT if symbolic constants are involved.
13092
13093 2016-01-21 Anton Blanchard <anton@samba.org>
13094 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13095
13096 PR target/63354
13097 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
13098 #define.
13099 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
13100 function.
13101
13102 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
13103
13104 * config/microblaze/microblaze.c
13105 (get_branch_target): New.
13106 (insert_wic_for_ilb_runout): New.
13107 (insert_wic): New.
13108 (microblaze_machine_dependent_reorg): New.
13109 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
13110 * config/microblaze/microblaze.md
13111 (UNSPEC_IPREFETCH): Define.
13112 (iprefetch): New pattern
13113 * config/microblaze/microblaze.opt
13114 (mxl-prefetch): New flag.
13115
13116 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
13117
13118 * config/microblaze/microblaze.h
13119 (FIXED_REGISTERS): Update in macro.
13120 (CALL_USED_REGISTERS): Update in macro.
13121
13122 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
13123
13124 PR rtl-optimization/68920
13125 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
13126 moves.
13127
13128 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
13129
13130 PR rtl-optimization/68990
13131 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
13132 pseudo instead of inheritance ones.
13133
13134 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
13135 Nick Clifton <nickc@redhat.com>
13136
13137 PR target/69129
13138 PR target/69012
13139 * config/mips/mips.c (mips_compute_frame_info): Initialise
13140 args_size and hard_frame_pointer_offset fields of the frame
13141 structure before calling mips_global_pointer.
13142
13143 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
13144
13145 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
13146 label reference.
13147 * configure: Regenerate.
13148
13149 2016-01-21 Richard Biener <rguenther@suse.de>
13150
13151 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
13152
13153 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
13154
13155 * config/s390/s390.c (s390_asm_declare_function_size): Add code
13156 to actually emit the .size directive.
13157
13158 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
13159 Jakub Jelinek <jakub@redhat.com>
13160
13161 PR target/69187
13162 PR target/65624
13163 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
13164 args array size by one to avoid buffer overflow.
13165
13166 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
13167
13168 * config/s390/s390.md (pool_section_start): Use switch_to_section
13169 to select proper read-only data section instead of hardcoding
13170 .rodata.
13171 (pool_section_end): Use switch_to_section to match the above.
13172
13173 2016-01-21 Richard Biener <rguenther@suse.de>
13174
13175 PR tree-optimization/69378
13176 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
13177 (set_ssa_val_to): Use it for dominance checks taking into
13178 account not executable edges.
13179
13180 2016-01-21 Jakub Jelinek <jakub@redhat.com>
13181
13182 PR c++/69355
13183 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
13184 for bitsize instead of GET_MODE_PRECISION (mode).
13185
13186 2016-01-20 Martin Sebor <msebor@redhat.com>
13187
13188 PR c/52291
13189 * extend.texi (__sync Builtins): Clarify the semantics of
13190 __sync_fetch_and_OP built-ins on pointers.
13191 (__atomic Builtins): Same.
13192
13193 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13194 Sebastian Pop <s.pop@samsung.com>
13195
13196 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
13197 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
13198 (is_valid_rename): Same.
13199 (translate_isl_ast_to_gimple::get_rename): Same.
13200 (translate_isl_ast_to_gimple::rename_all_uses): Same.
13201 (translate_isl_ast_to_gimple::rename_uses): Same.
13202 (get_new_name): Check for close_phi nodes.
13203 (copy_loop_phi_args): Use phi_node_kind.
13204 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
13205 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
13206
13207 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13208 Sebastian Pop <s.pop@samsung.com>
13209
13210 Revert commit r229783.
13211 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
13212 Remove use of parameter_rename_map.
13213 (copy_def): Remove.
13214 (copy_internal_parameters): Remove.
13215 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
13216 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
13217 (free_sese_info): Do not free parameter_rename_map.
13218 (set_rename): Do not use parameter_rename_map.
13219 (rename_uses): Update call to set_rename.
13220 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
13221 * sese.h (parameter_rename_map_t): Remove.
13222 (struct sese_info_t): Remove field parameter_rename_map.
13223
13224 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13225 Sebastian Pop <s.pop@samsung.com>
13226
13227 * graphite-isl-ast-to-gimple.c: Fix comment.
13228 * graphite-scop-detection.c (defined_in_loop_p): New.
13229 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
13230 names defined in loop.
13231
13232 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13233 Sebastian Pop <s.pop@samsung.com>
13234
13235 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
13236 Discard unstructured if-then-else regions.
13237
13238 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13239 Sebastian Pop <s.pop@samsung.com>
13240
13241 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
13242 (cleanup_loop_iter_dom): Remove.
13243 (build_loop_iteration_domains): Remove.
13244 (build_scop_context): Remove.
13245 (build_scop_iteration_domain): Remove.
13246 (add_loop_constraints): New.
13247 (build_iteration_domains): New.
13248 (build_poly_scop): Call build_iteration_domains.
13249
13250 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13251 Sebastian Pop <s.pop@samsung.com>
13252
13253 * graphite-scop-detection.c
13254 (scop_detection::harmful_loop_in_region): Free dom and loops.
13255 (scop_detection::loop_body_is_valid_scop): Free bbs.
13256
13257 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13258 Sebastian Pop <s.pop@samsung.com>
13259
13260 * graphite-scop-detection.c (record_loop_in_sese): New.
13261 (gather_bbs::before_dom_children): Call record_loop_in_sese.
13262 (build_scops): Remove call to build_sese_loop_nests.
13263 * sese.c (sese_record_loop): Remove.
13264 (build_sese_loop_nests): Remove.
13265 (new_sese_info): Remove region->loops.
13266 (free_sese_info): Same.
13267 * sese.h (sese_contains_loop): Same.
13268 (build_sese_loop_nests): Remove.
13269 (sese_contains_loop): Remove.
13270
13271 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13272 Sebastian Pop <s.pop@samsung.com>
13273
13274 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
13275 loop_is_valid_in_scop.
13276 (scop_detection::harmful_stmt_in_region): Renamed
13277 harmful_loop_in_region.
13278 Call loop_is_valid_in_scop.
13279
13280 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13281 Sebastian Pop <s.pop@samsung.com>
13282
13283 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
13284 isl_ast_node_mark.
13285
13286 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13287 Sebastian Pop <s.pop@samsung.com>
13288
13289 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
13290 * graphite.h (struct poly_bb): Remove field is_reduction.
13291 (PBB_IS_REDUCTION): Remove.
13292
13293 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13294 Sebastian Pop <s.pop@samsung.com>
13295
13296 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
13297 (add_pdr_constraints): Same.
13298 (scop_get_reads): Same.
13299 (scop_get_must_writes): Same.
13300 (scop_get_may_writes): Same.
13301 (scop_get_original_schedule): Same.
13302 (extend_schedule): Same.
13303 (apply_schedule_on_deps): Same.
13304 (carries_deps): Same.
13305 (compute_deps): Same.
13306 (scop_get_dependences): Same.
13307 * graphite-isl-ast-to-gimple.c
13308 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
13309 * graphite-optimize-isl.c (get_schedule_for_band): Same.
13310 (get_schedule_for_band_list): Same.
13311 (get_schedule_map): Same.
13312 (apply_schedule_map_to_scop): Same.
13313 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
13314 (build_loop_iteration_domains): Same.
13315 (add_condition_to_pbb): Same.
13316 (add_param_constraints): Same.
13317 (pdr_add_memory_accesses): Same.
13318 (pdr_add_data_dimensions): Same.
13319
13320 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
13321
13322 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
13323 requirements.
13324
13325 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
13326
13327 * common.opt (feliminate-dwarf2-dups): Replace references to
13328 "DWARF 2" with just "DWARF".
13329 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
13330 * doc/extend.texi: Likewise.
13331 * doc/cpp.texi: Likewise.
13332 * doc/invoke.texi: Likewise.
13333 (Option Summary): Add -gdwarf to list of Debugging Options.
13334 (Debugging Options): Document -gdwarf.
13335 * doc/contrib.texi: Spell "DWARF" like that.
13336
13337 2016-01-21 Jakub Jelinek <jakub@redhat.com>
13338
13339 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
13340 warning. Fix up formatting.
13341
13342 PR middle-end/67653
13343 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
13344 attempt to mark memory input operand addressable and
13345 call prepare_gimple_addressable in that case. Don't adjust
13346 input_location for diagnostics, use error_at instead.
13347
13348 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
13349
13350 * config/rs6000/ppc-auxv.h: New file.
13351 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
13352 (cpu_is): Likewise.
13353 (cpu_supports): Likewise.
13354 * config/rs6000/rs6000.c: include "ppc-auxv.h".
13355 (cpu_is_info): New variable.
13356 (cpu_supports_info): Likewise.
13357 (tcb_verification_symbol): Likewise.
13358 (cpu_builtin_p): Likewise.
13359 (cpu_expand_builtin): New function.
13360 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
13361 (rs6000_init_builtins): Likewise.
13362 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
13363 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
13364 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
13365 * configure: Regenerate.
13366 * config.in: Likewise.
13367 * doc/extend.texi (PowerPC Built-in Functions): Document
13368 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
13369
13370 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
13371
13372 PR target/68609
13373 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
13374 domain check.
13375 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
13376 for V4SFmode.
13377
13378 2016-01-20 Richard Henderson <rth@redhat.com>
13379
13380 PR bootstrap/69343
13381 PR bootstrap/69339
13382 PR tree-opt/68964
13383 Revert:
13384 * tree.c (tm_define_builtin): New.
13385 (find_tm_vector_type): New.
13386 (build_tm_vector_builtins): New.
13387 (build_common_builtin_nodes): Call it.
13388
13389 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
13390
13391 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
13392 (arm_fp_ok): Likewise.
13393 (arm_fp): Likewise.
13394 (arm_crypto): Likewise.
13395
13396 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
13397 Richard Biener <rguenther@suse.de>
13398
13399 PR tree-optimization/69328
13400 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
13401 vectors have same number of elements.
13402 (vectorizable_condition): Fix masked version recognition.
13403
13404 2016-01-20 Richard Biener <rguenther@suse.de>
13405
13406 PR tree-optimization/69345
13407 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
13408 (VN_INFO_PTR_INFO): Likewise.
13409 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
13410 info when it is equal between non-dominating SSA names.
13411 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13412 Make sure to look at original SSA infos.
13413
13414 2016-01-20 Jeff Law <law@redhat.com>
13415
13416 PR target/25114
13417 * config/m68k/predicates.md (pow2_m1_operand): New predicate
13418 extracted from ...
13419 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
13420 (pc_or_label_operand): New predicate.
13421 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
13422 tests for small integers that are 2^n - 1.
13423
13424 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
13425
13426 * doc/invoke.texi (Options Summary): Add '.' after @xref.
13427
13428 2016-01-19 Jeff Law <law@redhat.com>
13429
13430 PR middle-end/69347
13431 * tree-ssa-threadbackwards.c
13432 (fsm_find_control_statement_thread_paths): Do not try to lookup
13433 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
13434
13435 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13436
13437 * doc/lto.texi: Remove text that says only Gold has linker plugin
13438 support.
13439
13440 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
13441
13442 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
13443 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
13444 the DIE accordingly.
13445 (modified_type_die): Add REVERSE parameter and pass it recursively,
13446 as well as to base_type_die. Adjust presence check accordingly.
13447 (base_type_for_mode): Adjust call to modified_type_die.
13448 (add_type_attribute): Add REVERSE parameter and pass it to
13449 modified_type_die.
13450 (generic_parameter_die): Adjust call to add_type_attribute.
13451 (add_scalar_info): Likewise.
13452 (add_subscript_info): Likewise.
13453 (gen_array_type_die): Likewise.
13454 (gen_descr_array_type_die): Likewise.
13455 (gen_entry_point_die): Likewise.
13456 (gen_enumeration_type_die): Likewise.
13457 (gen_formal_parameter_die): Likewise.
13458 (gen_subprogram_die): Likewise.
13459 (gen_variable_die ): Likewise.
13460 (gen_const_die): Likewise.
13461 (gen_field_die): Likewise.
13462 (gen_pointer_type_die): Likewise.
13463 (gen_reference_type_die): Likewise.
13464 (gen_ptr_to_mbr_type_die): Likewise.
13465 (gen_inheritance_die): Likewise.
13466 (gen_subroutine_type_die): Likewise.
13467 (gen_typedef_die): Likewise.
13468 (force_type_die): Adjust call to modified_type_die.
13469
13470 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
13471
13472 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
13473 flow throughout the file. Fix broken link to Objective-C 2.0
13474 documentation.
13475 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
13476 errors.
13477
13478 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
13479
13480 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
13481
13482 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
13483
13484 PR ipa/66223
13485 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
13486 (maybe_record_node): Record cxa_pure_virtual as the only possible
13487 target if there are not ohter candidates.
13488 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
13489
13490 2016-01-19 Richard Biener <rguenther@suse.de>
13491
13492 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
13493 (get_memory_order): Likewise.
13494
13495 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
13496
13497 * tree-vect-stmts.c (vectorizable_store): Check
13498 rhs vectype.
13499
13500 2016-01-19 David Malcolm <dmalcolm@redhat.com>
13501
13502 PR jit/68446
13503 * gcc.c (driver::decode_argv): Add call to
13504 init_opts_obstack before init_options_struct.
13505 * opts.c (init_opts_obstack): Remove idempotency.
13506 (init_options_struct): Replace call to init_opts_obstack
13507 with a gcc_assert to verify that it has already been called.
13508 * toplev.c (toplev::main): Add call to init_opts_obstack before
13509 calls to init_options_struct.
13510 (toplev::finalize): Move cleanup of opts_obstack next to
13511 cleanup of save_decoded_options, clearing the latter, and
13512 save_decoded_options_count.
13513
13514 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13515
13516 PR target/69135
13517 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
13518 attribute to unconditional. Remove %? from output template.
13519
13520 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
13521 Jiong Wang <jiong.wang@arm.com>
13522
13523 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
13524 generated from different expand order.
13525
13526 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
13527
13528 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
13529 Add support for CCMP costing.
13530
13531 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
13532
13533 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
13534 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
13535 (fccmpe<mode>): Likewise.
13536 (fcmp): Rename to fcmp and globalize pattern.
13537 (fcmpe): Likewise.
13538 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
13539 (aarch64_gen_ccmp_next): Add FP support.
13540
13541 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
13542
13543 * target.def (gen_ccmp_first): Update documentation.
13544 (gen_ccmp_next): Likewise.
13545 * doc/tm.texi (gen_ccmp_first): Update documentation.
13546 (gen_ccmp_next): Likewise.
13547 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
13548 expand_ccmp_expr_1. Improve comments.
13549 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
13550 (ccmp_ior<mode>): Remove pattern.
13551 (cmp<mode>): Remove expand.
13552 (cmp): Globalize pattern.
13553 (cstorecc4): Use cc_register.
13554 (mov<mode>cc): Remove ccmp_cc_register check.
13555 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
13556 Simplify after removal of CC_DNE/* modes.
13557 (aarch64_ccmp_mode_to_code): Remove.
13558 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
13559 In 'k' case use integer as condition.
13560 (aarch64_nzcv_codes): Remove inverted cases.
13561 (aarch64_code_to_ccmode): Remove.
13562 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
13563 comparison with CC register to be used in folowing CCMP/branch/CSEL.
13564 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
13565 pattern. Return the comparison with CC register. Invert conditions
13566 when bitcode is OR.
13567 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
13568 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
13569
13570 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
13571
13572 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
13573 instrumented_version.
13574
13575 2016-01-19 Richard Biener <rguenther@suse.de>
13576
13577 PR tree-optimization/69336
13578 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
13579 handled components with get_ref_base_and_extent.
13580 (equal_mem_array_ref_p): Adjust.
13581
13582 2016-01-19 Jakub Jelinek <jakub@redhat.com>
13583
13584 PR debug/65779
13585 * shrink-wrap.c: Include valtrack.h.
13586 (move_insn_for_shrink_wrap): Add DEBUG argument. If
13587 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
13588 in between insn and where it will be moved to. Call
13589 dead_debug_insert_temp.
13590 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
13591 first and dead_debug_local_finish at the end.
13592 For uses and defs bitmap, handle all regs in between REGNO and
13593 END_REGNO, not just the first one.
13594
13595 2016-01-19 Richard Biener <rguenther@suse.de>
13596
13597 PR tree-optimization/69352
13598 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
13599 (equal_mem_array_ref_p): Constrain size and max size properly.
13600 Compare the reverse flag.
13601
13602 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
13603
13604 * ira.c (ira): Update regstat data if we deleted insns.
13605
13606 2016-01-19 Jakub Jelinek <jakub@redhat.com>
13607
13608 PR rtl-optimization/68955
13609 PR rtl-optimization/64557
13610 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
13611 here. Fix up formatting.
13612 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
13613
13614 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
13615
13616 PR lto/69133
13617 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
13618 assume that the node has body.
13619 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
13620 check.
13621
13622 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
13623
13624 * lto-streamer-out.c (lto_output): Do not stream instrumentation
13625 thunks.
13626
13627 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
13628
13629 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
13630 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
13631
13632 2016-01-19 Martin Jambor <mjambor@suse.cz>
13633 Martin Liska <mliska@suse.cz>
13634 Michael Matz <matz@suse.de>
13635
13636 * Makefile.in (OBJS): Add new source files.
13637 (GTFILES): Add hsa.c.
13638 * common.opt (disable_hsa): New variable.
13639 (-Whsa): New warning.
13640 * config.in (ENABLE_HSA): New.
13641 * configure.ac: Treat hsa differently from other accelerators.
13642 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
13643 $enable_offloading.
13644 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
13645 * doc/install.texi (Configuration): Document --with-hsa-runtime,
13646 --with-hsa-runtime-include, --with-hsa-runtime-lib and
13647 --with-hsa-kmt-lib.
13648 * doc/invoke.texi (-Whsa): Document.
13649 (hsa-gen-debug-stores): Likewise.
13650 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
13651 to invoke offload compiler for hsa acclerator.
13652 * opts.c (common_handle_option): Determine whether HSA offloading
13653 should be performed.
13654 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
13655 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
13656 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
13657 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
13658 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
13659 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
13660 GF_OMP_FOR_KIND_GRID_LOOP.
13661 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
13662 (pp_gimple_stmt_1): Likewise.
13663 * gimple-walk.c (walk_gimple_stmt): Likewise.
13664 * gimple.c (gimple_build_omp_grid_body): New function.
13665 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
13666 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
13667 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
13668 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
13669 GF_OMP_TEAMS_GRID_PHONY.
13670 (gimple_statement_omp_single_layout): Updated comments.
13671 (gimple_build_omp_grid_body): New function.
13672 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
13673 (gimple_omp_for_grid_phony): New function.
13674 (gimple_omp_for_set_grid_phony): Likewise.
13675 (gimple_omp_parallel_grid_phony): Likewise.
13676 (gimple_omp_parallel_set_grid_phony): Likewise.
13677 (gimple_omp_teams_grid_phony): Likewise.
13678 (gimple_omp_teams_set_grid_phony): Likewise.
13679 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
13680 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
13681 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
13682 (BUILT_IN_GOMP_TARGET): Updated type.
13683 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
13684 (adjust_for_condition): New function.
13685 (get_omp_for_step_from_incr): Likewise.
13686 (extract_omp_for_data): Moved parts to adjust_for_condition and
13687 get_omp_for_step_from_incr.
13688 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
13689 (fixup_child_record_type): Bail out if receiver_decl is NULL.
13690 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
13691 (scan_omp_parallel): Do not create child functions for phony
13692 constructs.
13693 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
13694 (scan_omp_1_op): Checking assert we are not remapping to
13695 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
13696 (parallel_needs_hsa_kernel_p): New function.
13697 (expand_parallel_call): Register apprpriate parallel child
13698 functions as HSA kernels.
13699 (grid_launch_attributes_trees): New type.
13700 (grid_attr_trees): New variable.
13701 (grid_create_kernel_launch_attr_types): New function.
13702 (grid_insert_store_range_dim): Likewise.
13703 (grid_get_kernel_launch_attributes): Likewise.
13704 (get_target_argument_identifier_1): Likewise.
13705 (get_target_argument_identifier): Likewise.
13706 (get_target_argument_value): Likewise.
13707 (push_target_argument_according_to_value): Likewise.
13708 (get_target_arguments): Likewise.
13709 (expand_omp_target): Call get_target_arguments instead of looking
13710 up for teams and thread limit.
13711 (grid_expand_omp_for_loop): New function.
13712 (grid_arg_decl_map): New type.
13713 (grid_remap_kernel_arg_accesses): New function.
13714 (grid_expand_target_kernel_body): New function.
13715 (expand_omp): Call it.
13716 (lower_omp_for): Do not emit phony constructs.
13717 (lower_omp_taskreg): Do not emit phony constructs but create for them
13718 a temporary variable receiver_decl.
13719 (lower_omp_taskreg): Do not emit phony constructs.
13720 (lower_omp_teams): Likewise.
13721 (lower_omp_grid_body): New function.
13722 (lower_omp_1): Call it.
13723 (grid_reg_assignment_to_local_var_p): New function.
13724 (grid_seq_only_contains_local_assignments): Likewise.
13725 (grid_find_single_omp_among_assignments_1): Likewise.
13726 (grid_find_single_omp_among_assignments): Likewise.
13727 (grid_find_ungridifiable_statement): Likewise.
13728 (grid_target_follows_gridifiable_pattern): Likewise.
13729 (grid_remap_prebody_decls): Likewise.
13730 (grid_copy_leading_local_assignments): Likewise.
13731 (grid_process_kernel_body_copy): Likewise.
13732 (grid_attempt_target_gridification): Likewise.
13733 (grid_gridify_all_targets_stmt): Likewise.
13734 (grid_gridify_all_targets): Likewise.
13735 (execute_lower_omp): Call grid_gridify_all_targets.
13736 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
13737 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
13738 (tree_omp_clause): Added union field dimension.
13739 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
13740 * tree.c (omp_clause_num_ops): Added number of arguments of
13741 OMP_CLAUSE__GRIDDIM_.
13742 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
13743 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
13744 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
13745 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
13746 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
13747 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
13748 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
13749 * tree-pass.h (make_pass_gen_hsail): Declare.
13750 (make_pass_ipa_hsa): Likewise.
13751 * ipa-hsa.c: New file.
13752 * lto-section-in.c (lto_section_name): Add hsa section name.
13753 * lto-streamer.h (lto_section_type): Add hsa section.
13754 * timevar.def (TV_IPA_HSA): New.
13755 * hsa-brig-format.h: New file.
13756 * hsa-brig.c: New file.
13757 * hsa-dump.c: Likewise.
13758 * hsa-gen.c: Likewise.
13759 * hsa.c: Likewise.
13760 * hsa.h: Likewise.
13761 * toplev.c (compile_file): Call hsa_output_brig.
13762 * hsa-regalloc.c: New file.
13763
13764 2016-01-18 Jeff Law <law@redhat.com>
13765
13766 PR tree-optimization/69320
13767 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
13768 ranged object, do nothing if the RHS constant is not [0..1].
13769 (optimize_stmt): Comparing a boolean ranged object against a
13770 constant outside [0..1] results in a compile-time constant.
13771
13772 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
13773 test.
13774
13775 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
13776
13777 * doc/invoke.texi (Invoking GCC): Add new section to menu.
13778 (Option Summary): Update to reflect new section and moved options.
13779 (C++ Dialect Options): Move -fstats to new section.
13780 (Debugging Options): Move all dump, statistics, and other GCC
13781 developer options to new section. Rewrite section introduction
13782 and re-order remaining options to put the more basic ones first.
13783 (Optimization Options): Move -fira-verbose and -flto-report* to
13784 new section.
13785 (Developer Options): New section incorporating moved options.
13786 * doc/cppopts.texi (-dM): Update cross-reference.
13787
13788 2016-01-18 Richard Henderson <rth@redhat.com>
13789
13790 PR target/69176
13791 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
13792 operands to pseudo only if CSE is expected. Split long immediate
13793 operands only after reload, and for the stack pointer.
13794 (*add<GPI>3_pluslong): Remove.
13795 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
13796 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
13797 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
13798 (*add<GPI>3 peepholes): New.
13799 (*add<GPI>3 splitters): New.
13800 * config/aarch64/constraints.md (Upl): New.
13801 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
13802
13803 2016-01-18 Richard Biener <rguenther@suse.de>
13804
13805 PR tree-optimization/69297
13806 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
13807 stmt at most once.
13808 (vect_bb_vectorization_profitable_p): Clear visited flag again.
13809
13810 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
13811
13812 PR middle-end/68542
13813 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
13814 of mixind vector and scalar types.
13815 (fold_relational_const): Add handling of vector
13816 comparison with boolean result.
13817 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
13818 comparison of vector operands with boolean result for EQ/NE only.
13819 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
13820 (verify_gimple_cond): Likewise.
13821 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
13822 valid type of VAL.
13823
13824 2016-01-18 Joseph Myers <joseph@codesourcery.com>
13825
13826 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
13827 !TARGET_OCTEON.
13828
13829 2016-01-18 Richard Biener <rguenther@suse.de>
13830
13831 PR middle-end/69308
13832 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
13833
13834 2016-01-18 Tom de Vries <tom@codesourcery.com>
13835
13836 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
13837
13838 2016-01-18 Tom de Vries <tom@codesourcery.com>
13839
13840 * omp-low.c (set_oacc_fn_attrib): Make extern.
13841 * omp-low.h (set_oacc_fn_attrib): Declare.
13842 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
13843 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
13844 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
13845 Add and handle function parameter oacc_kernels_p.
13846 (find_reduc_addr, get_omp_data_i_param): New function.
13847 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
13848 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
13849 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
13850 Calculate dominance info. Skip loops that are not in a kernels region
13851 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
13852 (pass_parallelize_loops::execute): Call parallelize_loops with
13853 oacc_kernels_p argument.
13854 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
13855 New member function.
13856 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
13857 * passes.def: Add argument to pass_parallelize_loops instantation.
13858
13859 2016-01-18 Tom de Vries <tom@codesourcery.com>
13860
13861 * tree-parloops.c (pass_parallelize_loops::execute): Allow
13862 pass_parallelize_loops to be run outside the loop pipeline.
13863
13864 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
13865
13866 * tree-scalar-evolution.c (follow_copies_to_constant): New.
13867 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
13868
13869 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
13870
13871 PR target/63679
13872 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
13873 using get_ref_base_and_extent.
13874 (equal_mem_array_ref_p): New.
13875 (hashable_expr_equal_p): Add call to previous.
13876
13877 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
13878
13879 PR target/63679
13880 * tree-sra.c (disqualified_constants, constant_decl_p): New.
13881 (sra_initialize): Allocate disqualified_constants.
13882 (sra_deinitialize): Free disqualified_constants.
13883 (disqualify_candidate): Update disqualified_constants when appropriate.
13884 (create_access): Scan for constant-pool entries as we go along.
13885 (scalarizable_type_p): Add check against type_contains_placeholder_p.
13886 (maybe_add_sra_candidate): Allow constant-pool entries.
13887 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
13888 (initialize_constant_pool_replacements): New.
13889 (sra_modify_assign): Avoid mangling assignments created by previous,
13890 and don't generate writes into constant pool.
13891 (sra_modify_function_body): Call initialize_constant_pool_replacements.
13892
13893 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
13894
13895 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
13896 andnot instruction.
13897 (scalar_chain::convert_op): Likewise.
13898 * config/i386/i386.md (*andndi3_doubleword): New.
13899
13900 2016-01-18 Richard Biener <rguenther@suse.de>
13901
13902 PR tree-optimization/69170
13903 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
13904 building a vector from scalar results of a pattern stmt.
13905
13906 2016-01-18 Jakub Jelinek <jakub@redhat.com>
13907
13908 * haifa-sched.c (autopref_multipass_init): Work around
13909 -Wmaybe-uninitialized warning.
13910
13911 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
13912
13913 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
13914 against the constant 0.
13915
13916 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13917
13918 PR tree-optimization/68799
13919 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
13920 look up phi candidates in the statement-candidate map.
13921 (phi_add_costs): Likewise.
13922 (record_phi_increments): Likewise.
13923 (phi_incr_cost): Likewise.
13924 (ncd_with_phi): Likewise.
13925 (all_phi_incrs_profitable): Likewise.
13926
13927 2016-01-17 Jakub Jelinek <jakub@redhat.com>
13928
13929 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
13930 -Wmaybe-uninitialized warning.
13931
13932 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
13933
13934 * doc/invoke.texi (Invoking GCC): Add new section to menu.
13935 (Option Summary): Update to reflect new section and moved options.
13936 (C++ Dialect Options): Move -fvtable-verify and related options.
13937 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
13938 and profiling-related options.
13939 (Optimization Options): Move profile generation options and
13940 -fstack-protector and related options.
13941 (Instrumentation Options): New section incorporating moved options.
13942 (Code Generation Options): Move -finstrument-functions and
13943 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
13944
13945 2016-01-16 Tom de Vries <tom@codesourcery.com>
13946
13947 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
13948
13949 2016-01-16 Tom de Vries <tom@codesourcery.com>
13950
13951 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
13952
13953 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
13954
13955 * hash-table.h (hash_table::empty): Turn into an inline wrapper
13956 that checks whether the table is already empty. Rename the
13957 original implementation to...
13958 (hash_table::empty_slot): ...this new private function.
13959
13960 2016-01-15 David Malcolm <dmalcolm@redhat.com>
13961
13962 PR diagnostic/68899
13963 * diagnostic-show-locus.c (layout::print_source_line): Move x
13964 offset of line until after call to
13965 get_line_width_without_trailing_whitespace.
13966
13967 2016-01-15 Jeff Law <law@redhat.com>
13968
13969 PR tree-optimization/69270
13970 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
13971 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
13972 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
13973 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
13974 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
13975 ssa_name_has_boolean_range and constant_boolean_node.
13976
13977 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
13978
13979 PR rtl-optimization/69030
13980 * lra-spills.c (remove_pseudos): Check nrefs and make the function
13981 returning bool.
13982 (spill_pseudos): Delete debug insn for dead pseudo.
13983 (lra_spill): Initiate spill_hard_reg and slots memory separately.
13984
13985 2016-01-15 Jiong Wang <jiong.wang@arm.com>
13986
13987 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
13988 New.
13989 (TYPES_UNOPUS): Likewise.
13990 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
13991 builtin type, from UNOP to UNOPUS.
13992 (lbtruncuv4sf): Likewise.
13993 (lbtruncuv2df): Likewise.
13994 (lrounduv2sf): Likewise.
13995 (lrounduv4sf): Likewise.
13996 (lrounduv2df): Likewise.
13997 (lroundusf): Likewise.
13998 (lroundusf): Likewise.
13999 (lceiluv2sf): Likewise.
14000 (lceiluv4sf): Likewise.
14001 (lceiluv2df): Likewise.
14002 (lceilusf): Likewise.
14003 (lceiludf): Likewise.
14004 (lflooruv2sf): Likewise.
14005 (lflooruv4sf): Likewise.
14006 (lflooruv2df): Likewise.
14007 (lfloorusf): Likewise.
14008 (lfloorudf): Likewise.
14009 (lfrintnuv2sf): Likewise.
14010 (lfrintnuv4sf): Likewise.
14011 (lfrintnuv2df): Likewise.
14012 (lfrintnusf): Likewise.
14013 (lfrintnudf): Likewise.
14014 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
14015 conversion.
14016 (vcvtq_u32_f32): Likewise.
14017 (vcvtq_u64_f64): Likewise.
14018 (vcvta_u32_f32): Likewise.
14019 (vcvtaq_u32_f32): Likewise.
14020 (vcvtaq_u64_f64): Likewise.
14021 (vcvtm_u32_f32): Likewise.
14022 (vcvtmq_u32_f32): Likewise.
14023 (vcvtmq_u64_f64): Likewise.
14024 (vcvtn_u32_f32): Likwise.
14025 (vcvtnq_u32_f32): Likewise.
14026 (vcvtnq_u64_f64): Likewise.
14027 (vcvtp_u32_f32): Likewise.
14028 (vcvtpq_u32_f32): Likewise.
14029 (vcvtpq_u64_f64): Likewise.
14030 (vcvtmd_u64_f64): Likewise.
14031 (vcvtms_u32_f32): Likewise.
14032 (vcvtad_u64_f64): Likewise.
14033 (vcvtas_u32_f32): Likewise.
14034 (vcvtnd_u64_f64): Likewise.
14035 (vcvtns_u32_f32): Likewise.
14036 (vcvtpd_u64_f64): Likewise.
14037 (vcvtps_u32_f32): Likewise.
14038
14039 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14040
14041 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
14042 CSEL of zero_extended registers.
14043
14044 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14045
14046 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
14047 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
14048
14049 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14050
14051 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
14052 false when argument string is not found in the attributes table
14053 at all.
14054
14055 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
14056
14057 PR target/68609
14058 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
14059 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
14060 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
14061 precision estimate.
14062
14063 2016-01-15 Richard Biener <rguenther@suse.de>
14064
14065 PR tree-optimization/66856
14066 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
14067 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
14068 (vect_create_new_slp_node): Increment stmt reference count.
14069 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
14070 an SLP tree before swapping operands.
14071 (vect_build_slp_tree): Likewise.
14072 (destroy_bb_vec_info): Free stmt info after SLP instances.
14073 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
14074 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
14075 (STMT_VINFO_NUM_SLP_USES): New macro.
14076
14077 2016-01-15 Richard Biener <rguenther@suse.de>
14078
14079 PR debug/69137
14080 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
14081 (add_linkage_name): ... here.
14082 (gen_typedef_die): Use add_linkage_name_raw instead of
14083 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
14084 if necessary.
14085
14086 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
14087
14088 * gimplify.c (oacc_default_clause): Decode reference and pointer
14089 types for both kernels and parallel regions.
14090
14091 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
14092
14093 PR middle-end/69246
14094 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
14095
14096 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
14097
14098 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
14099 (convert_scalars_to_vector): Likewise.
14100
14101 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
14102
14103 * doc/extend.texi (Type Traits): Fix grammar.
14104
14105 2016-01-15 Martin Jambor <mjambor@suse.cz>
14106
14107 * tree-inline.c (remap_decl): Use existing dclarations if
14108 remapping a type and prevent_decl_creation_for_types.
14109 (replace_locals_stmt): Do an initial remapping of non-VLA typed
14110 decls first. Do real remapping with
14111 prevent_decl_creation_for_types set.
14112 * tree-inline.h (copy_body_data): New field
14113 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
14114 padding.
14115
14116 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
14117
14118 * config/s390/s390.opt (mmvcle): More verbose help text.
14119
14120 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
14121
14122 * config/s390/s390.opt: Add period to -mzvector option text.
14123
14124 2016-01-15 Richard Biener <rguenther@suse.de>
14125
14126 PR tree-optimization/68961
14127 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
14128 of invariants in stores again.
14129
14130 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
14131
14132 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
14133
14134 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
14135
14136 * config/i386/i386.c (ix86_expand_branch): Don't split
14137 DI mode xor instruction to SI mode.
14138
14139 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
14140
14141 PR ipa/68148
14142 * ipa-icf.c (sem_function::merge): Virtual functions may become
14143 reachable even if they address is not taken and there are no
14144 idrect calls.
14145
14146 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
14147
14148 * lto-streamer-out.c (subtract_estimated_size): New function.
14149 (get_symbol_initial_value): Use it.
14150
14151 2016-01-15 Christian Bruel <christian.bruel@st.com>
14152
14153 PR target/65837
14154 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
14155 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
14156 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
14157 use add_builtin_function_ext_scope instead of add_builtin_function.
14158 (neon_set_p, neon_crypto_set_p): Remove.
14159 (arm_init_builtins): Always call arm_init_neon_builtins and
14160 arm_init_crypto_builtins.
14161 (arm_expand_builtin): Check that builtins are allowed for the arch.
14162 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
14163 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
14164 arm_init_neon_builtins call.
14165
14166 2016-01-15 Richard Biener <rguenther@suse.de>
14167
14168 PR tree-optimization/69117
14169 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
14170 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
14171 of the leader conservatively.
14172 (free_scc_vn): Restore original SSA name infos.
14173
14174 2016-01-14 Jeff Law <law@redhat.com>
14175
14176 PR tree-optimization/69270
14177 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
14178 single bit of precision, verify it's also unsigned.
14179 (record_edge_info): Use constant_boolean_node rather than fold_convert
14180 to convert boolean_true/boolean_false to the right type.
14181
14182 2016-01-14 Richard Henderson <rth@redhat.com>
14183
14184 PR rtl-opt/69014
14185 * loop-doloop.c (record_reg_sets): New.
14186 (doloop_optimize): Reject the transform if the sequence
14187 clobbers registers live at the end of the loop block.
14188 (doloop_optimize_loops): Enable df_live if needed.
14189
14190 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14191
14192 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
14193 * config/rs6000/rs6000.c: Likewise.
14194 * config/rs6000/rs6000.h: Likewise.
14195 * config/rs6000/rs6000.md: Likewise.
14196 * doc/extend.texi: Likewsie.
14197
14198 2016-01-14 Jeff Law <law@redhat.com>
14199
14200 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
14201 typo.
14202
14203 2016-01-14 Richard Henderson <rth@redhat.com>
14204
14205 PR c/69272
14206 PR tree-opt/68964
14207 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
14208 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
14209 instead of builtin_decl_declared_p to test for declaration.
14210
14211 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
14212
14213 * doc/loop.texi (Loop Analysis and Representation): Document
14214 loop_depth function.
14215
14216 2016-01-14 Tom de Vries <tom@codesourcery.com>
14217
14218 PR tree-optimization/68773
14219 * omp-low.c (expand_omp_target): Don't set force_output.
14220 * varpool.c (varpool_node::get_create): Same.
14221 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
14222 offload_funcs with force_output.
14223
14224 2016-01-14 Jakub Jelinek <jakub@redhat.com>
14225
14226 PR debug/69244
14227 * lra-eliminations.c (move_plus_up): Don't change anything if either
14228 the outer or inner subreg mode is not MODE_INT.
14229 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
14230 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
14231
14232 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
14233
14234 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
14235 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
14236 reduc_uplus_@var{m}): Remove.
14237 * expr.c (expand_expr_real_2): Remove expansion path for
14238 reduc_[us](min|max|plus) optabs.
14239 * optabs-tree.c (scalar_reduc_to_vector): Remove.
14240 * optabs-tree.h (scalar_reduc_to_vector): Remove.
14241 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
14242 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
14243 * tree-vect-loop.c (vectorizable_reduction): Remove test for
14244 reduc_[us](min|max|plus) optabs.
14245
14246 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
14247
14248 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
14249 (reduc_plus_scal_v2sf): New.
14250 (reduc_smax_v2sf): Rename to...
14251 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
14252 (reduc_smin_v2sf): Rename to...
14253 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
14254
14255 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
14256
14257 * alias.c (compare_base_symbol_refs): New function.
14258 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
14259 it.
14260
14261 2016-01-14 Jakub Jelinek <jakub@redhat.com>
14262
14263 PR middle-end/68146
14264 PR tree-optimization/69155
14265 * tree-complex.c: Include cfganal.h.
14266 (phis_to_revisit): New variable.
14267 (extract_component): Add phiarg_p argument. Assert that returned
14268 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
14269 (update_phi_components): Partly rewrite to use loop over real/imag
14270 components instead of code duplication. If extract_component returns
14271 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
14272 create_tmp_reg into the PHI node instead, and mention the phi triplet
14273 in phis_to_revisit.
14274 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
14275 in phis_to_revisit at the end.
14276
14277 2016-01-14 Richard Biener <rguenther@suse.de>
14278
14279 PR tree-optimization/68060
14280 * tree-vect-loop.c (vect_is_simple_reduction): Check the
14281 outer loop reduction is only used in the inner loop before
14282 detecting a double reduction.
14283
14284 2016-01-14 Jakub Jelinek <jakub@redhat.com>
14285
14286 PR target/68269
14287 * combine.c (expand_field_assignment): Punt if compute_mode is
14288 unsupported scalar mode.
14289
14290 2016-01-14 Richard Biener <rguenther@suse.de>
14291
14292 PR tree-optimization/66856
14293 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
14294 SLP node only if it built successfully.
14295 (vect_analyze_slp_instance): Adjust.
14296
14297 2016-01-14 Jeff Law <law@redhat.com>
14298
14299 PR tree-optimization/69270
14300 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
14301 (record_edge_info): Use it. Convert boolean_{true,false}_node
14302 to the type of op0.
14303
14304 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
14305
14306 PR ipa/66487
14307 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
14308 use block_ultimate_origin
14309 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
14310
14311 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
14312
14313 * doc/invoke.texi (Submodel Options): Rename section to
14314 "Machine-Dependent Options" to better reflect its content.
14315 Rewrite introductory text to remove archaic CPU names.
14316 Update references.
14317
14318 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
14319
14320 * doc/invoke.texi (Code Gen Options): Move section up in file,
14321 before target-specific options. Update menu and option summary
14322 to reflect the new section ordering.
14323
14324 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
14325
14326 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
14327 (C++ Dialect Options): Add cross-reference to -std option.
14328 * doc/standards.texi (C++ Language): Document C++14 support.
14329
14330 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14331
14332 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
14333 for pack/unpack functions for __ibm128.
14334 (PACK_IF): Likewise.
14335 (UNPACK_IF): Likewise.
14336
14337 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
14338 support for __ibm128 pack/unpack functions.
14339 (rs6000_invalid_builtin): Likewise.
14340 (rs6000_init_builtins): Likewise.
14341 (rs6000_opt_masks): Likewise.
14342
14343 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
14344 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
14345 functions
14346 (RS6000_BTM_COMMON): Likewise.
14347
14348 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
14349 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
14350 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
14351 128-bit floating point. Add support for the double values to be
14352 in Altivec registers for TF/IF packing and unpacking, but restrict
14353 TD packing sub-fields to be FPR registers. Don't allow overlapped
14354 register support for packing. Allow pack inputs to be memory
14355 locations. Don't build generator functions for unpack<mode>_dm
14356 and unpack<mode>_nodm.
14357 (unpack<mode>_dm): Likewise.
14358 (unpack<mode>_nodm): Likewise.
14359 (pack<mode>): Likewise.
14360
14361 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
14362 built-in functions to pack/unpack explicit __ibm128 values.
14363 (__builtin_unpack_ibm128): Likewise.
14364
14365 * doc/extend.texi (PowerPC Built-in Functions): Document
14366 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
14367
14368 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
14369
14370 PR c/66208
14371 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
14372 Add new arg loc and pass it down as context.
14373 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
14374 to the location to use for the warning.
14375 (check_function_arguments): New arg loc. All callers changed. Pass
14376 it to check_function_nonnull.
14377 * c-common.h (check_function_arguments): Adjust declaration.
14378
14379 2016-01-13 Jakub Jelinek <jakub@redhat.com>
14380
14381 PR tree-optimization/69156
14382 * gimple.c (validate_type): Removed.
14383 (gimple_builtin_call_types_compatible_p): Use
14384 useless_type_conversion_p instead of validate_type.
14385 * value-prof.c (gimple_stringop_fixed_value): Fold
14386 icall_size to correct type.
14387
14388 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
14389
14390 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
14391 effects.
14392
14393 2016-01-13 Richard Henderson <rth@redhat.com>
14394
14395 PR tree-opt/68964
14396 * target.def (builtin_tm_load, builtin_tm_store): Remove.
14397 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
14398 (ix86_builtin_tm_store): Remove.
14399 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
14400 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
14401 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
14402 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
14403 * doc/tm.texi: Rebuild.
14404
14405 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
14406 (BUILT_IN_TM_MEMCPY_RTWN): New.
14407 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
14408 fallback from vector to integer helpers.
14409 (build_tm_load): Handle vector types directly, instead of
14410 via target hook.
14411 (build_tm_store): Likewise.
14412 (expand_assign_tm): Prepare for register types not handled by
14413 the above. Copy them to memory and use memcpy.
14414 * tree.c (tm_define_builtin): New.
14415 (find_tm_vector_type): New.
14416 (build_tm_vector_builtins): New.
14417 (build_common_builtin_nodes): Call it.
14418
14419 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
14420
14421 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
14422 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
14423
14424 2016-01-13 Tom de Vries <tom@codesourcery.com>
14425
14426 PR tree-optimization/69169
14427 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
14428 handled_struct_type param.
14429 (create_variable_info_for, intra_create_variable_infos): Call
14430 create_variable_info_for_1 with extra arg.
14431
14432 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
14433
14434 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
14435 and "armv8.1-a+crc" entries.
14436
14437 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
14438
14439 PR target/69228
14440 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
14441 Change first operand predicate from register_or_constm1_operand
14442 to register_operand.
14443 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
14444 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
14445 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
14446 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
14447 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
14448 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
14449 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
14450 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
14451 comparison with constm1_rtx from vec_prefetch_gen part.
14452
14453 2016-01-13 Richard Biener <rguenther@suse.de>
14454
14455 PR tree-optimization/69013
14456 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
14457 Exchange assert for a test.
14458
14459 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14460
14461 PR target/69247
14462 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
14463
14464 2016-01-13 Richard Biener <rguenther@suse.de>
14465
14466 PR tree-optimization/69242
14467 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
14468 assert with a check.
14469
14470 2016-01-13 Richard Biener <rguenther@suse.de>
14471
14472 PR tree-optimization/69186
14473 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14474 Properly guard vect_update_misalignment_for_peel call.
14475
14476 2016-01-12 Jeff Law <law@redhat.com>
14477
14478 PR tree-optimization/pr67755
14479 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
14480 "need_profile_correction".
14481 (thread_block_1): Initialize new field to false by default. If we
14482 have multiple thread paths through a common joiner to different
14483 final targets, then set new field to true.
14484 (compute_path_counts): Only do count adjustment when it's really
14485 needed.
14486
14487 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
14488
14489 * doc/invoke.texi (Spec Files): Move section down in file, past
14490 all command-line option descriptions.
14491
14492 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14493
14494 PR middle-end/54809
14495 * doc/gty.texi: Remove documentation of mark_hook.
14496 * gengtype.c (struct write_types_data): Remove code to support
14497 mark_hook attribute.
14498 (walk_type): Likewise.
14499 (write_func_for_structure): Likewise.
14500
14501 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
14502
14503 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
14504 Directory Options, and -specs= to Overall Options.
14505 (Overall Options): Adjust similarly. Reorder to group related
14506 options together. Make -specs= cross-reference the spec file details.
14507 (Directory Options): Adjust similarly.
14508
14509 2016-01-12 Jeff Law <law@redhat.com>
14510
14511 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
14512
14513 2016-01-12 Olivier Hainque <hainque@adacore.com>
14514
14515 * gcc.c (spec_undefvar_allowed): New global.
14516 (process_command): Set to true when running for --version or --help,
14517 alone or together.
14518 (getenv_spec_function): When the variable is not defined, use the
14519 variable name as the variable value if we're allowed not to issue
14520 a fatal error.
14521
14522 2016-01-12 Bin Cheng <bin.cheng@arm.com>
14523
14524 PR tree-optimization/68911
14525 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
14526 information computed for expression "init + nit * step".
14527
14528 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
14529
14530 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
14531 about name of GCC executable. Remove deleted node from menu.
14532 (Directory Options) <-B>: Remove cross-reference to deleted node.
14533 (Target Options): Delete section.
14534
14535 2016-01-12 Christian Bruel <christian.bruel@st.com>
14536
14537 PR target/69180
14538 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
14539 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
14540
14541 2016-01-12 Jakub Jelinek <jakub@redhat.com>
14542
14543 PR target/69198
14544 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
14545 aligned_mem is properly set for AVX512-VL floating point masked
14546 stores.
14547
14548 PR target/69175
14549 * ifcvt.c (cond_exec_process_if_block): When removing the last
14550 insn from then_bb, remove also any possible barriers that follow it.
14551
14552 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
14553
14554 PR target/68456
14555 PR target/69226
14556 * config/i386/iamcu.h (SIZE_TYPE): New macro.
14557 (PTRDIFF_TYPE): Likewise.
14558 (WCHAR_TYPE): Likewise.
14559 (WCHAR_TYPE_SIZE): Likewise.
14560 (STDINT_LONG32): Likewise.
14561
14562 2016-01-12 Richard Biener <rguenther@suse.de>
14563
14564 PR tree-optimization/69053
14565 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
14566 convert initial value for cond reductions.
14567
14568 2016-01-12 Richard Biener <rguenther@suse.de>
14569
14570 PR tree-optimization/69007
14571 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
14572 widen_sum after dot_prod and sad.
14573
14574 2016-01-12 Richard Biener <rguenther@suse.de>
14575
14576 PR tree-optimization/69168
14577 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
14578 pattern stmt SLP type.
14579 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
14580 end up unused so cope with that case.
14581
14582 2016-01-12 Richard Biener <rguenther@suse.de>
14583
14584 PR tree-optimization/69157
14585 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
14586 stmts def type only during analyze phase.
14587 (vectorizable_call): Likewise.
14588 (vectorizable_simd_clone_call): Likewise.
14589 (vectorizable_conversion): Likewise.
14590 (vectorizable_assignment): Likewise.
14591 (vectorizable_shift): Likewise.
14592 (vectorizable_operation): Likewise.
14593 (vectorizable_store): Likewise.
14594 (vectorizable_load): Likewise.
14595
14596 2016-01-12 Richard Biener <rguenther@suse.de>
14597
14598 PR tree-optimization/69174
14599 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
14600 space.
14601 (vectorizable_load): Properly compute the number of loads needed
14602 for permuted strided SLP loads and do not spuriously assign
14603 to SLP_TREE_VEC_STMTS.
14604
14605 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
14606
14607 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
14608 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
14609 (MD_EXEC_PREFIX): Remove.
14610 (MD_STARTFILE_PREFIX) Removee.
14611 (FILE_NAME_ABSOLUTE_P): Remove.
14612 (CPP_SPEC): Do not read macros from sys/version.h.
14613 (LINK_COMMAND_SPEC): Remove.
14614 (LOCAL_INCLUDE_DIR): Remove.
14615 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
14616 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
14617 (POST_LINK_SPEC): Define to invoke stubify after linker
14618 (LIBSTDCXX): Remove define
14619 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
14620 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
14621 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
14622 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
14623 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
14624 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
14625 (i386_djgpp_asm_named_section): Add propotype of new procedure
14626
14627 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
14628 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
14629 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
14630 in config/i386/djgpp.h).
14631 (STANDARD_STARTFILE_PREFIX_2): Define identical to
14632 STANDARD_STARTFILE_PREFIX_1.
14633 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
14634 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
14635 installation errors.
14636 (MAX_OFILE_ALIGNMENT): Define to 128.
14637 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
14638
14639 * config/i386/djgpp.c: New file. Add implementation of
14640 i386_djgpp_asm_named_section.
14641
14642 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
14643
14644 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
14645 Add rule for building djgpp.o.
14646
14647 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14648
14649 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
14650 (rtx_is_swappable_p): Reductions are swappable.
14651 (insn_is_swappable_p): V2DF reductions are swappable.
14652
14653 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
14654
14655 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
14656 reloads for other unsupported memory operands.
14657
14658 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
14659 Jim Wilson <jim.wilson@linaro.org>
14660
14661 PR target/69194
14662 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
14663 copy_to_mode_reg instead of force_reg.
14664
14665 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
14666
14667 PR target/69225
14668 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
14669 TARGET_80387 is true.
14670
14671 2016-01-11 Jakub Jelinek <jakub@redhat.com>
14672
14673 PR target/69071
14674 * lra-eliminations.c (move_plus_up): Only move plus up
14675 if subreg of the constant can be simplified into constant
14676 and use the simplified subreg of the constant instead of
14677 the original constant.
14678
14679 * fold-const.c (fold_convertible_p): Don't return true
14680 for conversion of VECTOR_TYPE to same sized integral type.
14681 (fold_convert_loc): Fix up formatting. Fold conversion of
14682 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
14683 instead of NOP_EXPR.
14684
14685 PR tree-optimization/69214
14686 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
14687 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
14688 Formatting fix.
14689
14690 PR tree-optimization/69207
14691 * tree-vect-slp.c (vect_get_constant_vectors): For
14692 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
14693 fold_convertible_p to vector_type's element type, and always
14694 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
14695
14696 2016-01-11 Richard Biener <rguenther@suse.de>
14697
14698 PR tree-optimization/69173
14699 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
14700 fixup the cycle if all stmts are in a pattern.
14701
14702 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
14703
14704 PR middle-end/68999
14705 * alias.c (base_alias_check): Move check for addresses with
14706 alignment ANDs before the call for compare_base_decls.
14707 (memrefs_conflict_p): Return -1 for different decls
14708 that went through alignment adjustments.
14709
14710 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14711
14712 PR rtl-optimization/68796
14713 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
14714 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
14715 and QImode comparisons against zero with CC_NZmode.
14716 * config/aarch64/iterators.md (short_mask): New mode_attr.
14717
14718 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
14719
14720 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
14721 (<avx512>_store<mode>_mask): Likewise.
14722
14723 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
14724 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14725
14726 PR rtl-optimization/68841
14727 * ifcvt.c (struct noce_if_info): Add orig_x field.
14728 (bbs_ok_for_cmove_arith): Add to_rename parameter.
14729 Don't record conflicts on to_rename if it's present.
14730 Allow memory destinations in sets.
14731 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
14732 blocks, passing orig_x to the checks.
14733 (noce_process_if_block): Set if_info->orig_x appropriately.
14734
14735 2016-01-11 Tom de Vries <tom@codesourcery.com>
14736
14737 PR tree-optimization/69069
14738 * tree-parloops.c (create_parallel_loop): Add missing phi args.
14739
14740 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
14741
14742 PR rtl-optimization/68920
14743 * config/i386/i386.c (ix86_option_override_internal): Restrict number
14744 of conditional moves for RTL if-conversion to 1 for
14745 TARGET_ONE_IF_CONV_INSN.
14746 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
14747 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
14748 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
14749 parameter to restirct number of conditional moves for
14750 RTL if-conversion.
14751 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
14752 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
14753 conditionl moves.
14754
14755 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
14756
14757 PR bootstrap/69123
14758 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
14759 onepart vars. Fix typo in comment. Fix reversed condition in
14760 unshare test.
14761 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
14762
14763 PR bootstrap/69123
14764 * var-tracking.c (dump_onepart_variable_differences): New.
14765 (dataflow_set_different): If a detailed dump is requested,
14766 delay early returns and dump differences between onepart
14767 variables present before and after, and added variables.
14768
14769 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
14770
14771 PR target/69010
14772 * expr.c (expand_expr_real_1): For boolean vector constants
14773 with a scalar mode use const_scalar_mask_from_tree.
14774 (const_scalar_mask_from_tree): New.
14775 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
14776 assigned to a mask type to handle constants.
14777
14778 2016-01-11 Martin Jambor <mjambor@suse.cz>
14779
14780 PR ipa/69044
14781 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
14782 useless parameters if we cannot change function signature.
14783
14784 2016-01-11 Martin Jambor <mjambor@suse.cz>
14785
14786 PR ipa/66616
14787 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
14788 flag.
14789
14790 2016-01-11 Tom de Vries <tom@codesourcery.com>
14791
14792 PR tree-optimization/69109
14793 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
14794 latch with phi.
14795
14796 2016-01-11 Tom de Vries <tom@codesourcery.com>
14797
14798 PR tree-optimization/69108
14799 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
14800 res is not used in a phi.
14801
14802 2016-01-11 Yury Gribov <y.gribov@samsung.com>
14803
14804 PR 67425
14805 * common.opt (frandom-seed): Fix parameter name.
14806 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
14807
14808 2016-01-11 Tom de Vries <tom@codesourcery.com>
14809
14810 PR tree-optimization/69058
14811 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
14812 not supported.
14813
14814 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
14815
14816 * config/arc/arc.opt (mdiv-rem): Add period to the end.
14817 (mcode-density): Likewise.
14818
14819 2016-01-10 Tom de Vries <tom@codesourcery.com>
14820
14821 PR tree-optimization/69062
14822 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
14823 (parallelize_loops): Don't paralelize loop that has phi with address
14824 arg.
14825
14826 2016-01-10 Tom de Vries <tom@codesourcery.com>
14827
14828 PR tree-optimization/69039
14829 * tree-parloops.c (try_create_reduction_list): Only allow single exit
14830 phi for reduction.
14831
14832 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
14833
14834 PR middle-end/68743
14835 * match.pd: Require target has function_c99_misc before doing
14836 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
14837
14838 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
14839
14840 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
14841 use GMPINC.
14842 * configure: Regenerate.
14843
14844 2016-01-09 Jakub Jelinek <jakub@redhat.com>
14845
14846 PR middle-end/50865
14847 PR tree-optimization/69097
14848 * fold-const.h (expr_not_equal_to): New prototype.
14849 * fold-const.c: Include stringpool.h and tree-ssanames.h.
14850 (expr_not_equal_to): New function.
14851 * match.pd (X % -Y is the same as X % Y): Don't optimize
14852 unless X is known not to be equal to minimum or Y is known
14853 not to be equal to -1.
14854 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
14855 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
14856 (simplify_stmt_using_ranges): Adjust caller.
14857 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
14858 substitute_and_fold.
14859
14860 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
14861
14862 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
14863 w/o DECL_NAME.
14864
14865 2016-01-08 Jakub Jelinek <jakub@redhat.com>
14866
14867 PR tree-optimization/69167
14868 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
14869 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
14870 ops[0] comparison.
14871 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
14872
14873 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
14874 Richard Biener <rguenther@suse.de>
14875
14876 PR tree-optimization/68707
14877 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
14878 instances that can be handled via vect_load_lanes.
14879
14880 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
14881
14882 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
14883 if we can't determine address equivalence.
14884 * alias.c (compare_base_decl): Update for changed return value of
14885 symtab_node::equal_address_to.
14886
14887 2016-01-08 Jason Merrill <jason@redhat.com>
14888
14889 PR c++/68983
14890 PR c++/67557
14891 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
14892 * expr.c (store_field): Not here.
14893 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
14894 call with TREE_ADDRESSABLE type.
14895 * tree-cfg.c (verify_gimple_call): Adjust.
14896
14897 2016-01-08 Olivier Hainque <hainque@adacore.com>
14898
14899 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
14900 libc_internal.
14901
14902 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
14903
14904 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
14905 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
14906 (reduc_smin_v2sf): Rename to...
14907 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
14908 (reduc_splus_v2sf): Rename to...
14909 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
14910
14911 2016-01-08 Jakub Jelinek <jakub@redhat.com>
14912
14913 PR tree-optimization/69162
14914 * gimplify.c (gimplify_va_arg_expr): Encode original type of
14915 valist argument in another argument.
14916 (gimplify_modify_expr): Adjust for the above change. Cleanup.
14917 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
14918 to determine the va_list type, build a MEM_REF instead of
14919 build_fold_indirect_ref.
14920
14921 PR tree-optimization/69172
14922 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
14923 gimple_build.
14924
14925 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
14926
14927 PR tree-optimization/67781
14928 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
14929 and cmpnop in two steps: first the ones not accessed in original
14930 gimple expression in a endian independent way and then the ones not
14931 accessed in the final result in an endian-specific way.
14932
14933 2016-01-08 Jakub Jelinek <jakub@redhat.com>
14934
14935 PR tree-optimization/69083
14936 * tree-vect-slp.c (vect_get_constant_vectors): For
14937 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
14938 element type. If op is fold_convertible_p to vector_type's element
14939 type, use NOP_EXPR instead of VCE.
14940
14941 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
14942
14943 PR rtl-optimization/67778
14944 PR rtl-optimization/68634
14945 PR rtl-optimization/68909
14946 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
14947 block from the stack until done with it. Remove a superfluous
14948 bitmap set. Remove a superfluous bitmap test.
14949
14950 2016-01-07 Martin Sebor <msebor@redhat.com>
14951
14952 PR c/68966
14953 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
14954 constraint on the type of arguments.
14955
14956 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
14957
14958 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
14959 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
14960 unaligned_access on the gcc_options set.
14961 * config/arm/arm.c (arm_option_override_internal): Use
14962 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
14963
14964 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
14965
14966 PR target/69140
14967 * config/i386/i386.c (ix86_frame_pointer_required): Enable
14968 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
14969
14970 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
14971
14972 Revert
14973 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
14974
14975 PR target/69140
14976 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
14977 depending on frame_pointer_needed before remaining integer and SSE
14978 registers are saved.
14979
14980 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
14981
14982 PR 1078
14983 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
14984
14985 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
14986
14987 PR target/69171
14988 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
14989 Use the "xBm" constraint.
14990 (float<sseintvecmodelower><mode>2<mask_name><round_name):
14991 Likewise.
14992 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
14993 (sse_cvtsi2ssq<round_name>): Likewise.
14994 (sse_cvtss2si<round_name>): Likewise.
14995 (sse_cvtss2siq<round_name>): Likewise.
14996 (sse2_cvtsi2sdq<round_name>): Likewise.
14997 (sse2_cvtsd2si<round_name>): Likewise.
14998 (sse2_cvtsd2siq<round_name>): Likewise.
14999 * config/i386/subst.md (round_nimm_scalar_predicate): New
15000 predicate.
15001
15002 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
15003
15004 PR middle-end/67639
15005 * varasm.c (make_decl_rtl): Mark invalid register vars as
15006 DECL_EXTERNAL.
15007
15008 PR rtl-optimization/66206
15009 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
15010 All callers changed.
15011
15012 2016-01-07 Jakub Jelinek <jakub@redhat.com>
15013
15014 PR tree-optimization/69141
15015 * tree-ssa-pre.c: Include langhooks.h.
15016 (eliminate_dom_walker::before_dom_children): Use
15017 lang_hooks.decl_printable_name instead of
15018 cgraph_node::get ()->name ().
15019
15020 PR middle-end/68960
15021 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
15022 it and DECL_ALIGN too.
15023
15024 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
15025
15026 * config/mips/mips-ftypes.def: Sort to lexicographical order.
15027
15028 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
15029
15030 PR target/69140
15031 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
15032 depending on frame_pointer_needed before remaining integer and SSE
15033 registers are saved.
15034
15035 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15036
15037 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
15038 mode iterator with VSX_M2.
15039 (*p9_vecstore_<mode>): Likewise.
15040 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
15041 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
15042 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
15043 (define_split for VSX_LE128 stores): Likewise.
15044 (define_peephole2 for TImode LE swaps): Likewise.
15045 (define_split for VSX_LE128 post-reload stores): Likewise.
15046
15047 2016-01-06 Marek Polacek <polacek@redhat.com>
15048
15049 PR sanitizer/69099
15050 * convert.c (convert_to_integer_1): Adjust call to
15051 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
15052 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
15053 EXPR instead of ARG.
15054 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
15055
15056 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
15057
15058 PR 1078
15059 * doc/extend.texi (RL78 Variable Attributes): New section.
15060
15061 2016-01-05 Marek Polacek <polacek@redhat.com>
15062
15063 PR c/69104
15064 * builtins.c (get_memmodel): Use expansion point location rather than
15065 the input location. Call warning_at rather than warning.
15066 (expand_builtin_atomic_compare_exchange): Likewise.
15067 (expand_builtin_atomic_load): Likewise.
15068 (expand_builtin_atomic_store): Likewise.
15069 (expand_builtin_atomic_clear): Likewise.
15070
15071 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
15072
15073 PR target/68991
15074 * config/i386/i386.c (ix86_expand_vector_logical_operator):
15075 Replace nonimmediate_operand with vector_operand.
15076 * config/i386/predicates.md (vector_operand): New predicate.
15077 (general_vector_operand): Replace nonimmediate_operand with
15078 vector_operand.
15079 * config/i386/sse.md: Replace nonimmediate_operand with
15080 vector_operand and m constraint with Bm constraint on SSE
15081 patterns with 16-byte memory operand.
15082 * config/i386/subst.md (round_nimm_predicate): Replace
15083 nonimmediate_operand with vector_operand.
15084 (round_saeonly_nimm_predicate): Likewise.
15085 (round_saeonly_nimm_scalar_predicate): New.
15086
15087 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
15088
15089 PR target/68991
15090 * config/i386/constraints.md (Bm): New constraint.
15091 * config/i386/predicates.md (vector_memory_operand): New
15092 predicate.
15093 * config/i386/sse.md: Replace xm with xBm in plusminus and
15094 any_logic patterns.
15095
15096 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
15097
15098 PR 1078
15099 * doc/extend.texi (V850 Function Attributes): New section.
15100 (V850 Variable Attributes): New section.
15101
15102 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
15103
15104 PR 1078
15105 * doc/extend.texi (MicroBlaze Function Attributes): Document
15106 interrupt_handler and fast_interrupt attributes.
15107
15108 2016-01-05 Sergei Trofimovich <siarheit@google.com>
15109
15110 PR other/60465
15111 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
15112 for local symbolic operands.
15113 * config/ia64/predicates.md (local_symbolic_operand64): New
15114 predicate.
15115
15116 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15117
15118 PR rtl-optimization/68651
15119 * combine.c (combine_simplify_rtx): Canonicalize x + x into
15120 x << 1.
15121
15122 2016-01-05 Nathan Sidwell <nathan@acm.org>
15123
15124 * alias.c (compare_base_decls): Use symtab_node::get.
15125
15126 2016-01-05 Nick Clifton <nickc@redhat.com>
15127
15128 PR target/68770
15129 * ira-costs.c (copy_cost): Initialise the t_icode field of the
15130 secondary_reload_info structure.
15131
15132 PR target/66655
15133 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
15134 decls if weak support is available.
15135
15136 2016-01-04 Martin Sebor <msebor@redhat.com>
15137
15138 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
15139
15140 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
15141
15142 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
15143 OPTION_MASK_P9_DFORM.
15144
15145 * config/rs6000/constraints.md (wo constraint): New constraint for
15146 ISA 3.0 (power9).
15147
15148 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
15149 for wo constraint.
15150 (rs6000_init_hard_regno_mode_ok): Likewise.
15151
15152 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
15153 wo constraint.
15154
15155 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
15156 expanders not to have constraints. Add support for ISA 3.0 xxperm
15157 instruction. Add support for fusing xxlor with xxperm.
15158 (altivec_vperm_<mode>_internal): Likewise.
15159 (altivec_vperm_v8hiv16qi): Likewise.
15160 (altivec_vperm_<mode>v16q): Likewise.
15161 (altivec_vperm_<mode>_uns): Likewise.
15162 (vperm_v8hiv4si): Likewise.
15163 (vperm_v16qiv8hi): Likewise.
15164
15165 * doc/md.texi (RS/6000 constraints): Document wo constraint.
15166
15167 2016-01-04 Jakub Jelinek <jakub@redhat.com>
15168
15169 Update copyright years.
15170
15171 * gcc.c (process_command): Update copyright notice dates.
15172 * gcov-dump.c (print_version): Ditto.
15173 * gcov.c (print_version): Ditto.
15174 * gcov-tool.c (print_version): Ditto.
15175 * gengtype.c (create_file): Ditto.
15176 * doc/cpp.texi: Bump @copying's copyright year.
15177 * doc/cppinternals.texi: Ditto.
15178 * doc/gcc.texi: Ditto.
15179 * doc/gccint.texi: Ditto.
15180 * doc/gcov.texi: Ditto.
15181 * doc/install.texi: Ditto.
15182 * doc/invoke.texi: Ditto.
15183
15184 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
15185
15186 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
15187 modes larger than TImode as TImode if NEON is not enabled.
15188
15189 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
15190
15191 PR target/69100
15192 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
15193 mode for %f0-%f31 only if TARGET_FPU.
15194
15195 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
15196
15197 PR target/69072
15198 * config/sparc/sparc.c (scan_record_type): Take into account subfields
15199 to compute the PACKED_P predicate.
15200 (function_arg_record_value): Minor tweaks.
15201
15202 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
15203
15204 * doc/install.texi (--with-multilib-list): Describe the meaning of the
15205 option for arm*-*-* targets.
15206
15207 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
15208
15209 * doc/extend.texi (Common Function Attributes): Move docs for
15210 MSP430-specific attributes to....
15211 (MSP430 Function Attributes): ...here. Delete the redundant
15212 entries and copy-edit the remaining text.
15213 (MSP430 Variable Attributes): Use uniform format for index
15214 entries and add a cross-reference to the corresponding function
15215 attribute docs.
15216
15217 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
15218
15219 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
15220 -finite-math typo.
15221 (x86 Options): Likewise.
15222
15223 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
15224
15225 PR 1078
15226
15227 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
15228 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
15229 to corresponding attribute.
15230
15231 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
15232
15233 * doc/extend.texi (Common Function Attributes) <noplt>: Move
15234 to correct alphabetization of table. Copy-edit and correct
15235 markup.
15236 <stack_protect>: Likewise.
15237 <target_clones>: Likewise.
15238 <simd>: Likewise.
15239 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
15240 Correct punctuation.
15241 (Code Gen Options) <-fno-plt>: Copy-edit.
15242
15243 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
15244
15245 PR target/68917
15246 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
15247 SI values. Explicitly convert SI to DI and vice-versa.
15248
15249 2016-01-01 Jakub Jelinek <jakub@redhat.com>
15250
15251 PR tree-optimization/69070
15252 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
15253 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
15254
15255 PR sanitizer/69055
15256 * ubsan.c (ubsan_instrument_float_cast): Call
15257 initialize_sanitizer_builtins.
15258
15259 PR target/69015
15260 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
15261 \f
15262 Copyright (C) 2016 Free Software Foundation, Inc.
15263
15264 Copying and distribution of this file, with or without modification,
15265 are permitted in any medium without royalty provided the copyright
15266 notice and this notice are preserved.