x86 - add speculation_barrier pattern
[platform/upstream/linaro-gcc.git] / gcc / ChangeLog
1 2018-08-01  Richard Earnshaw  <rearnsha@arm.com>
2
3         * config/i386/i386.md (unspecv): Add UNSPECV_SPECULATION_BARRIER.
4         (speculation_barrier): New insn.
5
6 2018-07-31  Ian Lance Taylor  <iant@golang.org>
7
8         * targhooks.c (default_have_speculation_safe_value): Add
9         ATTRIBUTE_UNUSED.
10
11 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
12
13         * targhooks.h (speculation_safe_value_not_needed): New prototype.
14         * targhooks.c (speculation_safe_value_not_needed): New function.
15         * target.def (have_speculation_safe_value): Update documentation.
16         * doc/tm.texi: Regenerated.
17
18 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
19
20         * config/aarch64/iterators.md (ALLI_TI): New iterator.
21         * config/aarch64/aarch64.md (despeculate_copy<ALLI_TI:mode>): New
22         expand.
23         (despeculate_copy<ALLI:mode>_insn): New insn.
24         (despeculate_copyti_insn): New insn.
25         (despeculate_simple<ALLI:mode>): New insn
26         (despeculate_simpleti): New insn.
27         * config/aarch64/aarch64.c (aarch64_speculation_safe_value): New
28         function.
29         (TARGET_SPECULATION_SAFE_VALUE): Redefine to
30         aarch64_speculation_safe_value.
31         (aarch64_print_operand): Handle const0_rtx in modifier 'H'.
32
33 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
34
35         * config/aarch64/aarch64-speculation.cc: New file.
36         * config/aarch64/aarch64-passes.def (pass_track_speculation): Add
37         before pass_reorder_blocks.
38         * config/aarch64/aarch64-protos.h (make_pass_track_speculation): Add
39         prototype.
40         * config/aarch64/aarch64.c (aarch64_conditional_register_usage): Fix
41         X14 and X15 when tracking speculation.
42         * config/aarch64/aarch64.md (register name constants): Add
43         SPECULATION_TRACKER_REGNUM and SPECULATION_SCRATCH_REGNUM.
44         (unspec): Add UNSPEC_SPECULATION_TRACKER.
45         (speculation_barrier): New insn attribute.
46         (cmp<mode>): Allow SP in comparisons.
47         (speculation_tracker): New insn.
48         (speculation_barrier): Add speculation_barrier attribute.
49         * config/aarch64/t-aarch64: Add make rule for aarch64-speculation.o.
50         * config.gcc (aarch64*-*-*): Add aarch64-speculation.o to extra_objs.
51         * doc/invoke.texi (AArch64 Options): Document -mtrack-speculation.
52
53 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
54
55         * config/aarch64/aarch64.md (cb<optab><mode>1): Disable when
56         aarch64_track_speculation is true.
57         (tb<optab><mode>1): Likewise.
58         * config/aarch64/aarch64.c (aarch64_split_compare_regs): Do not
59         generate CB[N]Z when tracking speculation.
60         (aarch64_split_compare_and_swap): Likewise.
61         (aarch64_split_atomic_op): Likewise.
62
63 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
64
65         * config/aarch64/aarch64.opt (mtrack-speculation): New target option.
66
67 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
68
69         * config/aarch64.md (unspecv): Add UNSPECV_SPECULAION_BARRIER.
70         (speculation_barrier): New insn.
71
72 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
73
74         * config/arm/unspecs.md (unspecv): Add VUNSPEC_SPECULATION_BARRIER.
75         * config/arm/arm.md (speculation_barrier): New expand.
76         (speculation_barrier_insn): New pattern.
77
78 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
79
80         * builtin-types.def (BT_FN_PTR_PTR_VAR): New function type.
81         (BT_FN_I1_I1_VAR, BT_FN_I2_I2_VAR, BT_FN_I4_I4_VAR): Likewise.
82         (BT_FN_I8_I8_VAR, BT_FN_I16_I16_VAR): Likewise.
83         * builtin-attrs.def (ATTR_NOVOPS_NOTHROW_LEAF_LIST): New attribute
84         list.
85         * builtins.def (BUILT_IN_SPECULATION_SAFE_VALUE_N): New builtin.
86         (BUILT_IN_SPECULATION_SAFE_VALUE_PTR): New internal builtin.
87         (BUILT_IN_SPECULATION_SAFE_VALUE_1): Likewise.
88         (BUILT_IN_SPECULATION_SAFE_VALUE_2): Likewise.
89         (BUILT_IN_SPECULATION_SAFE_VALUE_4): Likewise.
90         (BUILT_IN_SPECULATION_SAFE_VALUE_8): Likewise.
91         (BUILT_IN_SPECULATION_SAFE_VALUE_16): Likewise.
92         * builtins.c (expand_speculation_safe_value): New function.
93         (expand_builtin): Call it.
94         * doc/cpp.texi: Document predefine __HAVE_SPECULATION_SAFE_VALUE.
95         * doc/extend.texi: Document __builtin_speculation_safe_value.
96         * doc/md.texi: Document "speculation_barrier" pattern.
97         * doc/tm.texi.in: Pull in TARGET_SPECULATION_SAFE_VALUE and
98         TARGET_HAVE_SPECULATION_SAFE_VALUE.
99         * doc/tm.texi: Regenerated.
100         * target.def (have_speculation_safe_value, speculation_safe_value): New
101         hooks.
102         * targhooks.c (default_have_speculation_safe_value): New function.
103         (default_speculation_safe_value): New function.
104         * targhooks.h (default_have_speculation_safe_value): Add prototype.
105         (default_speculation_safe_value): Add prototype.
106
107 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
108
109         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
110         Emit CBNZ inside loop when doing a strong exchange and comparing
111         against zero.  Generate the CC flags after the loop.
112
113 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
114
115         PR rtl-optimization/68664
116         * config/arm/arm.c (arm_sched_can_speculate_insn):
117         New function.  Declare prototype.
118         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
119
120 2016-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
121
122         * config/aarch64/aarch64.c: Delete inclusion of
123         cortex-a57-fma-steering.h.
124         (aarch64_override_options): Delete call
125         to aarch64_register_fma_steering.
126         * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
127         * config/aarch64/cortex-a57-fma-steering.h: Delete.
128         * config/aarch64/aarch64-passes.def: New file.
129         * config/aarch64/cortex-a57-fma-steering.c
130         (aarch64_register_fma_steering): Delete definition.
131         (make_pass_fma_steering): Remove static qualifier.
132         * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
133         (cortex-a57-fma-steering.o): Remove dependency on
134         cortex-a57-fma-steering.h.
135
136 2017-07-06  Vyacheslav Barinov  <v.barinov@samsung.com>
137
138         * tree.def: Add STATEMENT_LIST_END tree code.
139         * tree.c: Add STATEMENT_LIST_END handling as TS_COMMON.
140         * gimplify.c (gimplify_expr): Use STATEMENT_LIST_END location to
141         provide right information for try_finally_expr.
142         * tree-eh.c (lower_try_finally_onedest): Set finally location
143         accordingly to location of last statement in cleanup.
144         * gimple.c (DEFTREECODE): handle STATEMENT_LIST_END as appropriate
145         GIMPLE_SINGLE_RHS.
146         * cp/constraint.cc (check_function_concept): Handle concept
147         definitions with STATEMENT_LIST_END.
148         * cp/error.c (dump_expr): Add STATEMENT_LIST_END support.
149         * fold-const.c (operand_equal_p): Add STATEMENT_LIST_END support.
150         * c-family/c-semantics.c (pop_stmt_list): Support single-statement
151         lists extraction with STATEMENT_LIST_END in the end.
152
153 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
154
155         * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
156         BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
157
158 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
159
160         * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
161         * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
162         ASAN_STACK_MAGIC_MIDDLE.
163         (asan_global_struct): Increase the size of fields.
164         (asan_add_global): Add new field constructor.
165
166 2017-06-27  Jakub Jelinek  <jakub@redhat.com>
167
168         PR sanitizer/81209
169         * ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.
170
171 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
172
173         Backported from mainline
174         2017-06-20  Jakub Jelinek  <jakub@redhat.com>
175
176         PR sanitizer/81125
177         * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
178         by removing enum keyword.
179         (ubsan_type_descriptor): Likewise.  Formatting fix.
180
181         2017-06-19  Jakub Jelinek  <jakub@redhat.com>
182
183         PR sanitizer/81125
184         * ubsan.h (enum ubsan_encode_value_phase): New.
185         (ubsan_encode_value): Change second argument to
186         enum ubsan_encode_value_phase with default value of
187         UBSAN_ENCODE_VALUE_GENERIC.
188         * ubsan.c (ubsan_encode_value): Change second argument to
189         enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
190         adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
191         create_tmp_var_raw instead of create_tmp_var and use a
192         TARGET_EXPR.
193         (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
194         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
195         ubsan_encode_value callers.
196
197         PR sanitizer/81111
198         * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
199         use create_tmp_var_raw instead of create_tmp_var, mark it addressable
200         just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
201
202
203 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
204
205         PR sanitizer/80414
206         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
207         to ubsan_encode_value.
208
209 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
210
211         PR sanitizer/79897
212         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
213         temporary.
214
215 2017-02-03  Carl Love  <cel@us.ibm.com>
216
217         Backport of two commits from mainline, r244943 and r244904,
218         dated 017-01-26 and 2017-01-25 respectively
219
220         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
221         of entries for ALTIVEC_BUILTIN_VEC_PACKS.  Remove bogus entries
222         for P8V_BUILTIN_VEC_VGBBD.
223
224 2017-02-03  Walter Lee  <walt@tilera.com>
225
226         Backport from mainline
227         2017-02-03  Walter Lee  <walt@tilera.com>
228
229         PR target/78862
230         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
231         after initial stackframe link reg save.
232         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
233
234 2017-02-03  Maxim Ostapenko  <m.ostapenko@samsung.com>
235
236         PR lto/79061
237         * asan.c (asan_add_global): Force has_dynamic_init to zero in LTO mode.
238
239 2017-01-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
240
241         Backport from mainline
242         2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
243
244         PR target/79268
245         * config/rs6000/altivec.h (vec_xl): Revise #define.
246         (vec_xst): Likewise.
247
248 2017-01-26  Eric Botcazou  <ebotcazou@adacore.com>
249
250         Backport from mainline
251         2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
252
253         * expr.c (store_field): In the bitfield case, fetch the return value
254         from the registers before applying a single big-endian adjustment.
255         Always do a final load for a BLKmode value not larger than a word.
256
257         2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
258
259         * expr.c (store_field): In the bitfield case, if the value comes from
260         a function call and is of an aggregate type returned in registers, do
261         not modify the field mode; extract the value in all cases if the mode
262         is BLKmode and the size is not larger than a word.
263
264 2017-01-26  Richard Biener  <rguenther@suse.de>
265
266         * tree-vrp.c (vrp_visit_assignment_or_call): Use set_defs_to_varying.
267
268         Backport from mainline
269         2016-01-10  Richard Biener  <rguenther@suse.de>
270
271         PR tree-optimization/79034
272         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
273         Propagate out degenerate PHIs in the joiner.
274
275         2016-12-13  Richard Biener  <rguenther@suse.de>
276
277         PR middle-end/78742
278         * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
279         * tree-object-size.c (compute_builtin_object_size): Use
280         tree_fits_shwi_p.
281         * tree-data-ref.c (initialize_matrix_A): Remove excess assert.
282
283 2017-01-26  Richard Biener  <rguenther@suse.de>
284
285         Backport from mainline
286         2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
287
288         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
289
290 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
291
292         PR target/77439
293         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
294         for long calls with APCS frame and VFP.
295
296 2017-01-24  Uros Bizjak  <ubizjak@gmail.com>
297
298         PR target/78478
299         Revert:
300         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
301
302         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
303
304 2017-01-23  Martin Liska  <mliska@suse.cz>
305
306         Backport from mainline
307         2017-01-20  Martin Liska  <mliska@suse.cz>
308
309         PR lto/69188
310         * tree-profile.c (init_ic_make_global_vars): Do not call
311         finalize_decl.
312         (gimple_init_gcov_profiler): Likewise.
313
314 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
315
316         Backport from mainline
317         2016-12-29  Gerald Pfeifer  <gerald@pfeifer.com>
318
319         * doc/extend.texi (Cilk Plus Builtins): cilkplus.org now uses
320         https by default.
321         * doc/passes.texi (Cilk Plus Transformation): Ditto.
322         * doc/generic.texi (Statements for C++): Ditto, and use @uref.
323
324 2017-01-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
325
326         Backport from mainline
327         2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
328
329         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
330         UNSPEC_VSX__XXSPLTD to require special splat handling.
331
332 2017-01-20  Wilco Dijkstra  <wdijkstr@arm.com>
333
334         Backport from mainline
335         PR target/77455
336         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
337         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
338         (EH_RETURN_HANDLER_RTX): New define.
339         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
340         Force frame pointer in EH return functions.
341         (aarch64_expand_epilogue): Add barrier for eh_return.
342         (aarch64_final_eh_return_addr): Remove.
343         (aarch64_eh_return_handler_rtx): New function.
344         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
345         Remove.
346         (aarch64_eh_return_handler_rtx): New prototype.
347
348 2017-01-20  Richard Earnshaw  <rearnsha@arm.com>
349
350         Backported from mainline
351         2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
352
353         PR rtl-optimization/79121
354         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
355         of the inner type when shifting an extended value.
356
357 2017-01-20  Martin Liska  <mliska@suse.cz>
358
359         Backport from mainline
360         2017-01-13  Martin Liska  <mliska@suse.cz>
361
362         PR ipa/79043
363         * function.c (set_cfun): Add new argument force.
364         * function.h (set_cfun): Likewise.
365         * ipa-inline-transform.c (inline_call): Use the function when
366         strict alising from is dropped for function we inline to.
367
368 2017-01-20  Martin Liska  <mliska@suse.cz>
369
370         Backport from mainline
371         2017-01-17  Martin Liska  <mliska@suse.cz>
372
373         PR ipa/71207
374         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
375         assumption and add comment.
376
377 2017-01-19  Richard Biener  <rguenther@suse.de>
378
379         PR tree-optimization/72488
380         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
381         sure to restore SSA info.
382
383 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
384
385         PR debug/78839
386         * dwarf2out.c (field_byte_offset): Restore the
387         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
388         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
389         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
390         of build2 + fold.
391
392 2017-01-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
393
394         Backport from mainline
395         2016-12-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
396
397         PR rtl-optimization/78617
398         * lra-remat.c (do_remat): Initialize live_hard_regs from live in
399         registers, also setting hard registers mapped to pseudo registers.
400
401 2017-01-13  Christophe Lyon  <christophe.lyon@linaro.org>
402
403         Backport from mainline r244320.
404         2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
405
406         PR target/78253
407         * config/arm/arm.c (legitimize_pic_address): Handle reference to
408         weak symbol.
409         (arm_assemble_integer): Likewise.
410
411 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
412
413         Backport from mainline
414         2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
415
416         PR target/79044
417         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
418         element-reversing loads and stores as not swappable.
419
420 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
421
422         * config/i386/i386.c (memory_address_length): Increase len
423         only when rip_relative_addr_p returns false.
424
425 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
426
427         Backport from mainline
428         2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
429
430         PR lto/79042
431         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
432         bit.
433         (input_varpool_node): Unpack dynamically_initialized bit.
434         * lto-streamer.h (LTO_minor_version): Bump version.
435
436 2017-01-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
437
438         Backport from mainline
439         2016-12-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
440
441         PR target/78900
442         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
443         assertions.  Add support for doing the signbit if the IEEE 128-bit
444         floating point value is in a GPR.
445         * config/rs6000/rs6000.md (Fsignbit): Delete.
446         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
447         Update the length attribute if the value is in a GPR.
448         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
449         the sign or zero extension instruction, since the value is always
450         0/1.
451         (signbit<mode>2_dm2): Delete using <Fsignbit>.
452
453 2017-01-10  Martin Liska  <mliska@suse.cz>
454
455         Backport from mainline
456         2017-01-09  Martin Liska  <mliska@suse.cz>
457
458         PR pch/78970
459         * gcc.c (driver_handle_option): Handle OPT_E and set
460         have_E.
461         (lookup_compiler): Do not show error message with have_E.
462
463 2017-01-10  Martin Liska  <mliska@suse.cz>
464
465         Backport from mainline
466         2017-01-05  Martin Liska  <mliska@suse.cz>
467
468         PR pch/78970
469         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
470         header.
471
472 2017-01-10  Thomas Schwinge  <thomas@codesourcery.com>
473
474         PR tree-optimization/78024
475         * omp-low.c (oacc_loop_discovery): Call clear_bb_flags.
476
477         Backport trunk r239086:
478         2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
479
480         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
481         size to DImode boundary.
482         (nvptx_propagate): Likewise.
483
484 2017-01-10  Chung-Ju Wu  <jasonwucj@gmail.com>
485
486         Backport from mainline
487         2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
488
489         PR target/70668
490         * config/nds32/nds32.md (casesi): Don't access the operands array
491         out of bounds.
492
493 2017-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
494
495         Backport from mainline
496         2016-10-10  Andreas Tobler  <andreast@gcc.gnu.org>
497
498         * config.gcc: Add aarch64-*-freebsd* support.
499         * config.host: Likewise.
500         * config/aarch64/aarch64-freebsd.h: New file.
501         * config/aarch64/t-aarch64-freebsd: Ditto.
502
503 2017-01-09  Bill Seurer  <seurer@linux.vnet.ibm.com>
504
505         Backport from mainline
506         2016-12-21  Bill Seurer  <seurer@linux.vnet.ibm.com>
507
508         PR sanitizer/65479
509         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
510         -fasynchronous-unwind-tables option when -fsanitize=address is
511         specified.
512
513 2017-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
514
515         Backport from mainline
516         2016-09-19  Richard Biener  <rguenther@suse.de>
517
518         * dwarf2out.c (dwarf2out_late_global_decl): When being during the
519         early debug phase do not add locations but only const value
520         attributes.
521
522         Backport from mainline
523         2016-10-20  Richard Biener  <rguenther@suse.de>
524
525         * cgraphunit.c (analyze_functions): Set node->definition to
526         false to signal symbol removal to debug_hooks->late_global_decl.
527
528 2017-01-09  Andre Vieira <andre.simoesdiasvieira@arm.com>
529
530         Backport from mainline
531         2016-12-09  Andre Vieira <andre.simoesdiasvieira@arm.com>
532
533         PR rtl-optimization/78255
534         * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
535         NO_FUNCTION_CSE is true.
536
537 2017-01-06  Wilco Dijkstra  <wdijkstr@arm.com>
538
539         Backport from mainline
540         2016-10-25  Wilco Dijkstra  <wdijkstr@arm.com>
541
542         PR target/78041
543         * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
544         Remove partial overlap check for shift by 1.
545         (ashldi3_neon): Likewise.
546
547 2017-01-05  Kelvin Nilsen  <kelvin@gcc.gnu.org>
548
549         Backport from mainline
550         2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
551
552         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
553         comments to explain why certain error messages make mention of
554         undocumented options.
555         (rs6000_invalid_builtin): Change error messages to replace mention
556         of undocumented options with mention of the -mcpu=power9 option
557         that enables those undocumented options.
558         * config/rs6000/rs6000.h: Add macro definition of MASK_FLOAT128
559         and change the macro definition of RS6000_BTM_FLOAT128 to correct
560         an error that was discovered during the development of this patch.
561         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
562         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
563         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
564         descriptions of built-in functions so that they depend on
565         -mcpu=power9 instead of on the corresponding undocumented flags.
566         * doc/invoke.texi (Option Summary):  Remove all mention of newly
567         undocumented flags.
568         (IBM RS/6000 and PowerPC Options): Likewise.
569         * doc/md.texi (Constraints for Particuliar Machines): Remove all
570         mention of newly undocumented flags.
571
572 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
573
574         Backport from mainline
575         2016-12-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
576
577         * varasm.c (build_constant_desc): Use the alignment of the var
578         decl instead of the original expression.
579
580 2017-01-04  Richard Biener  <rguenther@suse.de>
581
582         Backport from mainline
583         2016-05-11  Richard Biener  <rguenther@suse.de>
584
585         PR tree-optimization/71055
586         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
587         sth with precision not equal to access size verify we don't chop
588         off bits.
589
590 2017-01-03  Martin Liska  <mliska@suse.cz>
591
592         Backport from mainline
593         2016-12-21  Jakub Jelinek  <jakub@redhat.com>
594                     Martin Liska  <mliska@suse.cz>
595
596         PR driver/78863
597         * gcc.c (driver::build_option_suggestions): Do not add
598         -fsanitize=all as a suggestion candidate.
599
600 2017-01-03  Martin Liska  <mliska@suse.cz>
601
602         Backport from mainline
603         2016-12-22  Martin Liska  <mliska@suse.cz>
604
605         PR tree-optimization/78886
606         * tree-ssa-strlen.c (handle_builtin_malloc): Return when LHS
607         is equal to NULL.
608
609 2017-01-03  Martin Liska  <mliska@suse.cz>
610
611         Backport from mainline
612         2016-12-13  Martin Liska  <mliska@suse.cz>
613
614         PR tree-optimization/78428
615         * expr.c (store_constructor_field): Add new arguments to the
616         function.
617         (store_constructor): Set up bitregion_end and add
618         gcc_unreachable to fields that have either non-constant size
619         or (and) offset.
620
621 2016-12-27  Jakub Jelinek  <jakub@redhat.com>
622
623         PR translation/78922
624         * config/i386/stringop.opt: Remove.
625
626 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
627
628         Backported from mainline
629         2016-12-13  Jakub Jelinek  <jakub@redhat.com>
630
631         PR ipa/77905
632         * ipa-pure-const.c (cdtor_p): Return true for
633         DECL_STATIC_{CON,DE}STRUCTOR even when it is
634         DECL_LOOPING_CONST_OR_PURE_P.
635
636 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
637
638         * BASE-VER: Set to 6.3.1.
639
640 2016-12-21  Release Manager
641
642         * GCC 6.3.0 released.
643
644 2016-12-14  Uros Bizjak  <ubizjak@gmail.com>
645
646         PR target/59874
647         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_CLZS
648         and IX86_BUILTIN_CTZS.
649         (bdesc_args): Add __builtin_clzs and __builtin_ctzs.
650         (ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
651
652 2016-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
653             Jakub Jelinek  <jakub@redhat.com>
654
655         PR target/78796
656         * config/aarch64/aarch64.c (aarch64_classify_symbol): Merge large
657         model checks into switch.
658
659 2016-12-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
660
661         Backport from mainline
662         2016-11-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
663
664         * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
665
666 2016-12-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
667
668         Backport from mainline
669         2016-11-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
670
671         PR tree-optimization/77673
672         * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
673         (init_symbolic_number): Initialize src field from src parameter.
674         (perform_symbolic_merge): Select most dominated statement as the
675         source statement.  Set src field of resulting n structure from the
676         input src with the lowest address.
677         (find_bswap_or_nop): Rename source_stmt into ins_stmt.
678         (bswap_replace): Rename src_stmt into ins_stmt.  Initially get source
679         of load from src field rather than insertion statement.  Cancel
680         optimization if statement analyzed is not dominated by the insertion
681         statement.
682         (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt.  Compute
683         dominance information.
684
685 2016-12-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
686
687         Backport from mainline
688         2016-12-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
689
690         PR target/72717
691         * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
692         V2DImode elements are SUBREG's convert the result into DImode
693         rather than failing in emit_move_insn.
694
695 2016-12-13  Iain Sandoe  <iain@codesourcery.com>
696
697         Backport from mainline
698         2016-12-11  Iain Sandoe  <iain@codesourcery.com>
699
700         PR rtl-optimization/71496
701         * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
702         copyable.  (load_macho_picbase_di, reload_macho_picbase_si,
703         reload_macho_picbase_di): Likewise.
704
705 2016-12-12  Bernd Schmidt  <bschmidt@redhat.com>
706
707         Backport from mainline
708         2016-11-07  Bernd Schmidt  <bschmidt@redhat.com>
709
710         PR rtl-optimization/77309
711         * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
712         don't assume an equality comparison for plain COMPARE.
713         (simplify_comparison): Pass a more accurate code to
714         make_compound_operation.
715
716 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
717
718         Backport from mainline
719         2016-11-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
720
721         PR target/77904
722         * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
723         in save register mask if it is needed.
724
725 2016-12-11  Iain Sandoe  <iain@codesourcery.com>
726
727         Backport from mainline
728         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
729                     Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
730
731         PR target/67710
732         * config.in: Regenerate
733         * config/darwin-driver.c (darwin_driver_init): Emit a version string
734         for the assembler.
735         * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
736         * config/darwin.opt(asm_macosx_version_min): New.
737         * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
738         * configure: Regenerate
739         * configure.ac: Check for mmacosx-version-min handling.
740
741 2016-12-11  Iain Sandoe  <iain@codesourcery.com>
742
743         Backport from mainline
744         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
745
746         PR target/57438
747         * config/i386/i386.c (ix86_code_end): Note that we emitted code
748         where the function might otherwise appear empty for picbase thunks.
749         (ix86_output_function_epilogue): If we find a zero-sized function
750         assume that reaching it is UB and trap.  If we find a trailing label
751         append a nop.
752         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
753         find a zero-sized function assume that reaching it is UB and trap.
754         If we find a trailing label, append a nop.
755
756 2016-12-11 Iain Sandoe  <iain@codesourcery.com>
757
758         Backport from mainline
759         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
760
761         PR target/71767
762         * config/darwin-sections.def (picbase_thunk_section): New.
763         * config/darwin.c (darwin_init_sections): Set up picbase thunk
764         section. (darwin_rodata_section, darwin_objc2_section,
765         machopic_select_section, darwin_asm_declare_constant_name,
766         darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
767         coalesced with newer linkers.
768         (darwin_override_options): Decide on usage of coalesed sections
769         on the basis of the target linker version.
770         * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
771         * config/darwin.opt  (mtarget-linker): New.
772         * config/i386/i386.c (ix86_code_end): Do not force the thunks into
773         a coalesced section, instead use a thunks section.
774
775         Backport from mainline
776         2016-11-28  Iain Sandoe  <iain@codesourcery.com>
777
778         PR target/71767
779         * configure.ac (with_ld64): Use portable method to extract the
780         major part of the version number.
781         * configure: Regenerated.
782
783         Backport from mainline
784         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
785
786         PR target/71767
787         * configure.ac (with-ld64): New var, set for Darwin, set on
788         detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
789         * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New,
790         define.
791         * config/darwin10.h(DEF_LD64): Update for this target version.
792         * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic
793         test.  (DEF_LD64): Update for this target version.
794         * configure: Regenerated.
795         * config.in: Regenerated.
796
797         Backport from mainline
798         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
799
800         PR target/71767
801         * config/darwin.c (imachopic_indirection_name): Make data
802         section indirections linker-visible.
803         * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
804         constant labels linker-visible.
805
806 2016-12-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
807
808         Backport from mainline
809         2016-11-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
810
811         PR target/77933
812         * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
813         being live in the function and lr needing to be saved.  Distinguish
814         between already saved pushable registers and registers to push.
815         Check for LR being an available pushable register.
816
817 2016-12-09  Nathan Sidwell  <nathan@acm.org>
818
819         PR C++/78550
820         * convert.c (convert_to_integer_1): Maybe fold conversions to
821         integral types with fewer bits than its mode.
822
823 2016-12-09  Richard Biener  <rguenther@suse.de>
824
825         Backport from mainline
826         2016-11-09  Richard Biener  <rguenther@suse.de>
827
828         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
829         Look at the DR_BASE_ADDRESS object for forcing alignment.
830
831         2016-11-07  Richard Biener  <rguenther@suse.de>
832
833         PR tree-optimization/78189
834         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
835         alignment computation.
836
837 2016-12-09  Richard Biener  <rguenther@suse.de>
838
839         Backport from mainline
840         2016-11-28  Richard Biener  <rguenther@suse.de>
841
842         PR tree-optimization/78542
843         * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
844         if allowed.
845
846         2016-11-23  Richard Biener  <rguenther@suse.de>
847
848         PR tree-optimization/78482
849         * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
850         (remove_forwarder_block_with_phi): When merging with a loop
851         header creates a new latch reset number of iteration information
852         of the loop.
853
854         2016-11-23  Richard Biener  <rguenther@suse.de>
855
856         PR middle-end/71762
857         * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
858         (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
859
860         2016-11-11  Richard Biener  <rguenther@suse.de>
861
862         PR tree-optimization/71575
863         * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
864         bogus assert.
865
866         2016-11-07  Richard Biener  <rguenther@suse.de>
867
868         PR tree-optimization/78224
869         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
870         Split the fallthru edge in case its successor may have PHIs.
871
872         2016-11-05  David Edelsohn  <dje.gcc@gmail.com>
873                 Richard Biener  <rguenther@suse.de>
874
875         PR bootstrap/78188
876         PR c++/71848
877         * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
878
879         2016-09-20  Richard Biener  <rguenther@suse.de>
880
881         PR tree-optimization/77646
882         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
883         a VDEF.
884
885 2016-12-07  Segher Boessenkool  <segher@kernel.crashing.org>
886
887         Backport from mainline
888         2016-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
889
890         PR target/77957
891         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
892         return early if !optional_tbtab.
893
894 2016-12-07  Jakub Jelinek  <jakub@redhat.com>
895
896         Backported from mainline
897         2016-11-28  Jakub Jelinek  <jakub@redhat.com>
898
899         PR middle-end/78540
900         * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
901         * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
902         note has been removed.
903         * postreload.c (reload_combine_recognize_pattern): If
904         remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
905
906         PR rtl-optimization/78546
907         * simplify-rtx.c (neg_const_int): When negating most negative
908         number in mode wider than HOST_BITS_PER_WIDE_INT, use
909         simplify_const_unary_operation to produce CONST_DOUBLE or
910         CONST_WIDE_INT.
911         (simplify_plus_minus): Hanlde the case where neg_const_int
912         doesn't return a CONST_INT.
913
914         PR fortran/78298
915         * tree-nested.c (convert_local_reference_stmt): After adding
916         shared (FRAME.NN) clause to omp parallel, task or target,
917         add it also to all outer omp parallel, task or target constructs.
918
919         2016-11-23  Jakub Jelinek  <jakub@redhat.com>
920
921         PR middle-end/69183
922         * omp-low.c (build_outer_var_ref): Change lastprivate argument
923         to code, pass it recursively, adjust uses.  For OMP_CLAUSE_PRIVATE
924         on worksharing constructs, treat it like clauses on simd construct.
925         Formatting fix.
926         (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
927         OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
928         (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
929         of true as last argument to build_outer_var_ref.
930
931         2016-11-22  Jakub Jelinek  <jakub@redhat.com>
932
933         PR middle-end/78416
934         * expmed.c (expand_divmod): Use wide_int for computation of
935         op1_is_pow2.  Don't set it if op1 is 0.  Formatting fixes.
936         Use size <= HOST_BITS_PER_WIDE_INT instead of
937         HOST_BITS_PER_WIDE_INT >= size.
938
939         2016-11-21  Jakub Jelinek  <jakub@redhat.com>
940
941         PR middle-end/67335
942         * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
943         for tmp simd array if DECL_NAME (parm) is NULL.
944
945         2016-11-18  Jakub Jelinek  <jakub@redhat.com>
946
947         PR middle-end/78419
948         * multiple_target.c (get_attr_len): Start with argnum and increment
949         argnum on every arg.  Use strchr in a loop instead of counting commas
950         manually.
951         (get_attr_str): Increment argnum for every comma in the string.
952         (separate_attrs): Use for instead of while loop, simplify.
953         (expand_target_clones): Rename defenition argument to definition.
954         Free attrs and attr_str even when diagnosing errors.  Temporarily
955         change input_location around targetm.target_option.valid_attribute_p
956         calls.  Don't emit warning or errors if that function fails.
957
958         2016-11-16  Jakub Jelinek  <jakub@redhat.com>
959
960         PR rtl-optimization/78378
961         * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
962         inner only if pos is 0.  Fix up formatting.
963
964         PR fortran/78299
965         * omp-low.c (expand_omp_for_static_nochunk): Don't assert
966         that loop->header == body_bb if broken_loop.
967
968         2016-11-07  Jakub Jelinek  <jakub@redhat.com>
969
970         PR target/77834
971         * dse.c (dse_step5): Call scan_reads even if just
972         insn_info->frame_read.  Improve and fix dump file messages.
973
974         PR target/78227
975         * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
976         cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
977
978         2016-11-04  Jakub Jelinek  <jakub@redhat.com>
979
980         PR target/77834
981         * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
982         doesn't have rtl set.
983
984         2016-10-29  Jakub Jelinek  <jakub@redhat.com>
985
986         PR rtl-optimization/77919
987         * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
988         into memory if both modes are complex and their inner modes have the
989         same precision.  If the two modes are different complex modes, convert
990         each part separately and generate a new CONCAT.
991
992         2016-10-28  Jakub Jelinek  <jakub@redhat.com>
993
994         PR rtl-optimization/77919
995         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
996         MEM if mode1 is not a complex mode.
997
998         2016-10-27  Jakub Jelinek  <jakub@redhat.com>
999
1000         PR middle-end/78025
1001         * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
1002         functions.
1003
1004         2016-10-26  Jakub Jelinek  <jakub@redhat.com>
1005                     Martin Liska  <mliska@suse.cz>
1006
1007         PR fortran/77973
1008         * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
1009         clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
1010         on outer context if any.
1011
1012         2016-10-05  Jakub Jelinek  <jakub@redhat.com>
1013
1014         PR sanitizer/66343
1015         * ubsan.c (ubsan_ids): New GTY(()) array.
1016         (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
1017         instead of static local counters.
1018
1019         2016-09-22  Jakub Jelinek  <jakub@redhat.com>
1020
1021         PR fortran/77665
1022         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
1023         for all IFN_GOMP_SIMD_* internal fns, not just for
1024         IFN_GOMP_SIMD_ORDERED_*.
1025
1026         2016-09-20  Jakub Jelinek  <jakub@redhat.com>
1027
1028         PR middle-end/77624
1029         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
1030         cast to void * if the cast is from some other pointer type.
1031
1032         2016-09-19  Jakub Jelinek  <jakub@redhat.com>
1033                     Jan Hubicka  <jh@suse.cz>
1034
1035         PR target/77587
1036         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
1037         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
1038         Call ultimate_alias_target just once, not up to 4 times.
1039
1040 2016-12-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1041
1042         Backport from mainline
1043         2016-11-16  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1044
1045         * config/arm/arm.md (arm_addsi3): Add alternative for addition of
1046         general register with general register or ARM constant into SP
1047         register.
1048
1049 2016-12-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1050
1051         Backport from mainline
1052         2016-12-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1053                     Stefan Freudenberger  <stefan@reservoir.com>
1054
1055         PR tree-optimization/78646
1056         * gimple-ssa-strength-reduction.c (replace_ref): The pointer
1057         addition used for the memory base expression should have the type
1058         of the candidate.
1059
1060 2016-12-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1061
1062         Backport from mainline
1063         2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1064                     Michael Meissner  <meissner@linux.vnet.ibm.com>
1065
1066         PR target/72827
1067         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
1068         reg+reg addressing for TImode.
1069         (rs6000_legitimate_address_p): Only allow register indirect
1070         addressing for TImode, even without TARGET_QUAD_MEMORY.
1071
1072 2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1073
1074         Backport from mainline
1075         2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1076
1077         * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
1078         (CCVHUANY): Remove modes.
1079         (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
1080         documentation.
1081         * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
1082         (s390_expand_vec_compare_scalar): Pick one of the cc consumer
1083         modes.
1084         (s390_branch_condition_mask): Adjust to use the new cc consumer
1085         modes.  The new modes allow for proper reversal in the middle-end.
1086         (s390_expand_vec_compare_cc): Determine the proper cc producer and
1087         consumer modes for a comparison.
1088         * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
1089         throughout the file.
1090         * config/s390/vx-builtins.md: Likewise.
1091
1092 2016-12-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1093
1094         Backport from mainline
1095         2016-12-01  Alan Modra  <amodra@gmail.com>
1096
1097         * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
1098         look inside UNSPEC_VSX_XXSPLTW vec.
1099
1100 2016-12-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
1101
1102         Back port from trunk
1103         2016-11-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
1104
1105         PR target/78101
1106         * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
1107         the appropriate checks for SFmode/DFmode load/stores in GPR
1108         registers.
1109         (fusion_addis_mem_combo_store): Likewise.
1110         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
1111         fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
1112         d-form instructions for traditional Altivec registers.
1113         (emit_fusion_p9_load): Likewise.
1114         (emit_fusion_p9_store): Likewise.
1115         * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
1116         early clobber from scratch register.  Do not match if the register
1117         being stored is the scratch register.
1118         (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
1119         to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
1120         instructions for traditional Altivec registers.
1121         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
1122         (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1123         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1124
1125 2016-12-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1126
1127         Backport from mainline
1128         2016-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1129
1130         PR target/48863
1131         PR inline-asm/70184
1132         * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
1133         (new_temp_expr_table): Initialise reg_vars_cnt.
1134         (free_temp_expr_table): Release reg_vars_cnt.
1135         (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
1136         field of TAB.
1137         (find_replaceable_in_bb): Use the above to record register variable
1138         write occurrences and cancel replacement across them.
1139
1140 2016-11-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1141
1142         Backported from mainline
1143         2016-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>
1144
1145         PR target/78426
1146         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
1147         instead of force_reg.
1148         (sh_expand_setmem): Likewise.
1149
1150 2016-11-24  Eric Botcazou  <ebotcazou@adacore.com>
1151
1152         PR middle-end/78429
1153         * tree.h (wi::fits_to_boolean_p): New predicate.
1154         (wi::fits_to_tree_p): Use it for boolean types.
1155         * tree.c (int_fits_type_p): Likewise.
1156
1157 2016-11-24  Martin Liska  <mliska@suse.cz>
1158
1159         Backported from mainline
1160         2016-11-22  Martin Liska  <mliska@suse.cz>
1161
1162         PR ipa/78309
1163         * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
1164         (sem_function::get_hash): Use the new field.
1165         (sem_function::parse): Remove an argument from ctor.
1166         (sem_variable::parse): Likewise.
1167         (sem_variable::get_hash): Use the new field.
1168         (sem_item_optimizer::read_section): Use new ctor and set hash.
1169         * ipa-icf.h: _hash is removed from sem_item::sem_item,
1170         sem_variable::sem_variable, sem_function::sem_function.
1171
1172 2016-11-23  Uros Bizjak  <ubizjak@gmail.com>
1173
1174         * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
1175         (kxnor<mode>): Return "#" for alternative 0.
1176
1177 2016-11-23  Richard Biener  <rguenther@suse.de>
1178
1179         Backport from mainline
1180         2016-11-23  Richard Biener  <rguenther@suse.de>
1181
1182         PR lto/78472
1183         * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
1184         fields.
1185
1186         2016-11-17  Richard Biener  <rguenther@suse.de>
1187
1188         PR middle-end/78305
1189         * fold-const.c (negate_expr_p): Fix multiplication case.
1190
1191         2016-11-16  Richard Biener  <rguenther@suse.de>
1192
1193         PR middle-end/78333
1194         * gimplify.c (gimplify_function_tree): Do not instrument
1195         GNU extern inline functions.
1196
1197         2016-11-07  Richard Biener  <rguenther@suse.de>
1198
1199         PR tree-optimization/78228
1200         * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
1201         undefined behavior.
1202
1203         2016-11-04  Richard Biener  <rguenther@suse.de>
1204
1205         PR middle-end/78185
1206         * loop-invariant.c (find_exits): Record entering inner
1207         loops as possibly exiting to handle infinite sub-loops.
1208         * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
1209         (fill_always_executed_in_1): Honor infinite child loops.
1210
1211         2016-10-06  Richard Biener  <rguenther@suse.de>
1212
1213         PR tree-optimization/77855
1214         * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
1215         instead of removing the current item while iterating over the set
1216         which is not safe.
1217
1218 2016-11-22  Walter Lee  <walt@tilera.com>
1219
1220         Backport from mainline
1221         2016-11-22  Walter Lee  <walt@tilera.com>
1222
1223         * config/tilegx/tilegx.md (trap): New pattern.
1224         * config/tilepro/tilepro.md (trap): Likewise.
1225
1226 2016-11-22  Walter Lee  <walt@tilera.com>
1227
1228         Backport from mainline
1229         2016-11-22  Walter Lee  <walt@tilera.com>
1230
1231         * config/tilegx/tilegx.md (*zero_extract): Use
1232         define_insn_and_split instead of define_insn; Handle pos + size >
1233         64.
1234         (*sign_extract): Likewise.
1235
1236 2016-11-22  Uros Bizjak  <ubizjak@gmail.com>
1237
1238         * Makefile.in ($(lang_checks_parallelized)): Fix detection
1239         of -j argument.
1240
1241 2016-11-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1242
1243         Backport from mainline
1244         2016-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1245
1246         PR target/77822
1247         * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
1248         aarch64_simd_shift_imm_<mode> predicate for operand 1.
1249         (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
1250         to restrict them to an appropriate range and add FAIL check if the
1251         region they specify is out of range.  Delete useless constraint
1252         strings.
1253         (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
1254         2 and 3 to restrict their range and add pattern predicate.
1255
1256 2016-11-18  Walter Lee  <walt@tilera.com>
1257
1258         Backport from mainline
1259         2016-11-18  Walter Lee  <walt@tilera.com>
1260
1261         * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
1262           end-of-bundle marker for consecutive barriers.
1263
1264 2016-11-18  Walter Lee  <walt@tilera.com>
1265
1266         Backport from mainline
1267         2016-11-18  Walter Lee  <walt@tilera.com>
1268
1269         * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
1270
1271 2016-11-15  Matthias Klose  <doko@ubuntu.com>
1272
1273         * doc/install.texi: Move the 'Overriding configure test results'
1274         subsub section to the 'Cross-Compiler-Specific Options' sub section.
1275
1276 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
1277
1278         * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
1279         original function needs a static chain.
1280
1281 2016-11-11  Uros Bizjak  <ubizjak@gmail.com>
1282
1283         PR target/78310
1284         * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
1285         when calculating operand 2.
1286         (rotate to rotatex zext splitter): Ditto.
1287
1288 2016-11-11  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1289
1290         PR target/77822
1291         * config/s390/s390.md ("extzv", "*extzv<mode>_zEC12")
1292         ("*extzv<mode>_z10"): Check validity of zero_extend arguments.
1293
1294 2016-11-09  Uros Bizjak  <ubizjak@gmail.com>
1295
1296         PR target/78262
1297         * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
1298         operand 0 as earlyclobber.
1299         (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
1300
1301 2016-11-07  Peter Bergner  <bergner@vnet.ibm.com>
1302
1303         Backport from trunk
1304         2016-11-07  Peter Bergner  <bergner@vnet.ibm.com>
1305
1306         * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
1307         INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
1308
1309 2016-11-06  Jack Howarth  <howarth.at.gcc@gmail.com>
1310
1311         PR driver/78206
1312         * incpath.c: (remove_dup(): Also silently ignore EPERM.
1313
1314 2016-11-07  Richard Biener  <rguenther@suse.de>
1315
1316         PR target/78229
1317         * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
1318         EH info.
1319
1320 2016-11-03  Martin Liska  <mliska@suse.cz>
1321
1322         Backport from mainline
1323         2016-08-12  Martin Liska  <mliska@suse.cz>
1324         Adam Fineman  <afineman@afineman.com>
1325
1326         * gcov.c (process_file): Create .gcov file when .gcda
1327         file is missing.
1328
1329 2016-11-03  Richard Biener  <rguenther@suse.de>
1330
1331         Backport from mainline
1332         2016-09-29  Richard Biener  <rguenther@suse.de>
1333
1334         PR tree-optimization/77768
1335         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
1336         with stores to a place we know has a constant value.
1337         * tree-vrp.c (set_defs_to_varying): New helper avoiding
1338         writing to vr_const_varying.
1339         (vrp_initialize): Call it.
1340         (vrp_visit_stmt): Likewise.
1341         (evrp_dom_walker::before_dom_children): Likewise.
1342         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1343         Handle stores to readonly memory when removing redundant stores.
1344
1345 2016-11-03  Eric Botcazou  <ebotcazou@adacore.com>
1346
1347         Backport from mainline
1348         2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1349
1350         * explow.c (validize_mem): Do not modify the argument in-place.
1351
1352 2016-11-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
1353
1354         Backport from trunk
1355         2016-10-26  Will Schmidt <will_schmidt@vnet.ibm.com>
1356
1357         PR middle-end/72747
1358         * gimplify.c (gimplify_init_constructor): Move emit of constructor
1359         assignment to earlier in the if/else logic.
1360
1361 2016-11-02  Richard Biener  <rguenther@suse.de>
1362
1363         Backport from mainline
1364         2016-11-02  Richard Biener  <rguenther@suse.de>
1365
1366         PR tree-optimization/78047
1367         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
1368         fake field at offset zero conservatively regarding to may_have_pointers.
1369
1370         2016-10-07  Richard Biener  <rguenther@suse.de>
1371
1372         PR tree-optimization/77879
1373         * tree-ssa-structalias.c (handle_const_call): Properly handle
1374         NRV return slots.
1375         (handle_pure_call): Likewise.
1376
1377         2016-10-06  Richard Biener  <rguenther@suse.de>
1378
1379         PR tree-optimization/77839
1380         * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
1381         lattice transition.
1382
1383         2016-09-27  Richard Biener  <rguenther@suse.de>
1384
1385         PR tree-optimization/77745
1386         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1387         When removing redundant stores make sure to check compatibility
1388         of the TBAA state for downstream accesses.
1389         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
1390         value-numbering virtual operands for store matches.
1391
1392         2016-09-21  Richard Biener  <rguenther@suse.de>
1393
1394         PR tree-optimization/77648
1395         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
1396         with complex RHS.
1397         (make_transitive_closure_constraints): Adjust comment.
1398         (make_any_offset_constraints): New function.
1399         (handle_rhs_call): Make sure to first expand a pointer to all
1400         subfields before transitively closing it.
1401         (handle_const_call): Likewise.  Properly expand returned
1402         pointers as well.
1403         (handle_pure_call): Likewise.
1404
1405 2016-11-01  John David Anglin  <danglin@gcc.gnu.org>
1406
1407         PR target/78166
1408         * config/pa/pa.md: Add new shift/add patterns to handle
1409         (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
1410
1411 2016-11-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1412
1413         Backport from mainline
1414         2016-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1415
1416         PR rtl-optimization/78038
1417         * ree.c (get_defs): Return NULL if a defining insn for REG cannot
1418         be deduced to set REG through the RTL structure.
1419         (make_defs_and_copies_lists): Return false on a failing get_defs call.
1420
1421 2016-10-29  John David Anglin  <danglin@gcc.gnu.org>
1422
1423         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
1424         (MALLOC_ABI_ALIGNMENT): Define.
1425
1426 2016-10-28  Richard Biener  <rguenther@suse.de>
1427
1428         PR middle-end/78128
1429         PR middle-end/71002
1430         * fold-const.c (make_bit_field_ref): Only adjust alias set
1431         when the original alias set was zero.
1432
1433 2016-10-26  Uros Bizjak  <ubizjak@gmail.com>
1434
1435         Backport from mainline
1436         2016-10-21  Jakub Jelinek  <jakub@redhat.com>
1437
1438         PR target/78057
1439         * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
1440         and tree-ssanames.h.
1441         (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
1442         with INTEGER_CST argument.
1443         (ix86_gimple_fold_builtin): New function.
1444         (TARGET_GIMPLE_FOLD_BUILTIN): Define.
1445
1446         Backport from mainline
1447         2016-10-20 Uros Bizjak  <ubizjak@gmail.com>
1448
1449         PR target/78037
1450         * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
1451         (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
1452         (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
1453         * config/i386/lzcntintrin.h (__lzcnt_u16): Call
1454         __builtin_ia32_lzcnt_u16.
1455         (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
1456         (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
1457         * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
1458         (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
1459         (bmi_tzcnt_<mode>): New expander.
1460         (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
1461         (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
1462         (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
1463         (lzcnt_<mode>): New expander.
1464         (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
1465         (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
1466         * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
1467         (UINT64_FTYPE_UINT64): New.
1468         * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
1469         (__builtin_ia32_lzcnt_u16): New description.
1470         (__builtin_ia32_lzcnt_u32): Ditto.
1471         (__builtin_ia32_lzcnt_u64): Ditto.
1472         (__builtin_ctzs): Remove description.
1473         (__builtin_ia32_tzcnt_u16): New description.
1474         (__builtin_ia32_tzcnt_u32): Ditto.
1475         (__builtin_ia32_tzcnt_u64): Ditto.
1476         * config/i386/i386.c (ix86_expand_args_builtin): Handle
1477         UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
1478
1479 2016-10-25  Eric Botcazou  <ebotcazou@adacore.com>
1480
1481         * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
1482         * tree.c (int_fits_type_p): Likewise.  Adjust head comment.
1483
1484 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1485
1486         Backport from mainline
1487         2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1488
1489         PR tree-optimization/77550
1490         * tree-vect-stmts.c (create_array_ref): Change parameters.
1491         (get_group_alias_ptr_type): New function.
1492         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
1493
1494 2016-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1495
1496         Backport from mainline
1497         2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1498
1499         PR tree-optimization/77916
1500         * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
1501         Don't allow a MINUS_EXPR for pointer arithmetic for either known
1502         or unknown strides.
1503         (record_increment): Increments of -1 for unknown strides just use
1504         a multiply initializer like other negative values.
1505         (analyze_increments): Remove stopgap solution for -1 increment
1506         applied to pointer arithmetic.
1507         (insert_initializers): Requirement of initializer for -1 should be
1508         based on pointer-typedness of the candidate basis.
1509
1510 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
1511
1512         * config/sparc/sparc.md (cpu_feature): Minor tweak.
1513         (enabled): Likewise.
1514         (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
1515         movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
1516         sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
1517         mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
1518         <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
1519         fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
1520
1521 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
1522
1523         * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
1524         with TARGET_ARCH64.  Define __VIS to 0x400 if TARGET_VIS4.
1525
1526 2016-10-19  Uros Bizjak  <ubizjak@gmail.com>
1527
1528         PR target/77991
1529         * config/i386/i386.c (legitimize_tls_address)
1530         <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
1531         convert dest to Pmode if different than Pmode.
1532
1533 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
1534
1535         Backport from mainline
1536         2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
1537
1538         * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
1539         copying.
1540
1541 2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1542
1543         Backport from mainline
1544         2016-10-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1545
1546         PR tree-optimization/77937
1547         * gimple-ssa-strength-reduction.c (analyze_increments): Use
1548         POINTER_TYPE_P on the candidate type to determine whether
1549         candidates in this chain require pointer arithmetic.
1550
1551         2016-10-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1552
1553         PR tree-optimization/77937
1554         * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
1555         to infinite when we have a pointer with an increment of -1.
1556
1557 2016-10-17  Martin Liska  <mliska@suse.cz>
1558
1559         Backported from mainline
1560         2016-10-13  Martin Liska  <mliska@suse.cz>
1561
1562         PR tree-optimization/77943
1563         * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
1564         a different EH landing pads.
1565
1566 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1567
1568         PR bootstrap/77995
1569         Backport from mainline
1570         2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
1571
1572         * tree.h (build_complex_type): Add second parameter with default.
1573         * tree.c (build_complex_type): Add NAMED second parameter and adjust
1574         recursive call.  Create a TYPE_DECL only if NAMED is true.
1575         (build_common_tree_nodes): Pass true in calls to build_complex_type.
1576
1577 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
1578
1579         * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
1580         constants in CONST_VECTORs.
1581
1582 2016-10-15  Eric Botcazou  <ebotcazou@adacore.com>
1583
1584         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
1585         register as destination of bmask.
1586         (vector_init_bshuffle): Likewise.
1587         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
1588         (bmaskdi_vis): Enable only in 64-bit mode.
1589
1590 2016-10-13  Andrew Senkevich  <andrew.senkevich@intel.com>
1591
1592         Backport from trunk
1593         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
1594         OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
1595         (ix86_handle_option): Deleted handle of OPT_mpcommit.
1596         * config.gcc: Deleted pcommitintrin.h
1597         * config/i386/pcommitintrin.h: Deleted file.
1598         * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
1599         * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
1600         detection.
1601         * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
1602         __PCOMMIT__.
1603         * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
1604         (PTA_PCOMMIT, IX86_BUILTIN_PCOMMIT, __builtin_ia32_pcommit): Deleted.
1605         (ix86_option_override_internal): Deleted handle of option.
1606         (ix86_valid_target_attribute_inner_p): Deleted pcommit.
1607         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
1608         * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
1609         (pcommit): Deleted instruction.
1610         * config/i386/i386.opt: Mention -mpcommit deprecation.
1611         * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
1612
1613 2016-10-13  Tom de Vries  <tom@codesourcery.com>
1614
1615         revert:
1616         2016-10-11  Tom de Vries  <tom@codesourcery.com>
1617
1618         backport from trunk:
1619         2016-10-11  Tom de Vries  <tom@codesourcery.com>
1620
1621         PR middle-end/77558
1622         * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
1623         special-casing.
1624
1625 2016-10-11  Tom de Vries  <tom@codesourcery.com>
1626
1627         backport from trunk:
1628         2016-10-11  Tom de Vries  <tom@codesourcery.com>
1629
1630         PR middle-end/77558
1631         * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
1632         special-casing.
1633
1634 2016-10-10  Georg-Johann Lay  <avr@gjlay.de>
1635
1636         * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
1637
1638 2016-10-06  Uros Bizjak  <ubizjak@gmail.com>
1639
1640         PR target/77874
1641         * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
1642         Remove wrong assert.
1643         (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
1644         Use <round_constraint> as operand 1 constraint.
1645
1646 2016-10-06  James Clarke  <jrtc27@jrtc27.com>
1647             Eric Botcazou  <ebotcazou@adacore.com>
1648
1649         PR target/77759
1650         * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
1651         (classify_registers): Don't set it
1652         (function_arg_slotno): Don't initialize and test it.  Tidy up.
1653
1654 2016-10-04  Uros Bizjak  <ubizjak@gmail.com>
1655
1656         Backport from mainline
1657         2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
1658
1659         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
1660         ext_level before calling CPUID with 0x80000008.
1661
1662         2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
1663
1664         PR target/77756
1665         * config/i386/cpuid.h (__get_cpuid_count): New.
1666         (__get_cpuid): Rename __level to __leaf.
1667
1668 2016-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
1669
1670         Back port from trunk
1671
1672         2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1673
1674         PR target/77670
1675         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
1676         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
1677         instructions when you want to invert the test.
1678         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
1679         correct order for XXSEL.
1680         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
1681         for using XSCMP{EQ,GT,GE}DP.
1682
1683 2016-09-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1684             Alan Modra  <amodra@gmail.com>
1685
1686         Backport from mainline
1687         2016-07-01  Alan Modra  <amodra@gmail.com>
1688
1689         PR rtl-optimization/71709
1690         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
1691         being set, not referenced.
1692
1693 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
1694
1695         Backport from mainline
1696         2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
1697
1698         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
1699         VAR_DECL string.
1700
1701         2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
1702
1703         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
1704         * configure: Regenerate.
1705
1706 2016-09-27  Richard Biener  <rguenther@suse.de>
1707
1708         Backport from mainline
1709         2016-09-01  Richard Biener  <rguenther@suse.de>
1710
1711         PR middle-end/77436
1712         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
1713         check whether the result fits the desired result type.
1714
1715         2016-09-19  Richard Biener  <rguenther@suse.de>
1716
1717         PR tree-optimization/77514
1718         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
1719         search for folded stmt.
1720
1721         2016-09-15  Richard Biener  <rguenther@suse.de>
1722
1723         PR tree-optimization/77514
1724         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
1725         only forced_stmts sequence.
1726
1727         2016-09-15  Richard Biener  <rguenther@suse.de>
1728
1729         PR middle-end/77544
1730         * fold-const.c (split_tree): Do not split constant ~X.
1731
1732         2016-09-19  Richard Biener  <rguenther@suse.de>
1733
1734         PR middle-end/77605
1735         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
1736         proper niter to bound the loops.
1737
1738         2016-09-22  Richard Biener  <rguenther@suse.de>
1739
1740         PR middle-end/77679
1741         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
1742         fold fails.
1743
1744 2016-09-25  Uros Bizjak  <ubizjak@gmail.com>
1745
1746         Backport from mainline
1747         2016-09-21  Richard Biener  <rguenther@suse.de>
1748                     Jakub Jelinek  <jakub@redhat.com>
1749
1750         PR tree-optimization/77621
1751         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
1752         group at non-vectorizable stmts.
1753
1754         Backport from mainline
1755         2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
1756
1757         PR target/77621
1758         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
1759         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
1760         (ix86_add_stmt_cost): Penalize DFmode vector operations
1761         for !TARGET_VECTORIZE_DOUBLE.
1762
1763 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1764
1765         Backport from 2016-09-22 trunk r240388.
1766
1767         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
1768         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
1769
1770 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1771
1772         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
1773
1774 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
1775
1776         Backport from 2016-09-21 trunk r240306.
1777
1778         PR target/77326
1779         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
1780         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
1781
1782 2016-09-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1783
1784         Backport from mainline
1785         2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1786
1787         * lra-constraints.c (match_reload): Pass information about other
1788         output operands.  Create new unique register value if matching input
1789         operand shares same register value as output operand being considered.
1790         (curr_insn_transform): Record output operands already processed.
1791
1792 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
1793
1794         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
1795         parameters for functions taking long long arguments.
1796
1797 2016-09-16  David Edelsohn  <dje.gcc@gmail.com>
1798
1799         Backported from mainline
1800         2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
1801
1802         PR target/77349
1803         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
1804
1805 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
1806             Eric Botcazou  <ebotcazou@adacore.com>
1807
1808         PR middle-end/77594
1809         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
1810         through into expand_addsub_overflow after expand_neg_overflow.
1811
1812 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
1813
1814         Backported from mainline
1815         2016-09-14  Jakub Jelinek  <jakub@redhat.com>
1816
1817         PR sanitizer/68260
1818         * tsan.c: Include target.h.
1819         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
1820         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
1821         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
1822         BUILT_IN_ATOMIC_TEST_AND_SET entries.
1823         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
1824
1825         2016-09-08  Jakub Jelinek  <jakub@redhat.com>
1826
1827         PR fortran/77516
1828         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
1829         OMP_CLAUSE_SAFELEN_EXPR.
1830
1831         2016-09-06  Jakub Jelinek  <jakub@redhat.com>
1832
1833         PR target/69255
1834         * config/i386/i386.c (ix86_expand_builtin): For builtin with
1835         unsupported or unknown ISA, use expand_call.
1836
1837 2016-09-06  Uros Bizjak  <ubizjak@gmail.com>
1838
1839         Backport from mainline
1840         2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
1841
1842         PR rtl-optimization/77452
1843         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
1844         inner-mode reference to a CONST_VECTOR constant in the constant pool.
1845
1846 2016-09-01  Jakub Jelinek  <jakub@redhat.com>
1847
1848         Backported from mainline
1849         2016-08-30  Jakub Jelinek  <jakub@redhat.com>
1850
1851         PR tree-optimization/72866
1852         * tree-vect-patterns.c (search_type_for_mask): Turn into
1853         a small wrapper, move all code to ...
1854         (search_type_for_mask_1): ... this new function.  Add caching
1855         and adjust recursive calls.
1856
1857         PR debug/77363
1858         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
1859         instead of lookup_type_die (type_main_variant (type)) even for array
1860         types.
1861
1862         PR middle-end/77377
1863         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
1864         constant pool reference return x instead of c.
1865
1866         2016-08-19  Jakub Jelinek  <jakub@redhat.com>
1867
1868         * config/i386/t-i386 (i386-c.o): Don't depend on
1869         i386-builtin-types.inc.
1870         (i386.o): Depend on i386-builtin-types.inc.
1871
1872         2016-08-17  Jakub Jelinek  <jakub@redhat.com>
1873
1874         PR middle-end/77259
1875         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
1876         turning a call into __builtin_unreachable-like noreturn call, adjust
1877         gimple_call_set_fntype.
1878         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
1879         gimple_call_fntype has void return type.
1880
1881         2016-08-16  Jakub Jelinek  <jakub@redhat.com>
1882
1883         PR target/71910
1884         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before inlining,
1885         add cgraph edge for the added __builtin_unreachable call.
1886
1887 2016-09-01  Gerald Pfeifer  <gerald@pfeifer.com>
1888
1889         * doc/extend.texi (SPU Built-in Functions): Remove stale
1890         references to material formerly at IBM and Sony.
1891
1892 2016-09-01  Matthew Wahab  <matthew.wahab@arm.com>
1893
1894         PR target/77281
1895         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
1896         Use const_vec_duplicate to check for duplicated elements.
1897
1898 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
1899
1900         * config/i386/i386.c (ix86_option_override_internal): Also disable the
1901         STV pass if -mstackrealign is enabled.
1902
1903 2016-08-31  Patrick Palka  <ppalka@gcc.gnu.org>
1904
1905         Backport from mainline
1906         2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
1907
1908         PR tree-optimization/71077
1909         PR tree-optimization/68542
1910         * fold-const.c (fold_relational_const): Fix folding of
1911         VECTOR_CST comparisons that have a scalar boolean result type.
1912
1913 2016-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
1914
1915         * doc/install.texi (Binaries): www.opencsw.org now uses https.
1916
1917 2016-08-31  Jakub Sejdak  <jakub.sejdak@phoesys.com>
1918
1919         * config.gcc: Add support for arm*-*-phoenix* targets.
1920         * config/arm/t-phoenix: New.
1921         * config/phoenix.h: New.
1922
1923 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
1924
1925         PR target/77403
1926         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
1927         template for intel asm dialect.
1928         (vec_set_hi_<mode><mask_name>): Ditto.
1929
1930 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
1931
1932         * Makefile.in (gcov-iov.h): Add dummy recipe.
1933
1934 2016-08-28  Uros Bizjak  <ubizjak@gmail.com>
1935
1936         Backport from mainline
1937         2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1938
1939         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
1940         for targets amdfam10 and barcelona.
1941
1942         Backport from mainline
1943         2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
1944
1945         PR target/77270
1946         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
1947         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
1948         non-SSE2 athlons only, otherwise prefer SSE prefetches.
1949
1950         Backport from mainline
1951         2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
1952
1953         PR target/77270
1954         * config/i386/i386.c (ix86_option_override_internal): Remove
1955         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
1956         Enable SSE prefetch also for TARGET_PREFETCHWT1.
1957         Do not try to enable TARGET_PRFCHW ISA flag here.
1958         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
1959         Rewrite expander function body.
1960         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
1961
1962 2016-08-28  Tom de Vries  <tom@codesourcery.com>
1963
1964         backport from trunk:
1965         2016-08-28  Tom de Vries  <tom@codesourcery.com>
1966
1967         PR lto/70955
1968         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
1969         'sysv_abi va_list' attribute.
1970         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
1971         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
1972         attributes.
1973
1974 2016-08-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1975
1976         Backport from mainline
1977         2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1978
1979         PR target/72863
1980         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
1981         (vsx_store_<mode>): Likewise.
1982
1983 2016-08-24  Richard Biener  <rguenther@suse.de>
1984
1985         Backport from mainline
1986         2016-08-17  Richard Biener  <rguenther@suse.de>
1987
1988         PR tree-optimization/76490
1989         * tree-vrp.c (update_value_range): Preserve overflow infinities
1990         when intersecting with ranges from get_range_info.
1991         (operand_less_p): Handle overflow infinities correctly.
1992         (value_range_constant_singleton): Use vrp_operand_equal_p
1993         to handle overflow max/min correctly.
1994         (vrp_valueize): Likewise.
1995         (union_ranges): Likewise.
1996         (intersect_ranges): Likewise.
1997
1998 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1999
2000         * config/arm/t-rtems: Add vfp multilib.
2001
2002 2016-08-23  Richard Biener  <rguenther@suse.de>
2003
2004         Backport from mainline
2005         2016-08-16  Richard Biener  <rguenther@suse.de>
2006
2007         PR tree-optimization/76783
2008         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
2009         BB visited flags at start.
2010
2011         2016-08-12  Richard Biener  <rguenther@suse.de>
2012
2013         PR tree-optimization/72851
2014         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
2015         worklists to use bitmaps indexed in execution order.
2016         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
2017         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
2018         (cfg_blocks): Make a bitmap.
2019         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
2020         New globals.
2021         (cfg_blocks_empty_p): Adjust.
2022         (cfg_blocks_add): Likewise.
2023         (cfg_blocks_get): Likewise.
2024         (add_ssa_edge): Likewise.
2025         (add_control_edge): Likewise.
2026         (simulate_stmt): Likewise.
2027         (process_ssa_edge_worklist): Likewise.
2028         (simulate_block): Likewise.
2029         (ssa_prop_init): Compute PRE order and stmt UIDs.
2030         (ssa_prop_fini): Adjust.
2031         (ssa_propagate): Adjust.
2032
2033 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
2034
2035         Backport from mainline
2036         2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
2037
2038         PR target/72867
2039         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
2040         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
2041         for !flag_finite_math_only or flag_signed_zeros.
2042         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
2043         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
2044         depend on flag_finite_math_only.
2045         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
2046         New insn pattern.
2047         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
2048         (*ieee_smin<mode>3): Ditto.
2049         (*ieee_smax<mode>3): Ditto.
2050         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
2051         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
2052         flag_signed_zeros.
2053         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
2054         depend on flag_finite_math_only.
2055         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
2056         (*mmx_<code>v2sf3): Remove.
2057         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
2058         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
2059         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
2060
2061 2016-08-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2062
2063         Backport from mainline
2064         2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2065
2066         PR middle-end/71700
2067         * expr.c (store_constructor): Mask sign-extended bits when widening
2068         sub-word constructor element at the start of a word.
2069
2070 2016-08-22  Richard Biener  <rguenther@suse.de>
2071
2072         * BASE-VER: Set to 6.2.1.
2073
2074 2016-08-22  Release Manager
2075
2076         * GCC 6.2.0 released.
2077
2078 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
2079
2080         Backport from mainline
2081         2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
2082
2083         PR middle-end/70895
2084         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
2085         enclosing parallel construct for reduction variables on OpenACC loop
2086         directives.
2087
2088 2016-08-18  Oleg Endo  <olegendo@gcc.gnu.org>
2089
2090         Backport from mainline
2091         2016-06-17  DJ Delorie  <dj@redhat.com>
2092
2093         PR target/71338
2094         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
2095         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
2096         (umulqihi3_virt): Likewise.
2097         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
2098         (umulqihi3_real): Likewise.
2099
2100 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
2101
2102         * doc/install.texi (*-*-solaris2*): Adjust latest change.
2103
2104 2016-08-15  Martin Liska  <mliska@suse.cz>
2105
2106         Backported from mainline
2107         2016-08-15  Martin Liska  <mliska@suse.cz>
2108
2109         PR driver/72765
2110         * gcc.c (do_spec_1): Call save_string with the right size.
2111
2112 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
2113
2114         PR debug/71906
2115         * dwarf2out.c (string_types): New variable.
2116         (gen_array_type_die): Change early_dwarf handling of
2117         DW_AT_string_length, create DW_OP_call4 referencing the
2118         length var temporarily.  Handle parameters that are pointers
2119         to string length.
2120         (adjust_string_types): New function.
2121         (gen_subprogram_die): Temporarily set string_types to local var,
2122         call adjust_string_types if needed.
2123         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
2124         New functions.
2125         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
2126
2127 2016-08-15  Richard Biener  <rguenther@suse.de>
2128
2129         PR tree-optimization/73434
2130         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
2131         TBAA info on the base when forwarding a non-invariant address.
2132
2133 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
2134
2135         * doc/install.texi (*-*-solaris2*): Fix version number and document
2136         requirement on GNU make for building libjava with the Solaris linker.
2137
2138 2016-08-15  Martin Liska  <mliska@suse.cz>
2139             Jakub Jelinek  <jakub@redhat.com>
2140
2141         PR tree-optimization/72824
2142         * tree-loop-distribution.c (const_with_all_bytes_same)
2143         <case VECTOR_CST>: Fix a typo.
2144
2145 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
2146
2147         Backport from mainline
2148         2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
2149
2150         PR target/76342
2151         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
2152         Renamed from _mm512_undefined_si512.
2153         (_mm_undefined_si512): New definition.
2154
2155         Backport from mainline:
2156         2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
2157
2158         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
2159         unused variable __O.
2160
2161         Backport from mainline:
2162         2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
2163
2164         PR target/72843
2165         * config/i386/i386.md (*movtf_internal): Use
2166         lra_in_progress || reload_completed instead of !can_create_pseudo_p
2167         in the insn constraint.
2168         (*movxf_internal): Ditto.
2169         (*movdf_internal): Ditto.
2170         (*movsf_internal): Ditto.
2171
2172 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
2173
2174         PR c/71512
2175         * ubsan.c (instrument_si_overflow): Pass true instead of false
2176         to gsi_replace.
2177         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
2178         of bbs.  Return TODO_cleanup_cfg if any returned true.
2179
2180 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2181
2182         Backport from mainline
2183         2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2184
2185         PR tree-optimization/71083
2186         * tree-predcom.c (ref_at_iteration): Correctly align the
2187         reference type.
2188
2189 2016-08-12  James Greenhalgh  <james.greenhalgh@arm.com
2190
2191         Backport from mainline
2192         2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
2193
2194         PR Target/72819
2195         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
2196         (aarch64_fp16_ptr_type_node): Likewise.
2197         * config/aarch64/aarch64-simd-builtins.c
2198         (aarch64_fp16_ptr_type_node): Define.
2199         (aarch64_init_fp16_types): New, refactored out of...
2200         (aarch64_init_builtins): ...here, update to call
2201         aarch64_init_fp16_types.
2202         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
2203         HFmode.
2204         (aapcs_vfp_sub_candidate): Likewise.
2205
2206 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2207
2208         Backport from mainline
2209         2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2210
2211         * config/s390/s390-builtin-types.def: Add INT128 types.
2212         * config/s390/s390-builtins.def: Add INT128 variants for the add
2213         sub low-level builtins dealing with TImode.
2214         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
2215         via subreg when expanding a builtin.
2216         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
2217         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
2218         Fix comment.
2219         * config/s390/vecintrin.h: Adjust builtin names accordingly.
2220         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
2221         ("vec_addc<mode>", "vec_addc_u128"): Merge to
2222         "vacc<bhfgq>_<mode>".
2223         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
2224         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
2225         ("vec_subc<mode>", "vec_subc_u128"): Merge to
2226         "vscbi<bhfgq>_<mode>".
2227         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
2228         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
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-builtins.def: Mark last operand of s390_vlvg*
2236         and s390_vlgv* builtins as element selector.
2237
2238 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2239
2240         Backport from mainline
2241         2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2242
2243         * config/s390/s390.c (s390_expand_vec_init): Force initializer
2244         element to register if it doesn't match general_operand.
2245
2246 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2247
2248         Backport from mainline
2249         2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2250
2251         * config/s390/vecintrin.h: Fix file description in comment.
2252
2253 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2254
2255         Backport from mainline
2256         2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2257
2258         * config/s390/s390-builtin-types.def: Change builtin type naming
2259         scheme to match builtin-types.def.
2260
2261 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2262
2263         Backport from mainline
2264         2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2265
2266         PR target/72853
2267         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
2268         being an offsettable address.
2269
2270 2016-08-10  Jakub Jelinek  <jakub@redhat.com>
2271
2272         Backported from mainline
2273         2016-08-09  Jakub Jelinek  <jakub@redhat.com>
2274
2275         PR tree-optimization/72824
2276         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
2277         real_zerop is not negative.
2278
2279 2016-08-09  Martin Jambor  <mjambor@suse.cz>
2280
2281         PR ipa/71981
2282         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
2283         if instance is a MEM_REF.
2284
2285 2016-08-09  Richard Biener  <rguenther@suse.de>
2286
2287         Backport from mainline
2288         2016-08-09  Richard Biener  <rguenther@suse.de>
2289
2290         PR ipa/68273
2291         * ipa-prop.c (ipa_modify_formal_parameters): Build
2292         parameter types with natural alignment also for the
2293         over-aligned case.
2294
2295         2016-07-15  Richard Biener  <rguenther@suse.de>
2296
2297         PR tree-optimization/71881
2298         * tree-loop-distribution.c (destroy_loop): Remove blocks in
2299         reverse DOM order to make debug temp generation happy.
2300
2301 2016-08-09  Alan Modra  <amodra@gmail.com>
2302
2303         PR target/72802
2304         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
2305         alternatives.  Put loads first, then stores, and reg/reg moves
2306         within same class later.  Delete attr length.
2307
2308 2016-08-09  Alan Modra  <amodra@gmail.com>
2309
2310         PR target/72802
2311         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
2312         (mem_operand_ds_form): New predicate.
2313         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
2314         * config/rs6000/constraints.md (wY): New constraint.
2315         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
2316         (extendsfdf2_fpr): Replace o constraint with wY.
2317
2318 2016-08-08  Georg-Johann Lay  <avr@gjlay.de>
2319
2320         Backport from 2016-07-29 trunk r238863.
2321
2322         PR rtl-optimization/71976
2323         * combine.c (get_last_value): Return 0 if the argument for which
2324         the function is called has a wider mode than the recorded value.
2325
2326 2016-08-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
2327
2328         Backport from trunk
2329         2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2330
2331         PR target/71869
2332         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
2333         __float128 support when we don't have hardware support, so that
2334         the IEEE built-in functions like isgreater, first call __unordkf3
2335         to make sure neither operand is a NaN, and if both operands are
2336         ordered, do the normal comparison.
2337
2338 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
2339
2340         PR target/72805
2341         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
2342         Cast builtin function result to __mmask16 instead of __mmask8.
2343         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
2344         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
2345         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
2346
2347 2016-08-03  Georg-Johann Lay  <avr@gjlay.de>
2348
2349         PR 70677
2350         * common/config/avr/avr-common.c (avr_option_optimization_table)
2351         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
2352
2353 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
2354
2355         Backport from 2016-08-01 trunk r238948.
2356
2357         PR target/72767
2358         * config/avr/avr.md (length) [branch]: Correct insn length
2359         attribute for forward branches.
2360
2361 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
2362
2363         Backport from 2016-06-16 trunk r237536.
2364         2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2365
2366         PR target/71151
2367         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
2368         progmem_swtable_section.
2369         (progmem_swtable_section): Remove.
2370         (avr_asm_function_rodata_section): Remove.
2371         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
2372         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Define to 1.
2373
2374 2016-07-29  Marek Polacek  <polacek@redhat.com>
2375
2376         Backport from mainline
2377         2016-07-29  Marek Polacek  <polacek@redhat.com>
2378
2379         PR c/7652
2380         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
2381         (altivec_expand_st_builtin): Likewise.
2382         * config/i386/i386.c (ix86_expand_args_builtin): Likewise.
2383         (ix86_expand_round_builtin): Likewise.
2384
2385 2016-07-27  Segher Boessenkool  <segher@kernel.crashing.org>
2386
2387         PR target/71216
2388         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
2389         when to emit a ".machine" pseudo-op.
2390
2391 2016-07-26  Alan Modra  <amodra@gmail.com>
2392
2393         PR target/72103
2394         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
2395         sri->t_icode.
2396
2397 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
2398
2399         PR sanitizer/71953
2400         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
2401         before builtin_decl_implicit.
2402
2403         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
2404
2405 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
2406
2407         Improving concepts performance and diagnostics.
2408         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
2409         for constraint satisfaction and subsumption.
2410         * timevar.h (auto_timevar): New constructor that matches the push/pop
2411         pattern of usage in pt.c.
2412
2413 2016-07-20  John David Anglin  <danglin@gcc.gnu.org>
2414
2415         Backport from mainline
2416         2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
2417
2418         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
2419         register parameters.  Remove code to initialize argument pointer
2420         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
2421         using a pc-relative branch.  Cleanup conditional code.
2422         * config/pa/pa.md (call_mcount): New expander.
2423         (call_mcount_nonpic): New insn.
2424         (call_mcount_pic): New insn and split.
2425         (call_mcount_pic_post_reload): New insn.
2426         (call_mcount_64bit): New insn and split.
2427         (call_mcount_64bit_post_reload): New insn.
2428
2429 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2430
2431         Backport from mainline
2432         2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2433
2434         * config/s390/s390.c (s390_encode_section_info): Remove mode size
2435         check.
2436
2437 2016-07-20  Martin Jambor  <mjambor@suse.cz>
2438
2439         PR fortran/71688
2440         * trans-decl.c (gfc_generate_function_code): Use get_create rather
2441         than create to get a call graph node.
2442
2443 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
2444
2445         PR rtl-optimization/71916
2446         * cfgrtl.c (contains_no_active_insn_p): Return false also for
2447         bb which have a single succ fake edge.
2448
2449 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
2450
2451         PR debug/71855
2452         * dwarf2out.c (gen_subprogram_die): Only call
2453         gen_unspecified_parameters_die while dumping early dwarf.
2454
2455 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
2456
2457         PR middle-end/71874
2458         * gimple-fold.c (fold_builtin_memory_op): Use
2459         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
2460
2461 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
2462
2463         Back port from mainline
2464         2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
2465
2466         PR target/71493
2467         * config/rs6000/rs6000.c (rs6000_function_value): Fix
2468         unintentional System V.4 structure return breakage for structures
2469         with a single floating point element.
2470
2471 2016-07-18  Martin Liska  <mliska@suse.cz>
2472
2473         Backported from mainline
2474         2016-07-12  Martin Liska  <mliska@suse.cz>
2475
2476         PR rtl-optimization/71634
2477         * ira-build.c (mark_loops_for_removal): Properly iterate
2478         loops.
2479
2480 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2481
2482         Backport from mainline
2483         2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2484
2485         * config/s390/s390.c (s390_encode_section_info): Always set
2486         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
2487         found.
2488
2489 2016-07-15  Alan Modra  <amodra@gmail.com>
2490
2491         Apply from mainline
2492         2016-07-11  Alan Modra  <amodra@gmail.com>
2493         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
2494         (ctr<mode>): Add unspec.
2495         (ctr<mode>_internal*): Likewise.
2496
2497 2016-07-14  Alan Modra  <amodra@gmail.com>
2498
2499         PR target/71733
2500         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
2501         with p9_vector override before power9-dform override.
2502
2503 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
2504
2505         Backport from mainline r238086.
2506         2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
2507
2508         PR ipa/71624
2509         * ipa-inline-analysis.c (compute_inline_parameters): Set
2510         local.can_change_signature to false for intrumentation
2511         thunk callees.
2512
2513 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2514             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2515
2516         Backport from mainline
2517         2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2518                     Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2519
2520         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
2521         prototype.
2522         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
2523         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
2524         (SIGNBIT): New mode iterator.
2525         (Fsignbit): New mode attribute.
2526         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
2527         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
2528         when direct moves are available.
2529         (signbit<mode>2_dm): New define_insn_and_split).
2530         (signbit<mode>2_dm2): New define_insn.
2531
2532 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2533
2534         Backport from mainline
2535         2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2536
2537         PR target/71805
2538         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
2539         The xxperm and xxpermr instructions require that the 2nd input
2540         operand overlap with the output operand, and not the 1st.
2541         (altivec_vperm_v8hiv16qi): Likewise.
2542         (altivec_vperm_<mode>_uns_internal): Likewise.
2543         (altivec_vpermr_<mode>_internal): Likewise.
2544         (vperm_v8hiv4si): Likewise.
2545         (vperm_v16qiv8hi): Likewise.
2546
2547 2016-07-12  Segher Boessenkool  <segher@kernel.crashing.org>
2548
2549         Backport from mainline
2550         2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
2551
2552         PR target/70098
2553         PR target/71763
2554         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
2555         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
2556         constraint.
2557
2558 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
2559
2560         PR middle-end/71758
2561         * omp-low.c (expand_omp_target): Gimplify device.
2562
2563         PR tree-optimization/71823
2564         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
2565         to get vec_oprnds2 from op2.
2566
2567 2016-07-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
2568
2569         Backport from mainline r238055.
2570         2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
2571
2572         PR tree-optimization/71518
2573         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
2574         misalign also for outer loops with negative step.
2575
2576 2016-07-08  Martin Liska  <mliska@suse.cz>
2577
2578         Backported from mainline
2579         2016-07-08  Martin Liska  <mliska@suse.cz>
2580
2581         PR middle-end/71606
2582         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
2583         folding produces SAVE_EXPRs, thus return false for the type.
2584
2585 2016-07-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2586
2587         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): Remove
2588         redundant and erroneous definition of this macro accidentally
2589         inserted during backporting.
2590         (BU_P9_64BIT_MISC_0): Likewise.
2591         (BU_P9_MISC_0): Likewise.
2592
2593 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
2594
2595         Back port from the trunk
2596         2016-07-08  Jiong Wang  <jiong.wang@arm.com>
2597
2598         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
2599         variants.
2600         (smin): Likewise.
2601         (fmax): New entry.
2602         (fmin): Likewise.
2603         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
2604         __builtin_aarch64_fmaxv2sf.
2605         (vmaxnmq_f32): Likewise.
2606         (vmaxnmq_f64): Likewise.
2607         (vminnm_f32): Likewise.
2608         (vminnmq_f32): Likewise.
2609         (vminnmq_f64): Likewise.
2610
2611 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
2612
2613         Back port from trunk
2614         2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
2615
2616         PR target/71806
2617         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
2618         enable -mfloat128-hardware by default.
2619         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
2620         that IEEE 128-bit hardware support needs.
2621         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
2622         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
2623         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
2624         floating point requires.
2625         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2626         -mfloat128 and -mfloat128-hardware changes.
2627
2628 2016-07-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2629
2630         Backport from mainline r237912
2631         2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2632
2633         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
2634         Exchange the order of the second and third operands in the vpermr
2635         instruction tmeplate.
2636
2637 2016-07-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
2638
2639         Back port from the trunk
2640         2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2641
2642         PR target/71720
2643         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
2644         the insns, use an insn form that does not adjust the offset on
2645         little endian systems.
2646
2647 2016-07-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2648
2649         Backport from mainline r237885
2650         2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2651
2652         * config/rs6000/altivec.md (darn_32): Change the condition to
2653         TARGET_P9_MISC instead of TARGET_MODULO.
2654         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
2655         condition expression.
2656         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
2657         condition expression.
2658         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
2659         (DFP_TEST): New code iterator.
2660         (dfptstsfi_<code>_mode>): New define_expand.
2661         (*dfp_sgnfcnc_<mode>): New define_insn.
2662         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
2663         definition next to BU_P9_MISC_1 definition and change the MASK
2664         value to RS6000_BTM_P9_MISC.
2665         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
2666         (BU_P9_64BIT_MISC_0): Likewise.
2667         (BU_P9_DFP_MISC_0): New macro definition.
2668         (BU_P9_DFP_MISC_1): New macro definition.
2669         (BU_P9_DFP_MISC_2): New macro definition.
2670         (BU_P9_DFP_OVERLOAD_1): New macro definition.
2671         (BU_P9_DFP_OVERLOAD_2): New macro definition.
2672         (BU_P9_DFP_OVERLOAD_3): New macro definition.
2673         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
2674         (TSTSFI_LT_TD): Likewise.
2675         (TSTSFI_EQ_DD): Likewise.
2676         (TSTSFI_EQ_TD): Likewise.
2677         (TSTSFI_GT_DD): Likewise.
2678         (TSTSFI_GT_TD): Likewise.
2679         (TSTSFI_OV_DD): Likewise.
2680         (TSTSFI_OV_TD): Likewise.
2681         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
2682         (TSTSFI_LT_DD): Likewise.
2683         (TSTSFI_LT_TD): Likewise.
2684         (TSTSFI_EQ): Likewise.
2685         (TSTSFI_EQ_DD): Likewise.
2686         (TSTSFI_EQ_TD): Likewise.
2687         (TSTSFI_GT): Likewise.
2688         (TSTSFI_GT_DD): Likewise.
2689         (TSTSFI_GT_TD): Likewise.
2690         (TSTSFI_OV): Likewise.
2691         (TSTSFI_OV_DD): Likewise.
2692         (TSTSFI_OV_TD): Likewise.
2693         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2694         overloaded test significance functions.
2695         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2696         OPTION_MASK_P9_MISC into the representation of this mask.
2697         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
2698         of this mask.
2699         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
2700         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
2701         non-zero.
2702         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
2703         argument is a 6-bit unsigned literal value if the icode argument
2704         represents a DFP test significance built-in call.
2705         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
2706         flag used independently and in combination with the
2707         RS6000_BTM_64BIT flag.
2708         (rs6000_opt_masks): Add entry for power9-misc command-line option.
2709         (rs6000_builtin_mask_names): Add entry for power9-misc
2710         command-line option.
2711         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
2712         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
2713         RS6000_BTM_P9_MISC macros.
2714         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
2715         option and change the description of the -mpower9-vector option to
2716         enable only vector instructions, removing its erroneously claimed
2717         support for scalar instructions.
2718         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2719         the ISA 3.0 digital floating point test significance built-in
2720         functions.
2721
2722 2016-07-07  Richard Biener  <rguenther@suse.de>
2723
2724         Backport from mainline
2725         2016-06-13  Richard Biener  <rguenther@suse.de>
2726
2727         PR middle-end/64516
2728         * fold-const.c (fold_unary_loc): Preserve alignment when
2729         folding a VIEW_CONVERT_EXPR into a MEM_REF.
2730
2731 2016-07-07  Richard Biener  <rguenther@suse.de>
2732
2733         Backport from mainline
2734         2016-05-25  Richard Biener  <rguenther@suse.de>
2735
2736         PR tree-optimization/71264
2737         * tree-vect-stmts.c (vect_init_vector): Properly deal with
2738         vector type val.
2739
2740         2016-06-07  Richard Biener  <rguenther@suse.de>
2741
2742         PR middle-end/71423
2743         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
2744         for signed ops.
2745
2746         2016-06-14  Richard Biener  <rguenther@suse.de>
2747
2748         PR tree-optimization/71521
2749         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
2750         division int_const_binop against zero divisor.
2751
2752         2016-06-08  Richard Biener  <rguenther@suse.de>
2753
2754         PR tree-optimization/71452
2755         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
2756         type used for the SSA rewrite has enough precision to cover
2757         the dynamic type of the location.
2758
2759         2016-06-14  Richard Biener  <rguenther@suse.de>
2760
2761         PR tree-optimization/71522
2762         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
2763         copying into float copying.
2764
2765 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2766
2767         Backport from mainline
2768         2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2769
2770         PR target/50739
2771         * config/avr/avr.c (avr_asm_select_section): Strip off
2772         SECTION_DECLARED from flags when calling get_section.
2773
2774 2016-07-05  Pat Haugen  <pthaugen@us.ibm.com>
2775
2776         Backport from mainline
2777         2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
2778
2779         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
2780         ('size' attribute): Add '128'.
2781         Include power9.md.
2782         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
2783         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
2784         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
2785         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
2786         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
2787         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
2788         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
2789         *trunc<mode>df2_odd): Set size attribute to '128'.
2790         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
2791         * config/rs6000/power6.md (power6-fp): Include dfp type.
2792         * config/rs6000/power7.md (power7-fp): Likewise.
2793         * config/rs6000/power8.md (power8-fp): Likewise.
2794         * config/rs6000/power9.md: New file.
2795         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
2796         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
2797         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
2798         htmsimple.
2799         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
2800         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
2801         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
2802         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
2803         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
2804         dfp_dscri_<mode>): Change type attribute to dfp.
2805         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
2806         attribute to vecsimple.
2807         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
2808         and prefetch streams.
2809         (rs6000_option_override_internal): Remove temporary code setting
2810         tuning to power8.  Don't set rs6000_sched_groups for power9.
2811         (last_scheduled_insn): Change to rtx_insn *.
2812         (divide_cnt, vec_load_pendulum): New variables.
2813         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
2814         (rs6000_issue_rate): Set issue rate for Power9.
2815         (is_power9_pairable_vec_type): New.
2816         (power9_sched_reorder2): New.
2817         (rs6000_sched_reorder2): Call new function for Power9 specific
2818         reordering.
2819         (insn_must_be_first_in_group): Remove Power9.
2820         (insn_must_be_last_in_group): Likewise.
2821         (force_new_group): Likewise.
2822         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
2823         Initialize divide_cnt/vec_load_pendulum.
2824         (_rs6000_sched_context, rs6000_init_sched_context,
2825         rs6000_set_sched_context): Handle context save/restore of new
2826         variables.
2827
2828 2016-07-05  Pat Haugen  <pthaugen@us.ibm.com>
2829
2830         Backport from mainline
2831         2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
2832
2833         * config/rs6000/rs6000.md ('type' attribute): Add
2834         veclogical,veccmpfx,vecexts,vecmove insn types.
2835         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
2836         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
2837         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
2838         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
2839         *nabs<mode>2_hw): Change type to vecmove.
2840         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
2841         *boolcc<mode>3_internal, *eqv<mode>3_internal,
2842         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
2843         *ieee_128bit_vsx_abs<mode>2_internal,
2844         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
2845         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
2846         *ieee128_mtvsrd_32bit): Change type to veclogical.
2847         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
2848         *movdi_internal32, *movdi_internal64): Update insn types.
2849         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
2850         vsx_extract_<mode>): Change type to veclogical.
2851         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
2852         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
2853         *vsx_sign_extend_si_v2di): Change type to vecexts.
2854         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
2855         type to veclogical.
2856         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
2857         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
2858         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
2859         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
2860         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
2861         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
2862         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
2863         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
2864         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
2865         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
2866         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
2867         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
2868         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
2869         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
2870         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
2871         (ppc7450-vecsimple): Add veclogical, vecmove.
2872         (ppc7450-veccmp): Add veccmpfx.
2873         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
2874         vecmove.
2875         (ppc8540_vector_compare): Add veccmpfx.
2876         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
2877         * config/rs6000/cell.md (cell-fp): Add fpsimple.
2878         (cell-vecsimple): Add veclogical, vecmove.
2879         (cell-veccmp): Add veccmpfx.
2880         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
2881         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
2882         veccmpfx.
2883         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
2884         * config/rs6000/power4.md (power4-fp): Add fpsimple.
2885         (power4-vecsimple): Add veclogical, vecmove.
2886         (power4-veccmp): Add veccmpfx.
2887         * config/rs6000/power5.md (power5-fp): Add fpsimple.
2888         * config/rs6000/power6.md (power6-fp): Add fpsimple.
2889         (power6-vecsimple): Add veclogical, vecmove.
2890         (power6-veccmp): Add veccmpfx.
2891         * config/rs6000/power7.md (power7-fp): Add fpsimple.
2892         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
2893         * config/rs6000/power8.md (power8-fp): Add fpsimple.
2894         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
2895         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
2896         * config/rs6000/titan.md (titan_fp): Add fpsimple.
2897         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
2898         fpsimple.
2899         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
2900
2901 2016-07-05  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2902
2903         Backport from mainline r237391
2904         2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2905
2906         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
2907         RS6000_BTM_MODULO flag into the set of flags that are considered
2908         to be part of the common configuration.
2909
2910 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
2911
2912         PR c++/71739
2913         * tree.c (attribute_value_equal): Use get_attribute_name instead of
2914         directly using TREE_PURPOSE.
2915
2916 2016-07-04  Segher Boessenkool  <segher@kernel.crashing.org>
2917
2918         Backport from mainline
2919         2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
2920
2921         PR target/71670
2922         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
2923         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
2924
2925 2016-07-02  Jakub Jelinek  <jakub@redhat.com>
2926
2927         Backported from mainline
2928         2016-06-28  Jakub Jelinek  <jakub@redhat.com>
2929
2930         PR middle-end/71626
2931         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
2932         a constant, force its SUBREG_REG into memory or register instead
2933         of whole op1.
2934
2935         2016-06-20  Jakub Jelinek  <jakub@redhat.com>
2936
2937         PR target/71559
2938         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
2939         returned values and add UN*/LTGT/*ORDERED cases with values matching
2940         D operand modifier on vcmp for AVX.
2941
2942 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2943
2944         Backport from trunk r237659
2945         2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2946
2947         * config/rs6000/rs6000.h: Add conditional preprocessing directives
2948         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
2949         not defined.
2950
2951 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
2952
2953         Backport from trunk
2954         2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
2955
2956         PR target/71656
2957         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2958         OPTION_MASK_P9_DFORM_VECTOR.
2959         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
2960         disable -mpower9-dform-vector when using reload.
2961         (quad_address_p): Remove 'gpr_p' argument and all associated code.
2962         New 'strict' argument.  Update all callers.  Add strict addressing
2963         support.
2964         (rs6000_legitimate_offset_address_p): Remove call to
2965         virtual_stack_registers_memory_p.
2966         (rs6000_legitimize_reload_address): Add quad address support.
2967         (rs6000_legitimate_address_p): Move call to quad_address_p above
2968         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
2969         to account for new strict usage.
2970         (rs6000_output_move_128bit): Adjust quad_address_p args to account
2971         for new strict usage.
2972         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
2973
2974 2016-07-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2975
2976         Backport from mainline
2977         2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2978
2979         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
2980         (BU_FLOAT128_1): Likewise.
2981         (FABSQ): Likewise.
2982         (COPYSIGNQ): Likewise.
2983         (RS6000_BUILTIN_NANQ): Likewise.
2984         (RS6000_BUILTIN_NANSQ): Likewise.
2985         (RS6000_BUILTIN_INFQ): Likewise.
2986         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
2987         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
2988         (TARGET_FOLD_BUILTIN): New #define.
2989         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
2990         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
2991         (rs6000_fold_builtin): New target hook implementation, handling
2992         folding of 128-bit NaNs and infinities.
2993         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
2994         entries are filled in to avoid problems during bootstrap
2995         self-test; define builtins for 128-bit NaNs and infinities.
2996         (rs6000_opt_mask): Add entry for float128.
2997         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
2998         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
2999         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
3000         (const_str_type_node): New #define.
3001         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
3002         to a define_expand that dispatches to either copysign<mode>3_soft
3003         or copysign<mode>3_hard.
3004         (copysign<mode>3_hard): Rename from copysign<mode>3.
3005         (copysign<mode>3_soft): New define_insn.
3006         * doc/extend.texi: Document new builtins.
3007
3008 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
3009
3010         Backport from trunk
3011         2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
3012
3013         PR target/71698
3014         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move): Disallow
3015         TDmode values.
3016
3017 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3018
3019         Backport from trunk r236992
3020         2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3021
3022         * config/rs6000/altivec.h (vec_slv): New macro.
3023         (vec_srv): New macro.
3024         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
3025         (UNSPEC_VSRV): New value.
3026         (vslv): New insn.
3027         (vsrv): New insn.
3028         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
3029         (vsrv): New builtin definition.
3030         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
3031         define argument types for new builtin.
3032         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
3033         new builtin.
3034         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
3035         functions.
3036
3037 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
3038
3039         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
3040         for NULL decl.
3041
3042 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3043
3044         Backport from trunk r237390
3045         2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3046
3047         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
3048         difference unsigned.
3049         (vec_absdb): New macro for vector absolute difference unsigned
3050         byte.
3051         (vec_absdh): New macro for vector absolute difference unsigned
3052         half-word.
3053         (vec_absdw): New macro for vector absolute difference unsigned word.
3054         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
3055         (vadu<mode>3): New insn.
3056         (*p9_vadu<mode>3): New insn.
3057         * config/rs6000/rs6000-builtin.def (vadub): New built-in
3058         definition.
3059         (vaduh): New built-in definition.
3060         (vaduw): New built-in definition.
3061         (vadu): New overloaded built-in definition.
3062         (vadub): New overloaded built-in definition.
3063         (vaduh): New overloaded built-in definition.
3064         (vaduw): New overloaded built-in definition.
3065         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3066         overloaded vector absolute difference unsigned functions.
3067         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3068         the ISA 3.0 vector absolute difference unsigned built-in functions.
3069
3070 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
3071
3072         Backport from trunk r237880.
3073         2016-06-30  David Malcolm  <dmalcolm@redhat.com>
3074
3075         PR driver/71651
3076         * gcc.c (driver::build_option_suggestions): Pass "option" to
3077         add_misspelling_candidates.
3078         * opts-common.c (add_misspelling_candidates): Add "option" param;
3079         use it to avoid adding negated forms for options marked with
3080         RejectNegative.
3081         * opts.h (add_misspelling_candidates): Add "option" param.
3082
3083 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
3084
3085         PR middle-end/71693
3086         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
3087         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
3088         first when permuting bitwise operation with rotate.  Cast
3089         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
3090
3091 2016-06-30  Martin Liska  <mliska@suse.cz>
3092
3093         Parting backport from mainline
3094         2016-06-29  Martin Liska  <mliska@suse.cz>
3095
3096         * ipa-inline-transform.c (inline_call): Remove unnecessary call
3097         of build_optimization_node.
3098
3099 2016-06-29  Eric Botcazou  <ebotcazou@adacore.com>
3100
3101         Backport from mainline
3102         2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
3103
3104         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
3105
3106 2016-06-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
3107
3108         Back port from trunk
3109         2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
3110
3111         * stor-layout.c (layout_type): Move setting complex MODE to
3112         layout_type, instead of setting it ahead of time by the caller.
3113
3114         Back port from trunk
3115         2016-05-11  Alan Modra  <amodra@gmail.com>
3116
3117         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
3118         abi_v4_pass_in_fpr): New functions.
3119         (rs6000_function_arg_boundary): Exclude complex IBM long double
3120         from 64-bit alignment when ABI_V4.
3121         (rs6000_function_arg, rs6000_function_arg_advance_1,
3122         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
3123
3124         Back port from trunk
3125         2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3126
3127         * machmode.h (mode_complex): Add support to give the complex mode
3128         for a given mode.
3129         (GET_MODE_COMPLEX_MODE): Likewise.
3130         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
3131         stored by build_complex_type and gfc_build_complex_type instead of
3132         trying to figure out the appropriate mode based on the size. Raise
3133         an assertion error, if the type was not set.
3134         * genmodes.c (struct mode_data): Add field for the complex type of
3135         the given type.
3136         (blank_mode): Likewise.
3137         (make_complex_modes): Remember the complex mode created in the
3138         base type.
3139         (emit_mode_complex): Write out the mode_complex array to map a
3140         type mode to the complex version.
3141         (emit_insn_modes_c): Likewise.
3142         * tree.c (build_complex_type): Set the complex type to use before
3143         calling layout_type.
3144         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
3145         support for __float128 complex datatypes.
3146         (rs6000_hard_regno_mode_ok): Likewise.
3147         (rs6000_setup_reg_addr_masks): Likewise.
3148         (rs6000_complex_function_value): Likewise.
3149         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
3150         __float128 and __ibm128 complex.
3151         (FLOAT128_IBM_P): Likewise.
3152         (ALTIVEC_ARG_MAX_RETURN): Likewise.
3153         * doc/extend.texi (Additional Floating Types): Document that
3154         -mfloat128 must be used to enable __float128.  Document complex
3155         __float128 and __ibm128 support.
3156
3157 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
3158
3159         PR tree-optimization/71647
3160         * omp-low.c (lower_rec_input_clauses): Convert
3161         omp_clause_aligned_alignment (c) to size_type_node for the
3162         last argument of __builtin_assume_aligned.
3163
3164 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
3165
3166         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
3167
3168 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
3169
3170         Backport from 2016-06-21 trunk r237639.
3171
3172         PR target/30417
3173         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
3174         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
3175         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
3176
3177 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
3178
3179         PR target/71103
3180         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
3181         constant addresses if can_create_pseudo_p.
3182
3183 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
3184
3185         PR tree-optimization/71588
3186         * tree-ssa-strlen.c (valid_builtin_call): New function.
3187         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
3188         it.
3189
3190         Backported from mainline
3191         2016-06-20  Jakub Jelinek  <jakub@redhat.com>
3192
3193         PR middle-end/71581
3194         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
3195         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
3196         for conversion of scalar user var to complex type and use the
3197         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
3198         punt.
3199
3200         2016-06-16  Jakub Jelinek  <jakub@redhat.com>
3201
3202         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
3203         with base of reference to struct.
3204
3205 2016-06-20  Ilya Enkovich  <ilya.enkovich@intel.com>
3206
3207         Backport from mainline r237484.
3208         2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
3209
3210         PR middle-end/71529
3211         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
3212         DECL_CONTEXT for copied arguments.
3213
3214 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
3215             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3216
3217         Backport from 2016-06-20 trunk r237589, r236558.
3218
3219         PR target/71103
3220         * config/avr/avr.md (movqi): Handle loading subreg:qi (const,
3221         symbol_ref,label_ref).
3222
3223 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
3224
3225         PR target/71554
3226         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
3227         (setcc + and peephole2): Likewise.
3228
3229 2016-06-15  Andreas Tobler  <andreast@gcc.gnu.org>
3230
3231         Backported from mainline
3232         2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
3233
3234         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
3235         FreeBSD 11 and above.
3236
3237 2016-06-15  Ilya Verbin  <ilya.verbin@intel.com>
3238
3239         Backport from mainline
3240         2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3241
3242         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
3243
3244 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
3245
3246         Backported from mainline
3247         2016-06-10  Jakub Jelinek  <jakub@redhat.com>
3248
3249         PR middle-end/71494
3250         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
3251         without LABEL_DECL, set *handled_ops_p to false instead of true.
3252
3253         2016-06-08  Jakub Jelinek  <jakub@redhat.com>
3254                     Richard Biener  <rguenther@suse.de>
3255
3256         PR c++/71448
3257         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
3258         the same as DECL_P (base0) for indirect_base0.  Use equality_code
3259         in one further place.
3260
3261         2016-06-04  Jakub Jelinek  <jakub@redhat.com>
3262
3263         PR tree-optimization/71405
3264         * tree-ssa.c (execute_update_addresses_taken): For clobber with
3265         incompatible type, build a new clobber with the right type instead
3266         of building a VIEW_CONVERT_EXPR around it.
3267
3268 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
3269
3270         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
3271         update shared_lookup_references only once after changing operands.
3272
3273 2016-06-13  Richard Biener  <rguenther@suse.de>
3274
3275         PR tree-optimization/71505
3276         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
3277         assert match comment.
3278
3279 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3280
3281         Backport from mainline
3282         2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3283
3284         PR target/71379
3285         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
3286         one.
3287
3288 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
3289
3290         PR middle-end/71373
3291         Backport from trunk r237291:
3292         * tree-nested.c (convert_nonlocal_omp_clauses)
3293         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
3294         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
3295         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
3296
3297         Backport from trunk r237291:
3298         * gimplify.c (gimplify_adjust_omp_clauses): Discard
3299         OMP_CLAUSE_TILE.
3300         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
3301
3302         Backport from trunk r237290:
3303         * omp-low.c (scan_sharing_clauses): Don't expect
3304         OMP_CLAUSE__CACHE_.
3305
3306         Backport trunk r235964:
3307         2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
3308
3309         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
3310         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
3311         equality first.
3312
3313 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
3314
3315         PR sanitizer/71480
3316         * varasm.c (place_block_symbol): Adjust alignment for asan protected
3317         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
3318
3319 2016-06-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3320
3321         Back port from trunk
3322         2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3323
3324         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
3325         alternatives, eliminating preferred register class.  Add support
3326         for the MTVSRDD instruction in ISA 3.0.
3327         (vsx_splat_v4si_internal): Use splat_input_operand instead of
3328         reg_or_indexed_operand.
3329         (vsx_splat_v4sf_internal): Likewise.
3330
3331         Back port from trunk
3332         2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3333
3334         PR target/71186
3335         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
3336         for loading up all 0's or all 1's.
3337
3338         Back port from trunk
3339         2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3340
3341         PR target/70915
3342         * config/rs6000/constraints.md (wE constraint): New constraint
3343         for a vector constant that can be loaded with XXSPLTIB.
3344         (wM constraint): New constraint for a vector constant of a 1's.
3345         (wS constraint): New constraint for a vector constant that can be
3346         loaded with XXSPLTIB and a vector sign extend instruction.
3347         * config/rs6000/predicates.md (xxspltib_constant_split): New
3348         predicates for wE/wS constraints.
3349         (xxspltib_constant_nosplit): Likewise.
3350         (easy_vector_constant): Add support for constants that can be
3351         loaded via XXSPLTIB.
3352         (splat_input_operand): Add support for ISA 3.0 word splat operations.
3353         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
3354         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
3355         instruction and possibly with a sign extension.
3356         (output_vec_const_move): Add support for XXSPLTIB. If we are
3357         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
3358         instead of XXLXOR/XXLORC.
3359         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
3360         operations.
3361         (rs6000_legitimize_reload_address): Likewise.
3362         (rs6000_output_move_128bit): Use output_vec_const_move to emit
3363         constants.
3364         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
3365         combine VSX_M and VSX_M2 into one iterator.
3366         (VSX_M2): Likewise.
3367         (VSINT_84): New iterators for loading constants with XXSPLTIB.
3368         (VSINT_842): Likewise.
3369         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
3370         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
3371         XXSPLTIB instruction.
3372         (xxspltib_<mode>_nosplit): Likewise.
3373         (xxspltib_<mode>_split): New insn to load up constants with
3374         XXSPLTIB and a sign extend instruction.
3375         (vsx_mov<mode>): Replace single move that handled all vector types
3376         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
3377         moves (when -mvsx-timode is in effect) into the main vector
3378         moves.  Eliminate separate moves for <VSr> <VSa>, where the
3379         preferred register class (<VSr>) is listed first, and the
3380         secondary register class (<VSa>) is listed second with a '?' to
3381         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
3382         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
3383         that if the register was involved in a slow operation, the
3384         clear/set operation does not wait for the slow operation to
3385         finish.  Adjust the length attributes for 32-bit mode.  Use
3386         rs6000_output_move_128bit and drop the use of the string
3387         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
3388         spacing so that the alternatives and attributes don't generate
3389         long lines, and put things in columns, so that it is easier to
3390         match up the operands and attributes with the insn alternatives.
3391         (vsx_mov<mode>_64bit): Likewise.
3392         (vsx_mov<mode>_32bit): Likewise.
3393         (vsx_movti_64bit): Fold movti into normal vector moves.
3394         (vsx_movti_32bit): Likewise.
3395         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
3396         splat instructions.
3397         (vsx_splat_v4si_internal): Likewise.
3398         (vsx_splat_v4sf_internal): Likewise.
3399         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
3400         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
3401         extend vector elements.
3402         (vsx_sign_extend_hi_<mode>): Likewise.
3403         (vsx_sign_extend_si_v2di): Likewise.
3404         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
3405         declaration.
3406         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
3407         constraints.  Add trailing period to wL documentation.
3408
3409 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
3410
3411         Backport from mainline
3412         2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
3413
3414         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
3415         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
3416
3417 2016-06-08  Eric Botcazou  <ebotcazou@adacore.com>
3418
3419         Backport from mainline
3420         2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
3421
3422         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
3423         Include the M7 SPARC DFA scheduler.
3424         New attribute v3pipe.
3425         Annotate insns with v3pipe where appropriate.
3426         Define cpu_feature vis4.
3427         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
3428         Add (V8QI "8") to vbits.
3429         Add insns {add,sub}v8qi3
3430         Add insns ss{add,sub}v8qi3
3431         Add insns us{add,sub}{v8qi,v4hi}3
3432         Add insns {min,max}{v8qi,v4hi,v2si}3
3433         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
3434         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
3435         * config/sparc/niagara4.md: Add a comment explaining the
3436         discrepancy between the documented latenty numbers and the
3437         implemented ones.
3438         * config/sparc/niagara7.md: New file.
3439         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
3440         supports SPARC5 and VIS 4.0 instructions.
3441         * configure: Regenerate.
3442         * config.in: Likewise.
3443         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
3444         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
3445         TARGET_CPU_niagara7.
3446         (ASM_CPU64_DEFAULT_SPEC): Likewise.
3447         (CPP_CPU_SPEC): Handle niagara7.
3448         (ASM_CPU_SPEC): Likewise.
3449         * config/sparc/sparc-opts.h (processor_type): Add
3450         PROCESSOR_NIAGARA7.
3451         (mvis4): New option.
3452         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
3453         (AS_NIAGARA7_FLAG): Define.
3454         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
3455         (CPP_CPU64_DEFAULT_SPEC): Likewise.
3456         (CPP_CPU_SPEC): Handle niagara7.
3457         (ASM_CPU_SPEC): Likewise.
3458         * config/sparc/sparc.c (niagara7_costs): Define.
3459         (sparc_option_override): Handle niagara7 and adjust cache-related
3460         parameters with better values for niagara cpus.  Also support VIS4.
3461         (sparc32_initialize_trampoline): Likewise.
3462         (sparc_use_sched_lookahead): Likewise.
3463         (sparc_issue_rate): Likewise.
3464         (sparc_register_move_cost): Likewise.
3465         (dump_target_flag_bits): Support VIS4.
3466         (sparc_vis_init_builtins): Likewise.
3467         (sparc_builtins): Likewise.
3468         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
3469         VIS4 4.0.
3470         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
3471         UltraSparc M7.
3472         * config/sparc/sparc.opt (sparc_processor_type): New value
3473         niagara7.
3474         * config/sparc/visintrin.h (__attribute__): Prototypes for the
3475         VIS4 builtins.
3476         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
3477         -mvis4.
3478         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
3479         VIS4 builtins.
3480
3481         2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
3482
3483         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
3484         tune_64.
3485         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
3486         support on SPARC.
3487         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
3488         cpu_32, cpu_64, tune_32 and tune_64.
3489         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
3490
3491 2016-06-08  Ilya Verbin  <ilya.verbin@intel.com>
3492
3493         Backport from mainline
3494         2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
3495
3496         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
3497         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
3498         * config/i386/i386.c (enum ix86_builtins): Add
3499         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
3500         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
3501         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
3502         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
3503         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
3504         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
3505         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
3506         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
3507         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
3508         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
3509         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
3510         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
3511         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
3512         __builtin_ia32_cvtps2dq512_mask.
3513         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
3514         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
3515         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
3516         * config/i386/sse.md
3517         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
3518         Rename to ...
3519         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
3520         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
3521         to ...
3522         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
3523         (avx512f_vec_pack_sfix_v8df): New define_expand.
3524         (avx512f_roundpd512): Rename to ...
3525         (avx512f_round<castmode>512): ... this.  Change iterator.
3526         (avx512f_roundps512_sfix): New define_expand.
3527         (round<mode>2_sfix): Change iterator.
3528
3529 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
3530
3531         Backport from mainline
3532         2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
3533
3534         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
3535         -mno-htm.
3536
3537 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
3538
3539         PR target/71389
3540         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
3541         Copy op1 RTX to avoid invalid sharing.
3542         (ix86_expand_vector_move_misalign): Ditto.
3543
3544 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
3545
3546         PR tree-optimization/71259
3547         * tree-vect-slp.c (vect_get_constant_vectors): For
3548         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
3549         one for constant op, and use COND_EXPR for non-constant.
3550
3551 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3552
3553         Backport from trunk
3554         2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3555
3556         PR target/70830
3557         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
3558
3559 2016-06-05  Uros Bizjak  <ubizjak@gmail.com>
3560
3561         Backport from mainline
3562         2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
3563                     Jocelyn Mayer  <l_indien@magic.fr>
3564
3565         PR target/67310
3566         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
3567         detect processor family for signature_CENTAUR_ebx.
3568         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
3569         signature_CENTAUR_ebx.
3570         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
3571         <default>: Pass x86-64 for has_longmode.
3572
3573 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
3574
3575         PR middle-end/71387
3576         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
3577         to noreturn e->callee->decl that has void return type and void
3578         arguments, adjust gimple_call_fntype and remove lhs even if it had
3579         previously addressable type.
3580
3581 2016-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3582
3583         Back port from trunk
3584         2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3585
3586         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
3587         for ISA 3.0 min/max support.
3588         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
3589         conditional move support.
3590         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
3591         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
3592         available.
3593         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
3594         conditional moves where the comparison type is different from move
3595         type.
3596         (fp_minmax): New code iterator for smin/smax.
3597         (minmax): New code attributes for min/max.
3598         (SMINMAX): Likewise.
3599         (smax<mode>3): Combine min, max insns into one insn using the
3600         fp_minmax code iterator.  Add support for ISA 3.0 min/max
3601         instructions that don't need -ffast-math.
3602         (s<minmax><mode>3): Likewise.
3603         (smax<mode>3_vsx): Likewise.
3604         (smin<mode>3): Likewise.
3605         (s<minmax><mode>3_vsx): Likewise.
3606         (smin<mode>3_vsx): Likewise.
3607         (pre-VSX min/max splitters): Likewise.
3608         (s<minmax><mode>3_fpr): Likewise.
3609         (movsfcc): Rewrite floating point conditional moves to combine
3610         SFmode/DFmode into a single insn.
3611         (mov<mode>cc): Likewise.
3612         (movdfcc): Likewise.
3613         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
3614         SFDF2 iterators to handle all combinations.
3615         (fseldfsf4): Likewise.
3616         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
3617         (fseldfdf4): Likewise.
3618         (fselsfdf4): Likewise.
3619         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
3620         comparison instructions that set a 0/-1 mask, and use it for
3621         floating point conditional move via XXSEL.
3622         (fpmask<mode>): Likewise.
3623         (xxsel<mode>): Likewise.
3624         * config/rs6000/predicates.md (min_max_operator): Delete, no
3625         longer used.
3626         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
3627         instructions that generate a 0/-1 mask for use with XXSEL.
3628         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
3629         say whether floating point min/max is available, either through
3630         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
3631         (TARGET_MINMAX_DF): Likewise.
3632
3633         Back port from trunk
3634         2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3635
3636         * config/rs6000/predicate.md (all_ones_constant): New predicate
3637         for vector constant with all 1's set.
3638
3639 2016-06-02  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3640
3641         Back port from trunk
3642         2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3643
3644         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
3645         (UNSPEC_DARN_32): New unspec constant.
3646         (UNSPEC_DARN_RAW): New unspec constant.
3647         (darn_32): New instruction.
3648         (darn_raw): New instruction.
3649         (darn): New instruction.
3650         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
3651         support and documentation for this macro.
3652         (BU_P9_MISC_1): New macro definition.
3653         (BU_P9_64BIT_MISC_0): New macro definition.
3654         (BU_P9_MISC_0): New macro definition.
3655         (darn_32): New builtin definition.
3656         (darn_raw): New builtin definition.
3657         (darn): New builtin definition.
3658         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
3659         RS6000_BUILTIN_0 directives to surround each occurrence of
3660         #include "rs6000-builtin.def".
3661         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
3662         RS6000_BTM_64BIT flags to the returned mask, depending on
3663         configuration.
3664         (def_builtin): Correct an error in the assignments made to the
3665         debugging variable attr_string.
3666         (rs6000_expand_builtin): Add support for no-operand built-in
3667         functions.
3668         (builtin_function_type): Remove fatal_error assertion that is no
3669         longer valid.
3670         (rs6000_common_init_builtins): Add support for no-operand built-in
3671         functions.
3672         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
3673         definition.
3674         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
3675         definition.
3676         (RS6000_BTM_64BIT): New macro definition.
3677         * doc/extend.texi: Document __builtin_darn (void),
3678         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
3679         functions.
3680
3681 2016-06-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
3682
3683         Back port from trunk
3684         2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3685
3686         PR target/71201
3687         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
3688         ISA 3.0 xxperm fusion alternative.
3689         (altivec_vperm_v8hiv16qi): Likewise.
3690         (altivec_vperm_<mode>_uns_internal): Likewise.
3691         (vperm_v8hiv4si): Likewise.
3692         (vperm_v16qiv8hi): Likewise.
3693
3694         Back port from trunk
3695         2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3696                     Kelvin Nilsen  <kelvin@gcc.gnu.org>
3697
3698         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
3699         vpermr/xxpermr on ISA 3.0.
3700         (altivec_expand_vec_perm_le): Likewise.
3701         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
3702         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
3703         ISA 3.0.
3704
3705         Back port from trunk
3706         2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3707
3708         * config/rs6000/altivec.md (VParity): New mode iterator for vector
3709         parity built-in functions.
3710         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
3711         zeros.
3712         (p9v_parity<mode>2): Likewise.
3713         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
3714         parity.
3715         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
3716         (parity<mode>2): ISA 3.0 expander for vector parity.
3717         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
3718         power9 built-ins.
3719         (BU_P9_64BIT_MISC_0): Likewise.
3720         (BU_P9_MISC_0): Likewise.
3721         (BU_P9V_AV_1): Likewise.
3722         (BU_P9V_AV_2): Likewise.
3723         (BU_P9V_AV_3): Likewise.
3724         (BU_P9V_AV_P): Likewise.
3725         (BU_P9V_VSX_1): Likewise.
3726         (BU_P9V_OVERLOAD_1): Likewise.
3727         (BU_P9V_OVERLOAD_2): Likewise.
3728         (BU_P9V_OVERLOAD_3): Likewise.
3729         (VCTZB): Add vector count trailing zeros support.
3730         (VCTZH): Likewise.
3731         (VCTZW): Likewise.
3732         (VCTZD): Likewise.
3733         (VPRTYBD): Add vector parity support.
3734         (VPRTYBQ): Likewise.
3735         (VPRTYBW): Likewise.
3736         (VCTZ): Add overloaded vector count trailing zeros support.
3737         (VPRTYB): Add overloaded vector parity support.
3738         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3739         overloaded vector count trailing zeros and parity instructions.
3740         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
3741         vector parity support.
3742         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
3743         trailing zeros support.
3744         (vec_cntlz): Likewise.
3745         (vec_vctzb): Likewise.
3746         (vec_vctzd): Likewise.
3747         (vec_vctzh): Likewise.
3748         (vec_vctzw): Likewise.
3749         (vec_vprtyb): Add ISA 3.0 vector parity support.
3750         (vec_vprtybd): Likewise.
3751         (vec_vprtybw): Likewise.
3752         (vec_vprtybq): Likewise.
3753         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3754         the ISA 3.0 vector count trailing zeros and vector parity built-in
3755         functions.
3756
3757         Back port from trunk
3758         2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3759
3760         * config/rs6000/altivec.md (VNEG iterator): New iterator for
3761         VNEGW/VNEGD instructions.
3762         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
3763         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
3764         support for ISA 3.0 VNEGW/VNEGD instructions.
3765
3766         Back port from trunk
3767         2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3768
3769         * config/rs6000/predicates.md (quad_memory_operand): Move most of
3770         the code into quad_address_p and call it to share code with
3771         vsx_quad_dform_memory_operand.
3772         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
3773         d-form support.
3774         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
3775         bit instead of being a separate word.  Split -mpower9-dform into
3776         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
3777         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
3778         for the register class supporting 128-bit quad word memory offsets.
3779         (mode_supports_vsx_dform_quad): Helper function to return if the
3780         register class uses quad word memory offsets.
3781         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
3782         (rs6000_debug_reg_global): Always print if we are using LRA or not.
3783         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
3784         instructions are enabled, set up the appropriate addr_masks for
3785         128-bit types.
3786         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
3787         -mpower9-dform-scalar, instead of -mpower9-dform.
3788         (rs6000_option_override_internal): Split -mpower9-dform into two
3789         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
3790         -mpower9-dform switch sets or clears both.  If we are not using
3791         the LRA register allocator, do not enable -mpower9-dform-vector by
3792         default.  If we are using LRA, enable -mpower9-dform-vector and
3793         -mvsx-timode if it is appropriate.  Issue a warning if either
3794         -mpower9-dform-vector or -mvsx-timode are explicitly used without
3795         enabling LRA.
3796         (quad_address_offset_p): New helper function to return if the
3797         offset is legal for quad word memory instructions.
3798         (quad_address_p): New function to determin if GPR or vector
3799         register quad word memory addresses are legal.
3800         (mem_operand_gpr): Validate quad word address offsets.
3801         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
3802         d-form (register + offset) instructions.
3803         (offsettable_ok_by_alignment): Likewise.
3804         (rs6000_legitimate_offset_address_p): Likewise.
3805         (legitimate_lo_sum_address_p): Likewise.
3806         (rs6000_legitimize_address): Likewise.
3807         (rs6000_legitimize_reload_address): Add more debug statements for
3808         -mdebug=addr.
3809         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
3810         d-form instructions.
3811         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
3812         d-form instructions.  Distinguish different cases in debug
3813         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
3814         d-form instructions.
3815         (rs6000_preferred_reload_class): Likewise.
3816         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
3817         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
3818         of the ISA 2.06 indexed memory instructions.
3819         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
3820         use them to save/restore the saved vector registers instead of
3821         using Altivec instructions.
3822         (rs6000_emit_epilogue): Likewise.
3823         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
3824         (rs6000_opt_masks): Split -mpower9-dform into
3825         -mpower9-dform-scalar and -mpower9-dform-vector.
3826         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
3827         was not selected.
3828         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
3829         ISA 3.0 vector indexed memory instructions, and fold the code into
3830         the normal mov<mode> patterns.
3831         (p9_vecstore_<mode>): Likewise.
3832         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
3833         instructions.
3834         (vsx_movti_64bit): Likewise.
3835         (vsx_movti_32bit): Likewise.
3836         * config/rs6000/constraints.md (wO constraint): New constraint for
3837         ISA 3.0 vector d-form support.
3838         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
3839         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
3840         include -mpower9-dform-vector until we switch over to LRA.
3841         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
3842         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
3843         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
3844         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
3845         for -mpower9-dform and -mlra.
3846         * doc/md.texi (wO constraint): Document wO constraint.
3847
3848 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3849
3850         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
3851         the factor for live Phi nodes.
3852
3853 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
3854
3855         PR middle-end/71371
3856         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
3857         around creation of the temporary.
3858
3859 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3860
3861         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
3862         into account live statements for mask producers.
3863
3864 2016-05-31  Richard Biener  <rguenther@suse.de>
3865
3866         Backport from mainline
3867         2016-05-11  Richard Biener  <rguenther@suse.de>
3868
3869         PR debug/71057
3870         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
3871         (dwarf2out_finish): Move retry_incomplete_types call ...
3872         (dwarf2out_early_finish): ... here.
3873
3874 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3875
3876         PR target/71056
3877         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
3878         NULL_TREE early if NEON is not available.  Remove now redundant check
3879         in ARM_CHECK_BUILTIN_MODE.
3880
3881 2016-05-31  Tom de Vries  <tom@codesourcery.com>
3882
3883         backport:
3884         2016-05-31  Tom de Vries  <tom@codesourcery.com>
3885
3886         PR tree-optimization/69068
3887         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
3888         phis with more than two args.
3889
3890 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
3891
3892         Backport from mainline
3893         2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
3894
3895         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
3896         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
3897         target.
3898
3899 2016-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3900
3901         Backport from mainline
3902         2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3903
3904         * config/rs6000/altivec.h: Change definitions of vec_xl and
3905         vec_xst.
3906         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
3907         (LD_ELEMREV_V2DI): New.
3908         (LD_ELEMREV_V4SF): New.
3909         (LD_ELEMREV_V4SI): New.
3910         (LD_ELEMREV_V8HI): New.
3911         (LD_ELEMREV_V16QI): New.
3912         (ST_ELEMREV_V2DF): New.
3913         (ST_ELEMREV_V2DI): New.
3914         (ST_ELEMREV_V4SF): New.
3915         (ST_ELEMREV_V4SI): New.
3916         (ST_ELEMREV_V8HI): New.
3917         (ST_ELEMREV_V16QI): New.
3918         (XL): New.
3919         (XST): New.
3920         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3921         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
3922         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
3923         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
3924         (altivec_expand_builtin): Add handling for
3925         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
3926         (rs6000_invalid_builtin): Add error-checking for
3927         RS6000_BTM_P9_VECTOR.
3928         (altivec_init_builtins): Define builtins used to implement vec_xl
3929         and vec_xst.
3930         (rs6000_builtin_mask_names): Define power9-vector.
3931         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
3932         (RS6000_BTM_P9_VECTOR): Define.
3933         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
3934         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
3935         (vsx_ld_elemrev_v2df): Likewise.
3936         (vsx_ld_elemrev_v4sf): Likewise.
3937         (vsx_ld_elemrev_v4si): Likewise.
3938         (vsx_ld_elemrev_v8hi): Likewise.
3939         (vsx_ld_elemrev_v16qi): Likewise.
3940         (vsx_st_elemrev_v2df): Likewise.
3941         (vsx_st_elemrev_v2di): Likewise.
3942         (vsx_st_elemrev_v4sf): Likewise.
3943         (vsx_st_elemrev_v4si): Likewise.
3944         (vsx_st_elemrev_v8hi): Likewise.
3945         (vsx_st_elemrev_v16qi): Likewise.
3946         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
3947         grammar.
3948
3949 2016-05-30  Richard Biener  <rguenther@suse.de>
3950
3951         Backport from mainline
3952         2016-05-11  Richard Biener  <rguenther@suse.de>
3953
3954         PR middle-end/71002
3955         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
3956         if the langhook insists on it.
3957         * fold-const.c (make_bit_field_ref): Add arg for the original
3958         reference and preserve its alias-set.
3959         (decode_field_reference): Take exp by reference and adjust it
3960         to the original memory reference.
3961         (optimize_bit_field_compare): Adjust callers.
3962         (fold_truth_andor_1): Likewise.
3963
3964         2016-05-13  Jakub Jelinek  <jakub@redhat.com>
3965
3966         PR bootstrap/71071
3967         * fold-const.c (fold_checksum_tree): Allow modification
3968         of TYPE_ALIAS_SET during folding.
3969
3970 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
3971
3972         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
3973         (visium_expand_copysign): Use gen_int_mode directly.
3974         (visium_compute_frame_size): Minor tweaks.
3975
3976 2016-05-30  Tom de Vries  <tom@codesourcery.com>
3977
3978         backport:
3979         2016-05-30  Tom de Vries  <tom@codesourcery.com>
3980
3981         PR tree-optimization/69067
3982         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
3983
3984 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
3985
3986         * config/visium/visium-protos.h (split_double_move): Rename into...
3987         (visium_split_double_move): ...this.
3988         (visium_split_double_add): Declare.
3989         * config/visium/visium.c (split_double_move): Rename into...
3990         (visium_split_double_move): ...this.
3991         (visium_split_double_add): New function.
3992         (visium_expand_copysign): Renumber operands for consistency.
3993         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
3994         (DFmode move splitter): Likewise.
3995         (*addi3_insn): Split by means of visium_split_double_add.
3996         (*adddi3_insn_flags): Delete.
3997         (*plus_plus_sltu<subst_arith>): New insn.
3998         (*subdi3_insn): Split by means of visium_split_double_add.
3999         (subdi3_insn_flags): Delete.
4000         (*minus_minus_sltu<subst_arith>): New insn.
4001         (*negdi2_insn): Split by means of visium_split_double_add.
4002         (*negdi2_insn_flags): Delete.
4003
4004 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
4005
4006         Backport from mainline r236810.
4007         2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
4008
4009         PR middle-end/71279
4010         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
4011         into comparison.
4012
4013 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4014
4015         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
4016         redundant test and bail out if the type of the new operand is not
4017         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
4018
4019 2016-05-24  Martin Sebor  <msebor@redhat.com>
4020
4021         PR c++/71147
4022         * tree.h (complete_or_array_type_p): New inline function.
4023
4024 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
4025
4026         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
4027         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
4028         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.  Use SSE_REGS instead
4029         of ALL_SSE_REGS.  Return SSE_REGS also when TARGET_AVX.
4030
4031 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
4032
4033         PR c++/71257
4034         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
4035         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
4036         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
4037         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
4038         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
4039
4040 2016-05-23  Martin Jambor  <mjambor@suse.cz>
4041
4042         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
4043         default block if a PHI node in the original one would be resized.
4044
4045 2016-05-23  Martin Jambor  <mjambor@suse.cz>
4046
4047         PR tree-optimization/70884
4048         * tree-sra.c (initialize_constant_pool_replacements): Do not check
4049         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
4050         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
4051         of constant pool data as a reason for scalarization.
4052
4053 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
4054
4055         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
4056         for naked functions.
4057         (thumb1_expand_prologue): Likewise.
4058
4059 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
4060
4061         PR c++/71210
4062         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
4063         calls if the LHS is variable length or has addressable type.
4064         If targets[0]->decl is a noreturn call with void return type and
4065         zero arguments, adjust fntype and remove lhs in that case.
4066
4067 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
4068
4069         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
4070         force pending loads from memory.
4071
4072 2016-05-19  Marek Polacek  <polacek@redhat.com>
4073
4074         Backport from mainline
4075         2016-05-19  Marek Polacek  <polacek@redhat.com>
4076
4077         PR tree-optimization/71031
4078         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
4079         condition and adjust the code a bit.
4080
4081 2016-05-19  Martin Jambor  <mjambor@suse.cz>
4082
4083         PR ipa/70646
4084         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
4085         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
4086
4087 2016-05-19  Martin Jambor  <mjambor@suse.cz>
4088
4089         PR ipa/70646
4090         * ipa-inline.h (condition): New field size.
4091         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
4092         for comaprison and store it into the new condition.
4093         (evaluate_conditions_for_known_args): Use condition size to check
4094         access sizes for all but CHANGED conditions.
4095         (unmodified_parm_1): New parameter size_p, store access size into it.
4096         (unmodified_parm): Likewise.
4097         (unmodified_parm_or_parm_agg_item): Likewise.
4098         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
4099         (set_cond_stmt_execution_predicate): Extract access sizes and store
4100         them to conditions.
4101         (set_switch_stmt_execution_predicate): Likewise.
4102         (will_be_nonconstant_expr_predicate): Likewise.
4103         (will_be_nonconstant_predicate): Likewise.
4104         (inline_read_section): Stream condition size.
4105         (inline_write_summary): Likewise.
4106         * lto-streamer.h (LTO_minor_version): Bump.
4107
4108 2016-05-18  Martin Liska  <mliska@suse.cz>
4109
4110         Backport from mainline
4111         2016-05-18  Martin Liska  <mliska@suse.cz>
4112
4113         PR fortran/70856
4114         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
4115         merged variables.
4116
4117 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
4118
4119         PR c++/71100
4120         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
4121         lhs if it has TREE_ADDRESSABLE type.
4122
4123 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
4124
4125         PR target/71145
4126         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
4127         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
4128
4129 2016-05-17  Thomas Schwinge  <thomas@codesourcery.com>
4130
4131         Backport trunk r235748:
4132         PR target/70860
4133         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
4134         (nvptx_function_value): Assert non-NULL cfun.
4135
4136 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4137
4138         Backport from mainline
4139         2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4140
4141         PR target/70809
4142         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
4143
4144 2016-05-16  Martin Jambor  <mjambor@suse.cz>
4145
4146         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
4147         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
4148
4149 2016-05-16  Martin Jambor  <mjambor@suse.cz>
4150
4151         PR hsa/70857
4152         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
4153         the outlined kernel function.
4154
4155 2016-05-16  James Norris  <jnorris@codesourcery.com>
4156
4157         Backport from mainline r236098.
4158         2016-05-10  James Norris  <jnorris@codesourcery.com>
4159
4160         PR driver/68463
4161         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
4162         if offloading is enabled and -fopenacc or -fopenmp is specified.
4163         (CRTOFFLOADEND): Likewise.
4164         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
4165         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
4166
4167 2016-05-16  Alan Modra  <amodra@gmail.com>
4168
4169         Apply from mainline
4170         2016-05-10  Alan Modra  <amodra@gmail.com>
4171         PR target/70947
4172         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
4173         regrename modifying insns saving lr before __morestack call.
4174         * config/rs6000/rs6000.md (split_stack_return): Similarly for
4175         insns restoring lr after __morestack call.
4176
4177 2016-05-13  Richard Biener  <rguenther@suse.de>
4178
4179         Backport from mainline
4180         2016-04-27  Richard Biener  <rguenther@suse.de>
4181
4182         PR ipa/70760
4183         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
4184         aggregate_value_p to determine if a function result is
4185         returned by reference.
4186
4187         2016-05-06  Richard Biener  <rguenther@suse.de>
4188
4189         PR middle-end/70931
4190         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
4191
4192         2016-05-06  Richard Biener  <rguenther@suse.de>
4193
4194         PR middle-end/70941
4195         * fold-const.c (split_tree): Always convert to the original type
4196         before negating.
4197
4198 2016-05-12  Martin Liska  <mliska@suse.cz>
4199
4200         Backport from mainline
4201         2016-05-10  Martin Liska  <mliska@suse.cz>
4202
4203         * tree-inline.c (remap_dependence_clique): Do not remap
4204         debugging statements.
4205
4206 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
4207
4208         Backport from mainline r236171.
4209         2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
4210
4211         PR tree-optimization/71006
4212         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4213         consider COND_EXPR as a mask producer.
4214
4215 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4216
4217         Backport from mainline
4218         2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4219
4220         PR target/70830
4221         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
4222         when popping the PC and within an interrupt handler routine.
4223         Add missing tab to output of "ldmfd".
4224         (output_return_instruction): Output LDMFD with SP update rather
4225         than POP when returning from interrupt handler.
4226
4227 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
4228
4229         Backport from mainline r236088.
4230         2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4231
4232         PR middle-end/70877
4233         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
4234         calls with type casted fndecl.
4235
4236 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
4237
4238         Backport from mainline r236086.
4239         2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4240
4241         PR tree-optimization/70876
4242         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
4243         * gcc/calls.c (initialize_argument_information): Bind bounds
4244         with corresponding args passed by reference.
4245
4246 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4247
4248         Backport from mainline
4249         2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4250
4251         PR target/70963
4252         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
4253         code for a zero scale factor.
4254         (vsx_xvcvdpuxds_scale): Likewise.
4255
4256 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
4257
4258         Backported from mainline
4259         2016-05-03  Jakub Jelinek  <jakub@redhat.com>
4260
4261         PR tree-optimization/70916
4262         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
4263         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
4264
4265 2016-05-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
4266
4267         Backport from mainline r235962.
4268         2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
4269
4270         PR debug/70935
4271         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
4272         loop latch destination.
4273
4274 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4275
4276         Backport from mainline
4277         2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4278
4279         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
4280         ("*fixuns_truncdfdi2_z13")
4281         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
4282         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
4283         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
4284
4285 2016-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4286
4287         Backport from mainline
4288         2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4289
4290         * config/rtems.h (LIB_SPEC): Add -latomic.
4291
4292 2016-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4293
4294         Backport from mainline
4295         2016-04-27  Joel Sherrill  <joel@rtems.org>
4296
4297         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
4298         xilink.ld and flags not relevant to RTEMS.
4299
4300 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
4301
4302         * config/i386/i386.md (absneg splitters with general regs): Use
4303         general_reg_operand predicate.
4304         (btsq peephole2): Use x86_64_immediate_operand to check if new
4305         value is suitable for immediate operand.  Generate emitted insn
4306         using RTL expressions.
4307         (btcq peephole2): Ditto.
4308         (btrq peephole2): Ditto.  Generate correct immediate operand
4309         for AND masking.
4310
4311 2016-05-07  Tom de Vries  <tom@codesourcery.com>
4312
4313         backport:
4314         2016-05-07  Tom de Vries  <tom@codesourcery.com>
4315
4316         PR tree-optimization/70956
4317         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
4318         def.
4319
4320 2016-05-06  Marek Polacek  <polacek@redhat.com>
4321
4322         Backported from mainline
4323         2016-05-06  Marek Polacek  <polacek@redhat.com>
4324
4325         PR sanitizer/70875
4326         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
4327
4328 2016-05-06  Marek Polacek  <polacek@redhat.com>
4329
4330         Backported from mainline
4331         2016-04-29  Marek Polacek  <polacek@redhat.com>
4332                     Jakub Jelinek  <jakub@redhat.com>
4333
4334         PR sanitizer/70342
4335         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
4336         TARGET_EXPR_SLOT as a base.
4337
4338 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
4339
4340         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
4341         comment.
4342         (compute_samebase_partition_bases): Fix typo.
4343
4344 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
4345
4346         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
4347         occurence with frame_offset_ ones.
4348
4349 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
4350
4351         PR target/70858
4352         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
4353         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
4354         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
4355         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
4356         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
4357
4358 2016-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4359
4360         Backport from mainline
4361         2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
4362
4363         PR ada/70759
4364         * stor-layout.h (internal_reference_types): Delete.
4365         * stor-layout.c (reference_types_internal): Likewise.
4366         (internal_reference_types): Likewise.
4367         (layout_type) <REFERENCE_TYPE>: Adjust.
4368
4369 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4370
4371         Backport from mainline
4372         2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4373
4374         * config/rs6000/rs6000-builtin.def: Correct pasto error for
4375         stxvd2x and stxvw4x built-in functions.
4376
4377 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
4378
4379         Backported from mainline
4380         2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
4381
4382         PR target/70750
4383         * config/i386/predicates.md (call_insn_operand): Replace
4384         sibcall_memory_operand with memory_operand.
4385
4386 2016-04-27  Richard Biener  <rguenther@suse.de>
4387
4388         PR ipa/70785
4389         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
4390         function cummulating used_from_other_partition, externally_visible
4391         and force_output from aliases.
4392         (refered_from_nonlocal_var): Likewise.
4393         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
4394         node flags properly.
4395
4396 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
4397
4398         Backported from mainline
4399         2016-04-23  Jakub Jelinek  <jakub@redhat.com>
4400
4401         PR sanitizer/70712
4402         * cfgexpand.c (expand_stack_vars): Fix typo.
4403
4404         2016-04-19  Jakub Jelinek  <jakub@redhat.com>
4405
4406         PR middle-end/70680
4407         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
4408         implicitly linear or lastprivate iterator on the outer context.
4409
4410 2016-04-27  Kirill Yukhin  <kirill.yukhin@intel.com>
4411
4412         PR target/70728
4413         * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
4414         Extract AVX-512BW constraint from AVX.
4415
4416 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
4417
4418         * BASE-VER: Set to 6.1.1.
4419
4420 2016-04-27  Release Manager
4421
4422         * GCC 6.1.0 released.
4423
4424 2016-04-25  Richard Biener  <rguenther@suse.de>
4425
4426         PR tree-optimization/70780
4427         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
4428         wasn't visited yet.
4429         (compute_antic): Mark blocks with abnormal preds as visited as
4430         they have a final empty antic-in solution already.
4431
4432 2016-04-22  H.J. Lu  <hongjiu.lu@intel.com>
4433
4434         Backport from mainline
4435         2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
4436
4437         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
4438
4439 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4440
4441         * system.h (list, map, set, vector): Include conditionally.
4442         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
4443         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
4444         * ipa-icf.c (INCLUDE_LIST): Define.
4445         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
4446         * config/sh/sh.c (INCLUDE_VECTOR): Define.
4447         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
4448         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
4449         * cp/logic.cc (INCLUDE_LIST): Define.
4450         * fortran/trans-common.c (INCLUDE_MAP): Define.
4451
4452 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4453
4454         * auto-profile.c: Remove <string.h> include.
4455         * ipa-icf-gimple.c: Remove <list> include.
4456         * diagnostic.c: Remove <new> include.
4457         * genmatch.c: Likewise.
4458         * pretty-print.c: Likewise.
4459         * toplev.c: Likewise
4460         * c/c-objc-common.c: Likewise.
4461         * cp/error.c: Likewise.
4462         * fortran/error.c: Likewise.
4463
4464 2016-04-21  Richard Biener  <rguenther@suse.de>
4465
4466         PR middle-end/70747
4467         * fold-const.c (fold_comparison): Return properly typed
4468         constant boolean.
4469
4470 2016-04-20  Andrew Pinski  <apinski@cavium.com>
4471             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4472
4473         PR target/64971
4474         * config/aarch64/aarch64.md (sibcall): Force call
4475         address to be DImode for ILP32.
4476         (sibcall_value): Likewise.
4477
4478 2016-04-20  Marek Polacek  <polacek@redhat.com>
4479
4480         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
4481         rather than true.
4482
4483 2016-04-20  Marek Polacek  <polacek@redhat.com>
4484
4485         PR tree-optimization/70725
4486         * tree-if-conv.c (is_false_predicate): New function.
4487         (predicate_mem_writes): Use it.
4488
4489 2016-04-20  Richard Biener  <rguenther@suse.de>
4490
4491         PR tree-optimization/70726
4492         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
4493         shift amounts from a pattern stmt operand.
4494
4495 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4496
4497         PR target/70674
4498         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
4499         stack_restore_from_fpr pattern when restoring r15.
4500         (s390_optimize_prologue): Strip away the memory barrier in the
4501         parallel when trying to get rid of restore insns.
4502         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
4503         definition for loading the stack pointer from an FPR.  Compared to
4504         the normal move insn this pattern includes a full memory barrier.
4505
4506 2016-04-19  Richard Biener  <rguenther@suse.de>
4507
4508         PR tree-optimization/70724
4509         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
4510         restoring out from ...
4511         (free_scc_vn): ... here.
4512         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
4513         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
4514         tail merging.
4515         (pass_fre::execute): Restore SSA info.
4516
4517 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4518
4519         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
4520         gld requirements.
4521         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc
4522         versions.
4523         Mention Solaris 11 packaging changes.
4524         Update gas and gld requirements.
4525         Remove reference to pre-Solaris 10 bug.
4526         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
4527         systems and bugs.
4528         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
4529         with cc.
4530
4531 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
4532
4533         PR target/70711
4534         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
4535         armv8.1-a and armv8.1-a+crc.
4536
4537 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
4538
4539         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
4540         unless compiling with at least GCC-4.8.
4541
4542 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
4543
4544         PR target/70662
4545         * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode><mask_name>"):
4546         Fix mode size check.
4547
4548 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
4549
4550         * BASE-VER: Set to 6.0.1.
4551         * DEV-PHASE: Set to prerelease.
4552
4553 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
4554
4555         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
4556
4557 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4558
4559         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
4560         architecture revisions.
4561
4562 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
4563
4564         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
4565         * config/i386/i386.c (ix86_using_red_zone): No longer static.
4566         * config/i386/i386.md (stack decrement to push peepholes): Guard
4567         with !x86_using_red_zone ().
4568
4569 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
4570
4571         PR c++/70675
4572         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
4573         to dump_generic_node.
4574         (NIY): Pass also flags to do_niy.
4575
4576 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
4577
4578         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
4579         (simd_clone_vector_of_formal_parm_types)
4580         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
4581         (simd_clone_mangle, simd_clone_create)
4582         (simd_clone_adjust_return_type, create_tmp_simd_array)
4583         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
4584         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
4585         (ipa_simd_modify_function_body, simd_clone_linear_addend)
4586         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
4587         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
4588         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move
4589         into...
4590         * omp-simd-clone.c: ... this new file.
4591         (simd_clone_vector_of_formal_parm_types): Make it static.
4592         * Makefile.in (OBJS): Add omp-simd-clone.o.
4593
4594 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
4595
4596         PR target/70662
4597         * config/i386/sse.md: Use proper memory operand
4598         modifiers.
4599
4600
4601 2016-04-15  Richard Biener  <rguenther@suse.de>
4602         Alan Modra  <amodra@gmail.com>
4603
4604         PR tree-optimization/70130
4605         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
4606         when alignment stays not the same and no not use the realign
4607         scheme then.
4608
4609 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4610
4611         PR target/70669
4612         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
4613         direct move handlers for KFmode. Change TFmode handlers test from
4614         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
4615
4616 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
4617
4618         PR c++/70594
4619         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
4620         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
4621         (inlined_polymorphic_ctor_dtor_block_p): Use it.
4622         * tree-ssa-live.c (remove_unused_scope_block_p): When
4623         in_ctor_dtor_block, avoid discarding not just BLOCKs with
4624         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
4625         block_ultimate_origin is FUNCTION_DECL.
4626         (remove_unused_locals): If current_function_decl is
4627         polymorphic_ctor_dtor_p, pass initial true to
4628         remove_unused_scope_block_p' is_ctor_dtor_block.
4629
4630 2016-04-14  Martin Sebor  <msebor@redhat.com>
4631
4632         PR c++/69517
4633         PR c++/70019
4634         PR c++/70588
4635         * doc/extend.texi (Variable Length): Revert.
4636
4637 2016-04-14  Marek Polacek  <polacek@redhat.com>
4638             Jan Hubicka  <hubicka@ucw.cz>
4639
4640         PR c++/70029
4641         * tree.c (verify_type): Disable the canonical type of main variant
4642         check.
4643
4644 2016-04-14  Jason Merrill  <jason@redhat.com>
4645
4646         * cfgexpand.c, expr.c: Revert previous change.
4647
4648 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
4649
4650         PR middle-end/70643
4651         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
4652         when building a mem ref for the incoming reduction variable.
4653
4654 2016-04-14  Richard Biener  <rguenther@suse.de>
4655
4656         PR tree-optimization/70614
4657         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
4658         loop if the evolution dropped to chrec_dont_know.
4659         (interpret_condition_phi): Likewise.
4660
4661 2016-04-14  Richard Biener  <rguenther@suse.de>
4662
4663         PR tree-optimization/70623
4664         * tree-ssa-pre.c (changed_blocks): Make global ...
4665         (compute_antic): ... local here.  Move and fix worklist
4666         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
4667         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
4668         worklist handling, dump when ANTIC_IN changed.
4669         (compute_partial_antic_aux): Remove worklist handling.
4670         (init_pre): Do not compute post dominators.  Add a comment about
4671         the CFG order chosen.
4672         (fini_pre): Do not free post dominators.
4673
4674 2016-04-13  Martin Sebor  <msebor@redhat.com>
4675
4676         PR c++/69517
4677         PR c++/70019
4678         PR c++/70588
4679         * doc/extend.texi (Variable Length): Document C++ specifics.
4680
4681 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
4682
4683         PR c++/70641
4684         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
4685         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
4686         eh edges have been purged.
4687
4688         PR c++/70594
4689         * tree-sra.c (create_access_replacement,
4690         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
4691         gets fancy name.
4692         * tree-pretty-print.c (dump_fancy_name): New function.
4693         (dump_decl_name, dump_generic_node): Use it.
4694
4695 2016-04-13  Jason Merrill  <jason@redhat.com>
4696
4697         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
4698         * expr.c (expand_expr_real_1): Likewise.
4699
4700 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
4701
4702         * config/i386/i386.md (kunpckhi): Swap operands.
4703         (kunpcksi): Likewise.
4704         (kunpckdi): Likewise.
4705         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
4706         (vec_pack_trunc_<mode>): Likewise.
4707
4708 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
4709
4710         PR debug/70628
4711         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
4712
4713         PR middle-end/70633
4714         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
4715         gimplification turns some element into non-constant.
4716
4717         PR debug/70628
4718         * rtl.h (convert_memory_address_addr_space_1): New prototype.
4719         * explow.c (convert_memory_address_addr_space_1): No longer static,
4720         add NO_EMIT argument and don't call convert_modes if true, pass
4721         it down recursively, remove break after return.
4722         (convert_memory_address_addr_space): Adjust caller.
4723         * simplify-rtx.c (simplify_unary_operation_1): Call
4724         convert_memory_address_addr_space_1 instead of convert_memory_address,
4725         if it returns NULL, don't simplify.
4726
4727 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
4728
4729         PR target/70630
4730         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
4731
4732 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
4733
4734         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4735         Bump the upper SIMDLEN limits, so that if the return type or
4736         characteristic type if the return type is void can be passed in
4737         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
4738         allowed.
4739
4740 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4741
4742         PR target/70640
4743         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
4744         Do not use "=" constraint on an input constraint.
4745         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
4746         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
4747         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
4748         generates (neg (abs ...)) instead of (abs ...).
4749
4750 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
4751
4752         PR rtl-optimization/70596
4753         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
4754         just invalidate LRA data and reset them.  Adjust dump wording.
4755
4756 2016-04-12  Martin Liska  <mliska@suse.cz>
4757
4758         Revert
4759         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
4760
4761         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
4762         estimates here.
4763         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
4764         max_loop_iterations_int.
4765         (tree_unswitch_outer_loop): Likewise.
4766         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4767         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4768
4769 2016-04-12  Tom de Vries  <tom@codesourcery.com>
4770
4771         PR tree-optimization/68756
4772         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
4773         instead of new_name.
4774
4775 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
4776
4777         PR tree-optimization/70602
4778         * tree-sra.c (generate_subtree_copies): Don't write anything into
4779         constant pool decls.
4780
4781         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
4782         regardless whether there are depend clauses or not.
4783
4784 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
4785
4786         PR target/70381
4787         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
4788         target attribute and pragma from changing the -mfloat128
4789         and -mfloat128-hardware options.
4790
4791         * doc/extend.texi (Additional Floating Types): Document PowerPC
4792         __float128 restrictions.
4793
4794 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
4795
4796         PR target/70133
4797         * config/aarch64/driver-aarch64.c
4798         (aarch64_get_extension_string_for_isa_flags): New.
4799         (arch_extension): Rename to...
4800         (aarch64_arch_extension): ...This.
4801         (ext_to_feat_string): Rename to...
4802         (aarch64_extensions): ...This.
4803         (aarch64_core_data): Keep track of architecture extension flags.
4804         (cpu_data): Rename to...
4805         (aarch64_cpu_data): ...This.
4806         (aarch64_arch_driver_info): Keep track of architecture extension
4807         flags.
4808         (get_arch_name_from_id): Rename to...
4809         (get_arch_from_id): ...This, change return type.
4810         (host_detect_local_cpu): Update and reformat for renames, handle
4811         extensions through common infrastructure.
4812
4813 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
4814
4815         PR target/70133
4816         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
4817         track of a canonical flag name.
4818         (all_extensions): Likewise.
4819         (arch_to_arch_name): Also track extension flags enabled by the arch.
4820         (all_architectures): Likewise.
4821         (aarch64_parse_extension): Move to here.
4822         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
4823         rework.
4824         (aarch64_rewrite_selected_cpu): Update for above change.
4825         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
4826         are handled, such that the single explicit value enabled by an
4827         extension is kept seperate from the implicit values it also enables.
4828         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
4829         to here.
4830         (aarch64_parse_extension): New.
4831         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
4832         here to config/aarch64/aarch64-protos.h.
4833         (aarch64_parse_extension): Move from here to
4834         common/config/aarch64/aarch64-common.c.
4835         (aarch64_option_print): Update.
4836         (aarch64_declare_function_name): Likewise.
4837         (aarch64_start_file): Likewise.
4838         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
4839         the canonical flag for extensions.
4840         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
4841         flags.
4842
4843 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
4844
4845         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
4846         AARCH64_FL_CRC.
4847
4848 2016-04-09  Tom de Vries  <tom@codesourcery.com>
4849
4850         PR tree-optimization/68953
4851         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
4852         first to last subscript.
4853
4854 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
4855
4856         PR tree-optimization/70586
4857         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
4858         for any calls.
4859
4860 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
4861
4862         PR lto/70289
4863         PR ipa/70348
4864         PR tree-optimization/70373
4865         PR middle-end/70533
4866         PR middle-end/70534
4867         PR middle-end/70535
4868         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
4869         clauses for acc parallel reductions as necessary.  Error on those
4870         that are private.
4871         * omp-low.c (scan_sharing_clauses): Don't install variables which
4872         are used in acc parallel reductions.
4873         (lower_rec_input_clauses): Remove dead code.
4874         (lower_oacc_reductions): Add support for reference reductions.
4875         (lower_reduction_clauses): Remove dead code.
4876         (lower_omp_target): Don't remap variables appearing in acc parallel
4877         reductions.
4878         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
4879
4880 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
4881
4882         PR middle-end/70593
4883         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
4884         with multiple SSA_NAME defs, force the outputs other than first
4885         to be live before calling live_track_process_def on each output.
4886
4887         PR rtl-optimization/70574
4888         * fwprop.c (forward_propagate_and_simplify): Don't add
4889         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
4890         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
4891         paradoxical subregs within *loc.
4892
4893 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
4894
4895         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
4896         -ftree-parallelize-loops={0,1}.
4897         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
4898         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
4899         * config/ia64/hpux.h (LIB_SPEC): Likewise.
4900         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4901         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4902
4903 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
4904
4905         PR sanitizer/70541
4906         * asan.c (instrument_derefs): If we get unknown location, extract it
4907         with EXPR_LOCATION.
4908         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
4909
4910 2016-04-08  Tom de Vries  <tom@codesourcery.com>
4911
4912         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
4913         implicit firstprivate clause.
4914
4915 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4916
4917         PR target/70566
4918         * config/arm/thumb2.md (tst + branch-> lsls + branch
4919         peephole below *orsi_not_shiftsi_si): Require that condition
4920         register is dead after the peephole.
4921         (second peephole after the above): Likewise.
4922
4923 2016-04-08  Alan Modra  <amodra@gmail.com>
4924
4925         PR target/70117
4926         * builtins.c (fold_builtin_classify): For IBM extended precision,
4927         look at just the high-order double to test for NaN.
4928         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
4929         test just the high double for Inf but both doubles for subnormal
4930         limit.
4931
4932 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
4933
4934         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
4935         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
4936         node->simdclone->mask_mode != VOIDmode masks.
4937         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
4938         earlier, use it instead of node->simdclone.
4939         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4940         Set clonei->mask_mode.
4941
4942 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
4943
4944         PR c/70436
4945         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
4946         Pass it through to cp_parser_already_scoped_statement.
4947         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
4948         it through to cp_parser_statement.
4949         (cp_parser_statement): Pass IF_P through to
4950         cp_parser_iteration_statement.
4951         (cp_parser_pragma): Adjust call to
4952         cp_parser_iteration_statement.
4953
4954 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
4955
4956         PR c/70436
4957         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
4958         resolve a future -Wparentheses warning.
4959         * omp-low.c (scan_sharing_clauses): Likewise.
4960         * tree-parloops.c (eliminate_local_variables): Likewise.
4961
4962 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
4963
4964         PR rtl-optimization/70398
4965         * lra-constraints.c (process_address_1): Check zero scale and code
4966         for reloading with zero scale.
4967
4968 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
4969
4970         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
4971         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
4972
4973 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
4974
4975         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4976         Add support for AVX512F clones, include them by default for
4977         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
4978         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
4979         up to 128.
4980
4981         PR middle-end/70550
4982         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
4983         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
4984         firstprivate clauses.
4985         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
4986         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
4987         (lower_omp_target): Set TREE_NO_WARNING for
4988         non-addressable possibly uninitialized vars which are copied into
4989         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
4990
4991 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
4992
4993         * config/pa/predicates.md (integer_store_memory_operand): Accept
4994         REG+D operands with a large offset when reload_in_progress is true.
4995         (floating_point_store_memory_operand): Likewise.
4996
4997 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
4998
4999         PR c++/70336
5000         * match.pd (nested int casts): Limit to GIMPLE.
5001
5002 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
5003
5004         PR ipa/66223
5005         * ipa-devirt.c (maybe_record_node): Fix comment; use
5006         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
5007
5008 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
5009
5010         PR rtl-optimization/70542
5011         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
5012         if there are any uses other than insn or debug insns.
5013
5014 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
5015             Jakub Jelinek  <jakub@redhat.com>
5016
5017         PR tree-optimization/70509
5018         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
5019         Shift HOST_WIDE_INT_1U instead of 1.
5020
5021 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
5022
5023         PR tree-optimization/70509
5024         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
5025         of the vector base type for index.
5026
5027 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
5028
5029         PR target/70510
5030         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
5031
5032 2016-04-05  Richard Biener  <rguenther@suse.de>
5033
5034         PR tree-optimization/70526
5035         * tree-sra.c (build_ref_for_offset): Use prev_base to
5036         extract the alias pointer type.
5037
5038 2016-04-05  Richard Biener  <rguenther@suse.de>
5039
5040         * dse.c (struct store_info): Remove alias_set member.
5041         (struct read_info_type): Likewise.
5042         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
5043         spill_deleted, clear_alias_set_lookup): Remove.
5044         (get_group_info): Remove dead base == NULL_RTX case.
5045         (dse_step0): Remove initialization of removed variables.
5046         (delete_dead_store_insn): Reomve alias set dumping.
5047         (free_read_records): Remove alias_set handling.
5048         (canon_address): Remove alias_set_out parameter.
5049         (record_store): Remove spill_alias_set, it's always zero.
5050         (check_mem_read_rtx): Likewise.
5051         (dse_step2): Rename from ...
5052         (dse_step2_nospill): ... this.  Adjust.
5053         (scan_stores): Rename from ...
5054         (scan_stores_nospill): ... this.
5055         (scan_reads): Rename from ...
5056         (scan_reads_nospill): ... this.
5057         (scan_stores_spill, scan_reads_spill): Remove.
5058         (dse_step3_scan): Remove for_spills argument which is always false.
5059         (dse_step3): Likewise.
5060         (dse_step5): Rename from ...
5061         (dse_step5_nospill): ... this.  Remove alias_set handling.
5062         (rest_of_handle_dse): Adjust.
5063
5064 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
5065
5066         PR target/70525
5067         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
5068         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
5069         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
5070         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
5071
5072 2016-04-05  Richard Biener  <rguenther@suse.de>
5073
5074         PR middle-end/70499
5075         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
5076         non-register type temporaries into SSA.
5077
5078 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
5079
5080         PR ipa/66223
5081         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
5082         calls when sanitizing.
5083         (possible_polymorphic_call_target_p): Fix formatting.
5084
5085 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5086             Jakub Jelinek <jakub@redhat.com>
5087
5088         PR middle-end/70457
5089         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
5090         to ensure a call statement is compatible with a built-in's
5091         prototype.
5092         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
5093         Likewise.
5094
5095 2016-04-04  Richard Biener  <rguenther@suse.de>
5096
5097         PR rtl-optimization/70484
5098         * rtl.h (canon_output_dependence): Declare.
5099         * alias.c (canon_output_dependence): New function.
5100         * dse.c (record_store): Use canon_output_dependence rather
5101         than canon_true_dependence.
5102
5103 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
5104
5105         PR ipa/68881
5106         * cgraph.h (symtab_node::copy_visibility_from): New function.
5107         * symtab.c (symtab_node::copy_visibility_from): New function.
5108         * ipa-visibility.c (optimize_weakref): New function.
5109         (function_and_variable_visibility): Use it.
5110
5111 2016-04-04  Martin Liska  <mliska@suse.cz>
5112
5113         PR hsa/70402
5114         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
5115         value that is really in range handled by SBR instruction.
5116         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
5117         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
5118         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
5119
5120 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
5121
5122         PR target/70416
5123         PR target/67391
5124         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
5125         set, but not for SP_REG operands.
5126
5127 2016-04-02  Martin Sebor  <msebor@redhat.com>
5128
5129         PR c++/67376
5130         * fold-const.c (maybe_nonzero_address): New function.
5131         (fold_comparison): Call it.  Fold equality and relational
5132         expressions involving null pointers.
5133         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
5134
5135 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
5136
5137         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
5138         the "Y" constraint (scalar FP 0.0 immediate).
5139
5140         * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
5141         Add the "const_double" to the list of operand constraints.
5142
5143 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
5144
5145         PR rtl-optimization/70467
5146         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
5147         If low word of the last operand is 0, just emit addition/subtraction
5148         for the high word.
5149
5150 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5151
5152         PR target/70404
5153         * config/s390/s390.c (s390_expand_insv): Check for everything
5154         constant instead of just VOIDmode stuff.
5155
5156 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5157
5158         PR target/70496
5159         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
5160
5161 2016-04-01  Nathan Sidwell  <nathan@acm.org>
5162
5163         * tree.def (TRY_CATCH_EXPR): Correct documentation.
5164
5165 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
5166
5167         PR rtl-optimization/70461
5168         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
5169         is necessary.
5170
5171 2016-03-31  Martin Liska  <mliska@suse.cz>
5172
5173         PR hsa/70399
5174         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
5175         a tree value or an immediate integer value to a buffer
5176         that is eventually copied to a BRIG section.
5177         (emit_immediate_operand): Call the function here.
5178         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
5179         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
5180         of class' fields that are removed.
5181         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
5182         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
5183         m_brig_repr_size fields.
5184
5185 2016-03-31  Martin Liska  <mliska@suse.cz>
5186
5187         PR hsa/70391
5188         * hsa-gen.c (hsa_function_representation::update_dominance): New
5189         function.
5190         (convert_addr_to_flat_segment): Likewise.
5191         (gen_hsa_memory_set): New alignment argument.
5192         (gen_hsa_ctor_assignment): Likewise.
5193         (gen_hsa_insns_for_single_assignment): Provide alignment
5194         to gen_hsa_ctor_assignment.
5195         (gen_hsa_insns_for_direct_call): Add new argument.
5196         (expand_lhs_of_string_op): New function.
5197         (expand_string_operation_builtin): Likewise.
5198         (expand_memory_copy): New function.
5199         (expand_memory_set): New function.
5200         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
5201         (convert_switch_statements): Change signature.
5202         (generate_hsa): Use a return value of the function.
5203         (pass_gen_hsail::execute): Do not call
5204         convert_switch_statements here.
5205         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
5206         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
5207         (hsa_function_representation::update_dominance): New function.
5208
5209 2016-03-31  Martin Liska  <mliska@suse.cz>
5210
5211         PR hsa/70391
5212         * hsa-brig.c (emit_directive_variable): Emit alignment
5213         according to hsa_symbol::m_align.
5214         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
5215         (dump_hsa_symbol): Dump alignment of HSA symbols.
5216         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
5217         (gen_hsa_addr_with_align): New function.
5218         (hsa_bitmemref_alignment): Use newly added function.
5219         (gen_hsa_insns_for_load): Likewise.
5220         (gen_hsa_insns_for_store): Likewise.
5221         (gen_hsa_memory_copy): New argument added.
5222         (gen_hsa_insns_for_single_assignment): Respect
5223         alignment for assignments processed via gen_hsa_memory_copy.
5224         (gen_hsa_insns_for_direct_call): Likewise.
5225         (gen_hsa_insns_for_return): Likewise.
5226         (gen_function_def_parameters): Set default alignment.
5227         * hsa.c (hsa_object_alignment): New function.
5228         (hsa_byte_alignment): Pasted function.
5229         * hsa.h (hsa_symbol::m_align): New field.
5230
5231 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
5232
5233         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
5234         scratch field for goto case.
5235
5236 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
5237
5238         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
5239
5240 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
5241
5242         PR target/70442
5243         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
5244         (scalar_chain::convert_insn): Call convert_op for reg
5245         moves to handle undefined registers.
5246
5247 2016-03-31  Nathan Sidwell  <nathan@acm.org>
5248
5249         PR c++/70393
5250         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
5251         Assert we don't want to move backwards.
5252
5253 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
5254
5255         PR target/70453
5256         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
5257
5258 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
5259
5260         PR rtl-optimization/70460
5261         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
5262         with operand from REG_LABEL_OPERAND, instead substitute
5263         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
5264         Don't do anything for REG_NON_LOCAL_GOTO jumps.
5265
5266 2016-03-31  Martin Liska  <mliska@suse.cz>
5267
5268         * passes.c (execute_one_pass): Do not call
5269         todo_after for a discarded function.
5270
5271 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
5272
5273         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
5274         (no_cost, infinite_cost): Initialize the new field.
5275         (get_computation_cost_at): Record setup cost.
5276         (determine_use_iv_cost_address): Skip cost computation for sub
5277         uses if we can estimate it without losing accuracy.
5278
5279 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
5280
5281         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
5282         estimates here.
5283         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
5284         max_loop_iterations_int.
5285         (tree_unswitch_outer_loop): Likewise.
5286         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
5287         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
5288
5289 2016-03-30  Richard Biener  <rguenther@suse.de>
5290
5291         PR middle-end/70450
5292         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
5293
5294 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
5295
5296         PR target/70421
5297         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
5298         in gen_blendm expander.
5299
5300 2016-03-30  Nick Clifton  <nickc@redhat.com>
5301
5302         PR target/62254
5303         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
5304         case where we are already provided with an SImode SUBREG.
5305
5306 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
5307
5308         PR target/70439
5309         * config/i386/i386.c (ix86_expand_epilogue): Properly check
5310         conflict between DRAP register and __builtin_eh_return.
5311
5312 2016-03-30  Michael Matz  <matz@suse.de>
5313             Richard Biener  <rguenther@suse.de>
5314
5315         PR ipa/12392
5316         * ipa-polymorphic-call.c (struct type_change_info): Change
5317         speculative to an unsigned allowing to limit the work we do.
5318         (csftc_abort_walking_p): New inline function..
5319         (check_stmt_for_type_change): Limit the number of may-defs
5320         skipped for speculative devirtualization to
5321         max-speculative-devirt-maydefs.
5322         * params.def (max-speculative-devirt-maydefs): New param.
5323         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
5324
5325 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
5326
5327         PR target/63890
5328         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
5329         and TARGET_MACHO.
5330
5331 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
5332
5333         PR tree-optimization/59124
5334         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
5335         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
5336
5337 2016-03-29  Jeff Law  <law@redhat.com>
5338
5339         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
5340
5341 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
5342
5343         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
5344         to HOST_WIDE_INT.
5345
5346 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
5347
5348         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
5349         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
5350         gcrt0.o if linking dynamically.
5351
5352 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
5353
5354         PR ipa/70283
5355         * ipa-devirt.c (methods_equal_p): New function.
5356         (compare_virtual_tables): Use it.
5357         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
5358         * cgraphclones.c (clone_function_name_1): Use
5359         symbol_table::symbol_suffix_separator.
5360         * coverage.c (build_var): Likewise.
5361         * symtab.c (symbol_table::symbol_suffix_separator): New.
5362
5363 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
5364
5365         PR rtl-optimization/70429
5366         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
5367         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
5368         mode != result_mode.
5369
5370         PR c++/70353
5371         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
5372
5373         PR tree-optimization/70405
5374         * ssa-iterators.h (num_imm_uses): Add missing braces.
5375
5376 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
5377
5378         PR rtl-optimization/68695
5379         * ira-color.c (allocno_copy_cost_saving): New.
5380         (improve_allocation): Use it.
5381
5382 2016-03-29  Richard Henderson  <rth@redhat.com>
5383
5384         PR middle-end/70355
5385         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
5386
5387 2016-03-29  Richard Biener  <rguenther@suse.de>
5388
5389         PR middle-end/70424
5390         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
5391         use alignment returned by get_pointer_alignment_1 if it is
5392         bigger than BITS_PER_UNIT.
5393         * builtins.c (get_pointer_alignment_1): Do not return true
5394         for alignment extracted from SSA info.
5395
5396 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
5397
5398         * config/ft32/ft32.opt (mnodiv): New.
5399         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
5400         * doc/invoke.texi (FT32 Options -mnodiv): New.
5401
5402 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
5403
5404         PR target/70406
5405         * config/i386/i386.md (define_split, andn): Fix modes.
5406
5407 2016-03-26  Richard Biener  <rguenther@suse.de>
5408             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5409
5410         PR ipa/70366
5411         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
5412         instead of
5413         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
5414         as 2nd argument to cl_optimization_restore().
5415
5416 2016-03-25  Richard Henderson  <rth@redhat.com>
5417
5418         PR target/70120
5419         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
5420         * config/aarch64/aarch64-protos.h: Declare it.
5421         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
5422
5423 2016-03-25  Alan Modra  <amodra@gmail.com>
5424
5425         PR target/70052
5426         * config/rs6000/constraints.md (j): Simplify.
5427         * config/rs6000/predicates.md (easy_fp_constant): Exclude
5428         decimal float 0.D.
5429         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
5430         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
5431          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
5432         in all constraint alternatives.
5433         (movtd_64bit_nodm): Delete "j" constraint alternative.
5434
5435 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
5436
5437         * tree-ssa-propagate.c: Enhance docs for
5438         SSA_PROP_NOT_INTERESTING.
5439
5440 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
5441
5442         * doc/extend.texi: Fix typo in documentation to pure attribute.
5443
5444 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
5445
5446         PR target/70319
5447         * config/pa/pa.md (bswapdi2): Use a scratch register.
5448
5449 2016-03-24  Richard Henderson  <rth@redhat.com>
5450
5451         PR middle-end/69845
5452         * fold-const.c (extract_muldiv_1): Correct test for multiplication
5453         overflow.
5454
5455 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
5456
5457         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
5458         using ix86_expand_binary_operator instead of gen_andsi3.
5459
5460 2016-03-24  Richard Biener  <rguenther@suse.de>
5461
5462         PR tree-optimization/70396
5463         * tree-vect-stmts.c (vectorizable_comparison): Use
5464         get_vectype_for_scalar_type.
5465
5466 2016-03-24  Richard Biener  <rguenther@suse.de>
5467
5468         PR middle-end/70370
5469         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
5470         with register bases.
5471
5472 2016-03-24  Richard Biener  <rguenther@suse.de>
5473
5474         PR tree-optimization/70372
5475         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
5476         build_all_ones_cst to also handle vector types correctly.
5477
5478 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5479
5480         PR target/70381
5481         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
5482         -mfloat128 here.
5483
5484 2016-03-23  Marek Polacek  <polacek@redhat.com>
5485
5486         PR c++/69884
5487         * doc/invoke.texi: Document -Wignored-attributes.
5488
5489 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
5490
5491         PR tree-optimization/69042
5492         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
5493         parameter from 30 to 40.
5494
5495 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
5496
5497         PR tree-optimization/69042
5498         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
5499         for use with constant offset stripped in base.
5500
5501 2016-03-23  Richard Biener  <rguenther@suse.de>
5502
5503         PR middle-end/70251
5504         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
5505         mode compatibility check.
5506         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
5507
5508 2016-03-23  Jeff Law  <law@redhat.com>
5509
5510         PR tree-optimization/64058
5511         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
5512         CONFLICT_COUNT.
5513         (struct ssa_conflicts): Move up earlier in the file.
5514         (conflicts_, var_map_): New static variables.
5515         (initialize_conflict_count): New function to initialize the
5516         CONFLICT_COUNT field for each conflict pair.
5517         (compare_pairs): Lazily initialize the conflict count and use it
5518         as the first tie-breaker.
5519         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
5520         and wipe conflicts_ and map_ around the call to qsort.  Remove
5521         special case for 2 coalesce pairs.
5522         * bitmap.c (bitmap_count_unique_bits): New function.
5523         (bitmap_count_bits_in_word): New function, extracted from
5524         bitmap_count_bits.
5525         (bitmap_count_bits): Use bitmap_count_bits_in_word.
5526         * bitmap.h (bitmap_count_unique_bits): Declare it.
5527
5528 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
5529
5530         PR target/69917
5531         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
5532         transparent alias chain for decl assembler name.
5533         * config/sol2.c (solaris_assemble_visibility): Likewise.
5534
5535 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5536
5537         * config/arm/arm1020e.md (1020call_op): Reduce reservation
5538         duration.
5539         (v10_fdivs): Likewise.
5540         (v10_fdivd): Likewise.
5541
5542 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5543
5544         PR driver/70132
5545         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
5546         to not call fclose twice on file.
5547
5548 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
5549
5550         PR tree-optimization/70354
5551         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
5552         oprnd0 is wider than oprnd1 and there is a cast from the wider
5553         type to oprnd1, mask it with the mask of the narrower type.
5554
5555         PR target/70321
5556         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
5557         Optimize TARGET_STV splitters, if high or low word of last argument
5558         is 0 or -1.
5559
5560 2016-03-22  Jeff Law  <law@redhat.com>
5561
5562         PR target/70232
5563         tree-ssa-threadbackward.c
5564         (fsm_find_control_statement_thread_paths): Correctly distinguish
5565         between old style jump threads vs FSM jump threads.
5566
5567 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
5568
5569         PR target/70302
5570         * config/i386/i386.c (scalar_chain::convert_op): Support
5571         uninitialized register usage case.
5572
5573 2016-03-22  Richard Biener  <rguenther@suse.de>
5574
5575         PR middle-end/70251
5576         * genmatch.c (gen_transform): Adjust last parameter to a three-state
5577         int...
5578         (capture::gen_transform): ... to change behavior when substituting
5579         a condition into cond or not-cond expr context.
5580         (dt_simplify::gen_1): Adjust.
5581         * gimple-match-head.c: Include gimplify.h for unshare_expr.
5582         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
5583         last change and instead change to
5584         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
5585         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
5586
5587 2016-03-22  Anthony Green  <green@moxielogic.com>
5588
5589         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
5590         issue for moxiebox targets.
5591         (CC1PLUS_SPEC): Ditto.
5592
5593 2016-03-22  Richard Biener  <rguenther@suse.de>
5594
5595         PR middle-end/70333
5596         * fold-const.c (extract_muldiv_1): Properly perform multiplication
5597         in the wide type.
5598
5599 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
5600
5601         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
5602
5603 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
5604
5605         PR target/70325
5606         * config/i386/i386.c (def_builtin): Handle
5607         OPTION_MASK_ISA_AVX512VL to be and-ed with other
5608         bits.
5609         (const struct builtin_description bdesc_special_args[]):
5610         Remove duplicate ISA bits.
5611
5612 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
5613
5614         PR target/70329
5615         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
5616         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
5617         in a way that works also for AVX512BW.
5618
5619         PR target/70300
5620         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
5621         instead of source if operands[1] is xmm16 and above and
5622         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
5623         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
5624
5625         PR c++/70295
5626         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
5627         on assign if (*from_p) is a comparison, set it to
5628         TREE_NO_WARNING (*from_p).
5629
5630 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
5631
5632         PR middle-end/70326
5633         * lra.c (restore_scratches): Ignore deleted insns.
5634
5635 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
5636             Jakub Jelinek  <jakub@redhat.com>
5637
5638         PR tree-optimization/70317
5639         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
5640         to HONOR_NANS.
5641
5642 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
5643
5644         PR target/70327
5645         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
5646         of ix86_expand_move.
5647         (movoi): Ditto.
5648         (movti): Use general_operand for operand 1 predicate.
5649
5650 2016-03-21  Martin Liska  <mliska@suse.cz>
5651
5652         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
5653         insns.
5654         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
5655
5656 2016-03-21  Martin Liska  <mliska@suse.cz>
5657
5658         PR ipa/70306
5659         * ipa-icf.c (sem_function::parse): Skip static
5660         constructors and destructors.
5661
5662 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
5663
5664         PR target/70296
5665         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
5666         function-like macro, peek following token(s) if it is followed
5667         by CPP_OPEN_PAREN token with optional padding in between, and
5668         if not, don't treat it like a macro.
5669
5670 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
5671             Alexander Monakov  <amonakov@ispras.ru>
5672
5673         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
5674         for the stabs debug format.
5675
5676 2016-03-21  Richard Biener  <rguenther@suse.de>
5677
5678         PR tree-optimization/70310
5679         * tree-vect-generic.c (expand_vector_condition): Fold the built
5680         condition.
5681
5682 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
5683
5684         PR target/70293
5685         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
5686         Block third alternative for AVX-512VL target,
5687
5688 2016-03-21  Martin Liska  <mliska@suse.cz>
5689
5690         PR hsa/70234
5691         * hsa-brig.c (emit_function_directives): Mark unemitted
5692         global variables for emission.
5693         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
5694         (get_symbol_for_decl): Likewise.
5695         * hsa.h (struct hsa_symbol): New flag.
5696
5697 2016-03-21  Richard Biener  <rguenther@suse.de>
5698
5699         PR tree-optimization/70288
5700         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
5701         we do not estimate unsimplified all-constant conditionals or
5702         switches as optimized away.
5703
5704 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
5705
5706         PR rtl-optimization/69102
5707         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
5708         when we have a readonly dependency context.
5709
5710 2016-03-18  Jeff Law  <law@redhat.com>
5711
5712         PR rtl-optimization/70263
5713         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
5714         (update_equiv_regs): When trying to move a store to after the insn
5715         that sets the source of the store, make sure the store occurs after
5716         the insn that sets the source of the store.  When successful note
5717         the REG_EQUIV note created in the dump file.
5718
5719 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
5720             Bernd Schmidt  <bschmidt@redhat.com>
5721
5722         * doc/extend.texi: Document more potential problems with basic asms.
5723
5724 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
5725
5726         PR rtl-optimization/70278
5727         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
5728         VOIDmode.
5729
5730 2016-03-18  Jason Merrill  <jason@redhat.com>
5731
5732         * calls.c (load_register_parameters): Fix zero size sibcall logic.
5733
5734 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
5735
5736         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
5737         values to 128b regs.
5738
5739 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
5740
5741         PR tree-optimization/70252
5742         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
5743         boolean vector has a proper number of elements.
5744         (supportable_narrowing_operation): Likewise.
5745
5746 2016-03-18  Tom de Vries  <tom@codesourcery.com>
5747
5748         PR ipa/70269
5749         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
5750
5751 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
5752
5753         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
5754         instead of replace_rtx for DEBUG_INSNs.
5755
5756 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5757
5758         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
5759         load type reservations.
5760
5761 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
5762
5763         PR target/70188
5764         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
5765         define_constraint for "Q" and "T" constraints.
5766
5767 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
5768
5769         Tweak the pipeline model for Exynos M1
5770
5771         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
5772         model.
5773
5774 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
5775
5776         PR c/70264
5777         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
5778         where one or both locations aren't within a line_map.
5779
5780 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5781
5782         PR driver/70192
5783         * opts.c (finish_options): Don't set flag_pie to the default if
5784         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
5785         if it is -1.
5786
5787 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
5788
5789         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
5790         true as ALL_REGS argument to replace_rtx.
5791
5792 2016-03-17  Richard Biener  <rguenther@suse.de>
5793
5794         PR debug/70271
5795         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
5796         last.
5797
5798 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
5799
5800         PR target/70245
5801         * rtl.h (replace_rtx): Add ALL_REGS argument.
5802         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
5803         equality and assert mode is the same, instead of just rtx pointer
5804         equality.
5805         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
5806         true as ALL_REGS argument to replace_rtx.
5807
5808 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
5809
5810         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
5811         for boolean vector with vector mode only.
5812         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
5813
5814 2016-03-17  Nick Clifton  <nickc@redhat.com>
5815
5816         PR target/70162
5817         * config/rx/rx.c (rx_print_integer): Print negative constants in
5818         decimal.
5819
5820 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
5821
5822         PR target/70261
5823         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
5824
5825 2016-03-16  Richard Henderson  <rth@redhat.com>
5826             Richard Biener  <rguenth@suse.de>
5827
5828         PR middle-end/70240
5829         PR middle-end/68215
5830         PR tree-opt/68714
5831         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
5832         first operand as is_gimple_condexpr.
5833
5834         PR middle-end/70240
5835         PR middle-end/68215
5836         Revert r231575
5837         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
5838         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
5839         Do not gimplify the result.
5840         (do_unop): Adjust call to tree_vec_extract.
5841         (do_binop): Likewise.
5842         (do_compare): Likewise.
5843         (do_plus_minus): Likewise.
5844         (do_negate): Likewise.
5845         (expand_vector_condition): Likewise.
5846         (do_cond): Likewise.
5847
5848 2016-03-16  Richard Henderson  <rth@redhat.com>
5849
5850         PR target/70048
5851         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
5852         (aarch64_classify_address): Use it.
5853         (aarch64_legitimize_address): Force all subexpressions of PLUS
5854         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
5855
5856 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
5857             Richard Biener  <rguenth@suse.de>
5858
5859         PR target/70245
5860         * rtlanal.c (replace_rtx): For REG, if from is a REG,
5861         return to even if only REGNO is equal, and assert
5862         mode is the same.
5863
5864 2016-03-11  Jeff Law  <law@redhat.com>
5865
5866         PR rtl-optimization/70224
5867         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
5868
5869 2016-03-16  Richard Henderson  <rth@redhat.com>
5870
5871         PR middle-end/70199
5872         * function.h (struct function): Add has_forced_label_in_static.
5873         * gimplify.c (force_labels_r): Set it.
5874         * lto-streamer-in.c (input_struct_function_base): Read it.
5875         * lto-streamer-out.c (output_struct_function_base): Write it.
5876         * tree-inline.c (has_label_address_in_static_1): Remove.
5877         (copy_forbidden): Remove fndecl parameter; test
5878         has_forced_label_in_static.
5879         (inline_forbidden_p): Update call to copy_forbidden.
5880         (tree_versionable_function_p): Likewise.
5881         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
5882         (chkp_versioning): Likewise.
5883         * tree-inline.h (copy_forbidden): Update decl.
5884
5885 2016-03-16  Marek Polacek  <polacek@redhat.com>
5886
5887         PR c/70093
5888         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
5889         function being thunked if the result type doesn't have fixed size.
5890         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
5891         doesn't have fixed size.
5892
5893 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
5894
5895         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
5896         reporting malformed loop nest.
5897
5898 2016-03-16  Tom de Vries  <tom@codesourcery.com>
5899
5900         PR lto/70187
5901         * ipa-devirt.c (possible_polymorphic_call_targets): Move
5902         nodes.length () == 1 test to before first nodes[0] access.
5903
5904 2016-03-16  Tom de Vries  <tom@codesourcery.com>
5905
5906         PR tree-optimization/68715
5907         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
5908         single_pred_p test.
5909
5910 2016-03-16  Tom de Vries  <tom@codesourcery.com>
5911
5912         PR tree-optimization/68809
5913         * graphite-scop-detection.c (same_close_phi_node): Test if result types
5914         are the same.
5915
5916 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
5917             Sandra Loosemore  <sandra@codesourcery.com>
5918
5919         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
5920         on leaf attribute. Mention ELF interposition problems.
5921
5922 2016-03-16  Alan Modra  <amodra@gmail.com>
5923
5924         PR rtl-optimization/69195
5925         PR rtl-optimization/47992
5926         * ira.c (indirect_jump_optimize): Ignore artificial defs.
5927         Add comments.
5928
5929 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
5930
5931         PR bootstrap/69513
5932         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
5933
5934 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5935
5936         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
5937
5938 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
5939
5940         PR rtl-optimization/70222
5941         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
5942         optimization if mode is different from result_mode, queue up masking
5943         of the result in outer_op.  Formatting fix.
5944
5945         PR middle-end/70239
5946         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
5947         of safe_grow.
5948
5949 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5950
5951         PR rtl-optimization/69032
5952         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
5953         looping backwards over basic block insns.
5954
5955 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5956
5957         PR target/66660
5958         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
5959         to non-speculative when propagating trap bits.
5960
5961 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5962
5963         PR rtl-optimization/63384
5964         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
5965         DEBUG_INSN_P insns.
5966
5967 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5968
5969         PR target/64411
5970         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
5971         factored out from ...
5972         (sched_analyze_insn): ... here.
5973         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
5974         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
5975         get_implicit_reg_pending_clobbers in it.
5976         (setup_id_reg_sets): Use setup_id_implicit_regs.
5977         (deps_init_id): Ditto.
5978
5979 2016-03-15  Tom de Vries  <tom@codesourcery.com>
5980
5981         PR ipa/70161
5982         * cgraph.c (cgraph_node::get_body): Save, reset and restore
5983         dump_file_name.
5984         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
5985         execute_function_dump.
5986         (execute_one_pass): Don't dump function if it will be dumped after ipa
5987         transform.
5988
5989 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
5990
5991         * genrecog.c (match_pattern_2): If pred is NULL don't call
5992         safe_predicate_mode on it.
5993
5994 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
5995
5996         PR middle-end/70219
5997         * lra-constraints.c (delete_move_and_clobber): Change assertion
5998         to also allow dregno == 0.
5999
6000 2016-03-14  Richard Henderson  <rth@redhat.com>
6001
6002         PR tree-opt/68714
6003         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
6004         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
6005         (reassociate_bb): Use optimize_vec_cond_expr; avoid
6006         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
6007         on vectors.
6008
6009 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
6010
6011         PR target/70083
6012         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
6013         regs.
6014         (lra_create_live_ranges_1): initialize hard register biggest_mode to
6015         VOIDmode.
6016         * lra-constraints.c (split_reg): For hard regs, try to find the
6017         biggest single-register mode used in the function.
6018
6019 2016-03-14  Richard Biener  <rguenther@suse.de>
6020
6021         PR tree-optimization/56365
6022         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
6023         constants to compare against.
6024
6025 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
6026
6027         PR target/70098
6028         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
6029         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
6030         (define_split for the GPR case): Use int_reg_operand instead of
6031         gpc_reg_operand for the output.
6032
6033 2016-03-14  Tom de Vries  <tom@codesourcery.com>
6034
6035         PR tree-optimization/70045
6036         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
6037         create_empty_if_region_on_edge argument.
6038
6039 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
6040
6041         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
6042         (STACK_CHECK_PROTECT): Likewise.
6043         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
6044         (STACK_CHECK_PROTECT): Likewise.
6045         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
6046         (STACK_CHECK_PROTECT): Likewise.
6047         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
6048         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6049         (STACK_CHECK_PROTECT): Likewise.
6050
6051 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
6052
6053         PR rtl-optimization/69307
6054         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
6055         registers in modes that span more than one register.
6056
6057 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
6058
6059         PR target/69614
6060         * lra-constraints.c (delete_move_and_clobber): New.
6061         (remove_inheritance_pseudos): Use it.
6062
6063 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
6064
6065         PR ada/70017
6066         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
6067         the libcall is LCT_THROW.
6068         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
6069         for the checking routine.
6070
6071 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6072
6073         PR target/70131
6074         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
6075         optimization if we have direct move.
6076         (roundu32<mode>2_fprs): Likewise.
6077
6078 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
6079
6080         PR target/70123
6081         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
6082         be rematerialized.
6083         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
6084         Arguments swapped.  All callers changed.  Take reg_renumber into
6085         account, and Calculate and compare register ranges for hard regs.
6086
6087 2016-03-11  Jeff Law  <law@redhat.com>
6088
6089         PR tree-optimization/70190
6090         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6091         Handle cases where we can not extract the taken edge, even though we
6092         found a constant value.
6093
6094         PR tree-optimization/64058
6095         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
6096         (num_coalesce_pairs): Move up earlier in file.
6097         (find_coalesce_pair): Initialize the INDEX field for each pair
6098         discovered.
6099         (compare_pairs): No longer sort on the elements in each pair.
6100         Instead break ties with the index of the coalesce pair.
6101
6102 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6103
6104         PR target/70002
6105         * config/aarch64/aarch64-protos.h
6106         (aarch64_save_restore_target_globals): New prototype.
6107         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
6108         Call the above when popping pragma.
6109         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
6110         New function.
6111         (aarch64_set_current_function): Rewrite using the above.
6112
6113 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
6114
6115         PR tree-optimization/70177
6116         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
6117         (extract_ops_from_tree): ... this.  In the 2 argument
6118         overload remove _1 suffix.
6119         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
6120         (extract_ops_from_tree): ... this.
6121         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
6122         Adjust callers.
6123         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
6124         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
6125         extract_ops_from_tree instead of 2 operand one.
6126
6127 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
6128
6129         PR tree-optimization/70013
6130         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
6131         for constant-pool entries.
6132
6133 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
6134
6135         PR rtl-optimization/70174
6136         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
6137         followed by gen_lowpart on force_reg instead of just gen_lowpart.
6138
6139         PR tree-optimization/70169
6140         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
6141         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
6142         for unknown codes.
6143
6144 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
6145             Jakub Jelinek  <jakub@redhat.com>
6146
6147         PR target/70160
6148         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
6149         of uninitialized values.
6150
6151 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6152
6153         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
6154         define_expand.
6155         ("*trunctddd2"): New pattern definition.
6156         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
6157         TD->DD truncation.
6158
6159 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6160
6161         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
6162         definitions for BFP and DFP rounding modes.
6163         ("fixuns_truncdddi2", "fixuns_trunctddi2")
6164         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
6165         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
6166         ("fix_trunctf<mode>2"): Use the new constants instead of magic
6167         numbers.
6168
6169 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6170
6171         * config/s390/constraints.md: Adjust comment.
6172         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
6173         s390_decompose_addrstyle_without_index.
6174         * config/s390/predicates.md (shift_count_or_setmem_operand):
6175         Rename to setmem_operand.
6176         * config/s390/s390-protos.h
6177         (s390_decompose_shift_count): Rename to
6178         s390_decompose_addrstyle_without_index.
6179         * config/s390/s390.c (s390_decompose_shift_count)
6180         (s390_mem_constraint, print_shift_count_operand)
6181         (print_operand_address, print_operand): Rename
6182         s390_decompose_shift_count to
6183         s390_decompose_addrstyle_without_index and rename
6184         print_shift_count_operand to print_addrstyle_operand troughout the
6185         file.
6186         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
6187         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
6188         Rename shift_count_or_setmem_operand to setmem_operand.
6189         * config/s390/vx-builtins.md ("vec_insert<mode>")
6190         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
6191         nonmemory_operand.
6192
6193 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6194
6195         PR target/70168
6196         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
6197         Handle overlapping retval and newval.
6198
6199 2016-03-10  Nick Clifton  <nickc@redhat.com>
6200
6201         PR target/7044
6202         * config/aarch64/aarch64.c
6203         (aarch64_override_options_after_change_1): When forcing
6204         flag_omit_frame_pointer to be true, use a special value that can
6205         be detected if this function is called again, thus preventing
6206         flag_omit_leaf_frame_pointer from being forced to be false.
6207
6208 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6209
6210         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
6211         Set x_flag_omit_leaf_frame_pointer when handling
6212         -momit-leaf-frame-pointer.
6213
6214 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
6215
6216         PR lto/69589
6217         * cgraph.c (cgraph_node::dump): Dump split_part and
6218         indirect_call_target.
6219         * cgraph.h (cgraph_node): Add indirect_call_target flag.
6220         * ipa.c (has_addr_references_p): Cleanup.
6221         (is_indirect_call_target_p): New.
6222         (walk_polymorphic_call_targets): Do not mark virtuals that may be
6223         called indirectly as local.
6224         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
6225
6226 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
6227
6228         PR ipa/69630
6229         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
6230         on cxa_pure_virtual.
6231
6232 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
6233
6234         PR lto/69589
6235         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
6236
6237 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
6238
6239         PR lto/69589
6240         * tree.c (need_assembler_name_p): Only record main variant type names.
6241
6242 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
6243
6244         PR target/70113.
6245         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
6246         Always define to 0 or 1.
6247         (TARGET_FIX_ERR_A53_843419): New macro.
6248         * config/aarch64/aarch64-elf-raw.h
6249         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
6250         * config/aarch64/aarch64-linux.h: Likewise.
6251         * config/aarch64/aarch64.c
6252         (aarch64_override_options_after_change_1): Do not default
6253         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
6254         843419 is on.
6255         (aarch64_attributes): Handle fix-cortex-a53-843419.
6256         (aarch64_can_inline_p): Likewise.
6257         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
6258
6259 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
6260         Jakub Jelinek <jakub@redhat.com>
6261
6262         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
6263         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
6264         DECL_COMMONS if flag_unconstrained_commons is set.
6265         * tree-dfa.c (get_ref_base_and_extent): Likewise.
6266         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
6267         (funconstrained-commons): Document.
6268
6269 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
6270
6271         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
6272         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
6273
6274 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
6275
6276         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
6277         has a proper number of elements.
6278
6279 2016-03-10  Alan Modra  <amodra@gmail.com>
6280
6281         PR rtl-optimization/69195
6282         PR rtl-optimization/47992
6283         * ira.c (recorded_label_ref): Delete.
6284         (update_equiv_regs): Return void.
6285         (indirect_jump_optimize): New function.
6286         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
6287         before regstat_compute_ri.  Don't rebuild_jump_labels here.
6288         Delete update_regstat.
6289
6290 2016-03-10  Richard Biener  <rguenther@suse.de>
6291
6292         PR tree-optimization/70128
6293         * tree-ssa-structalias.c (set_uids_in_ptset): Set
6294         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
6295
6296 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
6297
6298         PR tree-optimization/70152
6299         * tree-sra.c (replace_removed_params_ssa_names): Copy over
6300         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
6301
6302         PR target/70086
6303         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
6304         instead of gen_sse2_loadlpd.
6305         * config/i386/sse.md (*vec_concatv2df): Rename to...
6306         (vec_concatv2df): ... this.
6307
6308         PR tree-optimization/70127
6309         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
6310
6311 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
6312
6313         PR c/68473
6314         PR c++/70105
6315         * diagnostic-show-locus.c (compatible_locations_p): New function.
6316         (layout::layout): Sanitize ranges using compatible_locations_p.
6317
6318 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
6319
6320         PR c/68473
6321         PR c++/70105
6322         * diagnostic-show-locus.c (layout_range::layout_range): Replace
6323         location_range param with three const expanded_locations * and a
6324         bool.
6325         (layout::layout): Replace call to
6326         rich_location::lazily_expand_location with get_expanded_location.
6327         Extract the range and perform location expansion here, passing
6328         the results to the layout_range ctor.
6329         * diagnostic.c (source_range::debug): Delete.
6330         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
6331         of rich_location::get_expanded_location.
6332         * gcc-rich-location.c (get_range_for_expr): Delete.
6333         (gcc_rich_location::add_expr): Reimplement to avoid the
6334         rich_location::add_range overload that took a location_range,
6335         passing a location_t instead.
6336
6337 2016-03-09  Richard Biener  <rguenther@suse.de>
6338         Jakub Jelinek  <jakub@redhat.com>
6339
6340         PR tree-optimization/70138
6341         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
6342         Also skip vect_double_reduction_def.
6343
6344 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
6345
6346         PR target/70049
6347         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
6348         if the operand is "m".
6349
6350 2016-03-09  Nathan Sidwell  <nathan@acm.org>
6351
6352         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
6353
6354 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6355
6356         * config/i386/i386.c (processor_target_table): Fix cost table
6357         intialization order for znver1.
6358
6359 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
6360
6361         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
6362         - becuase -> because.
6363         * ipa-reference.c (ignore_module_statics): Likewise.
6364         * cgraph.c (cgraph_node::get_body): Likewise.
6365         * ipa-inline.c (early_inliner): Likewise.
6366         * ipa-devirt.c (types_same_for_odr): Likewise.
6367         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
6368         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
6369
6370 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6371
6372         * tree-ssa-math-opts.c: Fix typo in comment.
6373
6374 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
6375
6376         PR target/70110
6377         * config/i386/i386.c (scalar_chain::make_vector_copies,
6378         scalar_chain::convert_reg): Call end_sequence in between
6379         get_insns and emit_conversion_insns rather than after both
6380         calls.
6381
6382 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
6383
6384         PR target/70064
6385         * config/i386/i386.h (machine_function): Add
6386         pc_thunk_call_expanded flag.
6387         (ix86_pc_thunk_call_expanded): New define.
6388         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
6389         (*set_got): Rename insn pattern from set_got.
6390         (*set_got_labelled): Rename inst pattern from set_got_labelled.
6391         * config/i386/i386.c (ix86_compute_frame_layout): Use
6392         ix86_pc_thunk_call_expanded to prevent red-zone.
6393
6394 2016-03-07  Martin Jambor  <mjambor@suse.cz>
6395
6396         * hsa.h (hsa_get_ctor_statements): Declare.
6397         (hsa_get_dtor_statements): Likewise.
6398         (hsa_get_kernel_dispatch_type): Likewise.
6399         * hsa.c (hsa_get_ctor_statements): New function.
6400         (hsa_get_dtor_statements): Likewise.
6401         (hsa_get_kernel_dispatch_type): Likewise.
6402         * hsa-brig.c (hsa_cdtor_statements): Removed.
6403         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
6404         hsa_get_dtor_statements.
6405         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
6406         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
6407
6408 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6409
6410         * config/arm/arm-cores.def (cortex-r8): New.
6411         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
6412         * config/arm/arm-tune.md: Likewise.
6413         * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
6414
6415 2016-03-07  Martin Sebor  <msebor@redhat.com>
6416
6417         PR rtl-optimization/19705
6418         * doc/invoke.texi (Options That Control Optimization): Clarify
6419         -fno-branch-count-reg.
6420
6421 2016-02-26  Richard Biener  <rguenther@suse.de>
6422             Jeff Law  <law@redhat.com>
6423
6424         PR tree-optimization/69740
6425         * cfghooks.c (remove_edge): Request loop fixups if we delete
6426         an edge that might turn an irreducible loop into a natural
6427         loop.
6428         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
6429         Move after definition of loops_state_clear.
6430
6431 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
6432
6433         PR rtl-optimization/69052
6434         * rtlanal.c (commutative_operand_precedence): Set higher precedence
6435         to CONST_WIDE_INT.
6436
6437 2016-03-07  Tom de Vries  <tom@codesourcery.com>
6438
6439         PR tree-optimization/70116
6440         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
6441         is_tm_ending stmts and ubsan/asan internal functions.
6442         (find_duplicate): Use it.  Don't test is_tm_ending here.
6443
6444 2016-03-07  Richard Biener  <rguenther@suse.de>
6445
6446         PR tree-optimization/70115
6447         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
6448         (propagate_constants_for_unrolling): Use replace_uses_by.
6449
6450 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
6451
6452         PR middle-end/69916
6453         * omp-low.c (struct oacc_loop): Add ifns.
6454         (new_oacc_loop_raw): Initialize it.
6455         (finish_oacc_loop): Clear mask & flags if no ifns.
6456         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
6457         (oacc_loop_xform_loop): Add ifns arg & adjust.
6458         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
6459
6460 2016-03-07  Richard Henderson  <rth@redhat.com>
6461
6462         PR rtl-opt/70061
6463         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
6464         (insert_value_copy_on_edge): Likewise.
6465
6466 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6467
6468         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
6469
6470 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6471
6472         PR target/62281
6473         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
6474
6475 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
6476
6477         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
6478
6479 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
6480
6481         Fix sseimul type attribute.
6482         * config/i386/znver1.md
6483         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
6484         znver1_sseimul_avx256_load) : Fix the type attribute.
6485         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
6486         pipe usage and latency.
6487
6488 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
6489
6490         PR c++/70084
6491         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
6492         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
6493         to the right type.
6494
6495 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
6496
6497         PR c/69973
6498         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
6499
6500         PR rtl-optimization/69941
6501         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
6502         the reg share its mode.
6503
6504 2016-03-04  Jeff Law  <law@redhat.com>
6505
6506         PR tree-optimization/69196
6507         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6508         If the both SSA_NAMEs are anonymous, then consider them unassociated
6509         and include the PHI in the statement count.
6510
6511 2016-03-05  Tom de Vries  <tom@codesourcery.com>
6512
6513         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
6514         construct in oacc routine.  Check for oacc region in oacc routine.
6515
6516 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
6517
6518         PR target/70062
6519         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
6520         2016-02-22 changes, instead don't recurse if RECUR is already true.
6521         Don't change *dynamic_check if RECUR.  Adjust recursive caller
6522         to pass true to the new argument.
6523         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
6524
6525         PR target/70059
6526         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
6527         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
6528         fixes.
6529         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
6530
6531 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
6532
6533         PR rtl-optimization/57676
6534         * lra-assigns.c (lra_assign): Guard test for maximum iterations
6535         with flag_checking.
6536
6537 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
6538
6539         * tree-vect-patterns.c (search_type_for_mask): Handle
6540         comparison of booleans.
6541
6542 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
6543
6544         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
6545         Fix @xref usage.
6546
6547         PR debug/69947
6548         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
6549         all other ops that have dw_val_class_die_ref operands,
6550         and DW_OP_GNU_entry_value.
6551
6552 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6553
6554         PR rtl-optimization/69904
6555         * config/arm/arm.c (arm_cannot_copy_insn_p):
6556         Return true for load-exclusive instructions.
6557
6558 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
6559
6560         PR target/70021
6561         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
6562         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
6563         the pattern no matter if it is used just by non-pattern, pattern
6564         or mix thereof.
6565         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
6566         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
6567         oprnd1 def_stmt is in pattern, don't look through it.
6568
6569 2016-03-03  Marek Polacek  <polacek@redhat.com>
6570
6571         PR middle-end/70050
6572         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
6573
6574 2016-03-03  Martin Liska  <mliska@suse.cz>
6575
6576         PR tree-optimization/70043
6577         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
6578         previous statement if we see a debug statement.
6579
6580 2016-03-03  Richard Biener  <rguenther@suse.de>
6581
6582         PR tree-optimization/55936
6583         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
6584         parameter and guard unsafe equivalence use.
6585         (vrp_evaluate_conditional_warnv_with_ops): Always use
6586         safe equivalences but not via the quadratic compare_names
6587         helper.
6588
6589 2016-03-03  Michael Collison  <michael.collison@linaro.org>
6590
6591         PR target/70014
6592         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
6593         for operand 1 to s_register_operand. Change predicate for operand
6594         2 to arm_not_immediate_operand.
6595
6596 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
6597
6598         * doc/tm.texi: Regenerated.
6599
6600 2016-03-02  Richard Henderson  <rth@redhat.com>
6601
6602         PR rtl-opt/67145
6603         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
6604         simplification when all args are positive non-fixed registers.
6605
6606 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6607
6608         * target.def (lra_p): Specify that new ports should use LRA.
6609
6610 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
6611
6612         PR libgomp/69555
6613         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
6614         gimplify_type_sizes the type they refer to.
6615         (omp_notice_variable): Handle reference vars to VLAs.
6616         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
6617         reference to VLA decls in the second pass instead of first pass.
6618
6619 2016-03-02  Tom de Vries  <tom@codesourcery.com>
6620
6621         PR tree-optimization/68659
6622         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
6623         new_expr == NULL_TREE.
6624         (get_new_name): Handle ADDR_EXPR.
6625
6626 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
6627
6628         PR rtl-optimization/69052
6629         * loop-invariant.c (canonicalize_address): New function.
6630         (inv_can_prop_to_addr_use): Check validity of address expression
6631         which is canonicalized by above function.
6632
6633 2016-03-02  Alan Modra  <amodra@gmail.com>
6634
6635         PR ipa/69990
6636         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
6637         larger alignment.
6638
6639 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
6640
6641         PR target/70028
6642         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
6643         (*movhi_internal): Put mask moves from and to memory separately
6644         from moves from/to GPRs.
6645
6646 2016-03-02  Richard Biener  <rguenther@suse.de>
6647
6648         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
6649         GENERIC expressions in GIMPLE.
6650
6651 2016-03-02  Richard Biener  <rguenther@suse.de>
6652
6653         * config/i386/i386.c (type_natural_mode): Fix typo.
6654
6655 2016-03-02  Nick Clifton  <nickc@redhat.com>
6656
6657         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
6658
6659 2016-03-02  Richard Biener  <rguenther@suse.de>
6660             Uros Bizjak  <ubizjak@gmail.com>
6661
6662         PR target/67278
6663         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
6664
6665 2016-03-02  Richard Biener  <rguenther@suse.de>
6666
6667         PR middle-end/67278
6668         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
6669
6670 2016-03-02  Marek Polacek  <polacek@redhat.com>
6671
6672         PR c/67854
6673         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
6674         "is promoted to" warning.
6675
6676 2016-03-01  DJ Delorie  <dj@redhat.com>
6677
6678         * config.gcc: Deprecate mep-*.
6679
6680 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
6681
6682         PR middle-end/70025
6683         * lra-constraints.c (regno_val_use_in): New.
6684         (match_reload): Use it instead of regno_use_in.
6685
6686 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
6687
6688         PR rtl-optimization/70007
6689         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
6690         references present in REG_EQUAL notes attached to non-SET patterns.
6691
6692 2016-03-01  Jeff Law  <law@redhat.com>
6693
6694         PR tree-optimization/69196
6695         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6696         Appropriately clamp the number of statements to copy when the
6697         thread path does not traverse a loop backedge.
6698
6699         PR tree-optimization/69196
6700         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6701         Do count some PHIs in the thread path against the insn count.  Decrease
6702         final statement count by one as the control statement in the last
6703         block will get removed.  Remove special cased code for handling PHIs
6704         in the last block.
6705
6706 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
6707
6708         PR target/70027
6709         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
6710         asm dialect alternatives to explicit GOTPCREL calls.
6711
6712 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
6713
6714         PR ada/70017
6715         * ira.c (do_reload): Issue warning for generic stack checking here...
6716         * reload1.c (reload): ...instead of here and streamline it.
6717
6718 2016-03-01  Nick Clifton  <nickc@redhat.com>
6719
6720         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
6721
6722 2016-03-01  Richard Biener  <rguenther@suse.de>
6723
6724         PR tree-optimization/69983
6725         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
6726         types and fall back to operand_equal_p.
6727
6728 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6729
6730         Revert
6731         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6732
6733         * config/s390/constraints.md ("jm8"): New constraint.
6734         * config/s390/predicates.md ("const_int_8bitset_operand"): New
6735         predicate.
6736         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
6737         into ...
6738         ("*setmem_long<setmem_and>"): New pattern.
6739         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
6740         into ...
6741         ("*setmem_long_31z<setmem_and>"): New pattern.
6742         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
6743         New substitution rules with the required attributes.
6744
6745
6746 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6747
6748         Revert
6749         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6750
6751         * gensupport.c (process_substs_on_one_elem): Split loop to
6752         complete mark_operands_used_in_match_dup on all expressions in the
6753         vector first.
6754         (adjust_operands_numbers): Inline into process_substs_on_one_elem
6755         and remove function.
6756
6757 2016-03-01  Richard Biener  <rguenther@suse.de>
6758
6759         PR middle-end/70022
6760         * fold-const.c (fold_indirect_ref_1): Fix range checking for
6761         vector BIT_FIELD_REF extract.
6762
6763 2016-03-01  Richard Biener  <rguenther@suse.de>
6764
6765         PR tree-optimization/69994
6766         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
6767
6768 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
6769
6770         PR tree-optimization/69956
6771         * tree-vect-stmts.c (supportable_widening_operation): Support
6772         multi-step conversion of boolean vectors.
6773         (supportable_narrowing_operation): Likewise.
6774
6775 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6776
6777         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
6778         anymore.
6779
6780 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6781
6782         * config/s390/subst.md (DSI_VI): New mode iterator.
6783         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
6784         * config/s390/vector.md ("vec_set<mode>"): Move expander before
6785         the insn definition.
6786         ("*vec_set<mode>"): Change predicate and add alternative to
6787         support only either register or const_int operands as element
6788         selector.
6789         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
6790         operands.
6791         ("vec_extract<mode>"): New expander.
6792         ("*vec_extract<mode>"): New insn definition supporting reg and
6793         const_int element selectors.
6794         ("*vec_extract<mode>_plus"): New insn definition supporting
6795         reg+const_int element selectors.
6796         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
6797         following expander+insn definition.
6798         ("<vec_shifts_name><mode>3"): New expander.
6799         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
6800
6801 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6802
6803         * config/s390/s390.md ("*tabort_1"): Change predicate to
6804         nonmemory_operand.  Add a second alternative to cover
6805         register as well as const int operands.
6806         ("*tabort_1_plus"): New pattern definition.
6807
6808 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6809
6810         * config/s390/s390.md ("*ashrdi3_cc_31")
6811         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
6812         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
6813         Merge insn definitions into ...
6814         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
6815         New pattern definition.
6816         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
6817         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
6818         ("*ashr<mode>3_and"): Merge insn definitions into ...
6819         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
6820         New pattern definition.
6821         * config/s390/subst.md ("addr_style_op_cc_subst")
6822         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
6823         substitutions patterns plus attributes.
6824         Add ashiftrt to SUBST iterator.
6825
6826 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6827
6828         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
6829         op2 to nonmemory_operand.
6830         ("*<shift>di3_31", "*<shift>di3_31_and"):
6831         Merge into single pattern definition ...
6832         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
6833         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
6834         pattern definition ...
6835         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
6836         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
6837         iterator.
6838
6839 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6840
6841         * config/s390/predicates.md (const_int_6bitset_operand): New
6842         predicate.
6843         * config/s390/s390.md: Include subst.md.
6844         ("rotl<mode>3"): New expander.
6845         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
6846         ...
6847         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
6848         * config/s390/subst.md: New file.
6849
6850 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6851
6852         * config/s390/s390.md ("op_type", "atype", "length" attributes):
6853         Remove RRR type.  It doesn't really exist.
6854         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
6855         attributes.
6856         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
6857         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
6858         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
6859         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
6860         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
6861         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
6862         `enabled' attribute.
6863
6864 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6865
6866         * gensupport.c (process_substs_on_one_elem): Split loop to
6867         complete mark_operands_used_in_match_dup on all expressions in the
6868         vector first.
6869         (adjust_operands_numbers): Inline into process_substs_on_one_elem
6870         and remove function.
6871
6872 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
6873
6874         PR target/69706
6875         * config/sparc/sparc.c (NWORDS_UP): Rename to...
6876         (CEIL_NWORDS): ...this.  Use CEIL macro.
6877         (compute_fp_layout): Adjust to above renaming.
6878         (function_arg_union_value): Likewise.
6879         (sparc_arg_partial_bytes): Likewise.
6880         (sparc_function_arg_advance): Likewise.
6881
6882 2016-02-29  Jeff Law  <law@redhat.com>
6883
6884         PR tree-optimization/70005
6885         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
6886         where an object with a boolean range is compared against a value
6887         outside [0..1].
6888
6889         PR tree-optimization/69999
6890         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
6891         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
6892         loop cleanups.
6893
6894 2016-02-29  Richard Biener  <rguenther@suse.de>
6895
6896         PR tree-optimization/69994
6897         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
6898         (get_unary_op): Look through nop conversions.
6899         (ops_equal_values_p): New function, look for equality diregarding
6900         nop conversions.
6901         (eliminate_plus_minus_pair): Use ops_equal_values_p
6902         (repropagate_negates): Do not use get_unary_op here.
6903
6904 2016-02-29  Martin Liska  <mliska@suse.cz>
6905
6906         * system.h: Poison ENABLE_CHECKING macro.
6907
6908 2016-02-29  Martin Liska  <mliska@suse.cz>
6909
6910         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
6911         is presented in dump flags.
6912         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
6913         (hsa_regalloc): Likewise.
6914
6915 2016-02-19  Richard Biener  <rguenther@suse.de>
6916
6917         PR tree-optimization/69980
6918         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
6919         permutation of those we need to keep.
6920
6921 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
6922
6923         PR target/69706
6924         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
6925         (NWORDS_UP): ...this
6926         (init_cumulative_args): Minor tweaks.
6927         (sparc_promote_function_mode): Likewise.
6928         (scan_record_type): Delete.
6929         (traverse_record_type): New function template.
6930         (classify_data_t): New structure type.
6931         (classify_registers): New inline function.
6932         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
6933         exhausted.  Instantiate traverse_record_type on classify_registers and
6934         deal with the case of a structure passed in slot #15 with no FP field
6935         in the first word.
6936         (assign_data_t): New structure type.
6937         (compute_int_layout): New static function.
6938         (compute_fp_layout): Likewise.
6939         (count_registers): New inline function.
6940         (assign_int_registers): New static function.
6941         (assign_fp_registers): Likewise.
6942         (assign_registers): New inline function.
6943         (function_arg_record_value_1): Delete.
6944         (function_arg_record_value_2): Likewise.
6945         (function_arg_record_value_3): Likewise.
6946         (function_arg_record_value): Adjust to above changes.  Instantiate
6947         traverse_record_type on count_registers to first count the number of
6948         registers to be used and then on assign_registers to assign them.
6949         (function_arg_union_value): Adjust to above renaming.
6950         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
6951         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
6952         case of a structure passed in slot #15
6953         (sparc_function_arg_advance): Likewise.
6954         (function_arg_padding): Minor tweak.
6955
6956 2016-02-29  Richard Biener  <rguenther@suse.de>
6957
6958         PR tree-optimization/69720
6959         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
6960         the adjustment_def path for possibly vectorized defs.
6961         (vect_create_epilog_for_reduction): Handle vectorized initial
6962         defs properly.
6963
6964 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
6965
6966         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
6967
6968 2016-02-27  Jeff Law  <law@redhat.com>
6969
6970         Revert
6971         2016-02-26  Richard Biener  <rguenther@suse.de>
6972                     Jeff Law  <law@redhat.com>
6973
6974         PR tree-optimization/69740
6975         * cfghooks.c (remove_edge): Request loop fixups if we delete
6976         an edge that might turn an irreducible loop into a natural
6977         loop.
6978
6979 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
6980
6981         PR rtl-optimization/69896
6982         * tree-vect-generic.c (get_compute_type): Avoid single element
6983         vector types.
6984
6985 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
6986
6987         Rename the AArch64 tuning option and related functions to enable the
6988         Newton series for the reciprocal square root to reflect its
6989         approximative characteristic.
6990
6991         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
6992         function to "aarch64_emit_approx_rsqrt".
6993         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
6994         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
6995         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
6996         (xgene1_tunings): Likewise.
6997         (use_rsqrt_p): Likewise.
6998         (aarch64_emit_swrsqrt): Use new function name.
6999         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
7000         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
7001         text explaining this option.
7002         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
7003
7004 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
7005
7006         PR target/69969
7007         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
7008         complain about -mallow-movmisalign without -mvsx if
7009         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
7010
7011 2016-02-26  Joel Sherrill  <joel@rtems.org>
7012
7013         * config.gcc: Add x86_64-*-rtems*.
7014         * gcc/config/i386/rtems-64.h: New file.
7015
7016 2016-02-26  Joel Sherrill  <joel@rtems.org>
7017
7018         * config.gcc: Add aarch64-*-rtems*.
7019         * gcc/config/aarch64/rtems.h: New file.
7020
7021 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
7022
7023         PR target/69946
7024         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
7025         shift amount using %h.  Add comment.
7026
7027 2016-02-26  Richard Biener  <rguenther@suse.de>
7028             Jeff Law  <law@redhat.com>
7029
7030         PR tree-optimization/69740
7031         * cfghooks.c (remove_edge): Request loop fixups if we delete
7032         an edge that might turn an irreducible loop into a natural
7033         loop.
7034
7035 2016-02-26  Martin Jambor  <mjambor@suse.cz>
7036
7037         PR middle-end/69920
7038         * tree-sra.c (sra_modify_assign): Do not remove loads of
7039         uninitialized aggregates to SSA_NAMEs.
7040
7041 2016-02-26  Richard Henderson  <rth@redhat.com>
7042
7043         PR target/69709
7044         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
7045         pseudo in case the target rtx matches the source of the left
7046         shift.
7047
7048 2016-02-26  Martin Jambor  <mjambor@suse.cz>
7049
7050         PR hsa/69568
7051         * hsa.h (hsa_type_packed_p): Declare.
7052         * hsa.c (hsa_type_packed_p): New function.
7053         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
7054         loads.
7055         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
7056         * hsa-brig.c (emit_basic_insn): Likewise.
7057
7058 2016-02-26  Martin Jambor  <mjambor@suse.cz>
7059
7060         pr hsa/69674
7061         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
7062         pointers.
7063         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
7064
7065 2016-02-26  Martin Jambor  <mjambor@suse.cz>
7066
7067         * hsa.h (is_a_helper): New overload for hsa_op_immed for
7068         hsa_op_with_type operands.
7069         (hsa_unsigned_type_for_type): Declare.
7070         * hsa.c (hsa_unsigned_type_for_type): New function.
7071         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
7072         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
7073         the finalizer.  Do not emit extra move.
7074
7075 2016-02-26  Martin Jambor  <mjambor@suse.cz>
7076
7077         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
7078         atomic operations in private segment.
7079
7080 2016-02-26  Martin Jambor  <mjambor@suse.cz>
7081
7082         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
7083         statements to wi->info.  Also disallow omp simd constructs.
7084         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
7085         for not gridifying.  Dump special string for omp_for.
7086
7087 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7088
7089         PR target/69245
7090         * config/aarch64/aarch64.c (aarch64_set_current_function):
7091         Save/restore target globals when switching to
7092         target_option_default_node.
7093
7094 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7095
7096         PR target/69613
7097         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
7098         Return 0 if !SHIFT_COUNT_TRUNCATED.
7099
7100 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
7101             Eric Botcazou  <ebotcazou@adacore.com>
7102
7103         PR rtl-optimization/69891
7104         * dse.c (scan_insn): If we can't figure out memset arguments
7105         or they are non-constant, call clear_rhs_from_active_local_stores.
7106
7107 2016-02-26  Martin Liska  <mliska@suse.cz>
7108
7109         * doc/extend.texi: Mention clog10, clog10f an clog10l
7110         in Builtins section.
7111
7112 2016-02-26  Martin Liska  <mliska@suse.cz>
7113
7114         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
7115         CHECKING_P.
7116         (resolve_args_picking_1): Likewise.
7117         * dwarf2out.h (struct GTY): Likewise.
7118
7119 2016-02-26  Martin Liska  <mliska@suse.cz>
7120
7121         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
7122         with flag_checking.
7123         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
7124
7125 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
7126             Martin Liska  <mliska@suse.cz>
7127
7128         * doc/install.texi: Mention --enable-valgrind-annotations.
7129
7130 2016-02-26  Richard Biener  <rguenther@suse.de>
7131
7132         PR tree-optimization/69551
7133         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
7134         looking through aliases adjust DECL_PT_UID to refer to the
7135         ultimate alias target.
7136
7137 2016-02-25  Martin Liska  <mliska@suse.cz>
7138
7139         PR middle-end/69919
7140         * alloc-pool.c (after_memory_report): New variable.
7141         * alloc-pool.h (base_pool_allocator ::release): Do not use
7142         the infrastructure if after_memory_report.
7143         * toplev.c (toplev::main): Mark after memory report.
7144
7145 2016-02-25  Richard Biener  <rguenther@suse.de>
7146
7147         PR tree-optimization/48795
7148         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
7149
7150 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
7151
7152         PR driver/68463
7153         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
7154         offloading is enabled and -fopenacc or -fopenmp is specified.
7155         (CRTOFFLOADEND): Likewise.
7156         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
7157         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
7158         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
7159         (offload_objects_file_name): New static var.
7160         (tool_cleanup): Remove offload_objects_file_name file.
7161         (find_offloadbeginend): Replace with ...
7162         (find_crtoffloadtable): ... this.
7163         (run_gcc): Remove offload_argc and offload_argv.
7164         Get offload_objects_file_name from -foffload-objects=... option.
7165         Read names of object files with offload from this file, pass them to
7166         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
7167         don't pass offloadbegin and offloadend to the linker.  Don't pass
7168         offload non-LTO files to the linker, because now they're not claimed.
7169
7170 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
7171
7172         PR ipa/69630
7173         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
7174         on builtin_unreachable.
7175
7176 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
7177
7178         PR rtl-optimization/69896
7179         * regcprop.c: Include cfgrtl.h.
7180         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
7181         than remembered mode, either delete it (if noop_move_p), or
7182         treat like copy_p but not noop_p instruction.
7183
7184 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
7185
7186         PR debug/69705
7187         * dwarf2out.c (gen_variable_die): Work around buggy LTO
7188         - allow NULL decl for Fortran DW_TAG_common_block variables.
7189
7190 2016-02-24  Jason Merrill  <jason@redhat.com>
7191
7192         * common.opt (flifetime-dse): Add -flifetime-dse=1.
7193
7194 2016-02-24  Richard Biener  <rguenther@suse.de>
7195             Jakub Jelinek  <jakub@redhat.com>
7196
7197         PR middle-end/69760
7198         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
7199         conditionally executed ops to well-defined overflow behavior.
7200
7201 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
7202
7203         PR middle-end/69915
7204         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
7205         elements.
7206
7207 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7208
7209         PR rtl-optimization/69886
7210         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
7211         argument.  Use it when checking validity of set instructions.
7212         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
7213         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
7214         callsite.
7215         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
7216         * store-motion.c (find_moveable_store): Update
7217         can_assign_to_reg_without_clobbers_p callsite.
7218
7219 2016-02-24  Richard Biener  <rguenther@suse.de>
7220
7221         PR middle-end/68963
7222         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
7223         bogus check.
7224         (record_nonwrapping_iv): Do not fall back to the low/high bound
7225         for non-constant IV bases if the stmt is not always executed.
7226
7227 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7228
7229         * config/arm/arm-cores.def (cortex-a32): New entry.
7230         * config/arm/arm-tables.opt: Regenerate.
7231         * config/arm/arm-tune.md: Regenerate.
7232         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
7233         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
7234         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
7235         for -mcpu and -mtune.
7236
7237 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7238
7239         PR target/69875
7240         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
7241         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
7242         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
7243         (atomic_loaddi_1): Delete.
7244         (atomic_loaddi): Rewrite expander using the above changes.
7245
7246 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
7247
7248         PR c/69918
7249         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
7250         2 to 3.
7251
7252 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
7253             Richard Biener  <rguenth@suse.de>
7254
7255         PR middle-end/69909
7256         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
7257         set_mem_attributes if tem is SSA_NAME which got expanded
7258         as a MEM.
7259
7260 2016-02-24  Richard Biener  <rguenther@suse.de>
7261
7262         PR tree-optimization/69907
7263         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
7264         end of permutations for BB vectorization.
7265
7266 2016-02-24  Christian Bruel  <christian.bruel@st.com>
7267
7268         * config/arm/arm-c.c (arm_option_override): Initialize
7269         target_option_current_node.
7270         * config/arm/arm.c (arm_pragma_target_parse): Replace
7271         build_target_option_node call by target_option_current_node.
7272         Set target_option_current_node.
7273         Fix comments.
7274
7275 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
7276
7277         PR target/69810
7278         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
7279         define_insn_and_split to define_insn.
7280         (zero_extendqi<mode>2_dot2): Same.
7281         (extendqi<mode>2_dot): Same.
7282         (extendqi<mode>2_dot2): Same.
7283
7284 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
7285
7286         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
7287         and add bypass for AES{D,E} and AESMC pairs.
7288         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
7289         and AESMC pairs.
7290
7291 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
7292
7293         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
7294         series for reciprocal square root in Exynos M1.
7295
7296 2016-02-23  Martin Sebor  <msebor@redhat.com>
7297
7298         PR c/69759
7299         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
7300         __builtin_alloca_with_align.
7301
7302 2016-02-23  Richard Henderson  <rth@redhat.com>
7303
7304         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
7305         (ix86_register_pragmas): Remove __seg_tls.
7306         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
7307         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
7308         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
7309         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
7310         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
7311         * doc/extend.texi (__seg_tls): Remove item.
7312
7313 2016-02-23  Richard Biener  <rguenther@suse.de>
7314
7315         * alloc-pool.h (struct allocation_object): Make id member
7316         conditional on CHECKING_P again.
7317         (get_instance): Adjust.
7318         (base_pool_allocator): Likewise.
7319
7320 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
7321
7322         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
7323         (parallelize_loops): In OpenACC kernels mode, set n_threads to
7324         zero.
7325         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
7326         flag_openacc.
7327         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
7328
7329 2016-02-23  Richard Biener  <rguenther@suse.de>
7330
7331         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
7332         * bitmap.h (struct bitmap_usage): Likewise.
7333         (bitmap_move): Declare.
7334         * bitmap.c (register_overhead): Take size_t argument.
7335         (bitmap_move): New function.
7336         * df-problems.c (df_rd_transfer_function): Use bitmap_move
7337         to properly account overhead.
7338         * tree.c (free_node): Use tree_size.
7339
7340 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
7341
7342         PR c++/69902
7343         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
7344         when inverting comparison.
7345
7346         PR c/69900
7347         * common.opt (Wunreachable-code): Add Warning flag.
7348
7349 2016-02-23  Mark Wielaard  <mjw@redhat.com>
7350             Jakub Jelinek  <jakub@redhat.com>
7351
7352         PR c/69911
7353         * cgraphunit.c (check_global_declaration): Check main_input_filename
7354         and DECL_SOURCE_FILE are not NULL.
7355
7356 2016-02-23  Martin Jambor  <mjambor@suse.cz>
7357
7358         PR tree-optimization/69666
7359         * tree-sra.c (sra_modify_assign): Do not attempt to create
7360         default_def replacements for unscalarizable regions.
7361
7362 2016-02-20  Mark Wielaard  <mjw@redhat.com>
7363
7364         PR c/28901
7365         * cgraphunit.c (check_global_declaration): Check level of
7366         warn_unused_const_variable and main_input_filename.
7367         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
7368         (-Wunused-variable): For C implies -Wunused-const-variable=1.
7369         (-Wunused-const-variable): Explain levels 1 and 2.
7370
7371 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
7372
7373         PR target/69888
7374         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
7375         identical arguments.  Formatting and spelling fixes.
7376
7377         PR target/69885
7378         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
7379         be specified.
7380
7381         PR target/69894
7382         PR target/69895
7383         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
7384         and m68k-devices.def.
7385         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
7386         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
7387
7388 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
7389
7390         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
7391         and HImode registers.
7392
7393 2016-02-22  Richard Biener  <rguenther@suse.de>
7394
7395         PR tree-optimization/69882
7396         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
7397         preserve permutations present because of gaps.
7398         (vect_supported_load_permutation_p): Always continue checking
7399         permutations after vect_attempt_slp_rearrange_stmts.
7400
7401 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
7402
7403         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
7404         min_profitable_estimate, rather than min_profitable_iters.
7405
7406 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
7407
7408         PR target/69885
7409         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
7410         SImode for last match_operand.
7411
7412 2016-02-22  Martin Liska  <mliska@suse.cz>
7413
7414         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
7415         return bitsize - 1 as the return value.
7416
7417 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
7418
7419         PR target/69806
7420         PR target/54089
7421         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
7422         Handle negative shift counts.
7423         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
7424         force_reg on the shift constant.
7425         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
7426         (lshrsi3_d): Handle negative shift counts.
7427
7428 2016-02-22  Richard Biener  <rguenther@suse.de>
7429             Tom de Vries  <tom@codesourcery.com>
7430
7431         * graph.c: Include dumpfile.h.
7432         (print_graph_cfg): Split into three overloads.
7433         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
7434
7435 2016-02-22  Tom de Vries  <tom@codesourcery.com>
7436
7437         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
7438         dump-fn.
7439
7440 2016-02-22  Richard Biener  <rguenther@suse.de>
7441
7442         PR ipa/37448
7443         * ipa-inline-transform.c (inline_call): When not updating
7444         overall summaries adjust self size by the growth estimate.
7445         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
7446         hash-set, do not update overall summaries here.  Renamed from ...
7447         (inline_to_all_callers): ... this which is now wrapping the
7448         above and performing delayed overall summary update.
7449         (early_inline_small_functions): Delay updating of the overall
7450         summary.
7451
7452 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7453
7454         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
7455         variable.
7456
7457 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
7458
7459         PR driver/69805
7460         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
7461         :%* in %:gt() argument.
7462         (greater_than_spec_func): Adjust for expecting only numbers,
7463         if there are more than two numbers, compare the last two.
7464
7465 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
7466
7467         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
7468         -Wnarrowing with -std.
7469
7470 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
7471
7472         PR c++/69851
7473         * expr.c (store_field): Don't use bit-field path if exp is
7474         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
7475         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
7476         and the assignment can be performed by bitwise copy.  Formatting
7477         fix.
7478
7479         PR middle-end/69838
7480         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
7481         call copy_reg_eh_region_note_forward on before and/or after sequences
7482         and remove note from insn if it no longer can throw.
7483
7484         PR target/69820
7485         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
7486         if TARGET_AVX512BW.
7487
7488 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7489
7490         * config/s390/vector.md: Add missing commutative operand markers
7491         to the patterns which qualify for one.
7492         * config/s390/vx-builtins.md: Likewise.
7493
7494 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7495
7496         * config/s390/vector.md (VI, VI_QHS): Add single element vector
7497         types to mode iterators.
7498         (vec_double): ... and mode attribute.
7499         * config/s390/vx-builtins.md (non_vec_int): Likewise.
7500
7501 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7502
7503         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
7504         Change the predicate of op2 from nonimmediate to general and let
7505         reload fix it if necessary.
7506
7507 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7508
7509         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
7510
7511 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7512
7513         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
7514         mode.
7515
7516 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7517
7518         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
7519         * config/s390/s390.c (s390_expand_vec_movstr): New function.
7520         * config/s390/s390.md ("movstr<P:mode>"): Call
7521         s390_expand_vec_movstr.
7522
7523 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7524
7525         * config/s390/s390.md: Add missing output modifier for operand 1
7526         to print it as address properly.
7527
7528 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7529
7530         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
7531         * config/s390/2964.md: New file.
7532         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
7533         of insn grouping attributes depending on the CPU level.
7534         (s390_get_unit_mask): New function.
7535         (s390_sched_score): Remove the OOO from the scheduling macros.
7536         Add loop to calculate a score for the instruction mix.
7537         (s390_sched_reorder): Likewise plus improve debug output.
7538         (s390_sched_variable_issue): Rename macros as above.  Calculate
7539         the unit distances after actually scheduling an insn.  Improve
7540         debug output.
7541         (s390_sched_init): Clear last_scheduled_unit_distance array.
7542         * config/s390/s390.md: Include 2964.md.
7543
7544 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
7545
7546         PR target/69671
7547         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
7548         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
7549         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
7550         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
7551         *avx512f_<code>v8div16qi2_mask_1): New insns.
7552
7553 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
7554
7555         PR target/68404
7556         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
7557         2016-02-09 change.
7558
7559         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
7560         earlyclobber from target.  Use wF constraint for fused memory
7561         address.
7562         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
7563
7564 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
7565             Martin Liska  <mliska@suse.cz>
7566
7567         PR sanitizer/69863
7568         * cfgexpand.c (asan_sanitize_stack_p): New function.
7569         (partition_stack_vars): Use the function.
7570         (expand_stack_vars): Likewise.
7571         (defer_stack_allocation): Likewise.
7572         (expand_used_vars): Likewise.
7573
7574 2016-02-18  Richard Biener  <rguenther@suse.de>
7575
7576         PR middle-end/69553
7577         * fold-const.c (operand_equal_p): Properly compare offsets for
7578         IMAGPART_EXPR and ARRAY_REF.
7579
7580 2016-02-18  Nick Clifton  <nickc@redhat.com>
7581
7582         PR target/62254
7583         PR target/69610
7584         * config/arm/arm.c (arm_option_override_internal): Disable
7585         interworking if the target does not support thumb instructions.
7586         (arm_reload_in_hi): Handle the case where a register to register
7587         move needs reloading because there is no simple pattern to handle
7588         it.
7589         (arm_reload_out_hi): Likewise.
7590
7591 2016-02-18  Richard Biener  <rguenther@suse.de>
7592
7593         PR middle-end/69854
7594         * match.pd: Don't use fold_binary or fold_unary for folding
7595         constants.
7596
7597 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
7598
7599         PR c++/69850
7600         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
7601         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
7602         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
7603         warn on gimple_no_warning_p statements.
7604
7605 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
7606
7607         * doc/extend.texi (C++ Attributes): Correct description of
7608         warn_unused type attribute.
7609
7610 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7611
7612         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
7613         correct instruction.
7614
7615 2016-02-17  Richard Biener  <rguenther@suse.de>
7616
7617         PR rtl-optimization/69609
7618         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
7619         (find_traces_1_round): When ending a trace update cached priority
7620         of successors.
7621         (bb_to_key): Use cached priority when available.
7622         (copy_bb): Initialize cached priority.
7623         (reorder_basic_blocks_software_trace_cache): Likewise.
7624
7625 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7626
7627         PR target/69161
7628         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
7629         New predicate.
7630         (aarch64_comparison_operator): Break overly long line into two.
7631         (aarch64_comparison_operation): Likewise.
7632         * config/aarch64/aarch64.md (cstorecc4): Use
7633         aarch64_comparison_operator_mode instead of
7634         aarch64_comparison_operator.
7635         (cstore<mode>4): Likewise.
7636         (aarch64_cstore<mode>): Likewise.
7637         (*cstoresi_insn_uxtw): Likewise.
7638         (cstore<mode>_neg): Likewise.
7639         (*cstoresi_neg_uxtw): Likewise.
7640
7641 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7642
7643         PR target/69161
7644         * config/arm/predicates.md (arm_comparison_operator_mode):
7645         New predicate.
7646         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
7647         instead of arm_comparison_operator.
7648         (*mov_negscc): Likewise.
7649         (*mov_notscc): Likewise.
7650         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
7651         (*thumb2_mov_negscc): Likewise.
7652         (*thumb2_mov_negscc_strict_it): Likewise.
7653         (*thumb2_mov_notscc): Likewise.
7654         (*thumb2_mov_notscc_strict_it): Likewise.
7655
7656 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
7657
7658         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
7659         Add missing return.
7660
7661 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
7662
7663         * config/visium/visium.c (machine_libfunc_index): New enum.
7664         (machine_libfuncs): New structure.
7665         (visium_libfuncs): New static variable.
7666         (TARGET_INIT_LIBFUNCS): Define to...
7667         (visium_init_libfuncs): ...this.  New function.
7668         (expand_block_move_4): Use the appropriate libfunc.
7669         (expand_block_move_2): Likewise.
7670         (expand_block_move_1): Likewise.
7671         (expand_block_set_4): Likewise.
7672         (expand_block_set_2): Likewise.
7673         (expand_block_set_1): Likewise.
7674         (visium_trampoline_init): Likewise.
7675
7676 2016-02-17  Nick Clifton  <nickc@redhat.com>
7677
7678         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
7679         TI's devices.csv file as of March 2016.
7680
7681 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7682
7683         PR Target/48344
7684         * opts-global.c (handle_common_deferred_options): Introduce and
7685         initialize two global variables to remember command-line options
7686         specifying a stack-limiting register.
7687         * opts.h: Add extern declarations of the two new global variables.
7688         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
7689         variable based on the values of the two new global variables.
7690
7691 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7692
7693         PR c/69835
7694         * common.opt (Wnonnull-compare): New warning.
7695         * doc/invoke.texi (-Wnonnull): Remove text about comparison
7696         of arguments against NULL.
7697         (-Wnonnull-compare): Document.
7698         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
7699         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
7700         * passes.def (pass_warn_nonnull_compare): Add.
7701         * gimple-ssa-nonnull-compare.c: New file.
7702
7703 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7704
7705         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
7706         AARCH64_EXTRA_TUNE_RECIP_SQRT.
7707
7708 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7709
7710         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
7711         reciprocal sqrt for -mlow-precision-recip-sqrt.
7712
7713 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7714             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7715
7716         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
7717         always use lane loads to construct non-constant vectors.
7718
7719 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7720
7721         * config/aarch64/aarch64.md
7722         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
7723         constraints for operand 3.
7724         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
7725
7726 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7727             Richard Biener  <rguenther@suse.de>
7728
7729         PR tree-optimization/69820
7730         * tree-vect-patterns.c (type_conversion_p): Return false if
7731         *orig_type is unsigned single precision or boolean.
7732         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
7733         Formatting fix.
7734
7735 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7736
7737         PR rtl-optimization/69764
7738         PR rtl-optimization/69771
7739         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
7740         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
7741
7742 2016-02-16  Richard Biener  <rguenther@suse.de>
7743
7744         PR tree-optimization/69776
7745         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
7746         sets from caller.
7747         (indirect_refs_may_alias_p): Likewise.
7748         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
7749         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
7750         according to tbaa_p.
7751         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
7752         (optimize_stmt): For redundant store discovery do not allow tbaa.
7753
7754 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
7755
7756         PR tree-optimization/69714
7757         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
7758         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
7759
7760 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
7761
7762         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
7763         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
7764         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
7765         * config/arc/arc.c (arc_init): Check FPU options.
7766         (get_arc_condition_code): Handle new CC_FPU* modes.
7767         (arc_select_cc_mode): Likewise.
7768         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
7769         register pair only. Allow access for ARCv2 accumulator.
7770         (gen_compare_reg): Whenever we have FPU support use FPU compare
7771         instructions.
7772         (arc_reorg): Don't generate brcc insns when FPU compare
7773         instructions are involved.
7774         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
7775         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
7776         floating point emulation.
7777         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
7778         (REVERSE_CONDITION): Add new CC_FPU* modes.
7779         (TARGET_FP_SP_BASE): Define.
7780         (TARGET_FP_DP_BASE): Likewise.
7781         (TARGET_FP_SP_FUSED): Likewise.
7782         (TARGET_FP_DP_FUSED): Likewise.
7783         (TARGET_FP_SP_CONV): Likewise.
7784         (TARGET_FP_DP_CONV): Likewise.
7785         (TARGET_FP_SP_SQRT): Likewise.
7786         (TARGET_FP_DP_SQRT): Likewise.
7787         (TARGET_FP_DP_AX): Likewise.
7788         * config/arc/arc.md (ARCV2_ACC): New constant.
7789         (type): New fpu type attribute.
7790         (SDF): Conditional iterator.
7791         (cstore<mode>, cbranch<mode>): Change expand condition.
7792         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
7793         handles FPU/FPX cases as well.
7794         * config/arc/arc.opt (mfpu): New option.
7795         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
7796         Renamed.
7797         (adddf3, muldf3, subdf3): Removed.
7798         * config/arc/predicates.md (proper_comparison_operator): Recognize
7799         CC_FPU* modes.
7800         * config/arc/fpu.md: New file.
7801         * doc/invoke.texi (ARC Options): Document mfpu option.
7802
7803 2016-02-16  Richard Biener  <rguenther@suse.de>
7804
7805         PR rtl-optimization/69291
7806         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
7807         noce_operand_ok check.
7808
7809 2016-02-16  Tom de Vries  <tom@codesourcery.com>
7810
7811         PR lto/67709
7812         * omp-low.c (simd_clone_create): Remove call to
7813         symtab->call_cgraph_insertion_hooks.
7814
7815 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7816
7817         PR tree-optimization/69802
7818         * tree-ssa-reassoc.c (update_range_test): If op is
7819         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
7820         op == 1 test of precision 1 integral op, otherwise handle
7821         that case as op itself.  Fix up formatting.
7822         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
7823         up formatting.
7824
7825 2016-02-16  Richard Biener  <rguenther@suse.de>
7826
7827         PR tree-optimization/69586
7828         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
7829         types for conversion sources.
7830
7831 2016-02-16  Richard Biener  <rguenther@suse.de>
7832
7833         PR middle-end/69801
7834         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
7835         mask OEP_ADDRESS_OF.
7836
7837 2016-02-16  Alan Modra  <amodra@gmail.com>
7838
7839         PR target/68973
7840         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
7841         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
7842         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
7843         (p8_mtvsrwz): New.
7844         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
7845         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
7846         (p8_fmrgow_<mode>): Likewise.
7847         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
7848         changes.
7849         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
7850         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
7851         to use movdi_internal64.  Remove op0_di.
7852         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
7853
7854 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
7855
7856         Add support for the FCCMP insn types
7857
7858         * config/aarch64/aarch64.md (fccmp): Change insn type.
7859         (fccmpe): Likewise.
7860         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
7861         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
7862         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
7863         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
7864         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
7865         * config/arm/types.md (fccmps): Add new insn type.
7866         (fccmpd): Likewise.
7867
7868 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7869
7870         * alias.c (get_alias_set): Fix a typo in comment.
7871
7872 2016-02-15  Richard Biener  <rguenther@suse.de>
7873
7874         PR tree-optimization/69595
7875         * match.pd: Complete range test simplification to true.
7876
7877 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
7878
7879         PR rtl-optimization/69648
7880         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
7881         pic_offset_table_rtx.
7882
7883         PR rtl-optimization/69752
7884         * ira.c (update_equiv_regs): When looking for more than a single SET,
7885         also take other side effects into account.
7886
7887 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
7888
7889         * config/s390/s390.c (s390_function_profiler): Add a new sequence
7890         for z900+ CPUs in 31-bit mode.
7891
7892 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
7893
7894         * common/config/s390/s390-common.c (s390_supports_split_stack):
7895         New function.
7896         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
7897         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
7898         * config/s390/s390.c (struct machine_function): New field
7899         split_stack_varargs_pointer.
7900         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
7901         in s390_emit_prologue.
7902         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
7903         vararg pointer.
7904         (morestack_ref): New global.
7905         (SPLIT_STACK_AVAILABLE): New macro.
7906         (s390_expand_split_stack_prologue): New function.
7907         (s390_live_on_entry): New function.
7908         (s390_va_start): Use split-stack vararg pointer if appropriate.
7909         (s390_asm_file_end): Emit the split-stack note sections.
7910         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
7911         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
7912         (UNSPECV_SPLIT_STACK_CALL): New unspec.
7913         (UNSPECV_SPLIT_STACK_DATA): New unspec.
7914         (split_stack_prologue): New expand.
7915         (split_stack_space_check): New expand.
7916         (split_stack_data): New insn.
7917         (split_stack_call): New expand.
7918         (split_stack_call_*): New insn.
7919         (split_stack_cond_call): New expand.
7920         (split_stack_cond_call_*): New insn.
7921
7922 2016-02-15  Richard Biener  <rguenther@suse.de>
7923
7924         PR tree-optimization/69783
7925         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7926         Add trivially correct cases.
7927
7928 2016-02-15  Tom de Vries  <tom@codesourcery.com>
7929
7930         PR lto/69655
7931         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
7932         do_force_output.
7933         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
7934
7935 2016-02-15  Richard Biener  <rguenther@suse.de>
7936
7937         PR tree-optimization/69776
7938         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
7939         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
7940         indicate whether we can use TBAA to disambiguate against stores.
7941         Use alias-set zero if not.
7942         (visit_reference_op_store): Do not use TBAA when looking up
7943         redundant stores.
7944         * tree-ssa-pre.c (compute_avail): Use TBAA here.
7945         (eliminate_dom_walker::before_dom_children): But not when looking
7946         up redundant stores.
7947
7948 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
7949
7950         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
7951
7952 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7953
7954         *  config/i386/znver1.md
7955         (znver1_pop, znver1_pop_mem,
7956         znver1_load_imov_double_store,
7957         znver1_load_imov_direct_store,
7958         znver1_load_imov_direct_load,
7959         znver1_load_imov_double_load): Add new.
7960         (znver1_insn, znver1_insn_load): Add icmov type.
7961         (znver1_sseavx_fma,
7962         znver1_sseavx_fma_load,
7963         znver1_avx256_fma,
7964         znver1_avx256_fma_load): Fix pipe usage.
7965
7966 2016-02-14  Alan Modra  <amodra@gmail.com>
7967
7968         PR target/68973
7969         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
7970         with an invalid hard reg, reload just the reg not the entire
7971         pre/post-inc/dec address expression.
7972
7973 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
7974
7975         PR target/67260
7976         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
7977         fixed R1_REG scratch reg.
7978         (sibcall_value_pcrel_fdpic): Likewise.
7979
7980 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
7981
7982         PR target/67636
7983         PR target/64345
7984         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
7985
7986 2016-02-12  Walter Lee  <walt@tilera.com>
7987
7988         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
7989         * config/tilegx/t-tilegx: Likewise.
7990
7991 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
7992
7993         PR other/69554
7994         * diagnostic-show-locus.c (struct line_span): New struct.
7995         (layout::get_first_line): Delete.
7996         (layout::get_last_line): Delete.
7997         (layout::get_num_line_spans): New member function.
7998         (layout::get_line_span): Likewise.
7999         (layout::print_heading_for_line_span_index_p): Likewise.
8000         (layout::get_expanded_location): Likewise.
8001         (layout::calculate_line_spans): Likewise.
8002         (layout::m_first_line): Delete.
8003         (layout::m_last_line): Delete.
8004         (layout::m_line_spans): New field.
8005         (layout::layout): Update comment.  Replace m_first_line and
8006         m_last_line with m_line_spans, replacing their initialization
8007         with a call to calculate_line_spans.
8008         (diagnostic_show_locus): When printing source lines and
8009         annotations, rather than looping over a single span
8010         of lines, instead loop over each line_span within
8011         the layout, with an inner loop over the lines within them.
8012         Call the context's start_span callback when changing line spans.
8013         * diagnostic.c (diagnostic_initialize): Initialize start_span.
8014         (diagnostic_build_prefix): Break out the building of the location
8015         part of the string into...
8016         (diagnostic_get_location_text): ...this new function, rewriting
8017         it from nested ternary expressions to a sequence of "if"
8018         statements.
8019         (default_diagnostic_start_span_fn): New function.
8020         * diagnostic.h (diagnostic_start_span_fn): New typedef.
8021         (diagnostic_context::start_span): New field.
8022         (default_diagnostic_start_span_fn): New prototype.
8023
8024 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
8025
8026         PR driver/69779
8027         * gcc.c (driver::finalize): Fix cleanup of "specs".
8028
8029 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
8030
8031         PR driver/69265
8032         PR driver/69453
8033         * gcc.c (driver::driver): Initialize m_option_suggestions.
8034         (driver::~driver): Clean up m_option_suggestions.
8035         (suggest_option): Convert to...
8036         (driver::suggest_option): ...this, and split out into
8037         driver::build_option_suggestions and find_closest_string.
8038         (driver::build_option_suggestions): New function, from
8039         first half of suggest_option.  Special-case
8040         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
8041         the sanitizer_opts array.  For options of enum types, add the
8042         various enum values to the candidate strings.
8043         (driver::handle_unrecognized_options): Remove "const".
8044         * gcc.h (driver::handle_unrecognized_options): Likewise.
8045         (driver::build_option_suggestions): New decl.
8046         (driver::suggest_option): New decl.
8047         (driver::m_option_suggestions): New field.
8048         * opts-common.c (add_misspelling_candidates): New function.
8049         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
8050         and make non-static.
8051         * opts.h (sanitizer_opts): New array decl.
8052         (add_misspelling_candidates): New function decl.
8053         * spellcheck.c (find_closest_string): New function.
8054         * spellcheck.h (find_closest_string): New function decl.
8055
8056 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
8057
8058         PR rtl-optimization/69764
8059         PR rtl-optimization/69771
8060         * optabs.c (expand_binop_directly): For shift_optab_p, force
8061         convert_modes with VOIDmode if xop1 has VOIDmode.
8062
8063 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
8064
8065         PR target/69729
8066         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
8067         to correctly determine instrumentation thunks.
8068
8069 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
8070
8071         PR ipa/69241
8072         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
8073         type by reference, force lhs on the call.
8074
8075         PR ipa/68672
8076         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
8077         Compute retval and retbnd early in all cases if split_part_return_p
8078         and return_bb is not EXIT.  Remove all clobber stmts and reset
8079         all debug stmts that refer to SSA_NAMEs defined in split part,
8080         except if it is retval, in that case replace the old retval with the
8081         lhs of the call to the split part.
8082
8083 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
8084
8085         revert:
8086         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
8087
8088         PR middle-end/66726
8089         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
8090         whose result is used in PHI.
8091         (maybe_optimize_range_tests): Likewise.
8092         (final_range_test_p): Likweise.
8093
8094 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
8095
8096         PR middle-end/66726
8097         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
8098         whose result is used in PHI.
8099         (maybe_optimize_range_tests): Likewise.
8100         (final_range_test_p): Likweise.
8101
8102 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
8103
8104         * cgraph.c: Spelling fixes - behaviour -> behavior and
8105         neighbour -> neighbor.
8106         * target.def: Likewise.
8107         * sel-sched.c: Likewise.
8108         * config/mips/mips.c: Likewise.
8109         * config/arc/arc.md: Likewise.
8110         * config/arm/cortex-a57.md: Likewise.
8111         * config/arm/arm.c: Likewise.
8112         * config/arm/neon.md: Likewise.
8113         * config/arm/arm-c.c: Likewise.
8114         * config/vms/vms-c.c: Likewise.
8115         * config/s390/s390.c: Likewise.
8116         * config/i386/znver1.md: Likewise.
8117         * config/i386/i386.c: Likewise.
8118         * config/ia64/hpux-unix2003.h: Likewise.
8119         * config/msp430/msp430.md: Likewise.
8120         * config/rx/rx.c: Likewise.
8121         * config/rx/rx.md: Likewise.
8122         * config/aarch64/aarch64-simd.md: Likewise.
8123         * config/aarch64/aarch64.c: Likewise.
8124         * config/nvptx/nvptx.c: Likewise.
8125         * config/bfin/bfin.c: Likewise.
8126         * config/cris/cris.opt: Likewise.
8127         * config/rs6000/rs6000.c: Likewise.
8128         * target.h: Likewise.
8129         * spellcheck.c: Likewise.
8130         * ira-build.c: Likewise.
8131         * tree-inline.c: Likewise.
8132         * builtins.c: Likewise.
8133         * lra-constraints.c: Likewise.
8134         * explow.c: Likewise.
8135         * hwint.h: Likewise.
8136         * targhooks.c: Likewise.
8137         * tree-vect-data-refs.c: Likewise.
8138         * expr.c: Likewise.
8139         * doc/tm.texi: Likewise.
8140         * doc/extend.texi: Likewise.
8141         * doc/install.texi: Likewise.
8142         * doc/md.texi: Likewise.
8143         * tree-ssa-tail-merge.c: Likewise.
8144         * sched-int.h: Likewise.
8145         * match.pd: Likewise.
8146         * sched-ebb.c: Likewise.
8147         * target.def (omit_struct_return_reg): Likewise.
8148         * gimple-ssa-isolate-paths.c: Likewise.
8149         (find_implicit_erroneous_behaviour): Renamed to...
8150         (find_implicit_erroneous_behavior): ... this.
8151         (find_explicit_erroneous_behaviour): Renamed to...
8152         (find_explicit_erroneous_behavior): ... this.
8153         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
8154
8155 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
8156
8157         PR rtl-optimization/64682
8158         PR rtl-optimization/69567
8159         PR rtl-optimization/69737
8160         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
8161         in I2 as well, just lose it.
8162
8163 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8164
8165         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
8166         New variable.
8167         (aarch64_last_printed_tune_string): Likewise.
8168         (aarch64_declare_function_name): Only output .arch assembler
8169         directive if it will be different from the previously output
8170         directive.  Same for .tune comment but only if -dA is set.
8171         (aarch64_start_file): New function.
8172         (TARGET_ASM_FILE_START): Define.
8173
8174 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
8175
8176         PR plugins/69758
8177         * Makefile.in (PLUGIN_HEADERS): Add params.list.
8178
8179 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
8180
8181         PR target/65313
8182         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
8183         -Wmaybe-uninitialized warning.
8184
8185 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
8186
8187         PR target/69713
8188         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
8189
8190 2016-02-11  Richard Biener  <rguenther@suse.de>
8191
8192         PR rtl-optimization/69291
8193         * ifcvt.c (noce_try_store_flag_constants): Do not allow
8194         subexpressions affected by changing the result.
8195
8196 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
8197
8198         PR target/69148
8199         * lra-constraints.c (curr_insn_transform): Find in/out operands
8200         for secondary memory moves.  Update dups.
8201
8202 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
8203
8204         PR tree-optimization/69652
8205         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
8206         to nested loop, did source re-formatting, skip debug statements,
8207         add check on statement with volatile operand, remove dead scalar
8208         statements.
8209
8210 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
8211             Patrick Palka  <ppalka@gcc.gnu.org>
8212
8213         PR ipa/69241
8214         PR c++/69649
8215         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
8216         calls if the return type is TREE_ADDRESSABLE.
8217         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
8218         * ipa-split.c (split_function): Fix doubled "we" in comment.
8219         Use void return type for the split part even if
8220         !split_point->split_part_set_retval.
8221
8222 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
8223
8224         PR tree-optimization/68021
8225         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
8226         when computing the value of biv cand by itself.
8227
8228 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
8229
8230         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
8231         (cortexa57_tunings): Likewise.
8232         (cortexa72_tunings): Likewise.
8233         (arch_macro_fusion_pair_p): Add support for AES fusion.
8234         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
8235         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
8236         Allow virtual registers before reload so early scheduling works.
8237         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
8238         correct latency and pipeline.
8239         (cortex_a57_crypto_complex): Likewise.
8240         (cortex_a57_crypto_xor): Likewise.
8241         (define_bypass): Add AES bypass.
8242
8243 2016-02-10  Richard Biener  <rguenther@suse.de>
8244
8245         PR tree-optimization/69726
8246         * passes.def: Add DCE pass before late uninit.
8247         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
8248         really fixup if-conversions job.
8249
8250 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
8251
8252         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
8253         (arm_cortex_a57_tune): Likewise.
8254         (aarch_macro_fusion_pair_p): Add support for AES fusion.
8255         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
8256
8257 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
8258
8259         * timevar.def (TV_PHASE_DBGINFO): Delete.
8260         (TV_PHASE_CHECK_DBGINFO): Likewise.
8261         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
8262
8263 2016-02-10  Richard Biener  <rguenther@suse.de>
8264
8265         PR tree-optimization/69719
8266         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
8267         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
8268
8269 2016-02-09  Andrew Pinski  <apinski@cavium.com>
8270
8271         PR tree-opt/69282
8272         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
8273         get_vcond_mask_icode returns false.
8274
8275 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
8276
8277         PR target/68404
8278         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
8279         an ADDIS that adds a pointer to a large constant that sets the
8280         upper16 bits with a load operation.
8281
8282 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
8283
8284         PR target/68532
8285         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
8286         order.
8287         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
8288         endian.
8289         (vzipq_s16): Likewise.
8290         (vzipq_s32): Likewise.
8291         (vzipq_f32): Likewise.
8292         (vzipq_u8): Likewise.
8293         (vzipq_u16): Likewise.
8294         (vzipq_u32): Likewise.
8295         (vzipq_p8): Likewise.
8296         (vzipq_p16): Likewise.
8297
8298 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
8299
8300         PR target/68532
8301         * config/arm/arm.c (neon_endian_lane_map): New function.
8302         (neon_vector_pair_endian_lane_map): New function.
8303         (arm_evpc_neon_vuzp): Allow for big endian lane order.
8304         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
8305         endian.
8306         (vuzpq_s16): Likewise.
8307         (vuzpq_s32): Likewise.
8308         (vuzpq_f32): Likewise.
8309         (vuzpq_u8): Likewise.
8310         (vuzpq_u16): Likewise.
8311         (vuzpq_u32): Likewise.
8312         (vuzpq_p8): Likewise.
8313         (vuzpq_p16): Likewise.
8314
8315 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
8316
8317         PR target/69634
8318         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
8319         debug insns.
8320
8321 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
8322
8323         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
8324         truncate const_int operand 1 to QImode.
8325
8326 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
8327
8328         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
8329         corresponding to an abnormal edge.
8330
8331 2016-02-09  Tom de Vries  <tom@codesourcery.com>
8332
8333         PR tree-optimization/69599
8334         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
8335         function.
8336         (find_func_aliases_for_builtin_call, find_func_clobbers)
8337         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
8338         partition.
8339
8340 2016-02-09  Richard Biener  <rguenther@suse.de>
8341
8342         PR tree-optimization/69715
8343         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
8344         LHS on calls as non-rewritable.
8345
8346 2016-02-09  Tom de Vries  <tom@codesourcery.com>
8347
8348         PR lto/69707
8349         * lto-wrapper.c (append_diag_options): New function.
8350         (compile_offload_image): Call append_diag_options.
8351
8352 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
8353
8354         PR other/69722
8355         * doc/extend.texi (Flag Output Operands): Correct sectioning.
8356         Minor copy-edit to fix verb tenses.
8357
8358 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
8359
8360         PR tree-optimization/69209
8361         * ipa-split.c (split_function): If split part is not
8362         returning retval, retval has gimple type but is not
8363         gimple value, force it into a SSA_NAME first.
8364
8365 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
8366
8367         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
8368         outdated section.
8369
8370 2016-02-08  Jason Merrill  <jason@redhat.com>
8371
8372         PR c++/69631
8373         * convert.c (convert_to_integer_1): Check dofold on truncation
8374         distribution.
8375         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
8376         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
8377         Rename from *_nofold.
8378         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
8379         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
8380
8381 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
8382
8383         PR target/60410
8384         * tree.c (build_common_tree_nodes): Remove short_double argument.
8385         All callers changed.
8386         * tree.h (build_common_tree_nodes): Adjust declaration.
8387         * doc/invoke.texi (-fshort-double): Remove documentation.
8388         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8389         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
8390         * lto-wrapper.c (merge_and_complain, append_compiler_options)
8391         (append_linker_options): Don't handle OPT_fshort_double.
8392
8393         PR rtl-optimization/68730
8394         * lra-remat.c (insn_to_cand_activation): New static variable.
8395         (lra_remat): Allocate and free it.
8396         (create_cand): New arg activation. Initialize a field in
8397         insn_to_cand_activation if it is nonnull.
8398         (create_cands): Pass the activation insn to create_cand when making
8399         a candidate involving an output reload.  Reorganize code a little.
8400         (do_remat): Keep track of active status of candidates in a separate
8401         bitmap.
8402
8403 2016-02-08  Richard Biener  <rguenther@suse.de>
8404
8405         PR tree-optimization/69719
8406         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
8407         Properly use absolute of the difference of the two offsets to
8408         compare or adjust the segment length.
8409
8410 2016-02-08  Richard Biener  <rguenther@suse.de>
8411             Jeff Law  <law@redhat.com>
8412
8413         PR target/68273
8414         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
8415         types for anonymous SSA names.
8416
8417 2016-02-08   Richard Biener  <rguenther@suse.de>
8418
8419         PR rtl-optimization/69274
8420         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
8421
8422 2016-02-08  Jeff Law  <law@redhat.com>
8423
8424         PR tree-optimization/65917
8425         * tree-ssa-dom.c (record_temporary_equivalences): Record both
8426         equivalences from if (x == y) style conditionals.
8427         (loop_depth_of_name): Remove.
8428         (record_equality): Remove loop depth check.
8429         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
8430         (const_and_copies::record_const_or_copy_raw): New member function.
8431         * tree-ssa-scopedtables.c
8432         (const_and_copies::record_const_or_copy_raw): New, factored out of
8433         (const_and_copies::record_const_or_copy): Call new member function.
8434
8435 2016-02-05  Jeff Law  <law@redhat.com>
8436
8437         PR tree-optimization/68541
8438         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
8439         (count_stmts_in_block): New function.
8440         (poor_ifcvt_candidate_code): Likewise.
8441         (is_feasible_trace): Add some heuristics to determine when path
8442         splitting is profitable.
8443         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
8444         is a diamond with a single exit.
8445
8446 2016-02-05  Martin Sebor  <msebor@redhat.com>
8447
8448         PR c++/69662
8449         * doc/invoke.texi: Update -Wplacement-new to take an optional
8450         argument.
8451
8452 2016-02-06  Richard Henderson  <rth@redhat.com>
8453
8454         PR c/69643
8455         * tree.c (tree_nop_conversion_p): Do not strip casts into or
8456         out of non-standard address spaces.
8457
8458 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
8459
8460         PR rtl-optimization/69691
8461         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
8462
8463 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
8464
8465         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
8466         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
8467         (*ieee128_mfvsrd_64bit): Likewise.
8468         (*ieee128_mfvsrd_32bit): Likewise.
8469
8470 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
8471
8472         PR target/69369
8473         Revert r232560:
8474         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
8475
8476         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
8477         instrumented_version.
8478
8479 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
8480
8481         * doc/invoke.texi (Optimize Options): In table of --param options
8482         rename second occurrence of tracer-min-branch-ratio to
8483         tracer-min-branch-probability, rename
8484         tracer-min-branch-ratio-feedback to
8485         tracer-min-branch-probability-feedback and clarify description,
8486         rename sched-spec-state-edge-prob-cutoff to
8487         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
8488         to selsched-insns-to-rename, rename lto-minpartition to
8489         lto-min-partition, delete reorder-blocks-duplicate and
8490         reorder-blocks-duplicate-feedback.
8491
8492 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8493
8494         * config/s390/s390.c (s390_register_info_set_ranges): Remove
8495         superfluous loops.
8496
8497 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8498
8499         * doc/extend.texi: S/390: Correct some typos.
8500
8501 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8502
8503         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
8504
8505 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8506
8507         PR target/69625
8508         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
8509         (s390_register_info_gprtofpr): Use new macros above.
8510         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
8511         its name.
8512         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
8513         its name.  Adjust restore and save gpr ranges.
8514         (s390_register_info_set_ranges): New function.
8515         (s390_register_info): Use new macros above.  Call
8516         s390_register_info_set_ranges.
8517         (s390_optimize_register_info): Likewise.
8518         (s390_hard_regno_rename_ok): Use new macros.
8519         (s390_hard_regno_scratch_ok): Likewise.
8520         (s390_emit_epilogue): Likewise.
8521         (s390_can_use_return_insn): Likewise.
8522         (s390_optimize_prologue): Likewise.
8523         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
8524
8525 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
8526
8527         PR bootstrap/69677
8528         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
8529         alignment fixes.
8530         (ix86_option_override_internal): Disable TARGET_STV even for
8531         -m{incoming,preferred}-stack-boundary=3.
8532
8533 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8534
8535         * config.gcc: Mark deprecated rtems targets as obsolete.
8536
8537 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
8538
8539         PR rtl-optimization/64682
8540         PR rtl-optimization/69567
8541         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
8542         before I2 only if the register is both used and set in I2.
8543
8544 2016-02-04  DJ Delorie  <dj@redhat.com>
8545
8546         * config/msp430/msp430.c (msp430_start_function): Add function type.
8547
8548 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
8549
8550         PR fortran/69368
8551         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
8552
8553 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
8554
8555         PR rtl-optimization/69577
8556         Revert:
8557         2015-10-29  Richard Henderson  <rth@redhat.com>
8558
8559         PR target/68124
8560         PR rtl-opt/67609
8561         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
8562         sse check to the exact conditions of PR 67609.
8563
8564 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
8565
8566         PR target/69667
8567         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
8568         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
8569         not allowed into the traditional Altivec registers.
8570         (movtd_64bit_nodm): Likewise.
8571         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
8572
8573 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
8574
8575         * config/aarch64/cortex-a57-fma-steering.c
8576         (aarch64_register_fma_steering): Remove "static" from arguments
8577         to register_pass.
8578
8579 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
8580
8581         PR target/69619
8582         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
8583         twice when complex.
8584
8585 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
8586
8587         * doc/invoke.texi: Delete -mno-fma4.
8588
8589 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
8590
8591         PR rtl-optimization/69577
8592         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
8593         (find_subregs_of_mode): Update accordingly.  Iterate over partial
8594         definitions.
8595
8596 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
8597
8598         * config/arm/arm-protos.h (neon_reinterpret): Remove.
8599         * config/arm/arm.c (neon_reinterpret): Remove.
8600         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
8601         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
8602         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
8603         vreinterpretti): Remove.
8604         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
8605         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
8606         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
8607         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
8608         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
8609         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
8610         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
8611         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
8612         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
8613         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
8614         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
8615         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
8616         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
8617         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
8618         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
8619         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
8620         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
8621         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
8622         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
8623         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
8624         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
8625         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
8626         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
8627         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
8628         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
8629         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
8630         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
8631         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
8632         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
8633         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
8634         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
8635         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
8636         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
8637         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
8638         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
8639         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
8640         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
8641         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
8642         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
8643         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
8644         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
8645         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
8646         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
8647         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
8648         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
8649         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
8650         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
8651         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
8652         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
8653         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
8654         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
8655         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
8656         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
8657         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
8658         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
8659         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
8660         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
8661         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
8662         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
8663         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
8664         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
8665         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
8666         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
8667         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
8668         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
8669         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
8670         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
8671         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
8672         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
8673         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
8674         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
8675         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
8676         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
8677         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
8678         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
8679         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
8680         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
8681         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
8682         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
8683         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
8684         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
8685         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
8686         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
8687         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
8688         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
8689         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
8690         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
8691         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
8692         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
8693         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
8694         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
8695         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
8696         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
8697         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
8698         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
8699         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
8700         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
8701         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
8702         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
8703         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
8704         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
8705         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
8706         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
8707
8708 2016-02-04  Martin Liska  <mliska@suse.cz>
8709
8710         PR sanitizer/69276
8711         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
8712         that are gimple_store_p.
8713         (maybe_instrument_call): Likewise.
8714
8715 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
8716
8717         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
8718         register scaling out of memory reference and comment why.
8719
8720 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8721
8722         PR target/65932
8723         PR target/67714
8724         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
8725         folding the source of a SET.
8726
8727 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8728
8729         PR target/65932
8730         PR target/67714
8731         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
8732         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
8733
8734 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
8735
8736         PR target/65932
8737         PR target/67714
8738         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
8739         HImode.
8740
8741 2016-02-04  Christian Bruel  <christian.bruel@st.com>
8742
8743         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
8744         * config/arm/arm.c (arm_set_current_function): Likewise.
8745
8746 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
8747             Ilya Enkovich  <enkovich.gnu@gmail.com>
8748             H.J. Lu  <hongjiu.lu@intel.com>
8749
8750         PR target/69454
8751         * config/i386/i386.c (convert_scalars_to_vector): Remove
8752         stack alignment fixes.
8753         (ix86_option_override_internal): Disable TARGET_STV if stack
8754         might not be aligned enough.
8755         (ix86_minimum_alignment): Assert that TARGET_STV is false.
8756
8757 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
8758
8759         * gcc/config/i386/x86-tune.def: Disable default prefetching
8760         for -march=znver1.
8761
8762 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
8763             Vladimir Makarov  <vmakarov@redhat.com>
8764
8765         PR target/69461
8766         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
8767         in validating fused toc addresses.
8768
8769 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
8770
8771         PR c/69627
8772         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
8773         range->m_caret fields if range->m_show_caret_p is false.
8774
8775         PR target/69644
8776         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
8777         Force oldval into register if it does not satisfy reg_or_short_operand
8778         predicate.  Fix up formatting.
8779
8780 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
8781             Alexandre Oliva  <aoliva@redhat.com>
8782
8783         PR target/69461
8784         * lra-constraints.c (simplify_operand_subreg): Check additionally
8785         address validity after potential reloading.
8786         (process_address_1): Check insns validity.  In case of failure do
8787         nothing.
8788
8789 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
8790
8791         PR target/69118
8792         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
8793         Fix target.
8794
8795 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
8796
8797         * wide-int.cc (canonize_uhwi): New function.
8798         (wi::divmod_internal): Use it.
8799
8800 2016-02-02  James Norris  <jnorris@codesourcery.com
8801
8802         * gimplify.c (omp_notice_variable): Add usage check.
8803
8804 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
8805
8806         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
8807         like LE, GE, LT, GT when emitting relational operator.
8808
8809 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
8810
8811         * ira-costs.c (find_costs_and_classes): Add extra argument.
8812         * target.def (ira_change_pseudo_allocno_class): Add parameter.
8813         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
8814         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
8815         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
8816         Add best_class parameter, and return it if not ALL_REGS.
8817         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
8818         Add parameter.
8819         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
8820         Update target hook.
8821
8822 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
8823
8824         * config/aarch64/aarch64.c
8825         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
8826         (aarch64_ira_change_pseudo_allocno_class): New function.
8827
8828 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
8829
8830         PR target/67032
8831         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
8832
8833 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8834
8835         * config/avr/avr.c (avr_option_override): Set
8836         PARAM_ALLOW_STORE_DATA_RACES to 1.
8837
8838 2016-02-02  Richard Biener  <rguenther@suse.de>
8839
8840         PR tree-optimization/69595
8841         * match.pd: Add range test simplifications to true/false.
8842
8843 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
8844
8845         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
8846         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
8847         instead.
8848
8849 2016-02-02  Richard Biener  <rguenther@suse.de>
8850
8851         PR tree-optimization/69606
8852         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
8853         info on the result before moving a stmt.
8854
8855 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
8856
8857         PR middle-end/68542
8858         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
8859         branch with vector comparison.
8860         * config/i386/sse.md (VI48_AVX): New mode iterator.
8861         (define_expand "cbranch<mode>4): Add support for conditional branch
8862         with vector comparison.
8863         * tree-vect-loop.c (optimize_mask_stores): New function.
8864         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
8865         has_mask_store field of vect_info.
8866         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
8867         vectorized loops having masked stores after vec_info destroy.
8868         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
8869         correspondent macros.
8870         (optimize_mask_stores): Add prototype.
8871
8872 2016-02-02  Alan Modra  <amodra@gmail.com>
8873
8874         PR target/69548
8875         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
8876         allow subregs.
8877
8878 2016-02-02  Alan Modra  <amodra@gmail.com>
8879
8880         PR target/68662
8881         * config/rs6000/rs6000.c (need_toc_init): New var, set it
8882         whenever toc_label_name used.
8883         (rs6000_file_start): Don't set up toc section here,
8884         (rs6000_output_function_epilogue): do so here instead,
8885         (rs6000_xcoff_file_start): and here.
8886         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
8887         (load_toc_aix_di): Likewise.
8888
8889 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
8890
8891         PR rtl-optimization/69592
8892         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
8893         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
8894         (num_sign_bit_copies_binary_arith_p): New inline function.
8895         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
8896
8897 2016-02-01  Jeff Law  <law@redhat.com>
8898
8899         PR tree-optimization/69580
8900         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
8901         * tree-ssa-threadbackward.c
8902         (fsm_find_control_statement_thread_paths): Do not try to walk
8903         through large PHI nodes.
8904
8905 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
8906
8907         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
8908         when count is incremented above limit, don't analyze further
8909         insns afterwards.
8910
8911         * omp-low.c (oacc_parse_default_dims): Avoid
8912         -Wsign-compare warning, make sure value fits into int
8913         rather than just unsigned int.
8914
8915 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
8916
8917         PR tree-optimization/67921
8918         * fold-const.c (split_tree): New parameters.  Convert pointer
8919         type variable part to proper type before negating.
8920         (fold_binary_loc): Pass new arguments to split_tree.
8921
8922 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
8923
8924         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
8925         (nvptx_goacc_validate_dims): Extend to handle global defaults.
8926         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
8927         * doc/tm.texti: Rebuilt.
8928         * doc/invoke.texi (fopenacc-dim): Document.
8929         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
8930         (append_compiler_options): Likewise.
8931         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
8932         (oacc_parse_default_dims): New.
8933         (oacc_validate_dims): Add USED arg.  Select non-unity default when
8934         possible.
8935         (oacc_loop_fixed_partitions): Return mask of used partitions.
8936         (oacc_loop_auto_partitions): Emit dump info.
8937         (oacc_loop_partition): Return mask of used partitions.
8938         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
8939         loop partitioning and validation calls.
8940
8941 2016-02-01  Richard Biener  <rguenther@suse.de>
8942
8943         PR middle-end/69556
8944         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
8945
8946 2016-02-01  Richard Biener  <rguenther@suse.de>
8947
8948         PR tree-optimization/69574
8949         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
8950         of asserting return chrec_dont_know.
8951
8952 2016-02-01  Martin Liska  <mliska@suse.cz>
8953
8954         * mem-stats-traits.h: Add copyright header.
8955         * mem-stats.h: Likewise.
8956
8957 2016-02-01  Richard Biener  <rguenther@suse.de>
8958
8959         PR tree-optimization/69579
8960         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
8961         Do not propagate through abnormal PHI results.
8962
8963 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
8964
8965         * postreload.c (reload_cse_simplify): Remove dead code.
8966
8967 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
8968
8969         PR rtl-optimization/69570
8970         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
8971         if there is more than one set, not if there is a single set.
8972
8973 2016-02-01  Richard Henderson  <rth@redhat.com>
8974
8975         PR rtl-opt/69535
8976         * combine.c (make_compound_operation): When looking through a
8977         subreg, make sure to re-extend to the width of the outer mode.
8978
8979 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
8980
8981         PR tree-optimization/69546
8982         * wide-int.cc (wi::divmod_internal): For unsigned division
8983         where both operands fit into uhwi, if o1 is 1 and o0 has
8984         msb set, if divident_prec is larger than bits per hwi,
8985         clear another quotient word and return 2 instead of 1.
8986         Similarly for remainder with msb in HWI set, if dividend_prec
8987         is larger than bits per hwi.
8988
8989 2016-01-29  Martin Jambor  <mjambor@suse.cz>
8990
8991         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
8992         Use short lowercase names.
8993         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
8994         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
8995         acq_rel one.  Protect warning agains segfaults if
8996         get_memory_order_name returns NULL.
8997         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
8998         with release semantics.  Do not warn if get_memory_order already did.
8999         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
9000         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
9001         if get_memory_order already did.
9002
9003 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
9004
9005         * doc/install.texi: Document that isl-0.16 is supported.
9006
9007 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
9008
9009         PR target/69299
9010         * config/i386/constraints.md (Bm): Describe as special memory
9011         constraint.
9012         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
9013         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
9014         * genpreds.c (struct constraint_data): Add is_special_memory.
9015         (have_special_memory_constraints, special_memory_start): New
9016         static vars.
9017         (special_memory_end): Ditto.
9018         (add_constraint): Add new arg is_special_memory.  Add code to
9019         process its true value.  Update have_special_memory_constraints.
9020         (process_define_constraint): Pass the new arg.
9021         (process_define_register_constraint): Ditto.
9022         (choose_enum_order): Process special memory.
9023         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
9024         function insn_extra_special_memory_constraint.
9025         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
9026         * gensupport.c (process_rtx): Process
9027         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
9028         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
9029         * ira-lives.c (single_reg_class): Use
9030         insn_extra_special_memory_constraint.
9031         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
9032         * lra-constraints.c (process_alt_operands): Ditto.
9033         (curr_insn_transform): Use insn_extra_special_memory_constraint.
9034         * recog.c (asm_operand_ok, preprocess_constraints): Process
9035         CT_SPECIAL_MEMORY.
9036         * reload.c (find_reloads): Ditto.
9037         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
9038         * stmt.c (parse_input_constraint): Use
9039         insn_extra_special_memory_constraint.
9040
9041 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
9042
9043         PR target/69530
9044         * lra-splill.c (lra_final_code_change): Revert r229087 by
9045         removing all sub-registers.
9046
9047 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
9048
9049         PR target/65604
9050         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
9051
9052 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
9053
9054         PR target/69551
9055         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
9056         SSE1, copy target into the temporary reg first before recursing
9057         on it.
9058
9059 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
9060
9061         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
9062         with vm.
9063
9064 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
9065
9066         * ginclude/stdarg.h: Test __cplusplus instead of
9067         __GXX_EXPERIMENTAL_CXX0X__.
9068
9069 2016-01-29  Richard Biener  <rguenther@suse.de>
9070
9071         PR tree-optimization/69547
9072         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
9073         Do not mark clobbers necessary.
9074         (mark_all_reaching_defs_necessary_1): Likewise.
9075
9076 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9077
9078         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
9079         declaration name with %qs and print it in both error messages.
9080         Also fix indentation.
9081
9082 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9083
9084         PR other/69006
9085         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
9086         trailing blank line from error message.
9087
9088 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
9089
9090         PR c++/69462
9091         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
9092         for C++-11.
9093
9094 2016-01-29  Richard Biener  <rguenther@suse.de>
9095
9096         PR middle-end/69537
9097         * match.pd: Allow all integral types when simplifying a
9098         widening or sign-changing conversion.
9099
9100 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
9101
9102         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
9103         back to setting codegen_error to fail codegen.
9104
9105 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
9106
9107         PR target/69459
9108         * config/i386/constraints.md (C): Only accept constant zero operand.
9109         (BC): New constraint.
9110         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
9111         instead of C constraint.
9112         * doc/md.texi (Machine Constraints): Update description
9113         of C constraint.
9114
9115 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
9116
9117         PR target/68400
9118         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
9119
9120 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
9121
9122         PR middle-end/69542
9123         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
9124         non-debug insns.
9125
9126 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
9127
9128         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
9129         branches if using guessed profile.
9130
9131 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
9132
9133         * graphite-optimize-isl.c (optimize_isl): Fix dump.
9134
9135 2016-01-28  Richard Henderson  <rth@redhat.com>
9136
9137         PR target/69305
9138         * config/aarch64/aarch64-modes.def (CC_Cmode): New
9139         * config/aarch64/aarch64-protos.h: Update.
9140         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
9141         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
9142         (aarch64_get_condition_code_1): Handle CC_Cmode.
9143         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
9144         (*add<mode>3_compareC_cconly_imm): New.
9145         (*add<mode>3_compareC_cconly): New.
9146         (*add<mode>3_compareC_imm): New.
9147         (add<mode>3_compareC): New.
9148         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
9149         to be first.  Use aarch64_carry_operation.
9150         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
9151         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
9152         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
9153         (subti3): Use subdi3_compare1.
9154         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
9155         (sub<mode>3_compare1): New.
9156         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
9157         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
9158         (*subsi3_carryin_uxtw): Likewise.
9159         (*ngc<mode>, *ngcsi_uxtw): Likewise.
9160         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
9161         * config/aarch64/iterators.md (DWI): New.
9162         * config/aarch64/predicates.md (aarch64_carry_operation): New.
9163         (aarch64_borrow_operation): New.
9164
9165 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
9166
9167         * graphite-optimize-isl.c (optimize_isl): Print a different debug
9168         message when isl does not return a valid schedule.
9169
9170 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
9171
9172         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
9173         Remove comments from class declarations: they are already in the code
9174         close by the defs.
9175
9176 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
9177
9178         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
9179         codegen_error_p.
9180         (ternary_op_to_tree): Same.
9181         (unary_op_to_tree): Same.
9182         (nary_op_to_tree): Same.
9183         (gcc_expression_from_isl_expr_op): Same.
9184         (gcc_expression_from_isl_expression): Same.
9185         (graphite_create_new_loop): Same.
9186         (graphite_create_new_loop_guard): Same.
9187         (build_iv_mapping): Same.
9188         (graphite_create_new_guard): Same.
9189         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
9190         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
9191
9192 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
9193
9194         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
9195         instead of setting codegen_error to fail codegen.
9196
9197 2016-01-28  Jason Merrill  <jason@redhat.com>
9198
9199         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
9200
9201 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
9202
9203         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
9204         Remove CONST_INT_P check in CCMP cost calculation.
9205
9206 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
9207
9208         * config/aarch64/aarch64.c (generic_vector_cost):
9209         Set vec_permute_cost.
9210         (cortexa57_vector_cost): Likewise.
9211         (exynosm1_vector_cost): Likewise.
9212         (xgene1_vector_cost): Likewise.
9213         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
9214         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
9215         Add vec_permute_cost entry.
9216
9217 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
9218
9219         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
9220         immediate as %1.
9221         (add<mode>3_compare0): Likewise.
9222         (addsi3_compare0_uxtw): Likewise.
9223         (add<mode>3nr_compare0): Likewise.
9224         (compare_neg<mode>): Likewise.
9225         (<optab><mode>3): Likewise.
9226
9227 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
9228
9229         * tree-vect-stmts.c (vectorizable_comparison): Add
9230         NULL check for vectype.
9231
9232 2016-01-28  Richard Biener  <rguenther@suse.de>
9233
9234         PR tree-optimization/69466
9235         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
9236         Account for PHIs we couldn't duplicate.
9237
9238 2016-01-28  Martin Liska  <mliska@suse.cz>
9239
9240         PR pch/68758
9241         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
9242         instead of ENABLE_VALGRIND_CHECKING.
9243
9244 2016-01-27  Richard Henderson  <rth@redhat.com>
9245
9246         PR rtl-opt/69447
9247         * lra-remat.c (subreg_regs): New.
9248         (dump_candidates_and_remat_bb_data): Dump it.
9249         (operand_to_remat): Reject if operand in subreg_regs.
9250         (set_bb_regs): Collect subreg_regs.
9251         (lra_remat): Init and free subreg_regs.  Compute
9252         calculate_local_reg_remat_bb_data before create_cands.
9253
9254 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
9255
9256         PR target/68986
9257         * config/i386/i386.c (ix86_update_stack_boundary): Don't
9258         change stack_alignment_needed for __tls_get_addr call.
9259
9260 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
9261
9262         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
9263
9264 2016-01-27  Jeff Law  <law@redhat.com>
9265
9266         PR tree-optimization/68398
9267         PR tree-optimization/69196
9268         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
9269         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
9270         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9271         Only count PHIs in the last block in the path.  The others will
9272         const/copy propagate away.  Add heuristic to allow more irreducible
9273         subloops to be created when it is likely profitable to do so.
9274
9275         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9276         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
9277         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
9278
9279 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
9280
9281         PR lto/69254
9282         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
9283         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
9284         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
9285         * tree-streamer-in.c: Include asan.h.
9286         (streamer_get_builtin_tree): For builtins in sanitizer
9287         range call initialize_sanitizer_builtins and retry.
9288
9289 2016-01-27  Ian Lance Taylor  <iant@google.com>
9290
9291         * common.opt (fkeep-gc-roots-live): New undocumented option.
9292         * tree-ssa-loop-ivopts.c (add_candidate_1): If
9293         -fkeep-gc-roots-live, skip pointers.
9294         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
9295         NULL.
9296
9297 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
9298
9299         PR target/69512
9300         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
9301         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
9302
9303 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
9304
9305         PR target/68380
9306         * configure.ac: NetBSD provides SSP in its C library.
9307         * configure: Updated.
9308
9309 2016-01-27  Richard Biener  <rguenther@suse.de>
9310
9311         PR tree-optimization/69166
9312         * tree-vect-loop.c (vect_is_simple_reduction): Always check
9313         reduction code for commutativity / associativity.
9314
9315 2016-01-27  Martin Jambor  <mjambor@suse.cz>
9316
9317         PR tree-optimization/69355
9318         * tree-sra.c (analyze_access_subtree): Correct hole detection when
9319         total_scalarization fails.
9320
9321 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
9322
9323         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
9324         power9.
9325
9326 2016-01-27  Christian Bruel  <christian.bruel@st.com>
9327
9328         PR target/69245
9329         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
9330         Move arm_reset_previous_fndecl and set_target_option_current_node in
9331         the conditional part.  Call save_restore_target_globals.
9332         * config/arm/arm.c (arm_set_current_function):
9333         Refactor to better support #pragma target and attribute mix.
9334         Call save_restore_target_globals.
9335         * config/arm/arm-protos.h (save_restore_target_globals): New function.
9336
9337 2016-01-27  Martin Liska  <mliska@suse.cz>
9338
9339         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
9340         reference for an HSA kernel and its host function.
9341
9342 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
9343
9344         PR tree-optimization/69399
9345         * wide-int.h (wi::lrshift): For larger precisions, only
9346         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
9347
9348 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
9349
9350         * config/arc/predicates.md (proper_comparison_operator): Reject
9351         constant-constant comparison.
9352
9353 2016-01-26  Tom de Vries  <tom@codesourcery.com>
9354
9355         PR tree-optimization/69110
9356         * tree-data-ref.c (initialize_data_dependence_relation): Handle
9357         DR_NUM_DIMENSIONS == 0.
9358
9359 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
9360             Sebastian Pop  <s.pop@samsung.com>
9361
9362         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
9363         isl_ast_op_cond and isl_ast_op_select.
9364         (gcc_expression_from_isl_expr_op): Same.
9365
9366 2016-01-26  Jason Merrill  <jason@redhat.com>
9367
9368         PR c++/68782
9369         * tree.c (recompute_constructor_flags): Split out from
9370         build_constructor.
9371         (verify_constructor_flags): New.
9372         * tree.h: Declare them.
9373
9374 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
9375
9376         PR rtl-optimization/69217
9377         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
9378         are no TYPE_FIELDS set for the record type.
9379
9380 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9381
9382         PR target/68662
9383         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
9384         toc_label_name unconditionally.
9385         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
9386         SYMBOL_REF string.  Use toc_label_name instead of constructing
9387         LCTOC1.
9388         (rs6000_elf_declare_function_name): Use toc_label_name instead of
9389         constructing LCTOC1.
9390
9391 2016-01-26  Martin Sebor  <msebor@redhat.com>
9392
9393         PR other/69477
9394         * doc/extend.texi (Common Type Attributes): Move text that talks about
9395         attribute packed from attribute aligned to the section discussing
9396         the former attribute for clarity.
9397
9398 2016-01-26  Richard Henderson  <rth@redhat.com>
9399
9400         PR middle-end/60908
9401         * trans-mem.c (tm_region_init): Mark entry block as visited.
9402
9403 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
9404
9405         PR other/69006
9406         * diagnostic-show-locus.c (layout::print_source_line): Replace
9407         call to pp_newline with call to layout::print_newline.
9408         (layout::print_annotation_line): Likewise.
9409         (layout::move_to_column): Likewise.
9410         (layout::print_any_fixits): After printing any fixits, print a
9411         trailing newline, if necessary.
9412         (layout::print_newline): New method, resetting any colorization
9413         before a newline.
9414         (diagnostic_show_locus): Move the pp_newline to before the
9415         early bailout.  Remove dummy block enclosing the layout instance.
9416         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
9417         of pp_newline_and_flush with pp_flush.
9418         (diagnostic_append_note): Delete use of pp_newline.
9419         (diagnostic_append_note_at_rich_loc): Delete.
9420         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
9421         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
9422         when newline characters are added to the buffer.
9423
9424 2016-01-26  Michael Matz  <matz@suse.de>
9425
9426         * configure.ac (ac_cv_std_swap_in_utility): New test.
9427         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
9428         * configure: Regenerate.
9429         * config.in: Regenerate.
9430
9431 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
9432
9433         * config/arc/arc.md (cstoresi4): Force operand into register.
9434         (arcset<code>): Fix predicate.
9435         (arcsetltu): Likewise.
9436         (arcsetgeu): Likewise.
9437         (arcsethi): Likewise.
9438         (arcsetls): Likewise.
9439
9440 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9441
9442         PR tree-optimization/69483
9443         * gimple-fold.c (canonicalize_constructor_val): Return NULL
9444         if base has error_mark_node type.
9445
9446 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
9447
9448         PR target/68620
9449         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
9450         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
9451         New helper macros.
9452         (vget_lane_f16): Handle big-endian.
9453         (vgetq_lane_f16): Likewise.
9454         (vset_lane_f16): Likewise.
9455         (vsetq_lane_f16): Likewise.
9456         * config/arm/iterators.md (VQXMOV): Add V8HF.
9457         (VDQ): Add V4HF and V8HF.
9458         (V_reg): Handle V4HF and V8HF.
9459         (Is_float_mode): Likewise.
9460         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
9461         neon_vdup_nv8hf): New patterns.
9462         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
9463         Use VD_LANE iterator.
9464         (neon_vld1_dup<mode>): Use VQ2 iterator.
9465
9466 2016-01-26  Nathan Sidwell  <nathan@acm.org>
9467
9468         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
9469         (set_oacc_fn_attrib): Add IS_KERNEL arg.
9470         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
9471         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
9472         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
9473         (oacc_validate_dims): Add LEVEL arg, don't return level.
9474         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
9475         oacc_validate_dims.
9476         (execute_oacc_device_lower): Adjust, add more dump output.
9477         * tree-ssa-loop.c (gate_oacc_kernels): Use
9478         oacc_fn_attrib_kernels_p.
9479         * tree-parloops.c (create_parallel_loop): Adjust
9480         set_oacc_fn_attrib call.
9481
9482 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9483
9484         PR lto/69254
9485         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
9486         (append_compiler_options): Handle -fcilkplus.
9487         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
9488
9489 2016-01-26  Nick Clifton  <nickc@redhat.com>
9490
9491         PR target/66655
9492         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
9493         been marked as DECL_ONE_ONLY but we do not the means to make it
9494         so, then do not allow it to bind locally.
9495
9496 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9497
9498         PR lto/69254
9499         * opts.h (parse_sanitizer_options): New prototype.
9500         * opts.c (sanitizer_opts): New array.
9501         (parse_sanitizer_options): New function.
9502         (common_handle_option): Use parse_sanitizer_options.
9503
9504 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
9505
9506         PR target/68986
9507         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
9508         alignment adjustment to ...
9509         (ix86_update_stack_boundary): Here.  Don't over-align stack for
9510         __tls_get_addr.
9511         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
9512         if __tls_get_addr is called.
9513
9514 2016-01-26  Christian Bruel  <christian.bruel@st.com>
9515
9516         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
9517
9518 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
9519
9520         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
9521
9522 2016-01-26  Richard Biener  <rguenther@suse.de>
9523
9524         PR middle-end/69467
9525         * match.pd: Guard X * CST CMP 0 pattern with single_use.
9526
9527 2016-01-26  Richard Biener  <rguenther@suse.de>
9528
9529         PR tree-optimization/69452
9530         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
9531         (move_computations_dom_walker::before_dom_children): Rename
9532         to ...
9533         (move_computations_worker): This.
9534         (move_computations): Perform an RPO rather than a DOM walk.
9535
9536 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9537
9538         PR target/69442
9539         * combine.c (combine_instructions): For REG_EQUAL note with
9540         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
9541         to the underlying register.
9542         * doc/rtl.texi (REG_EQUAL): Document the behavior of
9543         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
9544
9545 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
9546
9547         PR target/67896
9548         * config/aarch64/aarch64-builtins.c
9549         (aarch64_init_simd_builtin_types): Do not set structural
9550         equality to __Poly{8,16,64,128}_t types.
9551
9552 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
9553
9554         PR tree-optimization/69400
9555         * wide-int.cc (wi_pack): Take the precision as argument and
9556         perform canonicalization here rather than in the callers.
9557         Use the main loop to handle all full-width HWIs.  Add a
9558         zero HWI if in_len isn't a full result.
9559         (wi::divmod_internal): Update accordingly.
9560         (wi::mul_internal): Likewise.  Simplify.
9561
9562 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
9563             Sebastian Pop  <s.pop@samsung.com>
9564
9565         * graphite-poly.c (apply_poly_transforms): Simplify.
9566         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
9567         (print_isl_map): Same.
9568         (print_isl_union_map): Same.
9569         (print_isl_schedule): New.
9570         (debug_isl_schedule): New.
9571         * graphite-dependences.c (scop_get_reads): Do not call
9572         isl_union_map_add_map that is undocumented isl functionality.
9573         (scop_get_must_writes): Same.
9574         (scop_get_may_writes): Same.
9575         (scop_get_original_schedule): Remove.
9576         (scop_get_dependences): Do not call isl_union_map_compute_flow that
9577         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
9578         (compute_deps): Remove.
9579         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
9580         (debug_schedule_ast): New.
9581         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
9582         set_separate_option.
9583         (graphite_regenerate_ast_isl): Add dump.
9584         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
9585         from scop->transformed_schedule.
9586         (graphite_regenerate_ast_isl): Add more dump.
9587         * graphite-optimize-isl.c (optimize_isl): Set
9588         scop->transformed_schedule.  Check whether schedules are equal.
9589         (apply_poly_transforms): Move here.
9590         * graphite-poly.c (apply_poly_transforms): ... from here.
9591         (free_poly_bb): Static.
9592         (free_scop): Static.
9593         (pbb_number_of_iterations_at_time): Remove.
9594         (print_isl_ast): New.
9595         (debug_isl_ast): New.
9596         (debug_scop_pbb): New.
9597         * graphite-scop-detection.c (print_edge): Move.
9598         (print_sese): Move.
9599         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
9600         (build_scop_scattering): Remove.
9601         (create_pw_aff_from_tree): Assert instead of bailing out.
9602         (add_condition_to_pbb): Remove unused code, do not fail.
9603         (add_conditions_to_domain): Same.
9604         (add_conditions_to_constraints): Remove.
9605         (build_scop_context): New.
9606         (add_iter_domain_dimension): New.
9607         (build_iteration_domains): Initialize pbb->iterators.
9608         Call add_conditions_to_domain.
9609         (nested_in): New.
9610         (loop_at): New.
9611         (index_outermost_in_loop): New.
9612         (index_pbb_in_loop): New.
9613         (outermost_pbb_in): New.
9614         (add_in_sequence): New.
9615         (add_outer_projection): New.
9616         (outer_projection_mupa): New.
9617         (add_loop_schedule): New.
9618         (build_schedule_pbb): New.
9619         (build_schedule_loop): New.
9620         (embed_in_surrounding_loops): New.
9621         (build_schedule_loop_nest): New.
9622         (build_original_schedule): New.
9623         (build_poly_scop): Call build_original_schedule.
9624         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
9625         (free_poly_dr): Remove.
9626         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
9627         (free_poly_bb): Remove.
9628         (debug_loop_vec): Remove.
9629         (print_isl_ast): Declare.
9630         (debug_isl_ast): Declare.
9631         (scop_do_interchange): Remove.
9632         (scop_do_strip_mine): Remove.
9633         (scop_do_block): Remove.
9634         (flatten_all_loops): Remove.
9635         (optimize_isl): Remove.
9636         (pbb_number_of_iterations_at_time): Remove.
9637         (debug_scop_pbb): Declare.
9638         (print_schedule_ast): Declare.
9639         (debug_schedule_ast): Declare.
9640         (struct scop): Remove schedule.  Add original_schedule,
9641         transformed_schedule.
9642         (free_gimple_poly_bb): Remove.
9643         (print_generated_program): Remove.
9644         (debug_generated_program): Remove.
9645         (unify_scattering_dimensions): Remove.
9646         * sese.c (print_edge): ... here.
9647         (print_sese): ... here.
9648         (debug_edge): ... here.
9649         (debug_sese): ... here.
9650         * sese.h (print_edge): Declare.
9651         (print_sese): Declare.
9652         (dump_edge): Declare.
9653         (dump_sese): Declare.
9654
9655 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
9656             Sebastian Pop  <s.pop@samsung.com>
9657
9658         * Makefile.in: Set ISLVER in site.exp.
9659
9660 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
9661
9662         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
9663         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
9664         through DECL_VALUE_EXPR for expansion.
9665
9666 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9667
9668         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
9669         the frame info after reload completed.
9670
9671 2016-01-25  Jeff Law  <law@redhat.com>
9672
9673         PR tree-optimization/69196
9674         PR tree-optimization/68398
9675         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
9676         tree-ssa-threadupdate.c.
9677         (determine_bb_domination_status): Prototype
9678         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
9679         (determine_bb_domination_status): No longer static.
9680         (valid_jump_thread_path): Remove code to detect characteristics
9681         of the jump thread path not associated with correctness.
9682         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
9683         Correct test for thread path length.  Count PHIs for real operands as
9684         statements that need to be copied.  Do not count ASSERT_EXPRs.
9685         Look at all the blocks in the thread path.  Compute and selectively
9686         filter thread paths based on threading through the latch, threading
9687         a multiway branch or crossing a multiway branch.
9688
9689 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9690
9691         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
9692         decl with __attribute__ ((unused)) annotation.
9693
9694 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
9695
9696         PR target/69421
9697         * tree-vect-stmts.c (vectorizable_condition): Check vectype
9698         of operands is compatible with a statement vectype.
9699
9700 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
9701
9702         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
9703         improve wording for mixed storage order support.
9704
9705 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
9706
9707         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
9708         (vcvt_u64_f64): Likewise.
9709         (vcvta_s64_f64): Likewise.
9710         (vcvta_u64_f64): Likewise.
9711         (vcvtm_s64_f64): Likewise.
9712         (vcvtm_u64_f64): Likewise.
9713         (vcvtn_s64_f64): Likewise.
9714         (vcvtn_u64_f64): Likewise.
9715         (vcvtp_s64_f64): Likewise.
9716         (vcvtp_u64_f64): Likewise.
9717
9718 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
9719
9720         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
9721         (arc_init): Check validity mll64 option.
9722         (arc_save_restore): Use double load/store instruction.
9723         (arc_expand_movmem): Likewise.
9724         (arc_split_move): Don't split if we have double load/store
9725         instructions. Returns a boolean.
9726         (arc_process_double_reg_moves): Change function to return boolean
9727         instead of a sequence of instructions.
9728         (arc_dwarf_register_span): New function.
9729         * config/arc/arc-protos.h (arc_split_move): Change prototype.
9730         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
9731         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
9732         (*movdf_insn): Likewise.
9733         * config/arc/arc.opt (mll64): New option.
9734         * config/arc/predicates.md (even_register_operand): New predicate.
9735         * doc/invoke.texi (ARC Options): Add mll64 documentation.
9736
9737 2016-01-25  Richard Biener  <rguenther@suse.de>
9738
9739         PR lto/69393
9740         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
9741         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
9742         DECL_NAMELESS.
9743         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
9744
9745 2016-01-25  Richard Biener  <rguenther@suse.de>
9746
9747         PR tree-optimization/69376
9748         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
9749         flag.
9750         (VN_INFO_ANTI_RANGE_P): New inline.
9751         (VN_INFO_RANGE_TYPE): Likewise.
9752         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
9753         SSA_NAME_ANTI_RANGE_P.
9754         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
9755         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9756         Properly query VN_INFO_RANGE_TYPE.
9757
9758 2016-01-25  Nick Clifton  <nickc@redhat.com>
9759
9760         PR target/66655
9761         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
9762
9763 2016-01-23  Tom de Vries  <tom@codesourcery.com>
9764
9765         PR tree-optimization/69426
9766         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
9767         removed clobber.
9768
9769 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
9770
9771         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
9772         "the the" with "the" in the comments.
9773         * ipa-devirt.c (build_type_inheritance_graph,
9774         update_type_inheritance_graph): Likewise.
9775         * tree.c (build_function_type_list_1): Likewise.
9776         * cfgloopmanip.c (scale_loop_profile): Likewise.
9777         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
9778         * gimple-ssa-split-paths.c
9779         (find_block_to_duplicate_for_splitting_paths): Likewise.
9780         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
9781         * expr.c (convert_move): Likewise.
9782         * var-tracking.c (vt_stack_adjustments): Likewise.
9783         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
9784         * tree-vrp.c (test_for_singularity): Likewise.
9785
9786         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
9787         directly instead of building a temporary tree.
9788
9789         PR bootstrap/69434
9790         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
9791         remove <algorithm> include.
9792
9793 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
9794
9795         PR target/69432
9796         * config/i386/i386.c: Include dojump.h.
9797         (expand_small_movmem_or_setmem,
9798         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
9799         fixes.
9800         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
9801         if dynamic_check != -1.
9802
9803 2016-01-21  Jeff Law  <law@redhat.com>
9804
9805         PR middle-end/69347
9806         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
9807         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
9808         into dominated_by_p.
9809         (cprop_into_successor_phis): Avoid unnecessary tests.
9810
9811 2016-01-22  Richard Henderson  <rth@redhat.com>
9812
9813         PR target/69416
9814         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
9815         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
9816
9817 2016-01-22  Michael Matz  <matz@suse.de>
9818
9819         * system.h (string, algorithm): Include only conditionally.
9820         (new): Include always under C++.
9821         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
9822         * final.c (toplevel): Ditto.
9823         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
9824         * genconditions.c (write_header): Make gencondmd.c define
9825         INCLUDE_STRING.
9826         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
9827
9828         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
9829         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
9830
9831 2016-01-22  Christian Bruel  <christian.bruel@st.com>
9832
9833         PR target/68674
9834         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
9835
9836 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9837
9838         PR target/69403
9839         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
9840         define_insn_and_split.  Ensure operands[1] and operands[0] do not
9841         get assigned the same register.
9842
9843 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
9844
9845         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
9846
9847 2016-01-22  Christian Bruel  <christian.bruel@st.com>
9848
9849         * config/arm/arm-c.c (arm_pragma_target_parse):
9850         Remove warn_builtin_macro_redefined overwrite.
9851
9852 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
9853
9854         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
9855         flag_non_call_exceptions compatibility.
9856
9857 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
9858
9859         PR debug/66668
9860         * dwarf2out.c (add_child_die_after): New function.
9861         (dwarf_qual_info_t): New type.
9862         (dwarf_qual_info): New variable.
9863         (qualified_die_p): New function.
9864         (modified_type_die): For -fdebug-types-section, ensure
9865         canonical order of qualifiers.  Put qualified DIEs adjacent
9866         to the corresponding non-qualified type DIE and search there
9867         for existing qualified DIEs.
9868
9869 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
9870
9871         * doc/extend.texi (scalar_storage_order type attribute): Document
9872         restriction on type punning and aliasing, and remove future tense.
9873
9874 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
9875
9876         PR target/69252
9877         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
9878         first stage.
9879
9880 2016-01-21  Jeff Law  <law@redhat.com>
9881
9882         PR middle-end/69347
9883         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
9884         useless call to record_temporary_equivalences.
9885         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
9886         allocate 10 slots in the bb_path vector and let it grow as needed.
9887         (fsm_find_control_statement_thread_paths): Similarly for the next_path
9888         vector.
9889
9890 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
9891
9892         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
9893         Detangle.
9894         * configure: Regenerate.
9895
9896 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
9897
9898         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
9899         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
9900
9901 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
9902
9903         PR middle-end/66178
9904         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
9905         drop EXPAND_INITIALIZER.
9906         * rtl.h (contains_symbolic_reference_p): Declare.
9907         * rtlanal.c (contains_symbolic_reference_p): New function.
9908         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
9909         a subtraction into a NOT if symbolic constants are involved.
9910
9911 2016-01-21  Anton Blanchard  <anton@samba.org>
9912             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9913
9914         PR target/63354
9915         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
9916         #define.
9917         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
9918         function.
9919
9920 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
9921
9922         * config/microblaze/microblaze.c
9923         (get_branch_target): New.
9924         (insert_wic_for_ilb_runout): New.
9925         (insert_wic): New.
9926         (microblaze_machine_dependent_reorg): New.
9927         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
9928         * config/microblaze/microblaze.md
9929         (UNSPEC_IPREFETCH): Define.
9930         (iprefetch): New pattern
9931         * config/microblaze/microblaze.opt
9932         (mxl-prefetch): New flag.
9933
9934 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
9935
9936         * config/microblaze/microblaze.h
9937         (FIXED_REGISTERS): Update in macro.
9938         (CALL_USED_REGISTERS): Update in macro.
9939
9940 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
9941
9942         PR rtl-optimization/68920
9943         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
9944         moves.
9945
9946 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
9947
9948         PR rtl-optimization/68990
9949         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
9950         pseudo instead of inheritance ones.
9951
9952 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9953             Nick Clifton  <nickc@redhat.com>
9954
9955         PR target/69129
9956         PR target/69012
9957         * config/mips/mips.c (mips_compute_frame_info): Initialise
9958         args_size and hard_frame_pointer_offset fields of the frame
9959         structure before calling mips_global_pointer.
9960
9961 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
9962
9963         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
9964         label reference.
9965         * configure: Regenerate.
9966
9967 2016-01-21  Richard Biener  <rguenther@suse.de>
9968
9969         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
9970
9971 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
9972
9973         * config/s390/s390.c (s390_asm_declare_function_size): Add code
9974         to actually emit the .size directive.
9975
9976 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
9977              Jakub Jelinek  <jakub@redhat.com>
9978
9979         PR target/69187
9980         PR target/65624
9981         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
9982         args array size by one to avoid buffer overflow.
9983
9984 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
9985
9986         * config/s390/s390.md (pool_section_start): Use switch_to_section
9987         to select proper read-only data section instead of hardcoding
9988         .rodata.
9989         (pool_section_end): Use switch_to_section to match the above.
9990
9991 2016-01-21  Richard Biener  <rguenther@suse.de>
9992
9993         PR tree-optimization/69378
9994         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
9995         (set_ssa_val_to): Use it for dominance checks taking into
9996         account not executable edges.
9997
9998 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
9999
10000         PR c++/69355
10001         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
10002         for bitsize instead of GET_MODE_PRECISION (mode).
10003
10004 2016-01-20  Martin Sebor  <msebor@redhat.com>
10005
10006         PR c/52291
10007         * extend.texi (__sync Builtins): Clarify the semantics of
10008         __sync_fetch_and_OP built-ins on pointers.
10009         (__atomic Builtins): Same.
10010
10011 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10012             Sebastian Pop  <s.pop@samsung.com>
10013
10014         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
10015         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
10016         (is_valid_rename): Same.
10017         (translate_isl_ast_to_gimple::get_rename): Same.
10018         (translate_isl_ast_to_gimple::rename_all_uses): Same.
10019         (translate_isl_ast_to_gimple::rename_uses): Same.
10020         (get_new_name): Check for close_phi nodes.
10021         (copy_loop_phi_args): Use phi_node_kind.
10022         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
10023         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
10024
10025 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10026             Sebastian Pop  <s.pop@samsung.com>
10027
10028         Revert commit r229783.
10029         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
10030         Remove use of parameter_rename_map.
10031         (copy_def): Remove.
10032         (copy_internal_parameters): Remove.
10033         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
10034         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
10035         (free_sese_info): Do not free parameter_rename_map.
10036         (set_rename): Do not use parameter_rename_map.
10037         (rename_uses): Update call to set_rename.
10038         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
10039         * sese.h (parameter_rename_map_t): Remove.
10040         (struct sese_info_t): Remove field parameter_rename_map.
10041
10042 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10043             Sebastian Pop  <s.pop@samsung.com>
10044
10045         * graphite-isl-ast-to-gimple.c: Fix comment.
10046         * graphite-scop-detection.c (defined_in_loop_p): New.
10047         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
10048         names defined in loop.
10049
10050 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10051             Sebastian Pop  <s.pop@samsung.com>
10052
10053         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
10054         Discard unstructured if-then-else regions.
10055
10056 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10057             Sebastian Pop  <s.pop@samsung.com>
10058
10059         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
10060         (cleanup_loop_iter_dom): Remove.
10061         (build_loop_iteration_domains): Remove.
10062         (build_scop_context): Remove.
10063         (build_scop_iteration_domain): Remove.
10064         (add_loop_constraints): New.
10065         (build_iteration_domains): New.
10066         (build_poly_scop): Call build_iteration_domains.
10067
10068 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10069             Sebastian Pop  <s.pop@samsung.com>
10070
10071         * graphite-scop-detection.c
10072         (scop_detection::harmful_loop_in_region): Free dom and loops.
10073         (scop_detection::loop_body_is_valid_scop): Free bbs.
10074
10075 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10076             Sebastian Pop  <s.pop@samsung.com>
10077
10078         * graphite-scop-detection.c (record_loop_in_sese): New.
10079         (gather_bbs::before_dom_children): Call record_loop_in_sese.
10080         (build_scops): Remove call to build_sese_loop_nests.
10081         * sese.c (sese_record_loop): Remove.
10082         (build_sese_loop_nests): Remove.
10083         (new_sese_info): Remove region->loops.
10084         (free_sese_info): Same.
10085         * sese.h (sese_contains_loop): Same.
10086         (build_sese_loop_nests): Remove.
10087         (sese_contains_loop): Remove.
10088
10089 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10090             Sebastian Pop  <s.pop@samsung.com>
10091
10092         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
10093         loop_is_valid_in_scop.
10094         (scop_detection::harmful_stmt_in_region): Renamed
10095         harmful_loop_in_region.
10096         Call loop_is_valid_in_scop.
10097
10098 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10099             Sebastian Pop  <s.pop@samsung.com>
10100
10101         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
10102         isl_ast_node_mark.
10103
10104 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10105             Sebastian Pop  <s.pop@samsung.com>
10106
10107         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
10108         * graphite.h (struct poly_bb): Remove field is_reduction.
10109         (PBB_IS_REDUCTION): Remove.
10110
10111 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10112             Sebastian Pop  <s.pop@samsung.com>
10113
10114         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
10115         (add_pdr_constraints): Same.
10116         (scop_get_reads): Same.
10117         (scop_get_must_writes): Same.
10118         (scop_get_may_writes): Same.
10119         (scop_get_original_schedule): Same.
10120         (extend_schedule): Same.
10121         (apply_schedule_on_deps): Same.
10122         (carries_deps): Same.
10123         (compute_deps): Same.
10124         (scop_get_dependences): Same.
10125         * graphite-isl-ast-to-gimple.c
10126         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
10127         * graphite-optimize-isl.c (get_schedule_for_band): Same.
10128         (get_schedule_for_band_list): Same.
10129         (get_schedule_map): Same.
10130         (apply_schedule_map_to_scop): Same.
10131         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
10132         (build_loop_iteration_domains): Same.
10133         (add_condition_to_pbb): Same.
10134         (add_param_constraints): Same.
10135         (pdr_add_memory_accesses): Same.
10136         (pdr_add_data_dimensions): Same.
10137
10138 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
10139
10140         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
10141         requirements.
10142
10143 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
10144
10145         * common.opt (feliminate-dwarf2-dups): Replace references to
10146         "DWARF 2" with just "DWARF".
10147         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
10148         * doc/extend.texi: Likewise.
10149         * doc/cpp.texi: Likewise.
10150         * doc/invoke.texi: Likewise.
10151         (Option Summary): Add -gdwarf to list of Debugging Options.
10152         (Debugging Options): Document -gdwarf.
10153         * doc/contrib.texi: Spell "DWARF" like that.
10154
10155 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
10156
10157         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
10158         warning.  Fix up formatting.
10159
10160         PR middle-end/67653
10161         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
10162         attempt to mark memory input operand addressable and
10163         call prepare_gimple_addressable in that case.  Don't adjust
10164         input_location for diagnostics, use error_at instead.
10165
10166 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
10167
10168         * config/rs6000/ppc-auxv.h: New file.
10169         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
10170         (cpu_is): Likewise.
10171         (cpu_supports): Likewise.
10172         * config/rs6000/rs6000.c: include "ppc-auxv.h".
10173         (cpu_is_info): New variable.
10174         (cpu_supports_info): Likewise.
10175         (tcb_verification_symbol): Likewise.
10176         (cpu_builtin_p): Likewise.
10177         (cpu_expand_builtin): New function.
10178         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
10179         (rs6000_init_builtins): Likewise.
10180         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
10181         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
10182         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
10183         * configure: Regenerate.
10184         * config.in: Likewise.
10185         * doc/extend.texi (PowerPC Built-in Functions): Document
10186         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
10187
10188 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
10189
10190         PR target/68609
10191         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
10192         domain check.
10193         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
10194         for V4SFmode.
10195
10196 2016-01-20  Richard Henderson  <rth@redhat.com>
10197
10198         PR bootstrap/69343
10199         PR bootstrap/69339
10200         PR tree-opt/68964
10201         Revert:
10202         * tree.c (tm_define_builtin): New.
10203         (find_tm_vector_type): New.
10204         (build_tm_vector_builtins): New.
10205         (build_common_builtin_nodes): Call it.
10206
10207 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
10208
10209         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
10210         (arm_fp_ok): Likewise.
10211         (arm_fp): Likewise.
10212         (arm_crypto): Likewise.
10213
10214 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
10215             Richard Biener  <rguenther@suse.de>
10216
10217         PR tree-optimization/69328
10218         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
10219         vectors have same number of elements.
10220         (vectorizable_condition): Fix masked version recognition.
10221
10222 2016-01-20  Richard Biener  <rguenther@suse.de>
10223
10224         PR tree-optimization/69345
10225         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
10226         (VN_INFO_PTR_INFO): Likewise.
10227         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
10228         info when it is equal between non-dominating SSA names.
10229         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10230         Make sure to look at original SSA infos.
10231
10232 2016-01-20  Jeff Law  <law@redhat.com>
10233
10234         PR target/25114
10235         * config/m68k/predicates.md (pow2_m1_operand): New predicate
10236         extracted from ...
10237         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
10238         (pc_or_label_operand): New predicate.
10239         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
10240         tests for small integers that are 2^n - 1.
10241
10242 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
10243
10244         * doc/invoke.texi (Options Summary): Add '.' after @xref.
10245
10246 2016-01-19  Jeff Law  <law@redhat.com>
10247
10248         PR middle-end/69347
10249         * tree-ssa-threadbackwards.c
10250         (fsm_find_control_statement_thread_paths): Do not try to lookup
10251         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
10252
10253 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
10254
10255         * doc/lto.texi: Remove text that says only Gold has linker plugin
10256         support.
10257
10258 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
10259
10260         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
10261         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
10262         the DIE accordingly.
10263         (modified_type_die): Add REVERSE parameter and pass it recursively,
10264         as well as to base_type_die.  Adjust presence check accordingly.
10265         (base_type_for_mode): Adjust call to modified_type_die.
10266         (add_type_attribute): Add REVERSE parameter and pass it to
10267         modified_type_die.
10268         (generic_parameter_die): Adjust call to add_type_attribute.
10269         (add_scalar_info): Likewise.
10270         (add_subscript_info): Likewise.
10271         (gen_array_type_die): Likewise.
10272         (gen_descr_array_type_die): Likewise.
10273         (gen_entry_point_die): Likewise.
10274         (gen_enumeration_type_die): Likewise.
10275         (gen_formal_parameter_die): Likewise.
10276         (gen_subprogram_die): Likewise.
10277         (gen_variable_die ): Likewise.
10278         (gen_const_die): Likewise.
10279         (gen_field_die): Likewise.
10280         (gen_pointer_type_die): Likewise.
10281         (gen_reference_type_die): Likewise.
10282         (gen_ptr_to_mbr_type_die): Likewise.
10283         (gen_inheritance_die): Likewise.
10284         (gen_subroutine_type_die): Likewise.
10285         (gen_typedef_die): Likewise.
10286         (force_type_die): Adjust call to modified_type_die.
10287
10288 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
10289
10290         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
10291         flow throughout the file.  Fix broken link to Objective-C 2.0
10292         documentation.
10293         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
10294         errors.
10295
10296 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10297
10298         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
10299
10300 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10301
10302         PR ipa/66223
10303         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
10304         (maybe_record_node): Record cxa_pure_virtual as the only possible
10305         target if there are not ohter candidates.
10306         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
10307
10308 2016-01-19  Richard Biener  <rguenther@suse.de>
10309
10310         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
10311         (get_memory_order): Likewise.
10312
10313 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
10314
10315         * tree-vect-stmts.c (vectorizable_store): Check
10316         rhs vectype.
10317
10318 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
10319
10320         PR jit/68446
10321         * gcc.c (driver::decode_argv): Add call to
10322         init_opts_obstack before init_options_struct.
10323         * opts.c (init_opts_obstack): Remove idempotency.
10324         (init_options_struct): Replace call to init_opts_obstack
10325         with a gcc_assert to verify that it has already been called.
10326         * toplev.c (toplev::main): Add call to init_opts_obstack before
10327         calls to init_options_struct.
10328         (toplev::finalize): Move cleanup of opts_obstack next to
10329         cleanup of save_decoded_options, clearing the latter, and
10330         save_decoded_options_count.
10331
10332 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10333
10334         PR target/69135
10335         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
10336         attribute to unconditional.  Remove %? from output template.
10337
10338 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10339             Jiong Wang  <jiong.wang@arm.com>
10340
10341         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
10342         generated from different expand order.
10343
10344 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10345
10346         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
10347         Add support for CCMP costing.
10348
10349 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10350
10351         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
10352         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
10353         (fccmpe<mode>): Likewise.
10354         (fcmp): Rename to fcmp and globalize pattern.
10355         (fcmpe): Likewise.
10356         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
10357         (aarch64_gen_ccmp_next): Add FP support.
10358
10359 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10360
10361         * target.def (gen_ccmp_first): Update documentation.
10362         (gen_ccmp_next): Likewise.
10363         * doc/tm.texi (gen_ccmp_first): Update documentation.
10364         (gen_ccmp_next): Likewise.
10365         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
10366         expand_ccmp_expr_1.  Improve comments.
10367         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
10368         (ccmp_ior<mode>): Remove pattern.
10369         (cmp<mode>): Remove expand.
10370         (cmp): Globalize pattern.
10371         (cstorecc4): Use cc_register.
10372         (mov<mode>cc): Remove ccmp_cc_register check.
10373         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
10374         Simplify after removal of CC_DNE/* modes.
10375         (aarch64_ccmp_mode_to_code): Remove.
10376         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
10377         In 'k' case use integer as condition.
10378         (aarch64_nzcv_codes): Remove inverted cases.
10379         (aarch64_code_to_ccmode): Remove.
10380         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
10381         comparison with CC register to be used in folowing CCMP/branch/CSEL.
10382         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
10383         pattern.  Return the comparison with CC register.  Invert conditions
10384         when bitcode is OR.
10385         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
10386         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
10387
10388 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10389
10390         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
10391         instrumented_version.
10392
10393 2016-01-19  Richard Biener  <rguenther@suse.de>
10394
10395         PR tree-optimization/69336
10396         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
10397         handled components with get_ref_base_and_extent.
10398         (equal_mem_array_ref_p): Adjust.
10399
10400 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
10401
10402         PR debug/65779
10403         * shrink-wrap.c: Include valtrack.h.
10404         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
10405         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
10406         in between insn and where it will be moved to.  Call
10407         dead_debug_insert_temp.
10408         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
10409         first and dead_debug_local_finish at the end.
10410         For uses and defs bitmap, handle all regs in between REGNO and
10411         END_REGNO, not just the first one.
10412
10413 2016-01-19  Richard Biener  <rguenther@suse.de>
10414
10415         PR tree-optimization/69352
10416         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
10417         (equal_mem_array_ref_p): Constrain size and max size properly.
10418         Compare the reverse flag.
10419
10420 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
10421
10422         * ira.c (ira): Update regstat data if we deleted insns.
10423
10424 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
10425
10426         PR rtl-optimization/68955
10427         PR rtl-optimization/64557
10428         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
10429         here.  Fix up formatting.
10430         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
10431
10432 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10433
10434         PR lto/69133
10435         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
10436         assume that the node has body.
10437         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
10438         check.
10439
10440 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10441
10442         * lto-streamer-out.c (lto_output): Do not stream instrumentation
10443         thunks.
10444
10445 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10446
10447         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
10448         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
10449
10450 2016-01-19  Martin Jambor  <mjambor@suse.cz>
10451             Martin Liska  <mliska@suse.cz>
10452             Michael Matz  <matz@suse.de>
10453
10454         * Makefile.in (OBJS): Add new source files.
10455         (GTFILES): Add hsa.c.
10456         * common.opt (disable_hsa): New variable.
10457         (-Whsa): New warning.
10458         * config.in (ENABLE_HSA): New.
10459         * configure.ac: Treat hsa differently from other accelerators.
10460         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
10461         $enable_offloading.
10462         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
10463         * doc/install.texi (Configuration): Document --with-hsa-runtime,
10464         --with-hsa-runtime-include, --with-hsa-runtime-lib and
10465         --with-hsa-kmt-lib.
10466         * doc/invoke.texi (-Whsa): Document.
10467         (hsa-gen-debug-stores): Likewise.
10468         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
10469         to invoke offload compiler for hsa acclerator.
10470         * opts.c (common_handle_option): Determine whether HSA offloading
10471         should be performed.
10472         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
10473         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
10474         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
10475         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
10476         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
10477         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
10478         GF_OMP_FOR_KIND_GRID_LOOP.
10479         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
10480         (pp_gimple_stmt_1): Likewise.
10481         * gimple-walk.c (walk_gimple_stmt): Likewise.
10482         * gimple.c (gimple_build_omp_grid_body): New function.
10483         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
10484         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
10485         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
10486         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
10487         GF_OMP_TEAMS_GRID_PHONY.
10488         (gimple_statement_omp_single_layout): Updated comments.
10489         (gimple_build_omp_grid_body): New function.
10490         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
10491         (gimple_omp_for_grid_phony): New function.
10492         (gimple_omp_for_set_grid_phony): Likewise.
10493         (gimple_omp_parallel_grid_phony): Likewise.
10494         (gimple_omp_parallel_set_grid_phony): Likewise.
10495         (gimple_omp_teams_grid_phony): Likewise.
10496         (gimple_omp_teams_set_grid_phony): Likewise.
10497         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
10498         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
10499         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
10500         (BUILT_IN_GOMP_TARGET): Updated type.
10501         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
10502         (adjust_for_condition): New function.
10503         (get_omp_for_step_from_incr): Likewise.
10504         (extract_omp_for_data): Moved parts to adjust_for_condition and
10505         get_omp_for_step_from_incr.
10506         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
10507         (fixup_child_record_type): Bail out if receiver_decl is NULL.
10508         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
10509         (scan_omp_parallel): Do not create child functions for phony
10510         constructs.
10511         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
10512         (scan_omp_1_op): Checking assert we are not remapping to
10513         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
10514         (parallel_needs_hsa_kernel_p): New function.
10515         (expand_parallel_call): Register apprpriate parallel child
10516         functions as HSA kernels.
10517         (grid_launch_attributes_trees): New type.
10518         (grid_attr_trees): New variable.
10519         (grid_create_kernel_launch_attr_types): New function.
10520         (grid_insert_store_range_dim): Likewise.
10521         (grid_get_kernel_launch_attributes): Likewise.
10522         (get_target_argument_identifier_1): Likewise.
10523         (get_target_argument_identifier): Likewise.
10524         (get_target_argument_value): Likewise.
10525         (push_target_argument_according_to_value): Likewise.
10526         (get_target_arguments): Likewise.
10527         (expand_omp_target): Call get_target_arguments instead of looking
10528         up for teams and thread limit.
10529         (grid_expand_omp_for_loop): New function.
10530         (grid_arg_decl_map): New type.
10531         (grid_remap_kernel_arg_accesses): New function.
10532         (grid_expand_target_kernel_body): New function.
10533         (expand_omp): Call it.
10534         (lower_omp_for): Do not emit phony constructs.
10535         (lower_omp_taskreg): Do not emit phony constructs but create for them
10536         a temporary variable receiver_decl.
10537         (lower_omp_taskreg): Do not emit phony constructs.
10538         (lower_omp_teams): Likewise.
10539         (lower_omp_grid_body): New function.
10540         (lower_omp_1): Call it.
10541         (grid_reg_assignment_to_local_var_p): New function.
10542         (grid_seq_only_contains_local_assignments): Likewise.
10543         (grid_find_single_omp_among_assignments_1): Likewise.
10544         (grid_find_single_omp_among_assignments): Likewise.
10545         (grid_find_ungridifiable_statement): Likewise.
10546         (grid_target_follows_gridifiable_pattern): Likewise.
10547         (grid_remap_prebody_decls): Likewise.
10548         (grid_copy_leading_local_assignments): Likewise.
10549         (grid_process_kernel_body_copy): Likewise.
10550         (grid_attempt_target_gridification): Likewise.
10551         (grid_gridify_all_targets_stmt): Likewise.
10552         (grid_gridify_all_targets): Likewise.
10553         (execute_lower_omp): Call grid_gridify_all_targets.
10554         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
10555         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
10556         (tree_omp_clause): Added union field dimension.
10557         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
10558         * tree.c (omp_clause_num_ops): Added number of arguments of
10559         OMP_CLAUSE__GRIDDIM_.
10560         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
10561         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
10562         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
10563         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
10564         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
10565         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
10566         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
10567         * tree-pass.h (make_pass_gen_hsail): Declare.
10568         (make_pass_ipa_hsa): Likewise.
10569         * ipa-hsa.c: New file.
10570         * lto-section-in.c (lto_section_name): Add hsa section name.
10571         * lto-streamer.h (lto_section_type): Add hsa section.
10572         * timevar.def (TV_IPA_HSA): New.
10573         * hsa-brig-format.h: New file.
10574         * hsa-brig.c: New file.
10575         * hsa-dump.c: Likewise.
10576         * hsa-gen.c: Likewise.
10577         * hsa.c: Likewise.
10578         * hsa.h: Likewise.
10579         * toplev.c (compile_file): Call hsa_output_brig.
10580         * hsa-regalloc.c: New file.
10581
10582 2016-01-18  Jeff Law  <law@redhat.com>
10583
10584         PR tree-optimization/69320
10585         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
10586         ranged object, do nothing if the RHS constant is not [0..1].
10587         (optimize_stmt): Comparing a boolean ranged object against a
10588         constant outside [0..1] results in a compile-time constant.
10589
10590         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
10591         test.
10592
10593 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
10594
10595         * doc/invoke.texi (Invoking GCC): Add new section to menu.
10596         (Option Summary): Update to reflect new section and moved options.
10597         (C++ Dialect Options): Move -fstats to new section.
10598         (Debugging Options): Move all dump, statistics, and other GCC
10599         developer options to new section.  Rewrite section introduction
10600         and re-order remaining options to put the more basic ones first.
10601         (Optimization Options): Move -fira-verbose and -flto-report* to
10602         new section.
10603         (Developer Options): New section incorporating moved options.
10604         * doc/cppopts.texi (-dM): Update cross-reference.
10605
10606 2016-01-18  Richard Henderson  <rth@redhat.com>
10607
10608         PR target/69176
10609         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
10610         operands to pseudo only if CSE is expected.  Split long immediate
10611         operands only after reload, and for the stack pointer.
10612         (*add<GPI>3_pluslong): Remove.
10613         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
10614         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
10615         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
10616         (*add<GPI>3 peepholes): New.
10617         (*add<GPI>3 splitters): New.
10618         * config/aarch64/constraints.md (Upl): New.
10619         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
10620
10621 2016-01-18  Richard Biener  <rguenther@suse.de>
10622
10623         PR tree-optimization/69297
10624         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
10625         stmt at most once.
10626         (vect_bb_vectorization_profitable_p): Clear visited flag again.
10627
10628 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
10629
10630         PR middle-end/68542
10631         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
10632         of mixind vector and scalar types.
10633         (fold_relational_const): Add handling of vector
10634         comparison with boolean result.
10635         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
10636         comparison of vector operands with boolean result for EQ/NE only.
10637         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
10638         (verify_gimple_cond): Likewise.
10639         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
10640         valid type of VAL.
10641
10642 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
10643
10644         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
10645         !TARGET_OCTEON.
10646
10647 2016-01-18  Richard Biener  <rguenther@suse.de>
10648
10649         PR middle-end/69308
10650         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
10651
10652 2016-01-18  Tom de Vries  <tom@codesourcery.com>
10653
10654         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
10655
10656 2016-01-18  Tom de Vries  <tom@codesourcery.com>
10657
10658         * omp-low.c (set_oacc_fn_attrib): Make extern.
10659         * omp-low.h (set_oacc_fn_attrib): Declare.
10660         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
10661         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
10662         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
10663         Add and handle function parameter oacc_kernels_p.
10664         (find_reduc_addr, get_omp_data_i_param): New function.
10665         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
10666         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
10667         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
10668         Calculate dominance info.  Skip loops that are not in a kernels region
10669         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
10670         (pass_parallelize_loops::execute): Call parallelize_loops with
10671         oacc_kernels_p argument.
10672         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
10673         New member function.
10674         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
10675         * passes.def: Add argument to pass_parallelize_loops instantation.
10676
10677 2016-01-18  Tom de Vries  <tom@codesourcery.com>
10678
10679         * tree-parloops.c (pass_parallelize_loops::execute): Allow
10680         pass_parallelize_loops to be run outside the loop pipeline.
10681
10682 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
10683
10684         * tree-scalar-evolution.c (follow_copies_to_constant): New.
10685         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
10686
10687 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
10688
10689         PR target/63679
10690         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
10691         using get_ref_base_and_extent.
10692         (equal_mem_array_ref_p): New.
10693         (hashable_expr_equal_p): Add call to previous.
10694
10695 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
10696
10697         PR target/63679
10698         * tree-sra.c (disqualified_constants, constant_decl_p): New.
10699         (sra_initialize): Allocate disqualified_constants.
10700         (sra_deinitialize): Free disqualified_constants.
10701         (disqualify_candidate): Update disqualified_constants when appropriate.
10702         (create_access): Scan for constant-pool entries as we go along.
10703         (scalarizable_type_p): Add check against type_contains_placeholder_p.
10704         (maybe_add_sra_candidate): Allow constant-pool entries.
10705         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
10706         (initialize_constant_pool_replacements): New.
10707         (sra_modify_assign): Avoid mangling assignments created by previous,
10708         and don't generate writes into constant pool.
10709         (sra_modify_function_body): Call initialize_constant_pool_replacements.
10710
10711 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
10712
10713         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
10714         andnot instruction.
10715         (scalar_chain::convert_op): Likewise.
10716         * config/i386/i386.md (*andndi3_doubleword): New.
10717
10718 2016-01-18  Richard Biener  <rguenther@suse.de>
10719
10720         PR tree-optimization/69170
10721         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
10722         building a vector from scalar results of a pattern stmt.
10723
10724 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
10725
10726         * haifa-sched.c (autopref_multipass_init): Work around
10727         -Wmaybe-uninitialized warning.
10728
10729 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10730
10731         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
10732         against the constant 0.
10733
10734 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10735
10736         PR tree-optimization/68799
10737         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
10738         look up phi candidates in the statement-candidate map.
10739         (phi_add_costs): Likewise.
10740         (record_phi_increments): Likewise.
10741         (phi_incr_cost): Likewise.
10742         (ncd_with_phi): Likewise.
10743         (all_phi_incrs_profitable): Likewise.
10744
10745 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
10746
10747         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
10748         -Wmaybe-uninitialized warning.
10749
10750 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
10751
10752         * doc/invoke.texi (Invoking GCC): Add new section to menu.
10753         (Option Summary): Update to reflect new section and moved options.
10754         (C++ Dialect Options): Move -fvtable-verify and related options.
10755         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
10756         and profiling-related options.
10757         (Optimization Options): Move profile generation options and
10758         -fstack-protector and related options.
10759         (Instrumentation Options): New section incorporating moved options.
10760         (Code Generation Options): Move -finstrument-functions and
10761         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
10762
10763 2016-01-16  Tom de Vries  <tom@codesourcery.com>
10764
10765         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
10766
10767 2016-01-16  Tom de Vries  <tom@codesourcery.com>
10768
10769         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
10770
10771 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
10772
10773         * hash-table.h (hash_table::empty): Turn into an inline wrapper
10774         that checks whether the table is already empty.  Rename the
10775         original implementation to...
10776         (hash_table::empty_slot): ...this new private function.
10777
10778 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
10779
10780         PR diagnostic/68899
10781         * diagnostic-show-locus.c (layout::print_source_line): Move x
10782         offset of line until after call to
10783         get_line_width_without_trailing_whitespace.
10784
10785 2016-01-15  Jeff Law  <law@redhat.com>
10786
10787         PR tree-optimization/69270
10788         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
10789         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
10790         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
10791         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
10792         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
10793         ssa_name_has_boolean_range and constant_boolean_node.
10794
10795 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
10796
10797         PR rtl-optimization/69030
10798         * lra-spills.c (remove_pseudos): Check nrefs and make the function
10799         returning bool.
10800         (spill_pseudos): Delete debug insn for dead pseudo.
10801         (lra_spill): Initiate spill_hard_reg and slots memory separately.
10802
10803 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
10804
10805         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
10806         New.
10807         (TYPES_UNOPUS): Likewise.
10808         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
10809         builtin type, from UNOP to UNOPUS.
10810         (lbtruncuv4sf): Likewise.
10811         (lbtruncuv2df): Likewise.
10812         (lrounduv2sf): Likewise.
10813         (lrounduv4sf): Likewise.
10814         (lrounduv2df): Likewise.
10815         (lroundusf): Likewise.
10816         (lroundusf): Likewise.
10817         (lceiluv2sf): Likewise.
10818         (lceiluv4sf): Likewise.
10819         (lceiluv2df): Likewise.
10820         (lceilusf): Likewise.
10821         (lceiludf): Likewise.
10822         (lflooruv2sf): Likewise.
10823         (lflooruv4sf): Likewise.
10824         (lflooruv2df): Likewise.
10825         (lfloorusf): Likewise.
10826         (lfloorudf): Likewise.
10827         (lfrintnuv2sf): Likewise.
10828         (lfrintnuv4sf): Likewise.
10829         (lfrintnuv2df): Likewise.
10830         (lfrintnusf): Likewise.
10831         (lfrintnudf): Likewise.
10832         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
10833         conversion.
10834         (vcvtq_u32_f32): Likewise.
10835         (vcvtq_u64_f64): Likewise.
10836         (vcvta_u32_f32): Likewise.
10837         (vcvtaq_u32_f32): Likewise.
10838         (vcvtaq_u64_f64): Likewise.
10839         (vcvtm_u32_f32): Likewise.
10840         (vcvtmq_u32_f32): Likewise.
10841         (vcvtmq_u64_f64): Likewise.
10842         (vcvtn_u32_f32): Likwise.
10843         (vcvtnq_u32_f32): Likewise.
10844         (vcvtnq_u64_f64): Likewise.
10845         (vcvtp_u32_f32): Likewise.
10846         (vcvtpq_u32_f32): Likewise.
10847         (vcvtpq_u64_f64): Likewise.
10848         (vcvtmd_u64_f64): Likewise.
10849         (vcvtms_u32_f32): Likewise.
10850         (vcvtad_u64_f64): Likewise.
10851         (vcvtas_u32_f32): Likewise.
10852         (vcvtnd_u64_f64): Likewise.
10853         (vcvtns_u32_f32): Likewise.
10854         (vcvtpd_u64_f64): Likewise.
10855         (vcvtps_u32_f32): Likewise.
10856
10857 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10858
10859         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
10860         CSEL of zero_extended registers.
10861
10862 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10863
10864         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
10865         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
10866
10867 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10868
10869         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
10870         false when argument string is not found in the attributes table
10871         at all.
10872
10873 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
10874
10875         PR target/68609
10876         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
10877         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
10878         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
10879         precision estimate.
10880
10881 2016-01-15  Richard Biener  <rguenther@suse.de>
10882
10883         PR tree-optimization/66856
10884         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
10885         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
10886         (vect_create_new_slp_node): Increment stmt reference count.
10887         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
10888         an SLP tree before swapping operands.
10889         (vect_build_slp_tree): Likewise.
10890         (destroy_bb_vec_info): Free stmt info after SLP instances.
10891         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
10892         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
10893         (STMT_VINFO_NUM_SLP_USES): New macro.
10894
10895 2016-01-15  Richard Biener  <rguenther@suse.de>
10896
10897         PR debug/69137
10898         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
10899         (add_linkage_name): ... here.
10900         (gen_typedef_die): Use add_linkage_name_raw instead of
10901         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
10902         if necessary.
10903
10904 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
10905
10906         * gimplify.c (oacc_default_clause): Decode reference and pointer
10907         types for both kernels and parallel regions.
10908
10909 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
10910
10911         PR middle-end/69246
10912         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
10913
10914 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
10915
10916         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
10917         (convert_scalars_to_vector): Likewise.
10918
10919 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
10920
10921         * doc/extend.texi (Type Traits): Fix grammar.
10922
10923 2016-01-15  Martin Jambor  <mjambor@suse.cz>
10924
10925         * tree-inline.c (remap_decl): Use existing dclarations if
10926         remapping a type and prevent_decl_creation_for_types.
10927         (replace_locals_stmt): Do an initial remapping of non-VLA typed
10928         decls first.  Do real remapping with
10929         prevent_decl_creation_for_types set.
10930         * tree-inline.h (copy_body_data): New field
10931         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
10932         padding.
10933
10934 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10935
10936         * config/s390/s390.opt (mmvcle): More verbose help text.
10937
10938 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10939
10940         * config/s390/s390.opt: Add period to -mzvector option text.
10941
10942 2016-01-15  Richard Biener  <rguenther@suse.de>
10943
10944         PR tree-optimization/68961
10945         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
10946         of invariants in stores again.
10947
10948 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10949
10950         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
10951
10952 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
10953
10954         * config/i386/i386.c (ix86_expand_branch): Don't split
10955         DI mode xor instruction to SI mode.
10956
10957 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
10958
10959         PR ipa/68148
10960         * ipa-icf.c (sem_function::merge): Virtual functions may become
10961         reachable even if they address is not taken and there are no
10962         idrect calls.
10963
10964 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
10965
10966         * lto-streamer-out.c (subtract_estimated_size): New function.
10967         (get_symbol_initial_value): Use it.
10968
10969 2016-01-15  Christian Bruel  <christian.bruel@st.com>
10970
10971         PR target/65837
10972         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
10973         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
10974         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
10975         use add_builtin_function_ext_scope instead of add_builtin_function.
10976         (neon_set_p, neon_crypto_set_p): Remove.
10977         (arm_init_builtins): Always call arm_init_neon_builtins and
10978         arm_init_crypto_builtins.
10979         (arm_expand_builtin): Check that builtins are allowed for the arch.
10980         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
10981         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
10982         arm_init_neon_builtins call.
10983
10984 2016-01-15  Richard Biener  <rguenther@suse.de>
10985
10986         PR tree-optimization/69117
10987         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
10988         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
10989         of the leader conservatively.
10990         (free_scc_vn): Restore original SSA name infos.
10991
10992 2016-01-14  Jeff Law  <law@redhat.com>
10993
10994         PR tree-optimization/69270
10995         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
10996         single bit of precision, verify it's also unsigned.
10997         (record_edge_info): Use constant_boolean_node rather than fold_convert
10998         to convert boolean_true/boolean_false to the right type.
10999
11000 2016-01-14  Richard Henderson  <rth@redhat.com>
11001
11002         PR rtl-opt/69014
11003         * loop-doloop.c (record_reg_sets): New.
11004         (doloop_optimize): Reject the transform if the sequence
11005         clobbers registers live at the end of the loop block.
11006         (doloop_optimize_loops): Enable df_live if needed.
11007
11008 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11009
11010         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
11011         * gcc/config/rs6000/rs6000.c: Likewise.
11012         * gcc/config/rs6000/rs6000.h: Likewise.
11013         * gcc/config/rs6000/rs6000.md: Likewise.
11014         * gcc/doc/extend.texi: Likewsie.
11015
11016 2016-01-14  Jeff Law  <law@redhat.com>
11017
11018         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
11019         typo.
11020
11021 2016-01-14  Richard Henderson  <rth@redhat.com>
11022
11023         PR c/69272
11024         PR tree-opt/68964
11025         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
11026         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
11027         instead of builtin_decl_declared_p to test for declaration.
11028
11029 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
11030
11031         * doc/loop.texi (Loop Analysis and Representation): Document
11032         loop_depth function.
11033
11034 2016-01-14  Tom de Vries  <tom@codesourcery.com>
11035
11036         PR tree-optimization/68773
11037         * omp-low.c (expand_omp_target): Don't set force_output.
11038         * varpool.c (varpool_node::get_create): Same.
11039         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
11040         offload_funcs with force_output.
11041
11042 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
11043
11044         PR debug/69244
11045         * lra-eliminations.c (move_plus_up): Don't change anything if either
11046         the outer or inner subreg mode is not MODE_INT.
11047         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
11048         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
11049
11050 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
11051
11052         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
11053         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
11054         reduc_uplus_@var{m}): Remove.
11055         * expr.c (expand_expr_real_2): Remove expansion path for
11056         reduc_[us](min|max|plus) optabs.
11057         * optabs-tree.c (scalar_reduc_to_vector): Remove.
11058         * optabs-tree.h (scalar_reduc_to_vector): Remove.
11059         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
11060         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
11061         * tree-vect-loop.c (vectorizable_reduction): Remove test for
11062         reduc_[us](min|max|plus) optabs.
11063
11064 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
11065
11066         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
11067         (reduc_plus_scal_v2sf): New.
11068         (reduc_smax_v2sf): Rename to...
11069         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
11070         (reduc_smin_v2sf): Rename to...
11071         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
11072
11073 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
11074
11075         * alias.c (compare_base_symbol_refs): New function.
11076         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
11077         it.
11078
11079 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
11080
11081         PR middle-end/68146
11082         PR tree-optimization/69155
11083         * tree-complex.c: Include cfganal.h.
11084         (phis_to_revisit): New variable.
11085         (extract_component): Add phiarg_p argument.  Assert that returned
11086         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
11087         (update_phi_components): Partly rewrite to use loop over real/imag
11088         components instead of code duplication.  If extract_component returns
11089         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
11090         create_tmp_reg into the PHI node instead, and mention the phi triplet
11091         in phis_to_revisit.
11092         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
11093         in phis_to_revisit at the end.
11094
11095 2016-01-14  Richard Biener  <rguenther@suse.de>
11096
11097         PR tree-optimization/68060
11098         * tree-vect-loop.c (vect_is_simple_reduction): Check the
11099         outer loop reduction is only used in the inner loop before
11100         detecting a double reduction.
11101
11102 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
11103
11104         PR target/68269
11105         * combine.c (expand_field_assignment): Punt if compute_mode is
11106         unsupported scalar mode.
11107
11108 2016-01-14  Richard Biener  <rguenther@suse.de>
11109
11110         PR tree-optimization/66856
11111         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
11112         SLP node only if it built successfully.
11113         (vect_analyze_slp_instance): Adjust.
11114
11115 2016-01-14  Jeff Law  <law@redhat.com>
11116
11117         PR tree-optimization/69270
11118         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
11119         (record_edge_info): Use it.  Convert boolean_{true,false}_node
11120         to the type of op0.
11121
11122 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
11123
11124         PR ipa/66487
11125         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
11126         use block_ultimate_origin
11127         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
11128
11129 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
11130
11131         * doc/invoke.texi (Submodel Options): Rename section to
11132         "Machine-Dependent Options" to better reflect its content.
11133         Rewrite introductory text to remove archaic CPU names.
11134         Update references.
11135
11136 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
11137
11138         * doc/invoke.texi (Code Gen Options): Move section up in file,
11139         before target-specific options.  Update menu and option summary
11140         to reflect the new section ordering.
11141
11142 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
11143
11144         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
11145         (C++ Dialect Options): Add cross-reference to -std option.
11146         * doc/standards.texi (C++ Language): Document C++14 support.
11147
11148 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
11149
11150         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
11151         for pack/unpack functions for __ibm128.
11152         (PACK_IF): Likewise.
11153         (UNPACK_IF): Likewise.
11154
11155         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
11156         support for __ibm128 pack/unpack functions.
11157         (rs6000_invalid_builtin): Likewise.
11158         (rs6000_init_builtins): Likewise.
11159         (rs6000_opt_masks): Likewise.
11160
11161         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
11162         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
11163         functions
11164         (RS6000_BTM_COMMON): Likewise.
11165
11166         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
11167         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
11168         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
11169         128-bit floating point.  Add support for the double values to be
11170         in Altivec registers for TF/IF packing and unpacking, but restrict
11171         TD packing sub-fields to be FPR registers.  Don't allow overlapped
11172         register support for packing.  Allow pack inputs to be memory
11173         locations.  Don't build generator functions for unpack<mode>_dm
11174         and unpack<mode>_nodm.
11175         (unpack<mode>_dm): Likewise.
11176         (unpack<mode>_nodm): Likewise.
11177         (pack<mode>): Likewise.
11178
11179         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
11180         built-in functions to pack/unpack explicit __ibm128 values.
11181         (__builtin_unpack_ibm128): Likewise.
11182
11183         * doc/extend.texi (PowerPC Built-in Functions): Document
11184         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
11185
11186 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
11187
11188         PR c/66208
11189         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
11190         Add new arg loc and pass it down as context.
11191         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
11192         to the location to use for the warning.
11193         (check_function_arguments): New arg loc.  All callers changed.  Pass
11194         it to check_function_nonnull.
11195         * c-common.h (check_function_arguments): Adjust declaration.
11196
11197 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
11198
11199         PR tree-optimization/69156
11200         * gimple.c (validate_type): Removed.
11201         (gimple_builtin_call_types_compatible_p): Use
11202         useless_type_conversion_p instead of validate_type.
11203         * value-prof.c (gimple_stringop_fixed_value): Fold
11204         icall_size to correct type.
11205
11206 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
11207
11208         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
11209         effects.
11210
11211 2016-01-13  Richard Henderson  <rth@redhat.com>
11212
11213         PR tree-opt/68964
11214         * target.def (builtin_tm_load, builtin_tm_store): Remove.
11215         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
11216         (ix86_builtin_tm_store): Remove.
11217         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
11218         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
11219         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
11220         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
11221         * doc/tm.texi: Rebuild.
11222
11223         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
11224         (BUILT_IN_TM_MEMCPY_RTWN): New.
11225         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
11226         fallback from vector to integer helpers.
11227         (build_tm_load): Handle vector types directly, instead of
11228         via target hook.
11229         (build_tm_store): Likewise.
11230         (expand_assign_tm): Prepare for register types not handled by
11231         the above.  Copy them to memory and use memcpy.
11232         * tree.c (tm_define_builtin): New.
11233         (find_tm_vector_type): New.
11234         (build_tm_vector_builtins): New.
11235         (build_common_builtin_nodes): Call it.
11236
11237 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
11238
11239         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
11240         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
11241
11242 2016-01-13  Tom de Vries  <tom@codesourcery.com>
11243
11244         PR tree-optimization/69169
11245         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
11246         handled_struct_type param.
11247         (create_variable_info_for, intra_create_variable_infos): Call
11248         create_variable_info_for_1 with extra arg.
11249
11250 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
11251
11252         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
11253         and "armv8.1-a+crc" entries.
11254
11255 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
11256
11257         PR target/69228
11258         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
11259         Change first operand predicate from register_or_constm1_operand
11260         to register_operand.
11261         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
11262         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
11263         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
11264         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
11265         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
11266         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
11267         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
11268         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
11269         comparison with constm1_rtx from vec_prefetch_gen part.
11270
11271 2016-01-13  Richard Biener  <rguenther@suse.de>
11272
11273         PR tree-optimization/69013
11274         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
11275         Exchange assert for a test.
11276
11277 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11278
11279         PR target/69247
11280         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
11281
11282 2016-01-13  Richard Biener  <rguenther@suse.de>
11283
11284         PR tree-optimization/69242
11285         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
11286         assert with a check.
11287
11288 2016-01-13  Richard Biener  <rguenther@suse.de>
11289
11290         PR tree-optimization/69186
11291         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11292         Properly guard vect_update_misalignment_for_peel call.
11293
11294 2016-01-12  Jeff Law  <law@redhat.com>
11295
11296         PR tree-optimization/pr67755
11297         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
11298         "need_profile_correction".
11299         (thread_block_1): Initialize new field to false by default.  If we
11300         have multiple thread paths through a common joiner to different
11301         final targets, then set new field to true.
11302         (compute_path_counts): Only do count adjustment when it's really
11303         needed.
11304
11305 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
11306
11307         * doc/invoke.texi (Spec Files): Move section down in file, past
11308         all command-line option descriptions.
11309
11310 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11311
11312         PR middle-end/54809
11313         * doc/gty.texi: Remove documentation of mark_hook.
11314         * gengtype.c (struct write_types_data): Remove code to support
11315         mark_hook attribute.
11316         (walk_type): Likewise.
11317         (write_func_for_structure): Likewise.
11318
11319 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
11320
11321         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
11322         Directory Options, and -specs= to Overall Options.
11323         (Overall Options): Adjust similarly.  Reorder to group related
11324         options together.  Make -specs= cross-reference the spec file details.
11325         (Directory Options): Adjust similarly.
11326
11327 2016-01-12  Jeff Law  <law@redhat.com>
11328
11329         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
11330
11331 2016-01-12  Olivier Hainque  <hainque@adacore.com>
11332
11333         * gcc.c (spec_undefvar_allowed): New global.
11334         (process_command): Set to true when running for --version or --help,
11335         alone or together.
11336         (getenv_spec_function): When the variable is not defined, use the
11337         variable name as the variable value if we're allowed not to issue
11338         a fatal error.
11339
11340 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
11341
11342         PR tree-optimization/68911
11343         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
11344         information computed for expression "init + nit * step".
11345
11346 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
11347
11348         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
11349         about name of GCC executable.  Remove deleted node from menu.
11350         (Directory Options) <-B>: Remove cross-reference to deleted node.
11351         (Target Options): Delete section.
11352
11353 2016-01-12  Christian Bruel  <christian.bruel@st.com>
11354
11355         PR target/69180
11356         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
11357         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
11358
11359 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
11360
11361         PR target/69198
11362         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
11363         aligned_mem is properly set for AVX512-VL floating point masked
11364         stores.
11365
11366         PR target/69175
11367         * ifcvt.c (cond_exec_process_if_block): When removing the last
11368         insn from then_bb, remove also any possible barriers that follow it.
11369
11370 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
11371
11372         PR target/68456
11373         PR target/69226
11374         * config/i386/iamcu.h (SIZE_TYPE): New macro.
11375         (PTRDIFF_TYPE): Likewise.
11376         (WCHAR_TYPE): Likewise.
11377         (WCHAR_TYPE_SIZE): Likewise.
11378         (STDINT_LONG32): Likewise.
11379
11380 2016-01-12  Richard Biener  <rguenther@suse.de>
11381
11382         PR tree-optimization/69053
11383         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
11384         convert initial value for cond reductions.
11385
11386 2016-01-12  Richard Biener  <rguenther@suse.de>
11387
11388         PR tree-optimization/69007
11389         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
11390         widen_sum after dot_prod and sad.
11391
11392 2016-01-12  Richard Biener  <rguenther@suse.de>
11393
11394         PR tree-optimization/69168
11395         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
11396         pattern stmt SLP type.
11397         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
11398         end up unused so cope with that case.
11399
11400 2016-01-12  Richard Biener  <rguenther@suse.de>
11401
11402         PR tree-optimization/69157
11403         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
11404         stmts def type only during analyze phase.
11405         (vectorizable_call): Likewise.
11406         (vectorizable_simd_clone_call): Likewise.
11407         (vectorizable_conversion): Likewise.
11408         (vectorizable_assignment): Likewise.
11409         (vectorizable_shift): Likewise.
11410         (vectorizable_operation): Likewise.
11411         (vectorizable_store): Likewise.
11412         (vectorizable_load): Likewise.
11413
11414 2016-01-12  Richard Biener  <rguenther@suse.de>
11415
11416         PR tree-optimization/69174
11417         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
11418         space.
11419         (vectorizable_load): Properly compute the number of loads needed
11420         for permuted strided SLP loads and do not spuriously assign
11421         to SLP_TREE_VEC_STMTS.
11422
11423 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
11424
11425         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
11426         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
11427         (MD_EXEC_PREFIX): Remove.
11428         (MD_STARTFILE_PREFIX) Removee.
11429         (FILE_NAME_ABSOLUTE_P): Remove.
11430         (CPP_SPEC): Do not read macros from sys/version.h.
11431         (LINK_COMMAND_SPEC): Remove.
11432         (LOCAL_INCLUDE_DIR): Remove.
11433         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
11434         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
11435         (POST_LINK_SPEC): Define to invoke stubify after linker
11436         (LIBSTDCXX): Remove define
11437         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
11438         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
11439         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
11440         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
11441         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
11442         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
11443         (i386_djgpp_asm_named_section): Add propotype of new procedure
11444
11445         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
11446         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
11447         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
11448         in config/i386/djgpp.h).
11449         (STANDARD_STARTFILE_PREFIX_2): Define identical to
11450         STANDARD_STARTFILE_PREFIX_1.
11451         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
11452         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
11453         installation errors.
11454         (MAX_OFILE_ALIGNMENT): Define to 128.
11455         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
11456
11457         * config/i386/djgpp.c: New file. Add implementation of
11458         i386_djgpp_asm_named_section.
11459
11460         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
11461
11462         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
11463         Add rule for building djgpp.o.
11464
11465 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11466
11467         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
11468         (rtx_is_swappable_p): Reductions are swappable.
11469         (insn_is_swappable_p): V2DF reductions are swappable.
11470
11471 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
11472
11473         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
11474         reloads for other unsupported memory operands.
11475
11476 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
11477             Jim Wilson  <jim.wilson@linaro.org>
11478
11479         PR target/69194
11480         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
11481         copy_to_mode_reg instead of force_reg.
11482
11483 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
11484
11485         PR target/69225
11486         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
11487         TARGET_80387 is true.
11488
11489 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
11490
11491         PR target/69071
11492         * lra-eliminations.c (move_plus_up): Only move plus up
11493         if subreg of the constant can be simplified into constant
11494         and use the simplified subreg of the constant instead of
11495         the original constant.
11496
11497         * fold-const.c (fold_convertible_p): Don't return true
11498         for conversion of VECTOR_TYPE to same sized integral type.
11499         (fold_convert_loc): Fix up formatting.  Fold conversion of
11500         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
11501         instead of NOP_EXPR.
11502
11503         PR tree-optimization/69214
11504         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
11505         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
11506         Formatting fix.
11507
11508         PR tree-optimization/69207
11509         * tree-vect-slp.c (vect_get_constant_vectors): For
11510         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
11511         fold_convertible_p to vector_type's element type, and always
11512         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
11513
11514 2016-01-11  Richard Biener  <rguenther@suse.de>
11515
11516         PR tree-optimization/69173
11517         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
11518         fixup the cycle if all stmts are in a pattern.
11519
11520 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
11521
11522         PR middle-end/68999
11523         * alias.c (base_alias_check): Move check for addresses with
11524         alignment ANDs before the call for compare_base_decls.
11525         (memrefs_conflict_p): Return -1 for different decls
11526         that went through alignment adjustments.
11527
11528 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11529
11530         PR rtl-optimization/68796
11531         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
11532         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
11533         and QImode comparisons against zero with CC_NZmode.
11534         * config/aarch64/iterators.md (short_mask): New mode_attr.
11535
11536 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
11537
11538         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
11539         (<avx512>_store<mode>_mask): Likewise.
11540
11541 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
11542             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11543
11544         PR rtl-optimization/68841
11545         * ifcvt.c (struct noce_if_info): Add orig_x field.
11546         (bbs_ok_for_cmove_arith): Add to_rename parameter.
11547         Don't record conflicts on to_rename if it's present.
11548         Allow memory destinations in sets.
11549         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
11550         blocks, passing orig_x to the checks.
11551         (noce_process_if_block): Set if_info->orig_x appropriately.
11552
11553 2016-01-11  Tom de Vries  <tom@codesourcery.com>
11554
11555         PR tree-optimization/69069
11556         * tree-parloops.c (create_parallel_loop): Add missing phi args.
11557
11558 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
11559
11560         PR rtl-optimization/68920
11561         * config/i386/i386.c (ix86_option_override_internal): Restrict number
11562         of conditional moves for  RTL if-conversion to 1 for
11563         TARGET_ONE_IF_CONV_INSN.
11564         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
11565         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
11566         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
11567         parameter to restirct number of conditional moves for
11568         RTL if-conversion.
11569         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
11570         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
11571         conditionl moves.
11572
11573 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
11574
11575         PR bootstrap/69123
11576         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
11577         onepart vars.  Fix typo in comment.  Fix reversed condition in
11578         unshare test.
11579         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
11580
11581         PR bootstrap/69123
11582         * var-tracking.c (dump_onepart_variable_differences): New.
11583         (dataflow_set_different): If a detailed dump is requested,
11584         delay early returns and dump differences between onepart
11585         variables present before and after, and added variables.
11586
11587 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
11588
11589         PR target/69010
11590         * expr.c (expand_expr_real_1): For boolean vector constants
11591         with a scalar mode use const_scalar_mask_from_tree.
11592         (const_scalar_mask_from_tree): New.
11593         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
11594         assigned to a mask type to handle constants.
11595
11596 2016-01-11  Martin Jambor  <mjambor@suse.cz>
11597
11598         PR ipa/69044
11599         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
11600         useless parameters if we cannot change function signature.
11601
11602 2016-01-11  Martin Jambor  <mjambor@suse.cz>
11603
11604         PR ipa/66616
11605         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
11606         flag.
11607
11608 2016-01-11  Tom de Vries  <tom@codesourcery.com>
11609
11610         PR tree-optimization/69109
11611         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
11612         latch with phi.
11613
11614 2016-01-11  Tom de Vries  <tom@codesourcery.com>
11615
11616         PR tree-optimization/69108
11617         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
11618         res is not used in a phi.
11619
11620 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
11621
11622         PR 67425
11623         * common.opt (frandom-seed): Fix parameter name.
11624         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
11625
11626 2016-01-11  Tom de Vries  <tom@codesourcery.com>
11627
11628         PR tree-optimization/69058
11629         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
11630         not supported.
11631
11632 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
11633
11634         * config/arc/arc.opt (mdiv-rem): Add period to the end.
11635         (mcode-density): Likewise.
11636
11637 2016-01-10  Tom de Vries  <tom@codesourcery.com>
11638
11639         PR tree-optimization/69062
11640         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
11641         (parallelize_loops): Don't paralelize loop that has phi with address
11642         arg.
11643
11644 2016-01-10  Tom de Vries  <tom@codesourcery.com>
11645
11646         PR tree-optimization/69039
11647         * tree-parloops.c (try_create_reduction_list): Only allow single exit
11648         phi for reduction.
11649
11650 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
11651
11652         PR middle-end/68743
11653         * match.pd: Require target has function_c99_misc before doing
11654         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
11655
11656 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
11657
11658         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
11659         use GMPINC.
11660         * configure: Regenerate.
11661
11662 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
11663
11664         PR middle-end/50865
11665         PR tree-optimization/69097
11666         * fold-const.h (expr_not_equal_to): New prototype.
11667         * fold-const.c: Include stringpool.h and tree-ssanames.h.
11668         (expr_not_equal_to): New function.
11669         * match.pd (X % -Y is the same as X % Y): Don't optimize
11670         unless X is known not to be equal to minimum or Y is known
11671         not to be equal to -1.
11672         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
11673         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
11674         (simplify_stmt_using_ranges): Adjust caller.
11675         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
11676         substitute_and_fold.
11677
11678 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
11679
11680         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
11681         w/o DECL_NAME.
11682
11683 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
11684
11685         PR tree-optimization/69167
11686         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
11687         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
11688         ops[0] comparison.
11689         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
11690
11691 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
11692             Richard Biener  <rguenther@suse.de>
11693
11694         PR tree-optimization/68707
11695         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
11696         instances that can be handled via vect_load_lanes.
11697
11698 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
11699
11700         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
11701         if we can't determine address equivalence.
11702         * alias.c (compare_base_decl): Update for changed return value of
11703         symtab_node::equal_address_to.
11704
11705 2016-01-08  Jason Merrill  <jason@redhat.com>
11706
11707         PR c++/68983
11708         PR c++/67557
11709         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
11710         * expr.c (store_field): Not here.
11711         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
11712         call with TREE_ADDRESSABLE type.
11713         * tree-cfg.c (verify_gimple_call): Adjust.
11714
11715 2016-01-08  Olivier Hainque  <hainque@adacore.com>
11716
11717         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
11718         libc_internal.
11719
11720 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
11721
11722         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
11723         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
11724         (reduc_smin_v2sf): Rename to...
11725         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
11726         (reduc_splus_v2sf): Rename to...
11727         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
11728
11729 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
11730
11731         PR tree-optimization/69162
11732         * gimplify.c (gimplify_va_arg_expr): Encode original type of
11733         valist argument in another argument.
11734         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
11735         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
11736         to determine the va_list type, build a MEM_REF instead of
11737         build_fold_indirect_ref.
11738
11739         PR tree-optimization/69172
11740         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
11741         gimple_build.
11742
11743 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11744
11745         PR tree-optimization/67781
11746         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
11747         and cmpnop in two steps: first the ones not accessed in original
11748         gimple expression in a endian independent way and then the ones not
11749         accessed in the final result in an endian-specific way.
11750
11751 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
11752
11753         PR tree-optimization/69083
11754         * tree-vect-slp.c (vect_get_constant_vectors): For
11755         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
11756         element type.  If op is fold_convertible_p to vector_type's element
11757         type, use NOP_EXPR instead of VCE.
11758
11759 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
11760
11761         PR rtl-optimization/67778
11762         PR rtl-optimization/68634
11763         PR rtl-optimization/68909
11764         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
11765         block from the stack until done with it.  Remove a superfluous
11766         bitmap set.  Remove a superfluous bitmap test.
11767
11768 2016-01-07  Martin Sebor  <msebor@redhat.com>
11769
11770         PR c/68966
11771         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
11772         constraint on the type of arguments.
11773
11774 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
11775
11776         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
11777         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
11778         unaligned_access on the gcc_options set.
11779         * config/arm/arm.c (arm_option_override_internal): Use
11780         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
11781
11782 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
11783
11784         PR target/69140
11785         * config/i386/i386.c (ix86_frame_pointer_required): Enable
11786         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
11787
11788 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
11789
11790         Revert
11791         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
11792
11793         PR target/69140
11794         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
11795         depending on frame_pointer_needed before remaining integer and SSE
11796         registers are saved.
11797
11798 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
11799
11800         PR 1078
11801         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
11802
11803 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
11804
11805         PR target/69171
11806         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
11807         Use the "xBm" constraint.
11808         (float<sseintvecmodelower><mode>2<mask_name><round_name):
11809         Likewise.
11810         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
11811         (sse_cvtsi2ssq<round_name>): Likewise.
11812         (sse_cvtss2si<round_name>): Likewise.
11813         (sse_cvtss2siq<round_name>): Likewise.
11814         (sse2_cvtsi2sdq<round_name>): Likewise.
11815         (sse2_cvtsd2si<round_name>): Likewise.
11816         (sse2_cvtsd2siq<round_name>): Likewise.
11817         * config/i386/subst.md (round_nimm_scalar_predicate): New
11818         predicate.
11819
11820 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
11821
11822         PR middle-end/67639
11823         * varasm.c (make_decl_rtl): Mark invalid register vars as
11824         DECL_EXTERNAL.
11825
11826         PR rtl-optimization/66206
11827         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
11828         All callers changed.
11829
11830 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
11831
11832         PR tree-optimization/69141
11833         * tree-ssa-pre.c: Include langhooks.h.
11834         (eliminate_dom_walker::before_dom_children): Use
11835         lang_hooks.decl_printable_name instead of
11836         cgraph_node::get ()->name ().
11837
11838         PR middle-end/68960
11839         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
11840         it and DECL_ALIGN too.
11841
11842 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
11843
11844         * config/mips/mips-ftypes.def: Sort to lexicographical order.
11845
11846 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
11847
11848         PR target/69140
11849         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
11850         depending on frame_pointer_needed before remaining integer and SSE
11851         registers are saved.
11852
11853 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11854
11855         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
11856         mode iterator with VSX_M2.
11857         (*p9_vecstore_<mode>): Likewise.
11858         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
11859         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
11860         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
11861         (define_split for VSX_LE128 stores): Likewise.
11862         (define_peephole2 for TImode LE swaps): Likewise.
11863         (define_split for VSX_LE128 post-reload stores): Likewise.
11864
11865 2016-01-06  Marek Polacek  <polacek@redhat.com>
11866
11867         PR sanitizer/69099
11868         * convert.c (convert_to_integer_1): Adjust call to
11869         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
11870         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
11871         EXPR instead of ARG.
11872         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
11873
11874 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
11875
11876         PR 1078
11877         * doc/extend.texi (RL78 Variable Attributes): New section.
11878
11879 2016-01-05  Marek Polacek  <polacek@redhat.com>
11880
11881         PR c/69104
11882         * builtins.c (get_memmodel): Use expansion point location rather than
11883         the input location.  Call warning_at rather than warning.
11884         (expand_builtin_atomic_compare_exchange): Likewise.
11885         (expand_builtin_atomic_load): Likewise.
11886         (expand_builtin_atomic_store): Likewise.
11887         (expand_builtin_atomic_clear): Likewise.
11888
11889 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
11890
11891         PR target/68991
11892         * config/i386/i386.c (ix86_expand_vector_logical_operator):
11893         Replace nonimmediate_operand with vector_operand.
11894         * config/i386/predicates.md (vector_operand): New predicate.
11895         (general_vector_operand): Replace nonimmediate_operand with
11896         vector_operand.
11897         * config/i386/sse.md: Replace nonimmediate_operand with
11898         vector_operand and m constraint with Bm constraint on SSE
11899         patterns with 16-byte memory operand.
11900         * config/i386/subst.md (round_nimm_predicate): Replace
11901         nonimmediate_operand with vector_operand.
11902         (round_saeonly_nimm_predicate): Likewise.
11903         (round_saeonly_nimm_scalar_predicate): New.
11904
11905 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
11906
11907         PR target/68991
11908         * config/i386/constraints.md (Bm): New constraint.
11909         * config/i386/predicates.md (vector_memory_operand): New
11910         predicate.
11911         * config/i386/sse.md: Replace xm with xBm in plusminus and
11912         any_logic patterns.
11913
11914 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
11915
11916         PR 1078
11917         * doc/extend.texi (V850 Function Attributes): New section.
11918         (V850 Variable Attributes): New section.
11919
11920 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
11921
11922         PR 1078
11923         * doc/extend.texi (MicroBlaze Function Attributes): Document
11924         interrupt_handler and fast_interrupt attributes.
11925
11926 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
11927
11928         PR other/60465
11929         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
11930         for local symbolic operands.
11931         * config/ia64/predicates.md (local_symbolic_operand64): New
11932         predicate.
11933
11934 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11935
11936         PR rtl-optimization/68651
11937         * combine.c (combine_simplify_rtx): Canonicalize x + x into
11938         x << 1.
11939
11940 2016-01-05  Nathan Sidwell  <nathan@acm.org>
11941
11942         * alias.c (compare_base_decls): Use symtab_node::get.
11943
11944 2016-01-05  Nick Clifton  <nickc@redhat.com>
11945
11946         PR target/68770
11947         * ira-costs.c (copy_cost): Initialise the t_icode field of the
11948         secondary_reload_info structure.
11949
11950         PR target/66655
11951         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
11952         decls if weak support is available.
11953
11954 2016-01-04  Martin Sebor  <msebor@redhat.com>
11955
11956         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
11957
11958 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
11959
11960         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
11961         OPTION_MASK_P9_DFORM.
11962
11963         * config/rs6000/constraints.md (wo constraint): New constraint for
11964         ISA 3.0 (power9).
11965
11966         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
11967         for wo constraint.
11968         (rs6000_init_hard_regno_mode_ok): Likewise.
11969
11970         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
11971         wo constraint.
11972
11973         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
11974         expanders not to have constraints.  Add support for ISA 3.0 xxperm
11975         instruction.  Add support for fusing xxlor with xxperm.
11976         (altivec_vperm_<mode>_internal): Likewise.
11977         (altivec_vperm_v8hiv16qi): Likewise.
11978         (altivec_vperm_<mode>v16q): Likewise.
11979         (altivec_vperm_<mode>_uns): Likewise.
11980         (vperm_v8hiv4si): Likewise.
11981         (vperm_v16qiv8hi): Likewise.
11982
11983         * doc/md.texi (RS/6000 constraints): Document wo constraint.
11984
11985 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
11986
11987         Update copyright years.
11988
11989         * gcc.c (process_command): Update copyright notice dates.
11990         * gcov-dump.c (print_version): Ditto.
11991         * gcov.c (print_version): Ditto.
11992         * gcov-tool.c (print_version): Ditto.
11993         * gengtype.c (create_file): Ditto.
11994         * doc/cpp.texi: Bump @copying's copyright year.
11995         * doc/cppinternals.texi: Ditto.
11996         * doc/gcc.texi: Ditto.
11997         * doc/gccint.texi: Ditto.
11998         * doc/gcov.texi: Ditto.
11999         * doc/install.texi: Ditto.
12000         * doc/invoke.texi: Ditto.
12001
12002 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
12003
12004         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
12005         modes larger than TImode as TImode if NEON is not enabled.
12006
12007 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
12008
12009         PR target/69100
12010         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
12011         mode for %f0-%f31 only if TARGET_FPU.
12012
12013 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
12014
12015         PR target/69072
12016         * config/sparc/sparc.c (scan_record_type): Take into account subfields
12017         to compute the PACKED_P predicate.
12018         (function_arg_record_value): Minor tweaks.
12019
12020 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12021
12022         * doc/install.texi (--with-multilib-list): Describe the meaning of the
12023         option for arm*-*-* targets.
12024
12025 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
12026
12027         * doc/extend.texi (Common Function Attributes): Move docs for
12028         MSP430-specific attributes to....
12029         (MSP430 Function Attributes): ...here.  Delete the redundant
12030         entries and copy-edit the remaining text.
12031         (MSP430 Variable Attributes): Use uniform format for index
12032         entries and add a cross-reference to the corresponding function
12033         attribute docs.
12034
12035 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
12036
12037         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
12038         -finite-math typo.
12039         (x86 Options): Likewise.
12040
12041 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
12042
12043         PR 1078
12044
12045         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
12046         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
12047         to corresponding attribute.
12048
12049 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
12050
12051         * doc/extend.texi (Common Function Attributes) <noplt>: Move
12052         to correct alphabetization of table.  Copy-edit and correct
12053         markup.
12054         <stack_protect>: Likewise.
12055         <target_clones>: Likewise.
12056         <simd>: Likewise.
12057         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
12058         Correct punctuation.
12059         (Code Gen Options) <-fno-plt>: Copy-edit.
12060
12061 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12062
12063         PR target/68917
12064         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
12065         SI values.  Explicitly convert SI to DI and vice-versa.
12066
12067 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
12068
12069         PR tree-optimization/69070
12070         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
12071         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
12072
12073         PR sanitizer/69055
12074         * ubsan.c (ubsan_instrument_float_cast): Call
12075         initialize_sanitizer_builtins.
12076
12077         PR target/69015
12078         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
12079 \f
12080 Copyright (C) 2016 Free Software Foundation, Inc.
12081
12082 Copying and distribution of this file, with or without modification,
12083 are permitted in any medium without royalty provided the copyright
12084 notice and this notice are preserved.