aarch64 - Set the mode for the unspec in speculation_tracker insn.
[platform/upstream/linaro-gcc.git] / gcc / ChangeLog
1 2018-11-06  Richard Earnshaw  <rearnsha@arm.com>
2
3         * config/aarch64/aarch64.md (speculation_tracker): Set the mode for
4         the UNSPEC.
5
6 2018-11-02  Richard Earnshaw  <rearnsha@arm.com>
7
8         * config/aarch64/aarch64.c ((aarch64_override_options): Disable
9         shrink-wrapping when -mtrack-speculation.
10
11 2018-08-23  Richard Earnshaw  <rearnsha@arm.com>
12
13         PR target/86951
14         * config/arm/arm-protos.h (arm_emit_speculation_barrier): New
15         prototype.
16         * config/arm/arm.c (speculation_barrier_libfunc): New static
17         variable.
18         (arm_init_libfuncs): Initialize it.
19         (arm_emit_speculation_barrier): New function.
20         * config/arm/arm.md (speculation_barrier): Call
21         arm_emit_speculation_barrier for architectures that do not have
22         DSB or ISB.
23         (speculation_barrier_insn): Only match on Armv7 or later.
24
25 2018-08-01  Richard Earnshaw  <rearnsha@arm.com>
26
27         * config/i386/i386.md (unspecv): Add UNSPECV_SPECULATION_BARRIER.
28         (speculation_barrier): New insn.
29
30 2018-07-31  Ian Lance Taylor  <iant@golang.org>
31
32         * targhooks.c (default_have_speculation_safe_value): Add
33         ATTRIBUTE_UNUSED.
34
35 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
36
37         * targhooks.h (speculation_safe_value_not_needed): New prototype.
38         * targhooks.c (speculation_safe_value_not_needed): New function.
39         * target.def (have_speculation_safe_value): Update documentation.
40         * doc/tm.texi: Regenerated.
41
42 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
43
44         * config/aarch64/iterators.md (ALLI_TI): New iterator.
45         * config/aarch64/aarch64.md (despeculate_copy<ALLI_TI:mode>): New
46         expand.
47         (despeculate_copy<ALLI:mode>_insn): New insn.
48         (despeculate_copyti_insn): New insn.
49         (despeculate_simple<ALLI:mode>): New insn
50         (despeculate_simpleti): New insn.
51         * config/aarch64/aarch64.c (aarch64_speculation_safe_value): New
52         function.
53         (TARGET_SPECULATION_SAFE_VALUE): Redefine to
54         aarch64_speculation_safe_value.
55         (aarch64_print_operand): Handle const0_rtx in modifier 'H'.
56
57 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
58
59         * config/aarch64/aarch64-speculation.cc: New file.
60         * config/aarch64/aarch64-passes.def (pass_track_speculation): Add
61         before pass_reorder_blocks.
62         * config/aarch64/aarch64-protos.h (make_pass_track_speculation): Add
63         prototype.
64         * config/aarch64/aarch64.c (aarch64_conditional_register_usage): Fix
65         X14 and X15 when tracking speculation.
66         * config/aarch64/aarch64.md (register name constants): Add
67         SPECULATION_TRACKER_REGNUM and SPECULATION_SCRATCH_REGNUM.
68         (unspec): Add UNSPEC_SPECULATION_TRACKER.
69         (speculation_barrier): New insn attribute.
70         (cmp<mode>): Allow SP in comparisons.
71         (speculation_tracker): New insn.
72         (speculation_barrier): Add speculation_barrier attribute.
73         * config/aarch64/t-aarch64: Add make rule for aarch64-speculation.o.
74         * config.gcc (aarch64*-*-*): Add aarch64-speculation.o to extra_objs.
75         * doc/invoke.texi (AArch64 Options): Document -mtrack-speculation.
76
77 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
78
79         * config/aarch64/aarch64.md (cb<optab><mode>1): Disable when
80         aarch64_track_speculation is true.
81         (tb<optab><mode>1): Likewise.
82         * config/aarch64/aarch64.c (aarch64_split_compare_regs): Do not
83         generate CB[N]Z when tracking speculation.
84         (aarch64_split_compare_and_swap): Likewise.
85         (aarch64_split_atomic_op): Likewise.
86
87 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
88
89         * config/aarch64/aarch64.opt (mtrack-speculation): New target option.
90
91 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
92
93         * config/aarch64.md (unspecv): Add UNSPECV_SPECULAION_BARRIER.
94         (speculation_barrier): New insn.
95
96 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
97
98         * config/arm/unspecs.md (unspecv): Add VUNSPEC_SPECULATION_BARRIER.
99         * config/arm/arm.md (speculation_barrier): New expand.
100         (speculation_barrier_insn): New pattern.
101
102 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
103
104         * builtin-types.def (BT_FN_PTR_PTR_VAR): New function type.
105         (BT_FN_I1_I1_VAR, BT_FN_I2_I2_VAR, BT_FN_I4_I4_VAR): Likewise.
106         (BT_FN_I8_I8_VAR, BT_FN_I16_I16_VAR): Likewise.
107         * builtin-attrs.def (ATTR_NOVOPS_NOTHROW_LEAF_LIST): New attribute
108         list.
109         * builtins.def (BUILT_IN_SPECULATION_SAFE_VALUE_N): New builtin.
110         (BUILT_IN_SPECULATION_SAFE_VALUE_PTR): New internal builtin.
111         (BUILT_IN_SPECULATION_SAFE_VALUE_1): Likewise.
112         (BUILT_IN_SPECULATION_SAFE_VALUE_2): Likewise.
113         (BUILT_IN_SPECULATION_SAFE_VALUE_4): Likewise.
114         (BUILT_IN_SPECULATION_SAFE_VALUE_8): Likewise.
115         (BUILT_IN_SPECULATION_SAFE_VALUE_16): Likewise.
116         * builtins.c (expand_speculation_safe_value): New function.
117         (expand_builtin): Call it.
118         * doc/cpp.texi: Document predefine __HAVE_SPECULATION_SAFE_VALUE.
119         * doc/extend.texi: Document __builtin_speculation_safe_value.
120         * doc/md.texi: Document "speculation_barrier" pattern.
121         * doc/tm.texi.in: Pull in TARGET_SPECULATION_SAFE_VALUE and
122         TARGET_HAVE_SPECULATION_SAFE_VALUE.
123         * doc/tm.texi: Regenerated.
124         * target.def (have_speculation_safe_value, speculation_safe_value): New
125         hooks.
126         * targhooks.c (default_have_speculation_safe_value): New function.
127         (default_speculation_safe_value): New function.
128         * targhooks.h (default_have_speculation_safe_value): Add prototype.
129         (default_speculation_safe_value): Add prototype.
130
131 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
132
133         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
134         Emit CBNZ inside loop when doing a strong exchange and comparing
135         against zero.  Generate the CC flags after the loop.
136
137 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
138
139         PR rtl-optimization/68664
140         * config/arm/arm.c (arm_sched_can_speculate_insn):
141         New function.  Declare prototype.
142         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
143
144 2016-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
145
146         * config/aarch64/aarch64.c: Delete inclusion of
147         cortex-a57-fma-steering.h.
148         (aarch64_override_options): Delete call
149         to aarch64_register_fma_steering.
150         * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
151         * config/aarch64/cortex-a57-fma-steering.h: Delete.
152         * config/aarch64/aarch64-passes.def: New file.
153         * config/aarch64/cortex-a57-fma-steering.c
154         (aarch64_register_fma_steering): Delete definition.
155         (make_pass_fma_steering): Remove static qualifier.
156         * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
157         (cortex-a57-fma-steering.o): Remove dependency on
158         cortex-a57-fma-steering.h.
159
160 2017-07-06  Vyacheslav Barinov  <v.barinov@samsung.com>
161
162         * tree.def: Add STATEMENT_LIST_END tree code.
163         * tree.c: Add STATEMENT_LIST_END handling as TS_COMMON.
164         * gimplify.c (gimplify_expr): Use STATEMENT_LIST_END location to
165         provide right information for try_finally_expr.
166         * tree-eh.c (lower_try_finally_onedest): Set finally location
167         accordingly to location of last statement in cleanup.
168         * gimple.c (DEFTREECODE): handle STATEMENT_LIST_END as appropriate
169         GIMPLE_SINGLE_RHS.
170         * cp/constraint.cc (check_function_concept): Handle concept
171         definitions with STATEMENT_LIST_END.
172         * cp/error.c (dump_expr): Add STATEMENT_LIST_END support.
173         * fold-const.c (operand_equal_p): Add STATEMENT_LIST_END support.
174         * c-family/c-semantics.c (pop_stmt_list): Support single-statement
175         lists extraction with STATEMENT_LIST_END in the end.
176
177 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
178
179         * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
180         BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
181
182 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
183
184         * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
185         * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
186         ASAN_STACK_MAGIC_MIDDLE.
187         (asan_global_struct): Increase the size of fields.
188         (asan_add_global): Add new field constructor.
189
190 2017-06-27  Jakub Jelinek  <jakub@redhat.com>
191
192         PR sanitizer/81209
193         * ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.
194
195 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
196
197         Backported from mainline
198         2017-06-20  Jakub Jelinek  <jakub@redhat.com>
199
200         PR sanitizer/81125
201         * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
202         by removing enum keyword.
203         (ubsan_type_descriptor): Likewise.  Formatting fix.
204
205         2017-06-19  Jakub Jelinek  <jakub@redhat.com>
206
207         PR sanitizer/81125
208         * ubsan.h (enum ubsan_encode_value_phase): New.
209         (ubsan_encode_value): Change second argument to
210         enum ubsan_encode_value_phase with default value of
211         UBSAN_ENCODE_VALUE_GENERIC.
212         * ubsan.c (ubsan_encode_value): Change second argument to
213         enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
214         adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
215         create_tmp_var_raw instead of create_tmp_var and use a
216         TARGET_EXPR.
217         (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
218         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
219         ubsan_encode_value callers.
220
221         PR sanitizer/81111
222         * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
223         use create_tmp_var_raw instead of create_tmp_var, mark it addressable
224         just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
225
226
227 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
228
229         PR sanitizer/80414
230         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
231         to ubsan_encode_value.
232
233 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
234
235         PR sanitizer/79897
236         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
237         temporary.
238
239 2017-02-03  Carl Love  <cel@us.ibm.com>
240
241         Backport of two commits from mainline, r244943 and r244904,
242         dated 017-01-26 and 2017-01-25 respectively
243
244         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
245         of entries for ALTIVEC_BUILTIN_VEC_PACKS.  Remove bogus entries
246         for P8V_BUILTIN_VEC_VGBBD.
247
248 2017-02-03  Walter Lee  <walt@tilera.com>
249
250         Backport from mainline
251         2017-02-03  Walter Lee  <walt@tilera.com>
252
253         PR target/78862
254         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
255         after initial stackframe link reg save.
256         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
257
258 2017-02-03  Maxim Ostapenko  <m.ostapenko@samsung.com>
259
260         PR lto/79061
261         * asan.c (asan_add_global): Force has_dynamic_init to zero in LTO mode.
262
263 2017-01-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
264
265         Backport from mainline
266         2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
267
268         PR target/79268
269         * config/rs6000/altivec.h (vec_xl): Revise #define.
270         (vec_xst): Likewise.
271
272 2017-01-26  Eric Botcazou  <ebotcazou@adacore.com>
273
274         Backport from mainline
275         2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
276
277         * expr.c (store_field): In the bitfield case, fetch the return value
278         from the registers before applying a single big-endian adjustment.
279         Always do a final load for a BLKmode value not larger than a word.
280
281         2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
282
283         * expr.c (store_field): In the bitfield case, if the value comes from
284         a function call and is of an aggregate type returned in registers, do
285         not modify the field mode; extract the value in all cases if the mode
286         is BLKmode and the size is not larger than a word.
287
288 2017-01-26  Richard Biener  <rguenther@suse.de>
289
290         * tree-vrp.c (vrp_visit_assignment_or_call): Use set_defs_to_varying.
291
292         Backport from mainline
293         2016-01-10  Richard Biener  <rguenther@suse.de>
294
295         PR tree-optimization/79034
296         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
297         Propagate out degenerate PHIs in the joiner.
298
299         2016-12-13  Richard Biener  <rguenther@suse.de>
300
301         PR middle-end/78742
302         * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
303         * tree-object-size.c (compute_builtin_object_size): Use
304         tree_fits_shwi_p.
305         * tree-data-ref.c (initialize_matrix_A): Remove excess assert.
306
307 2017-01-26  Richard Biener  <rguenther@suse.de>
308
309         Backport from mainline
310         2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
311
312         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
313
314 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
315
316         PR target/77439
317         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
318         for long calls with APCS frame and VFP.
319
320 2017-01-24  Uros Bizjak  <ubizjak@gmail.com>
321
322         PR target/78478
323         Revert:
324         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
325
326         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
327
328 2017-01-23  Martin Liska  <mliska@suse.cz>
329
330         Backport from mainline
331         2017-01-20  Martin Liska  <mliska@suse.cz>
332
333         PR lto/69188
334         * tree-profile.c (init_ic_make_global_vars): Do not call
335         finalize_decl.
336         (gimple_init_gcov_profiler): Likewise.
337
338 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
339
340         Backport from mainline
341         2016-12-29  Gerald Pfeifer  <gerald@pfeifer.com>
342
343         * doc/extend.texi (Cilk Plus Builtins): cilkplus.org now uses
344         https by default.
345         * doc/passes.texi (Cilk Plus Transformation): Ditto.
346         * doc/generic.texi (Statements for C++): Ditto, and use @uref.
347
348 2017-01-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
349
350         Backport from mainline
351         2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
352
353         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
354         UNSPEC_VSX__XXSPLTD to require special splat handling.
355
356 2017-01-20  Wilco Dijkstra  <wdijkstr@arm.com>
357
358         Backport from mainline
359         PR target/77455
360         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
361         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
362         (EH_RETURN_HANDLER_RTX): New define.
363         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
364         Force frame pointer in EH return functions.
365         (aarch64_expand_epilogue): Add barrier for eh_return.
366         (aarch64_final_eh_return_addr): Remove.
367         (aarch64_eh_return_handler_rtx): New function.
368         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
369         Remove.
370         (aarch64_eh_return_handler_rtx): New prototype.
371
372 2017-01-20  Richard Earnshaw  <rearnsha@arm.com>
373
374         Backported from mainline
375         2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
376
377         PR rtl-optimization/79121
378         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
379         of the inner type when shifting an extended value.
380
381 2017-01-20  Martin Liska  <mliska@suse.cz>
382
383         Backport from mainline
384         2017-01-13  Martin Liska  <mliska@suse.cz>
385
386         PR ipa/79043
387         * function.c (set_cfun): Add new argument force.
388         * function.h (set_cfun): Likewise.
389         * ipa-inline-transform.c (inline_call): Use the function when
390         strict alising from is dropped for function we inline to.
391
392 2017-01-20  Martin Liska  <mliska@suse.cz>
393
394         Backport from mainline
395         2017-01-17  Martin Liska  <mliska@suse.cz>
396
397         PR ipa/71207
398         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
399         assumption and add comment.
400
401 2017-01-19  Richard Biener  <rguenther@suse.de>
402
403         PR tree-optimization/72488
404         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
405         sure to restore SSA info.
406
407 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
408
409         PR debug/78839
410         * dwarf2out.c (field_byte_offset): Restore the
411         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
412         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
413         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
414         of build2 + fold.
415
416 2017-01-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
417
418         Backport from mainline
419         2016-12-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
420
421         PR rtl-optimization/78617
422         * lra-remat.c (do_remat): Initialize live_hard_regs from live in
423         registers, also setting hard registers mapped to pseudo registers.
424
425 2017-01-13  Christophe Lyon  <christophe.lyon@linaro.org>
426
427         Backport from mainline r244320.
428         2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
429
430         PR target/78253
431         * config/arm/arm.c (legitimize_pic_address): Handle reference to
432         weak symbol.
433         (arm_assemble_integer): Likewise.
434
435 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
436
437         Backport from mainline
438         2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
439
440         PR target/79044
441         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
442         element-reversing loads and stores as not swappable.
443
444 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
445
446         * config/i386/i386.c (memory_address_length): Increase len
447         only when rip_relative_addr_p returns false.
448
449 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
450
451         Backport from mainline
452         2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
453
454         PR lto/79042
455         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
456         bit.
457         (input_varpool_node): Unpack dynamically_initialized bit.
458         * lto-streamer.h (LTO_minor_version): Bump version.
459
460 2017-01-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
461
462         Backport from mainline
463         2016-12-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
464
465         PR target/78900
466         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
467         assertions.  Add support for doing the signbit if the IEEE 128-bit
468         floating point value is in a GPR.
469         * config/rs6000/rs6000.md (Fsignbit): Delete.
470         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
471         Update the length attribute if the value is in a GPR.
472         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
473         the sign or zero extension instruction, since the value is always
474         0/1.
475         (signbit<mode>2_dm2): Delete using <Fsignbit>.
476
477 2017-01-10  Martin Liska  <mliska@suse.cz>
478
479         Backport from mainline
480         2017-01-09  Martin Liska  <mliska@suse.cz>
481
482         PR pch/78970
483         * gcc.c (driver_handle_option): Handle OPT_E and set
484         have_E.
485         (lookup_compiler): Do not show error message with have_E.
486
487 2017-01-10  Martin Liska  <mliska@suse.cz>
488
489         Backport from mainline
490         2017-01-05  Martin Liska  <mliska@suse.cz>
491
492         PR pch/78970
493         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
494         header.
495
496 2017-01-10  Thomas Schwinge  <thomas@codesourcery.com>
497
498         PR tree-optimization/78024
499         * omp-low.c (oacc_loop_discovery): Call clear_bb_flags.
500
501         Backport trunk r239086:
502         2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
503
504         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
505         size to DImode boundary.
506         (nvptx_propagate): Likewise.
507
508 2017-01-10  Chung-Ju Wu  <jasonwucj@gmail.com>
509
510         Backport from mainline
511         2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
512
513         PR target/70668
514         * config/nds32/nds32.md (casesi): Don't access the operands array
515         out of bounds.
516
517 2017-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
518
519         Backport from mainline
520         2016-10-10  Andreas Tobler  <andreast@gcc.gnu.org>
521
522         * config.gcc: Add aarch64-*-freebsd* support.
523         * config.host: Likewise.
524         * config/aarch64/aarch64-freebsd.h: New file.
525         * config/aarch64/t-aarch64-freebsd: Ditto.
526
527 2017-01-09  Bill Seurer  <seurer@linux.vnet.ibm.com>
528
529         Backport from mainline
530         2016-12-21  Bill Seurer  <seurer@linux.vnet.ibm.com>
531
532         PR sanitizer/65479
533         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
534         -fasynchronous-unwind-tables option when -fsanitize=address is
535         specified.
536
537 2017-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
538
539         Backport from mainline
540         2016-09-19  Richard Biener  <rguenther@suse.de>
541
542         * dwarf2out.c (dwarf2out_late_global_decl): When being during the
543         early debug phase do not add locations but only const value
544         attributes.
545
546         Backport from mainline
547         2016-10-20  Richard Biener  <rguenther@suse.de>
548
549         * cgraphunit.c (analyze_functions): Set node->definition to
550         false to signal symbol removal to debug_hooks->late_global_decl.
551
552 2017-01-09  Andre Vieira <andre.simoesdiasvieira@arm.com>
553
554         Backport from mainline
555         2016-12-09  Andre Vieira <andre.simoesdiasvieira@arm.com>
556
557         PR rtl-optimization/78255
558         * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
559         NO_FUNCTION_CSE is true.
560
561 2017-01-06  Wilco Dijkstra  <wdijkstr@arm.com>
562
563         Backport from mainline
564         2016-10-25  Wilco Dijkstra  <wdijkstr@arm.com>
565
566         PR target/78041
567         * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
568         Remove partial overlap check for shift by 1.
569         (ashldi3_neon): Likewise.
570
571 2017-01-05  Kelvin Nilsen  <kelvin@gcc.gnu.org>
572
573         Backport from mainline
574         2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
575
576         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
577         comments to explain why certain error messages make mention of
578         undocumented options.
579         (rs6000_invalid_builtin): Change error messages to replace mention
580         of undocumented options with mention of the -mcpu=power9 option
581         that enables those undocumented options.
582         * config/rs6000/rs6000.h: Add macro definition of MASK_FLOAT128
583         and change the macro definition of RS6000_BTM_FLOAT128 to correct
584         an error that was discovered during the development of this patch.
585         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
586         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
587         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
588         descriptions of built-in functions so that they depend on
589         -mcpu=power9 instead of on the corresponding undocumented flags.
590         * doc/invoke.texi (Option Summary):  Remove all mention of newly
591         undocumented flags.
592         (IBM RS/6000 and PowerPC Options): Likewise.
593         * doc/md.texi (Constraints for Particuliar Machines): Remove all
594         mention of newly undocumented flags.
595
596 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
597
598         Backport from mainline
599         2016-12-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
600
601         * varasm.c (build_constant_desc): Use the alignment of the var
602         decl instead of the original expression.
603
604 2017-01-04  Richard Biener  <rguenther@suse.de>
605
606         Backport from mainline
607         2016-05-11  Richard Biener  <rguenther@suse.de>
608
609         PR tree-optimization/71055
610         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
611         sth with precision not equal to access size verify we don't chop
612         off bits.
613
614 2017-01-03  Martin Liska  <mliska@suse.cz>
615
616         Backport from mainline
617         2016-12-21  Jakub Jelinek  <jakub@redhat.com>
618                     Martin Liska  <mliska@suse.cz>
619
620         PR driver/78863
621         * gcc.c (driver::build_option_suggestions): Do not add
622         -fsanitize=all as a suggestion candidate.
623
624 2017-01-03  Martin Liska  <mliska@suse.cz>
625
626         Backport from mainline
627         2016-12-22  Martin Liska  <mliska@suse.cz>
628
629         PR tree-optimization/78886
630         * tree-ssa-strlen.c (handle_builtin_malloc): Return when LHS
631         is equal to NULL.
632
633 2017-01-03  Martin Liska  <mliska@suse.cz>
634
635         Backport from mainline
636         2016-12-13  Martin Liska  <mliska@suse.cz>
637
638         PR tree-optimization/78428
639         * expr.c (store_constructor_field): Add new arguments to the
640         function.
641         (store_constructor): Set up bitregion_end and add
642         gcc_unreachable to fields that have either non-constant size
643         or (and) offset.
644
645 2016-12-27  Jakub Jelinek  <jakub@redhat.com>
646
647         PR translation/78922
648         * config/i386/stringop.opt: Remove.
649
650 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
651
652         Backported from mainline
653         2016-12-13  Jakub Jelinek  <jakub@redhat.com>
654
655         PR ipa/77905
656         * ipa-pure-const.c (cdtor_p): Return true for
657         DECL_STATIC_{CON,DE}STRUCTOR even when it is
658         DECL_LOOPING_CONST_OR_PURE_P.
659
660 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
661
662         * BASE-VER: Set to 6.3.1.
663
664 2016-12-21  Release Manager
665
666         * GCC 6.3.0 released.
667
668 2016-12-14  Uros Bizjak  <ubizjak@gmail.com>
669
670         PR target/59874
671         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_CLZS
672         and IX86_BUILTIN_CTZS.
673         (bdesc_args): Add __builtin_clzs and __builtin_ctzs.
674         (ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
675
676 2016-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
677             Jakub Jelinek  <jakub@redhat.com>
678
679         PR target/78796
680         * config/aarch64/aarch64.c (aarch64_classify_symbol): Merge large
681         model checks into switch.
682
683 2016-12-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
684
685         Backport from mainline
686         2016-11-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
687
688         * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
689
690 2016-12-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
691
692         Backport from mainline
693         2016-11-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
694
695         PR tree-optimization/77673
696         * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
697         (init_symbolic_number): Initialize src field from src parameter.
698         (perform_symbolic_merge): Select most dominated statement as the
699         source statement.  Set src field of resulting n structure from the
700         input src with the lowest address.
701         (find_bswap_or_nop): Rename source_stmt into ins_stmt.
702         (bswap_replace): Rename src_stmt into ins_stmt.  Initially get source
703         of load from src field rather than insertion statement.  Cancel
704         optimization if statement analyzed is not dominated by the insertion
705         statement.
706         (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt.  Compute
707         dominance information.
708
709 2016-12-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
710
711         Backport from mainline
712         2016-12-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
713
714         PR target/72717
715         * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
716         V2DImode elements are SUBREG's convert the result into DImode
717         rather than failing in emit_move_insn.
718
719 2016-12-13  Iain Sandoe  <iain@codesourcery.com>
720
721         Backport from mainline
722         2016-12-11  Iain Sandoe  <iain@codesourcery.com>
723
724         PR rtl-optimization/71496
725         * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
726         copyable.  (load_macho_picbase_di, reload_macho_picbase_si,
727         reload_macho_picbase_di): Likewise.
728
729 2016-12-12  Bernd Schmidt  <bschmidt@redhat.com>
730
731         Backport from mainline
732         2016-11-07  Bernd Schmidt  <bschmidt@redhat.com>
733
734         PR rtl-optimization/77309
735         * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
736         don't assume an equality comparison for plain COMPARE.
737         (simplify_comparison): Pass a more accurate code to
738         make_compound_operation.
739
740 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
741
742         Backport from mainline
743         2016-11-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
744
745         PR target/77904
746         * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
747         in save register mask if it is needed.
748
749 2016-12-11  Iain Sandoe  <iain@codesourcery.com>
750
751         Backport from mainline
752         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
753                     Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
754
755         PR target/67710
756         * config.in: Regenerate
757         * config/darwin-driver.c (darwin_driver_init): Emit a version string
758         for the assembler.
759         * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
760         * config/darwin.opt(asm_macosx_version_min): New.
761         * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
762         * configure: Regenerate
763         * configure.ac: Check for mmacosx-version-min handling.
764
765 2016-12-11  Iain Sandoe  <iain@codesourcery.com>
766
767         Backport from mainline
768         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
769
770         PR target/57438
771         * config/i386/i386.c (ix86_code_end): Note that we emitted code
772         where the function might otherwise appear empty for picbase thunks.
773         (ix86_output_function_epilogue): If we find a zero-sized function
774         assume that reaching it is UB and trap.  If we find a trailing label
775         append a nop.
776         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
777         find a zero-sized function assume that reaching it is UB and trap.
778         If we find a trailing label, append a nop.
779
780 2016-12-11 Iain Sandoe  <iain@codesourcery.com>
781
782         Backport from mainline
783         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
784
785         PR target/71767
786         * config/darwin-sections.def (picbase_thunk_section): New.
787         * config/darwin.c (darwin_init_sections): Set up picbase thunk
788         section. (darwin_rodata_section, darwin_objc2_section,
789         machopic_select_section, darwin_asm_declare_constant_name,
790         darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
791         coalesced with newer linkers.
792         (darwin_override_options): Decide on usage of coalesed sections
793         on the basis of the target linker version.
794         * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
795         * config/darwin.opt  (mtarget-linker): New.
796         * config/i386/i386.c (ix86_code_end): Do not force the thunks into
797         a coalesced section, instead use a thunks section.
798
799         Backport from mainline
800         2016-11-28  Iain Sandoe  <iain@codesourcery.com>
801
802         PR target/71767
803         * configure.ac (with_ld64): Use portable method to extract the
804         major part of the version number.
805         * configure: Regenerated.
806
807         Backport from mainline
808         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
809
810         PR target/71767
811         * configure.ac (with-ld64): New var, set for Darwin, set on
812         detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
813         * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New,
814         define.
815         * config/darwin10.h(DEF_LD64): Update for this target version.
816         * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic
817         test.  (DEF_LD64): Update for this target version.
818         * configure: Regenerated.
819         * config.in: Regenerated.
820
821         Backport from mainline
822         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
823
824         PR target/71767
825         * config/darwin.c (imachopic_indirection_name): Make data
826         section indirections linker-visible.
827         * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
828         constant labels linker-visible.
829
830 2016-12-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
831
832         Backport from mainline
833         2016-11-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
834
835         PR target/77933
836         * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
837         being live in the function and lr needing to be saved.  Distinguish
838         between already saved pushable registers and registers to push.
839         Check for LR being an available pushable register.
840
841 2016-12-09  Nathan Sidwell  <nathan@acm.org>
842
843         PR C++/78550
844         * convert.c (convert_to_integer_1): Maybe fold conversions to
845         integral types with fewer bits than its mode.
846
847 2016-12-09  Richard Biener  <rguenther@suse.de>
848
849         Backport from mainline
850         2016-11-09  Richard Biener  <rguenther@suse.de>
851
852         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
853         Look at the DR_BASE_ADDRESS object for forcing alignment.
854
855         2016-11-07  Richard Biener  <rguenther@suse.de>
856
857         PR tree-optimization/78189
858         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
859         alignment computation.
860
861 2016-12-09  Richard Biener  <rguenther@suse.de>
862
863         Backport from mainline
864         2016-11-28  Richard Biener  <rguenther@suse.de>
865
866         PR tree-optimization/78542
867         * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
868         if allowed.
869
870         2016-11-23  Richard Biener  <rguenther@suse.de>
871
872         PR tree-optimization/78482
873         * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
874         (remove_forwarder_block_with_phi): When merging with a loop
875         header creates a new latch reset number of iteration information
876         of the loop.
877
878         2016-11-23  Richard Biener  <rguenther@suse.de>
879
880         PR middle-end/71762
881         * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
882         (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
883
884         2016-11-11  Richard Biener  <rguenther@suse.de>
885
886         PR tree-optimization/71575
887         * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
888         bogus assert.
889
890         2016-11-07  Richard Biener  <rguenther@suse.de>
891
892         PR tree-optimization/78224
893         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
894         Split the fallthru edge in case its successor may have PHIs.
895
896         2016-11-05  David Edelsohn  <dje.gcc@gmail.com>
897                 Richard Biener  <rguenther@suse.de>
898
899         PR bootstrap/78188
900         PR c++/71848
901         * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
902
903         2016-09-20  Richard Biener  <rguenther@suse.de>
904
905         PR tree-optimization/77646
906         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
907         a VDEF.
908
909 2016-12-07  Segher Boessenkool  <segher@kernel.crashing.org>
910
911         Backport from mainline
912         2016-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
913
914         PR target/77957
915         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
916         return early if !optional_tbtab.
917
918 2016-12-07  Jakub Jelinek  <jakub@redhat.com>
919
920         Backported from mainline
921         2016-11-28  Jakub Jelinek  <jakub@redhat.com>
922
923         PR middle-end/78540
924         * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
925         * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
926         note has been removed.
927         * postreload.c (reload_combine_recognize_pattern): If
928         remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
929
930         PR rtl-optimization/78546
931         * simplify-rtx.c (neg_const_int): When negating most negative
932         number in mode wider than HOST_BITS_PER_WIDE_INT, use
933         simplify_const_unary_operation to produce CONST_DOUBLE or
934         CONST_WIDE_INT.
935         (simplify_plus_minus): Hanlde the case where neg_const_int
936         doesn't return a CONST_INT.
937
938         PR fortran/78298
939         * tree-nested.c (convert_local_reference_stmt): After adding
940         shared (FRAME.NN) clause to omp parallel, task or target,
941         add it also to all outer omp parallel, task or target constructs.
942
943         2016-11-23  Jakub Jelinek  <jakub@redhat.com>
944
945         PR middle-end/69183
946         * omp-low.c (build_outer_var_ref): Change lastprivate argument
947         to code, pass it recursively, adjust uses.  For OMP_CLAUSE_PRIVATE
948         on worksharing constructs, treat it like clauses on simd construct.
949         Formatting fix.
950         (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
951         OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
952         (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
953         of true as last argument to build_outer_var_ref.
954
955         2016-11-22  Jakub Jelinek  <jakub@redhat.com>
956
957         PR middle-end/78416
958         * expmed.c (expand_divmod): Use wide_int for computation of
959         op1_is_pow2.  Don't set it if op1 is 0.  Formatting fixes.
960         Use size <= HOST_BITS_PER_WIDE_INT instead of
961         HOST_BITS_PER_WIDE_INT >= size.
962
963         2016-11-21  Jakub Jelinek  <jakub@redhat.com>
964
965         PR middle-end/67335
966         * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
967         for tmp simd array if DECL_NAME (parm) is NULL.
968
969         2016-11-18  Jakub Jelinek  <jakub@redhat.com>
970
971         PR middle-end/78419
972         * multiple_target.c (get_attr_len): Start with argnum and increment
973         argnum on every arg.  Use strchr in a loop instead of counting commas
974         manually.
975         (get_attr_str): Increment argnum for every comma in the string.
976         (separate_attrs): Use for instead of while loop, simplify.
977         (expand_target_clones): Rename defenition argument to definition.
978         Free attrs and attr_str even when diagnosing errors.  Temporarily
979         change input_location around targetm.target_option.valid_attribute_p
980         calls.  Don't emit warning or errors if that function fails.
981
982         2016-11-16  Jakub Jelinek  <jakub@redhat.com>
983
984         PR rtl-optimization/78378
985         * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
986         inner only if pos is 0.  Fix up formatting.
987
988         PR fortran/78299
989         * omp-low.c (expand_omp_for_static_nochunk): Don't assert
990         that loop->header == body_bb if broken_loop.
991
992         2016-11-07  Jakub Jelinek  <jakub@redhat.com>
993
994         PR target/77834
995         * dse.c (dse_step5): Call scan_reads even if just
996         insn_info->frame_read.  Improve and fix dump file messages.
997
998         PR target/78227
999         * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
1000         cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
1001
1002         2016-11-04  Jakub Jelinek  <jakub@redhat.com>
1003
1004         PR target/77834
1005         * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
1006         doesn't have rtl set.
1007
1008         2016-10-29  Jakub Jelinek  <jakub@redhat.com>
1009
1010         PR rtl-optimization/77919
1011         * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
1012         into memory if both modes are complex and their inner modes have the
1013         same precision.  If the two modes are different complex modes, convert
1014         each part separately and generate a new CONCAT.
1015
1016         2016-10-28  Jakub Jelinek  <jakub@redhat.com>
1017
1018         PR rtl-optimization/77919
1019         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
1020         MEM if mode1 is not a complex mode.
1021
1022         2016-10-27  Jakub Jelinek  <jakub@redhat.com>
1023
1024         PR middle-end/78025
1025         * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
1026         functions.
1027
1028         2016-10-26  Jakub Jelinek  <jakub@redhat.com>
1029                     Martin Liska  <mliska@suse.cz>
1030
1031         PR fortran/77973
1032         * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
1033         clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
1034         on outer context if any.
1035
1036         2016-10-05  Jakub Jelinek  <jakub@redhat.com>
1037
1038         PR sanitizer/66343
1039         * ubsan.c (ubsan_ids): New GTY(()) array.
1040         (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
1041         instead of static local counters.
1042
1043         2016-09-22  Jakub Jelinek  <jakub@redhat.com>
1044
1045         PR fortran/77665
1046         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
1047         for all IFN_GOMP_SIMD_* internal fns, not just for
1048         IFN_GOMP_SIMD_ORDERED_*.
1049
1050         2016-09-20  Jakub Jelinek  <jakub@redhat.com>
1051
1052         PR middle-end/77624
1053         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
1054         cast to void * if the cast is from some other pointer type.
1055
1056         2016-09-19  Jakub Jelinek  <jakub@redhat.com>
1057                     Jan Hubicka  <jh@suse.cz>
1058
1059         PR target/77587
1060         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
1061         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
1062         Call ultimate_alias_target just once, not up to 4 times.
1063
1064 2016-12-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1065
1066         Backport from mainline
1067         2016-11-16  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1068
1069         * config/arm/arm.md (arm_addsi3): Add alternative for addition of
1070         general register with general register or ARM constant into SP
1071         register.
1072
1073 2016-12-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1074
1075         Backport from mainline
1076         2016-12-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1077                     Stefan Freudenberger  <stefan@reservoir.com>
1078
1079         PR tree-optimization/78646
1080         * gimple-ssa-strength-reduction.c (replace_ref): The pointer
1081         addition used for the memory base expression should have the type
1082         of the candidate.
1083
1084 2016-12-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1085
1086         Backport from mainline
1087         2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1088                     Michael Meissner  <meissner@linux.vnet.ibm.com>
1089
1090         PR target/72827
1091         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
1092         reg+reg addressing for TImode.
1093         (rs6000_legitimate_address_p): Only allow register indirect
1094         addressing for TImode, even without TARGET_QUAD_MEMORY.
1095
1096 2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1097
1098         Backport from mainline
1099         2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1100
1101         * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
1102         (CCVHUANY): Remove modes.
1103         (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
1104         documentation.
1105         * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
1106         (s390_expand_vec_compare_scalar): Pick one of the cc consumer
1107         modes.
1108         (s390_branch_condition_mask): Adjust to use the new cc consumer
1109         modes.  The new modes allow for proper reversal in the middle-end.
1110         (s390_expand_vec_compare_cc): Determine the proper cc producer and
1111         consumer modes for a comparison.
1112         * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
1113         throughout the file.
1114         * config/s390/vx-builtins.md: Likewise.
1115
1116 2016-12-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1117
1118         Backport from mainline
1119         2016-12-01  Alan Modra  <amodra@gmail.com>
1120
1121         * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
1122         look inside UNSPEC_VSX_XXSPLTW vec.
1123
1124 2016-12-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
1125
1126         Back port from trunk
1127         2016-11-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
1128
1129         PR target/78101
1130         * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
1131         the appropriate checks for SFmode/DFmode load/stores in GPR
1132         registers.
1133         (fusion_addis_mem_combo_store): Likewise.
1134         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
1135         fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
1136         d-form instructions for traditional Altivec registers.
1137         (emit_fusion_p9_load): Likewise.
1138         (emit_fusion_p9_store): Likewise.
1139         * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
1140         early clobber from scratch register.  Do not match if the register
1141         being stored is the scratch register.
1142         (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
1143         to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
1144         instructions for traditional Altivec registers.
1145         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
1146         (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1147         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1148
1149 2016-12-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1150
1151         Backport from mainline
1152         2016-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1153
1154         PR target/48863
1155         PR inline-asm/70184
1156         * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
1157         (new_temp_expr_table): Initialise reg_vars_cnt.
1158         (free_temp_expr_table): Release reg_vars_cnt.
1159         (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
1160         field of TAB.
1161         (find_replaceable_in_bb): Use the above to record register variable
1162         write occurrences and cancel replacement across them.
1163
1164 2016-11-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1165
1166         Backported from mainline
1167         2016-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>
1168
1169         PR target/78426
1170         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
1171         instead of force_reg.
1172         (sh_expand_setmem): Likewise.
1173
1174 2016-11-24  Eric Botcazou  <ebotcazou@adacore.com>
1175
1176         PR middle-end/78429
1177         * tree.h (wi::fits_to_boolean_p): New predicate.
1178         (wi::fits_to_tree_p): Use it for boolean types.
1179         * tree.c (int_fits_type_p): Likewise.
1180
1181 2016-11-24  Martin Liska  <mliska@suse.cz>
1182
1183         Backported from mainline
1184         2016-11-22  Martin Liska  <mliska@suse.cz>
1185
1186         PR ipa/78309
1187         * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
1188         (sem_function::get_hash): Use the new field.
1189         (sem_function::parse): Remove an argument from ctor.
1190         (sem_variable::parse): Likewise.
1191         (sem_variable::get_hash): Use the new field.
1192         (sem_item_optimizer::read_section): Use new ctor and set hash.
1193         * ipa-icf.h: _hash is removed from sem_item::sem_item,
1194         sem_variable::sem_variable, sem_function::sem_function.
1195
1196 2016-11-23  Uros Bizjak  <ubizjak@gmail.com>
1197
1198         * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
1199         (kxnor<mode>): Return "#" for alternative 0.
1200
1201 2016-11-23  Richard Biener  <rguenther@suse.de>
1202
1203         Backport from mainline
1204         2016-11-23  Richard Biener  <rguenther@suse.de>
1205
1206         PR lto/78472
1207         * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
1208         fields.
1209
1210         2016-11-17  Richard Biener  <rguenther@suse.de>
1211
1212         PR middle-end/78305
1213         * fold-const.c (negate_expr_p): Fix multiplication case.
1214
1215         2016-11-16  Richard Biener  <rguenther@suse.de>
1216
1217         PR middle-end/78333
1218         * gimplify.c (gimplify_function_tree): Do not instrument
1219         GNU extern inline functions.
1220
1221         2016-11-07  Richard Biener  <rguenther@suse.de>
1222
1223         PR tree-optimization/78228
1224         * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
1225         undefined behavior.
1226
1227         2016-11-04  Richard Biener  <rguenther@suse.de>
1228
1229         PR middle-end/78185
1230         * loop-invariant.c (find_exits): Record entering inner
1231         loops as possibly exiting to handle infinite sub-loops.
1232         * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
1233         (fill_always_executed_in_1): Honor infinite child loops.
1234
1235         2016-10-06  Richard Biener  <rguenther@suse.de>
1236
1237         PR tree-optimization/77855
1238         * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
1239         instead of removing the current item while iterating over the set
1240         which is not safe.
1241
1242 2016-11-22  Walter Lee  <walt@tilera.com>
1243
1244         Backport from mainline
1245         2016-11-22  Walter Lee  <walt@tilera.com>
1246
1247         * config/tilegx/tilegx.md (trap): New pattern.
1248         * config/tilepro/tilepro.md (trap): Likewise.
1249
1250 2016-11-22  Walter Lee  <walt@tilera.com>
1251
1252         Backport from mainline
1253         2016-11-22  Walter Lee  <walt@tilera.com>
1254
1255         * config/tilegx/tilegx.md (*zero_extract): Use
1256         define_insn_and_split instead of define_insn; Handle pos + size >
1257         64.
1258         (*sign_extract): Likewise.
1259
1260 2016-11-22  Uros Bizjak  <ubizjak@gmail.com>
1261
1262         * Makefile.in ($(lang_checks_parallelized)): Fix detection
1263         of -j argument.
1264
1265 2016-11-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1266
1267         Backport from mainline
1268         2016-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1269
1270         PR target/77822
1271         * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
1272         aarch64_simd_shift_imm_<mode> predicate for operand 1.
1273         (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
1274         to restrict them to an appropriate range and add FAIL check if the
1275         region they specify is out of range.  Delete useless constraint
1276         strings.
1277         (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
1278         2 and 3 to restrict their range and add pattern predicate.
1279
1280 2016-11-18  Walter Lee  <walt@tilera.com>
1281
1282         Backport from mainline
1283         2016-11-18  Walter Lee  <walt@tilera.com>
1284
1285         * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
1286           end-of-bundle marker for consecutive barriers.
1287
1288 2016-11-18  Walter Lee  <walt@tilera.com>
1289
1290         Backport from mainline
1291         2016-11-18  Walter Lee  <walt@tilera.com>
1292
1293         * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
1294
1295 2016-11-15  Matthias Klose  <doko@ubuntu.com>
1296
1297         * doc/install.texi: Move the 'Overriding configure test results'
1298         subsub section to the 'Cross-Compiler-Specific Options' sub section.
1299
1300 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
1301
1302         * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
1303         original function needs a static chain.
1304
1305 2016-11-11  Uros Bizjak  <ubizjak@gmail.com>
1306
1307         PR target/78310
1308         * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
1309         when calculating operand 2.
1310         (rotate to rotatex zext splitter): Ditto.
1311
1312 2016-11-11  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1313
1314         PR target/77822
1315         * config/s390/s390.md ("extzv", "*extzv<mode>_zEC12")
1316         ("*extzv<mode>_z10"): Check validity of zero_extend arguments.
1317
1318 2016-11-09  Uros Bizjak  <ubizjak@gmail.com>
1319
1320         PR target/78262
1321         * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
1322         operand 0 as earlyclobber.
1323         (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
1324
1325 2016-11-07  Peter Bergner  <bergner@vnet.ibm.com>
1326
1327         Backport from trunk
1328         2016-11-07  Peter Bergner  <bergner@vnet.ibm.com>
1329
1330         * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
1331         INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
1332
1333 2016-11-06  Jack Howarth  <howarth.at.gcc@gmail.com>
1334
1335         PR driver/78206
1336         * incpath.c: (remove_dup(): Also silently ignore EPERM.
1337
1338 2016-11-07  Richard Biener  <rguenther@suse.de>
1339
1340         PR target/78229
1341         * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
1342         EH info.
1343
1344 2016-11-03  Martin Liska  <mliska@suse.cz>
1345
1346         Backport from mainline
1347         2016-08-12  Martin Liska  <mliska@suse.cz>
1348         Adam Fineman  <afineman@afineman.com>
1349
1350         * gcov.c (process_file): Create .gcov file when .gcda
1351         file is missing.
1352
1353 2016-11-03  Richard Biener  <rguenther@suse.de>
1354
1355         Backport from mainline
1356         2016-09-29  Richard Biener  <rguenther@suse.de>
1357
1358         PR tree-optimization/77768
1359         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
1360         with stores to a place we know has a constant value.
1361         * tree-vrp.c (set_defs_to_varying): New helper avoiding
1362         writing to vr_const_varying.
1363         (vrp_initialize): Call it.
1364         (vrp_visit_stmt): Likewise.
1365         (evrp_dom_walker::before_dom_children): Likewise.
1366         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1367         Handle stores to readonly memory when removing redundant stores.
1368
1369 2016-11-03  Eric Botcazou  <ebotcazou@adacore.com>
1370
1371         Backport from mainline
1372         2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1373
1374         * explow.c (validize_mem): Do not modify the argument in-place.
1375
1376 2016-11-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
1377
1378         Backport from trunk
1379         2016-10-26  Will Schmidt <will_schmidt@vnet.ibm.com>
1380
1381         PR middle-end/72747
1382         * gimplify.c (gimplify_init_constructor): Move emit of constructor
1383         assignment to earlier in the if/else logic.
1384
1385 2016-11-02  Richard Biener  <rguenther@suse.de>
1386
1387         Backport from mainline
1388         2016-11-02  Richard Biener  <rguenther@suse.de>
1389
1390         PR tree-optimization/78047
1391         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
1392         fake field at offset zero conservatively regarding to may_have_pointers.
1393
1394         2016-10-07  Richard Biener  <rguenther@suse.de>
1395
1396         PR tree-optimization/77879
1397         * tree-ssa-structalias.c (handle_const_call): Properly handle
1398         NRV return slots.
1399         (handle_pure_call): Likewise.
1400
1401         2016-10-06  Richard Biener  <rguenther@suse.de>
1402
1403         PR tree-optimization/77839
1404         * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
1405         lattice transition.
1406
1407         2016-09-27  Richard Biener  <rguenther@suse.de>
1408
1409         PR tree-optimization/77745
1410         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1411         When removing redundant stores make sure to check compatibility
1412         of the TBAA state for downstream accesses.
1413         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
1414         value-numbering virtual operands for store matches.
1415
1416         2016-09-21  Richard Biener  <rguenther@suse.de>
1417
1418         PR tree-optimization/77648
1419         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
1420         with complex RHS.
1421         (make_transitive_closure_constraints): Adjust comment.
1422         (make_any_offset_constraints): New function.
1423         (handle_rhs_call): Make sure to first expand a pointer to all
1424         subfields before transitively closing it.
1425         (handle_const_call): Likewise.  Properly expand returned
1426         pointers as well.
1427         (handle_pure_call): Likewise.
1428
1429 2016-11-01  John David Anglin  <danglin@gcc.gnu.org>
1430
1431         PR target/78166
1432         * config/pa/pa.md: Add new shift/add patterns to handle
1433         (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
1434
1435 2016-11-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1436
1437         Backport from mainline
1438         2016-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1439
1440         PR rtl-optimization/78038
1441         * ree.c (get_defs): Return NULL if a defining insn for REG cannot
1442         be deduced to set REG through the RTL structure.
1443         (make_defs_and_copies_lists): Return false on a failing get_defs call.
1444
1445 2016-10-29  John David Anglin  <danglin@gcc.gnu.org>
1446
1447         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
1448         (MALLOC_ABI_ALIGNMENT): Define.
1449
1450 2016-10-28  Richard Biener  <rguenther@suse.de>
1451
1452         PR middle-end/78128
1453         PR middle-end/71002
1454         * fold-const.c (make_bit_field_ref): Only adjust alias set
1455         when the original alias set was zero.
1456
1457 2016-10-26  Uros Bizjak  <ubizjak@gmail.com>
1458
1459         Backport from mainline
1460         2016-10-21  Jakub Jelinek  <jakub@redhat.com>
1461
1462         PR target/78057
1463         * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
1464         and tree-ssanames.h.
1465         (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
1466         with INTEGER_CST argument.
1467         (ix86_gimple_fold_builtin): New function.
1468         (TARGET_GIMPLE_FOLD_BUILTIN): Define.
1469
1470         Backport from mainline
1471         2016-10-20 Uros Bizjak  <ubizjak@gmail.com>
1472
1473         PR target/78037
1474         * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
1475         (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
1476         (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
1477         * config/i386/lzcntintrin.h (__lzcnt_u16): Call
1478         __builtin_ia32_lzcnt_u16.
1479         (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
1480         (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
1481         * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
1482         (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
1483         (bmi_tzcnt_<mode>): New expander.
1484         (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
1485         (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
1486         (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
1487         (lzcnt_<mode>): New expander.
1488         (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
1489         (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
1490         * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
1491         (UINT64_FTYPE_UINT64): New.
1492         * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
1493         (__builtin_ia32_lzcnt_u16): New description.
1494         (__builtin_ia32_lzcnt_u32): Ditto.
1495         (__builtin_ia32_lzcnt_u64): Ditto.
1496         (__builtin_ctzs): Remove description.
1497         (__builtin_ia32_tzcnt_u16): New description.
1498         (__builtin_ia32_tzcnt_u32): Ditto.
1499         (__builtin_ia32_tzcnt_u64): Ditto.
1500         * config/i386/i386.c (ix86_expand_args_builtin): Handle
1501         UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
1502
1503 2016-10-25  Eric Botcazou  <ebotcazou@adacore.com>
1504
1505         * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
1506         * tree.c (int_fits_type_p): Likewise.  Adjust head comment.
1507
1508 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1509
1510         Backport from mainline
1511         2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1512
1513         PR tree-optimization/77550
1514         * tree-vect-stmts.c (create_array_ref): Change parameters.
1515         (get_group_alias_ptr_type): New function.
1516         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
1517
1518 2016-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1519
1520         Backport from mainline
1521         2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1522
1523         PR tree-optimization/77916
1524         * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
1525         Don't allow a MINUS_EXPR for pointer arithmetic for either known
1526         or unknown strides.
1527         (record_increment): Increments of -1 for unknown strides just use
1528         a multiply initializer like other negative values.
1529         (analyze_increments): Remove stopgap solution for -1 increment
1530         applied to pointer arithmetic.
1531         (insert_initializers): Requirement of initializer for -1 should be
1532         based on pointer-typedness of the candidate basis.
1533
1534 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
1535
1536         * config/sparc/sparc.md (cpu_feature): Minor tweak.
1537         (enabled): Likewise.
1538         (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
1539         movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
1540         sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
1541         mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
1542         <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
1543         fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
1544
1545 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
1546
1547         * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
1548         with TARGET_ARCH64.  Define __VIS to 0x400 if TARGET_VIS4.
1549
1550 2016-10-19  Uros Bizjak  <ubizjak@gmail.com>
1551
1552         PR target/77991
1553         * config/i386/i386.c (legitimize_tls_address)
1554         <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
1555         convert dest to Pmode if different than Pmode.
1556
1557 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
1558
1559         Backport from mainline
1560         2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
1561
1562         * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
1563         copying.
1564
1565 2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1566
1567         Backport from mainline
1568         2016-10-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1569
1570         PR tree-optimization/77937
1571         * gimple-ssa-strength-reduction.c (analyze_increments): Use
1572         POINTER_TYPE_P on the candidate type to determine whether
1573         candidates in this chain require pointer arithmetic.
1574
1575         2016-10-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1576
1577         PR tree-optimization/77937
1578         * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
1579         to infinite when we have a pointer with an increment of -1.
1580
1581 2016-10-17  Martin Liska  <mliska@suse.cz>
1582
1583         Backported from mainline
1584         2016-10-13  Martin Liska  <mliska@suse.cz>
1585
1586         PR tree-optimization/77943
1587         * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
1588         a different EH landing pads.
1589
1590 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1591
1592         PR bootstrap/77995
1593         Backport from mainline
1594         2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
1595
1596         * tree.h (build_complex_type): Add second parameter with default.
1597         * tree.c (build_complex_type): Add NAMED second parameter and adjust
1598         recursive call.  Create a TYPE_DECL only if NAMED is true.
1599         (build_common_tree_nodes): Pass true in calls to build_complex_type.
1600
1601 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
1602
1603         * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
1604         constants in CONST_VECTORs.
1605
1606 2016-10-15  Eric Botcazou  <ebotcazou@adacore.com>
1607
1608         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
1609         register as destination of bmask.
1610         (vector_init_bshuffle): Likewise.
1611         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
1612         (bmaskdi_vis): Enable only in 64-bit mode.
1613
1614 2016-10-13  Andrew Senkevich  <andrew.senkevich@intel.com>
1615
1616         Backport from trunk
1617         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
1618         OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
1619         (ix86_handle_option): Deleted handle of OPT_mpcommit.
1620         * config.gcc: Deleted pcommitintrin.h
1621         * config/i386/pcommitintrin.h: Deleted file.
1622         * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
1623         * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
1624         detection.
1625         * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
1626         __PCOMMIT__.
1627         * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
1628         (PTA_PCOMMIT, IX86_BUILTIN_PCOMMIT, __builtin_ia32_pcommit): Deleted.
1629         (ix86_option_override_internal): Deleted handle of option.
1630         (ix86_valid_target_attribute_inner_p): Deleted pcommit.
1631         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
1632         * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
1633         (pcommit): Deleted instruction.
1634         * config/i386/i386.opt: Mention -mpcommit deprecation.
1635         * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
1636
1637 2016-10-13  Tom de Vries  <tom@codesourcery.com>
1638
1639         revert:
1640         2016-10-11  Tom de Vries  <tom@codesourcery.com>
1641
1642         backport from trunk:
1643         2016-10-11  Tom de Vries  <tom@codesourcery.com>
1644
1645         PR middle-end/77558
1646         * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
1647         special-casing.
1648
1649 2016-10-11  Tom de Vries  <tom@codesourcery.com>
1650
1651         backport from trunk:
1652         2016-10-11  Tom de Vries  <tom@codesourcery.com>
1653
1654         PR middle-end/77558
1655         * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
1656         special-casing.
1657
1658 2016-10-10  Georg-Johann Lay  <avr@gjlay.de>
1659
1660         * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
1661
1662 2016-10-06  Uros Bizjak  <ubizjak@gmail.com>
1663
1664         PR target/77874
1665         * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
1666         Remove wrong assert.
1667         (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
1668         Use <round_constraint> as operand 1 constraint.
1669
1670 2016-10-06  James Clarke  <jrtc27@jrtc27.com>
1671             Eric Botcazou  <ebotcazou@adacore.com>
1672
1673         PR target/77759
1674         * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
1675         (classify_registers): Don't set it
1676         (function_arg_slotno): Don't initialize and test it.  Tidy up.
1677
1678 2016-10-04  Uros Bizjak  <ubizjak@gmail.com>
1679
1680         Backport from mainline
1681         2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
1682
1683         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
1684         ext_level before calling CPUID with 0x80000008.
1685
1686         2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
1687
1688         PR target/77756
1689         * config/i386/cpuid.h (__get_cpuid_count): New.
1690         (__get_cpuid): Rename __level to __leaf.
1691
1692 2016-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
1693
1694         Back port from trunk
1695
1696         2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1697
1698         PR target/77670
1699         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
1700         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
1701         instructions when you want to invert the test.
1702         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
1703         correct order for XXSEL.
1704         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
1705         for using XSCMP{EQ,GT,GE}DP.
1706
1707 2016-09-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1708             Alan Modra  <amodra@gmail.com>
1709
1710         Backport from mainline
1711         2016-07-01  Alan Modra  <amodra@gmail.com>
1712
1713         PR rtl-optimization/71709
1714         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
1715         being set, not referenced.
1716
1717 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
1718
1719         Backport from mainline
1720         2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
1721
1722         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
1723         VAR_DECL string.
1724
1725         2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
1726
1727         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
1728         * configure: Regenerate.
1729
1730 2016-09-27  Richard Biener  <rguenther@suse.de>
1731
1732         Backport from mainline
1733         2016-09-01  Richard Biener  <rguenther@suse.de>
1734
1735         PR middle-end/77436
1736         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
1737         check whether the result fits the desired result type.
1738
1739         2016-09-19  Richard Biener  <rguenther@suse.de>
1740
1741         PR tree-optimization/77514
1742         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
1743         search for folded stmt.
1744
1745         2016-09-15  Richard Biener  <rguenther@suse.de>
1746
1747         PR tree-optimization/77514
1748         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
1749         only forced_stmts sequence.
1750
1751         2016-09-15  Richard Biener  <rguenther@suse.de>
1752
1753         PR middle-end/77544
1754         * fold-const.c (split_tree): Do not split constant ~X.
1755
1756         2016-09-19  Richard Biener  <rguenther@suse.de>
1757
1758         PR middle-end/77605
1759         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
1760         proper niter to bound the loops.
1761
1762         2016-09-22  Richard Biener  <rguenther@suse.de>
1763
1764         PR middle-end/77679
1765         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
1766         fold fails.
1767
1768 2016-09-25  Uros Bizjak  <ubizjak@gmail.com>
1769
1770         Backport from mainline
1771         2016-09-21  Richard Biener  <rguenther@suse.de>
1772                     Jakub Jelinek  <jakub@redhat.com>
1773
1774         PR tree-optimization/77621
1775         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
1776         group at non-vectorizable stmts.
1777
1778         Backport from mainline
1779         2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
1780
1781         PR target/77621
1782         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
1783         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
1784         (ix86_add_stmt_cost): Penalize DFmode vector operations
1785         for !TARGET_VECTORIZE_DOUBLE.
1786
1787 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1788
1789         Backport from 2016-09-22 trunk r240388.
1790
1791         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
1792         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
1793
1794 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1795
1796         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
1797
1798 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
1799
1800         Backport from 2016-09-21 trunk r240306.
1801
1802         PR target/77326
1803         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
1804         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
1805
1806 2016-09-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1807
1808         Backport from mainline
1809         2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1810
1811         * lra-constraints.c (match_reload): Pass information about other
1812         output operands.  Create new unique register value if matching input
1813         operand shares same register value as output operand being considered.
1814         (curr_insn_transform): Record output operands already processed.
1815
1816 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
1817
1818         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
1819         parameters for functions taking long long arguments.
1820
1821 2016-09-16  David Edelsohn  <dje.gcc@gmail.com>
1822
1823         Backported from mainline
1824         2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
1825
1826         PR target/77349
1827         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
1828
1829 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
1830             Eric Botcazou  <ebotcazou@adacore.com>
1831
1832         PR middle-end/77594
1833         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
1834         through into expand_addsub_overflow after expand_neg_overflow.
1835
1836 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
1837
1838         Backported from mainline
1839         2016-09-14  Jakub Jelinek  <jakub@redhat.com>
1840
1841         PR sanitizer/68260
1842         * tsan.c: Include target.h.
1843         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
1844         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
1845         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
1846         BUILT_IN_ATOMIC_TEST_AND_SET entries.
1847         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
1848
1849         2016-09-08  Jakub Jelinek  <jakub@redhat.com>
1850
1851         PR fortran/77516
1852         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
1853         OMP_CLAUSE_SAFELEN_EXPR.
1854
1855         2016-09-06  Jakub Jelinek  <jakub@redhat.com>
1856
1857         PR target/69255
1858         * config/i386/i386.c (ix86_expand_builtin): For builtin with
1859         unsupported or unknown ISA, use expand_call.
1860
1861 2016-09-06  Uros Bizjak  <ubizjak@gmail.com>
1862
1863         Backport from mainline
1864         2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
1865
1866         PR rtl-optimization/77452
1867         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
1868         inner-mode reference to a CONST_VECTOR constant in the constant pool.
1869
1870 2016-09-01  Jakub Jelinek  <jakub@redhat.com>
1871
1872         Backported from mainline
1873         2016-08-30  Jakub Jelinek  <jakub@redhat.com>
1874
1875         PR tree-optimization/72866
1876         * tree-vect-patterns.c (search_type_for_mask): Turn into
1877         a small wrapper, move all code to ...
1878         (search_type_for_mask_1): ... this new function.  Add caching
1879         and adjust recursive calls.
1880
1881         PR debug/77363
1882         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
1883         instead of lookup_type_die (type_main_variant (type)) even for array
1884         types.
1885
1886         PR middle-end/77377
1887         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
1888         constant pool reference return x instead of c.
1889
1890         2016-08-19  Jakub Jelinek  <jakub@redhat.com>
1891
1892         * config/i386/t-i386 (i386-c.o): Don't depend on
1893         i386-builtin-types.inc.
1894         (i386.o): Depend on i386-builtin-types.inc.
1895
1896         2016-08-17  Jakub Jelinek  <jakub@redhat.com>
1897
1898         PR middle-end/77259
1899         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
1900         turning a call into __builtin_unreachable-like noreturn call, adjust
1901         gimple_call_set_fntype.
1902         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
1903         gimple_call_fntype has void return type.
1904
1905         2016-08-16  Jakub Jelinek  <jakub@redhat.com>
1906
1907         PR target/71910
1908         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before inlining,
1909         add cgraph edge for the added __builtin_unreachable call.
1910
1911 2016-09-01  Gerald Pfeifer  <gerald@pfeifer.com>
1912
1913         * doc/extend.texi (SPU Built-in Functions): Remove stale
1914         references to material formerly at IBM and Sony.
1915
1916 2016-09-01  Matthew Wahab  <matthew.wahab@arm.com>
1917
1918         PR target/77281
1919         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
1920         Use const_vec_duplicate to check for duplicated elements.
1921
1922 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
1923
1924         * config/i386/i386.c (ix86_option_override_internal): Also disable the
1925         STV pass if -mstackrealign is enabled.
1926
1927 2016-08-31  Patrick Palka  <ppalka@gcc.gnu.org>
1928
1929         Backport from mainline
1930         2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
1931
1932         PR tree-optimization/71077
1933         PR tree-optimization/68542
1934         * fold-const.c (fold_relational_const): Fix folding of
1935         VECTOR_CST comparisons that have a scalar boolean result type.
1936
1937 2016-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
1938
1939         * doc/install.texi (Binaries): www.opencsw.org now uses https.
1940
1941 2016-08-31  Jakub Sejdak  <jakub.sejdak@phoesys.com>
1942
1943         * config.gcc: Add support for arm*-*-phoenix* targets.
1944         * config/arm/t-phoenix: New.
1945         * config/phoenix.h: New.
1946
1947 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
1948
1949         PR target/77403
1950         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
1951         template for intel asm dialect.
1952         (vec_set_hi_<mode><mask_name>): Ditto.
1953
1954 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
1955
1956         * Makefile.in (gcov-iov.h): Add dummy recipe.
1957
1958 2016-08-28  Uros Bizjak  <ubizjak@gmail.com>
1959
1960         Backport from mainline
1961         2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1962
1963         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
1964         for targets amdfam10 and barcelona.
1965
1966         Backport from mainline
1967         2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
1968
1969         PR target/77270
1970         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
1971         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
1972         non-SSE2 athlons only, otherwise prefer SSE prefetches.
1973
1974         Backport from mainline
1975         2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
1976
1977         PR target/77270
1978         * config/i386/i386.c (ix86_option_override_internal): Remove
1979         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
1980         Enable SSE prefetch also for TARGET_PREFETCHWT1.
1981         Do not try to enable TARGET_PRFCHW ISA flag here.
1982         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
1983         Rewrite expander function body.
1984         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
1985
1986 2016-08-28  Tom de Vries  <tom@codesourcery.com>
1987
1988         backport from trunk:
1989         2016-08-28  Tom de Vries  <tom@codesourcery.com>
1990
1991         PR lto/70955
1992         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
1993         'sysv_abi va_list' attribute.
1994         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
1995         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
1996         attributes.
1997
1998 2016-08-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1999
2000         Backport from mainline
2001         2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2002
2003         PR target/72863
2004         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
2005         (vsx_store_<mode>): Likewise.
2006
2007 2016-08-24  Richard Biener  <rguenther@suse.de>
2008
2009         Backport from mainline
2010         2016-08-17  Richard Biener  <rguenther@suse.de>
2011
2012         PR tree-optimization/76490
2013         * tree-vrp.c (update_value_range): Preserve overflow infinities
2014         when intersecting with ranges from get_range_info.
2015         (operand_less_p): Handle overflow infinities correctly.
2016         (value_range_constant_singleton): Use vrp_operand_equal_p
2017         to handle overflow max/min correctly.
2018         (vrp_valueize): Likewise.
2019         (union_ranges): Likewise.
2020         (intersect_ranges): Likewise.
2021
2022 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2023
2024         * config/arm/t-rtems: Add vfp multilib.
2025
2026 2016-08-23  Richard Biener  <rguenther@suse.de>
2027
2028         Backport from mainline
2029         2016-08-16  Richard Biener  <rguenther@suse.de>
2030
2031         PR tree-optimization/76783
2032         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
2033         BB visited flags at start.
2034
2035         2016-08-12  Richard Biener  <rguenther@suse.de>
2036
2037         PR tree-optimization/72851
2038         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
2039         worklists to use bitmaps indexed in execution order.
2040         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
2041         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
2042         (cfg_blocks): Make a bitmap.
2043         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
2044         New globals.
2045         (cfg_blocks_empty_p): Adjust.
2046         (cfg_blocks_add): Likewise.
2047         (cfg_blocks_get): Likewise.
2048         (add_ssa_edge): Likewise.
2049         (add_control_edge): Likewise.
2050         (simulate_stmt): Likewise.
2051         (process_ssa_edge_worklist): Likewise.
2052         (simulate_block): Likewise.
2053         (ssa_prop_init): Compute PRE order and stmt UIDs.
2054         (ssa_prop_fini): Adjust.
2055         (ssa_propagate): Adjust.
2056
2057 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
2058
2059         Backport from mainline
2060         2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
2061
2062         PR target/72867
2063         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
2064         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
2065         for !flag_finite_math_only or flag_signed_zeros.
2066         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
2067         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
2068         depend on flag_finite_math_only.
2069         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
2070         New insn pattern.
2071         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
2072         (*ieee_smin<mode>3): Ditto.
2073         (*ieee_smax<mode>3): Ditto.
2074         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
2075         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
2076         flag_signed_zeros.
2077         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
2078         depend on flag_finite_math_only.
2079         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
2080         (*mmx_<code>v2sf3): Remove.
2081         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
2082         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
2083         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
2084
2085 2016-08-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2086
2087         Backport from mainline
2088         2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2089
2090         PR middle-end/71700
2091         * expr.c (store_constructor): Mask sign-extended bits when widening
2092         sub-word constructor element at the start of a word.
2093
2094 2016-08-22  Richard Biener  <rguenther@suse.de>
2095
2096         * BASE-VER: Set to 6.2.1.
2097
2098 2016-08-22  Release Manager
2099
2100         * GCC 6.2.0 released.
2101
2102 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
2103
2104         Backport from mainline
2105         2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
2106
2107         PR middle-end/70895
2108         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
2109         enclosing parallel construct for reduction variables on OpenACC loop
2110         directives.
2111
2112 2016-08-18  Oleg Endo  <olegendo@gcc.gnu.org>
2113
2114         Backport from mainline
2115         2016-06-17  DJ Delorie  <dj@redhat.com>
2116
2117         PR target/71338
2118         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
2119         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
2120         (umulqihi3_virt): Likewise.
2121         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
2122         (umulqihi3_real): Likewise.
2123
2124 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
2125
2126         * doc/install.texi (*-*-solaris2*): Adjust latest change.
2127
2128 2016-08-15  Martin Liska  <mliska@suse.cz>
2129
2130         Backported from mainline
2131         2016-08-15  Martin Liska  <mliska@suse.cz>
2132
2133         PR driver/72765
2134         * gcc.c (do_spec_1): Call save_string with the right size.
2135
2136 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
2137
2138         PR debug/71906
2139         * dwarf2out.c (string_types): New variable.
2140         (gen_array_type_die): Change early_dwarf handling of
2141         DW_AT_string_length, create DW_OP_call4 referencing the
2142         length var temporarily.  Handle parameters that are pointers
2143         to string length.
2144         (adjust_string_types): New function.
2145         (gen_subprogram_die): Temporarily set string_types to local var,
2146         call adjust_string_types if needed.
2147         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
2148         New functions.
2149         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
2150
2151 2016-08-15  Richard Biener  <rguenther@suse.de>
2152
2153         PR tree-optimization/73434
2154         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
2155         TBAA info on the base when forwarding a non-invariant address.
2156
2157 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
2158
2159         * doc/install.texi (*-*-solaris2*): Fix version number and document
2160         requirement on GNU make for building libjava with the Solaris linker.
2161
2162 2016-08-15  Martin Liska  <mliska@suse.cz>
2163             Jakub Jelinek  <jakub@redhat.com>
2164
2165         PR tree-optimization/72824
2166         * tree-loop-distribution.c (const_with_all_bytes_same)
2167         <case VECTOR_CST>: Fix a typo.
2168
2169 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
2170
2171         Backport from mainline
2172         2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
2173
2174         PR target/76342
2175         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
2176         Renamed from _mm512_undefined_si512.
2177         (_mm_undefined_si512): New definition.
2178
2179         Backport from mainline:
2180         2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
2181
2182         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
2183         unused variable __O.
2184
2185         Backport from mainline:
2186         2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
2187
2188         PR target/72843
2189         * config/i386/i386.md (*movtf_internal): Use
2190         lra_in_progress || reload_completed instead of !can_create_pseudo_p
2191         in the insn constraint.
2192         (*movxf_internal): Ditto.
2193         (*movdf_internal): Ditto.
2194         (*movsf_internal): Ditto.
2195
2196 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
2197
2198         PR c/71512
2199         * ubsan.c (instrument_si_overflow): Pass true instead of false
2200         to gsi_replace.
2201         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
2202         of bbs.  Return TODO_cleanup_cfg if any returned true.
2203
2204 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2205
2206         Backport from mainline
2207         2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2208
2209         PR tree-optimization/71083
2210         * tree-predcom.c (ref_at_iteration): Correctly align the
2211         reference type.
2212
2213 2016-08-12  James Greenhalgh  <james.greenhalgh@arm.com
2214
2215         Backport from mainline
2216         2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
2217
2218         PR Target/72819
2219         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
2220         (aarch64_fp16_ptr_type_node): Likewise.
2221         * config/aarch64/aarch64-simd-builtins.c
2222         (aarch64_fp16_ptr_type_node): Define.
2223         (aarch64_init_fp16_types): New, refactored out of...
2224         (aarch64_init_builtins): ...here, update to call
2225         aarch64_init_fp16_types.
2226         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
2227         HFmode.
2228         (aapcs_vfp_sub_candidate): Likewise.
2229
2230 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2231
2232         Backport from mainline
2233         2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2234
2235         * config/s390/s390-builtin-types.def: Add INT128 types.
2236         * config/s390/s390-builtins.def: Add INT128 variants for the add
2237         sub low-level builtins dealing with TImode.
2238         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
2239         via subreg when expanding a builtin.
2240         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
2241         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
2242         Fix comment.
2243         * config/s390/vecintrin.h: Adjust builtin names accordingly.
2244         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
2245         ("vec_addc<mode>", "vec_addc_u128"): Merge to
2246         "vacc<bhfgq>_<mode>".
2247         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
2248         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
2249         ("vec_subc<mode>", "vec_subc_u128"): Merge to
2250         "vscbi<bhfgq>_<mode>".
2251         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
2252         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
2253
2254 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2255
2256         Backport from mainline
2257         2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2258
2259         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
2260         and s390_vlgv* builtins as element selector.
2261
2262 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2263
2264         Backport from mainline
2265         2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2266
2267         * config/s390/s390.c (s390_expand_vec_init): Force initializer
2268         element to register if it doesn't match general_operand.
2269
2270 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2271
2272         Backport from mainline
2273         2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2274
2275         * config/s390/vecintrin.h: Fix file description in comment.
2276
2277 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2278
2279         Backport from mainline
2280         2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2281
2282         * config/s390/s390-builtin-types.def: Change builtin type naming
2283         scheme to match builtin-types.def.
2284
2285 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2286
2287         Backport from mainline
2288         2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2289
2290         PR target/72853
2291         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
2292         being an offsettable address.
2293
2294 2016-08-10  Jakub Jelinek  <jakub@redhat.com>
2295
2296         Backported from mainline
2297         2016-08-09  Jakub Jelinek  <jakub@redhat.com>
2298
2299         PR tree-optimization/72824
2300         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
2301         real_zerop is not negative.
2302
2303 2016-08-09  Martin Jambor  <mjambor@suse.cz>
2304
2305         PR ipa/71981
2306         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
2307         if instance is a MEM_REF.
2308
2309 2016-08-09  Richard Biener  <rguenther@suse.de>
2310
2311         Backport from mainline
2312         2016-08-09  Richard Biener  <rguenther@suse.de>
2313
2314         PR ipa/68273
2315         * ipa-prop.c (ipa_modify_formal_parameters): Build
2316         parameter types with natural alignment also for the
2317         over-aligned case.
2318
2319         2016-07-15  Richard Biener  <rguenther@suse.de>
2320
2321         PR tree-optimization/71881
2322         * tree-loop-distribution.c (destroy_loop): Remove blocks in
2323         reverse DOM order to make debug temp generation happy.
2324
2325 2016-08-09  Alan Modra  <amodra@gmail.com>
2326
2327         PR target/72802
2328         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
2329         alternatives.  Put loads first, then stores, and reg/reg moves
2330         within same class later.  Delete attr length.
2331
2332 2016-08-09  Alan Modra  <amodra@gmail.com>
2333
2334         PR target/72802
2335         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
2336         (mem_operand_ds_form): New predicate.
2337         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
2338         * config/rs6000/constraints.md (wY): New constraint.
2339         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
2340         (extendsfdf2_fpr): Replace o constraint with wY.
2341
2342 2016-08-08  Georg-Johann Lay  <avr@gjlay.de>
2343
2344         Backport from 2016-07-29 trunk r238863.
2345
2346         PR rtl-optimization/71976
2347         * combine.c (get_last_value): Return 0 if the argument for which
2348         the function is called has a wider mode than the recorded value.
2349
2350 2016-08-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
2351
2352         Backport from trunk
2353         2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2354
2355         PR target/71869
2356         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
2357         __float128 support when we don't have hardware support, so that
2358         the IEEE built-in functions like isgreater, first call __unordkf3
2359         to make sure neither operand is a NaN, and if both operands are
2360         ordered, do the normal comparison.
2361
2362 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
2363
2364         PR target/72805
2365         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
2366         Cast builtin function result to __mmask16 instead of __mmask8.
2367         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
2368         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
2369         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
2370
2371 2016-08-03  Georg-Johann Lay  <avr@gjlay.de>
2372
2373         PR 70677
2374         * common/config/avr/avr-common.c (avr_option_optimization_table)
2375         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
2376
2377 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
2378
2379         Backport from 2016-08-01 trunk r238948.
2380
2381         PR target/72767
2382         * config/avr/avr.md (length) [branch]: Correct insn length
2383         attribute for forward branches.
2384
2385 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
2386
2387         Backport from 2016-06-16 trunk r237536.
2388         2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2389
2390         PR target/71151
2391         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
2392         progmem_swtable_section.
2393         (progmem_swtable_section): Remove.
2394         (avr_asm_function_rodata_section): Remove.
2395         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
2396         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Define to 1.
2397
2398 2016-07-29  Marek Polacek  <polacek@redhat.com>
2399
2400         Backport from mainline
2401         2016-07-29  Marek Polacek  <polacek@redhat.com>
2402
2403         PR c/7652
2404         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
2405         (altivec_expand_st_builtin): Likewise.
2406         * config/i386/i386.c (ix86_expand_args_builtin): Likewise.
2407         (ix86_expand_round_builtin): Likewise.
2408
2409 2016-07-27  Segher Boessenkool  <segher@kernel.crashing.org>
2410
2411         PR target/71216
2412         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
2413         when to emit a ".machine" pseudo-op.
2414
2415 2016-07-26  Alan Modra  <amodra@gmail.com>
2416
2417         PR target/72103
2418         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
2419         sri->t_icode.
2420
2421 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
2422
2423         PR sanitizer/71953
2424         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
2425         before builtin_decl_implicit.
2426
2427         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
2428
2429 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
2430
2431         Improving concepts performance and diagnostics.
2432         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
2433         for constraint satisfaction and subsumption.
2434         * timevar.h (auto_timevar): New constructor that matches the push/pop
2435         pattern of usage in pt.c.
2436
2437 2016-07-20  John David Anglin  <danglin@gcc.gnu.org>
2438
2439         Backport from mainline
2440         2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
2441
2442         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
2443         register parameters.  Remove code to initialize argument pointer
2444         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
2445         using a pc-relative branch.  Cleanup conditional code.
2446         * config/pa/pa.md (call_mcount): New expander.
2447         (call_mcount_nonpic): New insn.
2448         (call_mcount_pic): New insn and split.
2449         (call_mcount_pic_post_reload): New insn.
2450         (call_mcount_64bit): New insn and split.
2451         (call_mcount_64bit_post_reload): New insn.
2452
2453 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2454
2455         Backport from mainline
2456         2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2457
2458         * config/s390/s390.c (s390_encode_section_info): Remove mode size
2459         check.
2460
2461 2016-07-20  Martin Jambor  <mjambor@suse.cz>
2462
2463         PR fortran/71688
2464         * trans-decl.c (gfc_generate_function_code): Use get_create rather
2465         than create to get a call graph node.
2466
2467 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
2468
2469         PR rtl-optimization/71916
2470         * cfgrtl.c (contains_no_active_insn_p): Return false also for
2471         bb which have a single succ fake edge.
2472
2473 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
2474
2475         PR debug/71855
2476         * dwarf2out.c (gen_subprogram_die): Only call
2477         gen_unspecified_parameters_die while dumping early dwarf.
2478
2479 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
2480
2481         PR middle-end/71874
2482         * gimple-fold.c (fold_builtin_memory_op): Use
2483         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
2484
2485 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
2486
2487         Back port from mainline
2488         2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
2489
2490         PR target/71493
2491         * config/rs6000/rs6000.c (rs6000_function_value): Fix
2492         unintentional System V.4 structure return breakage for structures
2493         with a single floating point element.
2494
2495 2016-07-18  Martin Liska  <mliska@suse.cz>
2496
2497         Backported from mainline
2498         2016-07-12  Martin Liska  <mliska@suse.cz>
2499
2500         PR rtl-optimization/71634
2501         * ira-build.c (mark_loops_for_removal): Properly iterate
2502         loops.
2503
2504 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2505
2506         Backport from mainline
2507         2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2508
2509         * config/s390/s390.c (s390_encode_section_info): Always set
2510         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
2511         found.
2512
2513 2016-07-15  Alan Modra  <amodra@gmail.com>
2514
2515         Apply from mainline
2516         2016-07-11  Alan Modra  <amodra@gmail.com>
2517         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
2518         (ctr<mode>): Add unspec.
2519         (ctr<mode>_internal*): Likewise.
2520
2521 2016-07-14  Alan Modra  <amodra@gmail.com>
2522
2523         PR target/71733
2524         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
2525         with p9_vector override before power9-dform override.
2526
2527 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
2528
2529         Backport from mainline r238086.
2530         2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
2531
2532         PR ipa/71624
2533         * ipa-inline-analysis.c (compute_inline_parameters): Set
2534         local.can_change_signature to false for intrumentation
2535         thunk callees.
2536
2537 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2538             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2539
2540         Backport from mainline
2541         2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2542                     Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2543
2544         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
2545         prototype.
2546         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
2547         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
2548         (SIGNBIT): New mode iterator.
2549         (Fsignbit): New mode attribute.
2550         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
2551         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
2552         when direct moves are available.
2553         (signbit<mode>2_dm): New define_insn_and_split).
2554         (signbit<mode>2_dm2): New define_insn.
2555
2556 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2557
2558         Backport from mainline
2559         2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2560
2561         PR target/71805
2562         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
2563         The xxperm and xxpermr instructions require that the 2nd input
2564         operand overlap with the output operand, and not the 1st.
2565         (altivec_vperm_v8hiv16qi): Likewise.
2566         (altivec_vperm_<mode>_uns_internal): Likewise.
2567         (altivec_vpermr_<mode>_internal): Likewise.
2568         (vperm_v8hiv4si): Likewise.
2569         (vperm_v16qiv8hi): Likewise.
2570
2571 2016-07-12  Segher Boessenkool  <segher@kernel.crashing.org>
2572
2573         Backport from mainline
2574         2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
2575
2576         PR target/70098
2577         PR target/71763
2578         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
2579         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
2580         constraint.
2581
2582 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
2583
2584         PR middle-end/71758
2585         * omp-low.c (expand_omp_target): Gimplify device.
2586
2587         PR tree-optimization/71823
2588         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
2589         to get vec_oprnds2 from op2.
2590
2591 2016-07-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
2592
2593         Backport from mainline r238055.
2594         2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
2595
2596         PR tree-optimization/71518
2597         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
2598         misalign also for outer loops with negative step.
2599
2600 2016-07-08  Martin Liska  <mliska@suse.cz>
2601
2602         Backported from mainline
2603         2016-07-08  Martin Liska  <mliska@suse.cz>
2604
2605         PR middle-end/71606
2606         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
2607         folding produces SAVE_EXPRs, thus return false for the type.
2608
2609 2016-07-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2610
2611         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): Remove
2612         redundant and erroneous definition of this macro accidentally
2613         inserted during backporting.
2614         (BU_P9_64BIT_MISC_0): Likewise.
2615         (BU_P9_MISC_0): Likewise.
2616
2617 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
2618
2619         Back port from the trunk
2620         2016-07-08  Jiong Wang  <jiong.wang@arm.com>
2621
2622         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
2623         variants.
2624         (smin): Likewise.
2625         (fmax): New entry.
2626         (fmin): Likewise.
2627         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
2628         __builtin_aarch64_fmaxv2sf.
2629         (vmaxnmq_f32): Likewise.
2630         (vmaxnmq_f64): Likewise.
2631         (vminnm_f32): Likewise.
2632         (vminnmq_f32): Likewise.
2633         (vminnmq_f64): Likewise.
2634
2635 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
2636
2637         Back port from trunk
2638         2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
2639
2640         PR target/71806
2641         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
2642         enable -mfloat128-hardware by default.
2643         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
2644         that IEEE 128-bit hardware support needs.
2645         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
2646         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
2647         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
2648         floating point requires.
2649         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2650         -mfloat128 and -mfloat128-hardware changes.
2651
2652 2016-07-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2653
2654         Backport from mainline r237912
2655         2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2656
2657         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
2658         Exchange the order of the second and third operands in the vpermr
2659         instruction tmeplate.
2660
2661 2016-07-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
2662
2663         Back port from the trunk
2664         2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2665
2666         PR target/71720
2667         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
2668         the insns, use an insn form that does not adjust the offset on
2669         little endian systems.
2670
2671 2016-07-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2672
2673         Backport from mainline r237885
2674         2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2675
2676         * config/rs6000/altivec.md (darn_32): Change the condition to
2677         TARGET_P9_MISC instead of TARGET_MODULO.
2678         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
2679         condition expression.
2680         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
2681         condition expression.
2682         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
2683         (DFP_TEST): New code iterator.
2684         (dfptstsfi_<code>_mode>): New define_expand.
2685         (*dfp_sgnfcnc_<mode>): New define_insn.
2686         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
2687         definition next to BU_P9_MISC_1 definition and change the MASK
2688         value to RS6000_BTM_P9_MISC.
2689         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
2690         (BU_P9_64BIT_MISC_0): Likewise.
2691         (BU_P9_DFP_MISC_0): New macro definition.
2692         (BU_P9_DFP_MISC_1): New macro definition.
2693         (BU_P9_DFP_MISC_2): New macro definition.
2694         (BU_P9_DFP_OVERLOAD_1): New macro definition.
2695         (BU_P9_DFP_OVERLOAD_2): New macro definition.
2696         (BU_P9_DFP_OVERLOAD_3): New macro definition.
2697         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
2698         (TSTSFI_LT_TD): Likewise.
2699         (TSTSFI_EQ_DD): Likewise.
2700         (TSTSFI_EQ_TD): Likewise.
2701         (TSTSFI_GT_DD): Likewise.
2702         (TSTSFI_GT_TD): Likewise.
2703         (TSTSFI_OV_DD): Likewise.
2704         (TSTSFI_OV_TD): Likewise.
2705         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
2706         (TSTSFI_LT_DD): Likewise.
2707         (TSTSFI_LT_TD): Likewise.
2708         (TSTSFI_EQ): Likewise.
2709         (TSTSFI_EQ_DD): Likewise.
2710         (TSTSFI_EQ_TD): Likewise.
2711         (TSTSFI_GT): Likewise.
2712         (TSTSFI_GT_DD): Likewise.
2713         (TSTSFI_GT_TD): Likewise.
2714         (TSTSFI_OV): Likewise.
2715         (TSTSFI_OV_DD): Likewise.
2716         (TSTSFI_OV_TD): Likewise.
2717         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2718         overloaded test significance functions.
2719         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2720         OPTION_MASK_P9_MISC into the representation of this mask.
2721         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
2722         of this mask.
2723         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
2724         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
2725         non-zero.
2726         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
2727         argument is a 6-bit unsigned literal value if the icode argument
2728         represents a DFP test significance built-in call.
2729         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
2730         flag used independently and in combination with the
2731         RS6000_BTM_64BIT flag.
2732         (rs6000_opt_masks): Add entry for power9-misc command-line option.
2733         (rs6000_builtin_mask_names): Add entry for power9-misc
2734         command-line option.
2735         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
2736         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
2737         RS6000_BTM_P9_MISC macros.
2738         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
2739         option and change the description of the -mpower9-vector option to
2740         enable only vector instructions, removing its erroneously claimed
2741         support for scalar instructions.
2742         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2743         the ISA 3.0 digital floating point test significance built-in
2744         functions.
2745
2746 2016-07-07  Richard Biener  <rguenther@suse.de>
2747
2748         Backport from mainline
2749         2016-06-13  Richard Biener  <rguenther@suse.de>
2750
2751         PR middle-end/64516
2752         * fold-const.c (fold_unary_loc): Preserve alignment when
2753         folding a VIEW_CONVERT_EXPR into a MEM_REF.
2754
2755 2016-07-07  Richard Biener  <rguenther@suse.de>
2756
2757         Backport from mainline
2758         2016-05-25  Richard Biener  <rguenther@suse.de>
2759
2760         PR tree-optimization/71264
2761         * tree-vect-stmts.c (vect_init_vector): Properly deal with
2762         vector type val.
2763
2764         2016-06-07  Richard Biener  <rguenther@suse.de>
2765
2766         PR middle-end/71423
2767         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
2768         for signed ops.
2769
2770         2016-06-14  Richard Biener  <rguenther@suse.de>
2771
2772         PR tree-optimization/71521
2773         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
2774         division int_const_binop against zero divisor.
2775
2776         2016-06-08  Richard Biener  <rguenther@suse.de>
2777
2778         PR tree-optimization/71452
2779         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
2780         type used for the SSA rewrite has enough precision to cover
2781         the dynamic type of the location.
2782
2783         2016-06-14  Richard Biener  <rguenther@suse.de>
2784
2785         PR tree-optimization/71522
2786         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
2787         copying into float copying.
2788
2789 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2790
2791         Backport from mainline
2792         2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2793
2794         PR target/50739
2795         * config/avr/avr.c (avr_asm_select_section): Strip off
2796         SECTION_DECLARED from flags when calling get_section.
2797
2798 2016-07-05  Pat Haugen  <pthaugen@us.ibm.com>
2799
2800         Backport from mainline
2801         2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
2802
2803         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
2804         ('size' attribute): Add '128'.
2805         Include power9.md.
2806         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
2807         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
2808         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
2809         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
2810         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
2811         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
2812         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
2813         *trunc<mode>df2_odd): Set size attribute to '128'.
2814         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
2815         * config/rs6000/power6.md (power6-fp): Include dfp type.
2816         * config/rs6000/power7.md (power7-fp): Likewise.
2817         * config/rs6000/power8.md (power8-fp): Likewise.
2818         * config/rs6000/power9.md: New file.
2819         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
2820         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
2821         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
2822         htmsimple.
2823         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
2824         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
2825         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
2826         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
2827         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
2828         dfp_dscri_<mode>): Change type attribute to dfp.
2829         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
2830         attribute to vecsimple.
2831         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
2832         and prefetch streams.
2833         (rs6000_option_override_internal): Remove temporary code setting
2834         tuning to power8.  Don't set rs6000_sched_groups for power9.
2835         (last_scheduled_insn): Change to rtx_insn *.
2836         (divide_cnt, vec_load_pendulum): New variables.
2837         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
2838         (rs6000_issue_rate): Set issue rate for Power9.
2839         (is_power9_pairable_vec_type): New.
2840         (power9_sched_reorder2): New.
2841         (rs6000_sched_reorder2): Call new function for Power9 specific
2842         reordering.
2843         (insn_must_be_first_in_group): Remove Power9.
2844         (insn_must_be_last_in_group): Likewise.
2845         (force_new_group): Likewise.
2846         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
2847         Initialize divide_cnt/vec_load_pendulum.
2848         (_rs6000_sched_context, rs6000_init_sched_context,
2849         rs6000_set_sched_context): Handle context save/restore of new
2850         variables.
2851
2852 2016-07-05  Pat Haugen  <pthaugen@us.ibm.com>
2853
2854         Backport from mainline
2855         2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
2856
2857         * config/rs6000/rs6000.md ('type' attribute): Add
2858         veclogical,veccmpfx,vecexts,vecmove insn types.
2859         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
2860         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
2861         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
2862         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
2863         *nabs<mode>2_hw): Change type to vecmove.
2864         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
2865         *boolcc<mode>3_internal, *eqv<mode>3_internal,
2866         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
2867         *ieee_128bit_vsx_abs<mode>2_internal,
2868         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
2869         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
2870         *ieee128_mtvsrd_32bit): Change type to veclogical.
2871         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
2872         *movdi_internal32, *movdi_internal64): Update insn types.
2873         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
2874         vsx_extract_<mode>): Change type to veclogical.
2875         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
2876         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
2877         *vsx_sign_extend_si_v2di): Change type to vecexts.
2878         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
2879         type to veclogical.
2880         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
2881         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
2882         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
2883         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
2884         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
2885         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
2886         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
2887         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
2888         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
2889         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
2890         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
2891         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
2892         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
2893         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
2894         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
2895         (ppc7450-vecsimple): Add veclogical, vecmove.
2896         (ppc7450-veccmp): Add veccmpfx.
2897         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
2898         vecmove.
2899         (ppc8540_vector_compare): Add veccmpfx.
2900         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
2901         * config/rs6000/cell.md (cell-fp): Add fpsimple.
2902         (cell-vecsimple): Add veclogical, vecmove.
2903         (cell-veccmp): Add veccmpfx.
2904         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
2905         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
2906         veccmpfx.
2907         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
2908         * config/rs6000/power4.md (power4-fp): Add fpsimple.
2909         (power4-vecsimple): Add veclogical, vecmove.
2910         (power4-veccmp): Add veccmpfx.
2911         * config/rs6000/power5.md (power5-fp): Add fpsimple.
2912         * config/rs6000/power6.md (power6-fp): Add fpsimple.
2913         (power6-vecsimple): Add veclogical, vecmove.
2914         (power6-veccmp): Add veccmpfx.
2915         * config/rs6000/power7.md (power7-fp): Add fpsimple.
2916         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
2917         * config/rs6000/power8.md (power8-fp): Add fpsimple.
2918         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
2919         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
2920         * config/rs6000/titan.md (titan_fp): Add fpsimple.
2921         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
2922         fpsimple.
2923         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
2924
2925 2016-07-05  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2926
2927         Backport from mainline r237391
2928         2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2929
2930         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
2931         RS6000_BTM_MODULO flag into the set of flags that are considered
2932         to be part of the common configuration.
2933
2934 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
2935
2936         PR c++/71739
2937         * tree.c (attribute_value_equal): Use get_attribute_name instead of
2938         directly using TREE_PURPOSE.
2939
2940 2016-07-04  Segher Boessenkool  <segher@kernel.crashing.org>
2941
2942         Backport from mainline
2943         2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
2944
2945         PR target/71670
2946         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
2947         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
2948
2949 2016-07-02  Jakub Jelinek  <jakub@redhat.com>
2950
2951         Backported from mainline
2952         2016-06-28  Jakub Jelinek  <jakub@redhat.com>
2953
2954         PR middle-end/71626
2955         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
2956         a constant, force its SUBREG_REG into memory or register instead
2957         of whole op1.
2958
2959         2016-06-20  Jakub Jelinek  <jakub@redhat.com>
2960
2961         PR target/71559
2962         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
2963         returned values and add UN*/LTGT/*ORDERED cases with values matching
2964         D operand modifier on vcmp for AVX.
2965
2966 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2967
2968         Backport from trunk r237659
2969         2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2970
2971         * config/rs6000/rs6000.h: Add conditional preprocessing directives
2972         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
2973         not defined.
2974
2975 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
2976
2977         Backport from trunk
2978         2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
2979
2980         PR target/71656
2981         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2982         OPTION_MASK_P9_DFORM_VECTOR.
2983         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
2984         disable -mpower9-dform-vector when using reload.
2985         (quad_address_p): Remove 'gpr_p' argument and all associated code.
2986         New 'strict' argument.  Update all callers.  Add strict addressing
2987         support.
2988         (rs6000_legitimate_offset_address_p): Remove call to
2989         virtual_stack_registers_memory_p.
2990         (rs6000_legitimize_reload_address): Add quad address support.
2991         (rs6000_legitimate_address_p): Move call to quad_address_p above
2992         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
2993         to account for new strict usage.
2994         (rs6000_output_move_128bit): Adjust quad_address_p args to account
2995         for new strict usage.
2996         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
2997
2998 2016-07-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2999
3000         Backport from mainline
3001         2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3002
3003         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
3004         (BU_FLOAT128_1): Likewise.
3005         (FABSQ): Likewise.
3006         (COPYSIGNQ): Likewise.
3007         (RS6000_BUILTIN_NANQ): Likewise.
3008         (RS6000_BUILTIN_NANSQ): Likewise.
3009         (RS6000_BUILTIN_INFQ): Likewise.
3010         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
3011         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
3012         (TARGET_FOLD_BUILTIN): New #define.
3013         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
3014         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
3015         (rs6000_fold_builtin): New target hook implementation, handling
3016         folding of 128-bit NaNs and infinities.
3017         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
3018         entries are filled in to avoid problems during bootstrap
3019         self-test; define builtins for 128-bit NaNs and infinities.
3020         (rs6000_opt_mask): Add entry for float128.
3021         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
3022         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
3023         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
3024         (const_str_type_node): New #define.
3025         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
3026         to a define_expand that dispatches to either copysign<mode>3_soft
3027         or copysign<mode>3_hard.
3028         (copysign<mode>3_hard): Rename from copysign<mode>3.
3029         (copysign<mode>3_soft): New define_insn.
3030         * doc/extend.texi: Document new builtins.
3031
3032 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
3033
3034         Backport from trunk
3035         2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
3036
3037         PR target/71698
3038         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move): Disallow
3039         TDmode values.
3040
3041 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3042
3043         Backport from trunk r236992
3044         2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3045
3046         * config/rs6000/altivec.h (vec_slv): New macro.
3047         (vec_srv): New macro.
3048         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
3049         (UNSPEC_VSRV): New value.
3050         (vslv): New insn.
3051         (vsrv): New insn.
3052         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
3053         (vsrv): New builtin definition.
3054         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
3055         define argument types for new builtin.
3056         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
3057         new builtin.
3058         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
3059         functions.
3060
3061 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
3062
3063         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
3064         for NULL decl.
3065
3066 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3067
3068         Backport from trunk r237390
3069         2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3070
3071         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
3072         difference unsigned.
3073         (vec_absdb): New macro for vector absolute difference unsigned
3074         byte.
3075         (vec_absdh): New macro for vector absolute difference unsigned
3076         half-word.
3077         (vec_absdw): New macro for vector absolute difference unsigned word.
3078         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
3079         (vadu<mode>3): New insn.
3080         (*p9_vadu<mode>3): New insn.
3081         * config/rs6000/rs6000-builtin.def (vadub): New built-in
3082         definition.
3083         (vaduh): New built-in definition.
3084         (vaduw): New built-in definition.
3085         (vadu): New overloaded built-in definition.
3086         (vadub): New overloaded built-in definition.
3087         (vaduh): New overloaded built-in definition.
3088         (vaduw): New overloaded built-in definition.
3089         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3090         overloaded vector absolute difference unsigned functions.
3091         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3092         the ISA 3.0 vector absolute difference unsigned built-in functions.
3093
3094 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
3095
3096         Backport from trunk r237880.
3097         2016-06-30  David Malcolm  <dmalcolm@redhat.com>
3098
3099         PR driver/71651
3100         * gcc.c (driver::build_option_suggestions): Pass "option" to
3101         add_misspelling_candidates.
3102         * opts-common.c (add_misspelling_candidates): Add "option" param;
3103         use it to avoid adding negated forms for options marked with
3104         RejectNegative.
3105         * opts.h (add_misspelling_candidates): Add "option" param.
3106
3107 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
3108
3109         PR middle-end/71693
3110         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
3111         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
3112         first when permuting bitwise operation with rotate.  Cast
3113         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
3114
3115 2016-06-30  Martin Liska  <mliska@suse.cz>
3116
3117         Parting backport from mainline
3118         2016-06-29  Martin Liska  <mliska@suse.cz>
3119
3120         * ipa-inline-transform.c (inline_call): Remove unnecessary call
3121         of build_optimization_node.
3122
3123 2016-06-29  Eric Botcazou  <ebotcazou@adacore.com>
3124
3125         Backport from mainline
3126         2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
3127
3128         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
3129
3130 2016-06-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
3131
3132         Back port from trunk
3133         2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
3134
3135         * stor-layout.c (layout_type): Move setting complex MODE to
3136         layout_type, instead of setting it ahead of time by the caller.
3137
3138         Back port from trunk
3139         2016-05-11  Alan Modra  <amodra@gmail.com>
3140
3141         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
3142         abi_v4_pass_in_fpr): New functions.
3143         (rs6000_function_arg_boundary): Exclude complex IBM long double
3144         from 64-bit alignment when ABI_V4.
3145         (rs6000_function_arg, rs6000_function_arg_advance_1,
3146         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
3147
3148         Back port from trunk
3149         2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3150
3151         * machmode.h (mode_complex): Add support to give the complex mode
3152         for a given mode.
3153         (GET_MODE_COMPLEX_MODE): Likewise.
3154         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
3155         stored by build_complex_type and gfc_build_complex_type instead of
3156         trying to figure out the appropriate mode based on the size. Raise
3157         an assertion error, if the type was not set.
3158         * genmodes.c (struct mode_data): Add field for the complex type of
3159         the given type.
3160         (blank_mode): Likewise.
3161         (make_complex_modes): Remember the complex mode created in the
3162         base type.
3163         (emit_mode_complex): Write out the mode_complex array to map a
3164         type mode to the complex version.
3165         (emit_insn_modes_c): Likewise.
3166         * tree.c (build_complex_type): Set the complex type to use before
3167         calling layout_type.
3168         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
3169         support for __float128 complex datatypes.
3170         (rs6000_hard_regno_mode_ok): Likewise.
3171         (rs6000_setup_reg_addr_masks): Likewise.
3172         (rs6000_complex_function_value): Likewise.
3173         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
3174         __float128 and __ibm128 complex.
3175         (FLOAT128_IBM_P): Likewise.
3176         (ALTIVEC_ARG_MAX_RETURN): Likewise.
3177         * doc/extend.texi (Additional Floating Types): Document that
3178         -mfloat128 must be used to enable __float128.  Document complex
3179         __float128 and __ibm128 support.
3180
3181 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
3182
3183         PR tree-optimization/71647
3184         * omp-low.c (lower_rec_input_clauses): Convert
3185         omp_clause_aligned_alignment (c) to size_type_node for the
3186         last argument of __builtin_assume_aligned.
3187
3188 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
3189
3190         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
3191
3192 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
3193
3194         Backport from 2016-06-21 trunk r237639.
3195
3196         PR target/30417
3197         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
3198         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
3199         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
3200
3201 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
3202
3203         PR target/71103
3204         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
3205         constant addresses if can_create_pseudo_p.
3206
3207 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
3208
3209         PR tree-optimization/71588
3210         * tree-ssa-strlen.c (valid_builtin_call): New function.
3211         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
3212         it.
3213
3214         Backported from mainline
3215         2016-06-20  Jakub Jelinek  <jakub@redhat.com>
3216
3217         PR middle-end/71581
3218         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
3219         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
3220         for conversion of scalar user var to complex type and use the
3221         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
3222         punt.
3223
3224         2016-06-16  Jakub Jelinek  <jakub@redhat.com>
3225
3226         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
3227         with base of reference to struct.
3228
3229 2016-06-20  Ilya Enkovich  <ilya.enkovich@intel.com>
3230
3231         Backport from mainline r237484.
3232         2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
3233
3234         PR middle-end/71529
3235         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
3236         DECL_CONTEXT for copied arguments.
3237
3238 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
3239             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3240
3241         Backport from 2016-06-20 trunk r237589, r236558.
3242
3243         PR target/71103
3244         * config/avr/avr.md (movqi): Handle loading subreg:qi (const,
3245         symbol_ref,label_ref).
3246
3247 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
3248
3249         PR target/71554
3250         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
3251         (setcc + and peephole2): Likewise.
3252
3253 2016-06-15  Andreas Tobler  <andreast@gcc.gnu.org>
3254
3255         Backported from mainline
3256         2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
3257
3258         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
3259         FreeBSD 11 and above.
3260
3261 2016-06-15  Ilya Verbin  <ilya.verbin@intel.com>
3262
3263         Backport from mainline
3264         2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3265
3266         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
3267
3268 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
3269
3270         Backported from mainline
3271         2016-06-10  Jakub Jelinek  <jakub@redhat.com>
3272
3273         PR middle-end/71494
3274         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
3275         without LABEL_DECL, set *handled_ops_p to false instead of true.
3276
3277         2016-06-08  Jakub Jelinek  <jakub@redhat.com>
3278                     Richard Biener  <rguenther@suse.de>
3279
3280         PR c++/71448
3281         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
3282         the same as DECL_P (base0) for indirect_base0.  Use equality_code
3283         in one further place.
3284
3285         2016-06-04  Jakub Jelinek  <jakub@redhat.com>
3286
3287         PR tree-optimization/71405
3288         * tree-ssa.c (execute_update_addresses_taken): For clobber with
3289         incompatible type, build a new clobber with the right type instead
3290         of building a VIEW_CONVERT_EXPR around it.
3291
3292 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
3293
3294         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
3295         update shared_lookup_references only once after changing operands.
3296
3297 2016-06-13  Richard Biener  <rguenther@suse.de>
3298
3299         PR tree-optimization/71505
3300         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
3301         assert match comment.
3302
3303 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3304
3305         Backport from mainline
3306         2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3307
3308         PR target/71379
3309         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
3310         one.
3311
3312 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
3313
3314         PR middle-end/71373
3315         Backport from trunk r237291:
3316         * tree-nested.c (convert_nonlocal_omp_clauses)
3317         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
3318         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
3319         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
3320
3321         Backport from trunk r237291:
3322         * gimplify.c (gimplify_adjust_omp_clauses): Discard
3323         OMP_CLAUSE_TILE.
3324         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
3325
3326         Backport from trunk r237290:
3327         * omp-low.c (scan_sharing_clauses): Don't expect
3328         OMP_CLAUSE__CACHE_.
3329
3330         Backport trunk r235964:
3331         2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
3332
3333         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
3334         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
3335         equality first.
3336
3337 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
3338
3339         PR sanitizer/71480
3340         * varasm.c (place_block_symbol): Adjust alignment for asan protected
3341         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
3342
3343 2016-06-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3344
3345         Back port from trunk
3346         2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3347
3348         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
3349         alternatives, eliminating preferred register class.  Add support
3350         for the MTVSRDD instruction in ISA 3.0.
3351         (vsx_splat_v4si_internal): Use splat_input_operand instead of
3352         reg_or_indexed_operand.
3353         (vsx_splat_v4sf_internal): Likewise.
3354
3355         Back port from trunk
3356         2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3357
3358         PR target/71186
3359         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
3360         for loading up all 0's or all 1's.
3361
3362         Back port from trunk
3363         2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3364
3365         PR target/70915
3366         * config/rs6000/constraints.md (wE constraint): New constraint
3367         for a vector constant that can be loaded with XXSPLTIB.
3368         (wM constraint): New constraint for a vector constant of a 1's.
3369         (wS constraint): New constraint for a vector constant that can be
3370         loaded with XXSPLTIB and a vector sign extend instruction.
3371         * config/rs6000/predicates.md (xxspltib_constant_split): New
3372         predicates for wE/wS constraints.
3373         (xxspltib_constant_nosplit): Likewise.
3374         (easy_vector_constant): Add support for constants that can be
3375         loaded via XXSPLTIB.
3376         (splat_input_operand): Add support for ISA 3.0 word splat operations.
3377         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
3378         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
3379         instruction and possibly with a sign extension.
3380         (output_vec_const_move): Add support for XXSPLTIB. If we are
3381         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
3382         instead of XXLXOR/XXLORC.
3383         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
3384         operations.
3385         (rs6000_legitimize_reload_address): Likewise.
3386         (rs6000_output_move_128bit): Use output_vec_const_move to emit
3387         constants.
3388         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
3389         combine VSX_M and VSX_M2 into one iterator.
3390         (VSX_M2): Likewise.
3391         (VSINT_84): New iterators for loading constants with XXSPLTIB.
3392         (VSINT_842): Likewise.
3393         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
3394         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
3395         XXSPLTIB instruction.
3396         (xxspltib_<mode>_nosplit): Likewise.
3397         (xxspltib_<mode>_split): New insn to load up constants with
3398         XXSPLTIB and a sign extend instruction.
3399         (vsx_mov<mode>): Replace single move that handled all vector types
3400         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
3401         moves (when -mvsx-timode is in effect) into the main vector
3402         moves.  Eliminate separate moves for <VSr> <VSa>, where the
3403         preferred register class (<VSr>) is listed first, and the
3404         secondary register class (<VSa>) is listed second with a '?' to
3405         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
3406         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
3407         that if the register was involved in a slow operation, the
3408         clear/set operation does not wait for the slow operation to
3409         finish.  Adjust the length attributes for 32-bit mode.  Use
3410         rs6000_output_move_128bit and drop the use of the string
3411         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
3412         spacing so that the alternatives and attributes don't generate
3413         long lines, and put things in columns, so that it is easier to
3414         match up the operands and attributes with the insn alternatives.
3415         (vsx_mov<mode>_64bit): Likewise.
3416         (vsx_mov<mode>_32bit): Likewise.
3417         (vsx_movti_64bit): Fold movti into normal vector moves.
3418         (vsx_movti_32bit): Likewise.
3419         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
3420         splat instructions.
3421         (vsx_splat_v4si_internal): Likewise.
3422         (vsx_splat_v4sf_internal): Likewise.
3423         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
3424         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
3425         extend vector elements.
3426         (vsx_sign_extend_hi_<mode>): Likewise.
3427         (vsx_sign_extend_si_v2di): Likewise.
3428         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
3429         declaration.
3430         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
3431         constraints.  Add trailing period to wL documentation.
3432
3433 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
3434
3435         Backport from mainline
3436         2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
3437
3438         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
3439         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
3440
3441 2016-06-08  Eric Botcazou  <ebotcazou@adacore.com>
3442
3443         Backport from mainline
3444         2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
3445
3446         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
3447         Include the M7 SPARC DFA scheduler.
3448         New attribute v3pipe.
3449         Annotate insns with v3pipe where appropriate.
3450         Define cpu_feature vis4.
3451         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
3452         Add (V8QI "8") to vbits.
3453         Add insns {add,sub}v8qi3
3454         Add insns ss{add,sub}v8qi3
3455         Add insns us{add,sub}{v8qi,v4hi}3
3456         Add insns {min,max}{v8qi,v4hi,v2si}3
3457         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
3458         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
3459         * config/sparc/niagara4.md: Add a comment explaining the
3460         discrepancy between the documented latenty numbers and the
3461         implemented ones.
3462         * config/sparc/niagara7.md: New file.
3463         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
3464         supports SPARC5 and VIS 4.0 instructions.
3465         * configure: Regenerate.
3466         * config.in: Likewise.
3467         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
3468         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
3469         TARGET_CPU_niagara7.
3470         (ASM_CPU64_DEFAULT_SPEC): Likewise.
3471         (CPP_CPU_SPEC): Handle niagara7.
3472         (ASM_CPU_SPEC): Likewise.
3473         * config/sparc/sparc-opts.h (processor_type): Add
3474         PROCESSOR_NIAGARA7.
3475         (mvis4): New option.
3476         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
3477         (AS_NIAGARA7_FLAG): Define.
3478         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
3479         (CPP_CPU64_DEFAULT_SPEC): Likewise.
3480         (CPP_CPU_SPEC): Handle niagara7.
3481         (ASM_CPU_SPEC): Likewise.
3482         * config/sparc/sparc.c (niagara7_costs): Define.
3483         (sparc_option_override): Handle niagara7 and adjust cache-related
3484         parameters with better values for niagara cpus.  Also support VIS4.
3485         (sparc32_initialize_trampoline): Likewise.
3486         (sparc_use_sched_lookahead): Likewise.
3487         (sparc_issue_rate): Likewise.
3488         (sparc_register_move_cost): Likewise.
3489         (dump_target_flag_bits): Support VIS4.
3490         (sparc_vis_init_builtins): Likewise.
3491         (sparc_builtins): Likewise.
3492         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
3493         VIS4 4.0.
3494         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
3495         UltraSparc M7.
3496         * config/sparc/sparc.opt (sparc_processor_type): New value
3497         niagara7.
3498         * config/sparc/visintrin.h (__attribute__): Prototypes for the
3499         VIS4 builtins.
3500         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
3501         -mvis4.
3502         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
3503         VIS4 builtins.
3504
3505         2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
3506
3507         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
3508         tune_64.
3509         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
3510         support on SPARC.
3511         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
3512         cpu_32, cpu_64, tune_32 and tune_64.
3513         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
3514
3515 2016-06-08  Ilya Verbin  <ilya.verbin@intel.com>
3516
3517         Backport from mainline
3518         2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
3519
3520         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
3521         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
3522         * config/i386/i386.c (enum ix86_builtins): Add
3523         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
3524         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
3525         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
3526         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
3527         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
3528         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
3529         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
3530         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
3531         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
3532         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
3533         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
3534         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
3535         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
3536         __builtin_ia32_cvtps2dq512_mask.
3537         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
3538         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
3539         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
3540         * config/i386/sse.md
3541         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
3542         Rename to ...
3543         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
3544         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
3545         to ...
3546         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
3547         (avx512f_vec_pack_sfix_v8df): New define_expand.
3548         (avx512f_roundpd512): Rename to ...
3549         (avx512f_round<castmode>512): ... this.  Change iterator.
3550         (avx512f_roundps512_sfix): New define_expand.
3551         (round<mode>2_sfix): Change iterator.
3552
3553 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
3554
3555         Backport from mainline
3556         2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
3557
3558         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
3559         -mno-htm.
3560
3561 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
3562
3563         PR target/71389
3564         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
3565         Copy op1 RTX to avoid invalid sharing.
3566         (ix86_expand_vector_move_misalign): Ditto.
3567
3568 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
3569
3570         PR tree-optimization/71259
3571         * tree-vect-slp.c (vect_get_constant_vectors): For
3572         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
3573         one for constant op, and use COND_EXPR for non-constant.
3574
3575 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3576
3577         Backport from trunk
3578         2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3579
3580         PR target/70830
3581         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
3582
3583 2016-06-05  Uros Bizjak  <ubizjak@gmail.com>
3584
3585         Backport from mainline
3586         2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
3587                     Jocelyn Mayer  <l_indien@magic.fr>
3588
3589         PR target/67310
3590         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
3591         detect processor family for signature_CENTAUR_ebx.
3592         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
3593         signature_CENTAUR_ebx.
3594         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
3595         <default>: Pass x86-64 for has_longmode.
3596
3597 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
3598
3599         PR middle-end/71387
3600         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
3601         to noreturn e->callee->decl that has void return type and void
3602         arguments, adjust gimple_call_fntype and remove lhs even if it had
3603         previously addressable type.
3604
3605 2016-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3606
3607         Back port from trunk
3608         2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3609
3610         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
3611         for ISA 3.0 min/max support.
3612         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
3613         conditional move support.
3614         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
3615         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
3616         available.
3617         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
3618         conditional moves where the comparison type is different from move
3619         type.
3620         (fp_minmax): New code iterator for smin/smax.
3621         (minmax): New code attributes for min/max.
3622         (SMINMAX): Likewise.
3623         (smax<mode>3): Combine min, max insns into one insn using the
3624         fp_minmax code iterator.  Add support for ISA 3.0 min/max
3625         instructions that don't need -ffast-math.
3626         (s<minmax><mode>3): Likewise.
3627         (smax<mode>3_vsx): Likewise.
3628         (smin<mode>3): Likewise.
3629         (s<minmax><mode>3_vsx): Likewise.
3630         (smin<mode>3_vsx): Likewise.
3631         (pre-VSX min/max splitters): Likewise.
3632         (s<minmax><mode>3_fpr): Likewise.
3633         (movsfcc): Rewrite floating point conditional moves to combine
3634         SFmode/DFmode into a single insn.
3635         (mov<mode>cc): Likewise.
3636         (movdfcc): Likewise.
3637         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
3638         SFDF2 iterators to handle all combinations.
3639         (fseldfsf4): Likewise.
3640         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
3641         (fseldfdf4): Likewise.
3642         (fselsfdf4): Likewise.
3643         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
3644         comparison instructions that set a 0/-1 mask, and use it for
3645         floating point conditional move via XXSEL.
3646         (fpmask<mode>): Likewise.
3647         (xxsel<mode>): Likewise.
3648         * config/rs6000/predicates.md (min_max_operator): Delete, no
3649         longer used.
3650         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
3651         instructions that generate a 0/-1 mask for use with XXSEL.
3652         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
3653         say whether floating point min/max is available, either through
3654         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
3655         (TARGET_MINMAX_DF): Likewise.
3656
3657         Back port from trunk
3658         2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3659
3660         * config/rs6000/predicate.md (all_ones_constant): New predicate
3661         for vector constant with all 1's set.
3662
3663 2016-06-02  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3664
3665         Back port from trunk
3666         2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3667
3668         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
3669         (UNSPEC_DARN_32): New unspec constant.
3670         (UNSPEC_DARN_RAW): New unspec constant.
3671         (darn_32): New instruction.
3672         (darn_raw): New instruction.
3673         (darn): New instruction.
3674         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
3675         support and documentation for this macro.
3676         (BU_P9_MISC_1): New macro definition.
3677         (BU_P9_64BIT_MISC_0): New macro definition.
3678         (BU_P9_MISC_0): New macro definition.
3679         (darn_32): New builtin definition.
3680         (darn_raw): New builtin definition.
3681         (darn): New builtin definition.
3682         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
3683         RS6000_BUILTIN_0 directives to surround each occurrence of
3684         #include "rs6000-builtin.def".
3685         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
3686         RS6000_BTM_64BIT flags to the returned mask, depending on
3687         configuration.
3688         (def_builtin): Correct an error in the assignments made to the
3689         debugging variable attr_string.
3690         (rs6000_expand_builtin): Add support for no-operand built-in
3691         functions.
3692         (builtin_function_type): Remove fatal_error assertion that is no
3693         longer valid.
3694         (rs6000_common_init_builtins): Add support for no-operand built-in
3695         functions.
3696         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
3697         definition.
3698         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
3699         definition.
3700         (RS6000_BTM_64BIT): New macro definition.
3701         * doc/extend.texi: Document __builtin_darn (void),
3702         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
3703         functions.
3704
3705 2016-06-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
3706
3707         Back port from trunk
3708         2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3709
3710         PR target/71201
3711         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
3712         ISA 3.0 xxperm fusion alternative.
3713         (altivec_vperm_v8hiv16qi): Likewise.
3714         (altivec_vperm_<mode>_uns_internal): Likewise.
3715         (vperm_v8hiv4si): Likewise.
3716         (vperm_v16qiv8hi): Likewise.
3717
3718         Back port from trunk
3719         2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3720                     Kelvin Nilsen  <kelvin@gcc.gnu.org>
3721
3722         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
3723         vpermr/xxpermr on ISA 3.0.
3724         (altivec_expand_vec_perm_le): Likewise.
3725         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
3726         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
3727         ISA 3.0.
3728
3729         Back port from trunk
3730         2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3731
3732         * config/rs6000/altivec.md (VParity): New mode iterator for vector
3733         parity built-in functions.
3734         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
3735         zeros.
3736         (p9v_parity<mode>2): Likewise.
3737         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
3738         parity.
3739         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
3740         (parity<mode>2): ISA 3.0 expander for vector parity.
3741         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
3742         power9 built-ins.
3743         (BU_P9_64BIT_MISC_0): Likewise.
3744         (BU_P9_MISC_0): Likewise.
3745         (BU_P9V_AV_1): Likewise.
3746         (BU_P9V_AV_2): Likewise.
3747         (BU_P9V_AV_3): Likewise.
3748         (BU_P9V_AV_P): Likewise.
3749         (BU_P9V_VSX_1): Likewise.
3750         (BU_P9V_OVERLOAD_1): Likewise.
3751         (BU_P9V_OVERLOAD_2): Likewise.
3752         (BU_P9V_OVERLOAD_3): Likewise.
3753         (VCTZB): Add vector count trailing zeros support.
3754         (VCTZH): Likewise.
3755         (VCTZW): Likewise.
3756         (VCTZD): Likewise.
3757         (VPRTYBD): Add vector parity support.
3758         (VPRTYBQ): Likewise.
3759         (VPRTYBW): Likewise.
3760         (VCTZ): Add overloaded vector count trailing zeros support.
3761         (VPRTYB): Add overloaded vector parity support.
3762         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3763         overloaded vector count trailing zeros and parity instructions.
3764         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
3765         vector parity support.
3766         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
3767         trailing zeros support.
3768         (vec_cntlz): Likewise.
3769         (vec_vctzb): Likewise.
3770         (vec_vctzd): Likewise.
3771         (vec_vctzh): Likewise.
3772         (vec_vctzw): Likewise.
3773         (vec_vprtyb): Add ISA 3.0 vector parity support.
3774         (vec_vprtybd): Likewise.
3775         (vec_vprtybw): Likewise.
3776         (vec_vprtybq): Likewise.
3777         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3778         the ISA 3.0 vector count trailing zeros and vector parity built-in
3779         functions.
3780
3781         Back port from trunk
3782         2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3783
3784         * config/rs6000/altivec.md (VNEG iterator): New iterator for
3785         VNEGW/VNEGD instructions.
3786         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
3787         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
3788         support for ISA 3.0 VNEGW/VNEGD instructions.
3789
3790         Back port from trunk
3791         2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3792
3793         * config/rs6000/predicates.md (quad_memory_operand): Move most of
3794         the code into quad_address_p and call it to share code with
3795         vsx_quad_dform_memory_operand.
3796         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
3797         d-form support.
3798         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
3799         bit instead of being a separate word.  Split -mpower9-dform into
3800         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
3801         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
3802         for the register class supporting 128-bit quad word memory offsets.
3803         (mode_supports_vsx_dform_quad): Helper function to return if the
3804         register class uses quad word memory offsets.
3805         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
3806         (rs6000_debug_reg_global): Always print if we are using LRA or not.
3807         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
3808         instructions are enabled, set up the appropriate addr_masks for
3809         128-bit types.
3810         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
3811         -mpower9-dform-scalar, instead of -mpower9-dform.
3812         (rs6000_option_override_internal): Split -mpower9-dform into two
3813         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
3814         -mpower9-dform switch sets or clears both.  If we are not using
3815         the LRA register allocator, do not enable -mpower9-dform-vector by
3816         default.  If we are using LRA, enable -mpower9-dform-vector and
3817         -mvsx-timode if it is appropriate.  Issue a warning if either
3818         -mpower9-dform-vector or -mvsx-timode are explicitly used without
3819         enabling LRA.
3820         (quad_address_offset_p): New helper function to return if the
3821         offset is legal for quad word memory instructions.
3822         (quad_address_p): New function to determin if GPR or vector
3823         register quad word memory addresses are legal.
3824         (mem_operand_gpr): Validate quad word address offsets.
3825         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
3826         d-form (register + offset) instructions.
3827         (offsettable_ok_by_alignment): Likewise.
3828         (rs6000_legitimate_offset_address_p): Likewise.
3829         (legitimate_lo_sum_address_p): Likewise.
3830         (rs6000_legitimize_address): Likewise.
3831         (rs6000_legitimize_reload_address): Add more debug statements for
3832         -mdebug=addr.
3833         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
3834         d-form instructions.
3835         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
3836         d-form instructions.  Distinguish different cases in debug
3837         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
3838         d-form instructions.
3839         (rs6000_preferred_reload_class): Likewise.
3840         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
3841         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
3842         of the ISA 2.06 indexed memory instructions.
3843         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
3844         use them to save/restore the saved vector registers instead of
3845         using Altivec instructions.
3846         (rs6000_emit_epilogue): Likewise.
3847         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
3848         (rs6000_opt_masks): Split -mpower9-dform into
3849         -mpower9-dform-scalar and -mpower9-dform-vector.
3850         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
3851         was not selected.
3852         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
3853         ISA 3.0 vector indexed memory instructions, and fold the code into
3854         the normal mov<mode> patterns.
3855         (p9_vecstore_<mode>): Likewise.
3856         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
3857         instructions.
3858         (vsx_movti_64bit): Likewise.
3859         (vsx_movti_32bit): Likewise.
3860         * config/rs6000/constraints.md (wO constraint): New constraint for
3861         ISA 3.0 vector d-form support.
3862         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
3863         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
3864         include -mpower9-dform-vector until we switch over to LRA.
3865         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
3866         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
3867         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
3868         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
3869         for -mpower9-dform and -mlra.
3870         * doc/md.texi (wO constraint): Document wO constraint.
3871
3872 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3873
3874         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
3875         the factor for live Phi nodes.
3876
3877 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
3878
3879         PR middle-end/71371
3880         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
3881         around creation of the temporary.
3882
3883 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3884
3885         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
3886         into account live statements for mask producers.
3887
3888 2016-05-31  Richard Biener  <rguenther@suse.de>
3889
3890         Backport from mainline
3891         2016-05-11  Richard Biener  <rguenther@suse.de>
3892
3893         PR debug/71057
3894         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
3895         (dwarf2out_finish): Move retry_incomplete_types call ...
3896         (dwarf2out_early_finish): ... here.
3897
3898 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3899
3900         PR target/71056
3901         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
3902         NULL_TREE early if NEON is not available.  Remove now redundant check
3903         in ARM_CHECK_BUILTIN_MODE.
3904
3905 2016-05-31  Tom de Vries  <tom@codesourcery.com>
3906
3907         backport:
3908         2016-05-31  Tom de Vries  <tom@codesourcery.com>
3909
3910         PR tree-optimization/69068
3911         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
3912         phis with more than two args.
3913
3914 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
3915
3916         Backport from mainline
3917         2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
3918
3919         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
3920         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
3921         target.
3922
3923 2016-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3924
3925         Backport from mainline
3926         2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3927
3928         * config/rs6000/altivec.h: Change definitions of vec_xl and
3929         vec_xst.
3930         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
3931         (LD_ELEMREV_V2DI): New.
3932         (LD_ELEMREV_V4SF): New.
3933         (LD_ELEMREV_V4SI): New.
3934         (LD_ELEMREV_V8HI): New.
3935         (LD_ELEMREV_V16QI): New.
3936         (ST_ELEMREV_V2DF): New.
3937         (ST_ELEMREV_V2DI): New.
3938         (ST_ELEMREV_V4SF): New.
3939         (ST_ELEMREV_V4SI): New.
3940         (ST_ELEMREV_V8HI): New.
3941         (ST_ELEMREV_V16QI): New.
3942         (XL): New.
3943         (XST): New.
3944         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3945         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
3946         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
3947         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
3948         (altivec_expand_builtin): Add handling for
3949         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
3950         (rs6000_invalid_builtin): Add error-checking for
3951         RS6000_BTM_P9_VECTOR.
3952         (altivec_init_builtins): Define builtins used to implement vec_xl
3953         and vec_xst.
3954         (rs6000_builtin_mask_names): Define power9-vector.
3955         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
3956         (RS6000_BTM_P9_VECTOR): Define.
3957         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
3958         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
3959         (vsx_ld_elemrev_v2df): Likewise.
3960         (vsx_ld_elemrev_v4sf): Likewise.
3961         (vsx_ld_elemrev_v4si): Likewise.
3962         (vsx_ld_elemrev_v8hi): Likewise.
3963         (vsx_ld_elemrev_v16qi): Likewise.
3964         (vsx_st_elemrev_v2df): Likewise.
3965         (vsx_st_elemrev_v2di): Likewise.
3966         (vsx_st_elemrev_v4sf): Likewise.
3967         (vsx_st_elemrev_v4si): Likewise.
3968         (vsx_st_elemrev_v8hi): Likewise.
3969         (vsx_st_elemrev_v16qi): Likewise.
3970         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
3971         grammar.
3972
3973 2016-05-30  Richard Biener  <rguenther@suse.de>
3974
3975         Backport from mainline
3976         2016-05-11  Richard Biener  <rguenther@suse.de>
3977
3978         PR middle-end/71002
3979         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
3980         if the langhook insists on it.
3981         * fold-const.c (make_bit_field_ref): Add arg for the original
3982         reference and preserve its alias-set.
3983         (decode_field_reference): Take exp by reference and adjust it
3984         to the original memory reference.
3985         (optimize_bit_field_compare): Adjust callers.
3986         (fold_truth_andor_1): Likewise.
3987
3988         2016-05-13  Jakub Jelinek  <jakub@redhat.com>
3989
3990         PR bootstrap/71071
3991         * fold-const.c (fold_checksum_tree): Allow modification
3992         of TYPE_ALIAS_SET during folding.
3993
3994 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
3995
3996         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
3997         (visium_expand_copysign): Use gen_int_mode directly.
3998         (visium_compute_frame_size): Minor tweaks.
3999
4000 2016-05-30  Tom de Vries  <tom@codesourcery.com>
4001
4002         backport:
4003         2016-05-30  Tom de Vries  <tom@codesourcery.com>
4004
4005         PR tree-optimization/69067
4006         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
4007
4008 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4009
4010         * config/visium/visium-protos.h (split_double_move): Rename into...
4011         (visium_split_double_move): ...this.
4012         (visium_split_double_add): Declare.
4013         * config/visium/visium.c (split_double_move): Rename into...
4014         (visium_split_double_move): ...this.
4015         (visium_split_double_add): New function.
4016         (visium_expand_copysign): Renumber operands for consistency.
4017         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
4018         (DFmode move splitter): Likewise.
4019         (*addi3_insn): Split by means of visium_split_double_add.
4020         (*adddi3_insn_flags): Delete.
4021         (*plus_plus_sltu<subst_arith>): New insn.
4022         (*subdi3_insn): Split by means of visium_split_double_add.
4023         (subdi3_insn_flags): Delete.
4024         (*minus_minus_sltu<subst_arith>): New insn.
4025         (*negdi2_insn): Split by means of visium_split_double_add.
4026         (*negdi2_insn_flags): Delete.
4027
4028 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
4029
4030         Backport from mainline r236810.
4031         2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
4032
4033         PR middle-end/71279
4034         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
4035         into comparison.
4036
4037 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4038
4039         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
4040         redundant test and bail out if the type of the new operand is not
4041         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
4042
4043 2016-05-24  Martin Sebor  <msebor@redhat.com>
4044
4045         PR c++/71147
4046         * tree.h (complete_or_array_type_p): New inline function.
4047
4048 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
4049
4050         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
4051         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
4052         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.  Use SSE_REGS instead
4053         of ALL_SSE_REGS.  Return SSE_REGS also when TARGET_AVX.
4054
4055 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
4056
4057         PR c++/71257
4058         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
4059         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
4060         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
4061         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
4062         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
4063
4064 2016-05-23  Martin Jambor  <mjambor@suse.cz>
4065
4066         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
4067         default block if a PHI node in the original one would be resized.
4068
4069 2016-05-23  Martin Jambor  <mjambor@suse.cz>
4070
4071         PR tree-optimization/70884
4072         * tree-sra.c (initialize_constant_pool_replacements): Do not check
4073         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
4074         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
4075         of constant pool data as a reason for scalarization.
4076
4077 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
4078
4079         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
4080         for naked functions.
4081         (thumb1_expand_prologue): Likewise.
4082
4083 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
4084
4085         PR c++/71210
4086         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
4087         calls if the LHS is variable length or has addressable type.
4088         If targets[0]->decl is a noreturn call with void return type and
4089         zero arguments, adjust fntype and remove lhs in that case.
4090
4091 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
4092
4093         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
4094         force pending loads from memory.
4095
4096 2016-05-19  Marek Polacek  <polacek@redhat.com>
4097
4098         Backport from mainline
4099         2016-05-19  Marek Polacek  <polacek@redhat.com>
4100
4101         PR tree-optimization/71031
4102         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
4103         condition and adjust the code a bit.
4104
4105 2016-05-19  Martin Jambor  <mjambor@suse.cz>
4106
4107         PR ipa/70646
4108         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
4109         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
4110
4111 2016-05-19  Martin Jambor  <mjambor@suse.cz>
4112
4113         PR ipa/70646
4114         * ipa-inline.h (condition): New field size.
4115         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
4116         for comaprison and store it into the new condition.
4117         (evaluate_conditions_for_known_args): Use condition size to check
4118         access sizes for all but CHANGED conditions.
4119         (unmodified_parm_1): New parameter size_p, store access size into it.
4120         (unmodified_parm): Likewise.
4121         (unmodified_parm_or_parm_agg_item): Likewise.
4122         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
4123         (set_cond_stmt_execution_predicate): Extract access sizes and store
4124         them to conditions.
4125         (set_switch_stmt_execution_predicate): Likewise.
4126         (will_be_nonconstant_expr_predicate): Likewise.
4127         (will_be_nonconstant_predicate): Likewise.
4128         (inline_read_section): Stream condition size.
4129         (inline_write_summary): Likewise.
4130         * lto-streamer.h (LTO_minor_version): Bump.
4131
4132 2016-05-18  Martin Liska  <mliska@suse.cz>
4133
4134         Backport from mainline
4135         2016-05-18  Martin Liska  <mliska@suse.cz>
4136
4137         PR fortran/70856
4138         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
4139         merged variables.
4140
4141 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
4142
4143         PR c++/71100
4144         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
4145         lhs if it has TREE_ADDRESSABLE type.
4146
4147 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
4148
4149         PR target/71145
4150         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
4151         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
4152
4153 2016-05-17  Thomas Schwinge  <thomas@codesourcery.com>
4154
4155         Backport trunk r235748:
4156         PR target/70860
4157         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
4158         (nvptx_function_value): Assert non-NULL cfun.
4159
4160 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4161
4162         Backport from mainline
4163         2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4164
4165         PR target/70809
4166         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
4167
4168 2016-05-16  Martin Jambor  <mjambor@suse.cz>
4169
4170         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
4171         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
4172
4173 2016-05-16  Martin Jambor  <mjambor@suse.cz>
4174
4175         PR hsa/70857
4176         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
4177         the outlined kernel function.
4178
4179 2016-05-16  James Norris  <jnorris@codesourcery.com>
4180
4181         Backport from mainline r236098.
4182         2016-05-10  James Norris  <jnorris@codesourcery.com>
4183
4184         PR driver/68463
4185         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
4186         if offloading is enabled and -fopenacc or -fopenmp is specified.
4187         (CRTOFFLOADEND): Likewise.
4188         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
4189         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
4190
4191 2016-05-16  Alan Modra  <amodra@gmail.com>
4192
4193         Apply from mainline
4194         2016-05-10  Alan Modra  <amodra@gmail.com>
4195         PR target/70947
4196         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
4197         regrename modifying insns saving lr before __morestack call.
4198         * config/rs6000/rs6000.md (split_stack_return): Similarly for
4199         insns restoring lr after __morestack call.
4200
4201 2016-05-13  Richard Biener  <rguenther@suse.de>
4202
4203         Backport from mainline
4204         2016-04-27  Richard Biener  <rguenther@suse.de>
4205
4206         PR ipa/70760
4207         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
4208         aggregate_value_p to determine if a function result is
4209         returned by reference.
4210
4211         2016-05-06  Richard Biener  <rguenther@suse.de>
4212
4213         PR middle-end/70931
4214         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
4215
4216         2016-05-06  Richard Biener  <rguenther@suse.de>
4217
4218         PR middle-end/70941
4219         * fold-const.c (split_tree): Always convert to the original type
4220         before negating.
4221
4222 2016-05-12  Martin Liska  <mliska@suse.cz>
4223
4224         Backport from mainline
4225         2016-05-10  Martin Liska  <mliska@suse.cz>
4226
4227         * tree-inline.c (remap_dependence_clique): Do not remap
4228         debugging statements.
4229
4230 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
4231
4232         Backport from mainline r236171.
4233         2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
4234
4235         PR tree-optimization/71006
4236         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4237         consider COND_EXPR as a mask producer.
4238
4239 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4240
4241         Backport from mainline
4242         2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4243
4244         PR target/70830
4245         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
4246         when popping the PC and within an interrupt handler routine.
4247         Add missing tab to output of "ldmfd".
4248         (output_return_instruction): Output LDMFD with SP update rather
4249         than POP when returning from interrupt handler.
4250
4251 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
4252
4253         Backport from mainline r236088.
4254         2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4255
4256         PR middle-end/70877
4257         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
4258         calls with type casted fndecl.
4259
4260 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
4261
4262         Backport from mainline r236086.
4263         2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4264
4265         PR tree-optimization/70876
4266         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
4267         * gcc/calls.c (initialize_argument_information): Bind bounds
4268         with corresponding args passed by reference.
4269
4270 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4271
4272         Backport from mainline
4273         2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4274
4275         PR target/70963
4276         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
4277         code for a zero scale factor.
4278         (vsx_xvcvdpuxds_scale): Likewise.
4279
4280 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
4281
4282         Backported from mainline
4283         2016-05-03  Jakub Jelinek  <jakub@redhat.com>
4284
4285         PR tree-optimization/70916
4286         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
4287         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
4288
4289 2016-05-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
4290
4291         Backport from mainline r235962.
4292         2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
4293
4294         PR debug/70935
4295         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
4296         loop latch destination.
4297
4298 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4299
4300         Backport from mainline
4301         2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4302
4303         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
4304         ("*fixuns_truncdfdi2_z13")
4305         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
4306         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
4307         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
4308
4309 2016-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4310
4311         Backport from mainline
4312         2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4313
4314         * config/rtems.h (LIB_SPEC): Add -latomic.
4315
4316 2016-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4317
4318         Backport from mainline
4319         2016-04-27  Joel Sherrill  <joel@rtems.org>
4320
4321         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
4322         xilink.ld and flags not relevant to RTEMS.
4323
4324 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
4325
4326         * config/i386/i386.md (absneg splitters with general regs): Use
4327         general_reg_operand predicate.
4328         (btsq peephole2): Use x86_64_immediate_operand to check if new
4329         value is suitable for immediate operand.  Generate emitted insn
4330         using RTL expressions.
4331         (btcq peephole2): Ditto.
4332         (btrq peephole2): Ditto.  Generate correct immediate operand
4333         for AND masking.
4334
4335 2016-05-07  Tom de Vries  <tom@codesourcery.com>
4336
4337         backport:
4338         2016-05-07  Tom de Vries  <tom@codesourcery.com>
4339
4340         PR tree-optimization/70956
4341         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
4342         def.
4343
4344 2016-05-06  Marek Polacek  <polacek@redhat.com>
4345
4346         Backported from mainline
4347         2016-05-06  Marek Polacek  <polacek@redhat.com>
4348
4349         PR sanitizer/70875
4350         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
4351
4352 2016-05-06  Marek Polacek  <polacek@redhat.com>
4353
4354         Backported from mainline
4355         2016-04-29  Marek Polacek  <polacek@redhat.com>
4356                     Jakub Jelinek  <jakub@redhat.com>
4357
4358         PR sanitizer/70342
4359         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
4360         TARGET_EXPR_SLOT as a base.
4361
4362 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
4363
4364         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
4365         comment.
4366         (compute_samebase_partition_bases): Fix typo.
4367
4368 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
4369
4370         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
4371         occurence with frame_offset_ ones.
4372
4373 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
4374
4375         PR target/70858
4376         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
4377         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
4378         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
4379         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
4380         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
4381
4382 2016-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4383
4384         Backport from mainline
4385         2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
4386
4387         PR ada/70759
4388         * stor-layout.h (internal_reference_types): Delete.
4389         * stor-layout.c (reference_types_internal): Likewise.
4390         (internal_reference_types): Likewise.
4391         (layout_type) <REFERENCE_TYPE>: Adjust.
4392
4393 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4394
4395         Backport from mainline
4396         2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4397
4398         * config/rs6000/rs6000-builtin.def: Correct pasto error for
4399         stxvd2x and stxvw4x built-in functions.
4400
4401 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
4402
4403         Backported from mainline
4404         2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
4405
4406         PR target/70750
4407         * config/i386/predicates.md (call_insn_operand): Replace
4408         sibcall_memory_operand with memory_operand.
4409
4410 2016-04-27  Richard Biener  <rguenther@suse.de>
4411
4412         PR ipa/70785
4413         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
4414         function cummulating used_from_other_partition, externally_visible
4415         and force_output from aliases.
4416         (refered_from_nonlocal_var): Likewise.
4417         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
4418         node flags properly.
4419
4420 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
4421
4422         Backported from mainline
4423         2016-04-23  Jakub Jelinek  <jakub@redhat.com>
4424
4425         PR sanitizer/70712
4426         * cfgexpand.c (expand_stack_vars): Fix typo.
4427
4428         2016-04-19  Jakub Jelinek  <jakub@redhat.com>
4429
4430         PR middle-end/70680
4431         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
4432         implicitly linear or lastprivate iterator on the outer context.
4433
4434 2016-04-27  Kirill Yukhin  <kirill.yukhin@intel.com>
4435
4436         PR target/70728
4437         * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
4438         Extract AVX-512BW constraint from AVX.
4439
4440 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
4441
4442         * BASE-VER: Set to 6.1.1.
4443
4444 2016-04-27  Release Manager
4445
4446         * GCC 6.1.0 released.
4447
4448 2016-04-25  Richard Biener  <rguenther@suse.de>
4449
4450         PR tree-optimization/70780
4451         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
4452         wasn't visited yet.
4453         (compute_antic): Mark blocks with abnormal preds as visited as
4454         they have a final empty antic-in solution already.
4455
4456 2016-04-22  H.J. Lu  <hongjiu.lu@intel.com>
4457
4458         Backport from mainline
4459         2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
4460
4461         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
4462
4463 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4464
4465         * system.h (list, map, set, vector): Include conditionally.
4466         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
4467         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
4468         * ipa-icf.c (INCLUDE_LIST): Define.
4469         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
4470         * config/sh/sh.c (INCLUDE_VECTOR): Define.
4471         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
4472         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
4473         * cp/logic.cc (INCLUDE_LIST): Define.
4474         * fortran/trans-common.c (INCLUDE_MAP): Define.
4475
4476 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4477
4478         * auto-profile.c: Remove <string.h> include.
4479         * ipa-icf-gimple.c: Remove <list> include.
4480         * diagnostic.c: Remove <new> include.
4481         * genmatch.c: Likewise.
4482         * pretty-print.c: Likewise.
4483         * toplev.c: Likewise
4484         * c/c-objc-common.c: Likewise.
4485         * cp/error.c: Likewise.
4486         * fortran/error.c: Likewise.
4487
4488 2016-04-21  Richard Biener  <rguenther@suse.de>
4489
4490         PR middle-end/70747
4491         * fold-const.c (fold_comparison): Return properly typed
4492         constant boolean.
4493
4494 2016-04-20  Andrew Pinski  <apinski@cavium.com>
4495             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4496
4497         PR target/64971
4498         * config/aarch64/aarch64.md (sibcall): Force call
4499         address to be DImode for ILP32.
4500         (sibcall_value): Likewise.
4501
4502 2016-04-20  Marek Polacek  <polacek@redhat.com>
4503
4504         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
4505         rather than true.
4506
4507 2016-04-20  Marek Polacek  <polacek@redhat.com>
4508
4509         PR tree-optimization/70725
4510         * tree-if-conv.c (is_false_predicate): New function.
4511         (predicate_mem_writes): Use it.
4512
4513 2016-04-20  Richard Biener  <rguenther@suse.de>
4514
4515         PR tree-optimization/70726
4516         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
4517         shift amounts from a pattern stmt operand.
4518
4519 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4520
4521         PR target/70674
4522         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
4523         stack_restore_from_fpr pattern when restoring r15.
4524         (s390_optimize_prologue): Strip away the memory barrier in the
4525         parallel when trying to get rid of restore insns.
4526         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
4527         definition for loading the stack pointer from an FPR.  Compared to
4528         the normal move insn this pattern includes a full memory barrier.
4529
4530 2016-04-19  Richard Biener  <rguenther@suse.de>
4531
4532         PR tree-optimization/70724
4533         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
4534         restoring out from ...
4535         (free_scc_vn): ... here.
4536         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
4537         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
4538         tail merging.
4539         (pass_fre::execute): Restore SSA info.
4540
4541 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4542
4543         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
4544         gld requirements.
4545         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc
4546         versions.
4547         Mention Solaris 11 packaging changes.
4548         Update gas and gld requirements.
4549         Remove reference to pre-Solaris 10 bug.
4550         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
4551         systems and bugs.
4552         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
4553         with cc.
4554
4555 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
4556
4557         PR target/70711
4558         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
4559         armv8.1-a and armv8.1-a+crc.
4560
4561 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
4562
4563         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
4564         unless compiling with at least GCC-4.8.
4565
4566 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
4567
4568         PR target/70662
4569         * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode><mask_name>"):
4570         Fix mode size check.
4571
4572 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
4573
4574         * BASE-VER: Set to 6.0.1.
4575         * DEV-PHASE: Set to prerelease.
4576
4577 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
4578
4579         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
4580
4581 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4582
4583         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
4584         architecture revisions.
4585
4586 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
4587
4588         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
4589         * config/i386/i386.c (ix86_using_red_zone): No longer static.
4590         * config/i386/i386.md (stack decrement to push peepholes): Guard
4591         with !x86_using_red_zone ().
4592
4593 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
4594
4595         PR c++/70675
4596         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
4597         to dump_generic_node.
4598         (NIY): Pass also flags to do_niy.
4599
4600 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
4601
4602         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
4603         (simd_clone_vector_of_formal_parm_types)
4604         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
4605         (simd_clone_mangle, simd_clone_create)
4606         (simd_clone_adjust_return_type, create_tmp_simd_array)
4607         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
4608         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
4609         (ipa_simd_modify_function_body, simd_clone_linear_addend)
4610         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
4611         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
4612         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move
4613         into...
4614         * omp-simd-clone.c: ... this new file.
4615         (simd_clone_vector_of_formal_parm_types): Make it static.
4616         * Makefile.in (OBJS): Add omp-simd-clone.o.
4617
4618 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
4619
4620         PR target/70662
4621         * config/i386/sse.md: Use proper memory operand
4622         modifiers.
4623
4624
4625 2016-04-15  Richard Biener  <rguenther@suse.de>
4626         Alan Modra  <amodra@gmail.com>
4627
4628         PR tree-optimization/70130
4629         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
4630         when alignment stays not the same and no not use the realign
4631         scheme then.
4632
4633 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4634
4635         PR target/70669
4636         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
4637         direct move handlers for KFmode. Change TFmode handlers test from
4638         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
4639
4640 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
4641
4642         PR c++/70594
4643         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
4644         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
4645         (inlined_polymorphic_ctor_dtor_block_p): Use it.
4646         * tree-ssa-live.c (remove_unused_scope_block_p): When
4647         in_ctor_dtor_block, avoid discarding not just BLOCKs with
4648         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
4649         block_ultimate_origin is FUNCTION_DECL.
4650         (remove_unused_locals): If current_function_decl is
4651         polymorphic_ctor_dtor_p, pass initial true to
4652         remove_unused_scope_block_p' is_ctor_dtor_block.
4653
4654 2016-04-14  Martin Sebor  <msebor@redhat.com>
4655
4656         PR c++/69517
4657         PR c++/70019
4658         PR c++/70588
4659         * doc/extend.texi (Variable Length): Revert.
4660
4661 2016-04-14  Marek Polacek  <polacek@redhat.com>
4662             Jan Hubicka  <hubicka@ucw.cz>
4663
4664         PR c++/70029
4665         * tree.c (verify_type): Disable the canonical type of main variant
4666         check.
4667
4668 2016-04-14  Jason Merrill  <jason@redhat.com>
4669
4670         * cfgexpand.c, expr.c: Revert previous change.
4671
4672 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
4673
4674         PR middle-end/70643
4675         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
4676         when building a mem ref for the incoming reduction variable.
4677
4678 2016-04-14  Richard Biener  <rguenther@suse.de>
4679
4680         PR tree-optimization/70614
4681         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
4682         loop if the evolution dropped to chrec_dont_know.
4683         (interpret_condition_phi): Likewise.
4684
4685 2016-04-14  Richard Biener  <rguenther@suse.de>
4686
4687         PR tree-optimization/70623
4688         * tree-ssa-pre.c (changed_blocks): Make global ...
4689         (compute_antic): ... local here.  Move and fix worklist
4690         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
4691         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
4692         worklist handling, dump when ANTIC_IN changed.
4693         (compute_partial_antic_aux): Remove worklist handling.
4694         (init_pre): Do not compute post dominators.  Add a comment about
4695         the CFG order chosen.
4696         (fini_pre): Do not free post dominators.
4697
4698 2016-04-13  Martin Sebor  <msebor@redhat.com>
4699
4700         PR c++/69517
4701         PR c++/70019
4702         PR c++/70588
4703         * doc/extend.texi (Variable Length): Document C++ specifics.
4704
4705 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
4706
4707         PR c++/70641
4708         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
4709         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
4710         eh edges have been purged.
4711
4712         PR c++/70594
4713         * tree-sra.c (create_access_replacement,
4714         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
4715         gets fancy name.
4716         * tree-pretty-print.c (dump_fancy_name): New function.
4717         (dump_decl_name, dump_generic_node): Use it.
4718
4719 2016-04-13  Jason Merrill  <jason@redhat.com>
4720
4721         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
4722         * expr.c (expand_expr_real_1): Likewise.
4723
4724 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
4725
4726         * config/i386/i386.md (kunpckhi): Swap operands.
4727         (kunpcksi): Likewise.
4728         (kunpckdi): Likewise.
4729         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
4730         (vec_pack_trunc_<mode>): Likewise.
4731
4732 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
4733
4734         PR debug/70628
4735         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
4736
4737         PR middle-end/70633
4738         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
4739         gimplification turns some element into non-constant.
4740
4741         PR debug/70628
4742         * rtl.h (convert_memory_address_addr_space_1): New prototype.
4743         * explow.c (convert_memory_address_addr_space_1): No longer static,
4744         add NO_EMIT argument and don't call convert_modes if true, pass
4745         it down recursively, remove break after return.
4746         (convert_memory_address_addr_space): Adjust caller.
4747         * simplify-rtx.c (simplify_unary_operation_1): Call
4748         convert_memory_address_addr_space_1 instead of convert_memory_address,
4749         if it returns NULL, don't simplify.
4750
4751 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
4752
4753         PR target/70630
4754         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
4755
4756 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
4757
4758         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4759         Bump the upper SIMDLEN limits, so that if the return type or
4760         characteristic type if the return type is void can be passed in
4761         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
4762         allowed.
4763
4764 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4765
4766         PR target/70640
4767         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
4768         Do not use "=" constraint on an input constraint.
4769         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
4770         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
4771         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
4772         generates (neg (abs ...)) instead of (abs ...).
4773
4774 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
4775
4776         PR rtl-optimization/70596
4777         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
4778         just invalidate LRA data and reset them.  Adjust dump wording.
4779
4780 2016-04-12  Martin Liska  <mliska@suse.cz>
4781
4782         Revert
4783         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
4784
4785         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
4786         estimates here.
4787         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
4788         max_loop_iterations_int.
4789         (tree_unswitch_outer_loop): Likewise.
4790         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4791         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4792
4793 2016-04-12  Tom de Vries  <tom@codesourcery.com>
4794
4795         PR tree-optimization/68756
4796         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
4797         instead of new_name.
4798
4799 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
4800
4801         PR tree-optimization/70602
4802         * tree-sra.c (generate_subtree_copies): Don't write anything into
4803         constant pool decls.
4804
4805         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
4806         regardless whether there are depend clauses or not.
4807
4808 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
4809
4810         PR target/70381
4811         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
4812         target attribute and pragma from changing the -mfloat128
4813         and -mfloat128-hardware options.
4814
4815         * doc/extend.texi (Additional Floating Types): Document PowerPC
4816         __float128 restrictions.
4817
4818 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
4819
4820         PR target/70133
4821         * config/aarch64/driver-aarch64.c
4822         (aarch64_get_extension_string_for_isa_flags): New.
4823         (arch_extension): Rename to...
4824         (aarch64_arch_extension): ...This.
4825         (ext_to_feat_string): Rename to...
4826         (aarch64_extensions): ...This.
4827         (aarch64_core_data): Keep track of architecture extension flags.
4828         (cpu_data): Rename to...
4829         (aarch64_cpu_data): ...This.
4830         (aarch64_arch_driver_info): Keep track of architecture extension
4831         flags.
4832         (get_arch_name_from_id): Rename to...
4833         (get_arch_from_id): ...This, change return type.
4834         (host_detect_local_cpu): Update and reformat for renames, handle
4835         extensions through common infrastructure.
4836
4837 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
4838
4839         PR target/70133
4840         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
4841         track of a canonical flag name.
4842         (all_extensions): Likewise.
4843         (arch_to_arch_name): Also track extension flags enabled by the arch.
4844         (all_architectures): Likewise.
4845         (aarch64_parse_extension): Move to here.
4846         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
4847         rework.
4848         (aarch64_rewrite_selected_cpu): Update for above change.
4849         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
4850         are handled, such that the single explicit value enabled by an
4851         extension is kept seperate from the implicit values it also enables.
4852         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
4853         to here.
4854         (aarch64_parse_extension): New.
4855         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
4856         here to config/aarch64/aarch64-protos.h.
4857         (aarch64_parse_extension): Move from here to
4858         common/config/aarch64/aarch64-common.c.
4859         (aarch64_option_print): Update.
4860         (aarch64_declare_function_name): Likewise.
4861         (aarch64_start_file): Likewise.
4862         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
4863         the canonical flag for extensions.
4864         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
4865         flags.
4866
4867 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
4868
4869         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
4870         AARCH64_FL_CRC.
4871
4872 2016-04-09  Tom de Vries  <tom@codesourcery.com>
4873
4874         PR tree-optimization/68953
4875         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
4876         first to last subscript.
4877
4878 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
4879
4880         PR tree-optimization/70586
4881         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
4882         for any calls.
4883
4884 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
4885
4886         PR lto/70289
4887         PR ipa/70348
4888         PR tree-optimization/70373
4889         PR middle-end/70533
4890         PR middle-end/70534
4891         PR middle-end/70535
4892         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
4893         clauses for acc parallel reductions as necessary.  Error on those
4894         that are private.
4895         * omp-low.c (scan_sharing_clauses): Don't install variables which
4896         are used in acc parallel reductions.
4897         (lower_rec_input_clauses): Remove dead code.
4898         (lower_oacc_reductions): Add support for reference reductions.
4899         (lower_reduction_clauses): Remove dead code.
4900         (lower_omp_target): Don't remap variables appearing in acc parallel
4901         reductions.
4902         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
4903
4904 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
4905
4906         PR middle-end/70593
4907         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
4908         with multiple SSA_NAME defs, force the outputs other than first
4909         to be live before calling live_track_process_def on each output.
4910
4911         PR rtl-optimization/70574
4912         * fwprop.c (forward_propagate_and_simplify): Don't add
4913         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
4914         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
4915         paradoxical subregs within *loc.
4916
4917 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
4918
4919         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
4920         -ftree-parallelize-loops={0,1}.
4921         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
4922         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
4923         * config/ia64/hpux.h (LIB_SPEC): Likewise.
4924         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4925         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4926
4927 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
4928
4929         PR sanitizer/70541
4930         * asan.c (instrument_derefs): If we get unknown location, extract it
4931         with EXPR_LOCATION.
4932         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
4933
4934 2016-04-08  Tom de Vries  <tom@codesourcery.com>
4935
4936         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
4937         implicit firstprivate clause.
4938
4939 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4940
4941         PR target/70566
4942         * config/arm/thumb2.md (tst + branch-> lsls + branch
4943         peephole below *orsi_not_shiftsi_si): Require that condition
4944         register is dead after the peephole.
4945         (second peephole after the above): Likewise.
4946
4947 2016-04-08  Alan Modra  <amodra@gmail.com>
4948
4949         PR target/70117
4950         * builtins.c (fold_builtin_classify): For IBM extended precision,
4951         look at just the high-order double to test for NaN.
4952         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
4953         test just the high double for Inf but both doubles for subnormal
4954         limit.
4955
4956 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
4957
4958         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
4959         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
4960         node->simdclone->mask_mode != VOIDmode masks.
4961         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
4962         earlier, use it instead of node->simdclone.
4963         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4964         Set clonei->mask_mode.
4965
4966 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
4967
4968         PR c/70436
4969         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
4970         Pass it through to cp_parser_already_scoped_statement.
4971         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
4972         it through to cp_parser_statement.
4973         (cp_parser_statement): Pass IF_P through to
4974         cp_parser_iteration_statement.
4975         (cp_parser_pragma): Adjust call to
4976         cp_parser_iteration_statement.
4977
4978 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
4979
4980         PR c/70436
4981         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
4982         resolve a future -Wparentheses warning.
4983         * omp-low.c (scan_sharing_clauses): Likewise.
4984         * tree-parloops.c (eliminate_local_variables): Likewise.
4985
4986 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
4987
4988         PR rtl-optimization/70398
4989         * lra-constraints.c (process_address_1): Check zero scale and code
4990         for reloading with zero scale.
4991
4992 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
4993
4994         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
4995         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
4996
4997 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
4998
4999         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
5000         Add support for AVX512F clones, include them by default for
5001         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
5002         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
5003         up to 128.
5004
5005         PR middle-end/70550
5006         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
5007         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
5008         firstprivate clauses.
5009         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
5010         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
5011         (lower_omp_target): Set TREE_NO_WARNING for
5012         non-addressable possibly uninitialized vars which are copied into
5013         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
5014
5015 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
5016
5017         * config/pa/predicates.md (integer_store_memory_operand): Accept
5018         REG+D operands with a large offset when reload_in_progress is true.
5019         (floating_point_store_memory_operand): Likewise.
5020
5021 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
5022
5023         PR c++/70336
5024         * match.pd (nested int casts): Limit to GIMPLE.
5025
5026 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
5027
5028         PR ipa/66223
5029         * ipa-devirt.c (maybe_record_node): Fix comment; use
5030         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
5031
5032 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
5033
5034         PR rtl-optimization/70542
5035         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
5036         if there are any uses other than insn or debug insns.
5037
5038 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
5039             Jakub Jelinek  <jakub@redhat.com>
5040
5041         PR tree-optimization/70509
5042         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
5043         Shift HOST_WIDE_INT_1U instead of 1.
5044
5045 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
5046
5047         PR tree-optimization/70509
5048         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
5049         of the vector base type for index.
5050
5051 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
5052
5053         PR target/70510
5054         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
5055
5056 2016-04-05  Richard Biener  <rguenther@suse.de>
5057
5058         PR tree-optimization/70526
5059         * tree-sra.c (build_ref_for_offset): Use prev_base to
5060         extract the alias pointer type.
5061
5062 2016-04-05  Richard Biener  <rguenther@suse.de>
5063
5064         * dse.c (struct store_info): Remove alias_set member.
5065         (struct read_info_type): Likewise.
5066         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
5067         spill_deleted, clear_alias_set_lookup): Remove.
5068         (get_group_info): Remove dead base == NULL_RTX case.
5069         (dse_step0): Remove initialization of removed variables.
5070         (delete_dead_store_insn): Reomve alias set dumping.
5071         (free_read_records): Remove alias_set handling.
5072         (canon_address): Remove alias_set_out parameter.
5073         (record_store): Remove spill_alias_set, it's always zero.
5074         (check_mem_read_rtx): Likewise.
5075         (dse_step2): Rename from ...
5076         (dse_step2_nospill): ... this.  Adjust.
5077         (scan_stores): Rename from ...
5078         (scan_stores_nospill): ... this.
5079         (scan_reads): Rename from ...
5080         (scan_reads_nospill): ... this.
5081         (scan_stores_spill, scan_reads_spill): Remove.
5082         (dse_step3_scan): Remove for_spills argument which is always false.
5083         (dse_step3): Likewise.
5084         (dse_step5): Rename from ...
5085         (dse_step5_nospill): ... this.  Remove alias_set handling.
5086         (rest_of_handle_dse): Adjust.
5087
5088 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
5089
5090         PR target/70525
5091         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
5092         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
5093         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
5094         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
5095
5096 2016-04-05  Richard Biener  <rguenther@suse.de>
5097
5098         PR middle-end/70499
5099         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
5100         non-register type temporaries into SSA.
5101
5102 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
5103
5104         PR ipa/66223
5105         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
5106         calls when sanitizing.
5107         (possible_polymorphic_call_target_p): Fix formatting.
5108
5109 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5110             Jakub Jelinek <jakub@redhat.com>
5111
5112         PR middle-end/70457
5113         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
5114         to ensure a call statement is compatible with a built-in's
5115         prototype.
5116         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
5117         Likewise.
5118
5119 2016-04-04  Richard Biener  <rguenther@suse.de>
5120
5121         PR rtl-optimization/70484
5122         * rtl.h (canon_output_dependence): Declare.
5123         * alias.c (canon_output_dependence): New function.
5124         * dse.c (record_store): Use canon_output_dependence rather
5125         than canon_true_dependence.
5126
5127 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
5128
5129         PR ipa/68881
5130         * cgraph.h (symtab_node::copy_visibility_from): New function.
5131         * symtab.c (symtab_node::copy_visibility_from): New function.
5132         * ipa-visibility.c (optimize_weakref): New function.
5133         (function_and_variable_visibility): Use it.
5134
5135 2016-04-04  Martin Liska  <mliska@suse.cz>
5136
5137         PR hsa/70402
5138         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
5139         value that is really in range handled by SBR instruction.
5140         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
5141         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
5142         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
5143
5144 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
5145
5146         PR target/70416
5147         PR target/67391
5148         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
5149         set, but not for SP_REG operands.
5150
5151 2016-04-02  Martin Sebor  <msebor@redhat.com>
5152
5153         PR c++/67376
5154         * fold-const.c (maybe_nonzero_address): New function.
5155         (fold_comparison): Call it.  Fold equality and relational
5156         expressions involving null pointers.
5157         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
5158
5159 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
5160
5161         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
5162         the "Y" constraint (scalar FP 0.0 immediate).
5163
5164         * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
5165         Add the "const_double" to the list of operand constraints.
5166
5167 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
5168
5169         PR rtl-optimization/70467
5170         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
5171         If low word of the last operand is 0, just emit addition/subtraction
5172         for the high word.
5173
5174 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5175
5176         PR target/70404
5177         * config/s390/s390.c (s390_expand_insv): Check for everything
5178         constant instead of just VOIDmode stuff.
5179
5180 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5181
5182         PR target/70496
5183         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
5184
5185 2016-04-01  Nathan Sidwell  <nathan@acm.org>
5186
5187         * tree.def (TRY_CATCH_EXPR): Correct documentation.
5188
5189 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
5190
5191         PR rtl-optimization/70461
5192         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
5193         is necessary.
5194
5195 2016-03-31  Martin Liska  <mliska@suse.cz>
5196
5197         PR hsa/70399
5198         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
5199         a tree value or an immediate integer value to a buffer
5200         that is eventually copied to a BRIG section.
5201         (emit_immediate_operand): Call the function here.
5202         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
5203         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
5204         of class' fields that are removed.
5205         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
5206         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
5207         m_brig_repr_size fields.
5208
5209 2016-03-31  Martin Liska  <mliska@suse.cz>
5210
5211         PR hsa/70391
5212         * hsa-gen.c (hsa_function_representation::update_dominance): New
5213         function.
5214         (convert_addr_to_flat_segment): Likewise.
5215         (gen_hsa_memory_set): New alignment argument.
5216         (gen_hsa_ctor_assignment): Likewise.
5217         (gen_hsa_insns_for_single_assignment): Provide alignment
5218         to gen_hsa_ctor_assignment.
5219         (gen_hsa_insns_for_direct_call): Add new argument.
5220         (expand_lhs_of_string_op): New function.
5221         (expand_string_operation_builtin): Likewise.
5222         (expand_memory_copy): New function.
5223         (expand_memory_set): New function.
5224         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
5225         (convert_switch_statements): Change signature.
5226         (generate_hsa): Use a return value of the function.
5227         (pass_gen_hsail::execute): Do not call
5228         convert_switch_statements here.
5229         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
5230         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
5231         (hsa_function_representation::update_dominance): New function.
5232
5233 2016-03-31  Martin Liska  <mliska@suse.cz>
5234
5235         PR hsa/70391
5236         * hsa-brig.c (emit_directive_variable): Emit alignment
5237         according to hsa_symbol::m_align.
5238         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
5239         (dump_hsa_symbol): Dump alignment of HSA symbols.
5240         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
5241         (gen_hsa_addr_with_align): New function.
5242         (hsa_bitmemref_alignment): Use newly added function.
5243         (gen_hsa_insns_for_load): Likewise.
5244         (gen_hsa_insns_for_store): Likewise.
5245         (gen_hsa_memory_copy): New argument added.
5246         (gen_hsa_insns_for_single_assignment): Respect
5247         alignment for assignments processed via gen_hsa_memory_copy.
5248         (gen_hsa_insns_for_direct_call): Likewise.
5249         (gen_hsa_insns_for_return): Likewise.
5250         (gen_function_def_parameters): Set default alignment.
5251         * hsa.c (hsa_object_alignment): New function.
5252         (hsa_byte_alignment): Pasted function.
5253         * hsa.h (hsa_symbol::m_align): New field.
5254
5255 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
5256
5257         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
5258         scratch field for goto case.
5259
5260 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
5261
5262         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
5263
5264 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
5265
5266         PR target/70442
5267         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
5268         (scalar_chain::convert_insn): Call convert_op for reg
5269         moves to handle undefined registers.
5270
5271 2016-03-31  Nathan Sidwell  <nathan@acm.org>
5272
5273         PR c++/70393
5274         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
5275         Assert we don't want to move backwards.
5276
5277 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
5278
5279         PR target/70453
5280         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
5281
5282 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
5283
5284         PR rtl-optimization/70460
5285         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
5286         with operand from REG_LABEL_OPERAND, instead substitute
5287         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
5288         Don't do anything for REG_NON_LOCAL_GOTO jumps.
5289
5290 2016-03-31  Martin Liska  <mliska@suse.cz>
5291
5292         * passes.c (execute_one_pass): Do not call
5293         todo_after for a discarded function.
5294
5295 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
5296
5297         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
5298         (no_cost, infinite_cost): Initialize the new field.
5299         (get_computation_cost_at): Record setup cost.
5300         (determine_use_iv_cost_address): Skip cost computation for sub
5301         uses if we can estimate it without losing accuracy.
5302
5303 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
5304
5305         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
5306         estimates here.
5307         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
5308         max_loop_iterations_int.
5309         (tree_unswitch_outer_loop): Likewise.
5310         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
5311         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
5312
5313 2016-03-30  Richard Biener  <rguenther@suse.de>
5314
5315         PR middle-end/70450
5316         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
5317
5318 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
5319
5320         PR target/70421
5321         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
5322         in gen_blendm expander.
5323
5324 2016-03-30  Nick Clifton  <nickc@redhat.com>
5325
5326         PR target/62254
5327         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
5328         case where we are already provided with an SImode SUBREG.
5329
5330 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
5331
5332         PR target/70439
5333         * config/i386/i386.c (ix86_expand_epilogue): Properly check
5334         conflict between DRAP register and __builtin_eh_return.
5335
5336 2016-03-30  Michael Matz  <matz@suse.de>
5337             Richard Biener  <rguenther@suse.de>
5338
5339         PR ipa/12392
5340         * ipa-polymorphic-call.c (struct type_change_info): Change
5341         speculative to an unsigned allowing to limit the work we do.
5342         (csftc_abort_walking_p): New inline function..
5343         (check_stmt_for_type_change): Limit the number of may-defs
5344         skipped for speculative devirtualization to
5345         max-speculative-devirt-maydefs.
5346         * params.def (max-speculative-devirt-maydefs): New param.
5347         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
5348
5349 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
5350
5351         PR target/63890
5352         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
5353         and TARGET_MACHO.
5354
5355 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
5356
5357         PR tree-optimization/59124
5358         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
5359         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
5360
5361 2016-03-29  Jeff Law  <law@redhat.com>
5362
5363         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
5364
5365 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
5366
5367         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
5368         to HOST_WIDE_INT.
5369
5370 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
5371
5372         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
5373         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
5374         gcrt0.o if linking dynamically.
5375
5376 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
5377
5378         PR ipa/70283
5379         * ipa-devirt.c (methods_equal_p): New function.
5380         (compare_virtual_tables): Use it.
5381         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
5382         * cgraphclones.c (clone_function_name_1): Use
5383         symbol_table::symbol_suffix_separator.
5384         * coverage.c (build_var): Likewise.
5385         * symtab.c (symbol_table::symbol_suffix_separator): New.
5386
5387 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
5388
5389         PR rtl-optimization/70429
5390         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
5391         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
5392         mode != result_mode.
5393
5394         PR c++/70353
5395         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
5396
5397         PR tree-optimization/70405
5398         * ssa-iterators.h (num_imm_uses): Add missing braces.
5399
5400 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
5401
5402         PR rtl-optimization/68695
5403         * ira-color.c (allocno_copy_cost_saving): New.
5404         (improve_allocation): Use it.
5405
5406 2016-03-29  Richard Henderson  <rth@redhat.com>
5407
5408         PR middle-end/70355
5409         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
5410
5411 2016-03-29  Richard Biener  <rguenther@suse.de>
5412
5413         PR middle-end/70424
5414         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
5415         use alignment returned by get_pointer_alignment_1 if it is
5416         bigger than BITS_PER_UNIT.
5417         * builtins.c (get_pointer_alignment_1): Do not return true
5418         for alignment extracted from SSA info.
5419
5420 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
5421
5422         * config/ft32/ft32.opt (mnodiv): New.
5423         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
5424         * doc/invoke.texi (FT32 Options -mnodiv): New.
5425
5426 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
5427
5428         PR target/70406
5429         * config/i386/i386.md (define_split, andn): Fix modes.
5430
5431 2016-03-26  Richard Biener  <rguenther@suse.de>
5432             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5433
5434         PR ipa/70366
5435         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
5436         instead of
5437         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
5438         as 2nd argument to cl_optimization_restore().
5439
5440 2016-03-25  Richard Henderson  <rth@redhat.com>
5441
5442         PR target/70120
5443         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
5444         * config/aarch64/aarch64-protos.h: Declare it.
5445         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
5446
5447 2016-03-25  Alan Modra  <amodra@gmail.com>
5448
5449         PR target/70052
5450         * config/rs6000/constraints.md (j): Simplify.
5451         * config/rs6000/predicates.md (easy_fp_constant): Exclude
5452         decimal float 0.D.
5453         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
5454         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
5455          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
5456         in all constraint alternatives.
5457         (movtd_64bit_nodm): Delete "j" constraint alternative.
5458
5459 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
5460
5461         * tree-ssa-propagate.c: Enhance docs for
5462         SSA_PROP_NOT_INTERESTING.
5463
5464 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
5465
5466         * doc/extend.texi: Fix typo in documentation to pure attribute.
5467
5468 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
5469
5470         PR target/70319
5471         * config/pa/pa.md (bswapdi2): Use a scratch register.
5472
5473 2016-03-24  Richard Henderson  <rth@redhat.com>
5474
5475         PR middle-end/69845
5476         * fold-const.c (extract_muldiv_1): Correct test for multiplication
5477         overflow.
5478
5479 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
5480
5481         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
5482         using ix86_expand_binary_operator instead of gen_andsi3.
5483
5484 2016-03-24  Richard Biener  <rguenther@suse.de>
5485
5486         PR tree-optimization/70396
5487         * tree-vect-stmts.c (vectorizable_comparison): Use
5488         get_vectype_for_scalar_type.
5489
5490 2016-03-24  Richard Biener  <rguenther@suse.de>
5491
5492         PR middle-end/70370
5493         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
5494         with register bases.
5495
5496 2016-03-24  Richard Biener  <rguenther@suse.de>
5497
5498         PR tree-optimization/70372
5499         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
5500         build_all_ones_cst to also handle vector types correctly.
5501
5502 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5503
5504         PR target/70381
5505         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
5506         -mfloat128 here.
5507
5508 2016-03-23  Marek Polacek  <polacek@redhat.com>
5509
5510         PR c++/69884
5511         * doc/invoke.texi: Document -Wignored-attributes.
5512
5513 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
5514
5515         PR tree-optimization/69042
5516         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
5517         parameter from 30 to 40.
5518
5519 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
5520
5521         PR tree-optimization/69042
5522         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
5523         for use with constant offset stripped in base.
5524
5525 2016-03-23  Richard Biener  <rguenther@suse.de>
5526
5527         PR middle-end/70251
5528         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
5529         mode compatibility check.
5530         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
5531
5532 2016-03-23  Jeff Law  <law@redhat.com>
5533
5534         PR tree-optimization/64058
5535         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
5536         CONFLICT_COUNT.
5537         (struct ssa_conflicts): Move up earlier in the file.
5538         (conflicts_, var_map_): New static variables.
5539         (initialize_conflict_count): New function to initialize the
5540         CONFLICT_COUNT field for each conflict pair.
5541         (compare_pairs): Lazily initialize the conflict count and use it
5542         as the first tie-breaker.
5543         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
5544         and wipe conflicts_ and map_ around the call to qsort.  Remove
5545         special case for 2 coalesce pairs.
5546         * bitmap.c (bitmap_count_unique_bits): New function.
5547         (bitmap_count_bits_in_word): New function, extracted from
5548         bitmap_count_bits.
5549         (bitmap_count_bits): Use bitmap_count_bits_in_word.
5550         * bitmap.h (bitmap_count_unique_bits): Declare it.
5551
5552 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
5553
5554         PR target/69917
5555         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
5556         transparent alias chain for decl assembler name.
5557         * config/sol2.c (solaris_assemble_visibility): Likewise.
5558
5559 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5560
5561         * config/arm/arm1020e.md (1020call_op): Reduce reservation
5562         duration.
5563         (v10_fdivs): Likewise.
5564         (v10_fdivd): Likewise.
5565
5566 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5567
5568         PR driver/70132
5569         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
5570         to not call fclose twice on file.
5571
5572 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
5573
5574         PR tree-optimization/70354
5575         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
5576         oprnd0 is wider than oprnd1 and there is a cast from the wider
5577         type to oprnd1, mask it with the mask of the narrower type.
5578
5579         PR target/70321
5580         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
5581         Optimize TARGET_STV splitters, if high or low word of last argument
5582         is 0 or -1.
5583
5584 2016-03-22  Jeff Law  <law@redhat.com>
5585
5586         PR target/70232
5587         tree-ssa-threadbackward.c
5588         (fsm_find_control_statement_thread_paths): Correctly distinguish
5589         between old style jump threads vs FSM jump threads.
5590
5591 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
5592
5593         PR target/70302
5594         * config/i386/i386.c (scalar_chain::convert_op): Support
5595         uninitialized register usage case.
5596
5597 2016-03-22  Richard Biener  <rguenther@suse.de>
5598
5599         PR middle-end/70251
5600         * genmatch.c (gen_transform): Adjust last parameter to a three-state
5601         int...
5602         (capture::gen_transform): ... to change behavior when substituting
5603         a condition into cond or not-cond expr context.
5604         (dt_simplify::gen_1): Adjust.
5605         * gimple-match-head.c: Include gimplify.h for unshare_expr.
5606         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
5607         last change and instead change to
5608         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
5609         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
5610
5611 2016-03-22  Anthony Green  <green@moxielogic.com>
5612
5613         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
5614         issue for moxiebox targets.
5615         (CC1PLUS_SPEC): Ditto.
5616
5617 2016-03-22  Richard Biener  <rguenther@suse.de>
5618
5619         PR middle-end/70333
5620         * fold-const.c (extract_muldiv_1): Properly perform multiplication
5621         in the wide type.
5622
5623 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
5624
5625         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
5626
5627 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
5628
5629         PR target/70325
5630         * config/i386/i386.c (def_builtin): Handle
5631         OPTION_MASK_ISA_AVX512VL to be and-ed with other
5632         bits.
5633         (const struct builtin_description bdesc_special_args[]):
5634         Remove duplicate ISA bits.
5635
5636 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
5637
5638         PR target/70329
5639         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
5640         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
5641         in a way that works also for AVX512BW.
5642
5643         PR target/70300
5644         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
5645         instead of source if operands[1] is xmm16 and above and
5646         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
5647         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
5648
5649         PR c++/70295
5650         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
5651         on assign if (*from_p) is a comparison, set it to
5652         TREE_NO_WARNING (*from_p).
5653
5654 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
5655
5656         PR middle-end/70326
5657         * lra.c (restore_scratches): Ignore deleted insns.
5658
5659 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
5660             Jakub Jelinek  <jakub@redhat.com>
5661
5662         PR tree-optimization/70317
5663         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
5664         to HONOR_NANS.
5665
5666 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
5667
5668         PR target/70327
5669         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
5670         of ix86_expand_move.
5671         (movoi): Ditto.
5672         (movti): Use general_operand for operand 1 predicate.
5673
5674 2016-03-21  Martin Liska  <mliska@suse.cz>
5675
5676         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
5677         insns.
5678         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
5679
5680 2016-03-21  Martin Liska  <mliska@suse.cz>
5681
5682         PR ipa/70306
5683         * ipa-icf.c (sem_function::parse): Skip static
5684         constructors and destructors.
5685
5686 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
5687
5688         PR target/70296
5689         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
5690         function-like macro, peek following token(s) if it is followed
5691         by CPP_OPEN_PAREN token with optional padding in between, and
5692         if not, don't treat it like a macro.
5693
5694 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
5695             Alexander Monakov  <amonakov@ispras.ru>
5696
5697         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
5698         for the stabs debug format.
5699
5700 2016-03-21  Richard Biener  <rguenther@suse.de>
5701
5702         PR tree-optimization/70310
5703         * tree-vect-generic.c (expand_vector_condition): Fold the built
5704         condition.
5705
5706 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
5707
5708         PR target/70293
5709         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
5710         Block third alternative for AVX-512VL target,
5711
5712 2016-03-21  Martin Liska  <mliska@suse.cz>
5713
5714         PR hsa/70234
5715         * hsa-brig.c (emit_function_directives): Mark unemitted
5716         global variables for emission.
5717         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
5718         (get_symbol_for_decl): Likewise.
5719         * hsa.h (struct hsa_symbol): New flag.
5720
5721 2016-03-21  Richard Biener  <rguenther@suse.de>
5722
5723         PR tree-optimization/70288
5724         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
5725         we do not estimate unsimplified all-constant conditionals or
5726         switches as optimized away.
5727
5728 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
5729
5730         PR rtl-optimization/69102
5731         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
5732         when we have a readonly dependency context.
5733
5734 2016-03-18  Jeff Law  <law@redhat.com>
5735
5736         PR rtl-optimization/70263
5737         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
5738         (update_equiv_regs): When trying to move a store to after the insn
5739         that sets the source of the store, make sure the store occurs after
5740         the insn that sets the source of the store.  When successful note
5741         the REG_EQUIV note created in the dump file.
5742
5743 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
5744             Bernd Schmidt  <bschmidt@redhat.com>
5745
5746         * doc/extend.texi: Document more potential problems with basic asms.
5747
5748 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
5749
5750         PR rtl-optimization/70278
5751         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
5752         VOIDmode.
5753
5754 2016-03-18  Jason Merrill  <jason@redhat.com>
5755
5756         * calls.c (load_register_parameters): Fix zero size sibcall logic.
5757
5758 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
5759
5760         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
5761         values to 128b regs.
5762
5763 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
5764
5765         PR tree-optimization/70252
5766         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
5767         boolean vector has a proper number of elements.
5768         (supportable_narrowing_operation): Likewise.
5769
5770 2016-03-18  Tom de Vries  <tom@codesourcery.com>
5771
5772         PR ipa/70269
5773         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
5774
5775 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
5776
5777         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
5778         instead of replace_rtx for DEBUG_INSNs.
5779
5780 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5781
5782         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
5783         load type reservations.
5784
5785 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
5786
5787         PR target/70188
5788         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
5789         define_constraint for "Q" and "T" constraints.
5790
5791 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
5792
5793         Tweak the pipeline model for Exynos M1
5794
5795         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
5796         model.
5797
5798 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
5799
5800         PR c/70264
5801         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
5802         where one or both locations aren't within a line_map.
5803
5804 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5805
5806         PR driver/70192
5807         * opts.c (finish_options): Don't set flag_pie to the default if
5808         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
5809         if it is -1.
5810
5811 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
5812
5813         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
5814         true as ALL_REGS argument to replace_rtx.
5815
5816 2016-03-17  Richard Biener  <rguenther@suse.de>
5817
5818         PR debug/70271
5819         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
5820         last.
5821
5822 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
5823
5824         PR target/70245
5825         * rtl.h (replace_rtx): Add ALL_REGS argument.
5826         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
5827         equality and assert mode is the same, instead of just rtx pointer
5828         equality.
5829         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
5830         true as ALL_REGS argument to replace_rtx.
5831
5832 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
5833
5834         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
5835         for boolean vector with vector mode only.
5836         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
5837
5838 2016-03-17  Nick Clifton  <nickc@redhat.com>
5839
5840         PR target/70162
5841         * config/rx/rx.c (rx_print_integer): Print negative constants in
5842         decimal.
5843
5844 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
5845
5846         PR target/70261
5847         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
5848
5849 2016-03-16  Richard Henderson  <rth@redhat.com>
5850             Richard Biener  <rguenth@suse.de>
5851
5852         PR middle-end/70240
5853         PR middle-end/68215
5854         PR tree-opt/68714
5855         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
5856         first operand as is_gimple_condexpr.
5857
5858         PR middle-end/70240
5859         PR middle-end/68215
5860         Revert r231575
5861         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
5862         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
5863         Do not gimplify the result.
5864         (do_unop): Adjust call to tree_vec_extract.
5865         (do_binop): Likewise.
5866         (do_compare): Likewise.
5867         (do_plus_minus): Likewise.
5868         (do_negate): Likewise.
5869         (expand_vector_condition): Likewise.
5870         (do_cond): Likewise.
5871
5872 2016-03-16  Richard Henderson  <rth@redhat.com>
5873
5874         PR target/70048
5875         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
5876         (aarch64_classify_address): Use it.
5877         (aarch64_legitimize_address): Force all subexpressions of PLUS
5878         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
5879
5880 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
5881             Richard Biener  <rguenth@suse.de>
5882
5883         PR target/70245
5884         * rtlanal.c (replace_rtx): For REG, if from is a REG,
5885         return to even if only REGNO is equal, and assert
5886         mode is the same.
5887
5888 2016-03-11  Jeff Law  <law@redhat.com>
5889
5890         PR rtl-optimization/70224
5891         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
5892
5893 2016-03-16  Richard Henderson  <rth@redhat.com>
5894
5895         PR middle-end/70199
5896         * function.h (struct function): Add has_forced_label_in_static.
5897         * gimplify.c (force_labels_r): Set it.
5898         * lto-streamer-in.c (input_struct_function_base): Read it.
5899         * lto-streamer-out.c (output_struct_function_base): Write it.
5900         * tree-inline.c (has_label_address_in_static_1): Remove.
5901         (copy_forbidden): Remove fndecl parameter; test
5902         has_forced_label_in_static.
5903         (inline_forbidden_p): Update call to copy_forbidden.
5904         (tree_versionable_function_p): Likewise.
5905         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
5906         (chkp_versioning): Likewise.
5907         * tree-inline.h (copy_forbidden): Update decl.
5908
5909 2016-03-16  Marek Polacek  <polacek@redhat.com>
5910
5911         PR c/70093
5912         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
5913         function being thunked if the result type doesn't have fixed size.
5914         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
5915         doesn't have fixed size.
5916
5917 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
5918
5919         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
5920         reporting malformed loop nest.
5921
5922 2016-03-16  Tom de Vries  <tom@codesourcery.com>
5923
5924         PR lto/70187
5925         * ipa-devirt.c (possible_polymorphic_call_targets): Move
5926         nodes.length () == 1 test to before first nodes[0] access.
5927
5928 2016-03-16  Tom de Vries  <tom@codesourcery.com>
5929
5930         PR tree-optimization/68715
5931         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
5932         single_pred_p test.
5933
5934 2016-03-16  Tom de Vries  <tom@codesourcery.com>
5935
5936         PR tree-optimization/68809
5937         * graphite-scop-detection.c (same_close_phi_node): Test if result types
5938         are the same.
5939
5940 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
5941             Sandra Loosemore  <sandra@codesourcery.com>
5942
5943         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
5944         on leaf attribute. Mention ELF interposition problems.
5945
5946 2016-03-16  Alan Modra  <amodra@gmail.com>
5947
5948         PR rtl-optimization/69195
5949         PR rtl-optimization/47992
5950         * ira.c (indirect_jump_optimize): Ignore artificial defs.
5951         Add comments.
5952
5953 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
5954
5955         PR bootstrap/69513
5956         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
5957
5958 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5959
5960         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
5961
5962 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
5963
5964         PR rtl-optimization/70222
5965         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
5966         optimization if mode is different from result_mode, queue up masking
5967         of the result in outer_op.  Formatting fix.
5968
5969         PR middle-end/70239
5970         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
5971         of safe_grow.
5972
5973 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5974
5975         PR rtl-optimization/69032
5976         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
5977         looping backwards over basic block insns.
5978
5979 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5980
5981         PR target/66660
5982         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
5983         to non-speculative when propagating trap bits.
5984
5985 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5986
5987         PR rtl-optimization/63384
5988         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
5989         DEBUG_INSN_P insns.
5990
5991 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5992
5993         PR target/64411
5994         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
5995         factored out from ...
5996         (sched_analyze_insn): ... here.
5997         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
5998         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
5999         get_implicit_reg_pending_clobbers in it.
6000         (setup_id_reg_sets): Use setup_id_implicit_regs.
6001         (deps_init_id): Ditto.
6002
6003 2016-03-15  Tom de Vries  <tom@codesourcery.com>
6004
6005         PR ipa/70161
6006         * cgraph.c (cgraph_node::get_body): Save, reset and restore
6007         dump_file_name.
6008         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
6009         execute_function_dump.
6010         (execute_one_pass): Don't dump function if it will be dumped after ipa
6011         transform.
6012
6013 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
6014
6015         * genrecog.c (match_pattern_2): If pred is NULL don't call
6016         safe_predicate_mode on it.
6017
6018 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
6019
6020         PR middle-end/70219
6021         * lra-constraints.c (delete_move_and_clobber): Change assertion
6022         to also allow dregno == 0.
6023
6024 2016-03-14  Richard Henderson  <rth@redhat.com>
6025
6026         PR tree-opt/68714
6027         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
6028         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
6029         (reassociate_bb): Use optimize_vec_cond_expr; avoid
6030         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
6031         on vectors.
6032
6033 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
6034
6035         PR target/70083
6036         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
6037         regs.
6038         (lra_create_live_ranges_1): initialize hard register biggest_mode to
6039         VOIDmode.
6040         * lra-constraints.c (split_reg): For hard regs, try to find the
6041         biggest single-register mode used in the function.
6042
6043 2016-03-14  Richard Biener  <rguenther@suse.de>
6044
6045         PR tree-optimization/56365
6046         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
6047         constants to compare against.
6048
6049 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
6050
6051         PR target/70098
6052         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
6053         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
6054         (define_split for the GPR case): Use int_reg_operand instead of
6055         gpc_reg_operand for the output.
6056
6057 2016-03-14  Tom de Vries  <tom@codesourcery.com>
6058
6059         PR tree-optimization/70045
6060         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
6061         create_empty_if_region_on_edge argument.
6062
6063 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
6064
6065         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
6066         (STACK_CHECK_PROTECT): Likewise.
6067         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
6068         (STACK_CHECK_PROTECT): Likewise.
6069         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
6070         (STACK_CHECK_PROTECT): Likewise.
6071         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
6072         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6073         (STACK_CHECK_PROTECT): Likewise.
6074
6075 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
6076
6077         PR rtl-optimization/69307
6078         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
6079         registers in modes that span more than one register.
6080
6081 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
6082
6083         PR target/69614
6084         * lra-constraints.c (delete_move_and_clobber): New.
6085         (remove_inheritance_pseudos): Use it.
6086
6087 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
6088
6089         PR ada/70017
6090         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
6091         the libcall is LCT_THROW.
6092         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
6093         for the checking routine.
6094
6095 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6096
6097         PR target/70131
6098         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
6099         optimization if we have direct move.
6100         (roundu32<mode>2_fprs): Likewise.
6101
6102 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
6103
6104         PR target/70123
6105         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
6106         be rematerialized.
6107         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
6108         Arguments swapped.  All callers changed.  Take reg_renumber into
6109         account, and Calculate and compare register ranges for hard regs.
6110
6111 2016-03-11  Jeff Law  <law@redhat.com>
6112
6113         PR tree-optimization/70190
6114         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6115         Handle cases where we can not extract the taken edge, even though we
6116         found a constant value.
6117
6118         PR tree-optimization/64058
6119         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
6120         (num_coalesce_pairs): Move up earlier in file.
6121         (find_coalesce_pair): Initialize the INDEX field for each pair
6122         discovered.
6123         (compare_pairs): No longer sort on the elements in each pair.
6124         Instead break ties with the index of the coalesce pair.
6125
6126 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6127
6128         PR target/70002
6129         * config/aarch64/aarch64-protos.h
6130         (aarch64_save_restore_target_globals): New prototype.
6131         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
6132         Call the above when popping pragma.
6133         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
6134         New function.
6135         (aarch64_set_current_function): Rewrite using the above.
6136
6137 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
6138
6139         PR tree-optimization/70177
6140         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
6141         (extract_ops_from_tree): ... this.  In the 2 argument
6142         overload remove _1 suffix.
6143         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
6144         (extract_ops_from_tree): ... this.
6145         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
6146         Adjust callers.
6147         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
6148         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
6149         extract_ops_from_tree instead of 2 operand one.
6150
6151 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
6152
6153         PR tree-optimization/70013
6154         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
6155         for constant-pool entries.
6156
6157 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
6158
6159         PR rtl-optimization/70174
6160         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
6161         followed by gen_lowpart on force_reg instead of just gen_lowpart.
6162
6163         PR tree-optimization/70169
6164         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
6165         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
6166         for unknown codes.
6167
6168 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
6169             Jakub Jelinek  <jakub@redhat.com>
6170
6171         PR target/70160
6172         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
6173         of uninitialized values.
6174
6175 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6176
6177         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
6178         define_expand.
6179         ("*trunctddd2"): New pattern definition.
6180         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
6181         TD->DD truncation.
6182
6183 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6184
6185         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
6186         definitions for BFP and DFP rounding modes.
6187         ("fixuns_truncdddi2", "fixuns_trunctddi2")
6188         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
6189         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
6190         ("fix_trunctf<mode>2"): Use the new constants instead of magic
6191         numbers.
6192
6193 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6194
6195         * config/s390/constraints.md: Adjust comment.
6196         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
6197         s390_decompose_addrstyle_without_index.
6198         * config/s390/predicates.md (shift_count_or_setmem_operand):
6199         Rename to setmem_operand.
6200         * config/s390/s390-protos.h
6201         (s390_decompose_shift_count): Rename to
6202         s390_decompose_addrstyle_without_index.
6203         * config/s390/s390.c (s390_decompose_shift_count)
6204         (s390_mem_constraint, print_shift_count_operand)
6205         (print_operand_address, print_operand): Rename
6206         s390_decompose_shift_count to
6207         s390_decompose_addrstyle_without_index and rename
6208         print_shift_count_operand to print_addrstyle_operand troughout the
6209         file.
6210         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
6211         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
6212         Rename shift_count_or_setmem_operand to setmem_operand.
6213         * config/s390/vx-builtins.md ("vec_insert<mode>")
6214         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
6215         nonmemory_operand.
6216
6217 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6218
6219         PR target/70168
6220         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
6221         Handle overlapping retval and newval.
6222
6223 2016-03-10  Nick Clifton  <nickc@redhat.com>
6224
6225         PR target/7044
6226         * config/aarch64/aarch64.c
6227         (aarch64_override_options_after_change_1): When forcing
6228         flag_omit_frame_pointer to be true, use a special value that can
6229         be detected if this function is called again, thus preventing
6230         flag_omit_leaf_frame_pointer from being forced to be false.
6231
6232 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6233
6234         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
6235         Set x_flag_omit_leaf_frame_pointer when handling
6236         -momit-leaf-frame-pointer.
6237
6238 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
6239
6240         PR lto/69589
6241         * cgraph.c (cgraph_node::dump): Dump split_part and
6242         indirect_call_target.
6243         * cgraph.h (cgraph_node): Add indirect_call_target flag.
6244         * ipa.c (has_addr_references_p): Cleanup.
6245         (is_indirect_call_target_p): New.
6246         (walk_polymorphic_call_targets): Do not mark virtuals that may be
6247         called indirectly as local.
6248         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
6249
6250 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
6251
6252         PR ipa/69630
6253         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
6254         on cxa_pure_virtual.
6255
6256 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
6257
6258         PR lto/69589
6259         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
6260
6261 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
6262
6263         PR lto/69589
6264         * tree.c (need_assembler_name_p): Only record main variant type names.
6265
6266 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
6267
6268         PR target/70113.
6269         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
6270         Always define to 0 or 1.
6271         (TARGET_FIX_ERR_A53_843419): New macro.
6272         * config/aarch64/aarch64-elf-raw.h
6273         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
6274         * config/aarch64/aarch64-linux.h: Likewise.
6275         * config/aarch64/aarch64.c
6276         (aarch64_override_options_after_change_1): Do not default
6277         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
6278         843419 is on.
6279         (aarch64_attributes): Handle fix-cortex-a53-843419.
6280         (aarch64_can_inline_p): Likewise.
6281         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
6282
6283 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
6284         Jakub Jelinek <jakub@redhat.com>
6285
6286         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
6287         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
6288         DECL_COMMONS if flag_unconstrained_commons is set.
6289         * tree-dfa.c (get_ref_base_and_extent): Likewise.
6290         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
6291         (funconstrained-commons): Document.
6292
6293 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
6294
6295         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
6296         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
6297
6298 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
6299
6300         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
6301         has a proper number of elements.
6302
6303 2016-03-10  Alan Modra  <amodra@gmail.com>
6304
6305         PR rtl-optimization/69195
6306         PR rtl-optimization/47992
6307         * ira.c (recorded_label_ref): Delete.
6308         (update_equiv_regs): Return void.
6309         (indirect_jump_optimize): New function.
6310         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
6311         before regstat_compute_ri.  Don't rebuild_jump_labels here.
6312         Delete update_regstat.
6313
6314 2016-03-10  Richard Biener  <rguenther@suse.de>
6315
6316         PR tree-optimization/70128
6317         * tree-ssa-structalias.c (set_uids_in_ptset): Set
6318         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
6319
6320 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
6321
6322         PR tree-optimization/70152
6323         * tree-sra.c (replace_removed_params_ssa_names): Copy over
6324         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
6325
6326         PR target/70086
6327         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
6328         instead of gen_sse2_loadlpd.
6329         * config/i386/sse.md (*vec_concatv2df): Rename to...
6330         (vec_concatv2df): ... this.
6331
6332         PR tree-optimization/70127
6333         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
6334
6335 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
6336
6337         PR c/68473
6338         PR c++/70105
6339         * diagnostic-show-locus.c (compatible_locations_p): New function.
6340         (layout::layout): Sanitize ranges using compatible_locations_p.
6341
6342 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
6343
6344         PR c/68473
6345         PR c++/70105
6346         * diagnostic-show-locus.c (layout_range::layout_range): Replace
6347         location_range param with three const expanded_locations * and a
6348         bool.
6349         (layout::layout): Replace call to
6350         rich_location::lazily_expand_location with get_expanded_location.
6351         Extract the range and perform location expansion here, passing
6352         the results to the layout_range ctor.
6353         * diagnostic.c (source_range::debug): Delete.
6354         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
6355         of rich_location::get_expanded_location.
6356         * gcc-rich-location.c (get_range_for_expr): Delete.
6357         (gcc_rich_location::add_expr): Reimplement to avoid the
6358         rich_location::add_range overload that took a location_range,
6359         passing a location_t instead.
6360
6361 2016-03-09  Richard Biener  <rguenther@suse.de>
6362         Jakub Jelinek  <jakub@redhat.com>
6363
6364         PR tree-optimization/70138
6365         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
6366         Also skip vect_double_reduction_def.
6367
6368 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
6369
6370         PR target/70049
6371         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
6372         if the operand is "m".
6373
6374 2016-03-09  Nathan Sidwell  <nathan@acm.org>
6375
6376         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
6377
6378 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6379
6380         * config/i386/i386.c (processor_target_table): Fix cost table
6381         intialization order for znver1.
6382
6383 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
6384
6385         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
6386         - becuase -> because.
6387         * ipa-reference.c (ignore_module_statics): Likewise.
6388         * cgraph.c (cgraph_node::get_body): Likewise.
6389         * ipa-inline.c (early_inliner): Likewise.
6390         * ipa-devirt.c (types_same_for_odr): Likewise.
6391         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
6392         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
6393
6394 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6395
6396         * tree-ssa-math-opts.c: Fix typo in comment.
6397
6398 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
6399
6400         PR target/70110
6401         * config/i386/i386.c (scalar_chain::make_vector_copies,
6402         scalar_chain::convert_reg): Call end_sequence in between
6403         get_insns and emit_conversion_insns rather than after both
6404         calls.
6405
6406 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
6407
6408         PR target/70064
6409         * config/i386/i386.h (machine_function): Add
6410         pc_thunk_call_expanded flag.
6411         (ix86_pc_thunk_call_expanded): New define.
6412         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
6413         (*set_got): Rename insn pattern from set_got.
6414         (*set_got_labelled): Rename inst pattern from set_got_labelled.
6415         * config/i386/i386.c (ix86_compute_frame_layout): Use
6416         ix86_pc_thunk_call_expanded to prevent red-zone.
6417
6418 2016-03-07  Martin Jambor  <mjambor@suse.cz>
6419
6420         * hsa.h (hsa_get_ctor_statements): Declare.
6421         (hsa_get_dtor_statements): Likewise.
6422         (hsa_get_kernel_dispatch_type): Likewise.
6423         * hsa.c (hsa_get_ctor_statements): New function.
6424         (hsa_get_dtor_statements): Likewise.
6425         (hsa_get_kernel_dispatch_type): Likewise.
6426         * hsa-brig.c (hsa_cdtor_statements): Removed.
6427         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
6428         hsa_get_dtor_statements.
6429         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
6430         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
6431
6432 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6433
6434         * config/arm/arm-cores.def (cortex-r8): New.
6435         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
6436         * config/arm/arm-tune.md: Likewise.
6437         * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
6438
6439 2016-03-07  Martin Sebor  <msebor@redhat.com>
6440
6441         PR rtl-optimization/19705
6442         * doc/invoke.texi (Options That Control Optimization): Clarify
6443         -fno-branch-count-reg.
6444
6445 2016-02-26  Richard Biener  <rguenther@suse.de>
6446             Jeff Law  <law@redhat.com>
6447
6448         PR tree-optimization/69740
6449         * cfghooks.c (remove_edge): Request loop fixups if we delete
6450         an edge that might turn an irreducible loop into a natural
6451         loop.
6452         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
6453         Move after definition of loops_state_clear.
6454
6455 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
6456
6457         PR rtl-optimization/69052
6458         * rtlanal.c (commutative_operand_precedence): Set higher precedence
6459         to CONST_WIDE_INT.
6460
6461 2016-03-07  Tom de Vries  <tom@codesourcery.com>
6462
6463         PR tree-optimization/70116
6464         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
6465         is_tm_ending stmts and ubsan/asan internal functions.
6466         (find_duplicate): Use it.  Don't test is_tm_ending here.
6467
6468 2016-03-07  Richard Biener  <rguenther@suse.de>
6469
6470         PR tree-optimization/70115
6471         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
6472         (propagate_constants_for_unrolling): Use replace_uses_by.
6473
6474 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
6475
6476         PR middle-end/69916
6477         * omp-low.c (struct oacc_loop): Add ifns.
6478         (new_oacc_loop_raw): Initialize it.
6479         (finish_oacc_loop): Clear mask & flags if no ifns.
6480         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
6481         (oacc_loop_xform_loop): Add ifns arg & adjust.
6482         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
6483
6484 2016-03-07  Richard Henderson  <rth@redhat.com>
6485
6486         PR rtl-opt/70061
6487         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
6488         (insert_value_copy_on_edge): Likewise.
6489
6490 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6491
6492         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
6493
6494 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6495
6496         PR target/62281
6497         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
6498
6499 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
6500
6501         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
6502
6503 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
6504
6505         Fix sseimul type attribute.
6506         * config/i386/znver1.md
6507         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
6508         znver1_sseimul_avx256_load) : Fix the type attribute.
6509         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
6510         pipe usage and latency.
6511
6512 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
6513
6514         PR c++/70084
6515         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
6516         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
6517         to the right type.
6518
6519 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
6520
6521         PR c/69973
6522         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
6523
6524         PR rtl-optimization/69941
6525         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
6526         the reg share its mode.
6527
6528 2016-03-04  Jeff Law  <law@redhat.com>
6529
6530         PR tree-optimization/69196
6531         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6532         If the both SSA_NAMEs are anonymous, then consider them unassociated
6533         and include the PHI in the statement count.
6534
6535 2016-03-05  Tom de Vries  <tom@codesourcery.com>
6536
6537         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
6538         construct in oacc routine.  Check for oacc region in oacc routine.
6539
6540 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
6541
6542         PR target/70062
6543         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
6544         2016-02-22 changes, instead don't recurse if RECUR is already true.
6545         Don't change *dynamic_check if RECUR.  Adjust recursive caller
6546         to pass true to the new argument.
6547         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
6548
6549         PR target/70059
6550         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
6551         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
6552         fixes.
6553         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
6554
6555 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
6556
6557         PR rtl-optimization/57676
6558         * lra-assigns.c (lra_assign): Guard test for maximum iterations
6559         with flag_checking.
6560
6561 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
6562
6563         * tree-vect-patterns.c (search_type_for_mask): Handle
6564         comparison of booleans.
6565
6566 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
6567
6568         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
6569         Fix @xref usage.
6570
6571         PR debug/69947
6572         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
6573         all other ops that have dw_val_class_die_ref operands,
6574         and DW_OP_GNU_entry_value.
6575
6576 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6577
6578         PR rtl-optimization/69904
6579         * config/arm/arm.c (arm_cannot_copy_insn_p):
6580         Return true for load-exclusive instructions.
6581
6582 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
6583
6584         PR target/70021
6585         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
6586         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
6587         the pattern no matter if it is used just by non-pattern, pattern
6588         or mix thereof.
6589         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
6590         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
6591         oprnd1 def_stmt is in pattern, don't look through it.
6592
6593 2016-03-03  Marek Polacek  <polacek@redhat.com>
6594
6595         PR middle-end/70050
6596         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
6597
6598 2016-03-03  Martin Liska  <mliska@suse.cz>
6599
6600         PR tree-optimization/70043
6601         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
6602         previous statement if we see a debug statement.
6603
6604 2016-03-03  Richard Biener  <rguenther@suse.de>
6605
6606         PR tree-optimization/55936
6607         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
6608         parameter and guard unsafe equivalence use.
6609         (vrp_evaluate_conditional_warnv_with_ops): Always use
6610         safe equivalences but not via the quadratic compare_names
6611         helper.
6612
6613 2016-03-03  Michael Collison  <michael.collison@linaro.org>
6614
6615         PR target/70014
6616         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
6617         for operand 1 to s_register_operand. Change predicate for operand
6618         2 to arm_not_immediate_operand.
6619
6620 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
6621
6622         * doc/tm.texi: Regenerated.
6623
6624 2016-03-02  Richard Henderson  <rth@redhat.com>
6625
6626         PR rtl-opt/67145
6627         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
6628         simplification when all args are positive non-fixed registers.
6629
6630 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6631
6632         * target.def (lra_p): Specify that new ports should use LRA.
6633
6634 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
6635
6636         PR libgomp/69555
6637         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
6638         gimplify_type_sizes the type they refer to.
6639         (omp_notice_variable): Handle reference vars to VLAs.
6640         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
6641         reference to VLA decls in the second pass instead of first pass.
6642
6643 2016-03-02  Tom de Vries  <tom@codesourcery.com>
6644
6645         PR tree-optimization/68659
6646         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
6647         new_expr == NULL_TREE.
6648         (get_new_name): Handle ADDR_EXPR.
6649
6650 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
6651
6652         PR rtl-optimization/69052
6653         * loop-invariant.c (canonicalize_address): New function.
6654         (inv_can_prop_to_addr_use): Check validity of address expression
6655         which is canonicalized by above function.
6656
6657 2016-03-02  Alan Modra  <amodra@gmail.com>
6658
6659         PR ipa/69990
6660         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
6661         larger alignment.
6662
6663 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
6664
6665         PR target/70028
6666         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
6667         (*movhi_internal): Put mask moves from and to memory separately
6668         from moves from/to GPRs.
6669
6670 2016-03-02  Richard Biener  <rguenther@suse.de>
6671
6672         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
6673         GENERIC expressions in GIMPLE.
6674
6675 2016-03-02  Richard Biener  <rguenther@suse.de>
6676
6677         * config/i386/i386.c (type_natural_mode): Fix typo.
6678
6679 2016-03-02  Nick Clifton  <nickc@redhat.com>
6680
6681         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
6682
6683 2016-03-02  Richard Biener  <rguenther@suse.de>
6684             Uros Bizjak  <ubizjak@gmail.com>
6685
6686         PR target/67278
6687         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
6688
6689 2016-03-02  Richard Biener  <rguenther@suse.de>
6690
6691         PR middle-end/67278
6692         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
6693
6694 2016-03-02  Marek Polacek  <polacek@redhat.com>
6695
6696         PR c/67854
6697         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
6698         "is promoted to" warning.
6699
6700 2016-03-01  DJ Delorie  <dj@redhat.com>
6701
6702         * config.gcc: Deprecate mep-*.
6703
6704 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
6705
6706         PR middle-end/70025
6707         * lra-constraints.c (regno_val_use_in): New.
6708         (match_reload): Use it instead of regno_use_in.
6709
6710 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
6711
6712         PR rtl-optimization/70007
6713         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
6714         references present in REG_EQUAL notes attached to non-SET patterns.
6715
6716 2016-03-01  Jeff Law  <law@redhat.com>
6717
6718         PR tree-optimization/69196
6719         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6720         Appropriately clamp the number of statements to copy when the
6721         thread path does not traverse a loop backedge.
6722
6723         PR tree-optimization/69196
6724         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6725         Do count some PHIs in the thread path against the insn count.  Decrease
6726         final statement count by one as the control statement in the last
6727         block will get removed.  Remove special cased code for handling PHIs
6728         in the last block.
6729
6730 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
6731
6732         PR target/70027
6733         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
6734         asm dialect alternatives to explicit GOTPCREL calls.
6735
6736 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
6737
6738         PR ada/70017
6739         * ira.c (do_reload): Issue warning for generic stack checking here...
6740         * reload1.c (reload): ...instead of here and streamline it.
6741
6742 2016-03-01  Nick Clifton  <nickc@redhat.com>
6743
6744         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
6745
6746 2016-03-01  Richard Biener  <rguenther@suse.de>
6747
6748         PR tree-optimization/69983
6749         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
6750         types and fall back to operand_equal_p.
6751
6752 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6753
6754         Revert
6755         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6756
6757         * config/s390/constraints.md ("jm8"): New constraint.
6758         * config/s390/predicates.md ("const_int_8bitset_operand"): New
6759         predicate.
6760         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
6761         into ...
6762         ("*setmem_long<setmem_and>"): New pattern.
6763         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
6764         into ...
6765         ("*setmem_long_31z<setmem_and>"): New pattern.
6766         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
6767         New substitution rules with the required attributes.
6768
6769
6770 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6771
6772         Revert
6773         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6774
6775         * gensupport.c (process_substs_on_one_elem): Split loop to
6776         complete mark_operands_used_in_match_dup on all expressions in the
6777         vector first.
6778         (adjust_operands_numbers): Inline into process_substs_on_one_elem
6779         and remove function.
6780
6781 2016-03-01  Richard Biener  <rguenther@suse.de>
6782
6783         PR middle-end/70022
6784         * fold-const.c (fold_indirect_ref_1): Fix range checking for
6785         vector BIT_FIELD_REF extract.
6786
6787 2016-03-01  Richard Biener  <rguenther@suse.de>
6788
6789         PR tree-optimization/69994
6790         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
6791
6792 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
6793
6794         PR tree-optimization/69956
6795         * tree-vect-stmts.c (supportable_widening_operation): Support
6796         multi-step conversion of boolean vectors.
6797         (supportable_narrowing_operation): Likewise.
6798
6799 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6800
6801         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
6802         anymore.
6803
6804 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6805
6806         * config/s390/subst.md (DSI_VI): New mode iterator.
6807         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
6808         * config/s390/vector.md ("vec_set<mode>"): Move expander before
6809         the insn definition.
6810         ("*vec_set<mode>"): Change predicate and add alternative to
6811         support only either register or const_int operands as element
6812         selector.
6813         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
6814         operands.
6815         ("vec_extract<mode>"): New expander.
6816         ("*vec_extract<mode>"): New insn definition supporting reg and
6817         const_int element selectors.
6818         ("*vec_extract<mode>_plus"): New insn definition supporting
6819         reg+const_int element selectors.
6820         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
6821         following expander+insn definition.
6822         ("<vec_shifts_name><mode>3"): New expander.
6823         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
6824
6825 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6826
6827         * config/s390/s390.md ("*tabort_1"): Change predicate to
6828         nonmemory_operand.  Add a second alternative to cover
6829         register as well as const int operands.
6830         ("*tabort_1_plus"): New pattern definition.
6831
6832 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6833
6834         * config/s390/s390.md ("*ashrdi3_cc_31")
6835         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
6836         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
6837         Merge insn definitions into ...
6838         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
6839         New pattern definition.
6840         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
6841         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
6842         ("*ashr<mode>3_and"): Merge insn definitions into ...
6843         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
6844         New pattern definition.
6845         * config/s390/subst.md ("addr_style_op_cc_subst")
6846         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
6847         substitutions patterns plus attributes.
6848         Add ashiftrt to SUBST iterator.
6849
6850 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6851
6852         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
6853         op2 to nonmemory_operand.
6854         ("*<shift>di3_31", "*<shift>di3_31_and"):
6855         Merge into single pattern definition ...
6856         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
6857         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
6858         pattern definition ...
6859         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
6860         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
6861         iterator.
6862
6863 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6864
6865         * config/s390/predicates.md (const_int_6bitset_operand): New
6866         predicate.
6867         * config/s390/s390.md: Include subst.md.
6868         ("rotl<mode>3"): New expander.
6869         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
6870         ...
6871         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
6872         * config/s390/subst.md: New file.
6873
6874 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6875
6876         * config/s390/s390.md ("op_type", "atype", "length" attributes):
6877         Remove RRR type.  It doesn't really exist.
6878         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
6879         attributes.
6880         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
6881         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
6882         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
6883         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
6884         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
6885         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
6886         `enabled' attribute.
6887
6888 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6889
6890         * gensupport.c (process_substs_on_one_elem): Split loop to
6891         complete mark_operands_used_in_match_dup on all expressions in the
6892         vector first.
6893         (adjust_operands_numbers): Inline into process_substs_on_one_elem
6894         and remove function.
6895
6896 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
6897
6898         PR target/69706
6899         * config/sparc/sparc.c (NWORDS_UP): Rename to...
6900         (CEIL_NWORDS): ...this.  Use CEIL macro.
6901         (compute_fp_layout): Adjust to above renaming.
6902         (function_arg_union_value): Likewise.
6903         (sparc_arg_partial_bytes): Likewise.
6904         (sparc_function_arg_advance): Likewise.
6905
6906 2016-02-29  Jeff Law  <law@redhat.com>
6907
6908         PR tree-optimization/70005
6909         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
6910         where an object with a boolean range is compared against a value
6911         outside [0..1].
6912
6913         PR tree-optimization/69999
6914         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
6915         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
6916         loop cleanups.
6917
6918 2016-02-29  Richard Biener  <rguenther@suse.de>
6919
6920         PR tree-optimization/69994
6921         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
6922         (get_unary_op): Look through nop conversions.
6923         (ops_equal_values_p): New function, look for equality diregarding
6924         nop conversions.
6925         (eliminate_plus_minus_pair): Use ops_equal_values_p
6926         (repropagate_negates): Do not use get_unary_op here.
6927
6928 2016-02-29  Martin Liska  <mliska@suse.cz>
6929
6930         * system.h: Poison ENABLE_CHECKING macro.
6931
6932 2016-02-29  Martin Liska  <mliska@suse.cz>
6933
6934         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
6935         is presented in dump flags.
6936         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
6937         (hsa_regalloc): Likewise.
6938
6939 2016-02-19  Richard Biener  <rguenther@suse.de>
6940
6941         PR tree-optimization/69980
6942         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
6943         permutation of those we need to keep.
6944
6945 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
6946
6947         PR target/69706
6948         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
6949         (NWORDS_UP): ...this
6950         (init_cumulative_args): Minor tweaks.
6951         (sparc_promote_function_mode): Likewise.
6952         (scan_record_type): Delete.
6953         (traverse_record_type): New function template.
6954         (classify_data_t): New structure type.
6955         (classify_registers): New inline function.
6956         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
6957         exhausted.  Instantiate traverse_record_type on classify_registers and
6958         deal with the case of a structure passed in slot #15 with no FP field
6959         in the first word.
6960         (assign_data_t): New structure type.
6961         (compute_int_layout): New static function.
6962         (compute_fp_layout): Likewise.
6963         (count_registers): New inline function.
6964         (assign_int_registers): New static function.
6965         (assign_fp_registers): Likewise.
6966         (assign_registers): New inline function.
6967         (function_arg_record_value_1): Delete.
6968         (function_arg_record_value_2): Likewise.
6969         (function_arg_record_value_3): Likewise.
6970         (function_arg_record_value): Adjust to above changes.  Instantiate
6971         traverse_record_type on count_registers to first count the number of
6972         registers to be used and then on assign_registers to assign them.
6973         (function_arg_union_value): Adjust to above renaming.
6974         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
6975         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
6976         case of a structure passed in slot #15
6977         (sparc_function_arg_advance): Likewise.
6978         (function_arg_padding): Minor tweak.
6979
6980 2016-02-29  Richard Biener  <rguenther@suse.de>
6981
6982         PR tree-optimization/69720
6983         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
6984         the adjustment_def path for possibly vectorized defs.
6985         (vect_create_epilog_for_reduction): Handle vectorized initial
6986         defs properly.
6987
6988 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
6989
6990         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
6991
6992 2016-02-27  Jeff Law  <law@redhat.com>
6993
6994         Revert
6995         2016-02-26  Richard Biener  <rguenther@suse.de>
6996                     Jeff Law  <law@redhat.com>
6997
6998         PR tree-optimization/69740
6999         * cfghooks.c (remove_edge): Request loop fixups if we delete
7000         an edge that might turn an irreducible loop into a natural
7001         loop.
7002
7003 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
7004
7005         PR rtl-optimization/69896
7006         * tree-vect-generic.c (get_compute_type): Avoid single element
7007         vector types.
7008
7009 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
7010
7011         Rename the AArch64 tuning option and related functions to enable the
7012         Newton series for the reciprocal square root to reflect its
7013         approximative characteristic.
7014
7015         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
7016         function to "aarch64_emit_approx_rsqrt".
7017         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
7018         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
7019         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
7020         (xgene1_tunings): Likewise.
7021         (use_rsqrt_p): Likewise.
7022         (aarch64_emit_swrsqrt): Use new function name.
7023         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
7024         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
7025         text explaining this option.
7026         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
7027
7028 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
7029
7030         PR target/69969
7031         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
7032         complain about -mallow-movmisalign without -mvsx if
7033         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
7034
7035 2016-02-26  Joel Sherrill  <joel@rtems.org>
7036
7037         * config.gcc: Add x86_64-*-rtems*.
7038         * gcc/config/i386/rtems-64.h: New file.
7039
7040 2016-02-26  Joel Sherrill  <joel@rtems.org>
7041
7042         * config.gcc: Add aarch64-*-rtems*.
7043         * gcc/config/aarch64/rtems.h: New file.
7044
7045 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
7046
7047         PR target/69946
7048         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
7049         shift amount using %h.  Add comment.
7050
7051 2016-02-26  Richard Biener  <rguenther@suse.de>
7052             Jeff Law  <law@redhat.com>
7053
7054         PR tree-optimization/69740
7055         * cfghooks.c (remove_edge): Request loop fixups if we delete
7056         an edge that might turn an irreducible loop into a natural
7057         loop.
7058
7059 2016-02-26  Martin Jambor  <mjambor@suse.cz>
7060
7061         PR middle-end/69920
7062         * tree-sra.c (sra_modify_assign): Do not remove loads of
7063         uninitialized aggregates to SSA_NAMEs.
7064
7065 2016-02-26  Richard Henderson  <rth@redhat.com>
7066
7067         PR target/69709
7068         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
7069         pseudo in case the target rtx matches the source of the left
7070         shift.
7071
7072 2016-02-26  Martin Jambor  <mjambor@suse.cz>
7073
7074         PR hsa/69568
7075         * hsa.h (hsa_type_packed_p): Declare.
7076         * hsa.c (hsa_type_packed_p): New function.
7077         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
7078         loads.
7079         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
7080         * hsa-brig.c (emit_basic_insn): Likewise.
7081
7082 2016-02-26  Martin Jambor  <mjambor@suse.cz>
7083
7084         pr hsa/69674
7085         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
7086         pointers.
7087         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
7088
7089 2016-02-26  Martin Jambor  <mjambor@suse.cz>
7090
7091         * hsa.h (is_a_helper): New overload for hsa_op_immed for
7092         hsa_op_with_type operands.
7093         (hsa_unsigned_type_for_type): Declare.
7094         * hsa.c (hsa_unsigned_type_for_type): New function.
7095         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
7096         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
7097         the finalizer.  Do not emit extra move.
7098
7099 2016-02-26  Martin Jambor  <mjambor@suse.cz>
7100
7101         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
7102         atomic operations in private segment.
7103
7104 2016-02-26  Martin Jambor  <mjambor@suse.cz>
7105
7106         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
7107         statements to wi->info.  Also disallow omp simd constructs.
7108         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
7109         for not gridifying.  Dump special string for omp_for.
7110
7111 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7112
7113         PR target/69245
7114         * config/aarch64/aarch64.c (aarch64_set_current_function):
7115         Save/restore target globals when switching to
7116         target_option_default_node.
7117
7118 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7119
7120         PR target/69613
7121         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
7122         Return 0 if !SHIFT_COUNT_TRUNCATED.
7123
7124 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
7125             Eric Botcazou  <ebotcazou@adacore.com>
7126
7127         PR rtl-optimization/69891
7128         * dse.c (scan_insn): If we can't figure out memset arguments
7129         or they are non-constant, call clear_rhs_from_active_local_stores.
7130
7131 2016-02-26  Martin Liska  <mliska@suse.cz>
7132
7133         * doc/extend.texi: Mention clog10, clog10f an clog10l
7134         in Builtins section.
7135
7136 2016-02-26  Martin Liska  <mliska@suse.cz>
7137
7138         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
7139         CHECKING_P.
7140         (resolve_args_picking_1): Likewise.
7141         * dwarf2out.h (struct GTY): Likewise.
7142
7143 2016-02-26  Martin Liska  <mliska@suse.cz>
7144
7145         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
7146         with flag_checking.
7147         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
7148
7149 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
7150             Martin Liska  <mliska@suse.cz>
7151
7152         * doc/install.texi: Mention --enable-valgrind-annotations.
7153
7154 2016-02-26  Richard Biener  <rguenther@suse.de>
7155
7156         PR tree-optimization/69551
7157         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
7158         looking through aliases adjust DECL_PT_UID to refer to the
7159         ultimate alias target.
7160
7161 2016-02-25  Martin Liska  <mliska@suse.cz>
7162
7163         PR middle-end/69919
7164         * alloc-pool.c (after_memory_report): New variable.
7165         * alloc-pool.h (base_pool_allocator ::release): Do not use
7166         the infrastructure if after_memory_report.
7167         * toplev.c (toplev::main): Mark after memory report.
7168
7169 2016-02-25  Richard Biener  <rguenther@suse.de>
7170
7171         PR tree-optimization/48795
7172         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
7173
7174 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
7175
7176         PR driver/68463
7177         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
7178         offloading is enabled and -fopenacc or -fopenmp is specified.
7179         (CRTOFFLOADEND): Likewise.
7180         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
7181         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
7182         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
7183         (offload_objects_file_name): New static var.
7184         (tool_cleanup): Remove offload_objects_file_name file.
7185         (find_offloadbeginend): Replace with ...
7186         (find_crtoffloadtable): ... this.
7187         (run_gcc): Remove offload_argc and offload_argv.
7188         Get offload_objects_file_name from -foffload-objects=... option.
7189         Read names of object files with offload from this file, pass them to
7190         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
7191         don't pass offloadbegin and offloadend to the linker.  Don't pass
7192         offload non-LTO files to the linker, because now they're not claimed.
7193
7194 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
7195
7196         PR ipa/69630
7197         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
7198         on builtin_unreachable.
7199
7200 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
7201
7202         PR rtl-optimization/69896
7203         * regcprop.c: Include cfgrtl.h.
7204         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
7205         than remembered mode, either delete it (if noop_move_p), or
7206         treat like copy_p but not noop_p instruction.
7207
7208 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
7209
7210         PR debug/69705
7211         * dwarf2out.c (gen_variable_die): Work around buggy LTO
7212         - allow NULL decl for Fortran DW_TAG_common_block variables.
7213
7214 2016-02-24  Jason Merrill  <jason@redhat.com>
7215
7216         * common.opt (flifetime-dse): Add -flifetime-dse=1.
7217
7218 2016-02-24  Richard Biener  <rguenther@suse.de>
7219             Jakub Jelinek  <jakub@redhat.com>
7220
7221         PR middle-end/69760
7222         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
7223         conditionally executed ops to well-defined overflow behavior.
7224
7225 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
7226
7227         PR middle-end/69915
7228         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
7229         elements.
7230
7231 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7232
7233         PR rtl-optimization/69886
7234         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
7235         argument.  Use it when checking validity of set instructions.
7236         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
7237         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
7238         callsite.
7239         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
7240         * store-motion.c (find_moveable_store): Update
7241         can_assign_to_reg_without_clobbers_p callsite.
7242
7243 2016-02-24  Richard Biener  <rguenther@suse.de>
7244
7245         PR middle-end/68963
7246         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
7247         bogus check.
7248         (record_nonwrapping_iv): Do not fall back to the low/high bound
7249         for non-constant IV bases if the stmt is not always executed.
7250
7251 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7252
7253         * config/arm/arm-cores.def (cortex-a32): New entry.
7254         * config/arm/arm-tables.opt: Regenerate.
7255         * config/arm/arm-tune.md: Regenerate.
7256         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
7257         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
7258         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
7259         for -mcpu and -mtune.
7260
7261 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7262
7263         PR target/69875
7264         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
7265         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
7266         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
7267         (atomic_loaddi_1): Delete.
7268         (atomic_loaddi): Rewrite expander using the above changes.
7269
7270 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
7271
7272         PR c/69918
7273         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
7274         2 to 3.
7275
7276 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
7277             Richard Biener  <rguenth@suse.de>
7278
7279         PR middle-end/69909
7280         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
7281         set_mem_attributes if tem is SSA_NAME which got expanded
7282         as a MEM.
7283
7284 2016-02-24  Richard Biener  <rguenther@suse.de>
7285
7286         PR tree-optimization/69907
7287         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
7288         end of permutations for BB vectorization.
7289
7290 2016-02-24  Christian Bruel  <christian.bruel@st.com>
7291
7292         * config/arm/arm-c.c (arm_option_override): Initialize
7293         target_option_current_node.
7294         * config/arm/arm.c (arm_pragma_target_parse): Replace
7295         build_target_option_node call by target_option_current_node.
7296         Set target_option_current_node.
7297         Fix comments.
7298
7299 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
7300
7301         PR target/69810
7302         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
7303         define_insn_and_split to define_insn.
7304         (zero_extendqi<mode>2_dot2): Same.
7305         (extendqi<mode>2_dot): Same.
7306         (extendqi<mode>2_dot2): Same.
7307
7308 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
7309
7310         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
7311         and add bypass for AES{D,E} and AESMC pairs.
7312         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
7313         and AESMC pairs.
7314
7315 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
7316
7317         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
7318         series for reciprocal square root in Exynos M1.
7319
7320 2016-02-23  Martin Sebor  <msebor@redhat.com>
7321
7322         PR c/69759
7323         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
7324         __builtin_alloca_with_align.
7325
7326 2016-02-23  Richard Henderson  <rth@redhat.com>
7327
7328         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
7329         (ix86_register_pragmas): Remove __seg_tls.
7330         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
7331         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
7332         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
7333         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
7334         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
7335         * doc/extend.texi (__seg_tls): Remove item.
7336
7337 2016-02-23  Richard Biener  <rguenther@suse.de>
7338
7339         * alloc-pool.h (struct allocation_object): Make id member
7340         conditional on CHECKING_P again.
7341         (get_instance): Adjust.
7342         (base_pool_allocator): Likewise.
7343
7344 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
7345
7346         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
7347         (parallelize_loops): In OpenACC kernels mode, set n_threads to
7348         zero.
7349         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
7350         flag_openacc.
7351         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
7352
7353 2016-02-23  Richard Biener  <rguenther@suse.de>
7354
7355         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
7356         * bitmap.h (struct bitmap_usage): Likewise.
7357         (bitmap_move): Declare.
7358         * bitmap.c (register_overhead): Take size_t argument.
7359         (bitmap_move): New function.
7360         * df-problems.c (df_rd_transfer_function): Use bitmap_move
7361         to properly account overhead.
7362         * tree.c (free_node): Use tree_size.
7363
7364 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
7365
7366         PR c++/69902
7367         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
7368         when inverting comparison.
7369
7370         PR c/69900
7371         * common.opt (Wunreachable-code): Add Warning flag.
7372
7373 2016-02-23  Mark Wielaard  <mjw@redhat.com>
7374             Jakub Jelinek  <jakub@redhat.com>
7375
7376         PR c/69911
7377         * cgraphunit.c (check_global_declaration): Check main_input_filename
7378         and DECL_SOURCE_FILE are not NULL.
7379
7380 2016-02-23  Martin Jambor  <mjambor@suse.cz>
7381
7382         PR tree-optimization/69666
7383         * tree-sra.c (sra_modify_assign): Do not attempt to create
7384         default_def replacements for unscalarizable regions.
7385
7386 2016-02-20  Mark Wielaard  <mjw@redhat.com>
7387
7388         PR c/28901
7389         * cgraphunit.c (check_global_declaration): Check level of
7390         warn_unused_const_variable and main_input_filename.
7391         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
7392         (-Wunused-variable): For C implies -Wunused-const-variable=1.
7393         (-Wunused-const-variable): Explain levels 1 and 2.
7394
7395 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
7396
7397         PR target/69888
7398         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
7399         identical arguments.  Formatting and spelling fixes.
7400
7401         PR target/69885
7402         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
7403         be specified.
7404
7405         PR target/69894
7406         PR target/69895
7407         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
7408         and m68k-devices.def.
7409         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
7410         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
7411
7412 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
7413
7414         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
7415         and HImode registers.
7416
7417 2016-02-22  Richard Biener  <rguenther@suse.de>
7418
7419         PR tree-optimization/69882
7420         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
7421         preserve permutations present because of gaps.
7422         (vect_supported_load_permutation_p): Always continue checking
7423         permutations after vect_attempt_slp_rearrange_stmts.
7424
7425 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
7426
7427         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
7428         min_profitable_estimate, rather than min_profitable_iters.
7429
7430 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
7431
7432         PR target/69885
7433         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
7434         SImode for last match_operand.
7435
7436 2016-02-22  Martin Liska  <mliska@suse.cz>
7437
7438         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
7439         return bitsize - 1 as the return value.
7440
7441 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
7442
7443         PR target/69806
7444         PR target/54089
7445         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
7446         Handle negative shift counts.
7447         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
7448         force_reg on the shift constant.
7449         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
7450         (lshrsi3_d): Handle negative shift counts.
7451
7452 2016-02-22  Richard Biener  <rguenther@suse.de>
7453             Tom de Vries  <tom@codesourcery.com>
7454
7455         * graph.c: Include dumpfile.h.
7456         (print_graph_cfg): Split into three overloads.
7457         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
7458
7459 2016-02-22  Tom de Vries  <tom@codesourcery.com>
7460
7461         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
7462         dump-fn.
7463
7464 2016-02-22  Richard Biener  <rguenther@suse.de>
7465
7466         PR ipa/37448
7467         * ipa-inline-transform.c (inline_call): When not updating
7468         overall summaries adjust self size by the growth estimate.
7469         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
7470         hash-set, do not update overall summaries here.  Renamed from ...
7471         (inline_to_all_callers): ... this which is now wrapping the
7472         above and performing delayed overall summary update.
7473         (early_inline_small_functions): Delay updating of the overall
7474         summary.
7475
7476 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7477
7478         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
7479         variable.
7480
7481 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
7482
7483         PR driver/69805
7484         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
7485         :%* in %:gt() argument.
7486         (greater_than_spec_func): Adjust for expecting only numbers,
7487         if there are more than two numbers, compare the last two.
7488
7489 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
7490
7491         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
7492         -Wnarrowing with -std.
7493
7494 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
7495
7496         PR c++/69851
7497         * expr.c (store_field): Don't use bit-field path if exp is
7498         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
7499         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
7500         and the assignment can be performed by bitwise copy.  Formatting
7501         fix.
7502
7503         PR middle-end/69838
7504         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
7505         call copy_reg_eh_region_note_forward on before and/or after sequences
7506         and remove note from insn if it no longer can throw.
7507
7508         PR target/69820
7509         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
7510         if TARGET_AVX512BW.
7511
7512 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7513
7514         * config/s390/vector.md: Add missing commutative operand markers
7515         to the patterns which qualify for one.
7516         * config/s390/vx-builtins.md: Likewise.
7517
7518 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7519
7520         * config/s390/vector.md (VI, VI_QHS): Add single element vector
7521         types to mode iterators.
7522         (vec_double): ... and mode attribute.
7523         * config/s390/vx-builtins.md (non_vec_int): Likewise.
7524
7525 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7526
7527         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
7528         Change the predicate of op2 from nonimmediate to general and let
7529         reload fix it if necessary.
7530
7531 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7532
7533         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
7534
7535 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7536
7537         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
7538         mode.
7539
7540 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7541
7542         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
7543         * config/s390/s390.c (s390_expand_vec_movstr): New function.
7544         * config/s390/s390.md ("movstr<P:mode>"): Call
7545         s390_expand_vec_movstr.
7546
7547 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7548
7549         * config/s390/s390.md: Add missing output modifier for operand 1
7550         to print it as address properly.
7551
7552 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7553
7554         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
7555         * config/s390/2964.md: New file.
7556         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
7557         of insn grouping attributes depending on the CPU level.
7558         (s390_get_unit_mask): New function.
7559         (s390_sched_score): Remove the OOO from the scheduling macros.
7560         Add loop to calculate a score for the instruction mix.
7561         (s390_sched_reorder): Likewise plus improve debug output.
7562         (s390_sched_variable_issue): Rename macros as above.  Calculate
7563         the unit distances after actually scheduling an insn.  Improve
7564         debug output.
7565         (s390_sched_init): Clear last_scheduled_unit_distance array.
7566         * config/s390/s390.md: Include 2964.md.
7567
7568 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
7569
7570         PR target/69671
7571         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
7572         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
7573         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
7574         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
7575         *avx512f_<code>v8div16qi2_mask_1): New insns.
7576
7577 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
7578
7579         PR target/68404
7580         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
7581         2016-02-09 change.
7582
7583         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
7584         earlyclobber from target.  Use wF constraint for fused memory
7585         address.
7586         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
7587
7588 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
7589             Martin Liska  <mliska@suse.cz>
7590
7591         PR sanitizer/69863
7592         * cfgexpand.c (asan_sanitize_stack_p): New function.
7593         (partition_stack_vars): Use the function.
7594         (expand_stack_vars): Likewise.
7595         (defer_stack_allocation): Likewise.
7596         (expand_used_vars): Likewise.
7597
7598 2016-02-18  Richard Biener  <rguenther@suse.de>
7599
7600         PR middle-end/69553
7601         * fold-const.c (operand_equal_p): Properly compare offsets for
7602         IMAGPART_EXPR and ARRAY_REF.
7603
7604 2016-02-18  Nick Clifton  <nickc@redhat.com>
7605
7606         PR target/62254
7607         PR target/69610
7608         * config/arm/arm.c (arm_option_override_internal): Disable
7609         interworking if the target does not support thumb instructions.
7610         (arm_reload_in_hi): Handle the case where a register to register
7611         move needs reloading because there is no simple pattern to handle
7612         it.
7613         (arm_reload_out_hi): Likewise.
7614
7615 2016-02-18  Richard Biener  <rguenther@suse.de>
7616
7617         PR middle-end/69854
7618         * match.pd: Don't use fold_binary or fold_unary for folding
7619         constants.
7620
7621 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
7622
7623         PR c++/69850
7624         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
7625         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
7626         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
7627         warn on gimple_no_warning_p statements.
7628
7629 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
7630
7631         * doc/extend.texi (C++ Attributes): Correct description of
7632         warn_unused type attribute.
7633
7634 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7635
7636         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
7637         correct instruction.
7638
7639 2016-02-17  Richard Biener  <rguenther@suse.de>
7640
7641         PR rtl-optimization/69609
7642         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
7643         (find_traces_1_round): When ending a trace update cached priority
7644         of successors.
7645         (bb_to_key): Use cached priority when available.
7646         (copy_bb): Initialize cached priority.
7647         (reorder_basic_blocks_software_trace_cache): Likewise.
7648
7649 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7650
7651         PR target/69161
7652         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
7653         New predicate.
7654         (aarch64_comparison_operator): Break overly long line into two.
7655         (aarch64_comparison_operation): Likewise.
7656         * config/aarch64/aarch64.md (cstorecc4): Use
7657         aarch64_comparison_operator_mode instead of
7658         aarch64_comparison_operator.
7659         (cstore<mode>4): Likewise.
7660         (aarch64_cstore<mode>): Likewise.
7661         (*cstoresi_insn_uxtw): Likewise.
7662         (cstore<mode>_neg): Likewise.
7663         (*cstoresi_neg_uxtw): Likewise.
7664
7665 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7666
7667         PR target/69161
7668         * config/arm/predicates.md (arm_comparison_operator_mode):
7669         New predicate.
7670         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
7671         instead of arm_comparison_operator.
7672         (*mov_negscc): Likewise.
7673         (*mov_notscc): Likewise.
7674         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
7675         (*thumb2_mov_negscc): Likewise.
7676         (*thumb2_mov_negscc_strict_it): Likewise.
7677         (*thumb2_mov_notscc): Likewise.
7678         (*thumb2_mov_notscc_strict_it): Likewise.
7679
7680 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
7681
7682         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
7683         Add missing return.
7684
7685 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
7686
7687         * config/visium/visium.c (machine_libfunc_index): New enum.
7688         (machine_libfuncs): New structure.
7689         (visium_libfuncs): New static variable.
7690         (TARGET_INIT_LIBFUNCS): Define to...
7691         (visium_init_libfuncs): ...this.  New function.
7692         (expand_block_move_4): Use the appropriate libfunc.
7693         (expand_block_move_2): Likewise.
7694         (expand_block_move_1): Likewise.
7695         (expand_block_set_4): Likewise.
7696         (expand_block_set_2): Likewise.
7697         (expand_block_set_1): Likewise.
7698         (visium_trampoline_init): Likewise.
7699
7700 2016-02-17  Nick Clifton  <nickc@redhat.com>
7701
7702         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
7703         TI's devices.csv file as of March 2016.
7704
7705 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7706
7707         PR Target/48344
7708         * opts-global.c (handle_common_deferred_options): Introduce and
7709         initialize two global variables to remember command-line options
7710         specifying a stack-limiting register.
7711         * opts.h: Add extern declarations of the two new global variables.
7712         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
7713         variable based on the values of the two new global variables.
7714
7715 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7716
7717         PR c/69835
7718         * common.opt (Wnonnull-compare): New warning.
7719         * doc/invoke.texi (-Wnonnull): Remove text about comparison
7720         of arguments against NULL.
7721         (-Wnonnull-compare): Document.
7722         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
7723         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
7724         * passes.def (pass_warn_nonnull_compare): Add.
7725         * gimple-ssa-nonnull-compare.c: New file.
7726
7727 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7728
7729         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
7730         AARCH64_EXTRA_TUNE_RECIP_SQRT.
7731
7732 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7733
7734         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
7735         reciprocal sqrt for -mlow-precision-recip-sqrt.
7736
7737 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7738             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7739
7740         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
7741         always use lane loads to construct non-constant vectors.
7742
7743 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7744
7745         * config/aarch64/aarch64.md
7746         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
7747         constraints for operand 3.
7748         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
7749
7750 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7751             Richard Biener  <rguenther@suse.de>
7752
7753         PR tree-optimization/69820
7754         * tree-vect-patterns.c (type_conversion_p): Return false if
7755         *orig_type is unsigned single precision or boolean.
7756         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
7757         Formatting fix.
7758
7759 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7760
7761         PR rtl-optimization/69764
7762         PR rtl-optimization/69771
7763         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
7764         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
7765
7766 2016-02-16  Richard Biener  <rguenther@suse.de>
7767
7768         PR tree-optimization/69776
7769         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
7770         sets from caller.
7771         (indirect_refs_may_alias_p): Likewise.
7772         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
7773         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
7774         according to tbaa_p.
7775         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
7776         (optimize_stmt): For redundant store discovery do not allow tbaa.
7777
7778 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
7779
7780         PR tree-optimization/69714
7781         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
7782         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
7783
7784 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
7785
7786         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
7787         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
7788         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
7789         * config/arc/arc.c (arc_init): Check FPU options.
7790         (get_arc_condition_code): Handle new CC_FPU* modes.
7791         (arc_select_cc_mode): Likewise.
7792         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
7793         register pair only. Allow access for ARCv2 accumulator.
7794         (gen_compare_reg): Whenever we have FPU support use FPU compare
7795         instructions.
7796         (arc_reorg): Don't generate brcc insns when FPU compare
7797         instructions are involved.
7798         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
7799         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
7800         floating point emulation.
7801         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
7802         (REVERSE_CONDITION): Add new CC_FPU* modes.
7803         (TARGET_FP_SP_BASE): Define.
7804         (TARGET_FP_DP_BASE): Likewise.
7805         (TARGET_FP_SP_FUSED): Likewise.
7806         (TARGET_FP_DP_FUSED): Likewise.
7807         (TARGET_FP_SP_CONV): Likewise.
7808         (TARGET_FP_DP_CONV): Likewise.
7809         (TARGET_FP_SP_SQRT): Likewise.
7810         (TARGET_FP_DP_SQRT): Likewise.
7811         (TARGET_FP_DP_AX): Likewise.
7812         * config/arc/arc.md (ARCV2_ACC): New constant.
7813         (type): New fpu type attribute.
7814         (SDF): Conditional iterator.
7815         (cstore<mode>, cbranch<mode>): Change expand condition.
7816         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
7817         handles FPU/FPX cases as well.
7818         * config/arc/arc.opt (mfpu): New option.
7819         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
7820         Renamed.
7821         (adddf3, muldf3, subdf3): Removed.
7822         * config/arc/predicates.md (proper_comparison_operator): Recognize
7823         CC_FPU* modes.
7824         * config/arc/fpu.md: New file.
7825         * doc/invoke.texi (ARC Options): Document mfpu option.
7826
7827 2016-02-16  Richard Biener  <rguenther@suse.de>
7828
7829         PR rtl-optimization/69291
7830         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
7831         noce_operand_ok check.
7832
7833 2016-02-16  Tom de Vries  <tom@codesourcery.com>
7834
7835         PR lto/67709
7836         * omp-low.c (simd_clone_create): Remove call to
7837         symtab->call_cgraph_insertion_hooks.
7838
7839 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7840
7841         PR tree-optimization/69802
7842         * tree-ssa-reassoc.c (update_range_test): If op is
7843         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
7844         op == 1 test of precision 1 integral op, otherwise handle
7845         that case as op itself.  Fix up formatting.
7846         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
7847         up formatting.
7848
7849 2016-02-16  Richard Biener  <rguenther@suse.de>
7850
7851         PR tree-optimization/69586
7852         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
7853         types for conversion sources.
7854
7855 2016-02-16  Richard Biener  <rguenther@suse.de>
7856
7857         PR middle-end/69801
7858         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
7859         mask OEP_ADDRESS_OF.
7860
7861 2016-02-16  Alan Modra  <amodra@gmail.com>
7862
7863         PR target/68973
7864         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
7865         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
7866         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
7867         (p8_mtvsrwz): New.
7868         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
7869         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
7870         (p8_fmrgow_<mode>): Likewise.
7871         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
7872         changes.
7873         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
7874         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
7875         to use movdi_internal64.  Remove op0_di.
7876         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
7877
7878 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
7879
7880         Add support for the FCCMP insn types
7881
7882         * config/aarch64/aarch64.md (fccmp): Change insn type.
7883         (fccmpe): Likewise.
7884         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
7885         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
7886         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
7887         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
7888         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
7889         * config/arm/types.md (fccmps): Add new insn type.
7890         (fccmpd): Likewise.
7891
7892 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7893
7894         * alias.c (get_alias_set): Fix a typo in comment.
7895
7896 2016-02-15  Richard Biener  <rguenther@suse.de>
7897
7898         PR tree-optimization/69595
7899         * match.pd: Complete range test simplification to true.
7900
7901 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
7902
7903         PR rtl-optimization/69648
7904         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
7905         pic_offset_table_rtx.
7906
7907         PR rtl-optimization/69752
7908         * ira.c (update_equiv_regs): When looking for more than a single SET,
7909         also take other side effects into account.
7910
7911 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
7912
7913         * config/s390/s390.c (s390_function_profiler): Add a new sequence
7914         for z900+ CPUs in 31-bit mode.
7915
7916 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
7917
7918         * common/config/s390/s390-common.c (s390_supports_split_stack):
7919         New function.
7920         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
7921         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
7922         * config/s390/s390.c (struct machine_function): New field
7923         split_stack_varargs_pointer.
7924         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
7925         in s390_emit_prologue.
7926         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
7927         vararg pointer.
7928         (morestack_ref): New global.
7929         (SPLIT_STACK_AVAILABLE): New macro.
7930         (s390_expand_split_stack_prologue): New function.
7931         (s390_live_on_entry): New function.
7932         (s390_va_start): Use split-stack vararg pointer if appropriate.
7933         (s390_asm_file_end): Emit the split-stack note sections.
7934         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
7935         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
7936         (UNSPECV_SPLIT_STACK_CALL): New unspec.
7937         (UNSPECV_SPLIT_STACK_DATA): New unspec.
7938         (split_stack_prologue): New expand.
7939         (split_stack_space_check): New expand.
7940         (split_stack_data): New insn.
7941         (split_stack_call): New expand.
7942         (split_stack_call_*): New insn.
7943         (split_stack_cond_call): New expand.
7944         (split_stack_cond_call_*): New insn.
7945
7946 2016-02-15  Richard Biener  <rguenther@suse.de>
7947
7948         PR tree-optimization/69783
7949         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7950         Add trivially correct cases.
7951
7952 2016-02-15  Tom de Vries  <tom@codesourcery.com>
7953
7954         PR lto/69655
7955         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
7956         do_force_output.
7957         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
7958
7959 2016-02-15  Richard Biener  <rguenther@suse.de>
7960
7961         PR tree-optimization/69776
7962         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
7963         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
7964         indicate whether we can use TBAA to disambiguate against stores.
7965         Use alias-set zero if not.
7966         (visit_reference_op_store): Do not use TBAA when looking up
7967         redundant stores.
7968         * tree-ssa-pre.c (compute_avail): Use TBAA here.
7969         (eliminate_dom_walker::before_dom_children): But not when looking
7970         up redundant stores.
7971
7972 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
7973
7974         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
7975
7976 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7977
7978         *  config/i386/znver1.md
7979         (znver1_pop, znver1_pop_mem,
7980         znver1_load_imov_double_store,
7981         znver1_load_imov_direct_store,
7982         znver1_load_imov_direct_load,
7983         znver1_load_imov_double_load): Add new.
7984         (znver1_insn, znver1_insn_load): Add icmov type.
7985         (znver1_sseavx_fma,
7986         znver1_sseavx_fma_load,
7987         znver1_avx256_fma,
7988         znver1_avx256_fma_load): Fix pipe usage.
7989
7990 2016-02-14  Alan Modra  <amodra@gmail.com>
7991
7992         PR target/68973
7993         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
7994         with an invalid hard reg, reload just the reg not the entire
7995         pre/post-inc/dec address expression.
7996
7997 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
7998
7999         PR target/67260
8000         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
8001         fixed R1_REG scratch reg.
8002         (sibcall_value_pcrel_fdpic): Likewise.
8003
8004 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
8005
8006         PR target/67636
8007         PR target/64345
8008         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
8009
8010 2016-02-12  Walter Lee  <walt@tilera.com>
8011
8012         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
8013         * config/tilegx/t-tilegx: Likewise.
8014
8015 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
8016
8017         PR other/69554
8018         * diagnostic-show-locus.c (struct line_span): New struct.
8019         (layout::get_first_line): Delete.
8020         (layout::get_last_line): Delete.
8021         (layout::get_num_line_spans): New member function.
8022         (layout::get_line_span): Likewise.
8023         (layout::print_heading_for_line_span_index_p): Likewise.
8024         (layout::get_expanded_location): Likewise.
8025         (layout::calculate_line_spans): Likewise.
8026         (layout::m_first_line): Delete.
8027         (layout::m_last_line): Delete.
8028         (layout::m_line_spans): New field.
8029         (layout::layout): Update comment.  Replace m_first_line and
8030         m_last_line with m_line_spans, replacing their initialization
8031         with a call to calculate_line_spans.
8032         (diagnostic_show_locus): When printing source lines and
8033         annotations, rather than looping over a single span
8034         of lines, instead loop over each line_span within
8035         the layout, with an inner loop over the lines within them.
8036         Call the context's start_span callback when changing line spans.
8037         * diagnostic.c (diagnostic_initialize): Initialize start_span.
8038         (diagnostic_build_prefix): Break out the building of the location
8039         part of the string into...
8040         (diagnostic_get_location_text): ...this new function, rewriting
8041         it from nested ternary expressions to a sequence of "if"
8042         statements.
8043         (default_diagnostic_start_span_fn): New function.
8044         * diagnostic.h (diagnostic_start_span_fn): New typedef.
8045         (diagnostic_context::start_span): New field.
8046         (default_diagnostic_start_span_fn): New prototype.
8047
8048 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
8049
8050         PR driver/69779
8051         * gcc.c (driver::finalize): Fix cleanup of "specs".
8052
8053 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
8054
8055         PR driver/69265
8056         PR driver/69453
8057         * gcc.c (driver::driver): Initialize m_option_suggestions.
8058         (driver::~driver): Clean up m_option_suggestions.
8059         (suggest_option): Convert to...
8060         (driver::suggest_option): ...this, and split out into
8061         driver::build_option_suggestions and find_closest_string.
8062         (driver::build_option_suggestions): New function, from
8063         first half of suggest_option.  Special-case
8064         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
8065         the sanitizer_opts array.  For options of enum types, add the
8066         various enum values to the candidate strings.
8067         (driver::handle_unrecognized_options): Remove "const".
8068         * gcc.h (driver::handle_unrecognized_options): Likewise.
8069         (driver::build_option_suggestions): New decl.
8070         (driver::suggest_option): New decl.
8071         (driver::m_option_suggestions): New field.
8072         * opts-common.c (add_misspelling_candidates): New function.
8073         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
8074         and make non-static.
8075         * opts.h (sanitizer_opts): New array decl.
8076         (add_misspelling_candidates): New function decl.
8077         * spellcheck.c (find_closest_string): New function.
8078         * spellcheck.h (find_closest_string): New function decl.
8079
8080 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
8081
8082         PR rtl-optimization/69764
8083         PR rtl-optimization/69771
8084         * optabs.c (expand_binop_directly): For shift_optab_p, force
8085         convert_modes with VOIDmode if xop1 has VOIDmode.
8086
8087 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
8088
8089         PR target/69729
8090         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
8091         to correctly determine instrumentation thunks.
8092
8093 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
8094
8095         PR ipa/69241
8096         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
8097         type by reference, force lhs on the call.
8098
8099         PR ipa/68672
8100         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
8101         Compute retval and retbnd early in all cases if split_part_return_p
8102         and return_bb is not EXIT.  Remove all clobber stmts and reset
8103         all debug stmts that refer to SSA_NAMEs defined in split part,
8104         except if it is retval, in that case replace the old retval with the
8105         lhs of the call to the split part.
8106
8107 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
8108
8109         revert:
8110         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
8111
8112         PR middle-end/66726
8113         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
8114         whose result is used in PHI.
8115         (maybe_optimize_range_tests): Likewise.
8116         (final_range_test_p): Likweise.
8117
8118 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
8119
8120         PR middle-end/66726
8121         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
8122         whose result is used in PHI.
8123         (maybe_optimize_range_tests): Likewise.
8124         (final_range_test_p): Likweise.
8125
8126 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
8127
8128         * cgraph.c: Spelling fixes - behaviour -> behavior and
8129         neighbour -> neighbor.
8130         * target.def: Likewise.
8131         * sel-sched.c: Likewise.
8132         * config/mips/mips.c: Likewise.
8133         * config/arc/arc.md: Likewise.
8134         * config/arm/cortex-a57.md: Likewise.
8135         * config/arm/arm.c: Likewise.
8136         * config/arm/neon.md: Likewise.
8137         * config/arm/arm-c.c: Likewise.
8138         * config/vms/vms-c.c: Likewise.
8139         * config/s390/s390.c: Likewise.
8140         * config/i386/znver1.md: Likewise.
8141         * config/i386/i386.c: Likewise.
8142         * config/ia64/hpux-unix2003.h: Likewise.
8143         * config/msp430/msp430.md: Likewise.
8144         * config/rx/rx.c: Likewise.
8145         * config/rx/rx.md: Likewise.
8146         * config/aarch64/aarch64-simd.md: Likewise.
8147         * config/aarch64/aarch64.c: Likewise.
8148         * config/nvptx/nvptx.c: Likewise.
8149         * config/bfin/bfin.c: Likewise.
8150         * config/cris/cris.opt: Likewise.
8151         * config/rs6000/rs6000.c: Likewise.
8152         * target.h: Likewise.
8153         * spellcheck.c: Likewise.
8154         * ira-build.c: Likewise.
8155         * tree-inline.c: Likewise.
8156         * builtins.c: Likewise.
8157         * lra-constraints.c: Likewise.
8158         * explow.c: Likewise.
8159         * hwint.h: Likewise.
8160         * targhooks.c: Likewise.
8161         * tree-vect-data-refs.c: Likewise.
8162         * expr.c: Likewise.
8163         * doc/tm.texi: Likewise.
8164         * doc/extend.texi: Likewise.
8165         * doc/install.texi: Likewise.
8166         * doc/md.texi: Likewise.
8167         * tree-ssa-tail-merge.c: Likewise.
8168         * sched-int.h: Likewise.
8169         * match.pd: Likewise.
8170         * sched-ebb.c: Likewise.
8171         * target.def (omit_struct_return_reg): Likewise.
8172         * gimple-ssa-isolate-paths.c: Likewise.
8173         (find_implicit_erroneous_behaviour): Renamed to...
8174         (find_implicit_erroneous_behavior): ... this.
8175         (find_explicit_erroneous_behaviour): Renamed to...
8176         (find_explicit_erroneous_behavior): ... this.
8177         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
8178
8179 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
8180
8181         PR rtl-optimization/64682
8182         PR rtl-optimization/69567
8183         PR rtl-optimization/69737
8184         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
8185         in I2 as well, just lose it.
8186
8187 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8188
8189         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
8190         New variable.
8191         (aarch64_last_printed_tune_string): Likewise.
8192         (aarch64_declare_function_name): Only output .arch assembler
8193         directive if it will be different from the previously output
8194         directive.  Same for .tune comment but only if -dA is set.
8195         (aarch64_start_file): New function.
8196         (TARGET_ASM_FILE_START): Define.
8197
8198 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
8199
8200         PR plugins/69758
8201         * Makefile.in (PLUGIN_HEADERS): Add params.list.
8202
8203 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
8204
8205         PR target/65313
8206         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
8207         -Wmaybe-uninitialized warning.
8208
8209 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
8210
8211         PR target/69713
8212         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
8213
8214 2016-02-11  Richard Biener  <rguenther@suse.de>
8215
8216         PR rtl-optimization/69291
8217         * ifcvt.c (noce_try_store_flag_constants): Do not allow
8218         subexpressions affected by changing the result.
8219
8220 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
8221
8222         PR target/69148
8223         * lra-constraints.c (curr_insn_transform): Find in/out operands
8224         for secondary memory moves.  Update dups.
8225
8226 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
8227
8228         PR tree-optimization/69652
8229         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
8230         to nested loop, did source re-formatting, skip debug statements,
8231         add check on statement with volatile operand, remove dead scalar
8232         statements.
8233
8234 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
8235             Patrick Palka  <ppalka@gcc.gnu.org>
8236
8237         PR ipa/69241
8238         PR c++/69649
8239         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
8240         calls if the return type is TREE_ADDRESSABLE.
8241         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
8242         * ipa-split.c (split_function): Fix doubled "we" in comment.
8243         Use void return type for the split part even if
8244         !split_point->split_part_set_retval.
8245
8246 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
8247
8248         PR tree-optimization/68021
8249         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
8250         when computing the value of biv cand by itself.
8251
8252 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
8253
8254         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
8255         (cortexa57_tunings): Likewise.
8256         (cortexa72_tunings): Likewise.
8257         (arch_macro_fusion_pair_p): Add support for AES fusion.
8258         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
8259         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
8260         Allow virtual registers before reload so early scheduling works.
8261         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
8262         correct latency and pipeline.
8263         (cortex_a57_crypto_complex): Likewise.
8264         (cortex_a57_crypto_xor): Likewise.
8265         (define_bypass): Add AES bypass.
8266
8267 2016-02-10  Richard Biener  <rguenther@suse.de>
8268
8269         PR tree-optimization/69726
8270         * passes.def: Add DCE pass before late uninit.
8271         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
8272         really fixup if-conversions job.
8273
8274 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
8275
8276         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
8277         (arm_cortex_a57_tune): Likewise.
8278         (aarch_macro_fusion_pair_p): Add support for AES fusion.
8279         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
8280
8281 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
8282
8283         * timevar.def (TV_PHASE_DBGINFO): Delete.
8284         (TV_PHASE_CHECK_DBGINFO): Likewise.
8285         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
8286
8287 2016-02-10  Richard Biener  <rguenther@suse.de>
8288
8289         PR tree-optimization/69719
8290         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
8291         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
8292
8293 2016-02-09  Andrew Pinski  <apinski@cavium.com>
8294
8295         PR tree-opt/69282
8296         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
8297         get_vcond_mask_icode returns false.
8298
8299 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
8300
8301         PR target/68404
8302         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
8303         an ADDIS that adds a pointer to a large constant that sets the
8304         upper16 bits with a load operation.
8305
8306 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
8307
8308         PR target/68532
8309         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
8310         order.
8311         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
8312         endian.
8313         (vzipq_s16): Likewise.
8314         (vzipq_s32): Likewise.
8315         (vzipq_f32): Likewise.
8316         (vzipq_u8): Likewise.
8317         (vzipq_u16): Likewise.
8318         (vzipq_u32): Likewise.
8319         (vzipq_p8): Likewise.
8320         (vzipq_p16): Likewise.
8321
8322 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
8323
8324         PR target/68532
8325         * config/arm/arm.c (neon_endian_lane_map): New function.
8326         (neon_vector_pair_endian_lane_map): New function.
8327         (arm_evpc_neon_vuzp): Allow for big endian lane order.
8328         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
8329         endian.
8330         (vuzpq_s16): Likewise.
8331         (vuzpq_s32): Likewise.
8332         (vuzpq_f32): Likewise.
8333         (vuzpq_u8): Likewise.
8334         (vuzpq_u16): Likewise.
8335         (vuzpq_u32): Likewise.
8336         (vuzpq_p8): Likewise.
8337         (vuzpq_p16): Likewise.
8338
8339 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
8340
8341         PR target/69634
8342         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
8343         debug insns.
8344
8345 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
8346
8347         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
8348         truncate const_int operand 1 to QImode.
8349
8350 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
8351
8352         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
8353         corresponding to an abnormal edge.
8354
8355 2016-02-09  Tom de Vries  <tom@codesourcery.com>
8356
8357         PR tree-optimization/69599
8358         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
8359         function.
8360         (find_func_aliases_for_builtin_call, find_func_clobbers)
8361         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
8362         partition.
8363
8364 2016-02-09  Richard Biener  <rguenther@suse.de>
8365
8366         PR tree-optimization/69715
8367         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
8368         LHS on calls as non-rewritable.
8369
8370 2016-02-09  Tom de Vries  <tom@codesourcery.com>
8371
8372         PR lto/69707
8373         * lto-wrapper.c (append_diag_options): New function.
8374         (compile_offload_image): Call append_diag_options.
8375
8376 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
8377
8378         PR other/69722
8379         * doc/extend.texi (Flag Output Operands): Correct sectioning.
8380         Minor copy-edit to fix verb tenses.
8381
8382 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
8383
8384         PR tree-optimization/69209
8385         * ipa-split.c (split_function): If split part is not
8386         returning retval, retval has gimple type but is not
8387         gimple value, force it into a SSA_NAME first.
8388
8389 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
8390
8391         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
8392         outdated section.
8393
8394 2016-02-08  Jason Merrill  <jason@redhat.com>
8395
8396         PR c++/69631
8397         * convert.c (convert_to_integer_1): Check dofold on truncation
8398         distribution.
8399         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
8400         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
8401         Rename from *_nofold.
8402         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
8403         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
8404
8405 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
8406
8407         PR target/60410
8408         * tree.c (build_common_tree_nodes): Remove short_double argument.
8409         All callers changed.
8410         * tree.h (build_common_tree_nodes): Adjust declaration.
8411         * doc/invoke.texi (-fshort-double): Remove documentation.
8412         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8413         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
8414         * lto-wrapper.c (merge_and_complain, append_compiler_options)
8415         (append_linker_options): Don't handle OPT_fshort_double.
8416
8417         PR rtl-optimization/68730
8418         * lra-remat.c (insn_to_cand_activation): New static variable.
8419         (lra_remat): Allocate and free it.
8420         (create_cand): New arg activation. Initialize a field in
8421         insn_to_cand_activation if it is nonnull.
8422         (create_cands): Pass the activation insn to create_cand when making
8423         a candidate involving an output reload.  Reorganize code a little.
8424         (do_remat): Keep track of active status of candidates in a separate
8425         bitmap.
8426
8427 2016-02-08  Richard Biener  <rguenther@suse.de>
8428
8429         PR tree-optimization/69719
8430         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
8431         Properly use absolute of the difference of the two offsets to
8432         compare or adjust the segment length.
8433
8434 2016-02-08  Richard Biener  <rguenther@suse.de>
8435             Jeff Law  <law@redhat.com>
8436
8437         PR target/68273
8438         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
8439         types for anonymous SSA names.
8440
8441 2016-02-08   Richard Biener  <rguenther@suse.de>
8442
8443         PR rtl-optimization/69274
8444         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
8445
8446 2016-02-08  Jeff Law  <law@redhat.com>
8447
8448         PR tree-optimization/65917
8449         * tree-ssa-dom.c (record_temporary_equivalences): Record both
8450         equivalences from if (x == y) style conditionals.
8451         (loop_depth_of_name): Remove.
8452         (record_equality): Remove loop depth check.
8453         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
8454         (const_and_copies::record_const_or_copy_raw): New member function.
8455         * tree-ssa-scopedtables.c
8456         (const_and_copies::record_const_or_copy_raw): New, factored out of
8457         (const_and_copies::record_const_or_copy): Call new member function.
8458
8459 2016-02-05  Jeff Law  <law@redhat.com>
8460
8461         PR tree-optimization/68541
8462         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
8463         (count_stmts_in_block): New function.
8464         (poor_ifcvt_candidate_code): Likewise.
8465         (is_feasible_trace): Add some heuristics to determine when path
8466         splitting is profitable.
8467         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
8468         is a diamond with a single exit.
8469
8470 2016-02-05  Martin Sebor  <msebor@redhat.com>
8471
8472         PR c++/69662
8473         * doc/invoke.texi: Update -Wplacement-new to take an optional
8474         argument.
8475
8476 2016-02-06  Richard Henderson  <rth@redhat.com>
8477
8478         PR c/69643
8479         * tree.c (tree_nop_conversion_p): Do not strip casts into or
8480         out of non-standard address spaces.
8481
8482 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
8483
8484         PR rtl-optimization/69691
8485         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
8486
8487 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
8488
8489         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
8490         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
8491         (*ieee128_mfvsrd_64bit): Likewise.
8492         (*ieee128_mfvsrd_32bit): Likewise.
8493
8494 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
8495
8496         PR target/69369
8497         Revert r232560:
8498         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
8499
8500         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
8501         instrumented_version.
8502
8503 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
8504
8505         * doc/invoke.texi (Optimize Options): In table of --param options
8506         rename second occurrence of tracer-min-branch-ratio to
8507         tracer-min-branch-probability, rename
8508         tracer-min-branch-ratio-feedback to
8509         tracer-min-branch-probability-feedback and clarify description,
8510         rename sched-spec-state-edge-prob-cutoff to
8511         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
8512         to selsched-insns-to-rename, rename lto-minpartition to
8513         lto-min-partition, delete reorder-blocks-duplicate and
8514         reorder-blocks-duplicate-feedback.
8515
8516 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8517
8518         * config/s390/s390.c (s390_register_info_set_ranges): Remove
8519         superfluous loops.
8520
8521 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8522
8523         * doc/extend.texi: S/390: Correct some typos.
8524
8525 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8526
8527         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
8528
8529 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8530
8531         PR target/69625
8532         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
8533         (s390_register_info_gprtofpr): Use new macros above.
8534         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
8535         its name.
8536         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
8537         its name.  Adjust restore and save gpr ranges.
8538         (s390_register_info_set_ranges): New function.
8539         (s390_register_info): Use new macros above.  Call
8540         s390_register_info_set_ranges.
8541         (s390_optimize_register_info): Likewise.
8542         (s390_hard_regno_rename_ok): Use new macros.
8543         (s390_hard_regno_scratch_ok): Likewise.
8544         (s390_emit_epilogue): Likewise.
8545         (s390_can_use_return_insn): Likewise.
8546         (s390_optimize_prologue): Likewise.
8547         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
8548
8549 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
8550
8551         PR bootstrap/69677
8552         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
8553         alignment fixes.
8554         (ix86_option_override_internal): Disable TARGET_STV even for
8555         -m{incoming,preferred}-stack-boundary=3.
8556
8557 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8558
8559         * config.gcc: Mark deprecated rtems targets as obsolete.
8560
8561 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
8562
8563         PR rtl-optimization/64682
8564         PR rtl-optimization/69567
8565         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
8566         before I2 only if the register is both used and set in I2.
8567
8568 2016-02-04  DJ Delorie  <dj@redhat.com>
8569
8570         * config/msp430/msp430.c (msp430_start_function): Add function type.
8571
8572 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
8573
8574         PR fortran/69368
8575         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
8576
8577 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
8578
8579         PR rtl-optimization/69577
8580         Revert:
8581         2015-10-29  Richard Henderson  <rth@redhat.com>
8582
8583         PR target/68124
8584         PR rtl-opt/67609
8585         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
8586         sse check to the exact conditions of PR 67609.
8587
8588 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
8589
8590         PR target/69667
8591         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
8592         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
8593         not allowed into the traditional Altivec registers.
8594         (movtd_64bit_nodm): Likewise.
8595         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
8596
8597 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
8598
8599         * config/aarch64/cortex-a57-fma-steering.c
8600         (aarch64_register_fma_steering): Remove "static" from arguments
8601         to register_pass.
8602
8603 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
8604
8605         PR target/69619
8606         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
8607         twice when complex.
8608
8609 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
8610
8611         * doc/invoke.texi: Delete -mno-fma4.
8612
8613 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
8614
8615         PR rtl-optimization/69577
8616         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
8617         (find_subregs_of_mode): Update accordingly.  Iterate over partial
8618         definitions.
8619
8620 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
8621
8622         * config/arm/arm-protos.h (neon_reinterpret): Remove.
8623         * config/arm/arm.c (neon_reinterpret): Remove.
8624         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
8625         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
8626         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
8627         vreinterpretti): Remove.
8628         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
8629         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
8630         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
8631         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
8632         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
8633         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
8634         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
8635         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
8636         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
8637         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
8638         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
8639         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
8640         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
8641         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
8642         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
8643         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
8644         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
8645         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
8646         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
8647         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
8648         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
8649         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
8650         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
8651         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
8652         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
8653         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
8654         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
8655         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
8656         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
8657         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
8658         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
8659         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
8660         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
8661         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
8662         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
8663         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
8664         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
8665         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
8666         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
8667         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
8668         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
8669         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
8670         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
8671         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
8672         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
8673         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
8674         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
8675         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
8676         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
8677         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
8678         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
8679         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
8680         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
8681         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
8682         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
8683         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
8684         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
8685         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
8686         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
8687         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
8688         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
8689         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
8690         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
8691         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
8692         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
8693         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
8694         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
8695         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
8696         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
8697         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
8698         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
8699         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
8700         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
8701         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
8702         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
8703         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
8704         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
8705         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
8706         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
8707         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
8708         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
8709         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
8710         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
8711         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
8712         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
8713         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
8714         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
8715         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
8716         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
8717         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
8718         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
8719         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
8720         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
8721         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
8722         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
8723         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
8724         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
8725         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
8726         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
8727         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
8728         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
8729         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
8730         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
8731
8732 2016-02-04  Martin Liska  <mliska@suse.cz>
8733
8734         PR sanitizer/69276
8735         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
8736         that are gimple_store_p.
8737         (maybe_instrument_call): Likewise.
8738
8739 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
8740
8741         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
8742         register scaling out of memory reference and comment why.
8743
8744 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8745
8746         PR target/65932
8747         PR target/67714
8748         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
8749         folding the source of a SET.
8750
8751 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8752
8753         PR target/65932
8754         PR target/67714
8755         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
8756         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
8757
8758 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
8759
8760         PR target/65932
8761         PR target/67714
8762         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
8763         HImode.
8764
8765 2016-02-04  Christian Bruel  <christian.bruel@st.com>
8766
8767         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
8768         * config/arm/arm.c (arm_set_current_function): Likewise.
8769
8770 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
8771             Ilya Enkovich  <enkovich.gnu@gmail.com>
8772             H.J. Lu  <hongjiu.lu@intel.com>
8773
8774         PR target/69454
8775         * config/i386/i386.c (convert_scalars_to_vector): Remove
8776         stack alignment fixes.
8777         (ix86_option_override_internal): Disable TARGET_STV if stack
8778         might not be aligned enough.
8779         (ix86_minimum_alignment): Assert that TARGET_STV is false.
8780
8781 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
8782
8783         * gcc/config/i386/x86-tune.def: Disable default prefetching
8784         for -march=znver1.
8785
8786 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
8787             Vladimir Makarov  <vmakarov@redhat.com>
8788
8789         PR target/69461
8790         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
8791         in validating fused toc addresses.
8792
8793 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
8794
8795         PR c/69627
8796         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
8797         range->m_caret fields if range->m_show_caret_p is false.
8798
8799         PR target/69644
8800         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
8801         Force oldval into register if it does not satisfy reg_or_short_operand
8802         predicate.  Fix up formatting.
8803
8804 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
8805             Alexandre Oliva  <aoliva@redhat.com>
8806
8807         PR target/69461
8808         * lra-constraints.c (simplify_operand_subreg): Check additionally
8809         address validity after potential reloading.
8810         (process_address_1): Check insns validity.  In case of failure do
8811         nothing.
8812
8813 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
8814
8815         PR target/69118
8816         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
8817         Fix target.
8818
8819 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
8820
8821         * wide-int.cc (canonize_uhwi): New function.
8822         (wi::divmod_internal): Use it.
8823
8824 2016-02-02  James Norris  <jnorris@codesourcery.com
8825
8826         * gimplify.c (omp_notice_variable): Add usage check.
8827
8828 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
8829
8830         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
8831         like LE, GE, LT, GT when emitting relational operator.
8832
8833 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
8834
8835         * ira-costs.c (find_costs_and_classes): Add extra argument.
8836         * target.def (ira_change_pseudo_allocno_class): Add parameter.
8837         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
8838         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
8839         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
8840         Add best_class parameter, and return it if not ALL_REGS.
8841         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
8842         Add parameter.
8843         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
8844         Update target hook.
8845
8846 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
8847
8848         * config/aarch64/aarch64.c
8849         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
8850         (aarch64_ira_change_pseudo_allocno_class): New function.
8851
8852 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
8853
8854         PR target/67032
8855         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
8856
8857 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8858
8859         * config/avr/avr.c (avr_option_override): Set
8860         PARAM_ALLOW_STORE_DATA_RACES to 1.
8861
8862 2016-02-02  Richard Biener  <rguenther@suse.de>
8863
8864         PR tree-optimization/69595
8865         * match.pd: Add range test simplifications to true/false.
8866
8867 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
8868
8869         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
8870         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
8871         instead.
8872
8873 2016-02-02  Richard Biener  <rguenther@suse.de>
8874
8875         PR tree-optimization/69606
8876         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
8877         info on the result before moving a stmt.
8878
8879 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
8880
8881         PR middle-end/68542
8882         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
8883         branch with vector comparison.
8884         * config/i386/sse.md (VI48_AVX): New mode iterator.
8885         (define_expand "cbranch<mode>4): Add support for conditional branch
8886         with vector comparison.
8887         * tree-vect-loop.c (optimize_mask_stores): New function.
8888         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
8889         has_mask_store field of vect_info.
8890         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
8891         vectorized loops having masked stores after vec_info destroy.
8892         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
8893         correspondent macros.
8894         (optimize_mask_stores): Add prototype.
8895
8896 2016-02-02  Alan Modra  <amodra@gmail.com>
8897
8898         PR target/69548
8899         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
8900         allow subregs.
8901
8902 2016-02-02  Alan Modra  <amodra@gmail.com>
8903
8904         PR target/68662
8905         * config/rs6000/rs6000.c (need_toc_init): New var, set it
8906         whenever toc_label_name used.
8907         (rs6000_file_start): Don't set up toc section here,
8908         (rs6000_output_function_epilogue): do so here instead,
8909         (rs6000_xcoff_file_start): and here.
8910         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
8911         (load_toc_aix_di): Likewise.
8912
8913 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
8914
8915         PR rtl-optimization/69592
8916         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
8917         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
8918         (num_sign_bit_copies_binary_arith_p): New inline function.
8919         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
8920
8921 2016-02-01  Jeff Law  <law@redhat.com>
8922
8923         PR tree-optimization/69580
8924         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
8925         * tree-ssa-threadbackward.c
8926         (fsm_find_control_statement_thread_paths): Do not try to walk
8927         through large PHI nodes.
8928
8929 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
8930
8931         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
8932         when count is incremented above limit, don't analyze further
8933         insns afterwards.
8934
8935         * omp-low.c (oacc_parse_default_dims): Avoid
8936         -Wsign-compare warning, make sure value fits into int
8937         rather than just unsigned int.
8938
8939 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
8940
8941         PR tree-optimization/67921
8942         * fold-const.c (split_tree): New parameters.  Convert pointer
8943         type variable part to proper type before negating.
8944         (fold_binary_loc): Pass new arguments to split_tree.
8945
8946 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
8947
8948         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
8949         (nvptx_goacc_validate_dims): Extend to handle global defaults.
8950         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
8951         * doc/tm.texti: Rebuilt.
8952         * doc/invoke.texi (fopenacc-dim): Document.
8953         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
8954         (append_compiler_options): Likewise.
8955         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
8956         (oacc_parse_default_dims): New.
8957         (oacc_validate_dims): Add USED arg.  Select non-unity default when
8958         possible.
8959         (oacc_loop_fixed_partitions): Return mask of used partitions.
8960         (oacc_loop_auto_partitions): Emit dump info.
8961         (oacc_loop_partition): Return mask of used partitions.
8962         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
8963         loop partitioning and validation calls.
8964
8965 2016-02-01  Richard Biener  <rguenther@suse.de>
8966
8967         PR middle-end/69556
8968         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
8969
8970 2016-02-01  Richard Biener  <rguenther@suse.de>
8971
8972         PR tree-optimization/69574
8973         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
8974         of asserting return chrec_dont_know.
8975
8976 2016-02-01  Martin Liska  <mliska@suse.cz>
8977
8978         * mem-stats-traits.h: Add copyright header.
8979         * mem-stats.h: Likewise.
8980
8981 2016-02-01  Richard Biener  <rguenther@suse.de>
8982
8983         PR tree-optimization/69579
8984         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
8985         Do not propagate through abnormal PHI results.
8986
8987 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
8988
8989         * postreload.c (reload_cse_simplify): Remove dead code.
8990
8991 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
8992
8993         PR rtl-optimization/69570
8994         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
8995         if there is more than one set, not if there is a single set.
8996
8997 2016-02-01  Richard Henderson  <rth@redhat.com>
8998
8999         PR rtl-opt/69535
9000         * combine.c (make_compound_operation): When looking through a
9001         subreg, make sure to re-extend to the width of the outer mode.
9002
9003 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
9004
9005         PR tree-optimization/69546
9006         * wide-int.cc (wi::divmod_internal): For unsigned division
9007         where both operands fit into uhwi, if o1 is 1 and o0 has
9008         msb set, if divident_prec is larger than bits per hwi,
9009         clear another quotient word and return 2 instead of 1.
9010         Similarly for remainder with msb in HWI set, if dividend_prec
9011         is larger than bits per hwi.
9012
9013 2016-01-29  Martin Jambor  <mjambor@suse.cz>
9014
9015         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
9016         Use short lowercase names.
9017         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
9018         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
9019         acq_rel one.  Protect warning agains segfaults if
9020         get_memory_order_name returns NULL.
9021         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
9022         with release semantics.  Do not warn if get_memory_order already did.
9023         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
9024         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
9025         if get_memory_order already did.
9026
9027 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
9028
9029         * doc/install.texi: Document that isl-0.16 is supported.
9030
9031 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
9032
9033         PR target/69299
9034         * config/i386/constraints.md (Bm): Describe as special memory
9035         constraint.
9036         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
9037         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
9038         * genpreds.c (struct constraint_data): Add is_special_memory.
9039         (have_special_memory_constraints, special_memory_start): New
9040         static vars.
9041         (special_memory_end): Ditto.
9042         (add_constraint): Add new arg is_special_memory.  Add code to
9043         process its true value.  Update have_special_memory_constraints.
9044         (process_define_constraint): Pass the new arg.
9045         (process_define_register_constraint): Ditto.
9046         (choose_enum_order): Process special memory.
9047         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
9048         function insn_extra_special_memory_constraint.
9049         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
9050         * gensupport.c (process_rtx): Process
9051         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
9052         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
9053         * ira-lives.c (single_reg_class): Use
9054         insn_extra_special_memory_constraint.
9055         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
9056         * lra-constraints.c (process_alt_operands): Ditto.
9057         (curr_insn_transform): Use insn_extra_special_memory_constraint.
9058         * recog.c (asm_operand_ok, preprocess_constraints): Process
9059         CT_SPECIAL_MEMORY.
9060         * reload.c (find_reloads): Ditto.
9061         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
9062         * stmt.c (parse_input_constraint): Use
9063         insn_extra_special_memory_constraint.
9064
9065 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
9066
9067         PR target/69530
9068         * lra-splill.c (lra_final_code_change): Revert r229087 by
9069         removing all sub-registers.
9070
9071 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
9072
9073         PR target/65604
9074         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
9075
9076 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
9077
9078         PR target/69551
9079         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
9080         SSE1, copy target into the temporary reg first before recursing
9081         on it.
9082
9083 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
9084
9085         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
9086         with vm.
9087
9088 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
9089
9090         * ginclude/stdarg.h: Test __cplusplus instead of
9091         __GXX_EXPERIMENTAL_CXX0X__.
9092
9093 2016-01-29  Richard Biener  <rguenther@suse.de>
9094
9095         PR tree-optimization/69547
9096         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
9097         Do not mark clobbers necessary.
9098         (mark_all_reaching_defs_necessary_1): Likewise.
9099
9100 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9101
9102         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
9103         declaration name with %qs and print it in both error messages.
9104         Also fix indentation.
9105
9106 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9107
9108         PR other/69006
9109         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
9110         trailing blank line from error message.
9111
9112 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
9113
9114         PR c++/69462
9115         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
9116         for C++-11.
9117
9118 2016-01-29  Richard Biener  <rguenther@suse.de>
9119
9120         PR middle-end/69537
9121         * match.pd: Allow all integral types when simplifying a
9122         widening or sign-changing conversion.
9123
9124 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
9125
9126         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
9127         back to setting codegen_error to fail codegen.
9128
9129 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
9130
9131         PR target/69459
9132         * config/i386/constraints.md (C): Only accept constant zero operand.
9133         (BC): New constraint.
9134         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
9135         instead of C constraint.
9136         * doc/md.texi (Machine Constraints): Update description
9137         of C constraint.
9138
9139 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
9140
9141         PR target/68400
9142         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
9143
9144 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
9145
9146         PR middle-end/69542
9147         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
9148         non-debug insns.
9149
9150 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
9151
9152         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
9153         branches if using guessed profile.
9154
9155 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
9156
9157         * graphite-optimize-isl.c (optimize_isl): Fix dump.
9158
9159 2016-01-28  Richard Henderson  <rth@redhat.com>
9160
9161         PR target/69305
9162         * config/aarch64/aarch64-modes.def (CC_Cmode): New
9163         * config/aarch64/aarch64-protos.h: Update.
9164         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
9165         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
9166         (aarch64_get_condition_code_1): Handle CC_Cmode.
9167         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
9168         (*add<mode>3_compareC_cconly_imm): New.
9169         (*add<mode>3_compareC_cconly): New.
9170         (*add<mode>3_compareC_imm): New.
9171         (add<mode>3_compareC): New.
9172         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
9173         to be first.  Use aarch64_carry_operation.
9174         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
9175         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
9176         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
9177         (subti3): Use subdi3_compare1.
9178         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
9179         (sub<mode>3_compare1): New.
9180         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
9181         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
9182         (*subsi3_carryin_uxtw): Likewise.
9183         (*ngc<mode>, *ngcsi_uxtw): Likewise.
9184         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
9185         * config/aarch64/iterators.md (DWI): New.
9186         * config/aarch64/predicates.md (aarch64_carry_operation): New.
9187         (aarch64_borrow_operation): New.
9188
9189 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
9190
9191         * graphite-optimize-isl.c (optimize_isl): Print a different debug
9192         message when isl does not return a valid schedule.
9193
9194 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
9195
9196         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
9197         Remove comments from class declarations: they are already in the code
9198         close by the defs.
9199
9200 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
9201
9202         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
9203         codegen_error_p.
9204         (ternary_op_to_tree): Same.
9205         (unary_op_to_tree): Same.
9206         (nary_op_to_tree): Same.
9207         (gcc_expression_from_isl_expr_op): Same.
9208         (gcc_expression_from_isl_expression): Same.
9209         (graphite_create_new_loop): Same.
9210         (graphite_create_new_loop_guard): Same.
9211         (build_iv_mapping): Same.
9212         (graphite_create_new_guard): Same.
9213         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
9214         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
9215
9216 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
9217
9218         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
9219         instead of setting codegen_error to fail codegen.
9220
9221 2016-01-28  Jason Merrill  <jason@redhat.com>
9222
9223         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
9224
9225 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
9226
9227         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
9228         Remove CONST_INT_P check in CCMP cost calculation.
9229
9230 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
9231
9232         * config/aarch64/aarch64.c (generic_vector_cost):
9233         Set vec_permute_cost.
9234         (cortexa57_vector_cost): Likewise.
9235         (exynosm1_vector_cost): Likewise.
9236         (xgene1_vector_cost): Likewise.
9237         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
9238         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
9239         Add vec_permute_cost entry.
9240
9241 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
9242
9243         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
9244         immediate as %1.
9245         (add<mode>3_compare0): Likewise.
9246         (addsi3_compare0_uxtw): Likewise.
9247         (add<mode>3nr_compare0): Likewise.
9248         (compare_neg<mode>): Likewise.
9249         (<optab><mode>3): Likewise.
9250
9251 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
9252
9253         * tree-vect-stmts.c (vectorizable_comparison): Add
9254         NULL check for vectype.
9255
9256 2016-01-28  Richard Biener  <rguenther@suse.de>
9257
9258         PR tree-optimization/69466
9259         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
9260         Account for PHIs we couldn't duplicate.
9261
9262 2016-01-28  Martin Liska  <mliska@suse.cz>
9263
9264         PR pch/68758
9265         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
9266         instead of ENABLE_VALGRIND_CHECKING.
9267
9268 2016-01-27  Richard Henderson  <rth@redhat.com>
9269
9270         PR rtl-opt/69447
9271         * lra-remat.c (subreg_regs): New.
9272         (dump_candidates_and_remat_bb_data): Dump it.
9273         (operand_to_remat): Reject if operand in subreg_regs.
9274         (set_bb_regs): Collect subreg_regs.
9275         (lra_remat): Init and free subreg_regs.  Compute
9276         calculate_local_reg_remat_bb_data before create_cands.
9277
9278 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
9279
9280         PR target/68986
9281         * config/i386/i386.c (ix86_update_stack_boundary): Don't
9282         change stack_alignment_needed for __tls_get_addr call.
9283
9284 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
9285
9286         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
9287
9288 2016-01-27  Jeff Law  <law@redhat.com>
9289
9290         PR tree-optimization/68398
9291         PR tree-optimization/69196
9292         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
9293         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
9294         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9295         Only count PHIs in the last block in the path.  The others will
9296         const/copy propagate away.  Add heuristic to allow more irreducible
9297         subloops to be created when it is likely profitable to do so.
9298
9299         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9300         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
9301         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
9302
9303 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
9304
9305         PR lto/69254
9306         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
9307         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
9308         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
9309         * tree-streamer-in.c: Include asan.h.
9310         (streamer_get_builtin_tree): For builtins in sanitizer
9311         range call initialize_sanitizer_builtins and retry.
9312
9313 2016-01-27  Ian Lance Taylor  <iant@google.com>
9314
9315         * common.opt (fkeep-gc-roots-live): New undocumented option.
9316         * tree-ssa-loop-ivopts.c (add_candidate_1): If
9317         -fkeep-gc-roots-live, skip pointers.
9318         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
9319         NULL.
9320
9321 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
9322
9323         PR target/69512
9324         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
9325         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
9326
9327 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
9328
9329         PR target/68380
9330         * configure.ac: NetBSD provides SSP in its C library.
9331         * configure: Updated.
9332
9333 2016-01-27  Richard Biener  <rguenther@suse.de>
9334
9335         PR tree-optimization/69166
9336         * tree-vect-loop.c (vect_is_simple_reduction): Always check
9337         reduction code for commutativity / associativity.
9338
9339 2016-01-27  Martin Jambor  <mjambor@suse.cz>
9340
9341         PR tree-optimization/69355
9342         * tree-sra.c (analyze_access_subtree): Correct hole detection when
9343         total_scalarization fails.
9344
9345 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
9346
9347         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
9348         power9.
9349
9350 2016-01-27  Christian Bruel  <christian.bruel@st.com>
9351
9352         PR target/69245
9353         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
9354         Move arm_reset_previous_fndecl and set_target_option_current_node in
9355         the conditional part.  Call save_restore_target_globals.
9356         * config/arm/arm.c (arm_set_current_function):
9357         Refactor to better support #pragma target and attribute mix.
9358         Call save_restore_target_globals.
9359         * config/arm/arm-protos.h (save_restore_target_globals): New function.
9360
9361 2016-01-27  Martin Liska  <mliska@suse.cz>
9362
9363         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
9364         reference for an HSA kernel and its host function.
9365
9366 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
9367
9368         PR tree-optimization/69399
9369         * wide-int.h (wi::lrshift): For larger precisions, only
9370         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
9371
9372 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
9373
9374         * config/arc/predicates.md (proper_comparison_operator): Reject
9375         constant-constant comparison.
9376
9377 2016-01-26  Tom de Vries  <tom@codesourcery.com>
9378
9379         PR tree-optimization/69110
9380         * tree-data-ref.c (initialize_data_dependence_relation): Handle
9381         DR_NUM_DIMENSIONS == 0.
9382
9383 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
9384             Sebastian Pop  <s.pop@samsung.com>
9385
9386         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
9387         isl_ast_op_cond and isl_ast_op_select.
9388         (gcc_expression_from_isl_expr_op): Same.
9389
9390 2016-01-26  Jason Merrill  <jason@redhat.com>
9391
9392         PR c++/68782
9393         * tree.c (recompute_constructor_flags): Split out from
9394         build_constructor.
9395         (verify_constructor_flags): New.
9396         * tree.h: Declare them.
9397
9398 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
9399
9400         PR rtl-optimization/69217
9401         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
9402         are no TYPE_FIELDS set for the record type.
9403
9404 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9405
9406         PR target/68662
9407         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
9408         toc_label_name unconditionally.
9409         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
9410         SYMBOL_REF string.  Use toc_label_name instead of constructing
9411         LCTOC1.
9412         (rs6000_elf_declare_function_name): Use toc_label_name instead of
9413         constructing LCTOC1.
9414
9415 2016-01-26  Martin Sebor  <msebor@redhat.com>
9416
9417         PR other/69477
9418         * doc/extend.texi (Common Type Attributes): Move text that talks about
9419         attribute packed from attribute aligned to the section discussing
9420         the former attribute for clarity.
9421
9422 2016-01-26  Richard Henderson  <rth@redhat.com>
9423
9424         PR middle-end/60908
9425         * trans-mem.c (tm_region_init): Mark entry block as visited.
9426
9427 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
9428
9429         PR other/69006
9430         * diagnostic-show-locus.c (layout::print_source_line): Replace
9431         call to pp_newline with call to layout::print_newline.
9432         (layout::print_annotation_line): Likewise.
9433         (layout::move_to_column): Likewise.
9434         (layout::print_any_fixits): After printing any fixits, print a
9435         trailing newline, if necessary.
9436         (layout::print_newline): New method, resetting any colorization
9437         before a newline.
9438         (diagnostic_show_locus): Move the pp_newline to before the
9439         early bailout.  Remove dummy block enclosing the layout instance.
9440         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
9441         of pp_newline_and_flush with pp_flush.
9442         (diagnostic_append_note): Delete use of pp_newline.
9443         (diagnostic_append_note_at_rich_loc): Delete.
9444         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
9445         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
9446         when newline characters are added to the buffer.
9447
9448 2016-01-26  Michael Matz  <matz@suse.de>
9449
9450         * configure.ac (ac_cv_std_swap_in_utility): New test.
9451         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
9452         * configure: Regenerate.
9453         * config.in: Regenerate.
9454
9455 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
9456
9457         * config/arc/arc.md (cstoresi4): Force operand into register.
9458         (arcset<code>): Fix predicate.
9459         (arcsetltu): Likewise.
9460         (arcsetgeu): Likewise.
9461         (arcsethi): Likewise.
9462         (arcsetls): Likewise.
9463
9464 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9465
9466         PR tree-optimization/69483
9467         * gimple-fold.c (canonicalize_constructor_val): Return NULL
9468         if base has error_mark_node type.
9469
9470 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
9471
9472         PR target/68620
9473         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
9474         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
9475         New helper macros.
9476         (vget_lane_f16): Handle big-endian.
9477         (vgetq_lane_f16): Likewise.
9478         (vset_lane_f16): Likewise.
9479         (vsetq_lane_f16): Likewise.
9480         * config/arm/iterators.md (VQXMOV): Add V8HF.
9481         (VDQ): Add V4HF and V8HF.
9482         (V_reg): Handle V4HF and V8HF.
9483         (Is_float_mode): Likewise.
9484         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
9485         neon_vdup_nv8hf): New patterns.
9486         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
9487         Use VD_LANE iterator.
9488         (neon_vld1_dup<mode>): Use VQ2 iterator.
9489
9490 2016-01-26  Nathan Sidwell  <nathan@acm.org>
9491
9492         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
9493         (set_oacc_fn_attrib): Add IS_KERNEL arg.
9494         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
9495         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
9496         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
9497         (oacc_validate_dims): Add LEVEL arg, don't return level.
9498         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
9499         oacc_validate_dims.
9500         (execute_oacc_device_lower): Adjust, add more dump output.
9501         * tree-ssa-loop.c (gate_oacc_kernels): Use
9502         oacc_fn_attrib_kernels_p.
9503         * tree-parloops.c (create_parallel_loop): Adjust
9504         set_oacc_fn_attrib call.
9505
9506 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9507
9508         PR lto/69254
9509         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
9510         (append_compiler_options): Handle -fcilkplus.
9511         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
9512
9513 2016-01-26  Nick Clifton  <nickc@redhat.com>
9514
9515         PR target/66655
9516         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
9517         been marked as DECL_ONE_ONLY but we do not the means to make it
9518         so, then do not allow it to bind locally.
9519
9520 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9521
9522         PR lto/69254
9523         * opts.h (parse_sanitizer_options): New prototype.
9524         * opts.c (sanitizer_opts): New array.
9525         (parse_sanitizer_options): New function.
9526         (common_handle_option): Use parse_sanitizer_options.
9527
9528 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
9529
9530         PR target/68986
9531         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
9532         alignment adjustment to ...
9533         (ix86_update_stack_boundary): Here.  Don't over-align stack for
9534         __tls_get_addr.
9535         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
9536         if __tls_get_addr is called.
9537
9538 2016-01-26  Christian Bruel  <christian.bruel@st.com>
9539
9540         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
9541
9542 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
9543
9544         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
9545
9546 2016-01-26  Richard Biener  <rguenther@suse.de>
9547
9548         PR middle-end/69467
9549         * match.pd: Guard X * CST CMP 0 pattern with single_use.
9550
9551 2016-01-26  Richard Biener  <rguenther@suse.de>
9552
9553         PR tree-optimization/69452
9554         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
9555         (move_computations_dom_walker::before_dom_children): Rename
9556         to ...
9557         (move_computations_worker): This.
9558         (move_computations): Perform an RPO rather than a DOM walk.
9559
9560 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9561
9562         PR target/69442
9563         * combine.c (combine_instructions): For REG_EQUAL note with
9564         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
9565         to the underlying register.
9566         * doc/rtl.texi (REG_EQUAL): Document the behavior of
9567         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
9568
9569 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
9570
9571         PR target/67896
9572         * config/aarch64/aarch64-builtins.c
9573         (aarch64_init_simd_builtin_types): Do not set structural
9574         equality to __Poly{8,16,64,128}_t types.
9575
9576 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
9577
9578         PR tree-optimization/69400
9579         * wide-int.cc (wi_pack): Take the precision as argument and
9580         perform canonicalization here rather than in the callers.
9581         Use the main loop to handle all full-width HWIs.  Add a
9582         zero HWI if in_len isn't a full result.
9583         (wi::divmod_internal): Update accordingly.
9584         (wi::mul_internal): Likewise.  Simplify.
9585
9586 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
9587             Sebastian Pop  <s.pop@samsung.com>
9588
9589         * graphite-poly.c (apply_poly_transforms): Simplify.
9590         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
9591         (print_isl_map): Same.
9592         (print_isl_union_map): Same.
9593         (print_isl_schedule): New.
9594         (debug_isl_schedule): New.
9595         * graphite-dependences.c (scop_get_reads): Do not call
9596         isl_union_map_add_map that is undocumented isl functionality.
9597         (scop_get_must_writes): Same.
9598         (scop_get_may_writes): Same.
9599         (scop_get_original_schedule): Remove.
9600         (scop_get_dependences): Do not call isl_union_map_compute_flow that
9601         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
9602         (compute_deps): Remove.
9603         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
9604         (debug_schedule_ast): New.
9605         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
9606         set_separate_option.
9607         (graphite_regenerate_ast_isl): Add dump.
9608         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
9609         from scop->transformed_schedule.
9610         (graphite_regenerate_ast_isl): Add more dump.
9611         * graphite-optimize-isl.c (optimize_isl): Set
9612         scop->transformed_schedule.  Check whether schedules are equal.
9613         (apply_poly_transforms): Move here.
9614         * graphite-poly.c (apply_poly_transforms): ... from here.
9615         (free_poly_bb): Static.
9616         (free_scop): Static.
9617         (pbb_number_of_iterations_at_time): Remove.
9618         (print_isl_ast): New.
9619         (debug_isl_ast): New.
9620         (debug_scop_pbb): New.
9621         * graphite-scop-detection.c (print_edge): Move.
9622         (print_sese): Move.
9623         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
9624         (build_scop_scattering): Remove.
9625         (create_pw_aff_from_tree): Assert instead of bailing out.
9626         (add_condition_to_pbb): Remove unused code, do not fail.
9627         (add_conditions_to_domain): Same.
9628         (add_conditions_to_constraints): Remove.
9629         (build_scop_context): New.
9630         (add_iter_domain_dimension): New.
9631         (build_iteration_domains): Initialize pbb->iterators.
9632         Call add_conditions_to_domain.
9633         (nested_in): New.
9634         (loop_at): New.
9635         (index_outermost_in_loop): New.
9636         (index_pbb_in_loop): New.
9637         (outermost_pbb_in): New.
9638         (add_in_sequence): New.
9639         (add_outer_projection): New.
9640         (outer_projection_mupa): New.
9641         (add_loop_schedule): New.
9642         (build_schedule_pbb): New.
9643         (build_schedule_loop): New.
9644         (embed_in_surrounding_loops): New.
9645         (build_schedule_loop_nest): New.
9646         (build_original_schedule): New.
9647         (build_poly_scop): Call build_original_schedule.
9648         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
9649         (free_poly_dr): Remove.
9650         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
9651         (free_poly_bb): Remove.
9652         (debug_loop_vec): Remove.
9653         (print_isl_ast): Declare.
9654         (debug_isl_ast): Declare.
9655         (scop_do_interchange): Remove.
9656         (scop_do_strip_mine): Remove.
9657         (scop_do_block): Remove.
9658         (flatten_all_loops): Remove.
9659         (optimize_isl): Remove.
9660         (pbb_number_of_iterations_at_time): Remove.
9661         (debug_scop_pbb): Declare.
9662         (print_schedule_ast): Declare.
9663         (debug_schedule_ast): Declare.
9664         (struct scop): Remove schedule.  Add original_schedule,
9665         transformed_schedule.
9666         (free_gimple_poly_bb): Remove.
9667         (print_generated_program): Remove.
9668         (debug_generated_program): Remove.
9669         (unify_scattering_dimensions): Remove.
9670         * sese.c (print_edge): ... here.
9671         (print_sese): ... here.
9672         (debug_edge): ... here.
9673         (debug_sese): ... here.
9674         * sese.h (print_edge): Declare.
9675         (print_sese): Declare.
9676         (dump_edge): Declare.
9677         (dump_sese): Declare.
9678
9679 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
9680             Sebastian Pop  <s.pop@samsung.com>
9681
9682         * Makefile.in: Set ISLVER in site.exp.
9683
9684 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
9685
9686         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
9687         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
9688         through DECL_VALUE_EXPR for expansion.
9689
9690 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9691
9692         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
9693         the frame info after reload completed.
9694
9695 2016-01-25  Jeff Law  <law@redhat.com>
9696
9697         PR tree-optimization/69196
9698         PR tree-optimization/68398
9699         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
9700         tree-ssa-threadupdate.c.
9701         (determine_bb_domination_status): Prototype
9702         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
9703         (determine_bb_domination_status): No longer static.
9704         (valid_jump_thread_path): Remove code to detect characteristics
9705         of the jump thread path not associated with correctness.
9706         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
9707         Correct test for thread path length.  Count PHIs for real operands as
9708         statements that need to be copied.  Do not count ASSERT_EXPRs.
9709         Look at all the blocks in the thread path.  Compute and selectively
9710         filter thread paths based on threading through the latch, threading
9711         a multiway branch or crossing a multiway branch.
9712
9713 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9714
9715         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
9716         decl with __attribute__ ((unused)) annotation.
9717
9718 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
9719
9720         PR target/69421
9721         * tree-vect-stmts.c (vectorizable_condition): Check vectype
9722         of operands is compatible with a statement vectype.
9723
9724 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
9725
9726         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
9727         improve wording for mixed storage order support.
9728
9729 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
9730
9731         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
9732         (vcvt_u64_f64): Likewise.
9733         (vcvta_s64_f64): Likewise.
9734         (vcvta_u64_f64): Likewise.
9735         (vcvtm_s64_f64): Likewise.
9736         (vcvtm_u64_f64): Likewise.
9737         (vcvtn_s64_f64): Likewise.
9738         (vcvtn_u64_f64): Likewise.
9739         (vcvtp_s64_f64): Likewise.
9740         (vcvtp_u64_f64): Likewise.
9741
9742 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
9743
9744         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
9745         (arc_init): Check validity mll64 option.
9746         (arc_save_restore): Use double load/store instruction.
9747         (arc_expand_movmem): Likewise.
9748         (arc_split_move): Don't split if we have double load/store
9749         instructions. Returns a boolean.
9750         (arc_process_double_reg_moves): Change function to return boolean
9751         instead of a sequence of instructions.
9752         (arc_dwarf_register_span): New function.
9753         * config/arc/arc-protos.h (arc_split_move): Change prototype.
9754         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
9755         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
9756         (*movdf_insn): Likewise.
9757         * config/arc/arc.opt (mll64): New option.
9758         * config/arc/predicates.md (even_register_operand): New predicate.
9759         * doc/invoke.texi (ARC Options): Add mll64 documentation.
9760
9761 2016-01-25  Richard Biener  <rguenther@suse.de>
9762
9763         PR lto/69393
9764         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
9765         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
9766         DECL_NAMELESS.
9767         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
9768
9769 2016-01-25  Richard Biener  <rguenther@suse.de>
9770
9771         PR tree-optimization/69376
9772         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
9773         flag.
9774         (VN_INFO_ANTI_RANGE_P): New inline.
9775         (VN_INFO_RANGE_TYPE): Likewise.
9776         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
9777         SSA_NAME_ANTI_RANGE_P.
9778         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
9779         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9780         Properly query VN_INFO_RANGE_TYPE.
9781
9782 2016-01-25  Nick Clifton  <nickc@redhat.com>
9783
9784         PR target/66655
9785         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
9786
9787 2016-01-23  Tom de Vries  <tom@codesourcery.com>
9788
9789         PR tree-optimization/69426
9790         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
9791         removed clobber.
9792
9793 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
9794
9795         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
9796         "the the" with "the" in the comments.
9797         * ipa-devirt.c (build_type_inheritance_graph,
9798         update_type_inheritance_graph): Likewise.
9799         * tree.c (build_function_type_list_1): Likewise.
9800         * cfgloopmanip.c (scale_loop_profile): Likewise.
9801         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
9802         * gimple-ssa-split-paths.c
9803         (find_block_to_duplicate_for_splitting_paths): Likewise.
9804         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
9805         * expr.c (convert_move): Likewise.
9806         * var-tracking.c (vt_stack_adjustments): Likewise.
9807         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
9808         * tree-vrp.c (test_for_singularity): Likewise.
9809
9810         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
9811         directly instead of building a temporary tree.
9812
9813         PR bootstrap/69434
9814         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
9815         remove <algorithm> include.
9816
9817 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
9818
9819         PR target/69432
9820         * config/i386/i386.c: Include dojump.h.
9821         (expand_small_movmem_or_setmem,
9822         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
9823         fixes.
9824         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
9825         if dynamic_check != -1.
9826
9827 2016-01-21  Jeff Law  <law@redhat.com>
9828
9829         PR middle-end/69347
9830         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
9831         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
9832         into dominated_by_p.
9833         (cprop_into_successor_phis): Avoid unnecessary tests.
9834
9835 2016-01-22  Richard Henderson  <rth@redhat.com>
9836
9837         PR target/69416
9838         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
9839         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
9840
9841 2016-01-22  Michael Matz  <matz@suse.de>
9842
9843         * system.h (string, algorithm): Include only conditionally.
9844         (new): Include always under C++.
9845         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
9846         * final.c (toplevel): Ditto.
9847         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
9848         * genconditions.c (write_header): Make gencondmd.c define
9849         INCLUDE_STRING.
9850         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
9851
9852         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
9853         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
9854
9855 2016-01-22  Christian Bruel  <christian.bruel@st.com>
9856
9857         PR target/68674
9858         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
9859
9860 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9861
9862         PR target/69403
9863         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
9864         define_insn_and_split.  Ensure operands[1] and operands[0] do not
9865         get assigned the same register.
9866
9867 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
9868
9869         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
9870
9871 2016-01-22  Christian Bruel  <christian.bruel@st.com>
9872
9873         * config/arm/arm-c.c (arm_pragma_target_parse):
9874         Remove warn_builtin_macro_redefined overwrite.
9875
9876 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
9877
9878         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
9879         flag_non_call_exceptions compatibility.
9880
9881 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
9882
9883         PR debug/66668
9884         * dwarf2out.c (add_child_die_after): New function.
9885         (dwarf_qual_info_t): New type.
9886         (dwarf_qual_info): New variable.
9887         (qualified_die_p): New function.
9888         (modified_type_die): For -fdebug-types-section, ensure
9889         canonical order of qualifiers.  Put qualified DIEs adjacent
9890         to the corresponding non-qualified type DIE and search there
9891         for existing qualified DIEs.
9892
9893 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
9894
9895         * doc/extend.texi (scalar_storage_order type attribute): Document
9896         restriction on type punning and aliasing, and remove future tense.
9897
9898 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
9899
9900         PR target/69252
9901         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
9902         first stage.
9903
9904 2016-01-21  Jeff Law  <law@redhat.com>
9905
9906         PR middle-end/69347
9907         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
9908         useless call to record_temporary_equivalences.
9909         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
9910         allocate 10 slots in the bb_path vector and let it grow as needed.
9911         (fsm_find_control_statement_thread_paths): Similarly for the next_path
9912         vector.
9913
9914 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
9915
9916         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
9917         Detangle.
9918         * configure: Regenerate.
9919
9920 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
9921
9922         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
9923         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
9924
9925 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
9926
9927         PR middle-end/66178
9928         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
9929         drop EXPAND_INITIALIZER.
9930         * rtl.h (contains_symbolic_reference_p): Declare.
9931         * rtlanal.c (contains_symbolic_reference_p): New function.
9932         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
9933         a subtraction into a NOT if symbolic constants are involved.
9934
9935 2016-01-21  Anton Blanchard  <anton@samba.org>
9936             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9937
9938         PR target/63354
9939         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
9940         #define.
9941         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
9942         function.
9943
9944 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
9945
9946         * config/microblaze/microblaze.c
9947         (get_branch_target): New.
9948         (insert_wic_for_ilb_runout): New.
9949         (insert_wic): New.
9950         (microblaze_machine_dependent_reorg): New.
9951         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
9952         * config/microblaze/microblaze.md
9953         (UNSPEC_IPREFETCH): Define.
9954         (iprefetch): New pattern
9955         * config/microblaze/microblaze.opt
9956         (mxl-prefetch): New flag.
9957
9958 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
9959
9960         * config/microblaze/microblaze.h
9961         (FIXED_REGISTERS): Update in macro.
9962         (CALL_USED_REGISTERS): Update in macro.
9963
9964 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
9965
9966         PR rtl-optimization/68920
9967         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
9968         moves.
9969
9970 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
9971
9972         PR rtl-optimization/68990
9973         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
9974         pseudo instead of inheritance ones.
9975
9976 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9977             Nick Clifton  <nickc@redhat.com>
9978
9979         PR target/69129
9980         PR target/69012
9981         * config/mips/mips.c (mips_compute_frame_info): Initialise
9982         args_size and hard_frame_pointer_offset fields of the frame
9983         structure before calling mips_global_pointer.
9984
9985 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
9986
9987         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
9988         label reference.
9989         * configure: Regenerate.
9990
9991 2016-01-21  Richard Biener  <rguenther@suse.de>
9992
9993         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
9994
9995 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
9996
9997         * config/s390/s390.c (s390_asm_declare_function_size): Add code
9998         to actually emit the .size directive.
9999
10000 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
10001              Jakub Jelinek  <jakub@redhat.com>
10002
10003         PR target/69187
10004         PR target/65624
10005         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
10006         args array size by one to avoid buffer overflow.
10007
10008 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
10009
10010         * config/s390/s390.md (pool_section_start): Use switch_to_section
10011         to select proper read-only data section instead of hardcoding
10012         .rodata.
10013         (pool_section_end): Use switch_to_section to match the above.
10014
10015 2016-01-21  Richard Biener  <rguenther@suse.de>
10016
10017         PR tree-optimization/69378
10018         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
10019         (set_ssa_val_to): Use it for dominance checks taking into
10020         account not executable edges.
10021
10022 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
10023
10024         PR c++/69355
10025         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
10026         for bitsize instead of GET_MODE_PRECISION (mode).
10027
10028 2016-01-20  Martin Sebor  <msebor@redhat.com>
10029
10030         PR c/52291
10031         * extend.texi (__sync Builtins): Clarify the semantics of
10032         __sync_fetch_and_OP built-ins on pointers.
10033         (__atomic Builtins): Same.
10034
10035 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10036             Sebastian Pop  <s.pop@samsung.com>
10037
10038         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
10039         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
10040         (is_valid_rename): Same.
10041         (translate_isl_ast_to_gimple::get_rename): Same.
10042         (translate_isl_ast_to_gimple::rename_all_uses): Same.
10043         (translate_isl_ast_to_gimple::rename_uses): Same.
10044         (get_new_name): Check for close_phi nodes.
10045         (copy_loop_phi_args): Use phi_node_kind.
10046         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
10047         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
10048
10049 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10050             Sebastian Pop  <s.pop@samsung.com>
10051
10052         Revert commit r229783.
10053         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
10054         Remove use of parameter_rename_map.
10055         (copy_def): Remove.
10056         (copy_internal_parameters): Remove.
10057         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
10058         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
10059         (free_sese_info): Do not free parameter_rename_map.
10060         (set_rename): Do not use parameter_rename_map.
10061         (rename_uses): Update call to set_rename.
10062         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
10063         * sese.h (parameter_rename_map_t): Remove.
10064         (struct sese_info_t): Remove field parameter_rename_map.
10065
10066 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10067             Sebastian Pop  <s.pop@samsung.com>
10068
10069         * graphite-isl-ast-to-gimple.c: Fix comment.
10070         * graphite-scop-detection.c (defined_in_loop_p): New.
10071         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
10072         names defined in loop.
10073
10074 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10075             Sebastian Pop  <s.pop@samsung.com>
10076
10077         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
10078         Discard unstructured if-then-else regions.
10079
10080 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10081             Sebastian Pop  <s.pop@samsung.com>
10082
10083         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
10084         (cleanup_loop_iter_dom): Remove.
10085         (build_loop_iteration_domains): Remove.
10086         (build_scop_context): Remove.
10087         (build_scop_iteration_domain): Remove.
10088         (add_loop_constraints): New.
10089         (build_iteration_domains): New.
10090         (build_poly_scop): Call build_iteration_domains.
10091
10092 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10093             Sebastian Pop  <s.pop@samsung.com>
10094
10095         * graphite-scop-detection.c
10096         (scop_detection::harmful_loop_in_region): Free dom and loops.
10097         (scop_detection::loop_body_is_valid_scop): Free bbs.
10098
10099 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10100             Sebastian Pop  <s.pop@samsung.com>
10101
10102         * graphite-scop-detection.c (record_loop_in_sese): New.
10103         (gather_bbs::before_dom_children): Call record_loop_in_sese.
10104         (build_scops): Remove call to build_sese_loop_nests.
10105         * sese.c (sese_record_loop): Remove.
10106         (build_sese_loop_nests): Remove.
10107         (new_sese_info): Remove region->loops.
10108         (free_sese_info): Same.
10109         * sese.h (sese_contains_loop): Same.
10110         (build_sese_loop_nests): Remove.
10111         (sese_contains_loop): Remove.
10112
10113 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10114             Sebastian Pop  <s.pop@samsung.com>
10115
10116         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
10117         loop_is_valid_in_scop.
10118         (scop_detection::harmful_stmt_in_region): Renamed
10119         harmful_loop_in_region.
10120         Call loop_is_valid_in_scop.
10121
10122 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10123             Sebastian Pop  <s.pop@samsung.com>
10124
10125         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
10126         isl_ast_node_mark.
10127
10128 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10129             Sebastian Pop  <s.pop@samsung.com>
10130
10131         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
10132         * graphite.h (struct poly_bb): Remove field is_reduction.
10133         (PBB_IS_REDUCTION): Remove.
10134
10135 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10136             Sebastian Pop  <s.pop@samsung.com>
10137
10138         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
10139         (add_pdr_constraints): Same.
10140         (scop_get_reads): Same.
10141         (scop_get_must_writes): Same.
10142         (scop_get_may_writes): Same.
10143         (scop_get_original_schedule): Same.
10144         (extend_schedule): Same.
10145         (apply_schedule_on_deps): Same.
10146         (carries_deps): Same.
10147         (compute_deps): Same.
10148         (scop_get_dependences): Same.
10149         * graphite-isl-ast-to-gimple.c
10150         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
10151         * graphite-optimize-isl.c (get_schedule_for_band): Same.
10152         (get_schedule_for_band_list): Same.
10153         (get_schedule_map): Same.
10154         (apply_schedule_map_to_scop): Same.
10155         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
10156         (build_loop_iteration_domains): Same.
10157         (add_condition_to_pbb): Same.
10158         (add_param_constraints): Same.
10159         (pdr_add_memory_accesses): Same.
10160         (pdr_add_data_dimensions): Same.
10161
10162 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
10163
10164         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
10165         requirements.
10166
10167 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
10168
10169         * common.opt (feliminate-dwarf2-dups): Replace references to
10170         "DWARF 2" with just "DWARF".
10171         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
10172         * doc/extend.texi: Likewise.
10173         * doc/cpp.texi: Likewise.
10174         * doc/invoke.texi: Likewise.
10175         (Option Summary): Add -gdwarf to list of Debugging Options.
10176         (Debugging Options): Document -gdwarf.
10177         * doc/contrib.texi: Spell "DWARF" like that.
10178
10179 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
10180
10181         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
10182         warning.  Fix up formatting.
10183
10184         PR middle-end/67653
10185         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
10186         attempt to mark memory input operand addressable and
10187         call prepare_gimple_addressable in that case.  Don't adjust
10188         input_location for diagnostics, use error_at instead.
10189
10190 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
10191
10192         * config/rs6000/ppc-auxv.h: New file.
10193         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
10194         (cpu_is): Likewise.
10195         (cpu_supports): Likewise.
10196         * config/rs6000/rs6000.c: include "ppc-auxv.h".
10197         (cpu_is_info): New variable.
10198         (cpu_supports_info): Likewise.
10199         (tcb_verification_symbol): Likewise.
10200         (cpu_builtin_p): Likewise.
10201         (cpu_expand_builtin): New function.
10202         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
10203         (rs6000_init_builtins): Likewise.
10204         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
10205         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
10206         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
10207         * configure: Regenerate.
10208         * config.in: Likewise.
10209         * doc/extend.texi (PowerPC Built-in Functions): Document
10210         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
10211
10212 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
10213
10214         PR target/68609
10215         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
10216         domain check.
10217         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
10218         for V4SFmode.
10219
10220 2016-01-20  Richard Henderson  <rth@redhat.com>
10221
10222         PR bootstrap/69343
10223         PR bootstrap/69339
10224         PR tree-opt/68964
10225         Revert:
10226         * tree.c (tm_define_builtin): New.
10227         (find_tm_vector_type): New.
10228         (build_tm_vector_builtins): New.
10229         (build_common_builtin_nodes): Call it.
10230
10231 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
10232
10233         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
10234         (arm_fp_ok): Likewise.
10235         (arm_fp): Likewise.
10236         (arm_crypto): Likewise.
10237
10238 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
10239             Richard Biener  <rguenther@suse.de>
10240
10241         PR tree-optimization/69328
10242         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
10243         vectors have same number of elements.
10244         (vectorizable_condition): Fix masked version recognition.
10245
10246 2016-01-20  Richard Biener  <rguenther@suse.de>
10247
10248         PR tree-optimization/69345
10249         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
10250         (VN_INFO_PTR_INFO): Likewise.
10251         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
10252         info when it is equal between non-dominating SSA names.
10253         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10254         Make sure to look at original SSA infos.
10255
10256 2016-01-20  Jeff Law  <law@redhat.com>
10257
10258         PR target/25114
10259         * config/m68k/predicates.md (pow2_m1_operand): New predicate
10260         extracted from ...
10261         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
10262         (pc_or_label_operand): New predicate.
10263         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
10264         tests for small integers that are 2^n - 1.
10265
10266 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
10267
10268         * doc/invoke.texi (Options Summary): Add '.' after @xref.
10269
10270 2016-01-19  Jeff Law  <law@redhat.com>
10271
10272         PR middle-end/69347
10273         * tree-ssa-threadbackwards.c
10274         (fsm_find_control_statement_thread_paths): Do not try to lookup
10275         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
10276
10277 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
10278
10279         * doc/lto.texi: Remove text that says only Gold has linker plugin
10280         support.
10281
10282 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
10283
10284         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
10285         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
10286         the DIE accordingly.
10287         (modified_type_die): Add REVERSE parameter and pass it recursively,
10288         as well as to base_type_die.  Adjust presence check accordingly.
10289         (base_type_for_mode): Adjust call to modified_type_die.
10290         (add_type_attribute): Add REVERSE parameter and pass it to
10291         modified_type_die.
10292         (generic_parameter_die): Adjust call to add_type_attribute.
10293         (add_scalar_info): Likewise.
10294         (add_subscript_info): Likewise.
10295         (gen_array_type_die): Likewise.
10296         (gen_descr_array_type_die): Likewise.
10297         (gen_entry_point_die): Likewise.
10298         (gen_enumeration_type_die): Likewise.
10299         (gen_formal_parameter_die): Likewise.
10300         (gen_subprogram_die): Likewise.
10301         (gen_variable_die ): Likewise.
10302         (gen_const_die): Likewise.
10303         (gen_field_die): Likewise.
10304         (gen_pointer_type_die): Likewise.
10305         (gen_reference_type_die): Likewise.
10306         (gen_ptr_to_mbr_type_die): Likewise.
10307         (gen_inheritance_die): Likewise.
10308         (gen_subroutine_type_die): Likewise.
10309         (gen_typedef_die): Likewise.
10310         (force_type_die): Adjust call to modified_type_die.
10311
10312 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
10313
10314         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
10315         flow throughout the file.  Fix broken link to Objective-C 2.0
10316         documentation.
10317         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
10318         errors.
10319
10320 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10321
10322         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
10323
10324 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10325
10326         PR ipa/66223
10327         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
10328         (maybe_record_node): Record cxa_pure_virtual as the only possible
10329         target if there are not ohter candidates.
10330         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
10331
10332 2016-01-19  Richard Biener  <rguenther@suse.de>
10333
10334         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
10335         (get_memory_order): Likewise.
10336
10337 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
10338
10339         * tree-vect-stmts.c (vectorizable_store): Check
10340         rhs vectype.
10341
10342 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
10343
10344         PR jit/68446
10345         * gcc.c (driver::decode_argv): Add call to
10346         init_opts_obstack before init_options_struct.
10347         * opts.c (init_opts_obstack): Remove idempotency.
10348         (init_options_struct): Replace call to init_opts_obstack
10349         with a gcc_assert to verify that it has already been called.
10350         * toplev.c (toplev::main): Add call to init_opts_obstack before
10351         calls to init_options_struct.
10352         (toplev::finalize): Move cleanup of opts_obstack next to
10353         cleanup of save_decoded_options, clearing the latter, and
10354         save_decoded_options_count.
10355
10356 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10357
10358         PR target/69135
10359         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
10360         attribute to unconditional.  Remove %? from output template.
10361
10362 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10363             Jiong Wang  <jiong.wang@arm.com>
10364
10365         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
10366         generated from different expand order.
10367
10368 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10369
10370         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
10371         Add support for CCMP costing.
10372
10373 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10374
10375         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
10376         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
10377         (fccmpe<mode>): Likewise.
10378         (fcmp): Rename to fcmp and globalize pattern.
10379         (fcmpe): Likewise.
10380         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
10381         (aarch64_gen_ccmp_next): Add FP support.
10382
10383 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10384
10385         * target.def (gen_ccmp_first): Update documentation.
10386         (gen_ccmp_next): Likewise.
10387         * doc/tm.texi (gen_ccmp_first): Update documentation.
10388         (gen_ccmp_next): Likewise.
10389         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
10390         expand_ccmp_expr_1.  Improve comments.
10391         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
10392         (ccmp_ior<mode>): Remove pattern.
10393         (cmp<mode>): Remove expand.
10394         (cmp): Globalize pattern.
10395         (cstorecc4): Use cc_register.
10396         (mov<mode>cc): Remove ccmp_cc_register check.
10397         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
10398         Simplify after removal of CC_DNE/* modes.
10399         (aarch64_ccmp_mode_to_code): Remove.
10400         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
10401         In 'k' case use integer as condition.
10402         (aarch64_nzcv_codes): Remove inverted cases.
10403         (aarch64_code_to_ccmode): Remove.
10404         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
10405         comparison with CC register to be used in folowing CCMP/branch/CSEL.
10406         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
10407         pattern.  Return the comparison with CC register.  Invert conditions
10408         when bitcode is OR.
10409         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
10410         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
10411
10412 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10413
10414         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
10415         instrumented_version.
10416
10417 2016-01-19  Richard Biener  <rguenther@suse.de>
10418
10419         PR tree-optimization/69336
10420         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
10421         handled components with get_ref_base_and_extent.
10422         (equal_mem_array_ref_p): Adjust.
10423
10424 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
10425
10426         PR debug/65779
10427         * shrink-wrap.c: Include valtrack.h.
10428         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
10429         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
10430         in between insn and where it will be moved to.  Call
10431         dead_debug_insert_temp.
10432         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
10433         first and dead_debug_local_finish at the end.
10434         For uses and defs bitmap, handle all regs in between REGNO and
10435         END_REGNO, not just the first one.
10436
10437 2016-01-19  Richard Biener  <rguenther@suse.de>
10438
10439         PR tree-optimization/69352
10440         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
10441         (equal_mem_array_ref_p): Constrain size and max size properly.
10442         Compare the reverse flag.
10443
10444 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
10445
10446         * ira.c (ira): Update regstat data if we deleted insns.
10447
10448 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
10449
10450         PR rtl-optimization/68955
10451         PR rtl-optimization/64557
10452         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
10453         here.  Fix up formatting.
10454         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
10455
10456 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10457
10458         PR lto/69133
10459         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
10460         assume that the node has body.
10461         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
10462         check.
10463
10464 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10465
10466         * lto-streamer-out.c (lto_output): Do not stream instrumentation
10467         thunks.
10468
10469 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10470
10471         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
10472         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
10473
10474 2016-01-19  Martin Jambor  <mjambor@suse.cz>
10475             Martin Liska  <mliska@suse.cz>
10476             Michael Matz  <matz@suse.de>
10477
10478         * Makefile.in (OBJS): Add new source files.
10479         (GTFILES): Add hsa.c.
10480         * common.opt (disable_hsa): New variable.
10481         (-Whsa): New warning.
10482         * config.in (ENABLE_HSA): New.
10483         * configure.ac: Treat hsa differently from other accelerators.
10484         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
10485         $enable_offloading.
10486         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
10487         * doc/install.texi (Configuration): Document --with-hsa-runtime,
10488         --with-hsa-runtime-include, --with-hsa-runtime-lib and
10489         --with-hsa-kmt-lib.
10490         * doc/invoke.texi (-Whsa): Document.
10491         (hsa-gen-debug-stores): Likewise.
10492         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
10493         to invoke offload compiler for hsa acclerator.
10494         * opts.c (common_handle_option): Determine whether HSA offloading
10495         should be performed.
10496         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
10497         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
10498         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
10499         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
10500         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
10501         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
10502         GF_OMP_FOR_KIND_GRID_LOOP.
10503         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
10504         (pp_gimple_stmt_1): Likewise.
10505         * gimple-walk.c (walk_gimple_stmt): Likewise.
10506         * gimple.c (gimple_build_omp_grid_body): New function.
10507         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
10508         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
10509         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
10510         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
10511         GF_OMP_TEAMS_GRID_PHONY.
10512         (gimple_statement_omp_single_layout): Updated comments.
10513         (gimple_build_omp_grid_body): New function.
10514         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
10515         (gimple_omp_for_grid_phony): New function.
10516         (gimple_omp_for_set_grid_phony): Likewise.
10517         (gimple_omp_parallel_grid_phony): Likewise.
10518         (gimple_omp_parallel_set_grid_phony): Likewise.
10519         (gimple_omp_teams_grid_phony): Likewise.
10520         (gimple_omp_teams_set_grid_phony): Likewise.
10521         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
10522         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
10523         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
10524         (BUILT_IN_GOMP_TARGET): Updated type.
10525         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
10526         (adjust_for_condition): New function.
10527         (get_omp_for_step_from_incr): Likewise.
10528         (extract_omp_for_data): Moved parts to adjust_for_condition and
10529         get_omp_for_step_from_incr.
10530         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
10531         (fixup_child_record_type): Bail out if receiver_decl is NULL.
10532         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
10533         (scan_omp_parallel): Do not create child functions for phony
10534         constructs.
10535         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
10536         (scan_omp_1_op): Checking assert we are not remapping to
10537         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
10538         (parallel_needs_hsa_kernel_p): New function.
10539         (expand_parallel_call): Register apprpriate parallel child
10540         functions as HSA kernels.
10541         (grid_launch_attributes_trees): New type.
10542         (grid_attr_trees): New variable.
10543         (grid_create_kernel_launch_attr_types): New function.
10544         (grid_insert_store_range_dim): Likewise.
10545         (grid_get_kernel_launch_attributes): Likewise.
10546         (get_target_argument_identifier_1): Likewise.
10547         (get_target_argument_identifier): Likewise.
10548         (get_target_argument_value): Likewise.
10549         (push_target_argument_according_to_value): Likewise.
10550         (get_target_arguments): Likewise.
10551         (expand_omp_target): Call get_target_arguments instead of looking
10552         up for teams and thread limit.
10553         (grid_expand_omp_for_loop): New function.
10554         (grid_arg_decl_map): New type.
10555         (grid_remap_kernel_arg_accesses): New function.
10556         (grid_expand_target_kernel_body): New function.
10557         (expand_omp): Call it.
10558         (lower_omp_for): Do not emit phony constructs.
10559         (lower_omp_taskreg): Do not emit phony constructs but create for them
10560         a temporary variable receiver_decl.
10561         (lower_omp_taskreg): Do not emit phony constructs.
10562         (lower_omp_teams): Likewise.
10563         (lower_omp_grid_body): New function.
10564         (lower_omp_1): Call it.
10565         (grid_reg_assignment_to_local_var_p): New function.
10566         (grid_seq_only_contains_local_assignments): Likewise.
10567         (grid_find_single_omp_among_assignments_1): Likewise.
10568         (grid_find_single_omp_among_assignments): Likewise.
10569         (grid_find_ungridifiable_statement): Likewise.
10570         (grid_target_follows_gridifiable_pattern): Likewise.
10571         (grid_remap_prebody_decls): Likewise.
10572         (grid_copy_leading_local_assignments): Likewise.
10573         (grid_process_kernel_body_copy): Likewise.
10574         (grid_attempt_target_gridification): Likewise.
10575         (grid_gridify_all_targets_stmt): Likewise.
10576         (grid_gridify_all_targets): Likewise.
10577         (execute_lower_omp): Call grid_gridify_all_targets.
10578         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
10579         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
10580         (tree_omp_clause): Added union field dimension.
10581         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
10582         * tree.c (omp_clause_num_ops): Added number of arguments of
10583         OMP_CLAUSE__GRIDDIM_.
10584         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
10585         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
10586         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
10587         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
10588         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
10589         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
10590         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
10591         * tree-pass.h (make_pass_gen_hsail): Declare.
10592         (make_pass_ipa_hsa): Likewise.
10593         * ipa-hsa.c: New file.
10594         * lto-section-in.c (lto_section_name): Add hsa section name.
10595         * lto-streamer.h (lto_section_type): Add hsa section.
10596         * timevar.def (TV_IPA_HSA): New.
10597         * hsa-brig-format.h: New file.
10598         * hsa-brig.c: New file.
10599         * hsa-dump.c: Likewise.
10600         * hsa-gen.c: Likewise.
10601         * hsa.c: Likewise.
10602         * hsa.h: Likewise.
10603         * toplev.c (compile_file): Call hsa_output_brig.
10604         * hsa-regalloc.c: New file.
10605
10606 2016-01-18  Jeff Law  <law@redhat.com>
10607
10608         PR tree-optimization/69320
10609         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
10610         ranged object, do nothing if the RHS constant is not [0..1].
10611         (optimize_stmt): Comparing a boolean ranged object against a
10612         constant outside [0..1] results in a compile-time constant.
10613
10614         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
10615         test.
10616
10617 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
10618
10619         * doc/invoke.texi (Invoking GCC): Add new section to menu.
10620         (Option Summary): Update to reflect new section and moved options.
10621         (C++ Dialect Options): Move -fstats to new section.
10622         (Debugging Options): Move all dump, statistics, and other GCC
10623         developer options to new section.  Rewrite section introduction
10624         and re-order remaining options to put the more basic ones first.
10625         (Optimization Options): Move -fira-verbose and -flto-report* to
10626         new section.
10627         (Developer Options): New section incorporating moved options.
10628         * doc/cppopts.texi (-dM): Update cross-reference.
10629
10630 2016-01-18  Richard Henderson  <rth@redhat.com>
10631
10632         PR target/69176
10633         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
10634         operands to pseudo only if CSE is expected.  Split long immediate
10635         operands only after reload, and for the stack pointer.
10636         (*add<GPI>3_pluslong): Remove.
10637         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
10638         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
10639         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
10640         (*add<GPI>3 peepholes): New.
10641         (*add<GPI>3 splitters): New.
10642         * config/aarch64/constraints.md (Upl): New.
10643         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
10644
10645 2016-01-18  Richard Biener  <rguenther@suse.de>
10646
10647         PR tree-optimization/69297
10648         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
10649         stmt at most once.
10650         (vect_bb_vectorization_profitable_p): Clear visited flag again.
10651
10652 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
10653
10654         PR middle-end/68542
10655         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
10656         of mixind vector and scalar types.
10657         (fold_relational_const): Add handling of vector
10658         comparison with boolean result.
10659         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
10660         comparison of vector operands with boolean result for EQ/NE only.
10661         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
10662         (verify_gimple_cond): Likewise.
10663         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
10664         valid type of VAL.
10665
10666 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
10667
10668         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
10669         !TARGET_OCTEON.
10670
10671 2016-01-18  Richard Biener  <rguenther@suse.de>
10672
10673         PR middle-end/69308
10674         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
10675
10676 2016-01-18  Tom de Vries  <tom@codesourcery.com>
10677
10678         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
10679
10680 2016-01-18  Tom de Vries  <tom@codesourcery.com>
10681
10682         * omp-low.c (set_oacc_fn_attrib): Make extern.
10683         * omp-low.h (set_oacc_fn_attrib): Declare.
10684         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
10685         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
10686         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
10687         Add and handle function parameter oacc_kernels_p.
10688         (find_reduc_addr, get_omp_data_i_param): New function.
10689         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
10690         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
10691         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
10692         Calculate dominance info.  Skip loops that are not in a kernels region
10693         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
10694         (pass_parallelize_loops::execute): Call parallelize_loops with
10695         oacc_kernels_p argument.
10696         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
10697         New member function.
10698         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
10699         * passes.def: Add argument to pass_parallelize_loops instantation.
10700
10701 2016-01-18  Tom de Vries  <tom@codesourcery.com>
10702
10703         * tree-parloops.c (pass_parallelize_loops::execute): Allow
10704         pass_parallelize_loops to be run outside the loop pipeline.
10705
10706 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
10707
10708         * tree-scalar-evolution.c (follow_copies_to_constant): New.
10709         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
10710
10711 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
10712
10713         PR target/63679
10714         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
10715         using get_ref_base_and_extent.
10716         (equal_mem_array_ref_p): New.
10717         (hashable_expr_equal_p): Add call to previous.
10718
10719 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
10720
10721         PR target/63679
10722         * tree-sra.c (disqualified_constants, constant_decl_p): New.
10723         (sra_initialize): Allocate disqualified_constants.
10724         (sra_deinitialize): Free disqualified_constants.
10725         (disqualify_candidate): Update disqualified_constants when appropriate.
10726         (create_access): Scan for constant-pool entries as we go along.
10727         (scalarizable_type_p): Add check against type_contains_placeholder_p.
10728         (maybe_add_sra_candidate): Allow constant-pool entries.
10729         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
10730         (initialize_constant_pool_replacements): New.
10731         (sra_modify_assign): Avoid mangling assignments created by previous,
10732         and don't generate writes into constant pool.
10733         (sra_modify_function_body): Call initialize_constant_pool_replacements.
10734
10735 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
10736
10737         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
10738         andnot instruction.
10739         (scalar_chain::convert_op): Likewise.
10740         * config/i386/i386.md (*andndi3_doubleword): New.
10741
10742 2016-01-18  Richard Biener  <rguenther@suse.de>
10743
10744         PR tree-optimization/69170
10745         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
10746         building a vector from scalar results of a pattern stmt.
10747
10748 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
10749
10750         * haifa-sched.c (autopref_multipass_init): Work around
10751         -Wmaybe-uninitialized warning.
10752
10753 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10754
10755         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
10756         against the constant 0.
10757
10758 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10759
10760         PR tree-optimization/68799
10761         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
10762         look up phi candidates in the statement-candidate map.
10763         (phi_add_costs): Likewise.
10764         (record_phi_increments): Likewise.
10765         (phi_incr_cost): Likewise.
10766         (ncd_with_phi): Likewise.
10767         (all_phi_incrs_profitable): Likewise.
10768
10769 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
10770
10771         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
10772         -Wmaybe-uninitialized warning.
10773
10774 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
10775
10776         * doc/invoke.texi (Invoking GCC): Add new section to menu.
10777         (Option Summary): Update to reflect new section and moved options.
10778         (C++ Dialect Options): Move -fvtable-verify and related options.
10779         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
10780         and profiling-related options.
10781         (Optimization Options): Move profile generation options and
10782         -fstack-protector and related options.
10783         (Instrumentation Options): New section incorporating moved options.
10784         (Code Generation Options): Move -finstrument-functions and
10785         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
10786
10787 2016-01-16  Tom de Vries  <tom@codesourcery.com>
10788
10789         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
10790
10791 2016-01-16  Tom de Vries  <tom@codesourcery.com>
10792
10793         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
10794
10795 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
10796
10797         * hash-table.h (hash_table::empty): Turn into an inline wrapper
10798         that checks whether the table is already empty.  Rename the
10799         original implementation to...
10800         (hash_table::empty_slot): ...this new private function.
10801
10802 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
10803
10804         PR diagnostic/68899
10805         * diagnostic-show-locus.c (layout::print_source_line): Move x
10806         offset of line until after call to
10807         get_line_width_without_trailing_whitespace.
10808
10809 2016-01-15  Jeff Law  <law@redhat.com>
10810
10811         PR tree-optimization/69270
10812         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
10813         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
10814         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
10815         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
10816         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
10817         ssa_name_has_boolean_range and constant_boolean_node.
10818
10819 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
10820
10821         PR rtl-optimization/69030
10822         * lra-spills.c (remove_pseudos): Check nrefs and make the function
10823         returning bool.
10824         (spill_pseudos): Delete debug insn for dead pseudo.
10825         (lra_spill): Initiate spill_hard_reg and slots memory separately.
10826
10827 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
10828
10829         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
10830         New.
10831         (TYPES_UNOPUS): Likewise.
10832         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
10833         builtin type, from UNOP to UNOPUS.
10834         (lbtruncuv4sf): Likewise.
10835         (lbtruncuv2df): Likewise.
10836         (lrounduv2sf): Likewise.
10837         (lrounduv4sf): Likewise.
10838         (lrounduv2df): Likewise.
10839         (lroundusf): Likewise.
10840         (lroundusf): Likewise.
10841         (lceiluv2sf): Likewise.
10842         (lceiluv4sf): Likewise.
10843         (lceiluv2df): Likewise.
10844         (lceilusf): Likewise.
10845         (lceiludf): Likewise.
10846         (lflooruv2sf): Likewise.
10847         (lflooruv4sf): Likewise.
10848         (lflooruv2df): Likewise.
10849         (lfloorusf): Likewise.
10850         (lfloorudf): Likewise.
10851         (lfrintnuv2sf): Likewise.
10852         (lfrintnuv4sf): Likewise.
10853         (lfrintnuv2df): Likewise.
10854         (lfrintnusf): Likewise.
10855         (lfrintnudf): Likewise.
10856         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
10857         conversion.
10858         (vcvtq_u32_f32): Likewise.
10859         (vcvtq_u64_f64): Likewise.
10860         (vcvta_u32_f32): Likewise.
10861         (vcvtaq_u32_f32): Likewise.
10862         (vcvtaq_u64_f64): Likewise.
10863         (vcvtm_u32_f32): Likewise.
10864         (vcvtmq_u32_f32): Likewise.
10865         (vcvtmq_u64_f64): Likewise.
10866         (vcvtn_u32_f32): Likwise.
10867         (vcvtnq_u32_f32): Likewise.
10868         (vcvtnq_u64_f64): Likewise.
10869         (vcvtp_u32_f32): Likewise.
10870         (vcvtpq_u32_f32): Likewise.
10871         (vcvtpq_u64_f64): Likewise.
10872         (vcvtmd_u64_f64): Likewise.
10873         (vcvtms_u32_f32): Likewise.
10874         (vcvtad_u64_f64): Likewise.
10875         (vcvtas_u32_f32): Likewise.
10876         (vcvtnd_u64_f64): Likewise.
10877         (vcvtns_u32_f32): Likewise.
10878         (vcvtpd_u64_f64): Likewise.
10879         (vcvtps_u32_f32): Likewise.
10880
10881 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10882
10883         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
10884         CSEL of zero_extended registers.
10885
10886 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10887
10888         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
10889         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
10890
10891 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10892
10893         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
10894         false when argument string is not found in the attributes table
10895         at all.
10896
10897 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
10898
10899         PR target/68609
10900         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
10901         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
10902         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
10903         precision estimate.
10904
10905 2016-01-15  Richard Biener  <rguenther@suse.de>
10906
10907         PR tree-optimization/66856
10908         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
10909         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
10910         (vect_create_new_slp_node): Increment stmt reference count.
10911         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
10912         an SLP tree before swapping operands.
10913         (vect_build_slp_tree): Likewise.
10914         (destroy_bb_vec_info): Free stmt info after SLP instances.
10915         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
10916         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
10917         (STMT_VINFO_NUM_SLP_USES): New macro.
10918
10919 2016-01-15  Richard Biener  <rguenther@suse.de>
10920
10921         PR debug/69137
10922         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
10923         (add_linkage_name): ... here.
10924         (gen_typedef_die): Use add_linkage_name_raw instead of
10925         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
10926         if necessary.
10927
10928 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
10929
10930         * gimplify.c (oacc_default_clause): Decode reference and pointer
10931         types for both kernels and parallel regions.
10932
10933 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
10934
10935         PR middle-end/69246
10936         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
10937
10938 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
10939
10940         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
10941         (convert_scalars_to_vector): Likewise.
10942
10943 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
10944
10945         * doc/extend.texi (Type Traits): Fix grammar.
10946
10947 2016-01-15  Martin Jambor  <mjambor@suse.cz>
10948
10949         * tree-inline.c (remap_decl): Use existing dclarations if
10950         remapping a type and prevent_decl_creation_for_types.
10951         (replace_locals_stmt): Do an initial remapping of non-VLA typed
10952         decls first.  Do real remapping with
10953         prevent_decl_creation_for_types set.
10954         * tree-inline.h (copy_body_data): New field
10955         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
10956         padding.
10957
10958 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10959
10960         * config/s390/s390.opt (mmvcle): More verbose help text.
10961
10962 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10963
10964         * config/s390/s390.opt: Add period to -mzvector option text.
10965
10966 2016-01-15  Richard Biener  <rguenther@suse.de>
10967
10968         PR tree-optimization/68961
10969         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
10970         of invariants in stores again.
10971
10972 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10973
10974         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
10975
10976 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
10977
10978         * config/i386/i386.c (ix86_expand_branch): Don't split
10979         DI mode xor instruction to SI mode.
10980
10981 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
10982
10983         PR ipa/68148
10984         * ipa-icf.c (sem_function::merge): Virtual functions may become
10985         reachable even if they address is not taken and there are no
10986         idrect calls.
10987
10988 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
10989
10990         * lto-streamer-out.c (subtract_estimated_size): New function.
10991         (get_symbol_initial_value): Use it.
10992
10993 2016-01-15  Christian Bruel  <christian.bruel@st.com>
10994
10995         PR target/65837
10996         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
10997         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
10998         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
10999         use add_builtin_function_ext_scope instead of add_builtin_function.
11000         (neon_set_p, neon_crypto_set_p): Remove.
11001         (arm_init_builtins): Always call arm_init_neon_builtins and
11002         arm_init_crypto_builtins.
11003         (arm_expand_builtin): Check that builtins are allowed for the arch.
11004         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
11005         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
11006         arm_init_neon_builtins call.
11007
11008 2016-01-15  Richard Biener  <rguenther@suse.de>
11009
11010         PR tree-optimization/69117
11011         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
11012         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
11013         of the leader conservatively.
11014         (free_scc_vn): Restore original SSA name infos.
11015
11016 2016-01-14  Jeff Law  <law@redhat.com>
11017
11018         PR tree-optimization/69270
11019         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
11020         single bit of precision, verify it's also unsigned.
11021         (record_edge_info): Use constant_boolean_node rather than fold_convert
11022         to convert boolean_true/boolean_false to the right type.
11023
11024 2016-01-14  Richard Henderson  <rth@redhat.com>
11025
11026         PR rtl-opt/69014
11027         * loop-doloop.c (record_reg_sets): New.
11028         (doloop_optimize): Reject the transform if the sequence
11029         clobbers registers live at the end of the loop block.
11030         (doloop_optimize_loops): Enable df_live if needed.
11031
11032 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11033
11034         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
11035         * gcc/config/rs6000/rs6000.c: Likewise.
11036         * gcc/config/rs6000/rs6000.h: Likewise.
11037         * gcc/config/rs6000/rs6000.md: Likewise.
11038         * gcc/doc/extend.texi: Likewsie.
11039
11040 2016-01-14  Jeff Law  <law@redhat.com>
11041
11042         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
11043         typo.
11044
11045 2016-01-14  Richard Henderson  <rth@redhat.com>
11046
11047         PR c/69272
11048         PR tree-opt/68964
11049         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
11050         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
11051         instead of builtin_decl_declared_p to test for declaration.
11052
11053 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
11054
11055         * doc/loop.texi (Loop Analysis and Representation): Document
11056         loop_depth function.
11057
11058 2016-01-14  Tom de Vries  <tom@codesourcery.com>
11059
11060         PR tree-optimization/68773
11061         * omp-low.c (expand_omp_target): Don't set force_output.
11062         * varpool.c (varpool_node::get_create): Same.
11063         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
11064         offload_funcs with force_output.
11065
11066 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
11067
11068         PR debug/69244
11069         * lra-eliminations.c (move_plus_up): Don't change anything if either
11070         the outer or inner subreg mode is not MODE_INT.
11071         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
11072         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
11073
11074 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
11075
11076         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
11077         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
11078         reduc_uplus_@var{m}): Remove.
11079         * expr.c (expand_expr_real_2): Remove expansion path for
11080         reduc_[us](min|max|plus) optabs.
11081         * optabs-tree.c (scalar_reduc_to_vector): Remove.
11082         * optabs-tree.h (scalar_reduc_to_vector): Remove.
11083         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
11084         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
11085         * tree-vect-loop.c (vectorizable_reduction): Remove test for
11086         reduc_[us](min|max|plus) optabs.
11087
11088 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
11089
11090         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
11091         (reduc_plus_scal_v2sf): New.
11092         (reduc_smax_v2sf): Rename to...
11093         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
11094         (reduc_smin_v2sf): Rename to...
11095         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
11096
11097 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
11098
11099         * alias.c (compare_base_symbol_refs): New function.
11100         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
11101         it.
11102
11103 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
11104
11105         PR middle-end/68146
11106         PR tree-optimization/69155
11107         * tree-complex.c: Include cfganal.h.
11108         (phis_to_revisit): New variable.
11109         (extract_component): Add phiarg_p argument.  Assert that returned
11110         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
11111         (update_phi_components): Partly rewrite to use loop over real/imag
11112         components instead of code duplication.  If extract_component returns
11113         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
11114         create_tmp_reg into the PHI node instead, and mention the phi triplet
11115         in phis_to_revisit.
11116         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
11117         in phis_to_revisit at the end.
11118
11119 2016-01-14  Richard Biener  <rguenther@suse.de>
11120
11121         PR tree-optimization/68060
11122         * tree-vect-loop.c (vect_is_simple_reduction): Check the
11123         outer loop reduction is only used in the inner loop before
11124         detecting a double reduction.
11125
11126 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
11127
11128         PR target/68269
11129         * combine.c (expand_field_assignment): Punt if compute_mode is
11130         unsupported scalar mode.
11131
11132 2016-01-14  Richard Biener  <rguenther@suse.de>
11133
11134         PR tree-optimization/66856
11135         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
11136         SLP node only if it built successfully.
11137         (vect_analyze_slp_instance): Adjust.
11138
11139 2016-01-14  Jeff Law  <law@redhat.com>
11140
11141         PR tree-optimization/69270
11142         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
11143         (record_edge_info): Use it.  Convert boolean_{true,false}_node
11144         to the type of op0.
11145
11146 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
11147
11148         PR ipa/66487
11149         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
11150         use block_ultimate_origin
11151         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
11152
11153 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
11154
11155         * doc/invoke.texi (Submodel Options): Rename section to
11156         "Machine-Dependent Options" to better reflect its content.
11157         Rewrite introductory text to remove archaic CPU names.
11158         Update references.
11159
11160 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
11161
11162         * doc/invoke.texi (Code Gen Options): Move section up in file,
11163         before target-specific options.  Update menu and option summary
11164         to reflect the new section ordering.
11165
11166 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
11167
11168         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
11169         (C++ Dialect Options): Add cross-reference to -std option.
11170         * doc/standards.texi (C++ Language): Document C++14 support.
11171
11172 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
11173
11174         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
11175         for pack/unpack functions for __ibm128.
11176         (PACK_IF): Likewise.
11177         (UNPACK_IF): Likewise.
11178
11179         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
11180         support for __ibm128 pack/unpack functions.
11181         (rs6000_invalid_builtin): Likewise.
11182         (rs6000_init_builtins): Likewise.
11183         (rs6000_opt_masks): Likewise.
11184
11185         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
11186         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
11187         functions
11188         (RS6000_BTM_COMMON): Likewise.
11189
11190         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
11191         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
11192         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
11193         128-bit floating point.  Add support for the double values to be
11194         in Altivec registers for TF/IF packing and unpacking, but restrict
11195         TD packing sub-fields to be FPR registers.  Don't allow overlapped
11196         register support for packing.  Allow pack inputs to be memory
11197         locations.  Don't build generator functions for unpack<mode>_dm
11198         and unpack<mode>_nodm.
11199         (unpack<mode>_dm): Likewise.
11200         (unpack<mode>_nodm): Likewise.
11201         (pack<mode>): Likewise.
11202
11203         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
11204         built-in functions to pack/unpack explicit __ibm128 values.
11205         (__builtin_unpack_ibm128): Likewise.
11206
11207         * doc/extend.texi (PowerPC Built-in Functions): Document
11208         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
11209
11210 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
11211
11212         PR c/66208
11213         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
11214         Add new arg loc and pass it down as context.
11215         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
11216         to the location to use for the warning.
11217         (check_function_arguments): New arg loc.  All callers changed.  Pass
11218         it to check_function_nonnull.
11219         * c-common.h (check_function_arguments): Adjust declaration.
11220
11221 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
11222
11223         PR tree-optimization/69156
11224         * gimple.c (validate_type): Removed.
11225         (gimple_builtin_call_types_compatible_p): Use
11226         useless_type_conversion_p instead of validate_type.
11227         * value-prof.c (gimple_stringop_fixed_value): Fold
11228         icall_size to correct type.
11229
11230 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
11231
11232         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
11233         effects.
11234
11235 2016-01-13  Richard Henderson  <rth@redhat.com>
11236
11237         PR tree-opt/68964
11238         * target.def (builtin_tm_load, builtin_tm_store): Remove.
11239         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
11240         (ix86_builtin_tm_store): Remove.
11241         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
11242         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
11243         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
11244         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
11245         * doc/tm.texi: Rebuild.
11246
11247         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
11248         (BUILT_IN_TM_MEMCPY_RTWN): New.
11249         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
11250         fallback from vector to integer helpers.
11251         (build_tm_load): Handle vector types directly, instead of
11252         via target hook.
11253         (build_tm_store): Likewise.
11254         (expand_assign_tm): Prepare for register types not handled by
11255         the above.  Copy them to memory and use memcpy.
11256         * tree.c (tm_define_builtin): New.
11257         (find_tm_vector_type): New.
11258         (build_tm_vector_builtins): New.
11259         (build_common_builtin_nodes): Call it.
11260
11261 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
11262
11263         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
11264         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
11265
11266 2016-01-13  Tom de Vries  <tom@codesourcery.com>
11267
11268         PR tree-optimization/69169
11269         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
11270         handled_struct_type param.
11271         (create_variable_info_for, intra_create_variable_infos): Call
11272         create_variable_info_for_1 with extra arg.
11273
11274 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
11275
11276         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
11277         and "armv8.1-a+crc" entries.
11278
11279 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
11280
11281         PR target/69228
11282         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
11283         Change first operand predicate from register_or_constm1_operand
11284         to register_operand.
11285         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
11286         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
11287         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
11288         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
11289         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
11290         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
11291         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
11292         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
11293         comparison with constm1_rtx from vec_prefetch_gen part.
11294
11295 2016-01-13  Richard Biener  <rguenther@suse.de>
11296
11297         PR tree-optimization/69013
11298         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
11299         Exchange assert for a test.
11300
11301 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11302
11303         PR target/69247
11304         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
11305
11306 2016-01-13  Richard Biener  <rguenther@suse.de>
11307
11308         PR tree-optimization/69242
11309         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
11310         assert with a check.
11311
11312 2016-01-13  Richard Biener  <rguenther@suse.de>
11313
11314         PR tree-optimization/69186
11315         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11316         Properly guard vect_update_misalignment_for_peel call.
11317
11318 2016-01-12  Jeff Law  <law@redhat.com>
11319
11320         PR tree-optimization/pr67755
11321         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
11322         "need_profile_correction".
11323         (thread_block_1): Initialize new field to false by default.  If we
11324         have multiple thread paths through a common joiner to different
11325         final targets, then set new field to true.
11326         (compute_path_counts): Only do count adjustment when it's really
11327         needed.
11328
11329 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
11330
11331         * doc/invoke.texi (Spec Files): Move section down in file, past
11332         all command-line option descriptions.
11333
11334 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11335
11336         PR middle-end/54809
11337         * doc/gty.texi: Remove documentation of mark_hook.
11338         * gengtype.c (struct write_types_data): Remove code to support
11339         mark_hook attribute.
11340         (walk_type): Likewise.
11341         (write_func_for_structure): Likewise.
11342
11343 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
11344
11345         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
11346         Directory Options, and -specs= to Overall Options.
11347         (Overall Options): Adjust similarly.  Reorder to group related
11348         options together.  Make -specs= cross-reference the spec file details.
11349         (Directory Options): Adjust similarly.
11350
11351 2016-01-12  Jeff Law  <law@redhat.com>
11352
11353         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
11354
11355 2016-01-12  Olivier Hainque  <hainque@adacore.com>
11356
11357         * gcc.c (spec_undefvar_allowed): New global.
11358         (process_command): Set to true when running for --version or --help,
11359         alone or together.
11360         (getenv_spec_function): When the variable is not defined, use the
11361         variable name as the variable value if we're allowed not to issue
11362         a fatal error.
11363
11364 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
11365
11366         PR tree-optimization/68911
11367         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
11368         information computed for expression "init + nit * step".
11369
11370 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
11371
11372         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
11373         about name of GCC executable.  Remove deleted node from menu.
11374         (Directory Options) <-B>: Remove cross-reference to deleted node.
11375         (Target Options): Delete section.
11376
11377 2016-01-12  Christian Bruel  <christian.bruel@st.com>
11378
11379         PR target/69180
11380         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
11381         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
11382
11383 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
11384
11385         PR target/69198
11386         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
11387         aligned_mem is properly set for AVX512-VL floating point masked
11388         stores.
11389
11390         PR target/69175
11391         * ifcvt.c (cond_exec_process_if_block): When removing the last
11392         insn from then_bb, remove also any possible barriers that follow it.
11393
11394 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
11395
11396         PR target/68456
11397         PR target/69226
11398         * config/i386/iamcu.h (SIZE_TYPE): New macro.
11399         (PTRDIFF_TYPE): Likewise.
11400         (WCHAR_TYPE): Likewise.
11401         (WCHAR_TYPE_SIZE): Likewise.
11402         (STDINT_LONG32): Likewise.
11403
11404 2016-01-12  Richard Biener  <rguenther@suse.de>
11405
11406         PR tree-optimization/69053
11407         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
11408         convert initial value for cond reductions.
11409
11410 2016-01-12  Richard Biener  <rguenther@suse.de>
11411
11412         PR tree-optimization/69007
11413         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
11414         widen_sum after dot_prod and sad.
11415
11416 2016-01-12  Richard Biener  <rguenther@suse.de>
11417
11418         PR tree-optimization/69168
11419         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
11420         pattern stmt SLP type.
11421         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
11422         end up unused so cope with that case.
11423
11424 2016-01-12  Richard Biener  <rguenther@suse.de>
11425
11426         PR tree-optimization/69157
11427         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
11428         stmts def type only during analyze phase.
11429         (vectorizable_call): Likewise.
11430         (vectorizable_simd_clone_call): Likewise.
11431         (vectorizable_conversion): Likewise.
11432         (vectorizable_assignment): Likewise.
11433         (vectorizable_shift): Likewise.
11434         (vectorizable_operation): Likewise.
11435         (vectorizable_store): Likewise.
11436         (vectorizable_load): Likewise.
11437
11438 2016-01-12  Richard Biener  <rguenther@suse.de>
11439
11440         PR tree-optimization/69174
11441         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
11442         space.
11443         (vectorizable_load): Properly compute the number of loads needed
11444         for permuted strided SLP loads and do not spuriously assign
11445         to SLP_TREE_VEC_STMTS.
11446
11447 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
11448
11449         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
11450         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
11451         (MD_EXEC_PREFIX): Remove.
11452         (MD_STARTFILE_PREFIX) Removee.
11453         (FILE_NAME_ABSOLUTE_P): Remove.
11454         (CPP_SPEC): Do not read macros from sys/version.h.
11455         (LINK_COMMAND_SPEC): Remove.
11456         (LOCAL_INCLUDE_DIR): Remove.
11457         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
11458         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
11459         (POST_LINK_SPEC): Define to invoke stubify after linker
11460         (LIBSTDCXX): Remove define
11461         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
11462         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
11463         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
11464         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
11465         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
11466         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
11467         (i386_djgpp_asm_named_section): Add propotype of new procedure
11468
11469         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
11470         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
11471         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
11472         in config/i386/djgpp.h).
11473         (STANDARD_STARTFILE_PREFIX_2): Define identical to
11474         STANDARD_STARTFILE_PREFIX_1.
11475         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
11476         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
11477         installation errors.
11478         (MAX_OFILE_ALIGNMENT): Define to 128.
11479         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
11480
11481         * config/i386/djgpp.c: New file. Add implementation of
11482         i386_djgpp_asm_named_section.
11483
11484         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
11485
11486         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
11487         Add rule for building djgpp.o.
11488
11489 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11490
11491         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
11492         (rtx_is_swappable_p): Reductions are swappable.
11493         (insn_is_swappable_p): V2DF reductions are swappable.
11494
11495 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
11496
11497         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
11498         reloads for other unsupported memory operands.
11499
11500 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
11501             Jim Wilson  <jim.wilson@linaro.org>
11502
11503         PR target/69194
11504         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
11505         copy_to_mode_reg instead of force_reg.
11506
11507 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
11508
11509         PR target/69225
11510         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
11511         TARGET_80387 is true.
11512
11513 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
11514
11515         PR target/69071
11516         * lra-eliminations.c (move_plus_up): Only move plus up
11517         if subreg of the constant can be simplified into constant
11518         and use the simplified subreg of the constant instead of
11519         the original constant.
11520
11521         * fold-const.c (fold_convertible_p): Don't return true
11522         for conversion of VECTOR_TYPE to same sized integral type.
11523         (fold_convert_loc): Fix up formatting.  Fold conversion of
11524         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
11525         instead of NOP_EXPR.
11526
11527         PR tree-optimization/69214
11528         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
11529         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
11530         Formatting fix.
11531
11532         PR tree-optimization/69207
11533         * tree-vect-slp.c (vect_get_constant_vectors): For
11534         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
11535         fold_convertible_p to vector_type's element type, and always
11536         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
11537
11538 2016-01-11  Richard Biener  <rguenther@suse.de>
11539
11540         PR tree-optimization/69173
11541         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
11542         fixup the cycle if all stmts are in a pattern.
11543
11544 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
11545
11546         PR middle-end/68999
11547         * alias.c (base_alias_check): Move check for addresses with
11548         alignment ANDs before the call for compare_base_decls.
11549         (memrefs_conflict_p): Return -1 for different decls
11550         that went through alignment adjustments.
11551
11552 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11553
11554         PR rtl-optimization/68796
11555         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
11556         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
11557         and QImode comparisons against zero with CC_NZmode.
11558         * config/aarch64/iterators.md (short_mask): New mode_attr.
11559
11560 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
11561
11562         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
11563         (<avx512>_store<mode>_mask): Likewise.
11564
11565 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
11566             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11567
11568         PR rtl-optimization/68841
11569         * ifcvt.c (struct noce_if_info): Add orig_x field.
11570         (bbs_ok_for_cmove_arith): Add to_rename parameter.
11571         Don't record conflicts on to_rename if it's present.
11572         Allow memory destinations in sets.
11573         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
11574         blocks, passing orig_x to the checks.
11575         (noce_process_if_block): Set if_info->orig_x appropriately.
11576
11577 2016-01-11  Tom de Vries  <tom@codesourcery.com>
11578
11579         PR tree-optimization/69069
11580         * tree-parloops.c (create_parallel_loop): Add missing phi args.
11581
11582 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
11583
11584         PR rtl-optimization/68920
11585         * config/i386/i386.c (ix86_option_override_internal): Restrict number
11586         of conditional moves for  RTL if-conversion to 1 for
11587         TARGET_ONE_IF_CONV_INSN.
11588         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
11589         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
11590         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
11591         parameter to restirct number of conditional moves for
11592         RTL if-conversion.
11593         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
11594         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
11595         conditionl moves.
11596
11597 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
11598
11599         PR bootstrap/69123
11600         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
11601         onepart vars.  Fix typo in comment.  Fix reversed condition in
11602         unshare test.
11603         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
11604
11605         PR bootstrap/69123
11606         * var-tracking.c (dump_onepart_variable_differences): New.
11607         (dataflow_set_different): If a detailed dump is requested,
11608         delay early returns and dump differences between onepart
11609         variables present before and after, and added variables.
11610
11611 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
11612
11613         PR target/69010
11614         * expr.c (expand_expr_real_1): For boolean vector constants
11615         with a scalar mode use const_scalar_mask_from_tree.
11616         (const_scalar_mask_from_tree): New.
11617         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
11618         assigned to a mask type to handle constants.
11619
11620 2016-01-11  Martin Jambor  <mjambor@suse.cz>
11621
11622         PR ipa/69044
11623         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
11624         useless parameters if we cannot change function signature.
11625
11626 2016-01-11  Martin Jambor  <mjambor@suse.cz>
11627
11628         PR ipa/66616
11629         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
11630         flag.
11631
11632 2016-01-11  Tom de Vries  <tom@codesourcery.com>
11633
11634         PR tree-optimization/69109
11635         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
11636         latch with phi.
11637
11638 2016-01-11  Tom de Vries  <tom@codesourcery.com>
11639
11640         PR tree-optimization/69108
11641         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
11642         res is not used in a phi.
11643
11644 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
11645
11646         PR 67425
11647         * common.opt (frandom-seed): Fix parameter name.
11648         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
11649
11650 2016-01-11  Tom de Vries  <tom@codesourcery.com>
11651
11652         PR tree-optimization/69058
11653         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
11654         not supported.
11655
11656 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
11657
11658         * config/arc/arc.opt (mdiv-rem): Add period to the end.
11659         (mcode-density): Likewise.
11660
11661 2016-01-10  Tom de Vries  <tom@codesourcery.com>
11662
11663         PR tree-optimization/69062
11664         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
11665         (parallelize_loops): Don't paralelize loop that has phi with address
11666         arg.
11667
11668 2016-01-10  Tom de Vries  <tom@codesourcery.com>
11669
11670         PR tree-optimization/69039
11671         * tree-parloops.c (try_create_reduction_list): Only allow single exit
11672         phi for reduction.
11673
11674 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
11675
11676         PR middle-end/68743
11677         * match.pd: Require target has function_c99_misc before doing
11678         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
11679
11680 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
11681
11682         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
11683         use GMPINC.
11684         * configure: Regenerate.
11685
11686 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
11687
11688         PR middle-end/50865
11689         PR tree-optimization/69097
11690         * fold-const.h (expr_not_equal_to): New prototype.
11691         * fold-const.c: Include stringpool.h and tree-ssanames.h.
11692         (expr_not_equal_to): New function.
11693         * match.pd (X % -Y is the same as X % Y): Don't optimize
11694         unless X is known not to be equal to minimum or Y is known
11695         not to be equal to -1.
11696         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
11697         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
11698         (simplify_stmt_using_ranges): Adjust caller.
11699         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
11700         substitute_and_fold.
11701
11702 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
11703
11704         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
11705         w/o DECL_NAME.
11706
11707 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
11708
11709         PR tree-optimization/69167
11710         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
11711         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
11712         ops[0] comparison.
11713         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
11714
11715 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
11716             Richard Biener  <rguenther@suse.de>
11717
11718         PR tree-optimization/68707
11719         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
11720         instances that can be handled via vect_load_lanes.
11721
11722 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
11723
11724         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
11725         if we can't determine address equivalence.
11726         * alias.c (compare_base_decl): Update for changed return value of
11727         symtab_node::equal_address_to.
11728
11729 2016-01-08  Jason Merrill  <jason@redhat.com>
11730
11731         PR c++/68983
11732         PR c++/67557
11733         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
11734         * expr.c (store_field): Not here.
11735         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
11736         call with TREE_ADDRESSABLE type.
11737         * tree-cfg.c (verify_gimple_call): Adjust.
11738
11739 2016-01-08  Olivier Hainque  <hainque@adacore.com>
11740
11741         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
11742         libc_internal.
11743
11744 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
11745
11746         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
11747         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
11748         (reduc_smin_v2sf): Rename to...
11749         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
11750         (reduc_splus_v2sf): Rename to...
11751         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
11752
11753 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
11754
11755         PR tree-optimization/69162
11756         * gimplify.c (gimplify_va_arg_expr): Encode original type of
11757         valist argument in another argument.
11758         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
11759         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
11760         to determine the va_list type, build a MEM_REF instead of
11761         build_fold_indirect_ref.
11762
11763         PR tree-optimization/69172
11764         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
11765         gimple_build.
11766
11767 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11768
11769         PR tree-optimization/67781
11770         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
11771         and cmpnop in two steps: first the ones not accessed in original
11772         gimple expression in a endian independent way and then the ones not
11773         accessed in the final result in an endian-specific way.
11774
11775 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
11776
11777         PR tree-optimization/69083
11778         * tree-vect-slp.c (vect_get_constant_vectors): For
11779         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
11780         element type.  If op is fold_convertible_p to vector_type's element
11781         type, use NOP_EXPR instead of VCE.
11782
11783 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
11784
11785         PR rtl-optimization/67778
11786         PR rtl-optimization/68634
11787         PR rtl-optimization/68909
11788         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
11789         block from the stack until done with it.  Remove a superfluous
11790         bitmap set.  Remove a superfluous bitmap test.
11791
11792 2016-01-07  Martin Sebor  <msebor@redhat.com>
11793
11794         PR c/68966
11795         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
11796         constraint on the type of arguments.
11797
11798 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
11799
11800         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
11801         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
11802         unaligned_access on the gcc_options set.
11803         * config/arm/arm.c (arm_option_override_internal): Use
11804         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
11805
11806 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
11807
11808         PR target/69140
11809         * config/i386/i386.c (ix86_frame_pointer_required): Enable
11810         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
11811
11812 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
11813
11814         Revert
11815         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
11816
11817         PR target/69140
11818         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
11819         depending on frame_pointer_needed before remaining integer and SSE
11820         registers are saved.
11821
11822 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
11823
11824         PR 1078
11825         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
11826
11827 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
11828
11829         PR target/69171
11830         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
11831         Use the "xBm" constraint.
11832         (float<sseintvecmodelower><mode>2<mask_name><round_name):
11833         Likewise.
11834         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
11835         (sse_cvtsi2ssq<round_name>): Likewise.
11836         (sse_cvtss2si<round_name>): Likewise.
11837         (sse_cvtss2siq<round_name>): Likewise.
11838         (sse2_cvtsi2sdq<round_name>): Likewise.
11839         (sse2_cvtsd2si<round_name>): Likewise.
11840         (sse2_cvtsd2siq<round_name>): Likewise.
11841         * config/i386/subst.md (round_nimm_scalar_predicate): New
11842         predicate.
11843
11844 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
11845
11846         PR middle-end/67639
11847         * varasm.c (make_decl_rtl): Mark invalid register vars as
11848         DECL_EXTERNAL.
11849
11850         PR rtl-optimization/66206
11851         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
11852         All callers changed.
11853
11854 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
11855
11856         PR tree-optimization/69141
11857         * tree-ssa-pre.c: Include langhooks.h.
11858         (eliminate_dom_walker::before_dom_children): Use
11859         lang_hooks.decl_printable_name instead of
11860         cgraph_node::get ()->name ().
11861
11862         PR middle-end/68960
11863         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
11864         it and DECL_ALIGN too.
11865
11866 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
11867
11868         * config/mips/mips-ftypes.def: Sort to lexicographical order.
11869
11870 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
11871
11872         PR target/69140
11873         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
11874         depending on frame_pointer_needed before remaining integer and SSE
11875         registers are saved.
11876
11877 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11878
11879         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
11880         mode iterator with VSX_M2.
11881         (*p9_vecstore_<mode>): Likewise.
11882         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
11883         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
11884         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
11885         (define_split for VSX_LE128 stores): Likewise.
11886         (define_peephole2 for TImode LE swaps): Likewise.
11887         (define_split for VSX_LE128 post-reload stores): Likewise.
11888
11889 2016-01-06  Marek Polacek  <polacek@redhat.com>
11890
11891         PR sanitizer/69099
11892         * convert.c (convert_to_integer_1): Adjust call to
11893         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
11894         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
11895         EXPR instead of ARG.
11896         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
11897
11898 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
11899
11900         PR 1078
11901         * doc/extend.texi (RL78 Variable Attributes): New section.
11902
11903 2016-01-05  Marek Polacek  <polacek@redhat.com>
11904
11905         PR c/69104
11906         * builtins.c (get_memmodel): Use expansion point location rather than
11907         the input location.  Call warning_at rather than warning.
11908         (expand_builtin_atomic_compare_exchange): Likewise.
11909         (expand_builtin_atomic_load): Likewise.
11910         (expand_builtin_atomic_store): Likewise.
11911         (expand_builtin_atomic_clear): Likewise.
11912
11913 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
11914
11915         PR target/68991
11916         * config/i386/i386.c (ix86_expand_vector_logical_operator):
11917         Replace nonimmediate_operand with vector_operand.
11918         * config/i386/predicates.md (vector_operand): New predicate.
11919         (general_vector_operand): Replace nonimmediate_operand with
11920         vector_operand.
11921         * config/i386/sse.md: Replace nonimmediate_operand with
11922         vector_operand and m constraint with Bm constraint on SSE
11923         patterns with 16-byte memory operand.
11924         * config/i386/subst.md (round_nimm_predicate): Replace
11925         nonimmediate_operand with vector_operand.
11926         (round_saeonly_nimm_predicate): Likewise.
11927         (round_saeonly_nimm_scalar_predicate): New.
11928
11929 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
11930
11931         PR target/68991
11932         * config/i386/constraints.md (Bm): New constraint.
11933         * config/i386/predicates.md (vector_memory_operand): New
11934         predicate.
11935         * config/i386/sse.md: Replace xm with xBm in plusminus and
11936         any_logic patterns.
11937
11938 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
11939
11940         PR 1078
11941         * doc/extend.texi (V850 Function Attributes): New section.
11942         (V850 Variable Attributes): New section.
11943
11944 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
11945
11946         PR 1078
11947         * doc/extend.texi (MicroBlaze Function Attributes): Document
11948         interrupt_handler and fast_interrupt attributes.
11949
11950 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
11951
11952         PR other/60465
11953         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
11954         for local symbolic operands.
11955         * config/ia64/predicates.md (local_symbolic_operand64): New
11956         predicate.
11957
11958 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11959
11960         PR rtl-optimization/68651
11961         * combine.c (combine_simplify_rtx): Canonicalize x + x into
11962         x << 1.
11963
11964 2016-01-05  Nathan Sidwell  <nathan@acm.org>
11965
11966         * alias.c (compare_base_decls): Use symtab_node::get.
11967
11968 2016-01-05  Nick Clifton  <nickc@redhat.com>
11969
11970         PR target/68770
11971         * ira-costs.c (copy_cost): Initialise the t_icode field of the
11972         secondary_reload_info structure.
11973
11974         PR target/66655
11975         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
11976         decls if weak support is available.
11977
11978 2016-01-04  Martin Sebor  <msebor@redhat.com>
11979
11980         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
11981
11982 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
11983
11984         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
11985         OPTION_MASK_P9_DFORM.
11986
11987         * config/rs6000/constraints.md (wo constraint): New constraint for
11988         ISA 3.0 (power9).
11989
11990         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
11991         for wo constraint.
11992         (rs6000_init_hard_regno_mode_ok): Likewise.
11993
11994         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
11995         wo constraint.
11996
11997         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
11998         expanders not to have constraints.  Add support for ISA 3.0 xxperm
11999         instruction.  Add support for fusing xxlor with xxperm.
12000         (altivec_vperm_<mode>_internal): Likewise.
12001         (altivec_vperm_v8hiv16qi): Likewise.
12002         (altivec_vperm_<mode>v16q): Likewise.
12003         (altivec_vperm_<mode>_uns): Likewise.
12004         (vperm_v8hiv4si): Likewise.
12005         (vperm_v16qiv8hi): Likewise.
12006
12007         * doc/md.texi (RS/6000 constraints): Document wo constraint.
12008
12009 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
12010
12011         Update copyright years.
12012
12013         * gcc.c (process_command): Update copyright notice dates.
12014         * gcov-dump.c (print_version): Ditto.
12015         * gcov.c (print_version): Ditto.
12016         * gcov-tool.c (print_version): Ditto.
12017         * gengtype.c (create_file): Ditto.
12018         * doc/cpp.texi: Bump @copying's copyright year.
12019         * doc/cppinternals.texi: Ditto.
12020         * doc/gcc.texi: Ditto.
12021         * doc/gccint.texi: Ditto.
12022         * doc/gcov.texi: Ditto.
12023         * doc/install.texi: Ditto.
12024         * doc/invoke.texi: Ditto.
12025
12026 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
12027
12028         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
12029         modes larger than TImode as TImode if NEON is not enabled.
12030
12031 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
12032
12033         PR target/69100
12034         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
12035         mode for %f0-%f31 only if TARGET_FPU.
12036
12037 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
12038
12039         PR target/69072
12040         * config/sparc/sparc.c (scan_record_type): Take into account subfields
12041         to compute the PACKED_P predicate.
12042         (function_arg_record_value): Minor tweaks.
12043
12044 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12045
12046         * doc/install.texi (--with-multilib-list): Describe the meaning of the
12047         option for arm*-*-* targets.
12048
12049 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
12050
12051         * doc/extend.texi (Common Function Attributes): Move docs for
12052         MSP430-specific attributes to....
12053         (MSP430 Function Attributes): ...here.  Delete the redundant
12054         entries and copy-edit the remaining text.
12055         (MSP430 Variable Attributes): Use uniform format for index
12056         entries and add a cross-reference to the corresponding function
12057         attribute docs.
12058
12059 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
12060
12061         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
12062         -finite-math typo.
12063         (x86 Options): Likewise.
12064
12065 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
12066
12067         PR 1078
12068
12069         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
12070         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
12071         to corresponding attribute.
12072
12073 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
12074
12075         * doc/extend.texi (Common Function Attributes) <noplt>: Move
12076         to correct alphabetization of table.  Copy-edit and correct
12077         markup.
12078         <stack_protect>: Likewise.
12079         <target_clones>: Likewise.
12080         <simd>: Likewise.
12081         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
12082         Correct punctuation.
12083         (Code Gen Options) <-fno-plt>: Copy-edit.
12084
12085 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12086
12087         PR target/68917
12088         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
12089         SI values.  Explicitly convert SI to DI and vice-versa.
12090
12091 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
12092
12093         PR tree-optimization/69070
12094         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
12095         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
12096
12097         PR sanitizer/69055
12098         * ubsan.c (ubsan_instrument_float_cast): Call
12099         initialize_sanitizer_builtins.
12100
12101         PR target/69015
12102         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
12103 \f
12104 Copyright (C) 2016 Free Software Foundation, Inc.
12105
12106 Copying and distribution of this file, with or without modification,
12107 are permitted in any medium without royalty provided the copyright
12108 notice and this notice are preserved.