* targhooks.c (default_have_speculation_safe_value): Add
[platform/upstream/linaro-gcc.git] / gcc / ChangeLog
1 2018-07-31  Ian Lance Taylor  <iant@golang.org>
2
3         * targhooks.c (default_have_speculation_safe_value): Add
4         ATTRIBUTE_UNUSED.
5
6 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
7
8         * targhooks.h (speculation_safe_value_not_needed): New prototype.
9         * targhooks.c (speculation_safe_value_not_needed): New function.
10         * target.def (have_speculation_safe_value): Update documentation.
11         * doc/tm.texi: Regenerated.
12
13 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
14
15         * config/aarch64/iterators.md (ALLI_TI): New iterator.
16         * config/aarch64/aarch64.md (despeculate_copy<ALLI_TI:mode>): New
17         expand.
18         (despeculate_copy<ALLI:mode>_insn): New insn.
19         (despeculate_copyti_insn): New insn.
20         (despeculate_simple<ALLI:mode>): New insn
21         (despeculate_simpleti): New insn.
22         * config/aarch64/aarch64.c (aarch64_speculation_safe_value): New
23         function.
24         (TARGET_SPECULATION_SAFE_VALUE): Redefine to
25         aarch64_speculation_safe_value.
26         (aarch64_print_operand): Handle const0_rtx in modifier 'H'.
27
28 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
29
30         * config/aarch64/aarch64-speculation.cc: New file.
31         * config/aarch64/aarch64-passes.def (pass_track_speculation): Add
32         before pass_reorder_blocks.
33         * config/aarch64/aarch64-protos.h (make_pass_track_speculation): Add
34         prototype.
35         * config/aarch64/aarch64.c (aarch64_conditional_register_usage): Fix
36         X14 and X15 when tracking speculation.
37         * config/aarch64/aarch64.md (register name constants): Add
38         SPECULATION_TRACKER_REGNUM and SPECULATION_SCRATCH_REGNUM.
39         (unspec): Add UNSPEC_SPECULATION_TRACKER.
40         (speculation_barrier): New insn attribute.
41         (cmp<mode>): Allow SP in comparisons.
42         (speculation_tracker): New insn.
43         (speculation_barrier): Add speculation_barrier attribute.
44         * config/aarch64/t-aarch64: Add make rule for aarch64-speculation.o.
45         * config.gcc (aarch64*-*-*): Add aarch64-speculation.o to extra_objs.
46         * doc/invoke.texi (AArch64 Options): Document -mtrack-speculation.
47
48 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
49
50         * config/aarch64/aarch64.md (cb<optab><mode>1): Disable when
51         aarch64_track_speculation is true.
52         (tb<optab><mode>1): Likewise.
53         * config/aarch64/aarch64.c (aarch64_split_compare_regs): Do not
54         generate CB[N]Z when tracking speculation.
55         (aarch64_split_compare_and_swap): Likewise.
56         (aarch64_split_atomic_op): Likewise.
57
58 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
59
60         * config/aarch64/aarch64.opt (mtrack-speculation): New target option.
61
62 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
63
64         * config/aarch64.md (unspecv): Add UNSPECV_SPECULAION_BARRIER.
65         (speculation_barrier): New insn.
66
67 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
68
69         * config/arm/unspecs.md (unspecv): Add VUNSPEC_SPECULATION_BARRIER.
70         * config/arm/arm.md (speculation_barrier): New expand.
71         (speculation_barrier_insn): New pattern.
72
73 2018-07-31  Richard Earnshaw  <rearnsha@arm.com>
74
75         * builtin-types.def (BT_FN_PTR_PTR_VAR): New function type.
76         (BT_FN_I1_I1_VAR, BT_FN_I2_I2_VAR, BT_FN_I4_I4_VAR): Likewise.
77         (BT_FN_I8_I8_VAR, BT_FN_I16_I16_VAR): Likewise.
78         * builtin-attrs.def (ATTR_NOVOPS_NOTHROW_LEAF_LIST): New attribute
79         list.
80         * builtins.def (BUILT_IN_SPECULATION_SAFE_VALUE_N): New builtin.
81         (BUILT_IN_SPECULATION_SAFE_VALUE_PTR): New internal builtin.
82         (BUILT_IN_SPECULATION_SAFE_VALUE_1): Likewise.
83         (BUILT_IN_SPECULATION_SAFE_VALUE_2): Likewise.
84         (BUILT_IN_SPECULATION_SAFE_VALUE_4): Likewise.
85         (BUILT_IN_SPECULATION_SAFE_VALUE_8): Likewise.
86         (BUILT_IN_SPECULATION_SAFE_VALUE_16): Likewise.
87         * builtins.c (expand_speculation_safe_value): New function.
88         (expand_builtin): Call it.
89         * doc/cpp.texi: Document predefine __HAVE_SPECULATION_SAFE_VALUE.
90         * doc/extend.texi: Document __builtin_speculation_safe_value.
91         * doc/md.texi: Document "speculation_barrier" pattern.
92         * doc/tm.texi.in: Pull in TARGET_SPECULATION_SAFE_VALUE and
93         TARGET_HAVE_SPECULATION_SAFE_VALUE.
94         * doc/tm.texi: Regenerated.
95         * target.def (have_speculation_safe_value, speculation_safe_value): New
96         hooks.
97         * targhooks.c (default_have_speculation_safe_value): New function.
98         (default_speculation_safe_value): New function.
99         * targhooks.h (default_have_speculation_safe_value): Add prototype.
100         (default_speculation_safe_value): Add prototype.
101
102 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
103
104         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
105         Emit CBNZ inside loop when doing a strong exchange and comparing
106         against zero.  Generate the CC flags after the loop.
107
108 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
109
110         PR rtl-optimization/68664
111         * config/arm/arm.c (arm_sched_can_speculate_insn):
112         New function.  Declare prototype.
113         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
114
115 2016-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
116
117         * config/aarch64/aarch64.c: Delete inclusion of
118         cortex-a57-fma-steering.h.
119         (aarch64_override_options): Delete call
120         to aarch64_register_fma_steering.
121         * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
122         * config/aarch64/cortex-a57-fma-steering.h: Delete.
123         * config/aarch64/aarch64-passes.def: New file.
124         * config/aarch64/cortex-a57-fma-steering.c
125         (aarch64_register_fma_steering): Delete definition.
126         (make_pass_fma_steering): Remove static qualifier.
127         * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
128         (cortex-a57-fma-steering.o): Remove dependency on
129         cortex-a57-fma-steering.h.
130
131 2017-07-06  Vyacheslav Barinov  <v.barinov@samsung.com>
132
133         * tree.def: Add STATEMENT_LIST_END tree code.
134         * tree.c: Add STATEMENT_LIST_END handling as TS_COMMON.
135         * gimplify.c (gimplify_expr): Use STATEMENT_LIST_END location to
136         provide right information for try_finally_expr.
137         * tree-eh.c (lower_try_finally_onedest): Set finally location
138         accordingly to location of last statement in cleanup.
139         * gimple.c (DEFTREECODE): handle STATEMENT_LIST_END as appropriate
140         GIMPLE_SINGLE_RHS.
141         * cp/constraint.cc (check_function_concept): Handle concept
142         definitions with STATEMENT_LIST_END.
143         * cp/error.c (dump_expr): Add STATEMENT_LIST_END support.
144         * fold-const.c (operand_equal_p): Add STATEMENT_LIST_END support.
145         * c-family/c-semantics.c (pop_stmt_list): Support single-statement
146         lists extraction with STATEMENT_LIST_END in the end.
147
148 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
149
150         * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
151         BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
152
153 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
154
155         * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
156         * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
157         ASAN_STACK_MAGIC_MIDDLE.
158         (asan_global_struct): Increase the size of fields.
159         (asan_add_global): Add new field constructor.
160
161 2017-06-27  Jakub Jelinek  <jakub@redhat.com>
162
163         PR sanitizer/81209
164         * ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.
165
166 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
167
168         Backported from mainline
169         2017-06-20  Jakub Jelinek  <jakub@redhat.com>
170
171         PR sanitizer/81125
172         * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
173         by removing enum keyword.
174         (ubsan_type_descriptor): Likewise.  Formatting fix.
175
176         2017-06-19  Jakub Jelinek  <jakub@redhat.com>
177
178         PR sanitizer/81125
179         * ubsan.h (enum ubsan_encode_value_phase): New.
180         (ubsan_encode_value): Change second argument to
181         enum ubsan_encode_value_phase with default value of
182         UBSAN_ENCODE_VALUE_GENERIC.
183         * ubsan.c (ubsan_encode_value): Change second argument to
184         enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
185         adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
186         create_tmp_var_raw instead of create_tmp_var and use a
187         TARGET_EXPR.
188         (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
189         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
190         ubsan_encode_value callers.
191
192         PR sanitizer/81111
193         * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
194         use create_tmp_var_raw instead of create_tmp_var, mark it addressable
195         just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
196
197
198 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
199
200         PR sanitizer/80414
201         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
202         to ubsan_encode_value.
203
204 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
205
206         PR sanitizer/79897
207         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
208         temporary.
209
210 2017-02-03  Carl Love  <cel@us.ibm.com>
211
212         Backport of two commits from mainline, r244943 and r244904,
213         dated 017-01-26 and 2017-01-25 respectively
214
215         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
216         of entries for ALTIVEC_BUILTIN_VEC_PACKS.  Remove bogus entries
217         for P8V_BUILTIN_VEC_VGBBD.
218
219 2017-02-03  Walter Lee  <walt@tilera.com>
220
221         Backport from mainline
222         2017-02-03  Walter Lee  <walt@tilera.com>
223
224         PR target/78862
225         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
226         after initial stackframe link reg save.
227         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
228
229 2017-02-03  Maxim Ostapenko  <m.ostapenko@samsung.com>
230
231         PR lto/79061
232         * asan.c (asan_add_global): Force has_dynamic_init to zero in LTO mode.
233
234 2017-01-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
235
236         Backport from mainline
237         2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
238
239         PR target/79268
240         * config/rs6000/altivec.h (vec_xl): Revise #define.
241         (vec_xst): Likewise.
242
243 2017-01-26  Eric Botcazou  <ebotcazou@adacore.com>
244
245         Backport from mainline
246         2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
247
248         * expr.c (store_field): In the bitfield case, fetch the return value
249         from the registers before applying a single big-endian adjustment.
250         Always do a final load for a BLKmode value not larger than a word.
251
252         2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
253
254         * expr.c (store_field): In the bitfield case, if the value comes from
255         a function call and is of an aggregate type returned in registers, do
256         not modify the field mode; extract the value in all cases if the mode
257         is BLKmode and the size is not larger than a word.
258
259 2017-01-26  Richard Biener  <rguenther@suse.de>
260
261         * tree-vrp.c (vrp_visit_assignment_or_call): Use set_defs_to_varying.
262
263         Backport from mainline
264         2016-01-10  Richard Biener  <rguenther@suse.de>
265
266         PR tree-optimization/79034
267         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
268         Propagate out degenerate PHIs in the joiner.
269
270         2016-12-13  Richard Biener  <rguenther@suse.de>
271
272         PR middle-end/78742
273         * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
274         * tree-object-size.c (compute_builtin_object_size): Use
275         tree_fits_shwi_p.
276         * tree-data-ref.c (initialize_matrix_A): Remove excess assert.
277
278 2017-01-26  Richard Biener  <rguenther@suse.de>
279
280         Backport from mainline
281         2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
282
283         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
284
285 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
286
287         PR target/77439
288         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
289         for long calls with APCS frame and VFP.
290
291 2017-01-24  Uros Bizjak  <ubizjak@gmail.com>
292
293         PR target/78478
294         Revert:
295         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
296
297         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
298
299 2017-01-23  Martin Liska  <mliska@suse.cz>
300
301         Backport from mainline
302         2017-01-20  Martin Liska  <mliska@suse.cz>
303
304         PR lto/69188
305         * tree-profile.c (init_ic_make_global_vars): Do not call
306         finalize_decl.
307         (gimple_init_gcov_profiler): Likewise.
308
309 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
310
311         Backport from mainline
312         2016-12-29  Gerald Pfeifer  <gerald@pfeifer.com>
313
314         * doc/extend.texi (Cilk Plus Builtins): cilkplus.org now uses
315         https by default.
316         * doc/passes.texi (Cilk Plus Transformation): Ditto.
317         * doc/generic.texi (Statements for C++): Ditto, and use @uref.
318
319 2017-01-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
320
321         Backport from mainline
322         2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
323
324         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
325         UNSPEC_VSX__XXSPLTD to require special splat handling.
326
327 2017-01-20  Wilco Dijkstra  <wdijkstr@arm.com>
328
329         Backport from mainline
330         PR target/77455
331         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
332         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
333         (EH_RETURN_HANDLER_RTX): New define.
334         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
335         Force frame pointer in EH return functions.
336         (aarch64_expand_epilogue): Add barrier for eh_return.
337         (aarch64_final_eh_return_addr): Remove.
338         (aarch64_eh_return_handler_rtx): New function.
339         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
340         Remove.
341         (aarch64_eh_return_handler_rtx): New prototype.
342
343 2017-01-20  Richard Earnshaw  <rearnsha@arm.com>
344
345         Backported from mainline
346         2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
347
348         PR rtl-optimization/79121
349         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
350         of the inner type when shifting an extended value.
351
352 2017-01-20  Martin Liska  <mliska@suse.cz>
353
354         Backport from mainline
355         2017-01-13  Martin Liska  <mliska@suse.cz>
356
357         PR ipa/79043
358         * function.c (set_cfun): Add new argument force.
359         * function.h (set_cfun): Likewise.
360         * ipa-inline-transform.c (inline_call): Use the function when
361         strict alising from is dropped for function we inline to.
362
363 2017-01-20  Martin Liska  <mliska@suse.cz>
364
365         Backport from mainline
366         2017-01-17  Martin Liska  <mliska@suse.cz>
367
368         PR ipa/71207
369         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
370         assumption and add comment.
371
372 2017-01-19  Richard Biener  <rguenther@suse.de>
373
374         PR tree-optimization/72488
375         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
376         sure to restore SSA info.
377
378 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
379
380         PR debug/78839
381         * dwarf2out.c (field_byte_offset): Restore the
382         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
383         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
384         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
385         of build2 + fold.
386
387 2017-01-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
388
389         Backport from mainline
390         2016-12-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
391
392         PR rtl-optimization/78617
393         * lra-remat.c (do_remat): Initialize live_hard_regs from live in
394         registers, also setting hard registers mapped to pseudo registers.
395
396 2017-01-13  Christophe Lyon  <christophe.lyon@linaro.org>
397
398         Backport from mainline r244320.
399         2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
400
401         PR target/78253
402         * config/arm/arm.c (legitimize_pic_address): Handle reference to
403         weak symbol.
404         (arm_assemble_integer): Likewise.
405
406 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
407
408         Backport from mainline
409         2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
410
411         PR target/79044
412         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
413         element-reversing loads and stores as not swappable.
414
415 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
416
417         * config/i386/i386.c (memory_address_length): Increase len
418         only when rip_relative_addr_p returns false.
419
420 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
421
422         Backport from mainline
423         2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
424
425         PR lto/79042
426         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
427         bit.
428         (input_varpool_node): Unpack dynamically_initialized bit.
429         * lto-streamer.h (LTO_minor_version): Bump version.
430
431 2017-01-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
432
433         Backport from mainline
434         2016-12-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
435
436         PR target/78900
437         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
438         assertions.  Add support for doing the signbit if the IEEE 128-bit
439         floating point value is in a GPR.
440         * config/rs6000/rs6000.md (Fsignbit): Delete.
441         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
442         Update the length attribute if the value is in a GPR.
443         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
444         the sign or zero extension instruction, since the value is always
445         0/1.
446         (signbit<mode>2_dm2): Delete using <Fsignbit>.
447
448 2017-01-10  Martin Liska  <mliska@suse.cz>
449
450         Backport from mainline
451         2017-01-09  Martin Liska  <mliska@suse.cz>
452
453         PR pch/78970
454         * gcc.c (driver_handle_option): Handle OPT_E and set
455         have_E.
456         (lookup_compiler): Do not show error message with have_E.
457
458 2017-01-10  Martin Liska  <mliska@suse.cz>
459
460         Backport from mainline
461         2017-01-05  Martin Liska  <mliska@suse.cz>
462
463         PR pch/78970
464         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
465         header.
466
467 2017-01-10  Thomas Schwinge  <thomas@codesourcery.com>
468
469         PR tree-optimization/78024
470         * omp-low.c (oacc_loop_discovery): Call clear_bb_flags.
471
472         Backport trunk r239086:
473         2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
474
475         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
476         size to DImode boundary.
477         (nvptx_propagate): Likewise.
478
479 2017-01-10  Chung-Ju Wu  <jasonwucj@gmail.com>
480
481         Backport from mainline
482         2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
483
484         PR target/70668
485         * config/nds32/nds32.md (casesi): Don't access the operands array
486         out of bounds.
487
488 2017-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
489
490         Backport from mainline
491         2016-10-10  Andreas Tobler  <andreast@gcc.gnu.org>
492
493         * config.gcc: Add aarch64-*-freebsd* support.
494         * config.host: Likewise.
495         * config/aarch64/aarch64-freebsd.h: New file.
496         * config/aarch64/t-aarch64-freebsd: Ditto.
497
498 2017-01-09  Bill Seurer  <seurer@linux.vnet.ibm.com>
499
500         Backport from mainline
501         2016-12-21  Bill Seurer  <seurer@linux.vnet.ibm.com>
502
503         PR sanitizer/65479
504         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
505         -fasynchronous-unwind-tables option when -fsanitize=address is
506         specified.
507
508 2017-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
509
510         Backport from mainline
511         2016-09-19  Richard Biener  <rguenther@suse.de>
512
513         * dwarf2out.c (dwarf2out_late_global_decl): When being during the
514         early debug phase do not add locations but only const value
515         attributes.
516
517         Backport from mainline
518         2016-10-20  Richard Biener  <rguenther@suse.de>
519
520         * cgraphunit.c (analyze_functions): Set node->definition to
521         false to signal symbol removal to debug_hooks->late_global_decl.
522
523 2017-01-09  Andre Vieira <andre.simoesdiasvieira@arm.com>
524
525         Backport from mainline
526         2016-12-09  Andre Vieira <andre.simoesdiasvieira@arm.com>
527
528         PR rtl-optimization/78255
529         * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
530         NO_FUNCTION_CSE is true.
531
532 2017-01-06  Wilco Dijkstra  <wdijkstr@arm.com>
533
534         Backport from mainline
535         2016-10-25  Wilco Dijkstra  <wdijkstr@arm.com>
536
537         PR target/78041
538         * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
539         Remove partial overlap check for shift by 1.
540         (ashldi3_neon): Likewise.
541
542 2017-01-05  Kelvin Nilsen  <kelvin@gcc.gnu.org>
543
544         Backport from mainline
545         2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
546
547         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
548         comments to explain why certain error messages make mention of
549         undocumented options.
550         (rs6000_invalid_builtin): Change error messages to replace mention
551         of undocumented options with mention of the -mcpu=power9 option
552         that enables those undocumented options.
553         * config/rs6000/rs6000.h: Add macro definition of MASK_FLOAT128
554         and change the macro definition of RS6000_BTM_FLOAT128 to correct
555         an error that was discovered during the development of this patch.
556         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
557         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
558         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
559         descriptions of built-in functions so that they depend on
560         -mcpu=power9 instead of on the corresponding undocumented flags.
561         * doc/invoke.texi (Option Summary):  Remove all mention of newly
562         undocumented flags.
563         (IBM RS/6000 and PowerPC Options): Likewise.
564         * doc/md.texi (Constraints for Particuliar Machines): Remove all
565         mention of newly undocumented flags.
566
567 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
568
569         Backport from mainline
570         2016-12-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
571
572         * varasm.c (build_constant_desc): Use the alignment of the var
573         decl instead of the original expression.
574
575 2017-01-04  Richard Biener  <rguenther@suse.de>
576
577         Backport from mainline
578         2016-05-11  Richard Biener  <rguenther@suse.de>
579
580         PR tree-optimization/71055
581         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
582         sth with precision not equal to access size verify we don't chop
583         off bits.
584
585 2017-01-03  Martin Liska  <mliska@suse.cz>
586
587         Backport from mainline
588         2016-12-21  Jakub Jelinek  <jakub@redhat.com>
589                     Martin Liska  <mliska@suse.cz>
590
591         PR driver/78863
592         * gcc.c (driver::build_option_suggestions): Do not add
593         -fsanitize=all as a suggestion candidate.
594
595 2017-01-03  Martin Liska  <mliska@suse.cz>
596
597         Backport from mainline
598         2016-12-22  Martin Liska  <mliska@suse.cz>
599
600         PR tree-optimization/78886
601         * tree-ssa-strlen.c (handle_builtin_malloc): Return when LHS
602         is equal to NULL.
603
604 2017-01-03  Martin Liska  <mliska@suse.cz>
605
606         Backport from mainline
607         2016-12-13  Martin Liska  <mliska@suse.cz>
608
609         PR tree-optimization/78428
610         * expr.c (store_constructor_field): Add new arguments to the
611         function.
612         (store_constructor): Set up bitregion_end and add
613         gcc_unreachable to fields that have either non-constant size
614         or (and) offset.
615
616 2016-12-27  Jakub Jelinek  <jakub@redhat.com>
617
618         PR translation/78922
619         * config/i386/stringop.opt: Remove.
620
621 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
622
623         Backported from mainline
624         2016-12-13  Jakub Jelinek  <jakub@redhat.com>
625
626         PR ipa/77905
627         * ipa-pure-const.c (cdtor_p): Return true for
628         DECL_STATIC_{CON,DE}STRUCTOR even when it is
629         DECL_LOOPING_CONST_OR_PURE_P.
630
631 2016-12-21  Jakub Jelinek  <jakub@redhat.com>
632
633         * BASE-VER: Set to 6.3.1.
634
635 2016-12-21  Release Manager
636
637         * GCC 6.3.0 released.
638
639 2016-12-14  Uros Bizjak  <ubizjak@gmail.com>
640
641         PR target/59874
642         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_CLZS
643         and IX86_BUILTIN_CTZS.
644         (bdesc_args): Add __builtin_clzs and __builtin_ctzs.
645         (ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
646
647 2016-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
648             Jakub Jelinek  <jakub@redhat.com>
649
650         PR target/78796
651         * config/aarch64/aarch64.c (aarch64_classify_symbol): Merge large
652         model checks into switch.
653
654 2016-12-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
655
656         Backport from mainline
657         2016-11-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
658
659         * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
660
661 2016-12-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
662
663         Backport from mainline
664         2016-11-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
665
666         PR tree-optimization/77673
667         * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
668         (init_symbolic_number): Initialize src field from src parameter.
669         (perform_symbolic_merge): Select most dominated statement as the
670         source statement.  Set src field of resulting n structure from the
671         input src with the lowest address.
672         (find_bswap_or_nop): Rename source_stmt into ins_stmt.
673         (bswap_replace): Rename src_stmt into ins_stmt.  Initially get source
674         of load from src field rather than insertion statement.  Cancel
675         optimization if statement analyzed is not dominated by the insertion
676         statement.
677         (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt.  Compute
678         dominance information.
679
680 2016-12-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
681
682         Backport from mainline
683         2016-12-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
684
685         PR target/72717
686         * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
687         V2DImode elements are SUBREG's convert the result into DImode
688         rather than failing in emit_move_insn.
689
690 2016-12-13  Iain Sandoe  <iain@codesourcery.com>
691
692         Backport from mainline
693         2016-12-11  Iain Sandoe  <iain@codesourcery.com>
694
695         PR rtl-optimization/71496
696         * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
697         copyable.  (load_macho_picbase_di, reload_macho_picbase_si,
698         reload_macho_picbase_di): Likewise.
699
700 2016-12-12  Bernd Schmidt  <bschmidt@redhat.com>
701
702         Backport from mainline
703         2016-11-07  Bernd Schmidt  <bschmidt@redhat.com>
704
705         PR rtl-optimization/77309
706         * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
707         don't assume an equality comparison for plain COMPARE.
708         (simplify_comparison): Pass a more accurate code to
709         make_compound_operation.
710
711 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
712
713         Backport from mainline
714         2016-11-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
715
716         PR target/77904
717         * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
718         in save register mask if it is needed.
719
720 2016-12-11  Iain Sandoe  <iain@codesourcery.com>
721
722         Backport from mainline
723         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
724                     Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
725
726         PR target/67710
727         * config.in: Regenerate
728         * config/darwin-driver.c (darwin_driver_init): Emit a version string
729         for the assembler.
730         * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
731         * config/darwin.opt(asm_macosx_version_min): New.
732         * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
733         * configure: Regenerate
734         * configure.ac: Check for mmacosx-version-min handling.
735
736 2016-12-11  Iain Sandoe  <iain@codesourcery.com>
737
738         Backport from mainline
739         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
740
741         PR target/57438
742         * config/i386/i386.c (ix86_code_end): Note that we emitted code
743         where the function might otherwise appear empty for picbase thunks.
744         (ix86_output_function_epilogue): If we find a zero-sized function
745         assume that reaching it is UB and trap.  If we find a trailing label
746         append a nop.
747         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
748         find a zero-sized function assume that reaching it is UB and trap.
749         If we find a trailing label, append a nop.
750
751 2016-12-11 Iain Sandoe  <iain@codesourcery.com>
752
753         Backport from mainline
754         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
755
756         PR target/71767
757         * config/darwin-sections.def (picbase_thunk_section): New.
758         * config/darwin.c (darwin_init_sections): Set up picbase thunk
759         section. (darwin_rodata_section, darwin_objc2_section,
760         machopic_select_section, darwin_asm_declare_constant_name,
761         darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
762         coalesced with newer linkers.
763         (darwin_override_options): Decide on usage of coalesed sections
764         on the basis of the target linker version.
765         * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
766         * config/darwin.opt  (mtarget-linker): New.
767         * config/i386/i386.c (ix86_code_end): Do not force the thunks into
768         a coalesced section, instead use a thunks section.
769
770         Backport from mainline
771         2016-11-28  Iain Sandoe  <iain@codesourcery.com>
772
773         PR target/71767
774         * configure.ac (with_ld64): Use portable method to extract the
775         major part of the version number.
776         * configure: Regenerated.
777
778         Backport from mainline
779         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
780
781         PR target/71767
782         * configure.ac (with-ld64): New var, set for Darwin, set on
783         detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
784         * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New,
785         define.
786         * config/darwin10.h(DEF_LD64): Update for this target version.
787         * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic
788         test.  (DEF_LD64): Update for this target version.
789         * configure: Regenerated.
790         * config.in: Regenerated.
791
792         Backport from mainline
793         2016-11-27  Iain Sandoe  <iain@codesourcery.com>
794
795         PR target/71767
796         * config/darwin.c (imachopic_indirection_name): Make data
797         section indirections linker-visible.
798         * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
799         constant labels linker-visible.
800
801 2016-12-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
802
803         Backport from mainline
804         2016-11-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
805
806         PR target/77933
807         * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
808         being live in the function and lr needing to be saved.  Distinguish
809         between already saved pushable registers and registers to push.
810         Check for LR being an available pushable register.
811
812 2016-12-09  Nathan Sidwell  <nathan@acm.org>
813
814         PR C++/78550
815         * convert.c (convert_to_integer_1): Maybe fold conversions to
816         integral types with fewer bits than its mode.
817
818 2016-12-09  Richard Biener  <rguenther@suse.de>
819
820         Backport from mainline
821         2016-11-09  Richard Biener  <rguenther@suse.de>
822
823         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
824         Look at the DR_BASE_ADDRESS object for forcing alignment.
825
826         2016-11-07  Richard Biener  <rguenther@suse.de>
827
828         PR tree-optimization/78189
829         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
830         alignment computation.
831
832 2016-12-09  Richard Biener  <rguenther@suse.de>
833
834         Backport from mainline
835         2016-11-28  Richard Biener  <rguenther@suse.de>
836
837         PR tree-optimization/78542
838         * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
839         if allowed.
840
841         2016-11-23  Richard Biener  <rguenther@suse.de>
842
843         PR tree-optimization/78482
844         * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
845         (remove_forwarder_block_with_phi): When merging with a loop
846         header creates a new latch reset number of iteration information
847         of the loop.
848
849         2016-11-23  Richard Biener  <rguenther@suse.de>
850
851         PR middle-end/71762
852         * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
853         (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
854
855         2016-11-11  Richard Biener  <rguenther@suse.de>
856
857         PR tree-optimization/71575
858         * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
859         bogus assert.
860
861         2016-11-07  Richard Biener  <rguenther@suse.de>
862
863         PR tree-optimization/78224
864         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
865         Split the fallthru edge in case its successor may have PHIs.
866
867         2016-11-05  David Edelsohn  <dje.gcc@gmail.com>
868                 Richard Biener  <rguenther@suse.de>
869
870         PR bootstrap/78188
871         PR c++/71848
872         * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
873
874         2016-09-20  Richard Biener  <rguenther@suse.de>
875
876         PR tree-optimization/77646
877         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
878         a VDEF.
879
880 2016-12-07  Segher Boessenkool  <segher@kernel.crashing.org>
881
882         Backport from mainline
883         2016-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
884
885         PR target/77957
886         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
887         return early if !optional_tbtab.
888
889 2016-12-07  Jakub Jelinek  <jakub@redhat.com>
890
891         Backported from mainline
892         2016-11-28  Jakub Jelinek  <jakub@redhat.com>
893
894         PR middle-end/78540
895         * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
896         * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
897         note has been removed.
898         * postreload.c (reload_combine_recognize_pattern): If
899         remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
900
901         PR rtl-optimization/78546
902         * simplify-rtx.c (neg_const_int): When negating most negative
903         number in mode wider than HOST_BITS_PER_WIDE_INT, use
904         simplify_const_unary_operation to produce CONST_DOUBLE or
905         CONST_WIDE_INT.
906         (simplify_plus_minus): Hanlde the case where neg_const_int
907         doesn't return a CONST_INT.
908
909         PR fortran/78298
910         * tree-nested.c (convert_local_reference_stmt): After adding
911         shared (FRAME.NN) clause to omp parallel, task or target,
912         add it also to all outer omp parallel, task or target constructs.
913
914         2016-11-23  Jakub Jelinek  <jakub@redhat.com>
915
916         PR middle-end/69183
917         * omp-low.c (build_outer_var_ref): Change lastprivate argument
918         to code, pass it recursively, adjust uses.  For OMP_CLAUSE_PRIVATE
919         on worksharing constructs, treat it like clauses on simd construct.
920         Formatting fix.
921         (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
922         OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
923         (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
924         of true as last argument to build_outer_var_ref.
925
926         2016-11-22  Jakub Jelinek  <jakub@redhat.com>
927
928         PR middle-end/78416
929         * expmed.c (expand_divmod): Use wide_int for computation of
930         op1_is_pow2.  Don't set it if op1 is 0.  Formatting fixes.
931         Use size <= HOST_BITS_PER_WIDE_INT instead of
932         HOST_BITS_PER_WIDE_INT >= size.
933
934         2016-11-21  Jakub Jelinek  <jakub@redhat.com>
935
936         PR middle-end/67335
937         * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
938         for tmp simd array if DECL_NAME (parm) is NULL.
939
940         2016-11-18  Jakub Jelinek  <jakub@redhat.com>
941
942         PR middle-end/78419
943         * multiple_target.c (get_attr_len): Start with argnum and increment
944         argnum on every arg.  Use strchr in a loop instead of counting commas
945         manually.
946         (get_attr_str): Increment argnum for every comma in the string.
947         (separate_attrs): Use for instead of while loop, simplify.
948         (expand_target_clones): Rename defenition argument to definition.
949         Free attrs and attr_str even when diagnosing errors.  Temporarily
950         change input_location around targetm.target_option.valid_attribute_p
951         calls.  Don't emit warning or errors if that function fails.
952
953         2016-11-16  Jakub Jelinek  <jakub@redhat.com>
954
955         PR rtl-optimization/78378
956         * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
957         inner only if pos is 0.  Fix up formatting.
958
959         PR fortran/78299
960         * omp-low.c (expand_omp_for_static_nochunk): Don't assert
961         that loop->header == body_bb if broken_loop.
962
963         2016-11-07  Jakub Jelinek  <jakub@redhat.com>
964
965         PR target/77834
966         * dse.c (dse_step5): Call scan_reads even if just
967         insn_info->frame_read.  Improve and fix dump file messages.
968
969         PR target/78227
970         * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
971         cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
972
973         2016-11-04  Jakub Jelinek  <jakub@redhat.com>
974
975         PR target/77834
976         * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
977         doesn't have rtl set.
978
979         2016-10-29  Jakub Jelinek  <jakub@redhat.com>
980
981         PR rtl-optimization/77919
982         * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
983         into memory if both modes are complex and their inner modes have the
984         same precision.  If the two modes are different complex modes, convert
985         each part separately and generate a new CONCAT.
986
987         2016-10-28  Jakub Jelinek  <jakub@redhat.com>
988
989         PR rtl-optimization/77919
990         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
991         MEM if mode1 is not a complex mode.
992
993         2016-10-27  Jakub Jelinek  <jakub@redhat.com>
994
995         PR middle-end/78025
996         * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
997         functions.
998
999         2016-10-26  Jakub Jelinek  <jakub@redhat.com>
1000                     Martin Liska  <mliska@suse.cz>
1001
1002         PR fortran/77973
1003         * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
1004         clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
1005         on outer context if any.
1006
1007         2016-10-05  Jakub Jelinek  <jakub@redhat.com>
1008
1009         PR sanitizer/66343
1010         * ubsan.c (ubsan_ids): New GTY(()) array.
1011         (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
1012         instead of static local counters.
1013
1014         2016-09-22  Jakub Jelinek  <jakub@redhat.com>
1015
1016         PR fortran/77665
1017         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
1018         for all IFN_GOMP_SIMD_* internal fns, not just for
1019         IFN_GOMP_SIMD_ORDERED_*.
1020
1021         2016-09-20  Jakub Jelinek  <jakub@redhat.com>
1022
1023         PR middle-end/77624
1024         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
1025         cast to void * if the cast is from some other pointer type.
1026
1027         2016-09-19  Jakub Jelinek  <jakub@redhat.com>
1028                     Jan Hubicka  <jh@suse.cz>
1029
1030         PR target/77587
1031         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
1032         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
1033         Call ultimate_alias_target just once, not up to 4 times.
1034
1035 2016-12-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1036
1037         Backport from mainline
1038         2016-11-16  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1039
1040         * config/arm/arm.md (arm_addsi3): Add alternative for addition of
1041         general register with general register or ARM constant into SP
1042         register.
1043
1044 2016-12-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1045
1046         Backport from mainline
1047         2016-12-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1048                     Stefan Freudenberger  <stefan@reservoir.com>
1049
1050         PR tree-optimization/78646
1051         * gimple-ssa-strength-reduction.c (replace_ref): The pointer
1052         addition used for the memory base expression should have the type
1053         of the candidate.
1054
1055 2016-12-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1056
1057         Backport from mainline
1058         2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1059                     Michael Meissner  <meissner@linux.vnet.ibm.com>
1060
1061         PR target/72827
1062         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
1063         reg+reg addressing for TImode.
1064         (rs6000_legitimate_address_p): Only allow register indirect
1065         addressing for TImode, even without TARGET_QUAD_MEMORY.
1066
1067 2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1068
1069         Backport from mainline
1070         2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1071
1072         * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
1073         (CCVHUANY): Remove modes.
1074         (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
1075         documentation.
1076         * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
1077         (s390_expand_vec_compare_scalar): Pick one of the cc consumer
1078         modes.
1079         (s390_branch_condition_mask): Adjust to use the new cc consumer
1080         modes.  The new modes allow for proper reversal in the middle-end.
1081         (s390_expand_vec_compare_cc): Determine the proper cc producer and
1082         consumer modes for a comparison.
1083         * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
1084         throughout the file.
1085         * config/s390/vx-builtins.md: Likewise.
1086
1087 2016-12-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1088
1089         Backport from mainline
1090         2016-12-01  Alan Modra  <amodra@gmail.com>
1091
1092         * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
1093         look inside UNSPEC_VSX_XXSPLTW vec.
1094
1095 2016-12-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
1096
1097         Back port from trunk
1098         2016-11-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
1099
1100         PR target/78101
1101         * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
1102         the appropriate checks for SFmode/DFmode load/stores in GPR
1103         registers.
1104         (fusion_addis_mem_combo_store): Likewise.
1105         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
1106         fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
1107         d-form instructions for traditional Altivec registers.
1108         (emit_fusion_p9_load): Likewise.
1109         (emit_fusion_p9_store): Likewise.
1110         * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
1111         early clobber from scratch register.  Do not match if the register
1112         being stored is the scratch register.
1113         (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
1114         to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
1115         instructions for traditional Altivec registers.
1116         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
1117         (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1118         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1119
1120 2016-12-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1121
1122         Backport from mainline
1123         2016-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1124
1125         PR target/48863
1126         PR inline-asm/70184
1127         * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
1128         (new_temp_expr_table): Initialise reg_vars_cnt.
1129         (free_temp_expr_table): Release reg_vars_cnt.
1130         (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
1131         field of TAB.
1132         (find_replaceable_in_bb): Use the above to record register variable
1133         write occurrences and cancel replacement across them.
1134
1135 2016-11-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1136
1137         Backported from mainline
1138         2016-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>
1139
1140         PR target/78426
1141         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
1142         instead of force_reg.
1143         (sh_expand_setmem): Likewise.
1144
1145 2016-11-24  Eric Botcazou  <ebotcazou@adacore.com>
1146
1147         PR middle-end/78429
1148         * tree.h (wi::fits_to_boolean_p): New predicate.
1149         (wi::fits_to_tree_p): Use it for boolean types.
1150         * tree.c (int_fits_type_p): Likewise.
1151
1152 2016-11-24  Martin Liska  <mliska@suse.cz>
1153
1154         Backported from mainline
1155         2016-11-22  Martin Liska  <mliska@suse.cz>
1156
1157         PR ipa/78309
1158         * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
1159         (sem_function::get_hash): Use the new field.
1160         (sem_function::parse): Remove an argument from ctor.
1161         (sem_variable::parse): Likewise.
1162         (sem_variable::get_hash): Use the new field.
1163         (sem_item_optimizer::read_section): Use new ctor and set hash.
1164         * ipa-icf.h: _hash is removed from sem_item::sem_item,
1165         sem_variable::sem_variable, sem_function::sem_function.
1166
1167 2016-11-23  Uros Bizjak  <ubizjak@gmail.com>
1168
1169         * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
1170         (kxnor<mode>): Return "#" for alternative 0.
1171
1172 2016-11-23  Richard Biener  <rguenther@suse.de>
1173
1174         Backport from mainline
1175         2016-11-23  Richard Biener  <rguenther@suse.de>
1176
1177         PR lto/78472
1178         * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
1179         fields.
1180
1181         2016-11-17  Richard Biener  <rguenther@suse.de>
1182
1183         PR middle-end/78305
1184         * fold-const.c (negate_expr_p): Fix multiplication case.
1185
1186         2016-11-16  Richard Biener  <rguenther@suse.de>
1187
1188         PR middle-end/78333
1189         * gimplify.c (gimplify_function_tree): Do not instrument
1190         GNU extern inline functions.
1191
1192         2016-11-07  Richard Biener  <rguenther@suse.de>
1193
1194         PR tree-optimization/78228
1195         * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
1196         undefined behavior.
1197
1198         2016-11-04  Richard Biener  <rguenther@suse.de>
1199
1200         PR middle-end/78185
1201         * loop-invariant.c (find_exits): Record entering inner
1202         loops as possibly exiting to handle infinite sub-loops.
1203         * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
1204         (fill_always_executed_in_1): Honor infinite child loops.
1205
1206         2016-10-06  Richard Biener  <rguenther@suse.de>
1207
1208         PR tree-optimization/77855
1209         * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
1210         instead of removing the current item while iterating over the set
1211         which is not safe.
1212
1213 2016-11-22  Walter Lee  <walt@tilera.com>
1214
1215         Backport from mainline
1216         2016-11-22  Walter Lee  <walt@tilera.com>
1217
1218         * config/tilegx/tilegx.md (trap): New pattern.
1219         * config/tilepro/tilepro.md (trap): Likewise.
1220
1221 2016-11-22  Walter Lee  <walt@tilera.com>
1222
1223         Backport from mainline
1224         2016-11-22  Walter Lee  <walt@tilera.com>
1225
1226         * config/tilegx/tilegx.md (*zero_extract): Use
1227         define_insn_and_split instead of define_insn; Handle pos + size >
1228         64.
1229         (*sign_extract): Likewise.
1230
1231 2016-11-22  Uros Bizjak  <ubizjak@gmail.com>
1232
1233         * Makefile.in ($(lang_checks_parallelized)): Fix detection
1234         of -j argument.
1235
1236 2016-11-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1237
1238         Backport from mainline
1239         2016-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1240
1241         PR target/77822
1242         * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
1243         aarch64_simd_shift_imm_<mode> predicate for operand 1.
1244         (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
1245         to restrict them to an appropriate range and add FAIL check if the
1246         region they specify is out of range.  Delete useless constraint
1247         strings.
1248         (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
1249         2 and 3 to restrict their range and add pattern predicate.
1250
1251 2016-11-18  Walter Lee  <walt@tilera.com>
1252
1253         Backport from mainline
1254         2016-11-18  Walter Lee  <walt@tilera.com>
1255
1256         * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
1257           end-of-bundle marker for consecutive barriers.
1258
1259 2016-11-18  Walter Lee  <walt@tilera.com>
1260
1261         Backport from mainline
1262         2016-11-18  Walter Lee  <walt@tilera.com>
1263
1264         * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
1265
1266 2016-11-15  Matthias Klose  <doko@ubuntu.com>
1267
1268         * doc/install.texi: Move the 'Overriding configure test results'
1269         subsub section to the 'Cross-Compiler-Specific Options' sub section.
1270
1271 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
1272
1273         * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
1274         original function needs a static chain.
1275
1276 2016-11-11  Uros Bizjak  <ubizjak@gmail.com>
1277
1278         PR target/78310
1279         * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
1280         when calculating operand 2.
1281         (rotate to rotatex zext splitter): Ditto.
1282
1283 2016-11-11  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1284
1285         PR target/77822
1286         * config/s390/s390.md ("extzv", "*extzv<mode>_zEC12")
1287         ("*extzv<mode>_z10"): Check validity of zero_extend arguments.
1288
1289 2016-11-09  Uros Bizjak  <ubizjak@gmail.com>
1290
1291         PR target/78262
1292         * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
1293         operand 0 as earlyclobber.
1294         (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
1295
1296 2016-11-07  Peter Bergner  <bergner@vnet.ibm.com>
1297
1298         Backport from trunk
1299         2016-11-07  Peter Bergner  <bergner@vnet.ibm.com>
1300
1301         * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
1302         INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
1303
1304 2016-11-06  Jack Howarth  <howarth.at.gcc@gmail.com>
1305
1306         PR driver/78206
1307         * incpath.c: (remove_dup(): Also silently ignore EPERM.
1308
1309 2016-11-07  Richard Biener  <rguenther@suse.de>
1310
1311         PR target/78229
1312         * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
1313         EH info.
1314
1315 2016-11-03  Martin Liska  <mliska@suse.cz>
1316
1317         Backport from mainline
1318         2016-08-12  Martin Liska  <mliska@suse.cz>
1319         Adam Fineman  <afineman@afineman.com>
1320
1321         * gcov.c (process_file): Create .gcov file when .gcda
1322         file is missing.
1323
1324 2016-11-03  Richard Biener  <rguenther@suse.de>
1325
1326         Backport from mainline
1327         2016-09-29  Richard Biener  <rguenther@suse.de>
1328
1329         PR tree-optimization/77768
1330         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
1331         with stores to a place we know has a constant value.
1332         * tree-vrp.c (set_defs_to_varying): New helper avoiding
1333         writing to vr_const_varying.
1334         (vrp_initialize): Call it.
1335         (vrp_visit_stmt): Likewise.
1336         (evrp_dom_walker::before_dom_children): Likewise.
1337         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1338         Handle stores to readonly memory when removing redundant stores.
1339
1340 2016-11-03  Eric Botcazou  <ebotcazou@adacore.com>
1341
1342         Backport from mainline
1343         2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1344
1345         * explow.c (validize_mem): Do not modify the argument in-place.
1346
1347 2016-11-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
1348
1349         Backport from trunk
1350         2016-10-26  Will Schmidt <will_schmidt@vnet.ibm.com>
1351
1352         PR middle-end/72747
1353         * gimplify.c (gimplify_init_constructor): Move emit of constructor
1354         assignment to earlier in the if/else logic.
1355
1356 2016-11-02  Richard Biener  <rguenther@suse.de>
1357
1358         Backport from mainline
1359         2016-11-02  Richard Biener  <rguenther@suse.de>
1360
1361         PR tree-optimization/78047
1362         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
1363         fake field at offset zero conservatively regarding to may_have_pointers.
1364
1365         2016-10-07  Richard Biener  <rguenther@suse.de>
1366
1367         PR tree-optimization/77879
1368         * tree-ssa-structalias.c (handle_const_call): Properly handle
1369         NRV return slots.
1370         (handle_pure_call): Likewise.
1371
1372         2016-10-06  Richard Biener  <rguenther@suse.de>
1373
1374         PR tree-optimization/77839
1375         * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
1376         lattice transition.
1377
1378         2016-09-27  Richard Biener  <rguenther@suse.de>
1379
1380         PR tree-optimization/77745
1381         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1382         When removing redundant stores make sure to check compatibility
1383         of the TBAA state for downstream accesses.
1384         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
1385         value-numbering virtual operands for store matches.
1386
1387         2016-09-21  Richard Biener  <rguenther@suse.de>
1388
1389         PR tree-optimization/77648
1390         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
1391         with complex RHS.
1392         (make_transitive_closure_constraints): Adjust comment.
1393         (make_any_offset_constraints): New function.
1394         (handle_rhs_call): Make sure to first expand a pointer to all
1395         subfields before transitively closing it.
1396         (handle_const_call): Likewise.  Properly expand returned
1397         pointers as well.
1398         (handle_pure_call): Likewise.
1399
1400 2016-11-01  John David Anglin  <danglin@gcc.gnu.org>
1401
1402         PR target/78166
1403         * config/pa/pa.md: Add new shift/add patterns to handle
1404         (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
1405
1406 2016-11-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1407
1408         Backport from mainline
1409         2016-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1410
1411         PR rtl-optimization/78038
1412         * ree.c (get_defs): Return NULL if a defining insn for REG cannot
1413         be deduced to set REG through the RTL structure.
1414         (make_defs_and_copies_lists): Return false on a failing get_defs call.
1415
1416 2016-10-29  John David Anglin  <danglin@gcc.gnu.org>
1417
1418         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
1419         (MALLOC_ABI_ALIGNMENT): Define.
1420
1421 2016-10-28  Richard Biener  <rguenther@suse.de>
1422
1423         PR middle-end/78128
1424         PR middle-end/71002
1425         * fold-const.c (make_bit_field_ref): Only adjust alias set
1426         when the original alias set was zero.
1427
1428 2016-10-26  Uros Bizjak  <ubizjak@gmail.com>
1429
1430         Backport from mainline
1431         2016-10-21  Jakub Jelinek  <jakub@redhat.com>
1432
1433         PR target/78057
1434         * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
1435         and tree-ssanames.h.
1436         (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
1437         with INTEGER_CST argument.
1438         (ix86_gimple_fold_builtin): New function.
1439         (TARGET_GIMPLE_FOLD_BUILTIN): Define.
1440
1441         Backport from mainline
1442         2016-10-20 Uros Bizjak  <ubizjak@gmail.com>
1443
1444         PR target/78037
1445         * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
1446         (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
1447         (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
1448         * config/i386/lzcntintrin.h (__lzcnt_u16): Call
1449         __builtin_ia32_lzcnt_u16.
1450         (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
1451         (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
1452         * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
1453         (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
1454         (bmi_tzcnt_<mode>): New expander.
1455         (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
1456         (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
1457         (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
1458         (lzcnt_<mode>): New expander.
1459         (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
1460         (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
1461         * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
1462         (UINT64_FTYPE_UINT64): New.
1463         * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
1464         (__builtin_ia32_lzcnt_u16): New description.
1465         (__builtin_ia32_lzcnt_u32): Ditto.
1466         (__builtin_ia32_lzcnt_u64): Ditto.
1467         (__builtin_ctzs): Remove description.
1468         (__builtin_ia32_tzcnt_u16): New description.
1469         (__builtin_ia32_tzcnt_u32): Ditto.
1470         (__builtin_ia32_tzcnt_u64): Ditto.
1471         * config/i386/i386.c (ix86_expand_args_builtin): Handle
1472         UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
1473
1474 2016-10-25  Eric Botcazou  <ebotcazou@adacore.com>
1475
1476         * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
1477         * tree.c (int_fits_type_p): Likewise.  Adjust head comment.
1478
1479 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1480
1481         Backport from mainline
1482         2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1483
1484         PR tree-optimization/77550
1485         * tree-vect-stmts.c (create_array_ref): Change parameters.
1486         (get_group_alias_ptr_type): New function.
1487         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
1488
1489 2016-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1490
1491         Backport from mainline
1492         2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1493
1494         PR tree-optimization/77916
1495         * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
1496         Don't allow a MINUS_EXPR for pointer arithmetic for either known
1497         or unknown strides.
1498         (record_increment): Increments of -1 for unknown strides just use
1499         a multiply initializer like other negative values.
1500         (analyze_increments): Remove stopgap solution for -1 increment
1501         applied to pointer arithmetic.
1502         (insert_initializers): Requirement of initializer for -1 should be
1503         based on pointer-typedness of the candidate basis.
1504
1505 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
1506
1507         * config/sparc/sparc.md (cpu_feature): Minor tweak.
1508         (enabled): Likewise.
1509         (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
1510         movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
1511         sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
1512         mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
1513         <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
1514         fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
1515
1516 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
1517
1518         * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
1519         with TARGET_ARCH64.  Define __VIS to 0x400 if TARGET_VIS4.
1520
1521 2016-10-19  Uros Bizjak  <ubizjak@gmail.com>
1522
1523         PR target/77991
1524         * config/i386/i386.c (legitimize_tls_address)
1525         <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
1526         convert dest to Pmode if different than Pmode.
1527
1528 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
1529
1530         Backport from mainline
1531         2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
1532
1533         * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
1534         copying.
1535
1536 2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1537
1538         Backport from mainline
1539         2016-10-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1540
1541         PR tree-optimization/77937
1542         * gimple-ssa-strength-reduction.c (analyze_increments): Use
1543         POINTER_TYPE_P on the candidate type to determine whether
1544         candidates in this chain require pointer arithmetic.
1545
1546         2016-10-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1547
1548         PR tree-optimization/77937
1549         * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
1550         to infinite when we have a pointer with an increment of -1.
1551
1552 2016-10-17  Martin Liska  <mliska@suse.cz>
1553
1554         Backported from mainline
1555         2016-10-13  Martin Liska  <mliska@suse.cz>
1556
1557         PR tree-optimization/77943
1558         * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
1559         a different EH landing pads.
1560
1561 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1562
1563         PR bootstrap/77995
1564         Backport from mainline
1565         2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
1566
1567         * tree.h (build_complex_type): Add second parameter with default.
1568         * tree.c (build_complex_type): Add NAMED second parameter and adjust
1569         recursive call.  Create a TYPE_DECL only if NAMED is true.
1570         (build_common_tree_nodes): Pass true in calls to build_complex_type.
1571
1572 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
1573
1574         * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
1575         constants in CONST_VECTORs.
1576
1577 2016-10-15  Eric Botcazou  <ebotcazou@adacore.com>
1578
1579         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
1580         register as destination of bmask.
1581         (vector_init_bshuffle): Likewise.
1582         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
1583         (bmaskdi_vis): Enable only in 64-bit mode.
1584
1585 2016-10-13  Andrew Senkevich  <andrew.senkevich@intel.com>
1586
1587         Backport from trunk
1588         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
1589         OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
1590         (ix86_handle_option): Deleted handle of OPT_mpcommit.
1591         * config.gcc: Deleted pcommitintrin.h
1592         * config/i386/pcommitintrin.h: Deleted file.
1593         * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
1594         * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
1595         detection.
1596         * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
1597         __PCOMMIT__.
1598         * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
1599         (PTA_PCOMMIT, IX86_BUILTIN_PCOMMIT, __builtin_ia32_pcommit): Deleted.
1600         (ix86_option_override_internal): Deleted handle of option.
1601         (ix86_valid_target_attribute_inner_p): Deleted pcommit.
1602         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
1603         * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
1604         (pcommit): Deleted instruction.
1605         * config/i386/i386.opt: Mention -mpcommit deprecation.
1606         * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
1607
1608 2016-10-13  Tom de Vries  <tom@codesourcery.com>
1609
1610         revert:
1611         2016-10-11  Tom de Vries  <tom@codesourcery.com>
1612
1613         backport from trunk:
1614         2016-10-11  Tom de Vries  <tom@codesourcery.com>
1615
1616         PR middle-end/77558
1617         * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
1618         special-casing.
1619
1620 2016-10-11  Tom de Vries  <tom@codesourcery.com>
1621
1622         backport from trunk:
1623         2016-10-11  Tom de Vries  <tom@codesourcery.com>
1624
1625         PR middle-end/77558
1626         * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
1627         special-casing.
1628
1629 2016-10-10  Georg-Johann Lay  <avr@gjlay.de>
1630
1631         * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
1632
1633 2016-10-06  Uros Bizjak  <ubizjak@gmail.com>
1634
1635         PR target/77874
1636         * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
1637         Remove wrong assert.
1638         (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
1639         Use <round_constraint> as operand 1 constraint.
1640
1641 2016-10-06  James Clarke  <jrtc27@jrtc27.com>
1642             Eric Botcazou  <ebotcazou@adacore.com>
1643
1644         PR target/77759
1645         * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
1646         (classify_registers): Don't set it
1647         (function_arg_slotno): Don't initialize and test it.  Tidy up.
1648
1649 2016-10-04  Uros Bizjak  <ubizjak@gmail.com>
1650
1651         Backport from mainline
1652         2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
1653
1654         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
1655         ext_level before calling CPUID with 0x80000008.
1656
1657         2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
1658
1659         PR target/77756
1660         * config/i386/cpuid.h (__get_cpuid_count): New.
1661         (__get_cpuid): Rename __level to __leaf.
1662
1663 2016-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
1664
1665         Back port from trunk
1666
1667         2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1668
1669         PR target/77670
1670         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
1671         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
1672         instructions when you want to invert the test.
1673         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
1674         correct order for XXSEL.
1675         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
1676         for using XSCMP{EQ,GT,GE}DP.
1677
1678 2016-09-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1679             Alan Modra  <amodra@gmail.com>
1680
1681         Backport from mainline
1682         2016-07-01  Alan Modra  <amodra@gmail.com>
1683
1684         PR rtl-optimization/71709
1685         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
1686         being set, not referenced.
1687
1688 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
1689
1690         Backport from mainline
1691         2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
1692
1693         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
1694         VAR_DECL string.
1695
1696         2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
1697
1698         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
1699         * configure: Regenerate.
1700
1701 2016-09-27  Richard Biener  <rguenther@suse.de>
1702
1703         Backport from mainline
1704         2016-09-01  Richard Biener  <rguenther@suse.de>
1705
1706         PR middle-end/77436
1707         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
1708         check whether the result fits the desired result type.
1709
1710         2016-09-19  Richard Biener  <rguenther@suse.de>
1711
1712         PR tree-optimization/77514
1713         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
1714         search for folded stmt.
1715
1716         2016-09-15  Richard Biener  <rguenther@suse.de>
1717
1718         PR tree-optimization/77514
1719         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
1720         only forced_stmts sequence.
1721
1722         2016-09-15  Richard Biener  <rguenther@suse.de>
1723
1724         PR middle-end/77544
1725         * fold-const.c (split_tree): Do not split constant ~X.
1726
1727         2016-09-19  Richard Biener  <rguenther@suse.de>
1728
1729         PR middle-end/77605
1730         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
1731         proper niter to bound the loops.
1732
1733         2016-09-22  Richard Biener  <rguenther@suse.de>
1734
1735         PR middle-end/77679
1736         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
1737         fold fails.
1738
1739 2016-09-25  Uros Bizjak  <ubizjak@gmail.com>
1740
1741         Backport from mainline
1742         2016-09-21  Richard Biener  <rguenther@suse.de>
1743                     Jakub Jelinek  <jakub@redhat.com>
1744
1745         PR tree-optimization/77621
1746         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
1747         group at non-vectorizable stmts.
1748
1749         Backport from mainline
1750         2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
1751
1752         PR target/77621
1753         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
1754         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
1755         (ix86_add_stmt_cost): Penalize DFmode vector operations
1756         for !TARGET_VECTORIZE_DOUBLE.
1757
1758 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1759
1760         Backport from 2016-09-22 trunk r240388.
1761
1762         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
1763         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
1764
1765 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1766
1767         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
1768
1769 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
1770
1771         Backport from 2016-09-21 trunk r240306.
1772
1773         PR target/77326
1774         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
1775         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
1776
1777 2016-09-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1778
1779         Backport from mainline
1780         2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1781
1782         * lra-constraints.c (match_reload): Pass information about other
1783         output operands.  Create new unique register value if matching input
1784         operand shares same register value as output operand being considered.
1785         (curr_insn_transform): Record output operands already processed.
1786
1787 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
1788
1789         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
1790         parameters for functions taking long long arguments.
1791
1792 2016-09-16  David Edelsohn  <dje.gcc@gmail.com>
1793
1794         Backported from mainline
1795         2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
1796
1797         PR target/77349
1798         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
1799
1800 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
1801             Eric Botcazou  <ebotcazou@adacore.com>
1802
1803         PR middle-end/77594
1804         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
1805         through into expand_addsub_overflow after expand_neg_overflow.
1806
1807 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
1808
1809         Backported from mainline
1810         2016-09-14  Jakub Jelinek  <jakub@redhat.com>
1811
1812         PR sanitizer/68260
1813         * tsan.c: Include target.h.
1814         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
1815         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
1816         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
1817         BUILT_IN_ATOMIC_TEST_AND_SET entries.
1818         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
1819
1820         2016-09-08  Jakub Jelinek  <jakub@redhat.com>
1821
1822         PR fortran/77516
1823         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
1824         OMP_CLAUSE_SAFELEN_EXPR.
1825
1826         2016-09-06  Jakub Jelinek  <jakub@redhat.com>
1827
1828         PR target/69255
1829         * config/i386/i386.c (ix86_expand_builtin): For builtin with
1830         unsupported or unknown ISA, use expand_call.
1831
1832 2016-09-06  Uros Bizjak  <ubizjak@gmail.com>
1833
1834         Backport from mainline
1835         2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
1836
1837         PR rtl-optimization/77452
1838         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
1839         inner-mode reference to a CONST_VECTOR constant in the constant pool.
1840
1841 2016-09-01  Jakub Jelinek  <jakub@redhat.com>
1842
1843         Backported from mainline
1844         2016-08-30  Jakub Jelinek  <jakub@redhat.com>
1845
1846         PR tree-optimization/72866
1847         * tree-vect-patterns.c (search_type_for_mask): Turn into
1848         a small wrapper, move all code to ...
1849         (search_type_for_mask_1): ... this new function.  Add caching
1850         and adjust recursive calls.
1851
1852         PR debug/77363
1853         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
1854         instead of lookup_type_die (type_main_variant (type)) even for array
1855         types.
1856
1857         PR middle-end/77377
1858         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
1859         constant pool reference return x instead of c.
1860
1861         2016-08-19  Jakub Jelinek  <jakub@redhat.com>
1862
1863         * config/i386/t-i386 (i386-c.o): Don't depend on
1864         i386-builtin-types.inc.
1865         (i386.o): Depend on i386-builtin-types.inc.
1866
1867         2016-08-17  Jakub Jelinek  <jakub@redhat.com>
1868
1869         PR middle-end/77259
1870         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
1871         turning a call into __builtin_unreachable-like noreturn call, adjust
1872         gimple_call_set_fntype.
1873         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
1874         gimple_call_fntype has void return type.
1875
1876         2016-08-16  Jakub Jelinek  <jakub@redhat.com>
1877
1878         PR target/71910
1879         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before inlining,
1880         add cgraph edge for the added __builtin_unreachable call.
1881
1882 2016-09-01  Gerald Pfeifer  <gerald@pfeifer.com>
1883
1884         * doc/extend.texi (SPU Built-in Functions): Remove stale
1885         references to material formerly at IBM and Sony.
1886
1887 2016-09-01  Matthew Wahab  <matthew.wahab@arm.com>
1888
1889         PR target/77281
1890         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
1891         Use const_vec_duplicate to check for duplicated elements.
1892
1893 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
1894
1895         * config/i386/i386.c (ix86_option_override_internal): Also disable the
1896         STV pass if -mstackrealign is enabled.
1897
1898 2016-08-31  Patrick Palka  <ppalka@gcc.gnu.org>
1899
1900         Backport from mainline
1901         2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
1902
1903         PR tree-optimization/71077
1904         PR tree-optimization/68542
1905         * fold-const.c (fold_relational_const): Fix folding of
1906         VECTOR_CST comparisons that have a scalar boolean result type.
1907
1908 2016-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
1909
1910         * doc/install.texi (Binaries): www.opencsw.org now uses https.
1911
1912 2016-08-31  Jakub Sejdak  <jakub.sejdak@phoesys.com>
1913
1914         * config.gcc: Add support for arm*-*-phoenix* targets.
1915         * config/arm/t-phoenix: New.
1916         * config/phoenix.h: New.
1917
1918 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
1919
1920         PR target/77403
1921         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
1922         template for intel asm dialect.
1923         (vec_set_hi_<mode><mask_name>): Ditto.
1924
1925 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
1926
1927         * Makefile.in (gcov-iov.h): Add dummy recipe.
1928
1929 2016-08-28  Uros Bizjak  <ubizjak@gmail.com>
1930
1931         Backport from mainline
1932         2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1933
1934         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
1935         for targets amdfam10 and barcelona.
1936
1937         Backport from mainline
1938         2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
1939
1940         PR target/77270
1941         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
1942         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
1943         non-SSE2 athlons only, otherwise prefer SSE prefetches.
1944
1945         Backport from mainline
1946         2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
1947
1948         PR target/77270
1949         * config/i386/i386.c (ix86_option_override_internal): Remove
1950         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
1951         Enable SSE prefetch also for TARGET_PREFETCHWT1.
1952         Do not try to enable TARGET_PRFCHW ISA flag here.
1953         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
1954         Rewrite expander function body.
1955         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
1956
1957 2016-08-28  Tom de Vries  <tom@codesourcery.com>
1958
1959         backport from trunk:
1960         2016-08-28  Tom de Vries  <tom@codesourcery.com>
1961
1962         PR lto/70955
1963         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
1964         'sysv_abi va_list' attribute.
1965         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
1966         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
1967         attributes.
1968
1969 2016-08-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1970
1971         Backport from mainline
1972         2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1973
1974         PR target/72863
1975         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
1976         (vsx_store_<mode>): Likewise.
1977
1978 2016-08-24  Richard Biener  <rguenther@suse.de>
1979
1980         Backport from mainline
1981         2016-08-17  Richard Biener  <rguenther@suse.de>
1982
1983         PR tree-optimization/76490
1984         * tree-vrp.c (update_value_range): Preserve overflow infinities
1985         when intersecting with ranges from get_range_info.
1986         (operand_less_p): Handle overflow infinities correctly.
1987         (value_range_constant_singleton): Use vrp_operand_equal_p
1988         to handle overflow max/min correctly.
1989         (vrp_valueize): Likewise.
1990         (union_ranges): Likewise.
1991         (intersect_ranges): Likewise.
1992
1993 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1994
1995         * config/arm/t-rtems: Add vfp multilib.
1996
1997 2016-08-23  Richard Biener  <rguenther@suse.de>
1998
1999         Backport from mainline
2000         2016-08-16  Richard Biener  <rguenther@suse.de>
2001
2002         PR tree-optimization/76783
2003         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
2004         BB visited flags at start.
2005
2006         2016-08-12  Richard Biener  <rguenther@suse.de>
2007
2008         PR tree-optimization/72851
2009         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
2010         worklists to use bitmaps indexed in execution order.
2011         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
2012         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
2013         (cfg_blocks): Make a bitmap.
2014         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
2015         New globals.
2016         (cfg_blocks_empty_p): Adjust.
2017         (cfg_blocks_add): Likewise.
2018         (cfg_blocks_get): Likewise.
2019         (add_ssa_edge): Likewise.
2020         (add_control_edge): Likewise.
2021         (simulate_stmt): Likewise.
2022         (process_ssa_edge_worklist): Likewise.
2023         (simulate_block): Likewise.
2024         (ssa_prop_init): Compute PRE order and stmt UIDs.
2025         (ssa_prop_fini): Adjust.
2026         (ssa_propagate): Adjust.
2027
2028 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
2029
2030         Backport from mainline
2031         2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
2032
2033         PR target/72867
2034         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
2035         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
2036         for !flag_finite_math_only or flag_signed_zeros.
2037         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
2038         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
2039         depend on flag_finite_math_only.
2040         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
2041         New insn pattern.
2042         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
2043         (*ieee_smin<mode>3): Ditto.
2044         (*ieee_smax<mode>3): Ditto.
2045         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
2046         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
2047         flag_signed_zeros.
2048         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
2049         depend on flag_finite_math_only.
2050         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
2051         (*mmx_<code>v2sf3): Remove.
2052         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
2053         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
2054         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
2055
2056 2016-08-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2057
2058         Backport from mainline
2059         2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2060
2061         PR middle-end/71700
2062         * expr.c (store_constructor): Mask sign-extended bits when widening
2063         sub-word constructor element at the start of a word.
2064
2065 2016-08-22  Richard Biener  <rguenther@suse.de>
2066
2067         * BASE-VER: Set to 6.2.1.
2068
2069 2016-08-22  Release Manager
2070
2071         * GCC 6.2.0 released.
2072
2073 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
2074
2075         Backport from mainline
2076         2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
2077
2078         PR middle-end/70895
2079         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
2080         enclosing parallel construct for reduction variables on OpenACC loop
2081         directives.
2082
2083 2016-08-18  Oleg Endo  <olegendo@gcc.gnu.org>
2084
2085         Backport from mainline
2086         2016-06-17  DJ Delorie  <dj@redhat.com>
2087
2088         PR target/71338
2089         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
2090         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
2091         (umulqihi3_virt): Likewise.
2092         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
2093         (umulqihi3_real): Likewise.
2094
2095 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
2096
2097         * doc/install.texi (*-*-solaris2*): Adjust latest change.
2098
2099 2016-08-15  Martin Liska  <mliska@suse.cz>
2100
2101         Backported from mainline
2102         2016-08-15  Martin Liska  <mliska@suse.cz>
2103
2104         PR driver/72765
2105         * gcc.c (do_spec_1): Call save_string with the right size.
2106
2107 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
2108
2109         PR debug/71906
2110         * dwarf2out.c (string_types): New variable.
2111         (gen_array_type_die): Change early_dwarf handling of
2112         DW_AT_string_length, create DW_OP_call4 referencing the
2113         length var temporarily.  Handle parameters that are pointers
2114         to string length.
2115         (adjust_string_types): New function.
2116         (gen_subprogram_die): Temporarily set string_types to local var,
2117         call adjust_string_types if needed.
2118         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
2119         New functions.
2120         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
2121
2122 2016-08-15  Richard Biener  <rguenther@suse.de>
2123
2124         PR tree-optimization/73434
2125         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
2126         TBAA info on the base when forwarding a non-invariant address.
2127
2128 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
2129
2130         * doc/install.texi (*-*-solaris2*): Fix version number and document
2131         requirement on GNU make for building libjava with the Solaris linker.
2132
2133 2016-08-15  Martin Liska  <mliska@suse.cz>
2134             Jakub Jelinek  <jakub@redhat.com>
2135
2136         PR tree-optimization/72824
2137         * tree-loop-distribution.c (const_with_all_bytes_same)
2138         <case VECTOR_CST>: Fix a typo.
2139
2140 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
2141
2142         Backport from mainline
2143         2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
2144
2145         PR target/76342
2146         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
2147         Renamed from _mm512_undefined_si512.
2148         (_mm_undefined_si512): New definition.
2149
2150         Backport from mainline:
2151         2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
2152
2153         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
2154         unused variable __O.
2155
2156         Backport from mainline:
2157         2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
2158
2159         PR target/72843
2160         * config/i386/i386.md (*movtf_internal): Use
2161         lra_in_progress || reload_completed instead of !can_create_pseudo_p
2162         in the insn constraint.
2163         (*movxf_internal): Ditto.
2164         (*movdf_internal): Ditto.
2165         (*movsf_internal): Ditto.
2166
2167 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
2168
2169         PR c/71512
2170         * ubsan.c (instrument_si_overflow): Pass true instead of false
2171         to gsi_replace.
2172         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
2173         of bbs.  Return TODO_cleanup_cfg if any returned true.
2174
2175 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2176
2177         Backport from mainline
2178         2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2179
2180         PR tree-optimization/71083
2181         * tree-predcom.c (ref_at_iteration): Correctly align the
2182         reference type.
2183
2184 2016-08-12  James Greenhalgh  <james.greenhalgh@arm.com
2185
2186         Backport from mainline
2187         2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
2188
2189         PR Target/72819
2190         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
2191         (aarch64_fp16_ptr_type_node): Likewise.
2192         * config/aarch64/aarch64-simd-builtins.c
2193         (aarch64_fp16_ptr_type_node): Define.
2194         (aarch64_init_fp16_types): New, refactored out of...
2195         (aarch64_init_builtins): ...here, update to call
2196         aarch64_init_fp16_types.
2197         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
2198         HFmode.
2199         (aapcs_vfp_sub_candidate): Likewise.
2200
2201 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2202
2203         Backport from mainline
2204         2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2205
2206         * config/s390/s390-builtin-types.def: Add INT128 types.
2207         * config/s390/s390-builtins.def: Add INT128 variants for the add
2208         sub low-level builtins dealing with TImode.
2209         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
2210         via subreg when expanding a builtin.
2211         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
2212         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
2213         Fix comment.
2214         * config/s390/vecintrin.h: Adjust builtin names accordingly.
2215         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
2216         ("vec_addc<mode>", "vec_addc_u128"): Merge to
2217         "vacc<bhfgq>_<mode>".
2218         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
2219         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
2220         ("vec_subc<mode>", "vec_subc_u128"): Merge to
2221         "vscbi<bhfgq>_<mode>".
2222         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
2223         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
2224
2225 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2226
2227         Backport from mainline
2228         2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2229
2230         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
2231         and s390_vlgv* builtins as element selector.
2232
2233 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2234
2235         Backport from mainline
2236         2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2237
2238         * config/s390/s390.c (s390_expand_vec_init): Force initializer
2239         element to register if it doesn't match general_operand.
2240
2241 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2242
2243         Backport from mainline
2244         2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2245
2246         * config/s390/vecintrin.h: Fix file description in comment.
2247
2248 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2249
2250         Backport from mainline
2251         2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2252
2253         * config/s390/s390-builtin-types.def: Change builtin type naming
2254         scheme to match builtin-types.def.
2255
2256 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2257
2258         Backport from mainline
2259         2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2260
2261         PR target/72853
2262         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
2263         being an offsettable address.
2264
2265 2016-08-10  Jakub Jelinek  <jakub@redhat.com>
2266
2267         Backported from mainline
2268         2016-08-09  Jakub Jelinek  <jakub@redhat.com>
2269
2270         PR tree-optimization/72824
2271         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
2272         real_zerop is not negative.
2273
2274 2016-08-09  Martin Jambor  <mjambor@suse.cz>
2275
2276         PR ipa/71981
2277         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
2278         if instance is a MEM_REF.
2279
2280 2016-08-09  Richard Biener  <rguenther@suse.de>
2281
2282         Backport from mainline
2283         2016-08-09  Richard Biener  <rguenther@suse.de>
2284
2285         PR ipa/68273
2286         * ipa-prop.c (ipa_modify_formal_parameters): Build
2287         parameter types with natural alignment also for the
2288         over-aligned case.
2289
2290         2016-07-15  Richard Biener  <rguenther@suse.de>
2291
2292         PR tree-optimization/71881
2293         * tree-loop-distribution.c (destroy_loop): Remove blocks in
2294         reverse DOM order to make debug temp generation happy.
2295
2296 2016-08-09  Alan Modra  <amodra@gmail.com>
2297
2298         PR target/72802
2299         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
2300         alternatives.  Put loads first, then stores, and reg/reg moves
2301         within same class later.  Delete attr length.
2302
2303 2016-08-09  Alan Modra  <amodra@gmail.com>
2304
2305         PR target/72802
2306         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
2307         (mem_operand_ds_form): New predicate.
2308         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
2309         * config/rs6000/constraints.md (wY): New constraint.
2310         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
2311         (extendsfdf2_fpr): Replace o constraint with wY.
2312
2313 2016-08-08  Georg-Johann Lay  <avr@gjlay.de>
2314
2315         Backport from 2016-07-29 trunk r238863.
2316
2317         PR rtl-optimization/71976
2318         * combine.c (get_last_value): Return 0 if the argument for which
2319         the function is called has a wider mode than the recorded value.
2320
2321 2016-08-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
2322
2323         Backport from trunk
2324         2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2325
2326         PR target/71869
2327         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
2328         __float128 support when we don't have hardware support, so that
2329         the IEEE built-in functions like isgreater, first call __unordkf3
2330         to make sure neither operand is a NaN, and if both operands are
2331         ordered, do the normal comparison.
2332
2333 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
2334
2335         PR target/72805
2336         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
2337         Cast builtin function result to __mmask16 instead of __mmask8.
2338         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
2339         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
2340         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
2341
2342 2016-08-03  Georg-Johann Lay  <avr@gjlay.de>
2343
2344         PR 70677
2345         * common/config/avr/avr-common.c (avr_option_optimization_table)
2346         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
2347
2348 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
2349
2350         Backport from 2016-08-01 trunk r238948.
2351
2352         PR target/72767
2353         * config/avr/avr.md (length) [branch]: Correct insn length
2354         attribute for forward branches.
2355
2356 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
2357
2358         Backport from 2016-06-16 trunk r237536.
2359         2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2360
2361         PR target/71151
2362         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
2363         progmem_swtable_section.
2364         (progmem_swtable_section): Remove.
2365         (avr_asm_function_rodata_section): Remove.
2366         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
2367         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Define to 1.
2368
2369 2016-07-29  Marek Polacek  <polacek@redhat.com>
2370
2371         Backport from mainline
2372         2016-07-29  Marek Polacek  <polacek@redhat.com>
2373
2374         PR c/7652
2375         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
2376         (altivec_expand_st_builtin): Likewise.
2377         * config/i386/i386.c (ix86_expand_args_builtin): Likewise.
2378         (ix86_expand_round_builtin): Likewise.
2379
2380 2016-07-27  Segher Boessenkool  <segher@kernel.crashing.org>
2381
2382         PR target/71216
2383         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
2384         when to emit a ".machine" pseudo-op.
2385
2386 2016-07-26  Alan Modra  <amodra@gmail.com>
2387
2388         PR target/72103
2389         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
2390         sri->t_icode.
2391
2392 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
2393
2394         PR sanitizer/71953
2395         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
2396         before builtin_decl_implicit.
2397
2398         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
2399
2400 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
2401
2402         Improving concepts performance and diagnostics.
2403         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
2404         for constraint satisfaction and subsumption.
2405         * timevar.h (auto_timevar): New constructor that matches the push/pop
2406         pattern of usage in pt.c.
2407
2408 2016-07-20  John David Anglin  <danglin@gcc.gnu.org>
2409
2410         Backport from mainline
2411         2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
2412
2413         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
2414         register parameters.  Remove code to initialize argument pointer
2415         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
2416         using a pc-relative branch.  Cleanup conditional code.
2417         * config/pa/pa.md (call_mcount): New expander.
2418         (call_mcount_nonpic): New insn.
2419         (call_mcount_pic): New insn and split.
2420         (call_mcount_pic_post_reload): New insn.
2421         (call_mcount_64bit): New insn and split.
2422         (call_mcount_64bit_post_reload): New insn.
2423
2424 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2425
2426         Backport from mainline
2427         2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2428
2429         * config/s390/s390.c (s390_encode_section_info): Remove mode size
2430         check.
2431
2432 2016-07-20  Martin Jambor  <mjambor@suse.cz>
2433
2434         PR fortran/71688
2435         * trans-decl.c (gfc_generate_function_code): Use get_create rather
2436         than create to get a call graph node.
2437
2438 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
2439
2440         PR rtl-optimization/71916
2441         * cfgrtl.c (contains_no_active_insn_p): Return false also for
2442         bb which have a single succ fake edge.
2443
2444 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
2445
2446         PR debug/71855
2447         * dwarf2out.c (gen_subprogram_die): Only call
2448         gen_unspecified_parameters_die while dumping early dwarf.
2449
2450 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
2451
2452         PR middle-end/71874
2453         * gimple-fold.c (fold_builtin_memory_op): Use
2454         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
2455
2456 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
2457
2458         Back port from mainline
2459         2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
2460
2461         PR target/71493
2462         * config/rs6000/rs6000.c (rs6000_function_value): Fix
2463         unintentional System V.4 structure return breakage for structures
2464         with a single floating point element.
2465
2466 2016-07-18  Martin Liska  <mliska@suse.cz>
2467
2468         Backported from mainline
2469         2016-07-12  Martin Liska  <mliska@suse.cz>
2470
2471         PR rtl-optimization/71634
2472         * ira-build.c (mark_loops_for_removal): Properly iterate
2473         loops.
2474
2475 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2476
2477         Backport from mainline
2478         2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2479
2480         * config/s390/s390.c (s390_encode_section_info): Always set
2481         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
2482         found.
2483
2484 2016-07-15  Alan Modra  <amodra@gmail.com>
2485
2486         Apply from mainline
2487         2016-07-11  Alan Modra  <amodra@gmail.com>
2488         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
2489         (ctr<mode>): Add unspec.
2490         (ctr<mode>_internal*): Likewise.
2491
2492 2016-07-14  Alan Modra  <amodra@gmail.com>
2493
2494         PR target/71733
2495         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
2496         with p9_vector override before power9-dform override.
2497
2498 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
2499
2500         Backport from mainline r238086.
2501         2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
2502
2503         PR ipa/71624
2504         * ipa-inline-analysis.c (compute_inline_parameters): Set
2505         local.can_change_signature to false for intrumentation
2506         thunk callees.
2507
2508 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2509             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2510
2511         Backport from mainline
2512         2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2513                     Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2514
2515         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
2516         prototype.
2517         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
2518         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
2519         (SIGNBIT): New mode iterator.
2520         (Fsignbit): New mode attribute.
2521         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
2522         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
2523         when direct moves are available.
2524         (signbit<mode>2_dm): New define_insn_and_split).
2525         (signbit<mode>2_dm2): New define_insn.
2526
2527 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2528
2529         Backport from mainline
2530         2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2531
2532         PR target/71805
2533         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
2534         The xxperm and xxpermr instructions require that the 2nd input
2535         operand overlap with the output operand, and not the 1st.
2536         (altivec_vperm_v8hiv16qi): Likewise.
2537         (altivec_vperm_<mode>_uns_internal): Likewise.
2538         (altivec_vpermr_<mode>_internal): Likewise.
2539         (vperm_v8hiv4si): Likewise.
2540         (vperm_v16qiv8hi): Likewise.
2541
2542 2016-07-12  Segher Boessenkool  <segher@kernel.crashing.org>
2543
2544         Backport from mainline
2545         2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
2546
2547         PR target/70098
2548         PR target/71763
2549         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
2550         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
2551         constraint.
2552
2553 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
2554
2555         PR middle-end/71758
2556         * omp-low.c (expand_omp_target): Gimplify device.
2557
2558         PR tree-optimization/71823
2559         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
2560         to get vec_oprnds2 from op2.
2561
2562 2016-07-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
2563
2564         Backport from mainline r238055.
2565         2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
2566
2567         PR tree-optimization/71518
2568         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
2569         misalign also for outer loops with negative step.
2570
2571 2016-07-08  Martin Liska  <mliska@suse.cz>
2572
2573         Backported from mainline
2574         2016-07-08  Martin Liska  <mliska@suse.cz>
2575
2576         PR middle-end/71606
2577         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
2578         folding produces SAVE_EXPRs, thus return false for the type.
2579
2580 2016-07-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2581
2582         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): Remove
2583         redundant and erroneous definition of this macro accidentally
2584         inserted during backporting.
2585         (BU_P9_64BIT_MISC_0): Likewise.
2586         (BU_P9_MISC_0): Likewise.
2587
2588 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
2589
2590         Back port from the trunk
2591         2016-07-08  Jiong Wang  <jiong.wang@arm.com>
2592
2593         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
2594         variants.
2595         (smin): Likewise.
2596         (fmax): New entry.
2597         (fmin): Likewise.
2598         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
2599         __builtin_aarch64_fmaxv2sf.
2600         (vmaxnmq_f32): Likewise.
2601         (vmaxnmq_f64): Likewise.
2602         (vminnm_f32): Likewise.
2603         (vminnmq_f32): Likewise.
2604         (vminnmq_f64): Likewise.
2605
2606 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
2607
2608         Back port from trunk
2609         2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
2610
2611         PR target/71806
2612         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
2613         enable -mfloat128-hardware by default.
2614         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
2615         that IEEE 128-bit hardware support needs.
2616         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
2617         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
2618         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
2619         floating point requires.
2620         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2621         -mfloat128 and -mfloat128-hardware changes.
2622
2623 2016-07-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2624
2625         Backport from mainline r237912
2626         2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2627
2628         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
2629         Exchange the order of the second and third operands in the vpermr
2630         instruction tmeplate.
2631
2632 2016-07-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
2633
2634         Back port from the trunk
2635         2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2636
2637         PR target/71720
2638         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
2639         the insns, use an insn form that does not adjust the offset on
2640         little endian systems.
2641
2642 2016-07-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2643
2644         Backport from mainline r237885
2645         2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2646
2647         * config/rs6000/altivec.md (darn_32): Change the condition to
2648         TARGET_P9_MISC instead of TARGET_MODULO.
2649         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
2650         condition expression.
2651         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
2652         condition expression.
2653         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
2654         (DFP_TEST): New code iterator.
2655         (dfptstsfi_<code>_mode>): New define_expand.
2656         (*dfp_sgnfcnc_<mode>): New define_insn.
2657         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
2658         definition next to BU_P9_MISC_1 definition and change the MASK
2659         value to RS6000_BTM_P9_MISC.
2660         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
2661         (BU_P9_64BIT_MISC_0): Likewise.
2662         (BU_P9_DFP_MISC_0): New macro definition.
2663         (BU_P9_DFP_MISC_1): New macro definition.
2664         (BU_P9_DFP_MISC_2): New macro definition.
2665         (BU_P9_DFP_OVERLOAD_1): New macro definition.
2666         (BU_P9_DFP_OVERLOAD_2): New macro definition.
2667         (BU_P9_DFP_OVERLOAD_3): New macro definition.
2668         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
2669         (TSTSFI_LT_TD): Likewise.
2670         (TSTSFI_EQ_DD): Likewise.
2671         (TSTSFI_EQ_TD): Likewise.
2672         (TSTSFI_GT_DD): Likewise.
2673         (TSTSFI_GT_TD): Likewise.
2674         (TSTSFI_OV_DD): Likewise.
2675         (TSTSFI_OV_TD): Likewise.
2676         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
2677         (TSTSFI_LT_DD): Likewise.
2678         (TSTSFI_LT_TD): Likewise.
2679         (TSTSFI_EQ): Likewise.
2680         (TSTSFI_EQ_DD): Likewise.
2681         (TSTSFI_EQ_TD): Likewise.
2682         (TSTSFI_GT): Likewise.
2683         (TSTSFI_GT_DD): Likewise.
2684         (TSTSFI_GT_TD): Likewise.
2685         (TSTSFI_OV): Likewise.
2686         (TSTSFI_OV_DD): Likewise.
2687         (TSTSFI_OV_TD): Likewise.
2688         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2689         overloaded test significance functions.
2690         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2691         OPTION_MASK_P9_MISC into the representation of this mask.
2692         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
2693         of this mask.
2694         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
2695         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
2696         non-zero.
2697         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
2698         argument is a 6-bit unsigned literal value if the icode argument
2699         represents a DFP test significance built-in call.
2700         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
2701         flag used independently and in combination with the
2702         RS6000_BTM_64BIT flag.
2703         (rs6000_opt_masks): Add entry for power9-misc command-line option.
2704         (rs6000_builtin_mask_names): Add entry for power9-misc
2705         command-line option.
2706         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
2707         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
2708         RS6000_BTM_P9_MISC macros.
2709         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
2710         option and change the description of the -mpower9-vector option to
2711         enable only vector instructions, removing its erroneously claimed
2712         support for scalar instructions.
2713         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2714         the ISA 3.0 digital floating point test significance built-in
2715         functions.
2716
2717 2016-07-07  Richard Biener  <rguenther@suse.de>
2718
2719         Backport from mainline
2720         2016-06-13  Richard Biener  <rguenther@suse.de>
2721
2722         PR middle-end/64516
2723         * fold-const.c (fold_unary_loc): Preserve alignment when
2724         folding a VIEW_CONVERT_EXPR into a MEM_REF.
2725
2726 2016-07-07  Richard Biener  <rguenther@suse.de>
2727
2728         Backport from mainline
2729         2016-05-25  Richard Biener  <rguenther@suse.de>
2730
2731         PR tree-optimization/71264
2732         * tree-vect-stmts.c (vect_init_vector): Properly deal with
2733         vector type val.
2734
2735         2016-06-07  Richard Biener  <rguenther@suse.de>
2736
2737         PR middle-end/71423
2738         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
2739         for signed ops.
2740
2741         2016-06-14  Richard Biener  <rguenther@suse.de>
2742
2743         PR tree-optimization/71521
2744         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
2745         division int_const_binop against zero divisor.
2746
2747         2016-06-08  Richard Biener  <rguenther@suse.de>
2748
2749         PR tree-optimization/71452
2750         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
2751         type used for the SSA rewrite has enough precision to cover
2752         the dynamic type of the location.
2753
2754         2016-06-14  Richard Biener  <rguenther@suse.de>
2755
2756         PR tree-optimization/71522
2757         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
2758         copying into float copying.
2759
2760 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2761
2762         Backport from mainline
2763         2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2764
2765         PR target/50739
2766         * config/avr/avr.c (avr_asm_select_section): Strip off
2767         SECTION_DECLARED from flags when calling get_section.
2768
2769 2016-07-05  Pat Haugen  <pthaugen@us.ibm.com>
2770
2771         Backport from mainline
2772         2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
2773
2774         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
2775         ('size' attribute): Add '128'.
2776         Include power9.md.
2777         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
2778         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
2779         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
2780         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
2781         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
2782         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
2783         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
2784         *trunc<mode>df2_odd): Set size attribute to '128'.
2785         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
2786         * config/rs6000/power6.md (power6-fp): Include dfp type.
2787         * config/rs6000/power7.md (power7-fp): Likewise.
2788         * config/rs6000/power8.md (power8-fp): Likewise.
2789         * config/rs6000/power9.md: New file.
2790         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
2791         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
2792         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
2793         htmsimple.
2794         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
2795         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
2796         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
2797         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
2798         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
2799         dfp_dscri_<mode>): Change type attribute to dfp.
2800         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
2801         attribute to vecsimple.
2802         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
2803         and prefetch streams.
2804         (rs6000_option_override_internal): Remove temporary code setting
2805         tuning to power8.  Don't set rs6000_sched_groups for power9.
2806         (last_scheduled_insn): Change to rtx_insn *.
2807         (divide_cnt, vec_load_pendulum): New variables.
2808         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
2809         (rs6000_issue_rate): Set issue rate for Power9.
2810         (is_power9_pairable_vec_type): New.
2811         (power9_sched_reorder2): New.
2812         (rs6000_sched_reorder2): Call new function for Power9 specific
2813         reordering.
2814         (insn_must_be_first_in_group): Remove Power9.
2815         (insn_must_be_last_in_group): Likewise.
2816         (force_new_group): Likewise.
2817         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
2818         Initialize divide_cnt/vec_load_pendulum.
2819         (_rs6000_sched_context, rs6000_init_sched_context,
2820         rs6000_set_sched_context): Handle context save/restore of new
2821         variables.
2822
2823 2016-07-05  Pat Haugen  <pthaugen@us.ibm.com>
2824
2825         Backport from mainline
2826         2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
2827
2828         * config/rs6000/rs6000.md ('type' attribute): Add
2829         veclogical,veccmpfx,vecexts,vecmove insn types.
2830         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
2831         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
2832         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
2833         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
2834         *nabs<mode>2_hw): Change type to vecmove.
2835         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
2836         *boolcc<mode>3_internal, *eqv<mode>3_internal,
2837         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
2838         *ieee_128bit_vsx_abs<mode>2_internal,
2839         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
2840         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
2841         *ieee128_mtvsrd_32bit): Change type to veclogical.
2842         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
2843         *movdi_internal32, *movdi_internal64): Update insn types.
2844         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
2845         vsx_extract_<mode>): Change type to veclogical.
2846         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
2847         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
2848         *vsx_sign_extend_si_v2di): Change type to vecexts.
2849         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
2850         type to veclogical.
2851         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
2852         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
2853         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
2854         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
2855         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
2856         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
2857         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
2858         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
2859         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
2860         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
2861         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
2862         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
2863         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
2864         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
2865         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
2866         (ppc7450-vecsimple): Add veclogical, vecmove.
2867         (ppc7450-veccmp): Add veccmpfx.
2868         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
2869         vecmove.
2870         (ppc8540_vector_compare): Add veccmpfx.
2871         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
2872         * config/rs6000/cell.md (cell-fp): Add fpsimple.
2873         (cell-vecsimple): Add veclogical, vecmove.
2874         (cell-veccmp): Add veccmpfx.
2875         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
2876         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
2877         veccmpfx.
2878         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
2879         * config/rs6000/power4.md (power4-fp): Add fpsimple.
2880         (power4-vecsimple): Add veclogical, vecmove.
2881         (power4-veccmp): Add veccmpfx.
2882         * config/rs6000/power5.md (power5-fp): Add fpsimple.
2883         * config/rs6000/power6.md (power6-fp): Add fpsimple.
2884         (power6-vecsimple): Add veclogical, vecmove.
2885         (power6-veccmp): Add veccmpfx.
2886         * config/rs6000/power7.md (power7-fp): Add fpsimple.
2887         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
2888         * config/rs6000/power8.md (power8-fp): Add fpsimple.
2889         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
2890         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
2891         * config/rs6000/titan.md (titan_fp): Add fpsimple.
2892         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
2893         fpsimple.
2894         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
2895
2896 2016-07-05  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2897
2898         Backport from mainline r237391
2899         2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2900
2901         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
2902         RS6000_BTM_MODULO flag into the set of flags that are considered
2903         to be part of the common configuration.
2904
2905 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
2906
2907         PR c++/71739
2908         * tree.c (attribute_value_equal): Use get_attribute_name instead of
2909         directly using TREE_PURPOSE.
2910
2911 2016-07-04  Segher Boessenkool  <segher@kernel.crashing.org>
2912
2913         Backport from mainline
2914         2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
2915
2916         PR target/71670
2917         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
2918         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
2919
2920 2016-07-02  Jakub Jelinek  <jakub@redhat.com>
2921
2922         Backported from mainline
2923         2016-06-28  Jakub Jelinek  <jakub@redhat.com>
2924
2925         PR middle-end/71626
2926         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
2927         a constant, force its SUBREG_REG into memory or register instead
2928         of whole op1.
2929
2930         2016-06-20  Jakub Jelinek  <jakub@redhat.com>
2931
2932         PR target/71559
2933         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
2934         returned values and add UN*/LTGT/*ORDERED cases with values matching
2935         D operand modifier on vcmp for AVX.
2936
2937 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2938
2939         Backport from trunk r237659
2940         2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2941
2942         * config/rs6000/rs6000.h: Add conditional preprocessing directives
2943         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
2944         not defined.
2945
2946 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
2947
2948         Backport from trunk
2949         2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
2950
2951         PR target/71656
2952         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2953         OPTION_MASK_P9_DFORM_VECTOR.
2954         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
2955         disable -mpower9-dform-vector when using reload.
2956         (quad_address_p): Remove 'gpr_p' argument and all associated code.
2957         New 'strict' argument.  Update all callers.  Add strict addressing
2958         support.
2959         (rs6000_legitimate_offset_address_p): Remove call to
2960         virtual_stack_registers_memory_p.
2961         (rs6000_legitimize_reload_address): Add quad address support.
2962         (rs6000_legitimate_address_p): Move call to quad_address_p above
2963         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
2964         to account for new strict usage.
2965         (rs6000_output_move_128bit): Adjust quad_address_p args to account
2966         for new strict usage.
2967         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
2968
2969 2016-07-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2970
2971         Backport from mainline
2972         2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2973
2974         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
2975         (BU_FLOAT128_1): Likewise.
2976         (FABSQ): Likewise.
2977         (COPYSIGNQ): Likewise.
2978         (RS6000_BUILTIN_NANQ): Likewise.
2979         (RS6000_BUILTIN_NANSQ): Likewise.
2980         (RS6000_BUILTIN_INFQ): Likewise.
2981         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
2982         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
2983         (TARGET_FOLD_BUILTIN): New #define.
2984         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
2985         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
2986         (rs6000_fold_builtin): New target hook implementation, handling
2987         folding of 128-bit NaNs and infinities.
2988         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
2989         entries are filled in to avoid problems during bootstrap
2990         self-test; define builtins for 128-bit NaNs and infinities.
2991         (rs6000_opt_mask): Add entry for float128.
2992         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
2993         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
2994         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
2995         (const_str_type_node): New #define.
2996         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
2997         to a define_expand that dispatches to either copysign<mode>3_soft
2998         or copysign<mode>3_hard.
2999         (copysign<mode>3_hard): Rename from copysign<mode>3.
3000         (copysign<mode>3_soft): New define_insn.
3001         * doc/extend.texi: Document new builtins.
3002
3003 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
3004
3005         Backport from trunk
3006         2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
3007
3008         PR target/71698
3009         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move): Disallow
3010         TDmode values.
3011
3012 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3013
3014         Backport from trunk r236992
3015         2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3016
3017         * config/rs6000/altivec.h (vec_slv): New macro.
3018         (vec_srv): New macro.
3019         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
3020         (UNSPEC_VSRV): New value.
3021         (vslv): New insn.
3022         (vsrv): New insn.
3023         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
3024         (vsrv): New builtin definition.
3025         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
3026         define argument types for new builtin.
3027         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
3028         new builtin.
3029         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
3030         functions.
3031
3032 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
3033
3034         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
3035         for NULL decl.
3036
3037 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3038
3039         Backport from trunk r237390
3040         2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3041
3042         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
3043         difference unsigned.
3044         (vec_absdb): New macro for vector absolute difference unsigned
3045         byte.
3046         (vec_absdh): New macro for vector absolute difference unsigned
3047         half-word.
3048         (vec_absdw): New macro for vector absolute difference unsigned word.
3049         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
3050         (vadu<mode>3): New insn.
3051         (*p9_vadu<mode>3): New insn.
3052         * config/rs6000/rs6000-builtin.def (vadub): New built-in
3053         definition.
3054         (vaduh): New built-in definition.
3055         (vaduw): New built-in definition.
3056         (vadu): New overloaded built-in definition.
3057         (vadub): New overloaded built-in definition.
3058         (vaduh): New overloaded built-in definition.
3059         (vaduw): New overloaded built-in definition.
3060         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3061         overloaded vector absolute difference unsigned functions.
3062         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3063         the ISA 3.0 vector absolute difference unsigned built-in functions.
3064
3065 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
3066
3067         Backport from trunk r237880.
3068         2016-06-30  David Malcolm  <dmalcolm@redhat.com>
3069
3070         PR driver/71651
3071         * gcc.c (driver::build_option_suggestions): Pass "option" to
3072         add_misspelling_candidates.
3073         * opts-common.c (add_misspelling_candidates): Add "option" param;
3074         use it to avoid adding negated forms for options marked with
3075         RejectNegative.
3076         * opts.h (add_misspelling_candidates): Add "option" param.
3077
3078 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
3079
3080         PR middle-end/71693
3081         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
3082         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
3083         first when permuting bitwise operation with rotate.  Cast
3084         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
3085
3086 2016-06-30  Martin Liska  <mliska@suse.cz>
3087
3088         Parting backport from mainline
3089         2016-06-29  Martin Liska  <mliska@suse.cz>
3090
3091         * ipa-inline-transform.c (inline_call): Remove unnecessary call
3092         of build_optimization_node.
3093
3094 2016-06-29  Eric Botcazou  <ebotcazou@adacore.com>
3095
3096         Backport from mainline
3097         2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
3098
3099         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
3100
3101 2016-06-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
3102
3103         Back port from trunk
3104         2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
3105
3106         * stor-layout.c (layout_type): Move setting complex MODE to
3107         layout_type, instead of setting it ahead of time by the caller.
3108
3109         Back port from trunk
3110         2016-05-11  Alan Modra  <amodra@gmail.com>
3111
3112         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
3113         abi_v4_pass_in_fpr): New functions.
3114         (rs6000_function_arg_boundary): Exclude complex IBM long double
3115         from 64-bit alignment when ABI_V4.
3116         (rs6000_function_arg, rs6000_function_arg_advance_1,
3117         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
3118
3119         Back port from trunk
3120         2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3121
3122         * machmode.h (mode_complex): Add support to give the complex mode
3123         for a given mode.
3124         (GET_MODE_COMPLEX_MODE): Likewise.
3125         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
3126         stored by build_complex_type and gfc_build_complex_type instead of
3127         trying to figure out the appropriate mode based on the size. Raise
3128         an assertion error, if the type was not set.
3129         * genmodes.c (struct mode_data): Add field for the complex type of
3130         the given type.
3131         (blank_mode): Likewise.
3132         (make_complex_modes): Remember the complex mode created in the
3133         base type.
3134         (emit_mode_complex): Write out the mode_complex array to map a
3135         type mode to the complex version.
3136         (emit_insn_modes_c): Likewise.
3137         * tree.c (build_complex_type): Set the complex type to use before
3138         calling layout_type.
3139         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
3140         support for __float128 complex datatypes.
3141         (rs6000_hard_regno_mode_ok): Likewise.
3142         (rs6000_setup_reg_addr_masks): Likewise.
3143         (rs6000_complex_function_value): Likewise.
3144         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
3145         __float128 and __ibm128 complex.
3146         (FLOAT128_IBM_P): Likewise.
3147         (ALTIVEC_ARG_MAX_RETURN): Likewise.
3148         * doc/extend.texi (Additional Floating Types): Document that
3149         -mfloat128 must be used to enable __float128.  Document complex
3150         __float128 and __ibm128 support.
3151
3152 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
3153
3154         PR tree-optimization/71647
3155         * omp-low.c (lower_rec_input_clauses): Convert
3156         omp_clause_aligned_alignment (c) to size_type_node for the
3157         last argument of __builtin_assume_aligned.
3158
3159 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
3160
3161         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
3162
3163 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
3164
3165         Backport from 2016-06-21 trunk r237639.
3166
3167         PR target/30417
3168         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
3169         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
3170         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
3171
3172 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
3173
3174         PR target/71103
3175         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
3176         constant addresses if can_create_pseudo_p.
3177
3178 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
3179
3180         PR tree-optimization/71588
3181         * tree-ssa-strlen.c (valid_builtin_call): New function.
3182         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
3183         it.
3184
3185         Backported from mainline
3186         2016-06-20  Jakub Jelinek  <jakub@redhat.com>
3187
3188         PR middle-end/71581
3189         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
3190         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
3191         for conversion of scalar user var to complex type and use the
3192         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
3193         punt.
3194
3195         2016-06-16  Jakub Jelinek  <jakub@redhat.com>
3196
3197         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
3198         with base of reference to struct.
3199
3200 2016-06-20  Ilya Enkovich  <ilya.enkovich@intel.com>
3201
3202         Backport from mainline r237484.
3203         2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
3204
3205         PR middle-end/71529
3206         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
3207         DECL_CONTEXT for copied arguments.
3208
3209 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
3210             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3211
3212         Backport from 2016-06-20 trunk r237589, r236558.
3213
3214         PR target/71103
3215         * config/avr/avr.md (movqi): Handle loading subreg:qi (const,
3216         symbol_ref,label_ref).
3217
3218 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
3219
3220         PR target/71554
3221         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
3222         (setcc + and peephole2): Likewise.
3223
3224 2016-06-15  Andreas Tobler  <andreast@gcc.gnu.org>
3225
3226         Backported from mainline
3227         2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
3228
3229         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
3230         FreeBSD 11 and above.
3231
3232 2016-06-15  Ilya Verbin  <ilya.verbin@intel.com>
3233
3234         Backport from mainline
3235         2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3236
3237         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
3238
3239 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
3240
3241         Backported from mainline
3242         2016-06-10  Jakub Jelinek  <jakub@redhat.com>
3243
3244         PR middle-end/71494
3245         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
3246         without LABEL_DECL, set *handled_ops_p to false instead of true.
3247
3248         2016-06-08  Jakub Jelinek  <jakub@redhat.com>
3249                     Richard Biener  <rguenther@suse.de>
3250
3251         PR c++/71448
3252         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
3253         the same as DECL_P (base0) for indirect_base0.  Use equality_code
3254         in one further place.
3255
3256         2016-06-04  Jakub Jelinek  <jakub@redhat.com>
3257
3258         PR tree-optimization/71405
3259         * tree-ssa.c (execute_update_addresses_taken): For clobber with
3260         incompatible type, build a new clobber with the right type instead
3261         of building a VIEW_CONVERT_EXPR around it.
3262
3263 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
3264
3265         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
3266         update shared_lookup_references only once after changing operands.
3267
3268 2016-06-13  Richard Biener  <rguenther@suse.de>
3269
3270         PR tree-optimization/71505
3271         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
3272         assert match comment.
3273
3274 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3275
3276         Backport from mainline
3277         2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3278
3279         PR target/71379
3280         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
3281         one.
3282
3283 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
3284
3285         PR middle-end/71373
3286         Backport from trunk r237291:
3287         * tree-nested.c (convert_nonlocal_omp_clauses)
3288         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
3289         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
3290         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
3291
3292         Backport from trunk r237291:
3293         * gimplify.c (gimplify_adjust_omp_clauses): Discard
3294         OMP_CLAUSE_TILE.
3295         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
3296
3297         Backport from trunk r237290:
3298         * omp-low.c (scan_sharing_clauses): Don't expect
3299         OMP_CLAUSE__CACHE_.
3300
3301         Backport trunk r235964:
3302         2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
3303
3304         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
3305         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
3306         equality first.
3307
3308 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
3309
3310         PR sanitizer/71480
3311         * varasm.c (place_block_symbol): Adjust alignment for asan protected
3312         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
3313
3314 2016-06-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3315
3316         Back port from trunk
3317         2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3318
3319         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
3320         alternatives, eliminating preferred register class.  Add support
3321         for the MTVSRDD instruction in ISA 3.0.
3322         (vsx_splat_v4si_internal): Use splat_input_operand instead of
3323         reg_or_indexed_operand.
3324         (vsx_splat_v4sf_internal): Likewise.
3325
3326         Back port from trunk
3327         2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3328
3329         PR target/71186
3330         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
3331         for loading up all 0's or all 1's.
3332
3333         Back port from trunk
3334         2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3335
3336         PR target/70915
3337         * config/rs6000/constraints.md (wE constraint): New constraint
3338         for a vector constant that can be loaded with XXSPLTIB.
3339         (wM constraint): New constraint for a vector constant of a 1's.
3340         (wS constraint): New constraint for a vector constant that can be
3341         loaded with XXSPLTIB and a vector sign extend instruction.
3342         * config/rs6000/predicates.md (xxspltib_constant_split): New
3343         predicates for wE/wS constraints.
3344         (xxspltib_constant_nosplit): Likewise.
3345         (easy_vector_constant): Add support for constants that can be
3346         loaded via XXSPLTIB.
3347         (splat_input_operand): Add support for ISA 3.0 word splat operations.
3348         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
3349         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
3350         instruction and possibly with a sign extension.
3351         (output_vec_const_move): Add support for XXSPLTIB. If we are
3352         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
3353         instead of XXLXOR/XXLORC.
3354         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
3355         operations.
3356         (rs6000_legitimize_reload_address): Likewise.
3357         (rs6000_output_move_128bit): Use output_vec_const_move to emit
3358         constants.
3359         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
3360         combine VSX_M and VSX_M2 into one iterator.
3361         (VSX_M2): Likewise.
3362         (VSINT_84): New iterators for loading constants with XXSPLTIB.
3363         (VSINT_842): Likewise.
3364         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
3365         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
3366         XXSPLTIB instruction.
3367         (xxspltib_<mode>_nosplit): Likewise.
3368         (xxspltib_<mode>_split): New insn to load up constants with
3369         XXSPLTIB and a sign extend instruction.
3370         (vsx_mov<mode>): Replace single move that handled all vector types
3371         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
3372         moves (when -mvsx-timode is in effect) into the main vector
3373         moves.  Eliminate separate moves for <VSr> <VSa>, where the
3374         preferred register class (<VSr>) is listed first, and the
3375         secondary register class (<VSa>) is listed second with a '?' to
3376         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
3377         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
3378         that if the register was involved in a slow operation, the
3379         clear/set operation does not wait for the slow operation to
3380         finish.  Adjust the length attributes for 32-bit mode.  Use
3381         rs6000_output_move_128bit and drop the use of the string
3382         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
3383         spacing so that the alternatives and attributes don't generate
3384         long lines, and put things in columns, so that it is easier to
3385         match up the operands and attributes with the insn alternatives.
3386         (vsx_mov<mode>_64bit): Likewise.
3387         (vsx_mov<mode>_32bit): Likewise.
3388         (vsx_movti_64bit): Fold movti into normal vector moves.
3389         (vsx_movti_32bit): Likewise.
3390         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
3391         splat instructions.
3392         (vsx_splat_v4si_internal): Likewise.
3393         (vsx_splat_v4sf_internal): Likewise.
3394         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
3395         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
3396         extend vector elements.
3397         (vsx_sign_extend_hi_<mode>): Likewise.
3398         (vsx_sign_extend_si_v2di): Likewise.
3399         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
3400         declaration.
3401         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
3402         constraints.  Add trailing period to wL documentation.
3403
3404 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
3405
3406         Backport from mainline
3407         2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
3408
3409         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
3410         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
3411
3412 2016-06-08  Eric Botcazou  <ebotcazou@adacore.com>
3413
3414         Backport from mainline
3415         2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
3416
3417         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
3418         Include the M7 SPARC DFA scheduler.
3419         New attribute v3pipe.
3420         Annotate insns with v3pipe where appropriate.
3421         Define cpu_feature vis4.
3422         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
3423         Add (V8QI "8") to vbits.
3424         Add insns {add,sub}v8qi3
3425         Add insns ss{add,sub}v8qi3
3426         Add insns us{add,sub}{v8qi,v4hi}3
3427         Add insns {min,max}{v8qi,v4hi,v2si}3
3428         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
3429         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
3430         * config/sparc/niagara4.md: Add a comment explaining the
3431         discrepancy between the documented latenty numbers and the
3432         implemented ones.
3433         * config/sparc/niagara7.md: New file.
3434         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
3435         supports SPARC5 and VIS 4.0 instructions.
3436         * configure: Regenerate.
3437         * config.in: Likewise.
3438         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
3439         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
3440         TARGET_CPU_niagara7.
3441         (ASM_CPU64_DEFAULT_SPEC): Likewise.
3442         (CPP_CPU_SPEC): Handle niagara7.
3443         (ASM_CPU_SPEC): Likewise.
3444         * config/sparc/sparc-opts.h (processor_type): Add
3445         PROCESSOR_NIAGARA7.
3446         (mvis4): New option.
3447         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
3448         (AS_NIAGARA7_FLAG): Define.
3449         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
3450         (CPP_CPU64_DEFAULT_SPEC): Likewise.
3451         (CPP_CPU_SPEC): Handle niagara7.
3452         (ASM_CPU_SPEC): Likewise.
3453         * config/sparc/sparc.c (niagara7_costs): Define.
3454         (sparc_option_override): Handle niagara7 and adjust cache-related
3455         parameters with better values for niagara cpus.  Also support VIS4.
3456         (sparc32_initialize_trampoline): Likewise.
3457         (sparc_use_sched_lookahead): Likewise.
3458         (sparc_issue_rate): Likewise.
3459         (sparc_register_move_cost): Likewise.
3460         (dump_target_flag_bits): Support VIS4.
3461         (sparc_vis_init_builtins): Likewise.
3462         (sparc_builtins): Likewise.
3463         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
3464         VIS4 4.0.
3465         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
3466         UltraSparc M7.
3467         * config/sparc/sparc.opt (sparc_processor_type): New value
3468         niagara7.
3469         * config/sparc/visintrin.h (__attribute__): Prototypes for the
3470         VIS4 builtins.
3471         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
3472         -mvis4.
3473         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
3474         VIS4 builtins.
3475
3476         2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
3477
3478         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
3479         tune_64.
3480         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
3481         support on SPARC.
3482         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
3483         cpu_32, cpu_64, tune_32 and tune_64.
3484         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
3485
3486 2016-06-08  Ilya Verbin  <ilya.verbin@intel.com>
3487
3488         Backport from mainline
3489         2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
3490
3491         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
3492         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
3493         * config/i386/i386.c (enum ix86_builtins): Add
3494         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
3495         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
3496         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
3497         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
3498         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
3499         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
3500         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
3501         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
3502         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
3503         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
3504         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
3505         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
3506         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
3507         __builtin_ia32_cvtps2dq512_mask.
3508         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
3509         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
3510         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
3511         * config/i386/sse.md
3512         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
3513         Rename to ...
3514         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
3515         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
3516         to ...
3517         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
3518         (avx512f_vec_pack_sfix_v8df): New define_expand.
3519         (avx512f_roundpd512): Rename to ...
3520         (avx512f_round<castmode>512): ... this.  Change iterator.
3521         (avx512f_roundps512_sfix): New define_expand.
3522         (round<mode>2_sfix): Change iterator.
3523
3524 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
3525
3526         Backport from mainline
3527         2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
3528
3529         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
3530         -mno-htm.
3531
3532 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
3533
3534         PR target/71389
3535         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
3536         Copy op1 RTX to avoid invalid sharing.
3537         (ix86_expand_vector_move_misalign): Ditto.
3538
3539 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
3540
3541         PR tree-optimization/71259
3542         * tree-vect-slp.c (vect_get_constant_vectors): For
3543         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
3544         one for constant op, and use COND_EXPR for non-constant.
3545
3546 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3547
3548         Backport from trunk
3549         2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3550
3551         PR target/70830
3552         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
3553
3554 2016-06-05  Uros Bizjak  <ubizjak@gmail.com>
3555
3556         Backport from mainline
3557         2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
3558                     Jocelyn Mayer  <l_indien@magic.fr>
3559
3560         PR target/67310
3561         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
3562         detect processor family for signature_CENTAUR_ebx.
3563         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
3564         signature_CENTAUR_ebx.
3565         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
3566         <default>: Pass x86-64 for has_longmode.
3567
3568 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
3569
3570         PR middle-end/71387
3571         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
3572         to noreturn e->callee->decl that has void return type and void
3573         arguments, adjust gimple_call_fntype and remove lhs even if it had
3574         previously addressable type.
3575
3576 2016-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3577
3578         Back port from trunk
3579         2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3580
3581         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
3582         for ISA 3.0 min/max support.
3583         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
3584         conditional move support.
3585         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
3586         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
3587         available.
3588         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
3589         conditional moves where the comparison type is different from move
3590         type.
3591         (fp_minmax): New code iterator for smin/smax.
3592         (minmax): New code attributes for min/max.
3593         (SMINMAX): Likewise.
3594         (smax<mode>3): Combine min, max insns into one insn using the
3595         fp_minmax code iterator.  Add support for ISA 3.0 min/max
3596         instructions that don't need -ffast-math.
3597         (s<minmax><mode>3): Likewise.
3598         (smax<mode>3_vsx): Likewise.
3599         (smin<mode>3): Likewise.
3600         (s<minmax><mode>3_vsx): Likewise.
3601         (smin<mode>3_vsx): Likewise.
3602         (pre-VSX min/max splitters): Likewise.
3603         (s<minmax><mode>3_fpr): Likewise.
3604         (movsfcc): Rewrite floating point conditional moves to combine
3605         SFmode/DFmode into a single insn.
3606         (mov<mode>cc): Likewise.
3607         (movdfcc): Likewise.
3608         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
3609         SFDF2 iterators to handle all combinations.
3610         (fseldfsf4): Likewise.
3611         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
3612         (fseldfdf4): Likewise.
3613         (fselsfdf4): Likewise.
3614         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
3615         comparison instructions that set a 0/-1 mask, and use it for
3616         floating point conditional move via XXSEL.
3617         (fpmask<mode>): Likewise.
3618         (xxsel<mode>): Likewise.
3619         * config/rs6000/predicates.md (min_max_operator): Delete, no
3620         longer used.
3621         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
3622         instructions that generate a 0/-1 mask for use with XXSEL.
3623         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
3624         say whether floating point min/max is available, either through
3625         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
3626         (TARGET_MINMAX_DF): Likewise.
3627
3628         Back port from trunk
3629         2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3630
3631         * config/rs6000/predicate.md (all_ones_constant): New predicate
3632         for vector constant with all 1's set.
3633
3634 2016-06-02  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3635
3636         Back port from trunk
3637         2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3638
3639         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
3640         (UNSPEC_DARN_32): New unspec constant.
3641         (UNSPEC_DARN_RAW): New unspec constant.
3642         (darn_32): New instruction.
3643         (darn_raw): New instruction.
3644         (darn): New instruction.
3645         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
3646         support and documentation for this macro.
3647         (BU_P9_MISC_1): New macro definition.
3648         (BU_P9_64BIT_MISC_0): New macro definition.
3649         (BU_P9_MISC_0): New macro definition.
3650         (darn_32): New builtin definition.
3651         (darn_raw): New builtin definition.
3652         (darn): New builtin definition.
3653         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
3654         RS6000_BUILTIN_0 directives to surround each occurrence of
3655         #include "rs6000-builtin.def".
3656         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
3657         RS6000_BTM_64BIT flags to the returned mask, depending on
3658         configuration.
3659         (def_builtin): Correct an error in the assignments made to the
3660         debugging variable attr_string.
3661         (rs6000_expand_builtin): Add support for no-operand built-in
3662         functions.
3663         (builtin_function_type): Remove fatal_error assertion that is no
3664         longer valid.
3665         (rs6000_common_init_builtins): Add support for no-operand built-in
3666         functions.
3667         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
3668         definition.
3669         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
3670         definition.
3671         (RS6000_BTM_64BIT): New macro definition.
3672         * doc/extend.texi: Document __builtin_darn (void),
3673         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
3674         functions.
3675
3676 2016-06-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
3677
3678         Back port from trunk
3679         2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3680
3681         PR target/71201
3682         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
3683         ISA 3.0 xxperm fusion alternative.
3684         (altivec_vperm_v8hiv16qi): Likewise.
3685         (altivec_vperm_<mode>_uns_internal): Likewise.
3686         (vperm_v8hiv4si): Likewise.
3687         (vperm_v16qiv8hi): Likewise.
3688
3689         Back port from trunk
3690         2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3691                     Kelvin Nilsen  <kelvin@gcc.gnu.org>
3692
3693         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
3694         vpermr/xxpermr on ISA 3.0.
3695         (altivec_expand_vec_perm_le): Likewise.
3696         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
3697         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
3698         ISA 3.0.
3699
3700         Back port from trunk
3701         2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3702
3703         * config/rs6000/altivec.md (VParity): New mode iterator for vector
3704         parity built-in functions.
3705         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
3706         zeros.
3707         (p9v_parity<mode>2): Likewise.
3708         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
3709         parity.
3710         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
3711         (parity<mode>2): ISA 3.0 expander for vector parity.
3712         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
3713         power9 built-ins.
3714         (BU_P9_64BIT_MISC_0): Likewise.
3715         (BU_P9_MISC_0): Likewise.
3716         (BU_P9V_AV_1): Likewise.
3717         (BU_P9V_AV_2): Likewise.
3718         (BU_P9V_AV_3): Likewise.
3719         (BU_P9V_AV_P): Likewise.
3720         (BU_P9V_VSX_1): Likewise.
3721         (BU_P9V_OVERLOAD_1): Likewise.
3722         (BU_P9V_OVERLOAD_2): Likewise.
3723         (BU_P9V_OVERLOAD_3): Likewise.
3724         (VCTZB): Add vector count trailing zeros support.
3725         (VCTZH): Likewise.
3726         (VCTZW): Likewise.
3727         (VCTZD): Likewise.
3728         (VPRTYBD): Add vector parity support.
3729         (VPRTYBQ): Likewise.
3730         (VPRTYBW): Likewise.
3731         (VCTZ): Add overloaded vector count trailing zeros support.
3732         (VPRTYB): Add overloaded vector parity support.
3733         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3734         overloaded vector count trailing zeros and parity instructions.
3735         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
3736         vector parity support.
3737         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
3738         trailing zeros support.
3739         (vec_cntlz): Likewise.
3740         (vec_vctzb): Likewise.
3741         (vec_vctzd): Likewise.
3742         (vec_vctzh): Likewise.
3743         (vec_vctzw): Likewise.
3744         (vec_vprtyb): Add ISA 3.0 vector parity support.
3745         (vec_vprtybd): Likewise.
3746         (vec_vprtybw): Likewise.
3747         (vec_vprtybq): Likewise.
3748         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3749         the ISA 3.0 vector count trailing zeros and vector parity built-in
3750         functions.
3751
3752         Back port from trunk
3753         2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3754
3755         * config/rs6000/altivec.md (VNEG iterator): New iterator for
3756         VNEGW/VNEGD instructions.
3757         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
3758         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
3759         support for ISA 3.0 VNEGW/VNEGD instructions.
3760
3761         Back port from trunk
3762         2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3763
3764         * config/rs6000/predicates.md (quad_memory_operand): Move most of
3765         the code into quad_address_p and call it to share code with
3766         vsx_quad_dform_memory_operand.
3767         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
3768         d-form support.
3769         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
3770         bit instead of being a separate word.  Split -mpower9-dform into
3771         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
3772         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
3773         for the register class supporting 128-bit quad word memory offsets.
3774         (mode_supports_vsx_dform_quad): Helper function to return if the
3775         register class uses quad word memory offsets.
3776         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
3777         (rs6000_debug_reg_global): Always print if we are using LRA or not.
3778         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
3779         instructions are enabled, set up the appropriate addr_masks for
3780         128-bit types.
3781         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
3782         -mpower9-dform-scalar, instead of -mpower9-dform.
3783         (rs6000_option_override_internal): Split -mpower9-dform into two
3784         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
3785         -mpower9-dform switch sets or clears both.  If we are not using
3786         the LRA register allocator, do not enable -mpower9-dform-vector by
3787         default.  If we are using LRA, enable -mpower9-dform-vector and
3788         -mvsx-timode if it is appropriate.  Issue a warning if either
3789         -mpower9-dform-vector or -mvsx-timode are explicitly used without
3790         enabling LRA.
3791         (quad_address_offset_p): New helper function to return if the
3792         offset is legal for quad word memory instructions.
3793         (quad_address_p): New function to determin if GPR or vector
3794         register quad word memory addresses are legal.
3795         (mem_operand_gpr): Validate quad word address offsets.
3796         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
3797         d-form (register + offset) instructions.
3798         (offsettable_ok_by_alignment): Likewise.
3799         (rs6000_legitimate_offset_address_p): Likewise.
3800         (legitimate_lo_sum_address_p): Likewise.
3801         (rs6000_legitimize_address): Likewise.
3802         (rs6000_legitimize_reload_address): Add more debug statements for
3803         -mdebug=addr.
3804         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
3805         d-form instructions.
3806         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
3807         d-form instructions.  Distinguish different cases in debug
3808         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
3809         d-form instructions.
3810         (rs6000_preferred_reload_class): Likewise.
3811         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
3812         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
3813         of the ISA 2.06 indexed memory instructions.
3814         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
3815         use them to save/restore the saved vector registers instead of
3816         using Altivec instructions.
3817         (rs6000_emit_epilogue): Likewise.
3818         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
3819         (rs6000_opt_masks): Split -mpower9-dform into
3820         -mpower9-dform-scalar and -mpower9-dform-vector.
3821         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
3822         was not selected.
3823         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
3824         ISA 3.0 vector indexed memory instructions, and fold the code into
3825         the normal mov<mode> patterns.
3826         (p9_vecstore_<mode>): Likewise.
3827         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
3828         instructions.
3829         (vsx_movti_64bit): Likewise.
3830         (vsx_movti_32bit): Likewise.
3831         * config/rs6000/constraints.md (wO constraint): New constraint for
3832         ISA 3.0 vector d-form support.
3833         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
3834         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
3835         include -mpower9-dform-vector until we switch over to LRA.
3836         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
3837         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
3838         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
3839         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
3840         for -mpower9-dform and -mlra.
3841         * doc/md.texi (wO constraint): Document wO constraint.
3842
3843 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3844
3845         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
3846         the factor for live Phi nodes.
3847
3848 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
3849
3850         PR middle-end/71371
3851         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
3852         around creation of the temporary.
3853
3854 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3855
3856         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
3857         into account live statements for mask producers.
3858
3859 2016-05-31  Richard Biener  <rguenther@suse.de>
3860
3861         Backport from mainline
3862         2016-05-11  Richard Biener  <rguenther@suse.de>
3863
3864         PR debug/71057
3865         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
3866         (dwarf2out_finish): Move retry_incomplete_types call ...
3867         (dwarf2out_early_finish): ... here.
3868
3869 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3870
3871         PR target/71056
3872         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
3873         NULL_TREE early if NEON is not available.  Remove now redundant check
3874         in ARM_CHECK_BUILTIN_MODE.
3875
3876 2016-05-31  Tom de Vries  <tom@codesourcery.com>
3877
3878         backport:
3879         2016-05-31  Tom de Vries  <tom@codesourcery.com>
3880
3881         PR tree-optimization/69068
3882         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
3883         phis with more than two args.
3884
3885 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
3886
3887         Backport from mainline
3888         2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
3889
3890         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
3891         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
3892         target.
3893
3894 2016-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3895
3896         Backport from mainline
3897         2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3898
3899         * config/rs6000/altivec.h: Change definitions of vec_xl and
3900         vec_xst.
3901         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
3902         (LD_ELEMREV_V2DI): New.
3903         (LD_ELEMREV_V4SF): New.
3904         (LD_ELEMREV_V4SI): New.
3905         (LD_ELEMREV_V8HI): New.
3906         (LD_ELEMREV_V16QI): New.
3907         (ST_ELEMREV_V2DF): New.
3908         (ST_ELEMREV_V2DI): New.
3909         (ST_ELEMREV_V4SF): New.
3910         (ST_ELEMREV_V4SI): New.
3911         (ST_ELEMREV_V8HI): New.
3912         (ST_ELEMREV_V16QI): New.
3913         (XL): New.
3914         (XST): New.
3915         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3916         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
3917         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
3918         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
3919         (altivec_expand_builtin): Add handling for
3920         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
3921         (rs6000_invalid_builtin): Add error-checking for
3922         RS6000_BTM_P9_VECTOR.
3923         (altivec_init_builtins): Define builtins used to implement vec_xl
3924         and vec_xst.
3925         (rs6000_builtin_mask_names): Define power9-vector.
3926         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
3927         (RS6000_BTM_P9_VECTOR): Define.
3928         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
3929         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
3930         (vsx_ld_elemrev_v2df): Likewise.
3931         (vsx_ld_elemrev_v4sf): Likewise.
3932         (vsx_ld_elemrev_v4si): Likewise.
3933         (vsx_ld_elemrev_v8hi): Likewise.
3934         (vsx_ld_elemrev_v16qi): Likewise.
3935         (vsx_st_elemrev_v2df): Likewise.
3936         (vsx_st_elemrev_v2di): Likewise.
3937         (vsx_st_elemrev_v4sf): Likewise.
3938         (vsx_st_elemrev_v4si): Likewise.
3939         (vsx_st_elemrev_v8hi): Likewise.
3940         (vsx_st_elemrev_v16qi): Likewise.
3941         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
3942         grammar.
3943
3944 2016-05-30  Richard Biener  <rguenther@suse.de>
3945
3946         Backport from mainline
3947         2016-05-11  Richard Biener  <rguenther@suse.de>
3948
3949         PR middle-end/71002
3950         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
3951         if the langhook insists on it.
3952         * fold-const.c (make_bit_field_ref): Add arg for the original
3953         reference and preserve its alias-set.
3954         (decode_field_reference): Take exp by reference and adjust it
3955         to the original memory reference.
3956         (optimize_bit_field_compare): Adjust callers.
3957         (fold_truth_andor_1): Likewise.
3958
3959         2016-05-13  Jakub Jelinek  <jakub@redhat.com>
3960
3961         PR bootstrap/71071
3962         * fold-const.c (fold_checksum_tree): Allow modification
3963         of TYPE_ALIAS_SET during folding.
3964
3965 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
3966
3967         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
3968         (visium_expand_copysign): Use gen_int_mode directly.
3969         (visium_compute_frame_size): Minor tweaks.
3970
3971 2016-05-30  Tom de Vries  <tom@codesourcery.com>
3972
3973         backport:
3974         2016-05-30  Tom de Vries  <tom@codesourcery.com>
3975
3976         PR tree-optimization/69067
3977         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
3978
3979 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
3980
3981         * config/visium/visium-protos.h (split_double_move): Rename into...
3982         (visium_split_double_move): ...this.
3983         (visium_split_double_add): Declare.
3984         * config/visium/visium.c (split_double_move): Rename into...
3985         (visium_split_double_move): ...this.
3986         (visium_split_double_add): New function.
3987         (visium_expand_copysign): Renumber operands for consistency.
3988         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
3989         (DFmode move splitter): Likewise.
3990         (*addi3_insn): Split by means of visium_split_double_add.
3991         (*adddi3_insn_flags): Delete.
3992         (*plus_plus_sltu<subst_arith>): New insn.
3993         (*subdi3_insn): Split by means of visium_split_double_add.
3994         (subdi3_insn_flags): Delete.
3995         (*minus_minus_sltu<subst_arith>): New insn.
3996         (*negdi2_insn): Split by means of visium_split_double_add.
3997         (*negdi2_insn_flags): Delete.
3998
3999 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
4000
4001         Backport from mainline r236810.
4002         2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
4003
4004         PR middle-end/71279
4005         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
4006         into comparison.
4007
4008 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4009
4010         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
4011         redundant test and bail out if the type of the new operand is not
4012         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
4013
4014 2016-05-24  Martin Sebor  <msebor@redhat.com>
4015
4016         PR c++/71147
4017         * tree.h (complete_or_array_type_p): New inline function.
4018
4019 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
4020
4021         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
4022         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
4023         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.  Use SSE_REGS instead
4024         of ALL_SSE_REGS.  Return SSE_REGS also when TARGET_AVX.
4025
4026 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
4027
4028         PR c++/71257
4029         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
4030         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
4031         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
4032         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
4033         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
4034
4035 2016-05-23  Martin Jambor  <mjambor@suse.cz>
4036
4037         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
4038         default block if a PHI node in the original one would be resized.
4039
4040 2016-05-23  Martin Jambor  <mjambor@suse.cz>
4041
4042         PR tree-optimization/70884
4043         * tree-sra.c (initialize_constant_pool_replacements): Do not check
4044         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
4045         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
4046         of constant pool data as a reason for scalarization.
4047
4048 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
4049
4050         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
4051         for naked functions.
4052         (thumb1_expand_prologue): Likewise.
4053
4054 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
4055
4056         PR c++/71210
4057         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
4058         calls if the LHS is variable length or has addressable type.
4059         If targets[0]->decl is a noreturn call with void return type and
4060         zero arguments, adjust fntype and remove lhs in that case.
4061
4062 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
4063
4064         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
4065         force pending loads from memory.
4066
4067 2016-05-19  Marek Polacek  <polacek@redhat.com>
4068
4069         Backport from mainline
4070         2016-05-19  Marek Polacek  <polacek@redhat.com>
4071
4072         PR tree-optimization/71031
4073         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
4074         condition and adjust the code a bit.
4075
4076 2016-05-19  Martin Jambor  <mjambor@suse.cz>
4077
4078         PR ipa/70646
4079         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
4080         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
4081
4082 2016-05-19  Martin Jambor  <mjambor@suse.cz>
4083
4084         PR ipa/70646
4085         * ipa-inline.h (condition): New field size.
4086         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
4087         for comaprison and store it into the new condition.
4088         (evaluate_conditions_for_known_args): Use condition size to check
4089         access sizes for all but CHANGED conditions.
4090         (unmodified_parm_1): New parameter size_p, store access size into it.
4091         (unmodified_parm): Likewise.
4092         (unmodified_parm_or_parm_agg_item): Likewise.
4093         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
4094         (set_cond_stmt_execution_predicate): Extract access sizes and store
4095         them to conditions.
4096         (set_switch_stmt_execution_predicate): Likewise.
4097         (will_be_nonconstant_expr_predicate): Likewise.
4098         (will_be_nonconstant_predicate): Likewise.
4099         (inline_read_section): Stream condition size.
4100         (inline_write_summary): Likewise.
4101         * lto-streamer.h (LTO_minor_version): Bump.
4102
4103 2016-05-18  Martin Liska  <mliska@suse.cz>
4104
4105         Backport from mainline
4106         2016-05-18  Martin Liska  <mliska@suse.cz>
4107
4108         PR fortran/70856
4109         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
4110         merged variables.
4111
4112 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
4113
4114         PR c++/71100
4115         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
4116         lhs if it has TREE_ADDRESSABLE type.
4117
4118 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
4119
4120         PR target/71145
4121         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
4122         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
4123
4124 2016-05-17  Thomas Schwinge  <thomas@codesourcery.com>
4125
4126         Backport trunk r235748:
4127         PR target/70860
4128         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
4129         (nvptx_function_value): Assert non-NULL cfun.
4130
4131 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4132
4133         Backport from mainline
4134         2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4135
4136         PR target/70809
4137         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
4138
4139 2016-05-16  Martin Jambor  <mjambor@suse.cz>
4140
4141         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
4142         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
4143
4144 2016-05-16  Martin Jambor  <mjambor@suse.cz>
4145
4146         PR hsa/70857
4147         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
4148         the outlined kernel function.
4149
4150 2016-05-16  James Norris  <jnorris@codesourcery.com>
4151
4152         Backport from mainline r236098.
4153         2016-05-10  James Norris  <jnorris@codesourcery.com>
4154
4155         PR driver/68463
4156         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
4157         if offloading is enabled and -fopenacc or -fopenmp is specified.
4158         (CRTOFFLOADEND): Likewise.
4159         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
4160         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
4161
4162 2016-05-16  Alan Modra  <amodra@gmail.com>
4163
4164         Apply from mainline
4165         2016-05-10  Alan Modra  <amodra@gmail.com>
4166         PR target/70947
4167         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
4168         regrename modifying insns saving lr before __morestack call.
4169         * config/rs6000/rs6000.md (split_stack_return): Similarly for
4170         insns restoring lr after __morestack call.
4171
4172 2016-05-13  Richard Biener  <rguenther@suse.de>
4173
4174         Backport from mainline
4175         2016-04-27  Richard Biener  <rguenther@suse.de>
4176
4177         PR ipa/70760
4178         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
4179         aggregate_value_p to determine if a function result is
4180         returned by reference.
4181
4182         2016-05-06  Richard Biener  <rguenther@suse.de>
4183
4184         PR middle-end/70931
4185         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
4186
4187         2016-05-06  Richard Biener  <rguenther@suse.de>
4188
4189         PR middle-end/70941
4190         * fold-const.c (split_tree): Always convert to the original type
4191         before negating.
4192
4193 2016-05-12  Martin Liska  <mliska@suse.cz>
4194
4195         Backport from mainline
4196         2016-05-10  Martin Liska  <mliska@suse.cz>
4197
4198         * tree-inline.c (remap_dependence_clique): Do not remap
4199         debugging statements.
4200
4201 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
4202
4203         Backport from mainline r236171.
4204         2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
4205
4206         PR tree-optimization/71006
4207         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4208         consider COND_EXPR as a mask producer.
4209
4210 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4211
4212         Backport from mainline
4213         2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4214
4215         PR target/70830
4216         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
4217         when popping the PC and within an interrupt handler routine.
4218         Add missing tab to output of "ldmfd".
4219         (output_return_instruction): Output LDMFD with SP update rather
4220         than POP when returning from interrupt handler.
4221
4222 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
4223
4224         Backport from mainline r236088.
4225         2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4226
4227         PR middle-end/70877
4228         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
4229         calls with type casted fndecl.
4230
4231 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
4232
4233         Backport from mainline r236086.
4234         2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4235
4236         PR tree-optimization/70876
4237         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
4238         * gcc/calls.c (initialize_argument_information): Bind bounds
4239         with corresponding args passed by reference.
4240
4241 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4242
4243         Backport from mainline
4244         2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4245
4246         PR target/70963
4247         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
4248         code for a zero scale factor.
4249         (vsx_xvcvdpuxds_scale): Likewise.
4250
4251 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
4252
4253         Backported from mainline
4254         2016-05-03  Jakub Jelinek  <jakub@redhat.com>
4255
4256         PR tree-optimization/70916
4257         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
4258         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
4259
4260 2016-05-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
4261
4262         Backport from mainline r235962.
4263         2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
4264
4265         PR debug/70935
4266         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
4267         loop latch destination.
4268
4269 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4270
4271         Backport from mainline
4272         2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4273
4274         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
4275         ("*fixuns_truncdfdi2_z13")
4276         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
4277         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
4278         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
4279
4280 2016-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4281
4282         Backport from mainline
4283         2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4284
4285         * config/rtems.h (LIB_SPEC): Add -latomic.
4286
4287 2016-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4288
4289         Backport from mainline
4290         2016-04-27  Joel Sherrill  <joel@rtems.org>
4291
4292         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
4293         xilink.ld and flags not relevant to RTEMS.
4294
4295 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
4296
4297         * config/i386/i386.md (absneg splitters with general regs): Use
4298         general_reg_operand predicate.
4299         (btsq peephole2): Use x86_64_immediate_operand to check if new
4300         value is suitable for immediate operand.  Generate emitted insn
4301         using RTL expressions.
4302         (btcq peephole2): Ditto.
4303         (btrq peephole2): Ditto.  Generate correct immediate operand
4304         for AND masking.
4305
4306 2016-05-07  Tom de Vries  <tom@codesourcery.com>
4307
4308         backport:
4309         2016-05-07  Tom de Vries  <tom@codesourcery.com>
4310
4311         PR tree-optimization/70956
4312         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
4313         def.
4314
4315 2016-05-06  Marek Polacek  <polacek@redhat.com>
4316
4317         Backported from mainline
4318         2016-05-06  Marek Polacek  <polacek@redhat.com>
4319
4320         PR sanitizer/70875
4321         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
4322
4323 2016-05-06  Marek Polacek  <polacek@redhat.com>
4324
4325         Backported from mainline
4326         2016-04-29  Marek Polacek  <polacek@redhat.com>
4327                     Jakub Jelinek  <jakub@redhat.com>
4328
4329         PR sanitizer/70342
4330         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
4331         TARGET_EXPR_SLOT as a base.
4332
4333 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
4334
4335         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
4336         comment.
4337         (compute_samebase_partition_bases): Fix typo.
4338
4339 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
4340
4341         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
4342         occurence with frame_offset_ ones.
4343
4344 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
4345
4346         PR target/70858
4347         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
4348         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
4349         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
4350         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
4351         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
4352
4353 2016-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4354
4355         Backport from mainline
4356         2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
4357
4358         PR ada/70759
4359         * stor-layout.h (internal_reference_types): Delete.
4360         * stor-layout.c (reference_types_internal): Likewise.
4361         (internal_reference_types): Likewise.
4362         (layout_type) <REFERENCE_TYPE>: Adjust.
4363
4364 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4365
4366         Backport from mainline
4367         2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4368
4369         * config/rs6000/rs6000-builtin.def: Correct pasto error for
4370         stxvd2x and stxvw4x built-in functions.
4371
4372 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
4373
4374         Backported from mainline
4375         2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
4376
4377         PR target/70750
4378         * config/i386/predicates.md (call_insn_operand): Replace
4379         sibcall_memory_operand with memory_operand.
4380
4381 2016-04-27  Richard Biener  <rguenther@suse.de>
4382
4383         PR ipa/70785
4384         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
4385         function cummulating used_from_other_partition, externally_visible
4386         and force_output from aliases.
4387         (refered_from_nonlocal_var): Likewise.
4388         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
4389         node flags properly.
4390
4391 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
4392
4393         Backported from mainline
4394         2016-04-23  Jakub Jelinek  <jakub@redhat.com>
4395
4396         PR sanitizer/70712
4397         * cfgexpand.c (expand_stack_vars): Fix typo.
4398
4399         2016-04-19  Jakub Jelinek  <jakub@redhat.com>
4400
4401         PR middle-end/70680
4402         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
4403         implicitly linear or lastprivate iterator on the outer context.
4404
4405 2016-04-27  Kirill Yukhin  <kirill.yukhin@intel.com>
4406
4407         PR target/70728
4408         * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
4409         Extract AVX-512BW constraint from AVX.
4410
4411 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
4412
4413         * BASE-VER: Set to 6.1.1.
4414
4415 2016-04-27  Release Manager
4416
4417         * GCC 6.1.0 released.
4418
4419 2016-04-25  Richard Biener  <rguenther@suse.de>
4420
4421         PR tree-optimization/70780
4422         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
4423         wasn't visited yet.
4424         (compute_antic): Mark blocks with abnormal preds as visited as
4425         they have a final empty antic-in solution already.
4426
4427 2016-04-22  H.J. Lu  <hongjiu.lu@intel.com>
4428
4429         Backport from mainline
4430         2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
4431
4432         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
4433
4434 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4435
4436         * system.h (list, map, set, vector): Include conditionally.
4437         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
4438         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
4439         * ipa-icf.c (INCLUDE_LIST): Define.
4440         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
4441         * config/sh/sh.c (INCLUDE_VECTOR): Define.
4442         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
4443         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
4444         * cp/logic.cc (INCLUDE_LIST): Define.
4445         * fortran/trans-common.c (INCLUDE_MAP): Define.
4446
4447 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4448
4449         * auto-profile.c: Remove <string.h> include.
4450         * ipa-icf-gimple.c: Remove <list> include.
4451         * diagnostic.c: Remove <new> include.
4452         * genmatch.c: Likewise.
4453         * pretty-print.c: Likewise.
4454         * toplev.c: Likewise
4455         * c/c-objc-common.c: Likewise.
4456         * cp/error.c: Likewise.
4457         * fortran/error.c: Likewise.
4458
4459 2016-04-21  Richard Biener  <rguenther@suse.de>
4460
4461         PR middle-end/70747
4462         * fold-const.c (fold_comparison): Return properly typed
4463         constant boolean.
4464
4465 2016-04-20  Andrew Pinski  <apinski@cavium.com>
4466             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4467
4468         PR target/64971
4469         * config/aarch64/aarch64.md (sibcall): Force call
4470         address to be DImode for ILP32.
4471         (sibcall_value): Likewise.
4472
4473 2016-04-20  Marek Polacek  <polacek@redhat.com>
4474
4475         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
4476         rather than true.
4477
4478 2016-04-20  Marek Polacek  <polacek@redhat.com>
4479
4480         PR tree-optimization/70725
4481         * tree-if-conv.c (is_false_predicate): New function.
4482         (predicate_mem_writes): Use it.
4483
4484 2016-04-20  Richard Biener  <rguenther@suse.de>
4485
4486         PR tree-optimization/70726
4487         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
4488         shift amounts from a pattern stmt operand.
4489
4490 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4491
4492         PR target/70674
4493         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
4494         stack_restore_from_fpr pattern when restoring r15.
4495         (s390_optimize_prologue): Strip away the memory barrier in the
4496         parallel when trying to get rid of restore insns.
4497         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
4498         definition for loading the stack pointer from an FPR.  Compared to
4499         the normal move insn this pattern includes a full memory barrier.
4500
4501 2016-04-19  Richard Biener  <rguenther@suse.de>
4502
4503         PR tree-optimization/70724
4504         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
4505         restoring out from ...
4506         (free_scc_vn): ... here.
4507         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
4508         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
4509         tail merging.
4510         (pass_fre::execute): Restore SSA info.
4511
4512 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4513
4514         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
4515         gld requirements.
4516         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc
4517         versions.
4518         Mention Solaris 11 packaging changes.
4519         Update gas and gld requirements.
4520         Remove reference to pre-Solaris 10 bug.
4521         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
4522         systems and bugs.
4523         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
4524         with cc.
4525
4526 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
4527
4528         PR target/70711
4529         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
4530         armv8.1-a and armv8.1-a+crc.
4531
4532 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
4533
4534         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
4535         unless compiling with at least GCC-4.8.
4536
4537 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
4538
4539         PR target/70662
4540         * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode><mask_name>"):
4541         Fix mode size check.
4542
4543 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
4544
4545         * BASE-VER: Set to 6.0.1.
4546         * DEV-PHASE: Set to prerelease.
4547
4548 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
4549
4550         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
4551
4552 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4553
4554         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
4555         architecture revisions.
4556
4557 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
4558
4559         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
4560         * config/i386/i386.c (ix86_using_red_zone): No longer static.
4561         * config/i386/i386.md (stack decrement to push peepholes): Guard
4562         with !x86_using_red_zone ().
4563
4564 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
4565
4566         PR c++/70675
4567         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
4568         to dump_generic_node.
4569         (NIY): Pass also flags to do_niy.
4570
4571 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
4572
4573         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
4574         (simd_clone_vector_of_formal_parm_types)
4575         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
4576         (simd_clone_mangle, simd_clone_create)
4577         (simd_clone_adjust_return_type, create_tmp_simd_array)
4578         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
4579         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
4580         (ipa_simd_modify_function_body, simd_clone_linear_addend)
4581         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
4582         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
4583         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move
4584         into...
4585         * omp-simd-clone.c: ... this new file.
4586         (simd_clone_vector_of_formal_parm_types): Make it static.
4587         * Makefile.in (OBJS): Add omp-simd-clone.o.
4588
4589 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
4590
4591         PR target/70662
4592         * config/i386/sse.md: Use proper memory operand
4593         modifiers.
4594
4595
4596 2016-04-15  Richard Biener  <rguenther@suse.de>
4597         Alan Modra  <amodra@gmail.com>
4598
4599         PR tree-optimization/70130
4600         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
4601         when alignment stays not the same and no not use the realign
4602         scheme then.
4603
4604 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4605
4606         PR target/70669
4607         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
4608         direct move handlers for KFmode. Change TFmode handlers test from
4609         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
4610
4611 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
4612
4613         PR c++/70594
4614         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
4615         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
4616         (inlined_polymorphic_ctor_dtor_block_p): Use it.
4617         * tree-ssa-live.c (remove_unused_scope_block_p): When
4618         in_ctor_dtor_block, avoid discarding not just BLOCKs with
4619         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
4620         block_ultimate_origin is FUNCTION_DECL.
4621         (remove_unused_locals): If current_function_decl is
4622         polymorphic_ctor_dtor_p, pass initial true to
4623         remove_unused_scope_block_p' is_ctor_dtor_block.
4624
4625 2016-04-14  Martin Sebor  <msebor@redhat.com>
4626
4627         PR c++/69517
4628         PR c++/70019
4629         PR c++/70588
4630         * doc/extend.texi (Variable Length): Revert.
4631
4632 2016-04-14  Marek Polacek  <polacek@redhat.com>
4633             Jan Hubicka  <hubicka@ucw.cz>
4634
4635         PR c++/70029
4636         * tree.c (verify_type): Disable the canonical type of main variant
4637         check.
4638
4639 2016-04-14  Jason Merrill  <jason@redhat.com>
4640
4641         * cfgexpand.c, expr.c: Revert previous change.
4642
4643 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
4644
4645         PR middle-end/70643
4646         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
4647         when building a mem ref for the incoming reduction variable.
4648
4649 2016-04-14  Richard Biener  <rguenther@suse.de>
4650
4651         PR tree-optimization/70614
4652         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
4653         loop if the evolution dropped to chrec_dont_know.
4654         (interpret_condition_phi): Likewise.
4655
4656 2016-04-14  Richard Biener  <rguenther@suse.de>
4657
4658         PR tree-optimization/70623
4659         * tree-ssa-pre.c (changed_blocks): Make global ...
4660         (compute_antic): ... local here.  Move and fix worklist
4661         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
4662         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
4663         worklist handling, dump when ANTIC_IN changed.
4664         (compute_partial_antic_aux): Remove worklist handling.
4665         (init_pre): Do not compute post dominators.  Add a comment about
4666         the CFG order chosen.
4667         (fini_pre): Do not free post dominators.
4668
4669 2016-04-13  Martin Sebor  <msebor@redhat.com>
4670
4671         PR c++/69517
4672         PR c++/70019
4673         PR c++/70588
4674         * doc/extend.texi (Variable Length): Document C++ specifics.
4675
4676 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
4677
4678         PR c++/70641
4679         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
4680         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
4681         eh edges have been purged.
4682
4683         PR c++/70594
4684         * tree-sra.c (create_access_replacement,
4685         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
4686         gets fancy name.
4687         * tree-pretty-print.c (dump_fancy_name): New function.
4688         (dump_decl_name, dump_generic_node): Use it.
4689
4690 2016-04-13  Jason Merrill  <jason@redhat.com>
4691
4692         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
4693         * expr.c (expand_expr_real_1): Likewise.
4694
4695 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
4696
4697         * config/i386/i386.md (kunpckhi): Swap operands.
4698         (kunpcksi): Likewise.
4699         (kunpckdi): Likewise.
4700         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
4701         (vec_pack_trunc_<mode>): Likewise.
4702
4703 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
4704
4705         PR debug/70628
4706         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
4707
4708         PR middle-end/70633
4709         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
4710         gimplification turns some element into non-constant.
4711
4712         PR debug/70628
4713         * rtl.h (convert_memory_address_addr_space_1): New prototype.
4714         * explow.c (convert_memory_address_addr_space_1): No longer static,
4715         add NO_EMIT argument and don't call convert_modes if true, pass
4716         it down recursively, remove break after return.
4717         (convert_memory_address_addr_space): Adjust caller.
4718         * simplify-rtx.c (simplify_unary_operation_1): Call
4719         convert_memory_address_addr_space_1 instead of convert_memory_address,
4720         if it returns NULL, don't simplify.
4721
4722 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
4723
4724         PR target/70630
4725         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
4726
4727 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
4728
4729         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4730         Bump the upper SIMDLEN limits, so that if the return type or
4731         characteristic type if the return type is void can be passed in
4732         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
4733         allowed.
4734
4735 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4736
4737         PR target/70640
4738         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
4739         Do not use "=" constraint on an input constraint.
4740         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
4741         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
4742         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
4743         generates (neg (abs ...)) instead of (abs ...).
4744
4745 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
4746
4747         PR rtl-optimization/70596
4748         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
4749         just invalidate LRA data and reset them.  Adjust dump wording.
4750
4751 2016-04-12  Martin Liska  <mliska@suse.cz>
4752
4753         Revert
4754         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
4755
4756         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
4757         estimates here.
4758         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
4759         max_loop_iterations_int.
4760         (tree_unswitch_outer_loop): Likewise.
4761         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4762         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4763
4764 2016-04-12  Tom de Vries  <tom@codesourcery.com>
4765
4766         PR tree-optimization/68756
4767         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
4768         instead of new_name.
4769
4770 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
4771
4772         PR tree-optimization/70602
4773         * tree-sra.c (generate_subtree_copies): Don't write anything into
4774         constant pool decls.
4775
4776         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
4777         regardless whether there are depend clauses or not.
4778
4779 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
4780
4781         PR target/70381
4782         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
4783         target attribute and pragma from changing the -mfloat128
4784         and -mfloat128-hardware options.
4785
4786         * doc/extend.texi (Additional Floating Types): Document PowerPC
4787         __float128 restrictions.
4788
4789 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
4790
4791         PR target/70133
4792         * config/aarch64/driver-aarch64.c
4793         (aarch64_get_extension_string_for_isa_flags): New.
4794         (arch_extension): Rename to...
4795         (aarch64_arch_extension): ...This.
4796         (ext_to_feat_string): Rename to...
4797         (aarch64_extensions): ...This.
4798         (aarch64_core_data): Keep track of architecture extension flags.
4799         (cpu_data): Rename to...
4800         (aarch64_cpu_data): ...This.
4801         (aarch64_arch_driver_info): Keep track of architecture extension
4802         flags.
4803         (get_arch_name_from_id): Rename to...
4804         (get_arch_from_id): ...This, change return type.
4805         (host_detect_local_cpu): Update and reformat for renames, handle
4806         extensions through common infrastructure.
4807
4808 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
4809
4810         PR target/70133
4811         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
4812         track of a canonical flag name.
4813         (all_extensions): Likewise.
4814         (arch_to_arch_name): Also track extension flags enabled by the arch.
4815         (all_architectures): Likewise.
4816         (aarch64_parse_extension): Move to here.
4817         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
4818         rework.
4819         (aarch64_rewrite_selected_cpu): Update for above change.
4820         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
4821         are handled, such that the single explicit value enabled by an
4822         extension is kept seperate from the implicit values it also enables.
4823         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
4824         to here.
4825         (aarch64_parse_extension): New.
4826         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
4827         here to config/aarch64/aarch64-protos.h.
4828         (aarch64_parse_extension): Move from here to
4829         common/config/aarch64/aarch64-common.c.
4830         (aarch64_option_print): Update.
4831         (aarch64_declare_function_name): Likewise.
4832         (aarch64_start_file): Likewise.
4833         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
4834         the canonical flag for extensions.
4835         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
4836         flags.
4837
4838 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
4839
4840         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
4841         AARCH64_FL_CRC.
4842
4843 2016-04-09  Tom de Vries  <tom@codesourcery.com>
4844
4845         PR tree-optimization/68953
4846         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
4847         first to last subscript.
4848
4849 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
4850
4851         PR tree-optimization/70586
4852         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
4853         for any calls.
4854
4855 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
4856
4857         PR lto/70289
4858         PR ipa/70348
4859         PR tree-optimization/70373
4860         PR middle-end/70533
4861         PR middle-end/70534
4862         PR middle-end/70535
4863         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
4864         clauses for acc parallel reductions as necessary.  Error on those
4865         that are private.
4866         * omp-low.c (scan_sharing_clauses): Don't install variables which
4867         are used in acc parallel reductions.
4868         (lower_rec_input_clauses): Remove dead code.
4869         (lower_oacc_reductions): Add support for reference reductions.
4870         (lower_reduction_clauses): Remove dead code.
4871         (lower_omp_target): Don't remap variables appearing in acc parallel
4872         reductions.
4873         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
4874
4875 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
4876
4877         PR middle-end/70593
4878         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
4879         with multiple SSA_NAME defs, force the outputs other than first
4880         to be live before calling live_track_process_def on each output.
4881
4882         PR rtl-optimization/70574
4883         * fwprop.c (forward_propagate_and_simplify): Don't add
4884         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
4885         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
4886         paradoxical subregs within *loc.
4887
4888 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
4889
4890         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
4891         -ftree-parallelize-loops={0,1}.
4892         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
4893         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
4894         * config/ia64/hpux.h (LIB_SPEC): Likewise.
4895         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4896         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4897
4898 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
4899
4900         PR sanitizer/70541
4901         * asan.c (instrument_derefs): If we get unknown location, extract it
4902         with EXPR_LOCATION.
4903         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
4904
4905 2016-04-08  Tom de Vries  <tom@codesourcery.com>
4906
4907         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
4908         implicit firstprivate clause.
4909
4910 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4911
4912         PR target/70566
4913         * config/arm/thumb2.md (tst + branch-> lsls + branch
4914         peephole below *orsi_not_shiftsi_si): Require that condition
4915         register is dead after the peephole.
4916         (second peephole after the above): Likewise.
4917
4918 2016-04-08  Alan Modra  <amodra@gmail.com>
4919
4920         PR target/70117
4921         * builtins.c (fold_builtin_classify): For IBM extended precision,
4922         look at just the high-order double to test for NaN.
4923         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
4924         test just the high double for Inf but both doubles for subnormal
4925         limit.
4926
4927 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
4928
4929         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
4930         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
4931         node->simdclone->mask_mode != VOIDmode masks.
4932         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
4933         earlier, use it instead of node->simdclone.
4934         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4935         Set clonei->mask_mode.
4936
4937 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
4938
4939         PR c/70436
4940         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
4941         Pass it through to cp_parser_already_scoped_statement.
4942         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
4943         it through to cp_parser_statement.
4944         (cp_parser_statement): Pass IF_P through to
4945         cp_parser_iteration_statement.
4946         (cp_parser_pragma): Adjust call to
4947         cp_parser_iteration_statement.
4948
4949 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
4950
4951         PR c/70436
4952         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
4953         resolve a future -Wparentheses warning.
4954         * omp-low.c (scan_sharing_clauses): Likewise.
4955         * tree-parloops.c (eliminate_local_variables): Likewise.
4956
4957 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
4958
4959         PR rtl-optimization/70398
4960         * lra-constraints.c (process_address_1): Check zero scale and code
4961         for reloading with zero scale.
4962
4963 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
4964
4965         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
4966         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
4967
4968 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
4969
4970         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
4971         Add support for AVX512F clones, include them by default for
4972         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
4973         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
4974         up to 128.
4975
4976         PR middle-end/70550
4977         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
4978         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
4979         firstprivate clauses.
4980         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
4981         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
4982         (lower_omp_target): Set TREE_NO_WARNING for
4983         non-addressable possibly uninitialized vars which are copied into
4984         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
4985
4986 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
4987
4988         * config/pa/predicates.md (integer_store_memory_operand): Accept
4989         REG+D operands with a large offset when reload_in_progress is true.
4990         (floating_point_store_memory_operand): Likewise.
4991
4992 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
4993
4994         PR c++/70336
4995         * match.pd (nested int casts): Limit to GIMPLE.
4996
4997 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
4998
4999         PR ipa/66223
5000         * ipa-devirt.c (maybe_record_node): Fix comment; use
5001         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
5002
5003 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
5004
5005         PR rtl-optimization/70542
5006         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
5007         if there are any uses other than insn or debug insns.
5008
5009 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
5010             Jakub Jelinek  <jakub@redhat.com>
5011
5012         PR tree-optimization/70509
5013         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
5014         Shift HOST_WIDE_INT_1U instead of 1.
5015
5016 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
5017
5018         PR tree-optimization/70509
5019         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
5020         of the vector base type for index.
5021
5022 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
5023
5024         PR target/70510
5025         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
5026
5027 2016-04-05  Richard Biener  <rguenther@suse.de>
5028
5029         PR tree-optimization/70526
5030         * tree-sra.c (build_ref_for_offset): Use prev_base to
5031         extract the alias pointer type.
5032
5033 2016-04-05  Richard Biener  <rguenther@suse.de>
5034
5035         * dse.c (struct store_info): Remove alias_set member.
5036         (struct read_info_type): Likewise.
5037         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
5038         spill_deleted, clear_alias_set_lookup): Remove.
5039         (get_group_info): Remove dead base == NULL_RTX case.
5040         (dse_step0): Remove initialization of removed variables.
5041         (delete_dead_store_insn): Reomve alias set dumping.
5042         (free_read_records): Remove alias_set handling.
5043         (canon_address): Remove alias_set_out parameter.
5044         (record_store): Remove spill_alias_set, it's always zero.
5045         (check_mem_read_rtx): Likewise.
5046         (dse_step2): Rename from ...
5047         (dse_step2_nospill): ... this.  Adjust.
5048         (scan_stores): Rename from ...
5049         (scan_stores_nospill): ... this.
5050         (scan_reads): Rename from ...
5051         (scan_reads_nospill): ... this.
5052         (scan_stores_spill, scan_reads_spill): Remove.
5053         (dse_step3_scan): Remove for_spills argument which is always false.
5054         (dse_step3): Likewise.
5055         (dse_step5): Rename from ...
5056         (dse_step5_nospill): ... this.  Remove alias_set handling.
5057         (rest_of_handle_dse): Adjust.
5058
5059 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
5060
5061         PR target/70525
5062         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
5063         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
5064         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
5065         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
5066
5067 2016-04-05  Richard Biener  <rguenther@suse.de>
5068
5069         PR middle-end/70499
5070         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
5071         non-register type temporaries into SSA.
5072
5073 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
5074
5075         PR ipa/66223
5076         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
5077         calls when sanitizing.
5078         (possible_polymorphic_call_target_p): Fix formatting.
5079
5080 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5081             Jakub Jelinek <jakub@redhat.com>
5082
5083         PR middle-end/70457
5084         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
5085         to ensure a call statement is compatible with a built-in's
5086         prototype.
5087         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
5088         Likewise.
5089
5090 2016-04-04  Richard Biener  <rguenther@suse.de>
5091
5092         PR rtl-optimization/70484
5093         * rtl.h (canon_output_dependence): Declare.
5094         * alias.c (canon_output_dependence): New function.
5095         * dse.c (record_store): Use canon_output_dependence rather
5096         than canon_true_dependence.
5097
5098 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
5099
5100         PR ipa/68881
5101         * cgraph.h (symtab_node::copy_visibility_from): New function.
5102         * symtab.c (symtab_node::copy_visibility_from): New function.
5103         * ipa-visibility.c (optimize_weakref): New function.
5104         (function_and_variable_visibility): Use it.
5105
5106 2016-04-04  Martin Liska  <mliska@suse.cz>
5107
5108         PR hsa/70402
5109         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
5110         value that is really in range handled by SBR instruction.
5111         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
5112         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
5113         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
5114
5115 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
5116
5117         PR target/70416
5118         PR target/67391
5119         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
5120         set, but not for SP_REG operands.
5121
5122 2016-04-02  Martin Sebor  <msebor@redhat.com>
5123
5124         PR c++/67376
5125         * fold-const.c (maybe_nonzero_address): New function.
5126         (fold_comparison): Call it.  Fold equality and relational
5127         expressions involving null pointers.
5128         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
5129
5130 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
5131
5132         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
5133         the "Y" constraint (scalar FP 0.0 immediate).
5134
5135         * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
5136         Add the "const_double" to the list of operand constraints.
5137
5138 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
5139
5140         PR rtl-optimization/70467
5141         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
5142         If low word of the last operand is 0, just emit addition/subtraction
5143         for the high word.
5144
5145 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5146
5147         PR target/70404
5148         * config/s390/s390.c (s390_expand_insv): Check for everything
5149         constant instead of just VOIDmode stuff.
5150
5151 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5152
5153         PR target/70496
5154         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
5155
5156 2016-04-01  Nathan Sidwell  <nathan@acm.org>
5157
5158         * tree.def (TRY_CATCH_EXPR): Correct documentation.
5159
5160 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
5161
5162         PR rtl-optimization/70461
5163         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
5164         is necessary.
5165
5166 2016-03-31  Martin Liska  <mliska@suse.cz>
5167
5168         PR hsa/70399
5169         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
5170         a tree value or an immediate integer value to a buffer
5171         that is eventually copied to a BRIG section.
5172         (emit_immediate_operand): Call the function here.
5173         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
5174         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
5175         of class' fields that are removed.
5176         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
5177         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
5178         m_brig_repr_size fields.
5179
5180 2016-03-31  Martin Liska  <mliska@suse.cz>
5181
5182         PR hsa/70391
5183         * hsa-gen.c (hsa_function_representation::update_dominance): New
5184         function.
5185         (convert_addr_to_flat_segment): Likewise.
5186         (gen_hsa_memory_set): New alignment argument.
5187         (gen_hsa_ctor_assignment): Likewise.
5188         (gen_hsa_insns_for_single_assignment): Provide alignment
5189         to gen_hsa_ctor_assignment.
5190         (gen_hsa_insns_for_direct_call): Add new argument.
5191         (expand_lhs_of_string_op): New function.
5192         (expand_string_operation_builtin): Likewise.
5193         (expand_memory_copy): New function.
5194         (expand_memory_set): New function.
5195         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
5196         (convert_switch_statements): Change signature.
5197         (generate_hsa): Use a return value of the function.
5198         (pass_gen_hsail::execute): Do not call
5199         convert_switch_statements here.
5200         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
5201         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
5202         (hsa_function_representation::update_dominance): New function.
5203
5204 2016-03-31  Martin Liska  <mliska@suse.cz>
5205
5206         PR hsa/70391
5207         * hsa-brig.c (emit_directive_variable): Emit alignment
5208         according to hsa_symbol::m_align.
5209         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
5210         (dump_hsa_symbol): Dump alignment of HSA symbols.
5211         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
5212         (gen_hsa_addr_with_align): New function.
5213         (hsa_bitmemref_alignment): Use newly added function.
5214         (gen_hsa_insns_for_load): Likewise.
5215         (gen_hsa_insns_for_store): Likewise.
5216         (gen_hsa_memory_copy): New argument added.
5217         (gen_hsa_insns_for_single_assignment): Respect
5218         alignment for assignments processed via gen_hsa_memory_copy.
5219         (gen_hsa_insns_for_direct_call): Likewise.
5220         (gen_hsa_insns_for_return): Likewise.
5221         (gen_function_def_parameters): Set default alignment.
5222         * hsa.c (hsa_object_alignment): New function.
5223         (hsa_byte_alignment): Pasted function.
5224         * hsa.h (hsa_symbol::m_align): New field.
5225
5226 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
5227
5228         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
5229         scratch field for goto case.
5230
5231 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
5232
5233         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
5234
5235 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
5236
5237         PR target/70442
5238         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
5239         (scalar_chain::convert_insn): Call convert_op for reg
5240         moves to handle undefined registers.
5241
5242 2016-03-31  Nathan Sidwell  <nathan@acm.org>
5243
5244         PR c++/70393
5245         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
5246         Assert we don't want to move backwards.
5247
5248 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
5249
5250         PR target/70453
5251         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
5252
5253 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
5254
5255         PR rtl-optimization/70460
5256         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
5257         with operand from REG_LABEL_OPERAND, instead substitute
5258         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
5259         Don't do anything for REG_NON_LOCAL_GOTO jumps.
5260
5261 2016-03-31  Martin Liska  <mliska@suse.cz>
5262
5263         * passes.c (execute_one_pass): Do not call
5264         todo_after for a discarded function.
5265
5266 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
5267
5268         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
5269         (no_cost, infinite_cost): Initialize the new field.
5270         (get_computation_cost_at): Record setup cost.
5271         (determine_use_iv_cost_address): Skip cost computation for sub
5272         uses if we can estimate it without losing accuracy.
5273
5274 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
5275
5276         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
5277         estimates here.
5278         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
5279         max_loop_iterations_int.
5280         (tree_unswitch_outer_loop): Likewise.
5281         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
5282         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
5283
5284 2016-03-30  Richard Biener  <rguenther@suse.de>
5285
5286         PR middle-end/70450
5287         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
5288
5289 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
5290
5291         PR target/70421
5292         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
5293         in gen_blendm expander.
5294
5295 2016-03-30  Nick Clifton  <nickc@redhat.com>
5296
5297         PR target/62254
5298         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
5299         case where we are already provided with an SImode SUBREG.
5300
5301 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
5302
5303         PR target/70439
5304         * config/i386/i386.c (ix86_expand_epilogue): Properly check
5305         conflict between DRAP register and __builtin_eh_return.
5306
5307 2016-03-30  Michael Matz  <matz@suse.de>
5308             Richard Biener  <rguenther@suse.de>
5309
5310         PR ipa/12392
5311         * ipa-polymorphic-call.c (struct type_change_info): Change
5312         speculative to an unsigned allowing to limit the work we do.
5313         (csftc_abort_walking_p): New inline function..
5314         (check_stmt_for_type_change): Limit the number of may-defs
5315         skipped for speculative devirtualization to
5316         max-speculative-devirt-maydefs.
5317         * params.def (max-speculative-devirt-maydefs): New param.
5318         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
5319
5320 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
5321
5322         PR target/63890
5323         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
5324         and TARGET_MACHO.
5325
5326 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
5327
5328         PR tree-optimization/59124
5329         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
5330         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
5331
5332 2016-03-29  Jeff Law  <law@redhat.com>
5333
5334         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
5335
5336 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
5337
5338         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
5339         to HOST_WIDE_INT.
5340
5341 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
5342
5343         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
5344         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
5345         gcrt0.o if linking dynamically.
5346
5347 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
5348
5349         PR ipa/70283
5350         * ipa-devirt.c (methods_equal_p): New function.
5351         (compare_virtual_tables): Use it.
5352         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
5353         * cgraphclones.c (clone_function_name_1): Use
5354         symbol_table::symbol_suffix_separator.
5355         * coverage.c (build_var): Likewise.
5356         * symtab.c (symbol_table::symbol_suffix_separator): New.
5357
5358 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
5359
5360         PR rtl-optimization/70429
5361         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
5362         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
5363         mode != result_mode.
5364
5365         PR c++/70353
5366         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
5367
5368         PR tree-optimization/70405
5369         * ssa-iterators.h (num_imm_uses): Add missing braces.
5370
5371 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
5372
5373         PR rtl-optimization/68695
5374         * ira-color.c (allocno_copy_cost_saving): New.
5375         (improve_allocation): Use it.
5376
5377 2016-03-29  Richard Henderson  <rth@redhat.com>
5378
5379         PR middle-end/70355
5380         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
5381
5382 2016-03-29  Richard Biener  <rguenther@suse.de>
5383
5384         PR middle-end/70424
5385         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
5386         use alignment returned by get_pointer_alignment_1 if it is
5387         bigger than BITS_PER_UNIT.
5388         * builtins.c (get_pointer_alignment_1): Do not return true
5389         for alignment extracted from SSA info.
5390
5391 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
5392
5393         * config/ft32/ft32.opt (mnodiv): New.
5394         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
5395         * doc/invoke.texi (FT32 Options -mnodiv): New.
5396
5397 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
5398
5399         PR target/70406
5400         * config/i386/i386.md (define_split, andn): Fix modes.
5401
5402 2016-03-26  Richard Biener  <rguenther@suse.de>
5403             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5404
5405         PR ipa/70366
5406         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
5407         instead of
5408         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
5409         as 2nd argument to cl_optimization_restore().
5410
5411 2016-03-25  Richard Henderson  <rth@redhat.com>
5412
5413         PR target/70120
5414         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
5415         * config/aarch64/aarch64-protos.h: Declare it.
5416         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
5417
5418 2016-03-25  Alan Modra  <amodra@gmail.com>
5419
5420         PR target/70052
5421         * config/rs6000/constraints.md (j): Simplify.
5422         * config/rs6000/predicates.md (easy_fp_constant): Exclude
5423         decimal float 0.D.
5424         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
5425         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
5426          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
5427         in all constraint alternatives.
5428         (movtd_64bit_nodm): Delete "j" constraint alternative.
5429
5430 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
5431
5432         * tree-ssa-propagate.c: Enhance docs for
5433         SSA_PROP_NOT_INTERESTING.
5434
5435 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
5436
5437         * doc/extend.texi: Fix typo in documentation to pure attribute.
5438
5439 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
5440
5441         PR target/70319
5442         * config/pa/pa.md (bswapdi2): Use a scratch register.
5443
5444 2016-03-24  Richard Henderson  <rth@redhat.com>
5445
5446         PR middle-end/69845
5447         * fold-const.c (extract_muldiv_1): Correct test for multiplication
5448         overflow.
5449
5450 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
5451
5452         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
5453         using ix86_expand_binary_operator instead of gen_andsi3.
5454
5455 2016-03-24  Richard Biener  <rguenther@suse.de>
5456
5457         PR tree-optimization/70396
5458         * tree-vect-stmts.c (vectorizable_comparison): Use
5459         get_vectype_for_scalar_type.
5460
5461 2016-03-24  Richard Biener  <rguenther@suse.de>
5462
5463         PR middle-end/70370
5464         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
5465         with register bases.
5466
5467 2016-03-24  Richard Biener  <rguenther@suse.de>
5468
5469         PR tree-optimization/70372
5470         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
5471         build_all_ones_cst to also handle vector types correctly.
5472
5473 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5474
5475         PR target/70381
5476         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
5477         -mfloat128 here.
5478
5479 2016-03-23  Marek Polacek  <polacek@redhat.com>
5480
5481         PR c++/69884
5482         * doc/invoke.texi: Document -Wignored-attributes.
5483
5484 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
5485
5486         PR tree-optimization/69042
5487         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
5488         parameter from 30 to 40.
5489
5490 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
5491
5492         PR tree-optimization/69042
5493         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
5494         for use with constant offset stripped in base.
5495
5496 2016-03-23  Richard Biener  <rguenther@suse.de>
5497
5498         PR middle-end/70251
5499         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
5500         mode compatibility check.
5501         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
5502
5503 2016-03-23  Jeff Law  <law@redhat.com>
5504
5505         PR tree-optimization/64058
5506         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
5507         CONFLICT_COUNT.
5508         (struct ssa_conflicts): Move up earlier in the file.
5509         (conflicts_, var_map_): New static variables.
5510         (initialize_conflict_count): New function to initialize the
5511         CONFLICT_COUNT field for each conflict pair.
5512         (compare_pairs): Lazily initialize the conflict count and use it
5513         as the first tie-breaker.
5514         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
5515         and wipe conflicts_ and map_ around the call to qsort.  Remove
5516         special case for 2 coalesce pairs.
5517         * bitmap.c (bitmap_count_unique_bits): New function.
5518         (bitmap_count_bits_in_word): New function, extracted from
5519         bitmap_count_bits.
5520         (bitmap_count_bits): Use bitmap_count_bits_in_word.
5521         * bitmap.h (bitmap_count_unique_bits): Declare it.
5522
5523 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
5524
5525         PR target/69917
5526         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
5527         transparent alias chain for decl assembler name.
5528         * config/sol2.c (solaris_assemble_visibility): Likewise.
5529
5530 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5531
5532         * config/arm/arm1020e.md (1020call_op): Reduce reservation
5533         duration.
5534         (v10_fdivs): Likewise.
5535         (v10_fdivd): Likewise.
5536
5537 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5538
5539         PR driver/70132
5540         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
5541         to not call fclose twice on file.
5542
5543 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
5544
5545         PR tree-optimization/70354
5546         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
5547         oprnd0 is wider than oprnd1 and there is a cast from the wider
5548         type to oprnd1, mask it with the mask of the narrower type.
5549
5550         PR target/70321
5551         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
5552         Optimize TARGET_STV splitters, if high or low word of last argument
5553         is 0 or -1.
5554
5555 2016-03-22  Jeff Law  <law@redhat.com>
5556
5557         PR target/70232
5558         tree-ssa-threadbackward.c
5559         (fsm_find_control_statement_thread_paths): Correctly distinguish
5560         between old style jump threads vs FSM jump threads.
5561
5562 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
5563
5564         PR target/70302
5565         * config/i386/i386.c (scalar_chain::convert_op): Support
5566         uninitialized register usage case.
5567
5568 2016-03-22  Richard Biener  <rguenther@suse.de>
5569
5570         PR middle-end/70251
5571         * genmatch.c (gen_transform): Adjust last parameter to a three-state
5572         int...
5573         (capture::gen_transform): ... to change behavior when substituting
5574         a condition into cond or not-cond expr context.
5575         (dt_simplify::gen_1): Adjust.
5576         * gimple-match-head.c: Include gimplify.h for unshare_expr.
5577         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
5578         last change and instead change to
5579         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
5580         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
5581
5582 2016-03-22  Anthony Green  <green@moxielogic.com>
5583
5584         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
5585         issue for moxiebox targets.
5586         (CC1PLUS_SPEC): Ditto.
5587
5588 2016-03-22  Richard Biener  <rguenther@suse.de>
5589
5590         PR middle-end/70333
5591         * fold-const.c (extract_muldiv_1): Properly perform multiplication
5592         in the wide type.
5593
5594 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
5595
5596         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
5597
5598 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
5599
5600         PR target/70325
5601         * config/i386/i386.c (def_builtin): Handle
5602         OPTION_MASK_ISA_AVX512VL to be and-ed with other
5603         bits.
5604         (const struct builtin_description bdesc_special_args[]):
5605         Remove duplicate ISA bits.
5606
5607 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
5608
5609         PR target/70329
5610         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
5611         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
5612         in a way that works also for AVX512BW.
5613
5614         PR target/70300
5615         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
5616         instead of source if operands[1] is xmm16 and above and
5617         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
5618         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
5619
5620         PR c++/70295
5621         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
5622         on assign if (*from_p) is a comparison, set it to
5623         TREE_NO_WARNING (*from_p).
5624
5625 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
5626
5627         PR middle-end/70326
5628         * lra.c (restore_scratches): Ignore deleted insns.
5629
5630 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
5631             Jakub Jelinek  <jakub@redhat.com>
5632
5633         PR tree-optimization/70317
5634         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
5635         to HONOR_NANS.
5636
5637 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
5638
5639         PR target/70327
5640         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
5641         of ix86_expand_move.
5642         (movoi): Ditto.
5643         (movti): Use general_operand for operand 1 predicate.
5644
5645 2016-03-21  Martin Liska  <mliska@suse.cz>
5646
5647         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
5648         insns.
5649         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
5650
5651 2016-03-21  Martin Liska  <mliska@suse.cz>
5652
5653         PR ipa/70306
5654         * ipa-icf.c (sem_function::parse): Skip static
5655         constructors and destructors.
5656
5657 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
5658
5659         PR target/70296
5660         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
5661         function-like macro, peek following token(s) if it is followed
5662         by CPP_OPEN_PAREN token with optional padding in between, and
5663         if not, don't treat it like a macro.
5664
5665 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
5666             Alexander Monakov  <amonakov@ispras.ru>
5667
5668         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
5669         for the stabs debug format.
5670
5671 2016-03-21  Richard Biener  <rguenther@suse.de>
5672
5673         PR tree-optimization/70310
5674         * tree-vect-generic.c (expand_vector_condition): Fold the built
5675         condition.
5676
5677 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
5678
5679         PR target/70293
5680         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
5681         Block third alternative for AVX-512VL target,
5682
5683 2016-03-21  Martin Liska  <mliska@suse.cz>
5684
5685         PR hsa/70234
5686         * hsa-brig.c (emit_function_directives): Mark unemitted
5687         global variables for emission.
5688         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
5689         (get_symbol_for_decl): Likewise.
5690         * hsa.h (struct hsa_symbol): New flag.
5691
5692 2016-03-21  Richard Biener  <rguenther@suse.de>
5693
5694         PR tree-optimization/70288
5695         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
5696         we do not estimate unsimplified all-constant conditionals or
5697         switches as optimized away.
5698
5699 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
5700
5701         PR rtl-optimization/69102
5702         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
5703         when we have a readonly dependency context.
5704
5705 2016-03-18  Jeff Law  <law@redhat.com>
5706
5707         PR rtl-optimization/70263
5708         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
5709         (update_equiv_regs): When trying to move a store to after the insn
5710         that sets the source of the store, make sure the store occurs after
5711         the insn that sets the source of the store.  When successful note
5712         the REG_EQUIV note created in the dump file.
5713
5714 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
5715             Bernd Schmidt  <bschmidt@redhat.com>
5716
5717         * doc/extend.texi: Document more potential problems with basic asms.
5718
5719 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
5720
5721         PR rtl-optimization/70278
5722         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
5723         VOIDmode.
5724
5725 2016-03-18  Jason Merrill  <jason@redhat.com>
5726
5727         * calls.c (load_register_parameters): Fix zero size sibcall logic.
5728
5729 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
5730
5731         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
5732         values to 128b regs.
5733
5734 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
5735
5736         PR tree-optimization/70252
5737         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
5738         boolean vector has a proper number of elements.
5739         (supportable_narrowing_operation): Likewise.
5740
5741 2016-03-18  Tom de Vries  <tom@codesourcery.com>
5742
5743         PR ipa/70269
5744         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
5745
5746 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
5747
5748         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
5749         instead of replace_rtx for DEBUG_INSNs.
5750
5751 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5752
5753         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
5754         load type reservations.
5755
5756 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
5757
5758         PR target/70188
5759         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
5760         define_constraint for "Q" and "T" constraints.
5761
5762 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
5763
5764         Tweak the pipeline model for Exynos M1
5765
5766         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
5767         model.
5768
5769 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
5770
5771         PR c/70264
5772         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
5773         where one or both locations aren't within a line_map.
5774
5775 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5776
5777         PR driver/70192
5778         * opts.c (finish_options): Don't set flag_pie to the default if
5779         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
5780         if it is -1.
5781
5782 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
5783
5784         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
5785         true as ALL_REGS argument to replace_rtx.
5786
5787 2016-03-17  Richard Biener  <rguenther@suse.de>
5788
5789         PR debug/70271
5790         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
5791         last.
5792
5793 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
5794
5795         PR target/70245
5796         * rtl.h (replace_rtx): Add ALL_REGS argument.
5797         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
5798         equality and assert mode is the same, instead of just rtx pointer
5799         equality.
5800         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
5801         true as ALL_REGS argument to replace_rtx.
5802
5803 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
5804
5805         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
5806         for boolean vector with vector mode only.
5807         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
5808
5809 2016-03-17  Nick Clifton  <nickc@redhat.com>
5810
5811         PR target/70162
5812         * config/rx/rx.c (rx_print_integer): Print negative constants in
5813         decimal.
5814
5815 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
5816
5817         PR target/70261
5818         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
5819
5820 2016-03-16  Richard Henderson  <rth@redhat.com>
5821             Richard Biener  <rguenth@suse.de>
5822
5823         PR middle-end/70240
5824         PR middle-end/68215
5825         PR tree-opt/68714
5826         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
5827         first operand as is_gimple_condexpr.
5828
5829         PR middle-end/70240
5830         PR middle-end/68215
5831         Revert r231575
5832         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
5833         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
5834         Do not gimplify the result.
5835         (do_unop): Adjust call to tree_vec_extract.
5836         (do_binop): Likewise.
5837         (do_compare): Likewise.
5838         (do_plus_minus): Likewise.
5839         (do_negate): Likewise.
5840         (expand_vector_condition): Likewise.
5841         (do_cond): Likewise.
5842
5843 2016-03-16  Richard Henderson  <rth@redhat.com>
5844
5845         PR target/70048
5846         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
5847         (aarch64_classify_address): Use it.
5848         (aarch64_legitimize_address): Force all subexpressions of PLUS
5849         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
5850
5851 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
5852             Richard Biener  <rguenth@suse.de>
5853
5854         PR target/70245
5855         * rtlanal.c (replace_rtx): For REG, if from is a REG,
5856         return to even if only REGNO is equal, and assert
5857         mode is the same.
5858
5859 2016-03-11  Jeff Law  <law@redhat.com>
5860
5861         PR rtl-optimization/70224
5862         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
5863
5864 2016-03-16  Richard Henderson  <rth@redhat.com>
5865
5866         PR middle-end/70199
5867         * function.h (struct function): Add has_forced_label_in_static.
5868         * gimplify.c (force_labels_r): Set it.
5869         * lto-streamer-in.c (input_struct_function_base): Read it.
5870         * lto-streamer-out.c (output_struct_function_base): Write it.
5871         * tree-inline.c (has_label_address_in_static_1): Remove.
5872         (copy_forbidden): Remove fndecl parameter; test
5873         has_forced_label_in_static.
5874         (inline_forbidden_p): Update call to copy_forbidden.
5875         (tree_versionable_function_p): Likewise.
5876         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
5877         (chkp_versioning): Likewise.
5878         * tree-inline.h (copy_forbidden): Update decl.
5879
5880 2016-03-16  Marek Polacek  <polacek@redhat.com>
5881
5882         PR c/70093
5883         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
5884         function being thunked if the result type doesn't have fixed size.
5885         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
5886         doesn't have fixed size.
5887
5888 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
5889
5890         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
5891         reporting malformed loop nest.
5892
5893 2016-03-16  Tom de Vries  <tom@codesourcery.com>
5894
5895         PR lto/70187
5896         * ipa-devirt.c (possible_polymorphic_call_targets): Move
5897         nodes.length () == 1 test to before first nodes[0] access.
5898
5899 2016-03-16  Tom de Vries  <tom@codesourcery.com>
5900
5901         PR tree-optimization/68715
5902         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
5903         single_pred_p test.
5904
5905 2016-03-16  Tom de Vries  <tom@codesourcery.com>
5906
5907         PR tree-optimization/68809
5908         * graphite-scop-detection.c (same_close_phi_node): Test if result types
5909         are the same.
5910
5911 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
5912             Sandra Loosemore  <sandra@codesourcery.com>
5913
5914         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
5915         on leaf attribute. Mention ELF interposition problems.
5916
5917 2016-03-16  Alan Modra  <amodra@gmail.com>
5918
5919         PR rtl-optimization/69195
5920         PR rtl-optimization/47992
5921         * ira.c (indirect_jump_optimize): Ignore artificial defs.
5922         Add comments.
5923
5924 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
5925
5926         PR bootstrap/69513
5927         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
5928
5929 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5930
5931         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
5932
5933 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
5934
5935         PR rtl-optimization/70222
5936         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
5937         optimization if mode is different from result_mode, queue up masking
5938         of the result in outer_op.  Formatting fix.
5939
5940         PR middle-end/70239
5941         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
5942         of safe_grow.
5943
5944 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5945
5946         PR rtl-optimization/69032
5947         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
5948         looping backwards over basic block insns.
5949
5950 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5951
5952         PR target/66660
5953         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
5954         to non-speculative when propagating trap bits.
5955
5956 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5957
5958         PR rtl-optimization/63384
5959         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
5960         DEBUG_INSN_P insns.
5961
5962 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
5963
5964         PR target/64411
5965         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
5966         factored out from ...
5967         (sched_analyze_insn): ... here.
5968         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
5969         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
5970         get_implicit_reg_pending_clobbers in it.
5971         (setup_id_reg_sets): Use setup_id_implicit_regs.
5972         (deps_init_id): Ditto.
5973
5974 2016-03-15  Tom de Vries  <tom@codesourcery.com>
5975
5976         PR ipa/70161
5977         * cgraph.c (cgraph_node::get_body): Save, reset and restore
5978         dump_file_name.
5979         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
5980         execute_function_dump.
5981         (execute_one_pass): Don't dump function if it will be dumped after ipa
5982         transform.
5983
5984 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
5985
5986         * genrecog.c (match_pattern_2): If pred is NULL don't call
5987         safe_predicate_mode on it.
5988
5989 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
5990
5991         PR middle-end/70219
5992         * lra-constraints.c (delete_move_and_clobber): Change assertion
5993         to also allow dregno == 0.
5994
5995 2016-03-14  Richard Henderson  <rth@redhat.com>
5996
5997         PR tree-opt/68714
5998         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
5999         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
6000         (reassociate_bb): Use optimize_vec_cond_expr; avoid
6001         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
6002         on vectors.
6003
6004 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
6005
6006         PR target/70083
6007         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
6008         regs.
6009         (lra_create_live_ranges_1): initialize hard register biggest_mode to
6010         VOIDmode.
6011         * lra-constraints.c (split_reg): For hard regs, try to find the
6012         biggest single-register mode used in the function.
6013
6014 2016-03-14  Richard Biener  <rguenther@suse.de>
6015
6016         PR tree-optimization/56365
6017         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
6018         constants to compare against.
6019
6020 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
6021
6022         PR target/70098
6023         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
6024         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
6025         (define_split for the GPR case): Use int_reg_operand instead of
6026         gpc_reg_operand for the output.
6027
6028 2016-03-14  Tom de Vries  <tom@codesourcery.com>
6029
6030         PR tree-optimization/70045
6031         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
6032         create_empty_if_region_on_edge argument.
6033
6034 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
6035
6036         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
6037         (STACK_CHECK_PROTECT): Likewise.
6038         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
6039         (STACK_CHECK_PROTECT): Likewise.
6040         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
6041         (STACK_CHECK_PROTECT): Likewise.
6042         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
6043         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6044         (STACK_CHECK_PROTECT): Likewise.
6045
6046 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
6047
6048         PR rtl-optimization/69307
6049         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
6050         registers in modes that span more than one register.
6051
6052 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
6053
6054         PR target/69614
6055         * lra-constraints.c (delete_move_and_clobber): New.
6056         (remove_inheritance_pseudos): Use it.
6057
6058 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
6059
6060         PR ada/70017
6061         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
6062         the libcall is LCT_THROW.
6063         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
6064         for the checking routine.
6065
6066 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6067
6068         PR target/70131
6069         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
6070         optimization if we have direct move.
6071         (roundu32<mode>2_fprs): Likewise.
6072
6073 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
6074
6075         PR target/70123
6076         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
6077         be rematerialized.
6078         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
6079         Arguments swapped.  All callers changed.  Take reg_renumber into
6080         account, and Calculate and compare register ranges for hard regs.
6081
6082 2016-03-11  Jeff Law  <law@redhat.com>
6083
6084         PR tree-optimization/70190
6085         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6086         Handle cases where we can not extract the taken edge, even though we
6087         found a constant value.
6088
6089         PR tree-optimization/64058
6090         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
6091         (num_coalesce_pairs): Move up earlier in file.
6092         (find_coalesce_pair): Initialize the INDEX field for each pair
6093         discovered.
6094         (compare_pairs): No longer sort on the elements in each pair.
6095         Instead break ties with the index of the coalesce pair.
6096
6097 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6098
6099         PR target/70002
6100         * config/aarch64/aarch64-protos.h
6101         (aarch64_save_restore_target_globals): New prototype.
6102         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
6103         Call the above when popping pragma.
6104         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
6105         New function.
6106         (aarch64_set_current_function): Rewrite using the above.
6107
6108 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
6109
6110         PR tree-optimization/70177
6111         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
6112         (extract_ops_from_tree): ... this.  In the 2 argument
6113         overload remove _1 suffix.
6114         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
6115         (extract_ops_from_tree): ... this.
6116         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
6117         Adjust callers.
6118         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
6119         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
6120         extract_ops_from_tree instead of 2 operand one.
6121
6122 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
6123
6124         PR tree-optimization/70013
6125         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
6126         for constant-pool entries.
6127
6128 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
6129
6130         PR rtl-optimization/70174
6131         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
6132         followed by gen_lowpart on force_reg instead of just gen_lowpart.
6133
6134         PR tree-optimization/70169
6135         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
6136         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
6137         for unknown codes.
6138
6139 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
6140             Jakub Jelinek  <jakub@redhat.com>
6141
6142         PR target/70160
6143         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
6144         of uninitialized values.
6145
6146 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6147
6148         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
6149         define_expand.
6150         ("*trunctddd2"): New pattern definition.
6151         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
6152         TD->DD truncation.
6153
6154 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6155
6156         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
6157         definitions for BFP and DFP rounding modes.
6158         ("fixuns_truncdddi2", "fixuns_trunctddi2")
6159         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
6160         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
6161         ("fix_trunctf<mode>2"): Use the new constants instead of magic
6162         numbers.
6163
6164 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6165
6166         * config/s390/constraints.md: Adjust comment.
6167         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
6168         s390_decompose_addrstyle_without_index.
6169         * config/s390/predicates.md (shift_count_or_setmem_operand):
6170         Rename to setmem_operand.
6171         * config/s390/s390-protos.h
6172         (s390_decompose_shift_count): Rename to
6173         s390_decompose_addrstyle_without_index.
6174         * config/s390/s390.c (s390_decompose_shift_count)
6175         (s390_mem_constraint, print_shift_count_operand)
6176         (print_operand_address, print_operand): Rename
6177         s390_decompose_shift_count to
6178         s390_decompose_addrstyle_without_index and rename
6179         print_shift_count_operand to print_addrstyle_operand troughout the
6180         file.
6181         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
6182         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
6183         Rename shift_count_or_setmem_operand to setmem_operand.
6184         * config/s390/vx-builtins.md ("vec_insert<mode>")
6185         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
6186         nonmemory_operand.
6187
6188 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6189
6190         PR target/70168
6191         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
6192         Handle overlapping retval and newval.
6193
6194 2016-03-10  Nick Clifton  <nickc@redhat.com>
6195
6196         PR target/7044
6197         * config/aarch64/aarch64.c
6198         (aarch64_override_options_after_change_1): When forcing
6199         flag_omit_frame_pointer to be true, use a special value that can
6200         be detected if this function is called again, thus preventing
6201         flag_omit_leaf_frame_pointer from being forced to be false.
6202
6203 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6204
6205         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
6206         Set x_flag_omit_leaf_frame_pointer when handling
6207         -momit-leaf-frame-pointer.
6208
6209 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
6210
6211         PR lto/69589
6212         * cgraph.c (cgraph_node::dump): Dump split_part and
6213         indirect_call_target.
6214         * cgraph.h (cgraph_node): Add indirect_call_target flag.
6215         * ipa.c (has_addr_references_p): Cleanup.
6216         (is_indirect_call_target_p): New.
6217         (walk_polymorphic_call_targets): Do not mark virtuals that may be
6218         called indirectly as local.
6219         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
6220
6221 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
6222
6223         PR ipa/69630
6224         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
6225         on cxa_pure_virtual.
6226
6227 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
6228
6229         PR lto/69589
6230         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
6231
6232 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
6233
6234         PR lto/69589
6235         * tree.c (need_assembler_name_p): Only record main variant type names.
6236
6237 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
6238
6239         PR target/70113.
6240         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
6241         Always define to 0 or 1.
6242         (TARGET_FIX_ERR_A53_843419): New macro.
6243         * config/aarch64/aarch64-elf-raw.h
6244         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
6245         * config/aarch64/aarch64-linux.h: Likewise.
6246         * config/aarch64/aarch64.c
6247         (aarch64_override_options_after_change_1): Do not default
6248         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
6249         843419 is on.
6250         (aarch64_attributes): Handle fix-cortex-a53-843419.
6251         (aarch64_can_inline_p): Likewise.
6252         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
6253
6254 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
6255         Jakub Jelinek <jakub@redhat.com>
6256
6257         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
6258         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
6259         DECL_COMMONS if flag_unconstrained_commons is set.
6260         * tree-dfa.c (get_ref_base_and_extent): Likewise.
6261         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
6262         (funconstrained-commons): Document.
6263
6264 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
6265
6266         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
6267         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
6268
6269 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
6270
6271         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
6272         has a proper number of elements.
6273
6274 2016-03-10  Alan Modra  <amodra@gmail.com>
6275
6276         PR rtl-optimization/69195
6277         PR rtl-optimization/47992
6278         * ira.c (recorded_label_ref): Delete.
6279         (update_equiv_regs): Return void.
6280         (indirect_jump_optimize): New function.
6281         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
6282         before regstat_compute_ri.  Don't rebuild_jump_labels here.
6283         Delete update_regstat.
6284
6285 2016-03-10  Richard Biener  <rguenther@suse.de>
6286
6287         PR tree-optimization/70128
6288         * tree-ssa-structalias.c (set_uids_in_ptset): Set
6289         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
6290
6291 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
6292
6293         PR tree-optimization/70152
6294         * tree-sra.c (replace_removed_params_ssa_names): Copy over
6295         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
6296
6297         PR target/70086
6298         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
6299         instead of gen_sse2_loadlpd.
6300         * config/i386/sse.md (*vec_concatv2df): Rename to...
6301         (vec_concatv2df): ... this.
6302
6303         PR tree-optimization/70127
6304         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
6305
6306 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
6307
6308         PR c/68473
6309         PR c++/70105
6310         * diagnostic-show-locus.c (compatible_locations_p): New function.
6311         (layout::layout): Sanitize ranges using compatible_locations_p.
6312
6313 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
6314
6315         PR c/68473
6316         PR c++/70105
6317         * diagnostic-show-locus.c (layout_range::layout_range): Replace
6318         location_range param with three const expanded_locations * and a
6319         bool.
6320         (layout::layout): Replace call to
6321         rich_location::lazily_expand_location with get_expanded_location.
6322         Extract the range and perform location expansion here, passing
6323         the results to the layout_range ctor.
6324         * diagnostic.c (source_range::debug): Delete.
6325         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
6326         of rich_location::get_expanded_location.
6327         * gcc-rich-location.c (get_range_for_expr): Delete.
6328         (gcc_rich_location::add_expr): Reimplement to avoid the
6329         rich_location::add_range overload that took a location_range,
6330         passing a location_t instead.
6331
6332 2016-03-09  Richard Biener  <rguenther@suse.de>
6333         Jakub Jelinek  <jakub@redhat.com>
6334
6335         PR tree-optimization/70138
6336         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
6337         Also skip vect_double_reduction_def.
6338
6339 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
6340
6341         PR target/70049
6342         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
6343         if the operand is "m".
6344
6345 2016-03-09  Nathan Sidwell  <nathan@acm.org>
6346
6347         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
6348
6349 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6350
6351         * config/i386/i386.c (processor_target_table): Fix cost table
6352         intialization order for znver1.
6353
6354 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
6355
6356         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
6357         - becuase -> because.
6358         * ipa-reference.c (ignore_module_statics): Likewise.
6359         * cgraph.c (cgraph_node::get_body): Likewise.
6360         * ipa-inline.c (early_inliner): Likewise.
6361         * ipa-devirt.c (types_same_for_odr): Likewise.
6362         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
6363         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
6364
6365 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6366
6367         * tree-ssa-math-opts.c: Fix typo in comment.
6368
6369 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
6370
6371         PR target/70110
6372         * config/i386/i386.c (scalar_chain::make_vector_copies,
6373         scalar_chain::convert_reg): Call end_sequence in between
6374         get_insns and emit_conversion_insns rather than after both
6375         calls.
6376
6377 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
6378
6379         PR target/70064
6380         * config/i386/i386.h (machine_function): Add
6381         pc_thunk_call_expanded flag.
6382         (ix86_pc_thunk_call_expanded): New define.
6383         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
6384         (*set_got): Rename insn pattern from set_got.
6385         (*set_got_labelled): Rename inst pattern from set_got_labelled.
6386         * config/i386/i386.c (ix86_compute_frame_layout): Use
6387         ix86_pc_thunk_call_expanded to prevent red-zone.
6388
6389 2016-03-07  Martin Jambor  <mjambor@suse.cz>
6390
6391         * hsa.h (hsa_get_ctor_statements): Declare.
6392         (hsa_get_dtor_statements): Likewise.
6393         (hsa_get_kernel_dispatch_type): Likewise.
6394         * hsa.c (hsa_get_ctor_statements): New function.
6395         (hsa_get_dtor_statements): Likewise.
6396         (hsa_get_kernel_dispatch_type): Likewise.
6397         * hsa-brig.c (hsa_cdtor_statements): Removed.
6398         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
6399         hsa_get_dtor_statements.
6400         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
6401         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
6402
6403 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6404
6405         * config/arm/arm-cores.def (cortex-r8): New.
6406         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
6407         * config/arm/arm-tune.md: Likewise.
6408         * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
6409
6410 2016-03-07  Martin Sebor  <msebor@redhat.com>
6411
6412         PR rtl-optimization/19705
6413         * doc/invoke.texi (Options That Control Optimization): Clarify
6414         -fno-branch-count-reg.
6415
6416 2016-02-26  Richard Biener  <rguenther@suse.de>
6417             Jeff Law  <law@redhat.com>
6418
6419         PR tree-optimization/69740
6420         * cfghooks.c (remove_edge): Request loop fixups if we delete
6421         an edge that might turn an irreducible loop into a natural
6422         loop.
6423         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
6424         Move after definition of loops_state_clear.
6425
6426 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
6427
6428         PR rtl-optimization/69052
6429         * rtlanal.c (commutative_operand_precedence): Set higher precedence
6430         to CONST_WIDE_INT.
6431
6432 2016-03-07  Tom de Vries  <tom@codesourcery.com>
6433
6434         PR tree-optimization/70116
6435         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
6436         is_tm_ending stmts and ubsan/asan internal functions.
6437         (find_duplicate): Use it.  Don't test is_tm_ending here.
6438
6439 2016-03-07  Richard Biener  <rguenther@suse.de>
6440
6441         PR tree-optimization/70115
6442         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
6443         (propagate_constants_for_unrolling): Use replace_uses_by.
6444
6445 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
6446
6447         PR middle-end/69916
6448         * omp-low.c (struct oacc_loop): Add ifns.
6449         (new_oacc_loop_raw): Initialize it.
6450         (finish_oacc_loop): Clear mask & flags if no ifns.
6451         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
6452         (oacc_loop_xform_loop): Add ifns arg & adjust.
6453         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
6454
6455 2016-03-07  Richard Henderson  <rth@redhat.com>
6456
6457         PR rtl-opt/70061
6458         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
6459         (insert_value_copy_on_edge): Likewise.
6460
6461 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6462
6463         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
6464
6465 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6466
6467         PR target/62281
6468         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
6469
6470 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
6471
6472         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
6473
6474 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
6475
6476         Fix sseimul type attribute.
6477         * config/i386/znver1.md
6478         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
6479         znver1_sseimul_avx256_load) : Fix the type attribute.
6480         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
6481         pipe usage and latency.
6482
6483 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
6484
6485         PR c++/70084
6486         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
6487         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
6488         to the right type.
6489
6490 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
6491
6492         PR c/69973
6493         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
6494
6495         PR rtl-optimization/69941
6496         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
6497         the reg share its mode.
6498
6499 2016-03-04  Jeff Law  <law@redhat.com>
6500
6501         PR tree-optimization/69196
6502         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6503         If the both SSA_NAMEs are anonymous, then consider them unassociated
6504         and include the PHI in the statement count.
6505
6506 2016-03-05  Tom de Vries  <tom@codesourcery.com>
6507
6508         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
6509         construct in oacc routine.  Check for oacc region in oacc routine.
6510
6511 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
6512
6513         PR target/70062
6514         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
6515         2016-02-22 changes, instead don't recurse if RECUR is already true.
6516         Don't change *dynamic_check if RECUR.  Adjust recursive caller
6517         to pass true to the new argument.
6518         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
6519
6520         PR target/70059
6521         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
6522         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
6523         fixes.
6524         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
6525
6526 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
6527
6528         PR rtl-optimization/57676
6529         * lra-assigns.c (lra_assign): Guard test for maximum iterations
6530         with flag_checking.
6531
6532 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
6533
6534         * tree-vect-patterns.c (search_type_for_mask): Handle
6535         comparison of booleans.
6536
6537 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
6538
6539         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
6540         Fix @xref usage.
6541
6542         PR debug/69947
6543         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
6544         all other ops that have dw_val_class_die_ref operands,
6545         and DW_OP_GNU_entry_value.
6546
6547 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6548
6549         PR rtl-optimization/69904
6550         * config/arm/arm.c (arm_cannot_copy_insn_p):
6551         Return true for load-exclusive instructions.
6552
6553 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
6554
6555         PR target/70021
6556         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
6557         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
6558         the pattern no matter if it is used just by non-pattern, pattern
6559         or mix thereof.
6560         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
6561         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
6562         oprnd1 def_stmt is in pattern, don't look through it.
6563
6564 2016-03-03  Marek Polacek  <polacek@redhat.com>
6565
6566         PR middle-end/70050
6567         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
6568
6569 2016-03-03  Martin Liska  <mliska@suse.cz>
6570
6571         PR tree-optimization/70043
6572         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
6573         previous statement if we see a debug statement.
6574
6575 2016-03-03  Richard Biener  <rguenther@suse.de>
6576
6577         PR tree-optimization/55936
6578         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
6579         parameter and guard unsafe equivalence use.
6580         (vrp_evaluate_conditional_warnv_with_ops): Always use
6581         safe equivalences but not via the quadratic compare_names
6582         helper.
6583
6584 2016-03-03  Michael Collison  <michael.collison@linaro.org>
6585
6586         PR target/70014
6587         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
6588         for operand 1 to s_register_operand. Change predicate for operand
6589         2 to arm_not_immediate_operand.
6590
6591 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
6592
6593         * doc/tm.texi: Regenerated.
6594
6595 2016-03-02  Richard Henderson  <rth@redhat.com>
6596
6597         PR rtl-opt/67145
6598         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
6599         simplification when all args are positive non-fixed registers.
6600
6601 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6602
6603         * target.def (lra_p): Specify that new ports should use LRA.
6604
6605 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
6606
6607         PR libgomp/69555
6608         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
6609         gimplify_type_sizes the type they refer to.
6610         (omp_notice_variable): Handle reference vars to VLAs.
6611         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
6612         reference to VLA decls in the second pass instead of first pass.
6613
6614 2016-03-02  Tom de Vries  <tom@codesourcery.com>
6615
6616         PR tree-optimization/68659
6617         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
6618         new_expr == NULL_TREE.
6619         (get_new_name): Handle ADDR_EXPR.
6620
6621 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
6622
6623         PR rtl-optimization/69052
6624         * loop-invariant.c (canonicalize_address): New function.
6625         (inv_can_prop_to_addr_use): Check validity of address expression
6626         which is canonicalized by above function.
6627
6628 2016-03-02  Alan Modra  <amodra@gmail.com>
6629
6630         PR ipa/69990
6631         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
6632         larger alignment.
6633
6634 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
6635
6636         PR target/70028
6637         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
6638         (*movhi_internal): Put mask moves from and to memory separately
6639         from moves from/to GPRs.
6640
6641 2016-03-02  Richard Biener  <rguenther@suse.de>
6642
6643         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
6644         GENERIC expressions in GIMPLE.
6645
6646 2016-03-02  Richard Biener  <rguenther@suse.de>
6647
6648         * config/i386/i386.c (type_natural_mode): Fix typo.
6649
6650 2016-03-02  Nick Clifton  <nickc@redhat.com>
6651
6652         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
6653
6654 2016-03-02  Richard Biener  <rguenther@suse.de>
6655             Uros Bizjak  <ubizjak@gmail.com>
6656
6657         PR target/67278
6658         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
6659
6660 2016-03-02  Richard Biener  <rguenther@suse.de>
6661
6662         PR middle-end/67278
6663         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
6664
6665 2016-03-02  Marek Polacek  <polacek@redhat.com>
6666
6667         PR c/67854
6668         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
6669         "is promoted to" warning.
6670
6671 2016-03-01  DJ Delorie  <dj@redhat.com>
6672
6673         * config.gcc: Deprecate mep-*.
6674
6675 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
6676
6677         PR middle-end/70025
6678         * lra-constraints.c (regno_val_use_in): New.
6679         (match_reload): Use it instead of regno_use_in.
6680
6681 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
6682
6683         PR rtl-optimization/70007
6684         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
6685         references present in REG_EQUAL notes attached to non-SET patterns.
6686
6687 2016-03-01  Jeff Law  <law@redhat.com>
6688
6689         PR tree-optimization/69196
6690         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6691         Appropriately clamp the number of statements to copy when the
6692         thread path does not traverse a loop backedge.
6693
6694         PR tree-optimization/69196
6695         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6696         Do count some PHIs in the thread path against the insn count.  Decrease
6697         final statement count by one as the control statement in the last
6698         block will get removed.  Remove special cased code for handling PHIs
6699         in the last block.
6700
6701 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
6702
6703         PR target/70027
6704         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
6705         asm dialect alternatives to explicit GOTPCREL calls.
6706
6707 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
6708
6709         PR ada/70017
6710         * ira.c (do_reload): Issue warning for generic stack checking here...
6711         * reload1.c (reload): ...instead of here and streamline it.
6712
6713 2016-03-01  Nick Clifton  <nickc@redhat.com>
6714
6715         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
6716
6717 2016-03-01  Richard Biener  <rguenther@suse.de>
6718
6719         PR tree-optimization/69983
6720         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
6721         types and fall back to operand_equal_p.
6722
6723 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6724
6725         Revert
6726         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6727
6728         * config/s390/constraints.md ("jm8"): New constraint.
6729         * config/s390/predicates.md ("const_int_8bitset_operand"): New
6730         predicate.
6731         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
6732         into ...
6733         ("*setmem_long<setmem_and>"): New pattern.
6734         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
6735         into ...
6736         ("*setmem_long_31z<setmem_and>"): New pattern.
6737         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
6738         New substitution rules with the required attributes.
6739
6740
6741 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6742
6743         Revert
6744         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6745
6746         * gensupport.c (process_substs_on_one_elem): Split loop to
6747         complete mark_operands_used_in_match_dup on all expressions in the
6748         vector first.
6749         (adjust_operands_numbers): Inline into process_substs_on_one_elem
6750         and remove function.
6751
6752 2016-03-01  Richard Biener  <rguenther@suse.de>
6753
6754         PR middle-end/70022
6755         * fold-const.c (fold_indirect_ref_1): Fix range checking for
6756         vector BIT_FIELD_REF extract.
6757
6758 2016-03-01  Richard Biener  <rguenther@suse.de>
6759
6760         PR tree-optimization/69994
6761         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
6762
6763 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
6764
6765         PR tree-optimization/69956
6766         * tree-vect-stmts.c (supportable_widening_operation): Support
6767         multi-step conversion of boolean vectors.
6768         (supportable_narrowing_operation): Likewise.
6769
6770 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6771
6772         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
6773         anymore.
6774
6775 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6776
6777         * config/s390/subst.md (DSI_VI): New mode iterator.
6778         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
6779         * config/s390/vector.md ("vec_set<mode>"): Move expander before
6780         the insn definition.
6781         ("*vec_set<mode>"): Change predicate and add alternative to
6782         support only either register or const_int operands as element
6783         selector.
6784         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
6785         operands.
6786         ("vec_extract<mode>"): New expander.
6787         ("*vec_extract<mode>"): New insn definition supporting reg and
6788         const_int element selectors.
6789         ("*vec_extract<mode>_plus"): New insn definition supporting
6790         reg+const_int element selectors.
6791         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
6792         following expander+insn definition.
6793         ("<vec_shifts_name><mode>3"): New expander.
6794         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
6795
6796 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6797
6798         * config/s390/s390.md ("*tabort_1"): Change predicate to
6799         nonmemory_operand.  Add a second alternative to cover
6800         register as well as const int operands.
6801         ("*tabort_1_plus"): New pattern definition.
6802
6803 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6804
6805         * config/s390/s390.md ("*ashrdi3_cc_31")
6806         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
6807         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
6808         Merge insn definitions into ...
6809         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
6810         New pattern definition.
6811         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
6812         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
6813         ("*ashr<mode>3_and"): Merge insn definitions into ...
6814         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
6815         New pattern definition.
6816         * config/s390/subst.md ("addr_style_op_cc_subst")
6817         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
6818         substitutions patterns plus attributes.
6819         Add ashiftrt to SUBST iterator.
6820
6821 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6822
6823         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
6824         op2 to nonmemory_operand.
6825         ("*<shift>di3_31", "*<shift>di3_31_and"):
6826         Merge into single pattern definition ...
6827         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
6828         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
6829         pattern definition ...
6830         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
6831         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
6832         iterator.
6833
6834 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6835
6836         * config/s390/predicates.md (const_int_6bitset_operand): New
6837         predicate.
6838         * config/s390/s390.md: Include subst.md.
6839         ("rotl<mode>3"): New expander.
6840         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
6841         ...
6842         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
6843         * config/s390/subst.md: New file.
6844
6845 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6846
6847         * config/s390/s390.md ("op_type", "atype", "length" attributes):
6848         Remove RRR type.  It doesn't really exist.
6849         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
6850         attributes.
6851         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
6852         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
6853         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
6854         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
6855         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
6856         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
6857         `enabled' attribute.
6858
6859 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6860
6861         * gensupport.c (process_substs_on_one_elem): Split loop to
6862         complete mark_operands_used_in_match_dup on all expressions in the
6863         vector first.
6864         (adjust_operands_numbers): Inline into process_substs_on_one_elem
6865         and remove function.
6866
6867 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
6868
6869         PR target/69706
6870         * config/sparc/sparc.c (NWORDS_UP): Rename to...
6871         (CEIL_NWORDS): ...this.  Use CEIL macro.
6872         (compute_fp_layout): Adjust to above renaming.
6873         (function_arg_union_value): Likewise.
6874         (sparc_arg_partial_bytes): Likewise.
6875         (sparc_function_arg_advance): Likewise.
6876
6877 2016-02-29  Jeff Law  <law@redhat.com>
6878
6879         PR tree-optimization/70005
6880         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
6881         where an object with a boolean range is compared against a value
6882         outside [0..1].
6883
6884         PR tree-optimization/69999
6885         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
6886         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
6887         loop cleanups.
6888
6889 2016-02-29  Richard Biener  <rguenther@suse.de>
6890
6891         PR tree-optimization/69994
6892         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
6893         (get_unary_op): Look through nop conversions.
6894         (ops_equal_values_p): New function, look for equality diregarding
6895         nop conversions.
6896         (eliminate_plus_minus_pair): Use ops_equal_values_p
6897         (repropagate_negates): Do not use get_unary_op here.
6898
6899 2016-02-29  Martin Liska  <mliska@suse.cz>
6900
6901         * system.h: Poison ENABLE_CHECKING macro.
6902
6903 2016-02-29  Martin Liska  <mliska@suse.cz>
6904
6905         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
6906         is presented in dump flags.
6907         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
6908         (hsa_regalloc): Likewise.
6909
6910 2016-02-19  Richard Biener  <rguenther@suse.de>
6911
6912         PR tree-optimization/69980
6913         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
6914         permutation of those we need to keep.
6915
6916 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
6917
6918         PR target/69706
6919         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
6920         (NWORDS_UP): ...this
6921         (init_cumulative_args): Minor tweaks.
6922         (sparc_promote_function_mode): Likewise.
6923         (scan_record_type): Delete.
6924         (traverse_record_type): New function template.
6925         (classify_data_t): New structure type.
6926         (classify_registers): New inline function.
6927         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
6928         exhausted.  Instantiate traverse_record_type on classify_registers and
6929         deal with the case of a structure passed in slot #15 with no FP field
6930         in the first word.
6931         (assign_data_t): New structure type.
6932         (compute_int_layout): New static function.
6933         (compute_fp_layout): Likewise.
6934         (count_registers): New inline function.
6935         (assign_int_registers): New static function.
6936         (assign_fp_registers): Likewise.
6937         (assign_registers): New inline function.
6938         (function_arg_record_value_1): Delete.
6939         (function_arg_record_value_2): Likewise.
6940         (function_arg_record_value_3): Likewise.
6941         (function_arg_record_value): Adjust to above changes.  Instantiate
6942         traverse_record_type on count_registers to first count the number of
6943         registers to be used and then on assign_registers to assign them.
6944         (function_arg_union_value): Adjust to above renaming.
6945         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
6946         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
6947         case of a structure passed in slot #15
6948         (sparc_function_arg_advance): Likewise.
6949         (function_arg_padding): Minor tweak.
6950
6951 2016-02-29  Richard Biener  <rguenther@suse.de>
6952
6953         PR tree-optimization/69720
6954         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
6955         the adjustment_def path for possibly vectorized defs.
6956         (vect_create_epilog_for_reduction): Handle vectorized initial
6957         defs properly.
6958
6959 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
6960
6961         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
6962
6963 2016-02-27  Jeff Law  <law@redhat.com>
6964
6965         Revert
6966         2016-02-26  Richard Biener  <rguenther@suse.de>
6967                     Jeff Law  <law@redhat.com>
6968
6969         PR tree-optimization/69740
6970         * cfghooks.c (remove_edge): Request loop fixups if we delete
6971         an edge that might turn an irreducible loop into a natural
6972         loop.
6973
6974 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
6975
6976         PR rtl-optimization/69896
6977         * tree-vect-generic.c (get_compute_type): Avoid single element
6978         vector types.
6979
6980 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
6981
6982         Rename the AArch64 tuning option and related functions to enable the
6983         Newton series for the reciprocal square root to reflect its
6984         approximative characteristic.
6985
6986         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
6987         function to "aarch64_emit_approx_rsqrt".
6988         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
6989         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
6990         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
6991         (xgene1_tunings): Likewise.
6992         (use_rsqrt_p): Likewise.
6993         (aarch64_emit_swrsqrt): Use new function name.
6994         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
6995         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
6996         text explaining this option.
6997         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
6998
6999 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
7000
7001         PR target/69969
7002         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
7003         complain about -mallow-movmisalign without -mvsx if
7004         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
7005
7006 2016-02-26  Joel Sherrill  <joel@rtems.org>
7007
7008         * config.gcc: Add x86_64-*-rtems*.
7009         * gcc/config/i386/rtems-64.h: New file.
7010
7011 2016-02-26  Joel Sherrill  <joel@rtems.org>
7012
7013         * config.gcc: Add aarch64-*-rtems*.
7014         * gcc/config/aarch64/rtems.h: New file.
7015
7016 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
7017
7018         PR target/69946
7019         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
7020         shift amount using %h.  Add comment.
7021
7022 2016-02-26  Richard Biener  <rguenther@suse.de>
7023             Jeff Law  <law@redhat.com>
7024
7025         PR tree-optimization/69740
7026         * cfghooks.c (remove_edge): Request loop fixups if we delete
7027         an edge that might turn an irreducible loop into a natural
7028         loop.
7029
7030 2016-02-26  Martin Jambor  <mjambor@suse.cz>
7031
7032         PR middle-end/69920
7033         * tree-sra.c (sra_modify_assign): Do not remove loads of
7034         uninitialized aggregates to SSA_NAMEs.
7035
7036 2016-02-26  Richard Henderson  <rth@redhat.com>
7037
7038         PR target/69709
7039         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
7040         pseudo in case the target rtx matches the source of the left
7041         shift.
7042
7043 2016-02-26  Martin Jambor  <mjambor@suse.cz>
7044
7045         PR hsa/69568
7046         * hsa.h (hsa_type_packed_p): Declare.
7047         * hsa.c (hsa_type_packed_p): New function.
7048         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
7049         loads.
7050         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
7051         * hsa-brig.c (emit_basic_insn): Likewise.
7052
7053 2016-02-26  Martin Jambor  <mjambor@suse.cz>
7054
7055         pr hsa/69674
7056         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
7057         pointers.
7058         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
7059
7060 2016-02-26  Martin Jambor  <mjambor@suse.cz>
7061
7062         * hsa.h (is_a_helper): New overload for hsa_op_immed for
7063         hsa_op_with_type operands.
7064         (hsa_unsigned_type_for_type): Declare.
7065         * hsa.c (hsa_unsigned_type_for_type): New function.
7066         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
7067         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
7068         the finalizer.  Do not emit extra move.
7069
7070 2016-02-26  Martin Jambor  <mjambor@suse.cz>
7071
7072         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
7073         atomic operations in private segment.
7074
7075 2016-02-26  Martin Jambor  <mjambor@suse.cz>
7076
7077         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
7078         statements to wi->info.  Also disallow omp simd constructs.
7079         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
7080         for not gridifying.  Dump special string for omp_for.
7081
7082 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7083
7084         PR target/69245
7085         * config/aarch64/aarch64.c (aarch64_set_current_function):
7086         Save/restore target globals when switching to
7087         target_option_default_node.
7088
7089 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7090
7091         PR target/69613
7092         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
7093         Return 0 if !SHIFT_COUNT_TRUNCATED.
7094
7095 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
7096             Eric Botcazou  <ebotcazou@adacore.com>
7097
7098         PR rtl-optimization/69891
7099         * dse.c (scan_insn): If we can't figure out memset arguments
7100         or they are non-constant, call clear_rhs_from_active_local_stores.
7101
7102 2016-02-26  Martin Liska  <mliska@suse.cz>
7103
7104         * doc/extend.texi: Mention clog10, clog10f an clog10l
7105         in Builtins section.
7106
7107 2016-02-26  Martin Liska  <mliska@suse.cz>
7108
7109         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
7110         CHECKING_P.
7111         (resolve_args_picking_1): Likewise.
7112         * dwarf2out.h (struct GTY): Likewise.
7113
7114 2016-02-26  Martin Liska  <mliska@suse.cz>
7115
7116         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
7117         with flag_checking.
7118         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
7119
7120 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
7121             Martin Liska  <mliska@suse.cz>
7122
7123         * doc/install.texi: Mention --enable-valgrind-annotations.
7124
7125 2016-02-26  Richard Biener  <rguenther@suse.de>
7126
7127         PR tree-optimization/69551
7128         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
7129         looking through aliases adjust DECL_PT_UID to refer to the
7130         ultimate alias target.
7131
7132 2016-02-25  Martin Liska  <mliska@suse.cz>
7133
7134         PR middle-end/69919
7135         * alloc-pool.c (after_memory_report): New variable.
7136         * alloc-pool.h (base_pool_allocator ::release): Do not use
7137         the infrastructure if after_memory_report.
7138         * toplev.c (toplev::main): Mark after memory report.
7139
7140 2016-02-25  Richard Biener  <rguenther@suse.de>
7141
7142         PR tree-optimization/48795
7143         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
7144
7145 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
7146
7147         PR driver/68463
7148         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
7149         offloading is enabled and -fopenacc or -fopenmp is specified.
7150         (CRTOFFLOADEND): Likewise.
7151         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
7152         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
7153         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
7154         (offload_objects_file_name): New static var.
7155         (tool_cleanup): Remove offload_objects_file_name file.
7156         (find_offloadbeginend): Replace with ...
7157         (find_crtoffloadtable): ... this.
7158         (run_gcc): Remove offload_argc and offload_argv.
7159         Get offload_objects_file_name from -foffload-objects=... option.
7160         Read names of object files with offload from this file, pass them to
7161         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
7162         don't pass offloadbegin and offloadend to the linker.  Don't pass
7163         offload non-LTO files to the linker, because now they're not claimed.
7164
7165 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
7166
7167         PR ipa/69630
7168         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
7169         on builtin_unreachable.
7170
7171 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
7172
7173         PR rtl-optimization/69896
7174         * regcprop.c: Include cfgrtl.h.
7175         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
7176         than remembered mode, either delete it (if noop_move_p), or
7177         treat like copy_p but not noop_p instruction.
7178
7179 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
7180
7181         PR debug/69705
7182         * dwarf2out.c (gen_variable_die): Work around buggy LTO
7183         - allow NULL decl for Fortran DW_TAG_common_block variables.
7184
7185 2016-02-24  Jason Merrill  <jason@redhat.com>
7186
7187         * common.opt (flifetime-dse): Add -flifetime-dse=1.
7188
7189 2016-02-24  Richard Biener  <rguenther@suse.de>
7190             Jakub Jelinek  <jakub@redhat.com>
7191
7192         PR middle-end/69760
7193         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
7194         conditionally executed ops to well-defined overflow behavior.
7195
7196 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
7197
7198         PR middle-end/69915
7199         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
7200         elements.
7201
7202 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7203
7204         PR rtl-optimization/69886
7205         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
7206         argument.  Use it when checking validity of set instructions.
7207         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
7208         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
7209         callsite.
7210         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
7211         * store-motion.c (find_moveable_store): Update
7212         can_assign_to_reg_without_clobbers_p callsite.
7213
7214 2016-02-24  Richard Biener  <rguenther@suse.de>
7215
7216         PR middle-end/68963
7217         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
7218         bogus check.
7219         (record_nonwrapping_iv): Do not fall back to the low/high bound
7220         for non-constant IV bases if the stmt is not always executed.
7221
7222 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7223
7224         * config/arm/arm-cores.def (cortex-a32): New entry.
7225         * config/arm/arm-tables.opt: Regenerate.
7226         * config/arm/arm-tune.md: Regenerate.
7227         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
7228         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
7229         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
7230         for -mcpu and -mtune.
7231
7232 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7233
7234         PR target/69875
7235         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
7236         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
7237         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
7238         (atomic_loaddi_1): Delete.
7239         (atomic_loaddi): Rewrite expander using the above changes.
7240
7241 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
7242
7243         PR c/69918
7244         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
7245         2 to 3.
7246
7247 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
7248             Richard Biener  <rguenth@suse.de>
7249
7250         PR middle-end/69909
7251         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
7252         set_mem_attributes if tem is SSA_NAME which got expanded
7253         as a MEM.
7254
7255 2016-02-24  Richard Biener  <rguenther@suse.de>
7256
7257         PR tree-optimization/69907
7258         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
7259         end of permutations for BB vectorization.
7260
7261 2016-02-24  Christian Bruel  <christian.bruel@st.com>
7262
7263         * config/arm/arm-c.c (arm_option_override): Initialize
7264         target_option_current_node.
7265         * config/arm/arm.c (arm_pragma_target_parse): Replace
7266         build_target_option_node call by target_option_current_node.
7267         Set target_option_current_node.
7268         Fix comments.
7269
7270 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
7271
7272         PR target/69810
7273         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
7274         define_insn_and_split to define_insn.
7275         (zero_extendqi<mode>2_dot2): Same.
7276         (extendqi<mode>2_dot): Same.
7277         (extendqi<mode>2_dot2): Same.
7278
7279 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
7280
7281         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
7282         and add bypass for AES{D,E} and AESMC pairs.
7283         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
7284         and AESMC pairs.
7285
7286 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
7287
7288         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
7289         series for reciprocal square root in Exynos M1.
7290
7291 2016-02-23  Martin Sebor  <msebor@redhat.com>
7292
7293         PR c/69759
7294         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
7295         __builtin_alloca_with_align.
7296
7297 2016-02-23  Richard Henderson  <rth@redhat.com>
7298
7299         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
7300         (ix86_register_pragmas): Remove __seg_tls.
7301         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
7302         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
7303         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
7304         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
7305         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
7306         * doc/extend.texi (__seg_tls): Remove item.
7307
7308 2016-02-23  Richard Biener  <rguenther@suse.de>
7309
7310         * alloc-pool.h (struct allocation_object): Make id member
7311         conditional on CHECKING_P again.
7312         (get_instance): Adjust.
7313         (base_pool_allocator): Likewise.
7314
7315 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
7316
7317         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
7318         (parallelize_loops): In OpenACC kernels mode, set n_threads to
7319         zero.
7320         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
7321         flag_openacc.
7322         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
7323
7324 2016-02-23  Richard Biener  <rguenther@suse.de>
7325
7326         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
7327         * bitmap.h (struct bitmap_usage): Likewise.
7328         (bitmap_move): Declare.
7329         * bitmap.c (register_overhead): Take size_t argument.
7330         (bitmap_move): New function.
7331         * df-problems.c (df_rd_transfer_function): Use bitmap_move
7332         to properly account overhead.
7333         * tree.c (free_node): Use tree_size.
7334
7335 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
7336
7337         PR c++/69902
7338         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
7339         when inverting comparison.
7340
7341         PR c/69900
7342         * common.opt (Wunreachable-code): Add Warning flag.
7343
7344 2016-02-23  Mark Wielaard  <mjw@redhat.com>
7345             Jakub Jelinek  <jakub@redhat.com>
7346
7347         PR c/69911
7348         * cgraphunit.c (check_global_declaration): Check main_input_filename
7349         and DECL_SOURCE_FILE are not NULL.
7350
7351 2016-02-23  Martin Jambor  <mjambor@suse.cz>
7352
7353         PR tree-optimization/69666
7354         * tree-sra.c (sra_modify_assign): Do not attempt to create
7355         default_def replacements for unscalarizable regions.
7356
7357 2016-02-20  Mark Wielaard  <mjw@redhat.com>
7358
7359         PR c/28901
7360         * cgraphunit.c (check_global_declaration): Check level of
7361         warn_unused_const_variable and main_input_filename.
7362         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
7363         (-Wunused-variable): For C implies -Wunused-const-variable=1.
7364         (-Wunused-const-variable): Explain levels 1 and 2.
7365
7366 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
7367
7368         PR target/69888
7369         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
7370         identical arguments.  Formatting and spelling fixes.
7371
7372         PR target/69885
7373         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
7374         be specified.
7375
7376         PR target/69894
7377         PR target/69895
7378         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
7379         and m68k-devices.def.
7380         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
7381         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
7382
7383 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
7384
7385         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
7386         and HImode registers.
7387
7388 2016-02-22  Richard Biener  <rguenther@suse.de>
7389
7390         PR tree-optimization/69882
7391         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
7392         preserve permutations present because of gaps.
7393         (vect_supported_load_permutation_p): Always continue checking
7394         permutations after vect_attempt_slp_rearrange_stmts.
7395
7396 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
7397
7398         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
7399         min_profitable_estimate, rather than min_profitable_iters.
7400
7401 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
7402
7403         PR target/69885
7404         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
7405         SImode for last match_operand.
7406
7407 2016-02-22  Martin Liska  <mliska@suse.cz>
7408
7409         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
7410         return bitsize - 1 as the return value.
7411
7412 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
7413
7414         PR target/69806
7415         PR target/54089
7416         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
7417         Handle negative shift counts.
7418         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
7419         force_reg on the shift constant.
7420         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
7421         (lshrsi3_d): Handle negative shift counts.
7422
7423 2016-02-22  Richard Biener  <rguenther@suse.de>
7424             Tom de Vries  <tom@codesourcery.com>
7425
7426         * graph.c: Include dumpfile.h.
7427         (print_graph_cfg): Split into three overloads.
7428         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
7429
7430 2016-02-22  Tom de Vries  <tom@codesourcery.com>
7431
7432         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
7433         dump-fn.
7434
7435 2016-02-22  Richard Biener  <rguenther@suse.de>
7436
7437         PR ipa/37448
7438         * ipa-inline-transform.c (inline_call): When not updating
7439         overall summaries adjust self size by the growth estimate.
7440         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
7441         hash-set, do not update overall summaries here.  Renamed from ...
7442         (inline_to_all_callers): ... this which is now wrapping the
7443         above and performing delayed overall summary update.
7444         (early_inline_small_functions): Delay updating of the overall
7445         summary.
7446
7447 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7448
7449         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
7450         variable.
7451
7452 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
7453
7454         PR driver/69805
7455         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
7456         :%* in %:gt() argument.
7457         (greater_than_spec_func): Adjust for expecting only numbers,
7458         if there are more than two numbers, compare the last two.
7459
7460 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
7461
7462         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
7463         -Wnarrowing with -std.
7464
7465 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
7466
7467         PR c++/69851
7468         * expr.c (store_field): Don't use bit-field path if exp is
7469         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
7470         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
7471         and the assignment can be performed by bitwise copy.  Formatting
7472         fix.
7473
7474         PR middle-end/69838
7475         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
7476         call copy_reg_eh_region_note_forward on before and/or after sequences
7477         and remove note from insn if it no longer can throw.
7478
7479         PR target/69820
7480         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
7481         if TARGET_AVX512BW.
7482
7483 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7484
7485         * config/s390/vector.md: Add missing commutative operand markers
7486         to the patterns which qualify for one.
7487         * config/s390/vx-builtins.md: Likewise.
7488
7489 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7490
7491         * config/s390/vector.md (VI, VI_QHS): Add single element vector
7492         types to mode iterators.
7493         (vec_double): ... and mode attribute.
7494         * config/s390/vx-builtins.md (non_vec_int): Likewise.
7495
7496 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7497
7498         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
7499         Change the predicate of op2 from nonimmediate to general and let
7500         reload fix it if necessary.
7501
7502 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7503
7504         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
7505
7506 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7507
7508         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
7509         mode.
7510
7511 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7512
7513         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
7514         * config/s390/s390.c (s390_expand_vec_movstr): New function.
7515         * config/s390/s390.md ("movstr<P:mode>"): Call
7516         s390_expand_vec_movstr.
7517
7518 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7519
7520         * config/s390/s390.md: Add missing output modifier for operand 1
7521         to print it as address properly.
7522
7523 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7524
7525         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
7526         * config/s390/2964.md: New file.
7527         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
7528         of insn grouping attributes depending on the CPU level.
7529         (s390_get_unit_mask): New function.
7530         (s390_sched_score): Remove the OOO from the scheduling macros.
7531         Add loop to calculate a score for the instruction mix.
7532         (s390_sched_reorder): Likewise plus improve debug output.
7533         (s390_sched_variable_issue): Rename macros as above.  Calculate
7534         the unit distances after actually scheduling an insn.  Improve
7535         debug output.
7536         (s390_sched_init): Clear last_scheduled_unit_distance array.
7537         * config/s390/s390.md: Include 2964.md.
7538
7539 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
7540
7541         PR target/69671
7542         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
7543         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
7544         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
7545         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
7546         *avx512f_<code>v8div16qi2_mask_1): New insns.
7547
7548 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
7549
7550         PR target/68404
7551         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
7552         2016-02-09 change.
7553
7554         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
7555         earlyclobber from target.  Use wF constraint for fused memory
7556         address.
7557         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
7558
7559 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
7560             Martin Liska  <mliska@suse.cz>
7561
7562         PR sanitizer/69863
7563         * cfgexpand.c (asan_sanitize_stack_p): New function.
7564         (partition_stack_vars): Use the function.
7565         (expand_stack_vars): Likewise.
7566         (defer_stack_allocation): Likewise.
7567         (expand_used_vars): Likewise.
7568
7569 2016-02-18  Richard Biener  <rguenther@suse.de>
7570
7571         PR middle-end/69553
7572         * fold-const.c (operand_equal_p): Properly compare offsets for
7573         IMAGPART_EXPR and ARRAY_REF.
7574
7575 2016-02-18  Nick Clifton  <nickc@redhat.com>
7576
7577         PR target/62254
7578         PR target/69610
7579         * config/arm/arm.c (arm_option_override_internal): Disable
7580         interworking if the target does not support thumb instructions.
7581         (arm_reload_in_hi): Handle the case where a register to register
7582         move needs reloading because there is no simple pattern to handle
7583         it.
7584         (arm_reload_out_hi): Likewise.
7585
7586 2016-02-18  Richard Biener  <rguenther@suse.de>
7587
7588         PR middle-end/69854
7589         * match.pd: Don't use fold_binary or fold_unary for folding
7590         constants.
7591
7592 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
7593
7594         PR c++/69850
7595         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
7596         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
7597         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
7598         warn on gimple_no_warning_p statements.
7599
7600 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
7601
7602         * doc/extend.texi (C++ Attributes): Correct description of
7603         warn_unused type attribute.
7604
7605 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7606
7607         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
7608         correct instruction.
7609
7610 2016-02-17  Richard Biener  <rguenther@suse.de>
7611
7612         PR rtl-optimization/69609
7613         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
7614         (find_traces_1_round): When ending a trace update cached priority
7615         of successors.
7616         (bb_to_key): Use cached priority when available.
7617         (copy_bb): Initialize cached priority.
7618         (reorder_basic_blocks_software_trace_cache): Likewise.
7619
7620 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7621
7622         PR target/69161
7623         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
7624         New predicate.
7625         (aarch64_comparison_operator): Break overly long line into two.
7626         (aarch64_comparison_operation): Likewise.
7627         * config/aarch64/aarch64.md (cstorecc4): Use
7628         aarch64_comparison_operator_mode instead of
7629         aarch64_comparison_operator.
7630         (cstore<mode>4): Likewise.
7631         (aarch64_cstore<mode>): Likewise.
7632         (*cstoresi_insn_uxtw): Likewise.
7633         (cstore<mode>_neg): Likewise.
7634         (*cstoresi_neg_uxtw): Likewise.
7635
7636 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7637
7638         PR target/69161
7639         * config/arm/predicates.md (arm_comparison_operator_mode):
7640         New predicate.
7641         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
7642         instead of arm_comparison_operator.
7643         (*mov_negscc): Likewise.
7644         (*mov_notscc): Likewise.
7645         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
7646         (*thumb2_mov_negscc): Likewise.
7647         (*thumb2_mov_negscc_strict_it): Likewise.
7648         (*thumb2_mov_notscc): Likewise.
7649         (*thumb2_mov_notscc_strict_it): Likewise.
7650
7651 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
7652
7653         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
7654         Add missing return.
7655
7656 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
7657
7658         * config/visium/visium.c (machine_libfunc_index): New enum.
7659         (machine_libfuncs): New structure.
7660         (visium_libfuncs): New static variable.
7661         (TARGET_INIT_LIBFUNCS): Define to...
7662         (visium_init_libfuncs): ...this.  New function.
7663         (expand_block_move_4): Use the appropriate libfunc.
7664         (expand_block_move_2): Likewise.
7665         (expand_block_move_1): Likewise.
7666         (expand_block_set_4): Likewise.
7667         (expand_block_set_2): Likewise.
7668         (expand_block_set_1): Likewise.
7669         (visium_trampoline_init): Likewise.
7670
7671 2016-02-17  Nick Clifton  <nickc@redhat.com>
7672
7673         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
7674         TI's devices.csv file as of March 2016.
7675
7676 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7677
7678         PR Target/48344
7679         * opts-global.c (handle_common_deferred_options): Introduce and
7680         initialize two global variables to remember command-line options
7681         specifying a stack-limiting register.
7682         * opts.h: Add extern declarations of the two new global variables.
7683         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
7684         variable based on the values of the two new global variables.
7685
7686 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7687
7688         PR c/69835
7689         * common.opt (Wnonnull-compare): New warning.
7690         * doc/invoke.texi (-Wnonnull): Remove text about comparison
7691         of arguments against NULL.
7692         (-Wnonnull-compare): Document.
7693         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
7694         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
7695         * passes.def (pass_warn_nonnull_compare): Add.
7696         * gimple-ssa-nonnull-compare.c: New file.
7697
7698 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7699
7700         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
7701         AARCH64_EXTRA_TUNE_RECIP_SQRT.
7702
7703 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7704
7705         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
7706         reciprocal sqrt for -mlow-precision-recip-sqrt.
7707
7708 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7709             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7710
7711         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
7712         always use lane loads to construct non-constant vectors.
7713
7714 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
7715
7716         * config/aarch64/aarch64.md
7717         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
7718         constraints for operand 3.
7719         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
7720
7721 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7722             Richard Biener  <rguenther@suse.de>
7723
7724         PR tree-optimization/69820
7725         * tree-vect-patterns.c (type_conversion_p): Return false if
7726         *orig_type is unsigned single precision or boolean.
7727         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
7728         Formatting fix.
7729
7730 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7731
7732         PR rtl-optimization/69764
7733         PR rtl-optimization/69771
7734         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
7735         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
7736
7737 2016-02-16  Richard Biener  <rguenther@suse.de>
7738
7739         PR tree-optimization/69776
7740         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
7741         sets from caller.
7742         (indirect_refs_may_alias_p): Likewise.
7743         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
7744         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
7745         according to tbaa_p.
7746         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
7747         (optimize_stmt): For redundant store discovery do not allow tbaa.
7748
7749 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
7750
7751         PR tree-optimization/69714
7752         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
7753         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
7754
7755 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
7756
7757         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
7758         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
7759         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
7760         * config/arc/arc.c (arc_init): Check FPU options.
7761         (get_arc_condition_code): Handle new CC_FPU* modes.
7762         (arc_select_cc_mode): Likewise.
7763         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
7764         register pair only. Allow access for ARCv2 accumulator.
7765         (gen_compare_reg): Whenever we have FPU support use FPU compare
7766         instructions.
7767         (arc_reorg): Don't generate brcc insns when FPU compare
7768         instructions are involved.
7769         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
7770         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
7771         floating point emulation.
7772         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
7773         (REVERSE_CONDITION): Add new CC_FPU* modes.
7774         (TARGET_FP_SP_BASE): Define.
7775         (TARGET_FP_DP_BASE): Likewise.
7776         (TARGET_FP_SP_FUSED): Likewise.
7777         (TARGET_FP_DP_FUSED): Likewise.
7778         (TARGET_FP_SP_CONV): Likewise.
7779         (TARGET_FP_DP_CONV): Likewise.
7780         (TARGET_FP_SP_SQRT): Likewise.
7781         (TARGET_FP_DP_SQRT): Likewise.
7782         (TARGET_FP_DP_AX): Likewise.
7783         * config/arc/arc.md (ARCV2_ACC): New constant.
7784         (type): New fpu type attribute.
7785         (SDF): Conditional iterator.
7786         (cstore<mode>, cbranch<mode>): Change expand condition.
7787         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
7788         handles FPU/FPX cases as well.
7789         * config/arc/arc.opt (mfpu): New option.
7790         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
7791         Renamed.
7792         (adddf3, muldf3, subdf3): Removed.
7793         * config/arc/predicates.md (proper_comparison_operator): Recognize
7794         CC_FPU* modes.
7795         * config/arc/fpu.md: New file.
7796         * doc/invoke.texi (ARC Options): Document mfpu option.
7797
7798 2016-02-16  Richard Biener  <rguenther@suse.de>
7799
7800         PR rtl-optimization/69291
7801         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
7802         noce_operand_ok check.
7803
7804 2016-02-16  Tom de Vries  <tom@codesourcery.com>
7805
7806         PR lto/67709
7807         * omp-low.c (simd_clone_create): Remove call to
7808         symtab->call_cgraph_insertion_hooks.
7809
7810 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
7811
7812         PR tree-optimization/69802
7813         * tree-ssa-reassoc.c (update_range_test): If op is
7814         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
7815         op == 1 test of precision 1 integral op, otherwise handle
7816         that case as op itself.  Fix up formatting.
7817         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
7818         up formatting.
7819
7820 2016-02-16  Richard Biener  <rguenther@suse.de>
7821
7822         PR tree-optimization/69586
7823         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
7824         types for conversion sources.
7825
7826 2016-02-16  Richard Biener  <rguenther@suse.de>
7827
7828         PR middle-end/69801
7829         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
7830         mask OEP_ADDRESS_OF.
7831
7832 2016-02-16  Alan Modra  <amodra@gmail.com>
7833
7834         PR target/68973
7835         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
7836         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
7837         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
7838         (p8_mtvsrwz): New.
7839         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
7840         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
7841         (p8_fmrgow_<mode>): Likewise.
7842         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
7843         changes.
7844         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
7845         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
7846         to use movdi_internal64.  Remove op0_di.
7847         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
7848
7849 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
7850
7851         Add support for the FCCMP insn types
7852
7853         * config/aarch64/aarch64.md (fccmp): Change insn type.
7854         (fccmpe): Likewise.
7855         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
7856         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
7857         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
7858         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
7859         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
7860         * config/arm/types.md (fccmps): Add new insn type.
7861         (fccmpd): Likewise.
7862
7863 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7864
7865         * alias.c (get_alias_set): Fix a typo in comment.
7866
7867 2016-02-15  Richard Biener  <rguenther@suse.de>
7868
7869         PR tree-optimization/69595
7870         * match.pd: Complete range test simplification to true.
7871
7872 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
7873
7874         PR rtl-optimization/69648
7875         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
7876         pic_offset_table_rtx.
7877
7878         PR rtl-optimization/69752
7879         * ira.c (update_equiv_regs): When looking for more than a single SET,
7880         also take other side effects into account.
7881
7882 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
7883
7884         * config/s390/s390.c (s390_function_profiler): Add a new sequence
7885         for z900+ CPUs in 31-bit mode.
7886
7887 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
7888
7889         * common/config/s390/s390-common.c (s390_supports_split_stack):
7890         New function.
7891         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
7892         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
7893         * config/s390/s390.c (struct machine_function): New field
7894         split_stack_varargs_pointer.
7895         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
7896         in s390_emit_prologue.
7897         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
7898         vararg pointer.
7899         (morestack_ref): New global.
7900         (SPLIT_STACK_AVAILABLE): New macro.
7901         (s390_expand_split_stack_prologue): New function.
7902         (s390_live_on_entry): New function.
7903         (s390_va_start): Use split-stack vararg pointer if appropriate.
7904         (s390_asm_file_end): Emit the split-stack note sections.
7905         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
7906         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
7907         (UNSPECV_SPLIT_STACK_CALL): New unspec.
7908         (UNSPECV_SPLIT_STACK_DATA): New unspec.
7909         (split_stack_prologue): New expand.
7910         (split_stack_space_check): New expand.
7911         (split_stack_data): New insn.
7912         (split_stack_call): New expand.
7913         (split_stack_call_*): New insn.
7914         (split_stack_cond_call): New expand.
7915         (split_stack_cond_call_*): New insn.
7916
7917 2016-02-15  Richard Biener  <rguenther@suse.de>
7918
7919         PR tree-optimization/69783
7920         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7921         Add trivially correct cases.
7922
7923 2016-02-15  Tom de Vries  <tom@codesourcery.com>
7924
7925         PR lto/69655
7926         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
7927         do_force_output.
7928         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
7929
7930 2016-02-15  Richard Biener  <rguenther@suse.de>
7931
7932         PR tree-optimization/69776
7933         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
7934         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
7935         indicate whether we can use TBAA to disambiguate against stores.
7936         Use alias-set zero if not.
7937         (visit_reference_op_store): Do not use TBAA when looking up
7938         redundant stores.
7939         * tree-ssa-pre.c (compute_avail): Use TBAA here.
7940         (eliminate_dom_walker::before_dom_children): But not when looking
7941         up redundant stores.
7942
7943 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
7944
7945         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
7946
7947 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7948
7949         *  config/i386/znver1.md
7950         (znver1_pop, znver1_pop_mem,
7951         znver1_load_imov_double_store,
7952         znver1_load_imov_direct_store,
7953         znver1_load_imov_direct_load,
7954         znver1_load_imov_double_load): Add new.
7955         (znver1_insn, znver1_insn_load): Add icmov type.
7956         (znver1_sseavx_fma,
7957         znver1_sseavx_fma_load,
7958         znver1_avx256_fma,
7959         znver1_avx256_fma_load): Fix pipe usage.
7960
7961 2016-02-14  Alan Modra  <amodra@gmail.com>
7962
7963         PR target/68973
7964         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
7965         with an invalid hard reg, reload just the reg not the entire
7966         pre/post-inc/dec address expression.
7967
7968 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
7969
7970         PR target/67260
7971         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
7972         fixed R1_REG scratch reg.
7973         (sibcall_value_pcrel_fdpic): Likewise.
7974
7975 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
7976
7977         PR target/67636
7978         PR target/64345
7979         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
7980
7981 2016-02-12  Walter Lee  <walt@tilera.com>
7982
7983         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
7984         * config/tilegx/t-tilegx: Likewise.
7985
7986 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
7987
7988         PR other/69554
7989         * diagnostic-show-locus.c (struct line_span): New struct.
7990         (layout::get_first_line): Delete.
7991         (layout::get_last_line): Delete.
7992         (layout::get_num_line_spans): New member function.
7993         (layout::get_line_span): Likewise.
7994         (layout::print_heading_for_line_span_index_p): Likewise.
7995         (layout::get_expanded_location): Likewise.
7996         (layout::calculate_line_spans): Likewise.
7997         (layout::m_first_line): Delete.
7998         (layout::m_last_line): Delete.
7999         (layout::m_line_spans): New field.
8000         (layout::layout): Update comment.  Replace m_first_line and
8001         m_last_line with m_line_spans, replacing their initialization
8002         with a call to calculate_line_spans.
8003         (diagnostic_show_locus): When printing source lines and
8004         annotations, rather than looping over a single span
8005         of lines, instead loop over each line_span within
8006         the layout, with an inner loop over the lines within them.
8007         Call the context's start_span callback when changing line spans.
8008         * diagnostic.c (diagnostic_initialize): Initialize start_span.
8009         (diagnostic_build_prefix): Break out the building of the location
8010         part of the string into...
8011         (diagnostic_get_location_text): ...this new function, rewriting
8012         it from nested ternary expressions to a sequence of "if"
8013         statements.
8014         (default_diagnostic_start_span_fn): New function.
8015         * diagnostic.h (diagnostic_start_span_fn): New typedef.
8016         (diagnostic_context::start_span): New field.
8017         (default_diagnostic_start_span_fn): New prototype.
8018
8019 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
8020
8021         PR driver/69779
8022         * gcc.c (driver::finalize): Fix cleanup of "specs".
8023
8024 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
8025
8026         PR driver/69265
8027         PR driver/69453
8028         * gcc.c (driver::driver): Initialize m_option_suggestions.
8029         (driver::~driver): Clean up m_option_suggestions.
8030         (suggest_option): Convert to...
8031         (driver::suggest_option): ...this, and split out into
8032         driver::build_option_suggestions and find_closest_string.
8033         (driver::build_option_suggestions): New function, from
8034         first half of suggest_option.  Special-case
8035         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
8036         the sanitizer_opts array.  For options of enum types, add the
8037         various enum values to the candidate strings.
8038         (driver::handle_unrecognized_options): Remove "const".
8039         * gcc.h (driver::handle_unrecognized_options): Likewise.
8040         (driver::build_option_suggestions): New decl.
8041         (driver::suggest_option): New decl.
8042         (driver::m_option_suggestions): New field.
8043         * opts-common.c (add_misspelling_candidates): New function.
8044         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
8045         and make non-static.
8046         * opts.h (sanitizer_opts): New array decl.
8047         (add_misspelling_candidates): New function decl.
8048         * spellcheck.c (find_closest_string): New function.
8049         * spellcheck.h (find_closest_string): New function decl.
8050
8051 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
8052
8053         PR rtl-optimization/69764
8054         PR rtl-optimization/69771
8055         * optabs.c (expand_binop_directly): For shift_optab_p, force
8056         convert_modes with VOIDmode if xop1 has VOIDmode.
8057
8058 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
8059
8060         PR target/69729
8061         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
8062         to correctly determine instrumentation thunks.
8063
8064 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
8065
8066         PR ipa/69241
8067         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
8068         type by reference, force lhs on the call.
8069
8070         PR ipa/68672
8071         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
8072         Compute retval and retbnd early in all cases if split_part_return_p
8073         and return_bb is not EXIT.  Remove all clobber stmts and reset
8074         all debug stmts that refer to SSA_NAMEs defined in split part,
8075         except if it is retval, in that case replace the old retval with the
8076         lhs of the call to the split part.
8077
8078 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
8079
8080         revert:
8081         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
8082
8083         PR middle-end/66726
8084         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
8085         whose result is used in PHI.
8086         (maybe_optimize_range_tests): Likewise.
8087         (final_range_test_p): Likweise.
8088
8089 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
8090
8091         PR middle-end/66726
8092         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
8093         whose result is used in PHI.
8094         (maybe_optimize_range_tests): Likewise.
8095         (final_range_test_p): Likweise.
8096
8097 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
8098
8099         * cgraph.c: Spelling fixes - behaviour -> behavior and
8100         neighbour -> neighbor.
8101         * target.def: Likewise.
8102         * sel-sched.c: Likewise.
8103         * config/mips/mips.c: Likewise.
8104         * config/arc/arc.md: Likewise.
8105         * config/arm/cortex-a57.md: Likewise.
8106         * config/arm/arm.c: Likewise.
8107         * config/arm/neon.md: Likewise.
8108         * config/arm/arm-c.c: Likewise.
8109         * config/vms/vms-c.c: Likewise.
8110         * config/s390/s390.c: Likewise.
8111         * config/i386/znver1.md: Likewise.
8112         * config/i386/i386.c: Likewise.
8113         * config/ia64/hpux-unix2003.h: Likewise.
8114         * config/msp430/msp430.md: Likewise.
8115         * config/rx/rx.c: Likewise.
8116         * config/rx/rx.md: Likewise.
8117         * config/aarch64/aarch64-simd.md: Likewise.
8118         * config/aarch64/aarch64.c: Likewise.
8119         * config/nvptx/nvptx.c: Likewise.
8120         * config/bfin/bfin.c: Likewise.
8121         * config/cris/cris.opt: Likewise.
8122         * config/rs6000/rs6000.c: Likewise.
8123         * target.h: Likewise.
8124         * spellcheck.c: Likewise.
8125         * ira-build.c: Likewise.
8126         * tree-inline.c: Likewise.
8127         * builtins.c: Likewise.
8128         * lra-constraints.c: Likewise.
8129         * explow.c: Likewise.
8130         * hwint.h: Likewise.
8131         * targhooks.c: Likewise.
8132         * tree-vect-data-refs.c: Likewise.
8133         * expr.c: Likewise.
8134         * doc/tm.texi: Likewise.
8135         * doc/extend.texi: Likewise.
8136         * doc/install.texi: Likewise.
8137         * doc/md.texi: Likewise.
8138         * tree-ssa-tail-merge.c: Likewise.
8139         * sched-int.h: Likewise.
8140         * match.pd: Likewise.
8141         * sched-ebb.c: Likewise.
8142         * target.def (omit_struct_return_reg): Likewise.
8143         * gimple-ssa-isolate-paths.c: Likewise.
8144         (find_implicit_erroneous_behaviour): Renamed to...
8145         (find_implicit_erroneous_behavior): ... this.
8146         (find_explicit_erroneous_behaviour): Renamed to...
8147         (find_explicit_erroneous_behavior): ... this.
8148         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
8149
8150 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
8151
8152         PR rtl-optimization/64682
8153         PR rtl-optimization/69567
8154         PR rtl-optimization/69737
8155         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
8156         in I2 as well, just lose it.
8157
8158 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8159
8160         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
8161         New variable.
8162         (aarch64_last_printed_tune_string): Likewise.
8163         (aarch64_declare_function_name): Only output .arch assembler
8164         directive if it will be different from the previously output
8165         directive.  Same for .tune comment but only if -dA is set.
8166         (aarch64_start_file): New function.
8167         (TARGET_ASM_FILE_START): Define.
8168
8169 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
8170
8171         PR plugins/69758
8172         * Makefile.in (PLUGIN_HEADERS): Add params.list.
8173
8174 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
8175
8176         PR target/65313
8177         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
8178         -Wmaybe-uninitialized warning.
8179
8180 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
8181
8182         PR target/69713
8183         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
8184
8185 2016-02-11  Richard Biener  <rguenther@suse.de>
8186
8187         PR rtl-optimization/69291
8188         * ifcvt.c (noce_try_store_flag_constants): Do not allow
8189         subexpressions affected by changing the result.
8190
8191 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
8192
8193         PR target/69148
8194         * lra-constraints.c (curr_insn_transform): Find in/out operands
8195         for secondary memory moves.  Update dups.
8196
8197 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
8198
8199         PR tree-optimization/69652
8200         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
8201         to nested loop, did source re-formatting, skip debug statements,
8202         add check on statement with volatile operand, remove dead scalar
8203         statements.
8204
8205 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
8206             Patrick Palka  <ppalka@gcc.gnu.org>
8207
8208         PR ipa/69241
8209         PR c++/69649
8210         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
8211         calls if the return type is TREE_ADDRESSABLE.
8212         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
8213         * ipa-split.c (split_function): Fix doubled "we" in comment.
8214         Use void return type for the split part even if
8215         !split_point->split_part_set_retval.
8216
8217 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
8218
8219         PR tree-optimization/68021
8220         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
8221         when computing the value of biv cand by itself.
8222
8223 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
8224
8225         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
8226         (cortexa57_tunings): Likewise.
8227         (cortexa72_tunings): Likewise.
8228         (arch_macro_fusion_pair_p): Add support for AES fusion.
8229         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
8230         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
8231         Allow virtual registers before reload so early scheduling works.
8232         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
8233         correct latency and pipeline.
8234         (cortex_a57_crypto_complex): Likewise.
8235         (cortex_a57_crypto_xor): Likewise.
8236         (define_bypass): Add AES bypass.
8237
8238 2016-02-10  Richard Biener  <rguenther@suse.de>
8239
8240         PR tree-optimization/69726
8241         * passes.def: Add DCE pass before late uninit.
8242         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
8243         really fixup if-conversions job.
8244
8245 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
8246
8247         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
8248         (arm_cortex_a57_tune): Likewise.
8249         (aarch_macro_fusion_pair_p): Add support for AES fusion.
8250         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
8251
8252 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
8253
8254         * timevar.def (TV_PHASE_DBGINFO): Delete.
8255         (TV_PHASE_CHECK_DBGINFO): Likewise.
8256         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
8257
8258 2016-02-10  Richard Biener  <rguenther@suse.de>
8259
8260         PR tree-optimization/69719
8261         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
8262         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
8263
8264 2016-02-09  Andrew Pinski  <apinski@cavium.com>
8265
8266         PR tree-opt/69282
8267         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
8268         get_vcond_mask_icode returns false.
8269
8270 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
8271
8272         PR target/68404
8273         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
8274         an ADDIS that adds a pointer to a large constant that sets the
8275         upper16 bits with a load operation.
8276
8277 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
8278
8279         PR target/68532
8280         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
8281         order.
8282         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
8283         endian.
8284         (vzipq_s16): Likewise.
8285         (vzipq_s32): Likewise.
8286         (vzipq_f32): Likewise.
8287         (vzipq_u8): Likewise.
8288         (vzipq_u16): Likewise.
8289         (vzipq_u32): Likewise.
8290         (vzipq_p8): Likewise.
8291         (vzipq_p16): Likewise.
8292
8293 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
8294
8295         PR target/68532
8296         * config/arm/arm.c (neon_endian_lane_map): New function.
8297         (neon_vector_pair_endian_lane_map): New function.
8298         (arm_evpc_neon_vuzp): Allow for big endian lane order.
8299         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
8300         endian.
8301         (vuzpq_s16): Likewise.
8302         (vuzpq_s32): Likewise.
8303         (vuzpq_f32): Likewise.
8304         (vuzpq_u8): Likewise.
8305         (vuzpq_u16): Likewise.
8306         (vuzpq_u32): Likewise.
8307         (vuzpq_p8): Likewise.
8308         (vuzpq_p16): Likewise.
8309
8310 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
8311
8312         PR target/69634
8313         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
8314         debug insns.
8315
8316 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
8317
8318         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
8319         truncate const_int operand 1 to QImode.
8320
8321 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
8322
8323         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
8324         corresponding to an abnormal edge.
8325
8326 2016-02-09  Tom de Vries  <tom@codesourcery.com>
8327
8328         PR tree-optimization/69599
8329         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
8330         function.
8331         (find_func_aliases_for_builtin_call, find_func_clobbers)
8332         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
8333         partition.
8334
8335 2016-02-09  Richard Biener  <rguenther@suse.de>
8336
8337         PR tree-optimization/69715
8338         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
8339         LHS on calls as non-rewritable.
8340
8341 2016-02-09  Tom de Vries  <tom@codesourcery.com>
8342
8343         PR lto/69707
8344         * lto-wrapper.c (append_diag_options): New function.
8345         (compile_offload_image): Call append_diag_options.
8346
8347 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
8348
8349         PR other/69722
8350         * doc/extend.texi (Flag Output Operands): Correct sectioning.
8351         Minor copy-edit to fix verb tenses.
8352
8353 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
8354
8355         PR tree-optimization/69209
8356         * ipa-split.c (split_function): If split part is not
8357         returning retval, retval has gimple type but is not
8358         gimple value, force it into a SSA_NAME first.
8359
8360 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
8361
8362         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
8363         outdated section.
8364
8365 2016-02-08  Jason Merrill  <jason@redhat.com>
8366
8367         PR c++/69631
8368         * convert.c (convert_to_integer_1): Check dofold on truncation
8369         distribution.
8370         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
8371         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
8372         Rename from *_nofold.
8373         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
8374         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
8375
8376 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
8377
8378         PR target/60410
8379         * tree.c (build_common_tree_nodes): Remove short_double argument.
8380         All callers changed.
8381         * tree.h (build_common_tree_nodes): Adjust declaration.
8382         * doc/invoke.texi (-fshort-double): Remove documentation.
8383         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8384         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
8385         * lto-wrapper.c (merge_and_complain, append_compiler_options)
8386         (append_linker_options): Don't handle OPT_fshort_double.
8387
8388         PR rtl-optimization/68730
8389         * lra-remat.c (insn_to_cand_activation): New static variable.
8390         (lra_remat): Allocate and free it.
8391         (create_cand): New arg activation. Initialize a field in
8392         insn_to_cand_activation if it is nonnull.
8393         (create_cands): Pass the activation insn to create_cand when making
8394         a candidate involving an output reload.  Reorganize code a little.
8395         (do_remat): Keep track of active status of candidates in a separate
8396         bitmap.
8397
8398 2016-02-08  Richard Biener  <rguenther@suse.de>
8399
8400         PR tree-optimization/69719
8401         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
8402         Properly use absolute of the difference of the two offsets to
8403         compare or adjust the segment length.
8404
8405 2016-02-08  Richard Biener  <rguenther@suse.de>
8406             Jeff Law  <law@redhat.com>
8407
8408         PR target/68273
8409         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
8410         types for anonymous SSA names.
8411
8412 2016-02-08   Richard Biener  <rguenther@suse.de>
8413
8414         PR rtl-optimization/69274
8415         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
8416
8417 2016-02-08  Jeff Law  <law@redhat.com>
8418
8419         PR tree-optimization/65917
8420         * tree-ssa-dom.c (record_temporary_equivalences): Record both
8421         equivalences from if (x == y) style conditionals.
8422         (loop_depth_of_name): Remove.
8423         (record_equality): Remove loop depth check.
8424         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
8425         (const_and_copies::record_const_or_copy_raw): New member function.
8426         * tree-ssa-scopedtables.c
8427         (const_and_copies::record_const_or_copy_raw): New, factored out of
8428         (const_and_copies::record_const_or_copy): Call new member function.
8429
8430 2016-02-05  Jeff Law  <law@redhat.com>
8431
8432         PR tree-optimization/68541
8433         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
8434         (count_stmts_in_block): New function.
8435         (poor_ifcvt_candidate_code): Likewise.
8436         (is_feasible_trace): Add some heuristics to determine when path
8437         splitting is profitable.
8438         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
8439         is a diamond with a single exit.
8440
8441 2016-02-05  Martin Sebor  <msebor@redhat.com>
8442
8443         PR c++/69662
8444         * doc/invoke.texi: Update -Wplacement-new to take an optional
8445         argument.
8446
8447 2016-02-06  Richard Henderson  <rth@redhat.com>
8448
8449         PR c/69643
8450         * tree.c (tree_nop_conversion_p): Do not strip casts into or
8451         out of non-standard address spaces.
8452
8453 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
8454
8455         PR rtl-optimization/69691
8456         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
8457
8458 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
8459
8460         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
8461         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
8462         (*ieee128_mfvsrd_64bit): Likewise.
8463         (*ieee128_mfvsrd_32bit): Likewise.
8464
8465 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
8466
8467         PR target/69369
8468         Revert r232560:
8469         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
8470
8471         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
8472         instrumented_version.
8473
8474 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
8475
8476         * doc/invoke.texi (Optimize Options): In table of --param options
8477         rename second occurrence of tracer-min-branch-ratio to
8478         tracer-min-branch-probability, rename
8479         tracer-min-branch-ratio-feedback to
8480         tracer-min-branch-probability-feedback and clarify description,
8481         rename sched-spec-state-edge-prob-cutoff to
8482         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
8483         to selsched-insns-to-rename, rename lto-minpartition to
8484         lto-min-partition, delete reorder-blocks-duplicate and
8485         reorder-blocks-duplicate-feedback.
8486
8487 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8488
8489         * config/s390/s390.c (s390_register_info_set_ranges): Remove
8490         superfluous loops.
8491
8492 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8493
8494         * doc/extend.texi: S/390: Correct some typos.
8495
8496 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8497
8498         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
8499
8500 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8501
8502         PR target/69625
8503         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
8504         (s390_register_info_gprtofpr): Use new macros above.
8505         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
8506         its name.
8507         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
8508         its name.  Adjust restore and save gpr ranges.
8509         (s390_register_info_set_ranges): New function.
8510         (s390_register_info): Use new macros above.  Call
8511         s390_register_info_set_ranges.
8512         (s390_optimize_register_info): Likewise.
8513         (s390_hard_regno_rename_ok): Use new macros.
8514         (s390_hard_regno_scratch_ok): Likewise.
8515         (s390_emit_epilogue): Likewise.
8516         (s390_can_use_return_insn): Likewise.
8517         (s390_optimize_prologue): Likewise.
8518         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
8519
8520 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
8521
8522         PR bootstrap/69677
8523         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
8524         alignment fixes.
8525         (ix86_option_override_internal): Disable TARGET_STV even for
8526         -m{incoming,preferred}-stack-boundary=3.
8527
8528 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8529
8530         * config.gcc: Mark deprecated rtems targets as obsolete.
8531
8532 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
8533
8534         PR rtl-optimization/64682
8535         PR rtl-optimization/69567
8536         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
8537         before I2 only if the register is both used and set in I2.
8538
8539 2016-02-04  DJ Delorie  <dj@redhat.com>
8540
8541         * config/msp430/msp430.c (msp430_start_function): Add function type.
8542
8543 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
8544
8545         PR fortran/69368
8546         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
8547
8548 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
8549
8550         PR rtl-optimization/69577
8551         Revert:
8552         2015-10-29  Richard Henderson  <rth@redhat.com>
8553
8554         PR target/68124
8555         PR rtl-opt/67609
8556         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
8557         sse check to the exact conditions of PR 67609.
8558
8559 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
8560
8561         PR target/69667
8562         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
8563         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
8564         not allowed into the traditional Altivec registers.
8565         (movtd_64bit_nodm): Likewise.
8566         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
8567
8568 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
8569
8570         * config/aarch64/cortex-a57-fma-steering.c
8571         (aarch64_register_fma_steering): Remove "static" from arguments
8572         to register_pass.
8573
8574 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
8575
8576         PR target/69619
8577         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
8578         twice when complex.
8579
8580 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
8581
8582         * doc/invoke.texi: Delete -mno-fma4.
8583
8584 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
8585
8586         PR rtl-optimization/69577
8587         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
8588         (find_subregs_of_mode): Update accordingly.  Iterate over partial
8589         definitions.
8590
8591 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
8592
8593         * config/arm/arm-protos.h (neon_reinterpret): Remove.
8594         * config/arm/arm.c (neon_reinterpret): Remove.
8595         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
8596         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
8597         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
8598         vreinterpretti): Remove.
8599         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
8600         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
8601         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
8602         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
8603         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
8604         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
8605         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
8606         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
8607         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
8608         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
8609         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
8610         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
8611         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
8612         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
8613         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
8614         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
8615         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
8616         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
8617         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
8618         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
8619         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
8620         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
8621         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
8622         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
8623         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
8624         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
8625         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
8626         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
8627         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
8628         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
8629         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
8630         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
8631         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
8632         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
8633         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
8634         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
8635         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
8636         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
8637         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
8638         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
8639         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
8640         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
8641         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
8642         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
8643         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
8644         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
8645         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
8646         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
8647         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
8648         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
8649         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
8650         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
8651         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
8652         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
8653         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
8654         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
8655         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
8656         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
8657         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
8658         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
8659         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
8660         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
8661         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
8662         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
8663         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
8664         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
8665         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
8666         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
8667         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
8668         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
8669         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
8670         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
8671         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
8672         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
8673         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
8674         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
8675         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
8676         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
8677         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
8678         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
8679         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
8680         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
8681         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
8682         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
8683         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
8684         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
8685         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
8686         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
8687         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
8688         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
8689         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
8690         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
8691         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
8692         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
8693         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
8694         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
8695         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
8696         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
8697         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
8698         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
8699         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
8700         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
8701         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
8702
8703 2016-02-04  Martin Liska  <mliska@suse.cz>
8704
8705         PR sanitizer/69276
8706         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
8707         that are gimple_store_p.
8708         (maybe_instrument_call): Likewise.
8709
8710 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
8711
8712         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
8713         register scaling out of memory reference and comment why.
8714
8715 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8716
8717         PR target/65932
8718         PR target/67714
8719         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
8720         folding the source of a SET.
8721
8722 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8723
8724         PR target/65932
8725         PR target/67714
8726         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
8727         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
8728
8729 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
8730
8731         PR target/65932
8732         PR target/67714
8733         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
8734         HImode.
8735
8736 2016-02-04  Christian Bruel  <christian.bruel@st.com>
8737
8738         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
8739         * config/arm/arm.c (arm_set_current_function): Likewise.
8740
8741 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
8742             Ilya Enkovich  <enkovich.gnu@gmail.com>
8743             H.J. Lu  <hongjiu.lu@intel.com>
8744
8745         PR target/69454
8746         * config/i386/i386.c (convert_scalars_to_vector): Remove
8747         stack alignment fixes.
8748         (ix86_option_override_internal): Disable TARGET_STV if stack
8749         might not be aligned enough.
8750         (ix86_minimum_alignment): Assert that TARGET_STV is false.
8751
8752 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
8753
8754         * gcc/config/i386/x86-tune.def: Disable default prefetching
8755         for -march=znver1.
8756
8757 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
8758             Vladimir Makarov  <vmakarov@redhat.com>
8759
8760         PR target/69461
8761         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
8762         in validating fused toc addresses.
8763
8764 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
8765
8766         PR c/69627
8767         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
8768         range->m_caret fields if range->m_show_caret_p is false.
8769
8770         PR target/69644
8771         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
8772         Force oldval into register if it does not satisfy reg_or_short_operand
8773         predicate.  Fix up formatting.
8774
8775 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
8776             Alexandre Oliva  <aoliva@redhat.com>
8777
8778         PR target/69461
8779         * lra-constraints.c (simplify_operand_subreg): Check additionally
8780         address validity after potential reloading.
8781         (process_address_1): Check insns validity.  In case of failure do
8782         nothing.
8783
8784 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
8785
8786         PR target/69118
8787         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
8788         Fix target.
8789
8790 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
8791
8792         * wide-int.cc (canonize_uhwi): New function.
8793         (wi::divmod_internal): Use it.
8794
8795 2016-02-02  James Norris  <jnorris@codesourcery.com
8796
8797         * gimplify.c (omp_notice_variable): Add usage check.
8798
8799 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
8800
8801         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
8802         like LE, GE, LT, GT when emitting relational operator.
8803
8804 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
8805
8806         * ira-costs.c (find_costs_and_classes): Add extra argument.
8807         * target.def (ira_change_pseudo_allocno_class): Add parameter.
8808         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
8809         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
8810         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
8811         Add best_class parameter, and return it if not ALL_REGS.
8812         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
8813         Add parameter.
8814         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
8815         Update target hook.
8816
8817 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
8818
8819         * config/aarch64/aarch64.c
8820         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
8821         (aarch64_ira_change_pseudo_allocno_class): New function.
8822
8823 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
8824
8825         PR target/67032
8826         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
8827
8828 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8829
8830         * config/avr/avr.c (avr_option_override): Set
8831         PARAM_ALLOW_STORE_DATA_RACES to 1.
8832
8833 2016-02-02  Richard Biener  <rguenther@suse.de>
8834
8835         PR tree-optimization/69595
8836         * match.pd: Add range test simplifications to true/false.
8837
8838 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
8839
8840         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
8841         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
8842         instead.
8843
8844 2016-02-02  Richard Biener  <rguenther@suse.de>
8845
8846         PR tree-optimization/69606
8847         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
8848         info on the result before moving a stmt.
8849
8850 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
8851
8852         PR middle-end/68542
8853         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
8854         branch with vector comparison.
8855         * config/i386/sse.md (VI48_AVX): New mode iterator.
8856         (define_expand "cbranch<mode>4): Add support for conditional branch
8857         with vector comparison.
8858         * tree-vect-loop.c (optimize_mask_stores): New function.
8859         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
8860         has_mask_store field of vect_info.
8861         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
8862         vectorized loops having masked stores after vec_info destroy.
8863         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
8864         correspondent macros.
8865         (optimize_mask_stores): Add prototype.
8866
8867 2016-02-02  Alan Modra  <amodra@gmail.com>
8868
8869         PR target/69548
8870         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
8871         allow subregs.
8872
8873 2016-02-02  Alan Modra  <amodra@gmail.com>
8874
8875         PR target/68662
8876         * config/rs6000/rs6000.c (need_toc_init): New var, set it
8877         whenever toc_label_name used.
8878         (rs6000_file_start): Don't set up toc section here,
8879         (rs6000_output_function_epilogue): do so here instead,
8880         (rs6000_xcoff_file_start): and here.
8881         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
8882         (load_toc_aix_di): Likewise.
8883
8884 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
8885
8886         PR rtl-optimization/69592
8887         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
8888         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
8889         (num_sign_bit_copies_binary_arith_p): New inline function.
8890         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
8891
8892 2016-02-01  Jeff Law  <law@redhat.com>
8893
8894         PR tree-optimization/69580
8895         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
8896         * tree-ssa-threadbackward.c
8897         (fsm_find_control_statement_thread_paths): Do not try to walk
8898         through large PHI nodes.
8899
8900 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
8901
8902         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
8903         when count is incremented above limit, don't analyze further
8904         insns afterwards.
8905
8906         * omp-low.c (oacc_parse_default_dims): Avoid
8907         -Wsign-compare warning, make sure value fits into int
8908         rather than just unsigned int.
8909
8910 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
8911
8912         PR tree-optimization/67921
8913         * fold-const.c (split_tree): New parameters.  Convert pointer
8914         type variable part to proper type before negating.
8915         (fold_binary_loc): Pass new arguments to split_tree.
8916
8917 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
8918
8919         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
8920         (nvptx_goacc_validate_dims): Extend to handle global defaults.
8921         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
8922         * doc/tm.texti: Rebuilt.
8923         * doc/invoke.texi (fopenacc-dim): Document.
8924         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
8925         (append_compiler_options): Likewise.
8926         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
8927         (oacc_parse_default_dims): New.
8928         (oacc_validate_dims): Add USED arg.  Select non-unity default when
8929         possible.
8930         (oacc_loop_fixed_partitions): Return mask of used partitions.
8931         (oacc_loop_auto_partitions): Emit dump info.
8932         (oacc_loop_partition): Return mask of used partitions.
8933         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
8934         loop partitioning and validation calls.
8935
8936 2016-02-01  Richard Biener  <rguenther@suse.de>
8937
8938         PR middle-end/69556
8939         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
8940
8941 2016-02-01  Richard Biener  <rguenther@suse.de>
8942
8943         PR tree-optimization/69574
8944         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
8945         of asserting return chrec_dont_know.
8946
8947 2016-02-01  Martin Liska  <mliska@suse.cz>
8948
8949         * mem-stats-traits.h: Add copyright header.
8950         * mem-stats.h: Likewise.
8951
8952 2016-02-01  Richard Biener  <rguenther@suse.de>
8953
8954         PR tree-optimization/69579
8955         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
8956         Do not propagate through abnormal PHI results.
8957
8958 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
8959
8960         * postreload.c (reload_cse_simplify): Remove dead code.
8961
8962 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
8963
8964         PR rtl-optimization/69570
8965         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
8966         if there is more than one set, not if there is a single set.
8967
8968 2016-02-01  Richard Henderson  <rth@redhat.com>
8969
8970         PR rtl-opt/69535
8971         * combine.c (make_compound_operation): When looking through a
8972         subreg, make sure to re-extend to the width of the outer mode.
8973
8974 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
8975
8976         PR tree-optimization/69546
8977         * wide-int.cc (wi::divmod_internal): For unsigned division
8978         where both operands fit into uhwi, if o1 is 1 and o0 has
8979         msb set, if divident_prec is larger than bits per hwi,
8980         clear another quotient word and return 2 instead of 1.
8981         Similarly for remainder with msb in HWI set, if dividend_prec
8982         is larger than bits per hwi.
8983
8984 2016-01-29  Martin Jambor  <mjambor@suse.cz>
8985
8986         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
8987         Use short lowercase names.
8988         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
8989         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
8990         acq_rel one.  Protect warning agains segfaults if
8991         get_memory_order_name returns NULL.
8992         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
8993         with release semantics.  Do not warn if get_memory_order already did.
8994         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
8995         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
8996         if get_memory_order already did.
8997
8998 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
8999
9000         * doc/install.texi: Document that isl-0.16 is supported.
9001
9002 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
9003
9004         PR target/69299
9005         * config/i386/constraints.md (Bm): Describe as special memory
9006         constraint.
9007         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
9008         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
9009         * genpreds.c (struct constraint_data): Add is_special_memory.
9010         (have_special_memory_constraints, special_memory_start): New
9011         static vars.
9012         (special_memory_end): Ditto.
9013         (add_constraint): Add new arg is_special_memory.  Add code to
9014         process its true value.  Update have_special_memory_constraints.
9015         (process_define_constraint): Pass the new arg.
9016         (process_define_register_constraint): Ditto.
9017         (choose_enum_order): Process special memory.
9018         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
9019         function insn_extra_special_memory_constraint.
9020         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
9021         * gensupport.c (process_rtx): Process
9022         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
9023         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
9024         * ira-lives.c (single_reg_class): Use
9025         insn_extra_special_memory_constraint.
9026         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
9027         * lra-constraints.c (process_alt_operands): Ditto.
9028         (curr_insn_transform): Use insn_extra_special_memory_constraint.
9029         * recog.c (asm_operand_ok, preprocess_constraints): Process
9030         CT_SPECIAL_MEMORY.
9031         * reload.c (find_reloads): Ditto.
9032         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
9033         * stmt.c (parse_input_constraint): Use
9034         insn_extra_special_memory_constraint.
9035
9036 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
9037
9038         PR target/69530
9039         * lra-splill.c (lra_final_code_change): Revert r229087 by
9040         removing all sub-registers.
9041
9042 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
9043
9044         PR target/65604
9045         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
9046
9047 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
9048
9049         PR target/69551
9050         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
9051         SSE1, copy target into the temporary reg first before recursing
9052         on it.
9053
9054 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
9055
9056         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
9057         with vm.
9058
9059 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
9060
9061         * ginclude/stdarg.h: Test __cplusplus instead of
9062         __GXX_EXPERIMENTAL_CXX0X__.
9063
9064 2016-01-29  Richard Biener  <rguenther@suse.de>
9065
9066         PR tree-optimization/69547
9067         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
9068         Do not mark clobbers necessary.
9069         (mark_all_reaching_defs_necessary_1): Likewise.
9070
9071 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9072
9073         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
9074         declaration name with %qs and print it in both error messages.
9075         Also fix indentation.
9076
9077 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9078
9079         PR other/69006
9080         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
9081         trailing blank line from error message.
9082
9083 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
9084
9085         PR c++/69462
9086         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
9087         for C++-11.
9088
9089 2016-01-29  Richard Biener  <rguenther@suse.de>
9090
9091         PR middle-end/69537
9092         * match.pd: Allow all integral types when simplifying a
9093         widening or sign-changing conversion.
9094
9095 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
9096
9097         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
9098         back to setting codegen_error to fail codegen.
9099
9100 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
9101
9102         PR target/69459
9103         * config/i386/constraints.md (C): Only accept constant zero operand.
9104         (BC): New constraint.
9105         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
9106         instead of C constraint.
9107         * doc/md.texi (Machine Constraints): Update description
9108         of C constraint.
9109
9110 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
9111
9112         PR target/68400
9113         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
9114
9115 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
9116
9117         PR middle-end/69542
9118         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
9119         non-debug insns.
9120
9121 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
9122
9123         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
9124         branches if using guessed profile.
9125
9126 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
9127
9128         * graphite-optimize-isl.c (optimize_isl): Fix dump.
9129
9130 2016-01-28  Richard Henderson  <rth@redhat.com>
9131
9132         PR target/69305
9133         * config/aarch64/aarch64-modes.def (CC_Cmode): New
9134         * config/aarch64/aarch64-protos.h: Update.
9135         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
9136         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
9137         (aarch64_get_condition_code_1): Handle CC_Cmode.
9138         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
9139         (*add<mode>3_compareC_cconly_imm): New.
9140         (*add<mode>3_compareC_cconly): New.
9141         (*add<mode>3_compareC_imm): New.
9142         (add<mode>3_compareC): New.
9143         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
9144         to be first.  Use aarch64_carry_operation.
9145         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
9146         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
9147         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
9148         (subti3): Use subdi3_compare1.
9149         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
9150         (sub<mode>3_compare1): New.
9151         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
9152         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
9153         (*subsi3_carryin_uxtw): Likewise.
9154         (*ngc<mode>, *ngcsi_uxtw): Likewise.
9155         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
9156         * config/aarch64/iterators.md (DWI): New.
9157         * config/aarch64/predicates.md (aarch64_carry_operation): New.
9158         (aarch64_borrow_operation): New.
9159
9160 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
9161
9162         * graphite-optimize-isl.c (optimize_isl): Print a different debug
9163         message when isl does not return a valid schedule.
9164
9165 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
9166
9167         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
9168         Remove comments from class declarations: they are already in the code
9169         close by the defs.
9170
9171 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
9172
9173         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
9174         codegen_error_p.
9175         (ternary_op_to_tree): Same.
9176         (unary_op_to_tree): Same.
9177         (nary_op_to_tree): Same.
9178         (gcc_expression_from_isl_expr_op): Same.
9179         (gcc_expression_from_isl_expression): Same.
9180         (graphite_create_new_loop): Same.
9181         (graphite_create_new_loop_guard): Same.
9182         (build_iv_mapping): Same.
9183         (graphite_create_new_guard): Same.
9184         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
9185         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
9186
9187 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
9188
9189         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
9190         instead of setting codegen_error to fail codegen.
9191
9192 2016-01-28  Jason Merrill  <jason@redhat.com>
9193
9194         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
9195
9196 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
9197
9198         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
9199         Remove CONST_INT_P check in CCMP cost calculation.
9200
9201 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
9202
9203         * config/aarch64/aarch64.c (generic_vector_cost):
9204         Set vec_permute_cost.
9205         (cortexa57_vector_cost): Likewise.
9206         (exynosm1_vector_cost): Likewise.
9207         (xgene1_vector_cost): Likewise.
9208         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
9209         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
9210         Add vec_permute_cost entry.
9211
9212 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
9213
9214         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
9215         immediate as %1.
9216         (add<mode>3_compare0): Likewise.
9217         (addsi3_compare0_uxtw): Likewise.
9218         (add<mode>3nr_compare0): Likewise.
9219         (compare_neg<mode>): Likewise.
9220         (<optab><mode>3): Likewise.
9221
9222 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
9223
9224         * tree-vect-stmts.c (vectorizable_comparison): Add
9225         NULL check for vectype.
9226
9227 2016-01-28  Richard Biener  <rguenther@suse.de>
9228
9229         PR tree-optimization/69466
9230         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
9231         Account for PHIs we couldn't duplicate.
9232
9233 2016-01-28  Martin Liska  <mliska@suse.cz>
9234
9235         PR pch/68758
9236         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
9237         instead of ENABLE_VALGRIND_CHECKING.
9238
9239 2016-01-27  Richard Henderson  <rth@redhat.com>
9240
9241         PR rtl-opt/69447
9242         * lra-remat.c (subreg_regs): New.
9243         (dump_candidates_and_remat_bb_data): Dump it.
9244         (operand_to_remat): Reject if operand in subreg_regs.
9245         (set_bb_regs): Collect subreg_regs.
9246         (lra_remat): Init and free subreg_regs.  Compute
9247         calculate_local_reg_remat_bb_data before create_cands.
9248
9249 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
9250
9251         PR target/68986
9252         * config/i386/i386.c (ix86_update_stack_boundary): Don't
9253         change stack_alignment_needed for __tls_get_addr call.
9254
9255 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
9256
9257         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
9258
9259 2016-01-27  Jeff Law  <law@redhat.com>
9260
9261         PR tree-optimization/68398
9262         PR tree-optimization/69196
9263         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
9264         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
9265         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9266         Only count PHIs in the last block in the path.  The others will
9267         const/copy propagate away.  Add heuristic to allow more irreducible
9268         subloops to be created when it is likely profitable to do so.
9269
9270         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9271         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
9272         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
9273
9274 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
9275
9276         PR lto/69254
9277         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
9278         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
9279         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
9280         * tree-streamer-in.c: Include asan.h.
9281         (streamer_get_builtin_tree): For builtins in sanitizer
9282         range call initialize_sanitizer_builtins and retry.
9283
9284 2016-01-27  Ian Lance Taylor  <iant@google.com>
9285
9286         * common.opt (fkeep-gc-roots-live): New undocumented option.
9287         * tree-ssa-loop-ivopts.c (add_candidate_1): If
9288         -fkeep-gc-roots-live, skip pointers.
9289         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
9290         NULL.
9291
9292 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
9293
9294         PR target/69512
9295         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
9296         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
9297
9298 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
9299
9300         PR target/68380
9301         * configure.ac: NetBSD provides SSP in its C library.
9302         * configure: Updated.
9303
9304 2016-01-27  Richard Biener  <rguenther@suse.de>
9305
9306         PR tree-optimization/69166
9307         * tree-vect-loop.c (vect_is_simple_reduction): Always check
9308         reduction code for commutativity / associativity.
9309
9310 2016-01-27  Martin Jambor  <mjambor@suse.cz>
9311
9312         PR tree-optimization/69355
9313         * tree-sra.c (analyze_access_subtree): Correct hole detection when
9314         total_scalarization fails.
9315
9316 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
9317
9318         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
9319         power9.
9320
9321 2016-01-27  Christian Bruel  <christian.bruel@st.com>
9322
9323         PR target/69245
9324         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
9325         Move arm_reset_previous_fndecl and set_target_option_current_node in
9326         the conditional part.  Call save_restore_target_globals.
9327         * config/arm/arm.c (arm_set_current_function):
9328         Refactor to better support #pragma target and attribute mix.
9329         Call save_restore_target_globals.
9330         * config/arm/arm-protos.h (save_restore_target_globals): New function.
9331
9332 2016-01-27  Martin Liska  <mliska@suse.cz>
9333
9334         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
9335         reference for an HSA kernel and its host function.
9336
9337 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
9338
9339         PR tree-optimization/69399
9340         * wide-int.h (wi::lrshift): For larger precisions, only
9341         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
9342
9343 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
9344
9345         * config/arc/predicates.md (proper_comparison_operator): Reject
9346         constant-constant comparison.
9347
9348 2016-01-26  Tom de Vries  <tom@codesourcery.com>
9349
9350         PR tree-optimization/69110
9351         * tree-data-ref.c (initialize_data_dependence_relation): Handle
9352         DR_NUM_DIMENSIONS == 0.
9353
9354 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
9355             Sebastian Pop  <s.pop@samsung.com>
9356
9357         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
9358         isl_ast_op_cond and isl_ast_op_select.
9359         (gcc_expression_from_isl_expr_op): Same.
9360
9361 2016-01-26  Jason Merrill  <jason@redhat.com>
9362
9363         PR c++/68782
9364         * tree.c (recompute_constructor_flags): Split out from
9365         build_constructor.
9366         (verify_constructor_flags): New.
9367         * tree.h: Declare them.
9368
9369 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
9370
9371         PR rtl-optimization/69217
9372         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
9373         are no TYPE_FIELDS set for the record type.
9374
9375 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9376
9377         PR target/68662
9378         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
9379         toc_label_name unconditionally.
9380         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
9381         SYMBOL_REF string.  Use toc_label_name instead of constructing
9382         LCTOC1.
9383         (rs6000_elf_declare_function_name): Use toc_label_name instead of
9384         constructing LCTOC1.
9385
9386 2016-01-26  Martin Sebor  <msebor@redhat.com>
9387
9388         PR other/69477
9389         * doc/extend.texi (Common Type Attributes): Move text that talks about
9390         attribute packed from attribute aligned to the section discussing
9391         the former attribute for clarity.
9392
9393 2016-01-26  Richard Henderson  <rth@redhat.com>
9394
9395         PR middle-end/60908
9396         * trans-mem.c (tm_region_init): Mark entry block as visited.
9397
9398 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
9399
9400         PR other/69006
9401         * diagnostic-show-locus.c (layout::print_source_line): Replace
9402         call to pp_newline with call to layout::print_newline.
9403         (layout::print_annotation_line): Likewise.
9404         (layout::move_to_column): Likewise.
9405         (layout::print_any_fixits): After printing any fixits, print a
9406         trailing newline, if necessary.
9407         (layout::print_newline): New method, resetting any colorization
9408         before a newline.
9409         (diagnostic_show_locus): Move the pp_newline to before the
9410         early bailout.  Remove dummy block enclosing the layout instance.
9411         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
9412         of pp_newline_and_flush with pp_flush.
9413         (diagnostic_append_note): Delete use of pp_newline.
9414         (diagnostic_append_note_at_rich_loc): Delete.
9415         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
9416         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
9417         when newline characters are added to the buffer.
9418
9419 2016-01-26  Michael Matz  <matz@suse.de>
9420
9421         * configure.ac (ac_cv_std_swap_in_utility): New test.
9422         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
9423         * configure: Regenerate.
9424         * config.in: Regenerate.
9425
9426 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
9427
9428         * config/arc/arc.md (cstoresi4): Force operand into register.
9429         (arcset<code>): Fix predicate.
9430         (arcsetltu): Likewise.
9431         (arcsetgeu): Likewise.
9432         (arcsethi): Likewise.
9433         (arcsetls): Likewise.
9434
9435 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9436
9437         PR tree-optimization/69483
9438         * gimple-fold.c (canonicalize_constructor_val): Return NULL
9439         if base has error_mark_node type.
9440
9441 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
9442
9443         PR target/68620
9444         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
9445         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
9446         New helper macros.
9447         (vget_lane_f16): Handle big-endian.
9448         (vgetq_lane_f16): Likewise.
9449         (vset_lane_f16): Likewise.
9450         (vsetq_lane_f16): Likewise.
9451         * config/arm/iterators.md (VQXMOV): Add V8HF.
9452         (VDQ): Add V4HF and V8HF.
9453         (V_reg): Handle V4HF and V8HF.
9454         (Is_float_mode): Likewise.
9455         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
9456         neon_vdup_nv8hf): New patterns.
9457         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
9458         Use VD_LANE iterator.
9459         (neon_vld1_dup<mode>): Use VQ2 iterator.
9460
9461 2016-01-26  Nathan Sidwell  <nathan@acm.org>
9462
9463         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
9464         (set_oacc_fn_attrib): Add IS_KERNEL arg.
9465         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
9466         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
9467         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
9468         (oacc_validate_dims): Add LEVEL arg, don't return level.
9469         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
9470         oacc_validate_dims.
9471         (execute_oacc_device_lower): Adjust, add more dump output.
9472         * tree-ssa-loop.c (gate_oacc_kernels): Use
9473         oacc_fn_attrib_kernels_p.
9474         * tree-parloops.c (create_parallel_loop): Adjust
9475         set_oacc_fn_attrib call.
9476
9477 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9478
9479         PR lto/69254
9480         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
9481         (append_compiler_options): Handle -fcilkplus.
9482         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
9483
9484 2016-01-26  Nick Clifton  <nickc@redhat.com>
9485
9486         PR target/66655
9487         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
9488         been marked as DECL_ONE_ONLY but we do not the means to make it
9489         so, then do not allow it to bind locally.
9490
9491 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9492
9493         PR lto/69254
9494         * opts.h (parse_sanitizer_options): New prototype.
9495         * opts.c (sanitizer_opts): New array.
9496         (parse_sanitizer_options): New function.
9497         (common_handle_option): Use parse_sanitizer_options.
9498
9499 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
9500
9501         PR target/68986
9502         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
9503         alignment adjustment to ...
9504         (ix86_update_stack_boundary): Here.  Don't over-align stack for
9505         __tls_get_addr.
9506         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
9507         if __tls_get_addr is called.
9508
9509 2016-01-26  Christian Bruel  <christian.bruel@st.com>
9510
9511         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
9512
9513 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
9514
9515         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
9516
9517 2016-01-26  Richard Biener  <rguenther@suse.de>
9518
9519         PR middle-end/69467
9520         * match.pd: Guard X * CST CMP 0 pattern with single_use.
9521
9522 2016-01-26  Richard Biener  <rguenther@suse.de>
9523
9524         PR tree-optimization/69452
9525         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
9526         (move_computations_dom_walker::before_dom_children): Rename
9527         to ...
9528         (move_computations_worker): This.
9529         (move_computations): Perform an RPO rather than a DOM walk.
9530
9531 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
9532
9533         PR target/69442
9534         * combine.c (combine_instructions): For REG_EQUAL note with
9535         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
9536         to the underlying register.
9537         * doc/rtl.texi (REG_EQUAL): Document the behavior of
9538         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
9539
9540 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
9541
9542         PR target/67896
9543         * config/aarch64/aarch64-builtins.c
9544         (aarch64_init_simd_builtin_types): Do not set structural
9545         equality to __Poly{8,16,64,128}_t types.
9546
9547 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
9548
9549         PR tree-optimization/69400
9550         * wide-int.cc (wi_pack): Take the precision as argument and
9551         perform canonicalization here rather than in the callers.
9552         Use the main loop to handle all full-width HWIs.  Add a
9553         zero HWI if in_len isn't a full result.
9554         (wi::divmod_internal): Update accordingly.
9555         (wi::mul_internal): Likewise.  Simplify.
9556
9557 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
9558             Sebastian Pop  <s.pop@samsung.com>
9559
9560         * graphite-poly.c (apply_poly_transforms): Simplify.
9561         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
9562         (print_isl_map): Same.
9563         (print_isl_union_map): Same.
9564         (print_isl_schedule): New.
9565         (debug_isl_schedule): New.
9566         * graphite-dependences.c (scop_get_reads): Do not call
9567         isl_union_map_add_map that is undocumented isl functionality.
9568         (scop_get_must_writes): Same.
9569         (scop_get_may_writes): Same.
9570         (scop_get_original_schedule): Remove.
9571         (scop_get_dependences): Do not call isl_union_map_compute_flow that
9572         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
9573         (compute_deps): Remove.
9574         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
9575         (debug_schedule_ast): New.
9576         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
9577         set_separate_option.
9578         (graphite_regenerate_ast_isl): Add dump.
9579         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
9580         from scop->transformed_schedule.
9581         (graphite_regenerate_ast_isl): Add more dump.
9582         * graphite-optimize-isl.c (optimize_isl): Set
9583         scop->transformed_schedule.  Check whether schedules are equal.
9584         (apply_poly_transforms): Move here.
9585         * graphite-poly.c (apply_poly_transforms): ... from here.
9586         (free_poly_bb): Static.
9587         (free_scop): Static.
9588         (pbb_number_of_iterations_at_time): Remove.
9589         (print_isl_ast): New.
9590         (debug_isl_ast): New.
9591         (debug_scop_pbb): New.
9592         * graphite-scop-detection.c (print_edge): Move.
9593         (print_sese): Move.
9594         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
9595         (build_scop_scattering): Remove.
9596         (create_pw_aff_from_tree): Assert instead of bailing out.
9597         (add_condition_to_pbb): Remove unused code, do not fail.
9598         (add_conditions_to_domain): Same.
9599         (add_conditions_to_constraints): Remove.
9600         (build_scop_context): New.
9601         (add_iter_domain_dimension): New.
9602         (build_iteration_domains): Initialize pbb->iterators.
9603         Call add_conditions_to_domain.
9604         (nested_in): New.
9605         (loop_at): New.
9606         (index_outermost_in_loop): New.
9607         (index_pbb_in_loop): New.
9608         (outermost_pbb_in): New.
9609         (add_in_sequence): New.
9610         (add_outer_projection): New.
9611         (outer_projection_mupa): New.
9612         (add_loop_schedule): New.
9613         (build_schedule_pbb): New.
9614         (build_schedule_loop): New.
9615         (embed_in_surrounding_loops): New.
9616         (build_schedule_loop_nest): New.
9617         (build_original_schedule): New.
9618         (build_poly_scop): Call build_original_schedule.
9619         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
9620         (free_poly_dr): Remove.
9621         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
9622         (free_poly_bb): Remove.
9623         (debug_loop_vec): Remove.
9624         (print_isl_ast): Declare.
9625         (debug_isl_ast): Declare.
9626         (scop_do_interchange): Remove.
9627         (scop_do_strip_mine): Remove.
9628         (scop_do_block): Remove.
9629         (flatten_all_loops): Remove.
9630         (optimize_isl): Remove.
9631         (pbb_number_of_iterations_at_time): Remove.
9632         (debug_scop_pbb): Declare.
9633         (print_schedule_ast): Declare.
9634         (debug_schedule_ast): Declare.
9635         (struct scop): Remove schedule.  Add original_schedule,
9636         transformed_schedule.
9637         (free_gimple_poly_bb): Remove.
9638         (print_generated_program): Remove.
9639         (debug_generated_program): Remove.
9640         (unify_scattering_dimensions): Remove.
9641         * sese.c (print_edge): ... here.
9642         (print_sese): ... here.
9643         (debug_edge): ... here.
9644         (debug_sese): ... here.
9645         * sese.h (print_edge): Declare.
9646         (print_sese): Declare.
9647         (dump_edge): Declare.
9648         (dump_sese): Declare.
9649
9650 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
9651             Sebastian Pop  <s.pop@samsung.com>
9652
9653         * Makefile.in: Set ISLVER in site.exp.
9654
9655 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
9656
9657         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
9658         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
9659         through DECL_VALUE_EXPR for expansion.
9660
9661 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9662
9663         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
9664         the frame info after reload completed.
9665
9666 2016-01-25  Jeff Law  <law@redhat.com>
9667
9668         PR tree-optimization/69196
9669         PR tree-optimization/68398
9670         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
9671         tree-ssa-threadupdate.c.
9672         (determine_bb_domination_status): Prototype
9673         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
9674         (determine_bb_domination_status): No longer static.
9675         (valid_jump_thread_path): Remove code to detect characteristics
9676         of the jump thread path not associated with correctness.
9677         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
9678         Correct test for thread path length.  Count PHIs for real operands as
9679         statements that need to be copied.  Do not count ASSERT_EXPRs.
9680         Look at all the blocks in the thread path.  Compute and selectively
9681         filter thread paths based on threading through the latch, threading
9682         a multiway branch or crossing a multiway branch.
9683
9684 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9685
9686         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
9687         decl with __attribute__ ((unused)) annotation.
9688
9689 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
9690
9691         PR target/69421
9692         * tree-vect-stmts.c (vectorizable_condition): Check vectype
9693         of operands is compatible with a statement vectype.
9694
9695 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
9696
9697         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
9698         improve wording for mixed storage order support.
9699
9700 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
9701
9702         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
9703         (vcvt_u64_f64): Likewise.
9704         (vcvta_s64_f64): Likewise.
9705         (vcvta_u64_f64): Likewise.
9706         (vcvtm_s64_f64): Likewise.
9707         (vcvtm_u64_f64): Likewise.
9708         (vcvtn_s64_f64): Likewise.
9709         (vcvtn_u64_f64): Likewise.
9710         (vcvtp_s64_f64): Likewise.
9711         (vcvtp_u64_f64): Likewise.
9712
9713 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
9714
9715         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
9716         (arc_init): Check validity mll64 option.
9717         (arc_save_restore): Use double load/store instruction.
9718         (arc_expand_movmem): Likewise.
9719         (arc_split_move): Don't split if we have double load/store
9720         instructions. Returns a boolean.
9721         (arc_process_double_reg_moves): Change function to return boolean
9722         instead of a sequence of instructions.
9723         (arc_dwarf_register_span): New function.
9724         * config/arc/arc-protos.h (arc_split_move): Change prototype.
9725         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
9726         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
9727         (*movdf_insn): Likewise.
9728         * config/arc/arc.opt (mll64): New option.
9729         * config/arc/predicates.md (even_register_operand): New predicate.
9730         * doc/invoke.texi (ARC Options): Add mll64 documentation.
9731
9732 2016-01-25  Richard Biener  <rguenther@suse.de>
9733
9734         PR lto/69393
9735         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
9736         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
9737         DECL_NAMELESS.
9738         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
9739
9740 2016-01-25  Richard Biener  <rguenther@suse.de>
9741
9742         PR tree-optimization/69376
9743         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
9744         flag.
9745         (VN_INFO_ANTI_RANGE_P): New inline.
9746         (VN_INFO_RANGE_TYPE): Likewise.
9747         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
9748         SSA_NAME_ANTI_RANGE_P.
9749         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
9750         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9751         Properly query VN_INFO_RANGE_TYPE.
9752
9753 2016-01-25  Nick Clifton  <nickc@redhat.com>
9754
9755         PR target/66655
9756         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
9757
9758 2016-01-23  Tom de Vries  <tom@codesourcery.com>
9759
9760         PR tree-optimization/69426
9761         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
9762         removed clobber.
9763
9764 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
9765
9766         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
9767         "the the" with "the" in the comments.
9768         * ipa-devirt.c (build_type_inheritance_graph,
9769         update_type_inheritance_graph): Likewise.
9770         * tree.c (build_function_type_list_1): Likewise.
9771         * cfgloopmanip.c (scale_loop_profile): Likewise.
9772         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
9773         * gimple-ssa-split-paths.c
9774         (find_block_to_duplicate_for_splitting_paths): Likewise.
9775         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
9776         * expr.c (convert_move): Likewise.
9777         * var-tracking.c (vt_stack_adjustments): Likewise.
9778         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
9779         * tree-vrp.c (test_for_singularity): Likewise.
9780
9781         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
9782         directly instead of building a temporary tree.
9783
9784         PR bootstrap/69434
9785         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
9786         remove <algorithm> include.
9787
9788 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
9789
9790         PR target/69432
9791         * config/i386/i386.c: Include dojump.h.
9792         (expand_small_movmem_or_setmem,
9793         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
9794         fixes.
9795         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
9796         if dynamic_check != -1.
9797
9798 2016-01-21  Jeff Law  <law@redhat.com>
9799
9800         PR middle-end/69347
9801         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
9802         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
9803         into dominated_by_p.
9804         (cprop_into_successor_phis): Avoid unnecessary tests.
9805
9806 2016-01-22  Richard Henderson  <rth@redhat.com>
9807
9808         PR target/69416
9809         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
9810         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
9811
9812 2016-01-22  Michael Matz  <matz@suse.de>
9813
9814         * system.h (string, algorithm): Include only conditionally.
9815         (new): Include always under C++.
9816         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
9817         * final.c (toplevel): Ditto.
9818         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
9819         * genconditions.c (write_header): Make gencondmd.c define
9820         INCLUDE_STRING.
9821         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
9822
9823         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
9824         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
9825
9826 2016-01-22  Christian Bruel  <christian.bruel@st.com>
9827
9828         PR target/68674
9829         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
9830
9831 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9832
9833         PR target/69403
9834         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
9835         define_insn_and_split.  Ensure operands[1] and operands[0] do not
9836         get assigned the same register.
9837
9838 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
9839
9840         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
9841
9842 2016-01-22  Christian Bruel  <christian.bruel@st.com>
9843
9844         * config/arm/arm-c.c (arm_pragma_target_parse):
9845         Remove warn_builtin_macro_redefined overwrite.
9846
9847 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
9848
9849         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
9850         flag_non_call_exceptions compatibility.
9851
9852 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
9853
9854         PR debug/66668
9855         * dwarf2out.c (add_child_die_after): New function.
9856         (dwarf_qual_info_t): New type.
9857         (dwarf_qual_info): New variable.
9858         (qualified_die_p): New function.
9859         (modified_type_die): For -fdebug-types-section, ensure
9860         canonical order of qualifiers.  Put qualified DIEs adjacent
9861         to the corresponding non-qualified type DIE and search there
9862         for existing qualified DIEs.
9863
9864 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
9865
9866         * doc/extend.texi (scalar_storage_order type attribute): Document
9867         restriction on type punning and aliasing, and remove future tense.
9868
9869 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
9870
9871         PR target/69252
9872         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
9873         first stage.
9874
9875 2016-01-21  Jeff Law  <law@redhat.com>
9876
9877         PR middle-end/69347
9878         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
9879         useless call to record_temporary_equivalences.
9880         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
9881         allocate 10 slots in the bb_path vector and let it grow as needed.
9882         (fsm_find_control_statement_thread_paths): Similarly for the next_path
9883         vector.
9884
9885 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
9886
9887         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
9888         Detangle.
9889         * configure: Regenerate.
9890
9891 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
9892
9893         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
9894         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
9895
9896 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
9897
9898         PR middle-end/66178
9899         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
9900         drop EXPAND_INITIALIZER.
9901         * rtl.h (contains_symbolic_reference_p): Declare.
9902         * rtlanal.c (contains_symbolic_reference_p): New function.
9903         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
9904         a subtraction into a NOT if symbolic constants are involved.
9905
9906 2016-01-21  Anton Blanchard  <anton@samba.org>
9907             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9908
9909         PR target/63354
9910         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
9911         #define.
9912         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
9913         function.
9914
9915 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
9916
9917         * config/microblaze/microblaze.c
9918         (get_branch_target): New.
9919         (insert_wic_for_ilb_runout): New.
9920         (insert_wic): New.
9921         (microblaze_machine_dependent_reorg): New.
9922         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
9923         * config/microblaze/microblaze.md
9924         (UNSPEC_IPREFETCH): Define.
9925         (iprefetch): New pattern
9926         * config/microblaze/microblaze.opt
9927         (mxl-prefetch): New flag.
9928
9929 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
9930
9931         * config/microblaze/microblaze.h
9932         (FIXED_REGISTERS): Update in macro.
9933         (CALL_USED_REGISTERS): Update in macro.
9934
9935 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
9936
9937         PR rtl-optimization/68920
9938         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
9939         moves.
9940
9941 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
9942
9943         PR rtl-optimization/68990
9944         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
9945         pseudo instead of inheritance ones.
9946
9947 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9948             Nick Clifton  <nickc@redhat.com>
9949
9950         PR target/69129
9951         PR target/69012
9952         * config/mips/mips.c (mips_compute_frame_info): Initialise
9953         args_size and hard_frame_pointer_offset fields of the frame
9954         structure before calling mips_global_pointer.
9955
9956 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
9957
9958         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
9959         label reference.
9960         * configure: Regenerate.
9961
9962 2016-01-21  Richard Biener  <rguenther@suse.de>
9963
9964         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
9965
9966 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
9967
9968         * config/s390/s390.c (s390_asm_declare_function_size): Add code
9969         to actually emit the .size directive.
9970
9971 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
9972              Jakub Jelinek  <jakub@redhat.com>
9973
9974         PR target/69187
9975         PR target/65624
9976         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
9977         args array size by one to avoid buffer overflow.
9978
9979 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
9980
9981         * config/s390/s390.md (pool_section_start): Use switch_to_section
9982         to select proper read-only data section instead of hardcoding
9983         .rodata.
9984         (pool_section_end): Use switch_to_section to match the above.
9985
9986 2016-01-21  Richard Biener  <rguenther@suse.de>
9987
9988         PR tree-optimization/69378
9989         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
9990         (set_ssa_val_to): Use it for dominance checks taking into
9991         account not executable edges.
9992
9993 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
9994
9995         PR c++/69355
9996         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
9997         for bitsize instead of GET_MODE_PRECISION (mode).
9998
9999 2016-01-20  Martin Sebor  <msebor@redhat.com>
10000
10001         PR c/52291
10002         * extend.texi (__sync Builtins): Clarify the semantics of
10003         __sync_fetch_and_OP built-ins on pointers.
10004         (__atomic Builtins): Same.
10005
10006 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10007             Sebastian Pop  <s.pop@samsung.com>
10008
10009         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
10010         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
10011         (is_valid_rename): Same.
10012         (translate_isl_ast_to_gimple::get_rename): Same.
10013         (translate_isl_ast_to_gimple::rename_all_uses): Same.
10014         (translate_isl_ast_to_gimple::rename_uses): Same.
10015         (get_new_name): Check for close_phi nodes.
10016         (copy_loop_phi_args): Use phi_node_kind.
10017         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
10018         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
10019
10020 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10021             Sebastian Pop  <s.pop@samsung.com>
10022
10023         Revert commit r229783.
10024         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
10025         Remove use of parameter_rename_map.
10026         (copy_def): Remove.
10027         (copy_internal_parameters): Remove.
10028         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
10029         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
10030         (free_sese_info): Do not free parameter_rename_map.
10031         (set_rename): Do not use parameter_rename_map.
10032         (rename_uses): Update call to set_rename.
10033         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
10034         * sese.h (parameter_rename_map_t): Remove.
10035         (struct sese_info_t): Remove field parameter_rename_map.
10036
10037 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10038             Sebastian Pop  <s.pop@samsung.com>
10039
10040         * graphite-isl-ast-to-gimple.c: Fix comment.
10041         * graphite-scop-detection.c (defined_in_loop_p): New.
10042         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
10043         names defined in loop.
10044
10045 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10046             Sebastian Pop  <s.pop@samsung.com>
10047
10048         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
10049         Discard unstructured if-then-else regions.
10050
10051 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10052             Sebastian Pop  <s.pop@samsung.com>
10053
10054         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
10055         (cleanup_loop_iter_dom): Remove.
10056         (build_loop_iteration_domains): Remove.
10057         (build_scop_context): Remove.
10058         (build_scop_iteration_domain): Remove.
10059         (add_loop_constraints): New.
10060         (build_iteration_domains): New.
10061         (build_poly_scop): Call build_iteration_domains.
10062
10063 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10064             Sebastian Pop  <s.pop@samsung.com>
10065
10066         * graphite-scop-detection.c
10067         (scop_detection::harmful_loop_in_region): Free dom and loops.
10068         (scop_detection::loop_body_is_valid_scop): Free bbs.
10069
10070 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10071             Sebastian Pop  <s.pop@samsung.com>
10072
10073         * graphite-scop-detection.c (record_loop_in_sese): New.
10074         (gather_bbs::before_dom_children): Call record_loop_in_sese.
10075         (build_scops): Remove call to build_sese_loop_nests.
10076         * sese.c (sese_record_loop): Remove.
10077         (build_sese_loop_nests): Remove.
10078         (new_sese_info): Remove region->loops.
10079         (free_sese_info): Same.
10080         * sese.h (sese_contains_loop): Same.
10081         (build_sese_loop_nests): Remove.
10082         (sese_contains_loop): Remove.
10083
10084 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10085             Sebastian Pop  <s.pop@samsung.com>
10086
10087         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
10088         loop_is_valid_in_scop.
10089         (scop_detection::harmful_stmt_in_region): Renamed
10090         harmful_loop_in_region.
10091         Call loop_is_valid_in_scop.
10092
10093 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10094             Sebastian Pop  <s.pop@samsung.com>
10095
10096         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
10097         isl_ast_node_mark.
10098
10099 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10100             Sebastian Pop  <s.pop@samsung.com>
10101
10102         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
10103         * graphite.h (struct poly_bb): Remove field is_reduction.
10104         (PBB_IS_REDUCTION): Remove.
10105
10106 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
10107             Sebastian Pop  <s.pop@samsung.com>
10108
10109         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
10110         (add_pdr_constraints): Same.
10111         (scop_get_reads): Same.
10112         (scop_get_must_writes): Same.
10113         (scop_get_may_writes): Same.
10114         (scop_get_original_schedule): Same.
10115         (extend_schedule): Same.
10116         (apply_schedule_on_deps): Same.
10117         (carries_deps): Same.
10118         (compute_deps): Same.
10119         (scop_get_dependences): Same.
10120         * graphite-isl-ast-to-gimple.c
10121         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
10122         * graphite-optimize-isl.c (get_schedule_for_band): Same.
10123         (get_schedule_for_band_list): Same.
10124         (get_schedule_map): Same.
10125         (apply_schedule_map_to_scop): Same.
10126         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
10127         (build_loop_iteration_domains): Same.
10128         (add_condition_to_pbb): Same.
10129         (add_param_constraints): Same.
10130         (pdr_add_memory_accesses): Same.
10131         (pdr_add_data_dimensions): Same.
10132
10133 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
10134
10135         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
10136         requirements.
10137
10138 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
10139
10140         * common.opt (feliminate-dwarf2-dups): Replace references to
10141         "DWARF 2" with just "DWARF".
10142         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
10143         * doc/extend.texi: Likewise.
10144         * doc/cpp.texi: Likewise.
10145         * doc/invoke.texi: Likewise.
10146         (Option Summary): Add -gdwarf to list of Debugging Options.
10147         (Debugging Options): Document -gdwarf.
10148         * doc/contrib.texi: Spell "DWARF" like that.
10149
10150 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
10151
10152         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
10153         warning.  Fix up formatting.
10154
10155         PR middle-end/67653
10156         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
10157         attempt to mark memory input operand addressable and
10158         call prepare_gimple_addressable in that case.  Don't adjust
10159         input_location for diagnostics, use error_at instead.
10160
10161 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
10162
10163         * config/rs6000/ppc-auxv.h: New file.
10164         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
10165         (cpu_is): Likewise.
10166         (cpu_supports): Likewise.
10167         * config/rs6000/rs6000.c: include "ppc-auxv.h".
10168         (cpu_is_info): New variable.
10169         (cpu_supports_info): Likewise.
10170         (tcb_verification_symbol): Likewise.
10171         (cpu_builtin_p): Likewise.
10172         (cpu_expand_builtin): New function.
10173         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
10174         (rs6000_init_builtins): Likewise.
10175         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
10176         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
10177         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
10178         * configure: Regenerate.
10179         * config.in: Likewise.
10180         * doc/extend.texi (PowerPC Built-in Functions): Document
10181         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
10182
10183 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
10184
10185         PR target/68609
10186         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
10187         domain check.
10188         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
10189         for V4SFmode.
10190
10191 2016-01-20  Richard Henderson  <rth@redhat.com>
10192
10193         PR bootstrap/69343
10194         PR bootstrap/69339
10195         PR tree-opt/68964
10196         Revert:
10197         * tree.c (tm_define_builtin): New.
10198         (find_tm_vector_type): New.
10199         (build_tm_vector_builtins): New.
10200         (build_common_builtin_nodes): Call it.
10201
10202 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
10203
10204         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
10205         (arm_fp_ok): Likewise.
10206         (arm_fp): Likewise.
10207         (arm_crypto): Likewise.
10208
10209 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
10210             Richard Biener  <rguenther@suse.de>
10211
10212         PR tree-optimization/69328
10213         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
10214         vectors have same number of elements.
10215         (vectorizable_condition): Fix masked version recognition.
10216
10217 2016-01-20  Richard Biener  <rguenther@suse.de>
10218
10219         PR tree-optimization/69345
10220         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
10221         (VN_INFO_PTR_INFO): Likewise.
10222         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
10223         info when it is equal between non-dominating SSA names.
10224         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10225         Make sure to look at original SSA infos.
10226
10227 2016-01-20  Jeff Law  <law@redhat.com>
10228
10229         PR target/25114
10230         * config/m68k/predicates.md (pow2_m1_operand): New predicate
10231         extracted from ...
10232         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
10233         (pc_or_label_operand): New predicate.
10234         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
10235         tests for small integers that are 2^n - 1.
10236
10237 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
10238
10239         * doc/invoke.texi (Options Summary): Add '.' after @xref.
10240
10241 2016-01-19  Jeff Law  <law@redhat.com>
10242
10243         PR middle-end/69347
10244         * tree-ssa-threadbackwards.c
10245         (fsm_find_control_statement_thread_paths): Do not try to lookup
10246         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
10247
10248 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
10249
10250         * doc/lto.texi: Remove text that says only Gold has linker plugin
10251         support.
10252
10253 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
10254
10255         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
10256         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
10257         the DIE accordingly.
10258         (modified_type_die): Add REVERSE parameter and pass it recursively,
10259         as well as to base_type_die.  Adjust presence check accordingly.
10260         (base_type_for_mode): Adjust call to modified_type_die.
10261         (add_type_attribute): Add REVERSE parameter and pass it to
10262         modified_type_die.
10263         (generic_parameter_die): Adjust call to add_type_attribute.
10264         (add_scalar_info): Likewise.
10265         (add_subscript_info): Likewise.
10266         (gen_array_type_die): Likewise.
10267         (gen_descr_array_type_die): Likewise.
10268         (gen_entry_point_die): Likewise.
10269         (gen_enumeration_type_die): Likewise.
10270         (gen_formal_parameter_die): Likewise.
10271         (gen_subprogram_die): Likewise.
10272         (gen_variable_die ): Likewise.
10273         (gen_const_die): Likewise.
10274         (gen_field_die): Likewise.
10275         (gen_pointer_type_die): Likewise.
10276         (gen_reference_type_die): Likewise.
10277         (gen_ptr_to_mbr_type_die): Likewise.
10278         (gen_inheritance_die): Likewise.
10279         (gen_subroutine_type_die): Likewise.
10280         (gen_typedef_die): Likewise.
10281         (force_type_die): Adjust call to modified_type_die.
10282
10283 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
10284
10285         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
10286         flow throughout the file.  Fix broken link to Objective-C 2.0
10287         documentation.
10288         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
10289         errors.
10290
10291 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10292
10293         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
10294
10295 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10296
10297         PR ipa/66223
10298         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
10299         (maybe_record_node): Record cxa_pure_virtual as the only possible
10300         target if there are not ohter candidates.
10301         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
10302
10303 2016-01-19  Richard Biener  <rguenther@suse.de>
10304
10305         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
10306         (get_memory_order): Likewise.
10307
10308 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
10309
10310         * tree-vect-stmts.c (vectorizable_store): Check
10311         rhs vectype.
10312
10313 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
10314
10315         PR jit/68446
10316         * gcc.c (driver::decode_argv): Add call to
10317         init_opts_obstack before init_options_struct.
10318         * opts.c (init_opts_obstack): Remove idempotency.
10319         (init_options_struct): Replace call to init_opts_obstack
10320         with a gcc_assert to verify that it has already been called.
10321         * toplev.c (toplev::main): Add call to init_opts_obstack before
10322         calls to init_options_struct.
10323         (toplev::finalize): Move cleanup of opts_obstack next to
10324         cleanup of save_decoded_options, clearing the latter, and
10325         save_decoded_options_count.
10326
10327 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10328
10329         PR target/69135
10330         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
10331         attribute to unconditional.  Remove %? from output template.
10332
10333 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10334             Jiong Wang  <jiong.wang@arm.com>
10335
10336         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
10337         generated from different expand order.
10338
10339 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10340
10341         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
10342         Add support for CCMP costing.
10343
10344 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10345
10346         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
10347         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
10348         (fccmpe<mode>): Likewise.
10349         (fcmp): Rename to fcmp and globalize pattern.
10350         (fcmpe): Likewise.
10351         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
10352         (aarch64_gen_ccmp_next): Add FP support.
10353
10354 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
10355
10356         * target.def (gen_ccmp_first): Update documentation.
10357         (gen_ccmp_next): Likewise.
10358         * doc/tm.texi (gen_ccmp_first): Update documentation.
10359         (gen_ccmp_next): Likewise.
10360         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
10361         expand_ccmp_expr_1.  Improve comments.
10362         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
10363         (ccmp_ior<mode>): Remove pattern.
10364         (cmp<mode>): Remove expand.
10365         (cmp): Globalize pattern.
10366         (cstorecc4): Use cc_register.
10367         (mov<mode>cc): Remove ccmp_cc_register check.
10368         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
10369         Simplify after removal of CC_DNE/* modes.
10370         (aarch64_ccmp_mode_to_code): Remove.
10371         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
10372         In 'k' case use integer as condition.
10373         (aarch64_nzcv_codes): Remove inverted cases.
10374         (aarch64_code_to_ccmode): Remove.
10375         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
10376         comparison with CC register to be used in folowing CCMP/branch/CSEL.
10377         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
10378         pattern.  Return the comparison with CC register.  Invert conditions
10379         when bitcode is OR.
10380         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
10381         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
10382
10383 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10384
10385         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
10386         instrumented_version.
10387
10388 2016-01-19  Richard Biener  <rguenther@suse.de>
10389
10390         PR tree-optimization/69336
10391         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
10392         handled components with get_ref_base_and_extent.
10393         (equal_mem_array_ref_p): Adjust.
10394
10395 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
10396
10397         PR debug/65779
10398         * shrink-wrap.c: Include valtrack.h.
10399         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
10400         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
10401         in between insn and where it will be moved to.  Call
10402         dead_debug_insert_temp.
10403         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
10404         first and dead_debug_local_finish at the end.
10405         For uses and defs bitmap, handle all regs in between REGNO and
10406         END_REGNO, not just the first one.
10407
10408 2016-01-19  Richard Biener  <rguenther@suse.de>
10409
10410         PR tree-optimization/69352
10411         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
10412         (equal_mem_array_ref_p): Constrain size and max size properly.
10413         Compare the reverse flag.
10414
10415 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
10416
10417         * ira.c (ira): Update regstat data if we deleted insns.
10418
10419 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
10420
10421         PR rtl-optimization/68955
10422         PR rtl-optimization/64557
10423         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
10424         here.  Fix up formatting.
10425         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
10426
10427 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10428
10429         PR lto/69133
10430         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
10431         assume that the node has body.
10432         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
10433         check.
10434
10435 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10436
10437         * lto-streamer-out.c (lto_output): Do not stream instrumentation
10438         thunks.
10439
10440 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
10441
10442         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
10443         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
10444
10445 2016-01-19  Martin Jambor  <mjambor@suse.cz>
10446             Martin Liska  <mliska@suse.cz>
10447             Michael Matz  <matz@suse.de>
10448
10449         * Makefile.in (OBJS): Add new source files.
10450         (GTFILES): Add hsa.c.
10451         * common.opt (disable_hsa): New variable.
10452         (-Whsa): New warning.
10453         * config.in (ENABLE_HSA): New.
10454         * configure.ac: Treat hsa differently from other accelerators.
10455         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
10456         $enable_offloading.
10457         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
10458         * doc/install.texi (Configuration): Document --with-hsa-runtime,
10459         --with-hsa-runtime-include, --with-hsa-runtime-lib and
10460         --with-hsa-kmt-lib.
10461         * doc/invoke.texi (-Whsa): Document.
10462         (hsa-gen-debug-stores): Likewise.
10463         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
10464         to invoke offload compiler for hsa acclerator.
10465         * opts.c (common_handle_option): Determine whether HSA offloading
10466         should be performed.
10467         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
10468         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
10469         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
10470         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
10471         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
10472         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
10473         GF_OMP_FOR_KIND_GRID_LOOP.
10474         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
10475         (pp_gimple_stmt_1): Likewise.
10476         * gimple-walk.c (walk_gimple_stmt): Likewise.
10477         * gimple.c (gimple_build_omp_grid_body): New function.
10478         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
10479         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
10480         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
10481         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
10482         GF_OMP_TEAMS_GRID_PHONY.
10483         (gimple_statement_omp_single_layout): Updated comments.
10484         (gimple_build_omp_grid_body): New function.
10485         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
10486         (gimple_omp_for_grid_phony): New function.
10487         (gimple_omp_for_set_grid_phony): Likewise.
10488         (gimple_omp_parallel_grid_phony): Likewise.
10489         (gimple_omp_parallel_set_grid_phony): Likewise.
10490         (gimple_omp_teams_grid_phony): Likewise.
10491         (gimple_omp_teams_set_grid_phony): Likewise.
10492         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
10493         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
10494         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
10495         (BUILT_IN_GOMP_TARGET): Updated type.
10496         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
10497         (adjust_for_condition): New function.
10498         (get_omp_for_step_from_incr): Likewise.
10499         (extract_omp_for_data): Moved parts to adjust_for_condition and
10500         get_omp_for_step_from_incr.
10501         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
10502         (fixup_child_record_type): Bail out if receiver_decl is NULL.
10503         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
10504         (scan_omp_parallel): Do not create child functions for phony
10505         constructs.
10506         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
10507         (scan_omp_1_op): Checking assert we are not remapping to
10508         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
10509         (parallel_needs_hsa_kernel_p): New function.
10510         (expand_parallel_call): Register apprpriate parallel child
10511         functions as HSA kernels.
10512         (grid_launch_attributes_trees): New type.
10513         (grid_attr_trees): New variable.
10514         (grid_create_kernel_launch_attr_types): New function.
10515         (grid_insert_store_range_dim): Likewise.
10516         (grid_get_kernel_launch_attributes): Likewise.
10517         (get_target_argument_identifier_1): Likewise.
10518         (get_target_argument_identifier): Likewise.
10519         (get_target_argument_value): Likewise.
10520         (push_target_argument_according_to_value): Likewise.
10521         (get_target_arguments): Likewise.
10522         (expand_omp_target): Call get_target_arguments instead of looking
10523         up for teams and thread limit.
10524         (grid_expand_omp_for_loop): New function.
10525         (grid_arg_decl_map): New type.
10526         (grid_remap_kernel_arg_accesses): New function.
10527         (grid_expand_target_kernel_body): New function.
10528         (expand_omp): Call it.
10529         (lower_omp_for): Do not emit phony constructs.
10530         (lower_omp_taskreg): Do not emit phony constructs but create for them
10531         a temporary variable receiver_decl.
10532         (lower_omp_taskreg): Do not emit phony constructs.
10533         (lower_omp_teams): Likewise.
10534         (lower_omp_grid_body): New function.
10535         (lower_omp_1): Call it.
10536         (grid_reg_assignment_to_local_var_p): New function.
10537         (grid_seq_only_contains_local_assignments): Likewise.
10538         (grid_find_single_omp_among_assignments_1): Likewise.
10539         (grid_find_single_omp_among_assignments): Likewise.
10540         (grid_find_ungridifiable_statement): Likewise.
10541         (grid_target_follows_gridifiable_pattern): Likewise.
10542         (grid_remap_prebody_decls): Likewise.
10543         (grid_copy_leading_local_assignments): Likewise.
10544         (grid_process_kernel_body_copy): Likewise.
10545         (grid_attempt_target_gridification): Likewise.
10546         (grid_gridify_all_targets_stmt): Likewise.
10547         (grid_gridify_all_targets): Likewise.
10548         (execute_lower_omp): Call grid_gridify_all_targets.
10549         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
10550         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
10551         (tree_omp_clause): Added union field dimension.
10552         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
10553         * tree.c (omp_clause_num_ops): Added number of arguments of
10554         OMP_CLAUSE__GRIDDIM_.
10555         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
10556         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
10557         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
10558         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
10559         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
10560         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
10561         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
10562         * tree-pass.h (make_pass_gen_hsail): Declare.
10563         (make_pass_ipa_hsa): Likewise.
10564         * ipa-hsa.c: New file.
10565         * lto-section-in.c (lto_section_name): Add hsa section name.
10566         * lto-streamer.h (lto_section_type): Add hsa section.
10567         * timevar.def (TV_IPA_HSA): New.
10568         * hsa-brig-format.h: New file.
10569         * hsa-brig.c: New file.
10570         * hsa-dump.c: Likewise.
10571         * hsa-gen.c: Likewise.
10572         * hsa.c: Likewise.
10573         * hsa.h: Likewise.
10574         * toplev.c (compile_file): Call hsa_output_brig.
10575         * hsa-regalloc.c: New file.
10576
10577 2016-01-18  Jeff Law  <law@redhat.com>
10578
10579         PR tree-optimization/69320
10580         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
10581         ranged object, do nothing if the RHS constant is not [0..1].
10582         (optimize_stmt): Comparing a boolean ranged object against a
10583         constant outside [0..1] results in a compile-time constant.
10584
10585         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
10586         test.
10587
10588 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
10589
10590         * doc/invoke.texi (Invoking GCC): Add new section to menu.
10591         (Option Summary): Update to reflect new section and moved options.
10592         (C++ Dialect Options): Move -fstats to new section.
10593         (Debugging Options): Move all dump, statistics, and other GCC
10594         developer options to new section.  Rewrite section introduction
10595         and re-order remaining options to put the more basic ones first.
10596         (Optimization Options): Move -fira-verbose and -flto-report* to
10597         new section.
10598         (Developer Options): New section incorporating moved options.
10599         * doc/cppopts.texi (-dM): Update cross-reference.
10600
10601 2016-01-18  Richard Henderson  <rth@redhat.com>
10602
10603         PR target/69176
10604         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
10605         operands to pseudo only if CSE is expected.  Split long immediate
10606         operands only after reload, and for the stack pointer.
10607         (*add<GPI>3_pluslong): Remove.
10608         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
10609         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
10610         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
10611         (*add<GPI>3 peepholes): New.
10612         (*add<GPI>3 splitters): New.
10613         * config/aarch64/constraints.md (Upl): New.
10614         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
10615
10616 2016-01-18  Richard Biener  <rguenther@suse.de>
10617
10618         PR tree-optimization/69297
10619         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
10620         stmt at most once.
10621         (vect_bb_vectorization_profitable_p): Clear visited flag again.
10622
10623 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
10624
10625         PR middle-end/68542
10626         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
10627         of mixind vector and scalar types.
10628         (fold_relational_const): Add handling of vector
10629         comparison with boolean result.
10630         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
10631         comparison of vector operands with boolean result for EQ/NE only.
10632         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
10633         (verify_gimple_cond): Likewise.
10634         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
10635         valid type of VAL.
10636
10637 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
10638
10639         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
10640         !TARGET_OCTEON.
10641
10642 2016-01-18  Richard Biener  <rguenther@suse.de>
10643
10644         PR middle-end/69308
10645         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
10646
10647 2016-01-18  Tom de Vries  <tom@codesourcery.com>
10648
10649         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
10650
10651 2016-01-18  Tom de Vries  <tom@codesourcery.com>
10652
10653         * omp-low.c (set_oacc_fn_attrib): Make extern.
10654         * omp-low.h (set_oacc_fn_attrib): Declare.
10655         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
10656         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
10657         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
10658         Add and handle function parameter oacc_kernels_p.
10659         (find_reduc_addr, get_omp_data_i_param): New function.
10660         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
10661         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
10662         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
10663         Calculate dominance info.  Skip loops that are not in a kernels region
10664         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
10665         (pass_parallelize_loops::execute): Call parallelize_loops with
10666         oacc_kernels_p argument.
10667         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
10668         New member function.
10669         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
10670         * passes.def: Add argument to pass_parallelize_loops instantation.
10671
10672 2016-01-18  Tom de Vries  <tom@codesourcery.com>
10673
10674         * tree-parloops.c (pass_parallelize_loops::execute): Allow
10675         pass_parallelize_loops to be run outside the loop pipeline.
10676
10677 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
10678
10679         * tree-scalar-evolution.c (follow_copies_to_constant): New.
10680         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
10681
10682 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
10683
10684         PR target/63679
10685         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
10686         using get_ref_base_and_extent.
10687         (equal_mem_array_ref_p): New.
10688         (hashable_expr_equal_p): Add call to previous.
10689
10690 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
10691
10692         PR target/63679
10693         * tree-sra.c (disqualified_constants, constant_decl_p): New.
10694         (sra_initialize): Allocate disqualified_constants.
10695         (sra_deinitialize): Free disqualified_constants.
10696         (disqualify_candidate): Update disqualified_constants when appropriate.
10697         (create_access): Scan for constant-pool entries as we go along.
10698         (scalarizable_type_p): Add check against type_contains_placeholder_p.
10699         (maybe_add_sra_candidate): Allow constant-pool entries.
10700         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
10701         (initialize_constant_pool_replacements): New.
10702         (sra_modify_assign): Avoid mangling assignments created by previous,
10703         and don't generate writes into constant pool.
10704         (sra_modify_function_body): Call initialize_constant_pool_replacements.
10705
10706 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
10707
10708         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
10709         andnot instruction.
10710         (scalar_chain::convert_op): Likewise.
10711         * config/i386/i386.md (*andndi3_doubleword): New.
10712
10713 2016-01-18  Richard Biener  <rguenther@suse.de>
10714
10715         PR tree-optimization/69170
10716         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
10717         building a vector from scalar results of a pattern stmt.
10718
10719 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
10720
10721         * haifa-sched.c (autopref_multipass_init): Work around
10722         -Wmaybe-uninitialized warning.
10723
10724 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10725
10726         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
10727         against the constant 0.
10728
10729 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10730
10731         PR tree-optimization/68799
10732         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
10733         look up phi candidates in the statement-candidate map.
10734         (phi_add_costs): Likewise.
10735         (record_phi_increments): Likewise.
10736         (phi_incr_cost): Likewise.
10737         (ncd_with_phi): Likewise.
10738         (all_phi_incrs_profitable): Likewise.
10739
10740 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
10741
10742         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
10743         -Wmaybe-uninitialized warning.
10744
10745 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
10746
10747         * doc/invoke.texi (Invoking GCC): Add new section to menu.
10748         (Option Summary): Update to reflect new section and moved options.
10749         (C++ Dialect Options): Move -fvtable-verify and related options.
10750         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
10751         and profiling-related options.
10752         (Optimization Options): Move profile generation options and
10753         -fstack-protector and related options.
10754         (Instrumentation Options): New section incorporating moved options.
10755         (Code Generation Options): Move -finstrument-functions and
10756         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
10757
10758 2016-01-16  Tom de Vries  <tom@codesourcery.com>
10759
10760         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
10761
10762 2016-01-16  Tom de Vries  <tom@codesourcery.com>
10763
10764         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
10765
10766 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
10767
10768         * hash-table.h (hash_table::empty): Turn into an inline wrapper
10769         that checks whether the table is already empty.  Rename the
10770         original implementation to...
10771         (hash_table::empty_slot): ...this new private function.
10772
10773 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
10774
10775         PR diagnostic/68899
10776         * diagnostic-show-locus.c (layout::print_source_line): Move x
10777         offset of line until after call to
10778         get_line_width_without_trailing_whitespace.
10779
10780 2016-01-15  Jeff Law  <law@redhat.com>
10781
10782         PR tree-optimization/69270
10783         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
10784         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
10785         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
10786         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
10787         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
10788         ssa_name_has_boolean_range and constant_boolean_node.
10789
10790 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
10791
10792         PR rtl-optimization/69030
10793         * lra-spills.c (remove_pseudos): Check nrefs and make the function
10794         returning bool.
10795         (spill_pseudos): Delete debug insn for dead pseudo.
10796         (lra_spill): Initiate spill_hard_reg and slots memory separately.
10797
10798 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
10799
10800         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
10801         New.
10802         (TYPES_UNOPUS): Likewise.
10803         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
10804         builtin type, from UNOP to UNOPUS.
10805         (lbtruncuv4sf): Likewise.
10806         (lbtruncuv2df): Likewise.
10807         (lrounduv2sf): Likewise.
10808         (lrounduv4sf): Likewise.
10809         (lrounduv2df): Likewise.
10810         (lroundusf): Likewise.
10811         (lroundusf): Likewise.
10812         (lceiluv2sf): Likewise.
10813         (lceiluv4sf): Likewise.
10814         (lceiluv2df): Likewise.
10815         (lceilusf): Likewise.
10816         (lceiludf): Likewise.
10817         (lflooruv2sf): Likewise.
10818         (lflooruv4sf): Likewise.
10819         (lflooruv2df): Likewise.
10820         (lfloorusf): Likewise.
10821         (lfloorudf): Likewise.
10822         (lfrintnuv2sf): Likewise.
10823         (lfrintnuv4sf): Likewise.
10824         (lfrintnuv2df): Likewise.
10825         (lfrintnusf): Likewise.
10826         (lfrintnudf): Likewise.
10827         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
10828         conversion.
10829         (vcvtq_u32_f32): Likewise.
10830         (vcvtq_u64_f64): Likewise.
10831         (vcvta_u32_f32): Likewise.
10832         (vcvtaq_u32_f32): Likewise.
10833         (vcvtaq_u64_f64): Likewise.
10834         (vcvtm_u32_f32): Likewise.
10835         (vcvtmq_u32_f32): Likewise.
10836         (vcvtmq_u64_f64): Likewise.
10837         (vcvtn_u32_f32): Likwise.
10838         (vcvtnq_u32_f32): Likewise.
10839         (vcvtnq_u64_f64): Likewise.
10840         (vcvtp_u32_f32): Likewise.
10841         (vcvtpq_u32_f32): Likewise.
10842         (vcvtpq_u64_f64): Likewise.
10843         (vcvtmd_u64_f64): Likewise.
10844         (vcvtms_u32_f32): Likewise.
10845         (vcvtad_u64_f64): Likewise.
10846         (vcvtas_u32_f32): Likewise.
10847         (vcvtnd_u64_f64): Likewise.
10848         (vcvtns_u32_f32): Likewise.
10849         (vcvtpd_u64_f64): Likewise.
10850         (vcvtps_u32_f32): Likewise.
10851
10852 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10853
10854         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
10855         CSEL of zero_extended registers.
10856
10857 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10858
10859         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
10860         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
10861
10862 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10863
10864         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
10865         false when argument string is not found in the attributes table
10866         at all.
10867
10868 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
10869
10870         PR target/68609
10871         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
10872         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
10873         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
10874         precision estimate.
10875
10876 2016-01-15  Richard Biener  <rguenther@suse.de>
10877
10878         PR tree-optimization/66856
10879         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
10880         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
10881         (vect_create_new_slp_node): Increment stmt reference count.
10882         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
10883         an SLP tree before swapping operands.
10884         (vect_build_slp_tree): Likewise.
10885         (destroy_bb_vec_info): Free stmt info after SLP instances.
10886         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
10887         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
10888         (STMT_VINFO_NUM_SLP_USES): New macro.
10889
10890 2016-01-15  Richard Biener  <rguenther@suse.de>
10891
10892         PR debug/69137
10893         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
10894         (add_linkage_name): ... here.
10895         (gen_typedef_die): Use add_linkage_name_raw instead of
10896         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
10897         if necessary.
10898
10899 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
10900
10901         * gimplify.c (oacc_default_clause): Decode reference and pointer
10902         types for both kernels and parallel regions.
10903
10904 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
10905
10906         PR middle-end/69246
10907         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
10908
10909 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
10910
10911         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
10912         (convert_scalars_to_vector): Likewise.
10913
10914 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
10915
10916         * doc/extend.texi (Type Traits): Fix grammar.
10917
10918 2016-01-15  Martin Jambor  <mjambor@suse.cz>
10919
10920         * tree-inline.c (remap_decl): Use existing dclarations if
10921         remapping a type and prevent_decl_creation_for_types.
10922         (replace_locals_stmt): Do an initial remapping of non-VLA typed
10923         decls first.  Do real remapping with
10924         prevent_decl_creation_for_types set.
10925         * tree-inline.h (copy_body_data): New field
10926         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
10927         padding.
10928
10929 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10930
10931         * config/s390/s390.opt (mmvcle): More verbose help text.
10932
10933 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10934
10935         * config/s390/s390.opt: Add period to -mzvector option text.
10936
10937 2016-01-15  Richard Biener  <rguenther@suse.de>
10938
10939         PR tree-optimization/68961
10940         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
10941         of invariants in stores again.
10942
10943 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10944
10945         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
10946
10947 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
10948
10949         * config/i386/i386.c (ix86_expand_branch): Don't split
10950         DI mode xor instruction to SI mode.
10951
10952 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
10953
10954         PR ipa/68148
10955         * ipa-icf.c (sem_function::merge): Virtual functions may become
10956         reachable even if they address is not taken and there are no
10957         idrect calls.
10958
10959 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
10960
10961         * lto-streamer-out.c (subtract_estimated_size): New function.
10962         (get_symbol_initial_value): Use it.
10963
10964 2016-01-15  Christian Bruel  <christian.bruel@st.com>
10965
10966         PR target/65837
10967         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
10968         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
10969         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
10970         use add_builtin_function_ext_scope instead of add_builtin_function.
10971         (neon_set_p, neon_crypto_set_p): Remove.
10972         (arm_init_builtins): Always call arm_init_neon_builtins and
10973         arm_init_crypto_builtins.
10974         (arm_expand_builtin): Check that builtins are allowed for the arch.
10975         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
10976         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
10977         arm_init_neon_builtins call.
10978
10979 2016-01-15  Richard Biener  <rguenther@suse.de>
10980
10981         PR tree-optimization/69117
10982         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
10983         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
10984         of the leader conservatively.
10985         (free_scc_vn): Restore original SSA name infos.
10986
10987 2016-01-14  Jeff Law  <law@redhat.com>
10988
10989         PR tree-optimization/69270
10990         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
10991         single bit of precision, verify it's also unsigned.
10992         (record_edge_info): Use constant_boolean_node rather than fold_convert
10993         to convert boolean_true/boolean_false to the right type.
10994
10995 2016-01-14  Richard Henderson  <rth@redhat.com>
10996
10997         PR rtl-opt/69014
10998         * loop-doloop.c (record_reg_sets): New.
10999         (doloop_optimize): Reject the transform if the sequence
11000         clobbers registers live at the end of the loop block.
11001         (doloop_optimize_loops): Enable df_live if needed.
11002
11003 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11004
11005         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
11006         * gcc/config/rs6000/rs6000.c: Likewise.
11007         * gcc/config/rs6000/rs6000.h: Likewise.
11008         * gcc/config/rs6000/rs6000.md: Likewise.
11009         * gcc/doc/extend.texi: Likewsie.
11010
11011 2016-01-14  Jeff Law  <law@redhat.com>
11012
11013         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
11014         typo.
11015
11016 2016-01-14  Richard Henderson  <rth@redhat.com>
11017
11018         PR c/69272
11019         PR tree-opt/68964
11020         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
11021         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
11022         instead of builtin_decl_declared_p to test for declaration.
11023
11024 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
11025
11026         * doc/loop.texi (Loop Analysis and Representation): Document
11027         loop_depth function.
11028
11029 2016-01-14  Tom de Vries  <tom@codesourcery.com>
11030
11031         PR tree-optimization/68773
11032         * omp-low.c (expand_omp_target): Don't set force_output.
11033         * varpool.c (varpool_node::get_create): Same.
11034         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
11035         offload_funcs with force_output.
11036
11037 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
11038
11039         PR debug/69244
11040         * lra-eliminations.c (move_plus_up): Don't change anything if either
11041         the outer or inner subreg mode is not MODE_INT.
11042         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
11043         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
11044
11045 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
11046
11047         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
11048         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
11049         reduc_uplus_@var{m}): Remove.
11050         * expr.c (expand_expr_real_2): Remove expansion path for
11051         reduc_[us](min|max|plus) optabs.
11052         * optabs-tree.c (scalar_reduc_to_vector): Remove.
11053         * optabs-tree.h (scalar_reduc_to_vector): Remove.
11054         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
11055         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
11056         * tree-vect-loop.c (vectorizable_reduction): Remove test for
11057         reduc_[us](min|max|plus) optabs.
11058
11059 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
11060
11061         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
11062         (reduc_plus_scal_v2sf): New.
11063         (reduc_smax_v2sf): Rename to...
11064         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
11065         (reduc_smin_v2sf): Rename to...
11066         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
11067
11068 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
11069
11070         * alias.c (compare_base_symbol_refs): New function.
11071         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
11072         it.
11073
11074 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
11075
11076         PR middle-end/68146
11077         PR tree-optimization/69155
11078         * tree-complex.c: Include cfganal.h.
11079         (phis_to_revisit): New variable.
11080         (extract_component): Add phiarg_p argument.  Assert that returned
11081         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
11082         (update_phi_components): Partly rewrite to use loop over real/imag
11083         components instead of code duplication.  If extract_component returns
11084         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
11085         create_tmp_reg into the PHI node instead, and mention the phi triplet
11086         in phis_to_revisit.
11087         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
11088         in phis_to_revisit at the end.
11089
11090 2016-01-14  Richard Biener  <rguenther@suse.de>
11091
11092         PR tree-optimization/68060
11093         * tree-vect-loop.c (vect_is_simple_reduction): Check the
11094         outer loop reduction is only used in the inner loop before
11095         detecting a double reduction.
11096
11097 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
11098
11099         PR target/68269
11100         * combine.c (expand_field_assignment): Punt if compute_mode is
11101         unsupported scalar mode.
11102
11103 2016-01-14  Richard Biener  <rguenther@suse.de>
11104
11105         PR tree-optimization/66856
11106         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
11107         SLP node only if it built successfully.
11108         (vect_analyze_slp_instance): Adjust.
11109
11110 2016-01-14  Jeff Law  <law@redhat.com>
11111
11112         PR tree-optimization/69270
11113         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
11114         (record_edge_info): Use it.  Convert boolean_{true,false}_node
11115         to the type of op0.
11116
11117 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
11118
11119         PR ipa/66487
11120         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
11121         use block_ultimate_origin
11122         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
11123
11124 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
11125
11126         * doc/invoke.texi (Submodel Options): Rename section to
11127         "Machine-Dependent Options" to better reflect its content.
11128         Rewrite introductory text to remove archaic CPU names.
11129         Update references.
11130
11131 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
11132
11133         * doc/invoke.texi (Code Gen Options): Move section up in file,
11134         before target-specific options.  Update menu and option summary
11135         to reflect the new section ordering.
11136
11137 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
11138
11139         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
11140         (C++ Dialect Options): Add cross-reference to -std option.
11141         * doc/standards.texi (C++ Language): Document C++14 support.
11142
11143 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
11144
11145         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
11146         for pack/unpack functions for __ibm128.
11147         (PACK_IF): Likewise.
11148         (UNPACK_IF): Likewise.
11149
11150         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
11151         support for __ibm128 pack/unpack functions.
11152         (rs6000_invalid_builtin): Likewise.
11153         (rs6000_init_builtins): Likewise.
11154         (rs6000_opt_masks): Likewise.
11155
11156         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
11157         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
11158         functions
11159         (RS6000_BTM_COMMON): Likewise.
11160
11161         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
11162         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
11163         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
11164         128-bit floating point.  Add support for the double values to be
11165         in Altivec registers for TF/IF packing and unpacking, but restrict
11166         TD packing sub-fields to be FPR registers.  Don't allow overlapped
11167         register support for packing.  Allow pack inputs to be memory
11168         locations.  Don't build generator functions for unpack<mode>_dm
11169         and unpack<mode>_nodm.
11170         (unpack<mode>_dm): Likewise.
11171         (unpack<mode>_nodm): Likewise.
11172         (pack<mode>): Likewise.
11173
11174         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
11175         built-in functions to pack/unpack explicit __ibm128 values.
11176         (__builtin_unpack_ibm128): Likewise.
11177
11178         * doc/extend.texi (PowerPC Built-in Functions): Document
11179         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
11180
11181 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
11182
11183         PR c/66208
11184         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
11185         Add new arg loc and pass it down as context.
11186         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
11187         to the location to use for the warning.
11188         (check_function_arguments): New arg loc.  All callers changed.  Pass
11189         it to check_function_nonnull.
11190         * c-common.h (check_function_arguments): Adjust declaration.
11191
11192 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
11193
11194         PR tree-optimization/69156
11195         * gimple.c (validate_type): Removed.
11196         (gimple_builtin_call_types_compatible_p): Use
11197         useless_type_conversion_p instead of validate_type.
11198         * value-prof.c (gimple_stringop_fixed_value): Fold
11199         icall_size to correct type.
11200
11201 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
11202
11203         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
11204         effects.
11205
11206 2016-01-13  Richard Henderson  <rth@redhat.com>
11207
11208         PR tree-opt/68964
11209         * target.def (builtin_tm_load, builtin_tm_store): Remove.
11210         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
11211         (ix86_builtin_tm_store): Remove.
11212         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
11213         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
11214         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
11215         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
11216         * doc/tm.texi: Rebuild.
11217
11218         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
11219         (BUILT_IN_TM_MEMCPY_RTWN): New.
11220         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
11221         fallback from vector to integer helpers.
11222         (build_tm_load): Handle vector types directly, instead of
11223         via target hook.
11224         (build_tm_store): Likewise.
11225         (expand_assign_tm): Prepare for register types not handled by
11226         the above.  Copy them to memory and use memcpy.
11227         * tree.c (tm_define_builtin): New.
11228         (find_tm_vector_type): New.
11229         (build_tm_vector_builtins): New.
11230         (build_common_builtin_nodes): Call it.
11231
11232 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
11233
11234         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
11235         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
11236
11237 2016-01-13  Tom de Vries  <tom@codesourcery.com>
11238
11239         PR tree-optimization/69169
11240         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
11241         handled_struct_type param.
11242         (create_variable_info_for, intra_create_variable_infos): Call
11243         create_variable_info_for_1 with extra arg.
11244
11245 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
11246
11247         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
11248         and "armv8.1-a+crc" entries.
11249
11250 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
11251
11252         PR target/69228
11253         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
11254         Change first operand predicate from register_or_constm1_operand
11255         to register_operand.
11256         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
11257         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
11258         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
11259         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
11260         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
11261         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
11262         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
11263         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
11264         comparison with constm1_rtx from vec_prefetch_gen part.
11265
11266 2016-01-13  Richard Biener  <rguenther@suse.de>
11267
11268         PR tree-optimization/69013
11269         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
11270         Exchange assert for a test.
11271
11272 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11273
11274         PR target/69247
11275         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
11276
11277 2016-01-13  Richard Biener  <rguenther@suse.de>
11278
11279         PR tree-optimization/69242
11280         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
11281         assert with a check.
11282
11283 2016-01-13  Richard Biener  <rguenther@suse.de>
11284
11285         PR tree-optimization/69186
11286         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11287         Properly guard vect_update_misalignment_for_peel call.
11288
11289 2016-01-12  Jeff Law  <law@redhat.com>
11290
11291         PR tree-optimization/pr67755
11292         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
11293         "need_profile_correction".
11294         (thread_block_1): Initialize new field to false by default.  If we
11295         have multiple thread paths through a common joiner to different
11296         final targets, then set new field to true.
11297         (compute_path_counts): Only do count adjustment when it's really
11298         needed.
11299
11300 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
11301
11302         * doc/invoke.texi (Spec Files): Move section down in file, past
11303         all command-line option descriptions.
11304
11305 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11306
11307         PR middle-end/54809
11308         * doc/gty.texi: Remove documentation of mark_hook.
11309         * gengtype.c (struct write_types_data): Remove code to support
11310         mark_hook attribute.
11311         (walk_type): Likewise.
11312         (write_func_for_structure): Likewise.
11313
11314 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
11315
11316         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
11317         Directory Options, and -specs= to Overall Options.
11318         (Overall Options): Adjust similarly.  Reorder to group related
11319         options together.  Make -specs= cross-reference the spec file details.
11320         (Directory Options): Adjust similarly.
11321
11322 2016-01-12  Jeff Law  <law@redhat.com>
11323
11324         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
11325
11326 2016-01-12  Olivier Hainque  <hainque@adacore.com>
11327
11328         * gcc.c (spec_undefvar_allowed): New global.
11329         (process_command): Set to true when running for --version or --help,
11330         alone or together.
11331         (getenv_spec_function): When the variable is not defined, use the
11332         variable name as the variable value if we're allowed not to issue
11333         a fatal error.
11334
11335 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
11336
11337         PR tree-optimization/68911
11338         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
11339         information computed for expression "init + nit * step".
11340
11341 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
11342
11343         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
11344         about name of GCC executable.  Remove deleted node from menu.
11345         (Directory Options) <-B>: Remove cross-reference to deleted node.
11346         (Target Options): Delete section.
11347
11348 2016-01-12  Christian Bruel  <christian.bruel@st.com>
11349
11350         PR target/69180
11351         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
11352         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
11353
11354 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
11355
11356         PR target/69198
11357         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
11358         aligned_mem is properly set for AVX512-VL floating point masked
11359         stores.
11360
11361         PR target/69175
11362         * ifcvt.c (cond_exec_process_if_block): When removing the last
11363         insn from then_bb, remove also any possible barriers that follow it.
11364
11365 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
11366
11367         PR target/68456
11368         PR target/69226
11369         * config/i386/iamcu.h (SIZE_TYPE): New macro.
11370         (PTRDIFF_TYPE): Likewise.
11371         (WCHAR_TYPE): Likewise.
11372         (WCHAR_TYPE_SIZE): Likewise.
11373         (STDINT_LONG32): Likewise.
11374
11375 2016-01-12  Richard Biener  <rguenther@suse.de>
11376
11377         PR tree-optimization/69053
11378         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
11379         convert initial value for cond reductions.
11380
11381 2016-01-12  Richard Biener  <rguenther@suse.de>
11382
11383         PR tree-optimization/69007
11384         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
11385         widen_sum after dot_prod and sad.
11386
11387 2016-01-12  Richard Biener  <rguenther@suse.de>
11388
11389         PR tree-optimization/69168
11390         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
11391         pattern stmt SLP type.
11392         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
11393         end up unused so cope with that case.
11394
11395 2016-01-12  Richard Biener  <rguenther@suse.de>
11396
11397         PR tree-optimization/69157
11398         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
11399         stmts def type only during analyze phase.
11400         (vectorizable_call): Likewise.
11401         (vectorizable_simd_clone_call): Likewise.
11402         (vectorizable_conversion): Likewise.
11403         (vectorizable_assignment): Likewise.
11404         (vectorizable_shift): Likewise.
11405         (vectorizable_operation): Likewise.
11406         (vectorizable_store): Likewise.
11407         (vectorizable_load): Likewise.
11408
11409 2016-01-12  Richard Biener  <rguenther@suse.de>
11410
11411         PR tree-optimization/69174
11412         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
11413         space.
11414         (vectorizable_load): Properly compute the number of loads needed
11415         for permuted strided SLP loads and do not spuriously assign
11416         to SLP_TREE_VEC_STMTS.
11417
11418 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
11419
11420         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
11421         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
11422         (MD_EXEC_PREFIX): Remove.
11423         (MD_STARTFILE_PREFIX) Removee.
11424         (FILE_NAME_ABSOLUTE_P): Remove.
11425         (CPP_SPEC): Do not read macros from sys/version.h.
11426         (LINK_COMMAND_SPEC): Remove.
11427         (LOCAL_INCLUDE_DIR): Remove.
11428         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
11429         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
11430         (POST_LINK_SPEC): Define to invoke stubify after linker
11431         (LIBSTDCXX): Remove define
11432         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
11433         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
11434         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
11435         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
11436         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
11437         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
11438         (i386_djgpp_asm_named_section): Add propotype of new procedure
11439
11440         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
11441         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
11442         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
11443         in config/i386/djgpp.h).
11444         (STANDARD_STARTFILE_PREFIX_2): Define identical to
11445         STANDARD_STARTFILE_PREFIX_1.
11446         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
11447         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
11448         installation errors.
11449         (MAX_OFILE_ALIGNMENT): Define to 128.
11450         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
11451
11452         * config/i386/djgpp.c: New file. Add implementation of
11453         i386_djgpp_asm_named_section.
11454
11455         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
11456
11457         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
11458         Add rule for building djgpp.o.
11459
11460 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11461
11462         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
11463         (rtx_is_swappable_p): Reductions are swappable.
11464         (insn_is_swappable_p): V2DF reductions are swappable.
11465
11466 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
11467
11468         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
11469         reloads for other unsupported memory operands.
11470
11471 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
11472             Jim Wilson  <jim.wilson@linaro.org>
11473
11474         PR target/69194
11475         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
11476         copy_to_mode_reg instead of force_reg.
11477
11478 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
11479
11480         PR target/69225
11481         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
11482         TARGET_80387 is true.
11483
11484 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
11485
11486         PR target/69071
11487         * lra-eliminations.c (move_plus_up): Only move plus up
11488         if subreg of the constant can be simplified into constant
11489         and use the simplified subreg of the constant instead of
11490         the original constant.
11491
11492         * fold-const.c (fold_convertible_p): Don't return true
11493         for conversion of VECTOR_TYPE to same sized integral type.
11494         (fold_convert_loc): Fix up formatting.  Fold conversion of
11495         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
11496         instead of NOP_EXPR.
11497
11498         PR tree-optimization/69214
11499         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
11500         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
11501         Formatting fix.
11502
11503         PR tree-optimization/69207
11504         * tree-vect-slp.c (vect_get_constant_vectors): For
11505         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
11506         fold_convertible_p to vector_type's element type, and always
11507         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
11508
11509 2016-01-11  Richard Biener  <rguenther@suse.de>
11510
11511         PR tree-optimization/69173
11512         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
11513         fixup the cycle if all stmts are in a pattern.
11514
11515 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
11516
11517         PR middle-end/68999
11518         * alias.c (base_alias_check): Move check for addresses with
11519         alignment ANDs before the call for compare_base_decls.
11520         (memrefs_conflict_p): Return -1 for different decls
11521         that went through alignment adjustments.
11522
11523 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11524
11525         PR rtl-optimization/68796
11526         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
11527         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
11528         and QImode comparisons against zero with CC_NZmode.
11529         * config/aarch64/iterators.md (short_mask): New mode_attr.
11530
11531 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
11532
11533         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
11534         (<avx512>_store<mode>_mask): Likewise.
11535
11536 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
11537             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11538
11539         PR rtl-optimization/68841
11540         * ifcvt.c (struct noce_if_info): Add orig_x field.
11541         (bbs_ok_for_cmove_arith): Add to_rename parameter.
11542         Don't record conflicts on to_rename if it's present.
11543         Allow memory destinations in sets.
11544         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
11545         blocks, passing orig_x to the checks.
11546         (noce_process_if_block): Set if_info->orig_x appropriately.
11547
11548 2016-01-11  Tom de Vries  <tom@codesourcery.com>
11549
11550         PR tree-optimization/69069
11551         * tree-parloops.c (create_parallel_loop): Add missing phi args.
11552
11553 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
11554
11555         PR rtl-optimization/68920
11556         * config/i386/i386.c (ix86_option_override_internal): Restrict number
11557         of conditional moves for  RTL if-conversion to 1 for
11558         TARGET_ONE_IF_CONV_INSN.
11559         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
11560         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
11561         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
11562         parameter to restirct number of conditional moves for
11563         RTL if-conversion.
11564         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
11565         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
11566         conditionl moves.
11567
11568 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
11569
11570         PR bootstrap/69123
11571         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
11572         onepart vars.  Fix typo in comment.  Fix reversed condition in
11573         unshare test.
11574         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
11575
11576         PR bootstrap/69123
11577         * var-tracking.c (dump_onepart_variable_differences): New.
11578         (dataflow_set_different): If a detailed dump is requested,
11579         delay early returns and dump differences between onepart
11580         variables present before and after, and added variables.
11581
11582 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
11583
11584         PR target/69010
11585         * expr.c (expand_expr_real_1): For boolean vector constants
11586         with a scalar mode use const_scalar_mask_from_tree.
11587         (const_scalar_mask_from_tree): New.
11588         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
11589         assigned to a mask type to handle constants.
11590
11591 2016-01-11  Martin Jambor  <mjambor@suse.cz>
11592
11593         PR ipa/69044
11594         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
11595         useless parameters if we cannot change function signature.
11596
11597 2016-01-11  Martin Jambor  <mjambor@suse.cz>
11598
11599         PR ipa/66616
11600         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
11601         flag.
11602
11603 2016-01-11  Tom de Vries  <tom@codesourcery.com>
11604
11605         PR tree-optimization/69109
11606         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
11607         latch with phi.
11608
11609 2016-01-11  Tom de Vries  <tom@codesourcery.com>
11610
11611         PR tree-optimization/69108
11612         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
11613         res is not used in a phi.
11614
11615 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
11616
11617         PR 67425
11618         * common.opt (frandom-seed): Fix parameter name.
11619         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
11620
11621 2016-01-11  Tom de Vries  <tom@codesourcery.com>
11622
11623         PR tree-optimization/69058
11624         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
11625         not supported.
11626
11627 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
11628
11629         * config/arc/arc.opt (mdiv-rem): Add period to the end.
11630         (mcode-density): Likewise.
11631
11632 2016-01-10  Tom de Vries  <tom@codesourcery.com>
11633
11634         PR tree-optimization/69062
11635         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
11636         (parallelize_loops): Don't paralelize loop that has phi with address
11637         arg.
11638
11639 2016-01-10  Tom de Vries  <tom@codesourcery.com>
11640
11641         PR tree-optimization/69039
11642         * tree-parloops.c (try_create_reduction_list): Only allow single exit
11643         phi for reduction.
11644
11645 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
11646
11647         PR middle-end/68743
11648         * match.pd: Require target has function_c99_misc before doing
11649         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
11650
11651 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
11652
11653         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
11654         use GMPINC.
11655         * configure: Regenerate.
11656
11657 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
11658
11659         PR middle-end/50865
11660         PR tree-optimization/69097
11661         * fold-const.h (expr_not_equal_to): New prototype.
11662         * fold-const.c: Include stringpool.h and tree-ssanames.h.
11663         (expr_not_equal_to): New function.
11664         * match.pd (X % -Y is the same as X % Y): Don't optimize
11665         unless X is known not to be equal to minimum or Y is known
11666         not to be equal to -1.
11667         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
11668         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
11669         (simplify_stmt_using_ranges): Adjust caller.
11670         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
11671         substitute_and_fold.
11672
11673 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
11674
11675         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
11676         w/o DECL_NAME.
11677
11678 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
11679
11680         PR tree-optimization/69167
11681         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
11682         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
11683         ops[0] comparison.
11684         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
11685
11686 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
11687             Richard Biener  <rguenther@suse.de>
11688
11689         PR tree-optimization/68707
11690         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
11691         instances that can be handled via vect_load_lanes.
11692
11693 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
11694
11695         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
11696         if we can't determine address equivalence.
11697         * alias.c (compare_base_decl): Update for changed return value of
11698         symtab_node::equal_address_to.
11699
11700 2016-01-08  Jason Merrill  <jason@redhat.com>
11701
11702         PR c++/68983
11703         PR c++/67557
11704         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
11705         * expr.c (store_field): Not here.
11706         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
11707         call with TREE_ADDRESSABLE type.
11708         * tree-cfg.c (verify_gimple_call): Adjust.
11709
11710 2016-01-08  Olivier Hainque  <hainque@adacore.com>
11711
11712         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
11713         libc_internal.
11714
11715 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
11716
11717         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
11718         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
11719         (reduc_smin_v2sf): Rename to...
11720         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
11721         (reduc_splus_v2sf): Rename to...
11722         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
11723
11724 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
11725
11726         PR tree-optimization/69162
11727         * gimplify.c (gimplify_va_arg_expr): Encode original type of
11728         valist argument in another argument.
11729         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
11730         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
11731         to determine the va_list type, build a MEM_REF instead of
11732         build_fold_indirect_ref.
11733
11734         PR tree-optimization/69172
11735         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
11736         gimple_build.
11737
11738 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11739
11740         PR tree-optimization/67781
11741         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
11742         and cmpnop in two steps: first the ones not accessed in original
11743         gimple expression in a endian independent way and then the ones not
11744         accessed in the final result in an endian-specific way.
11745
11746 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
11747
11748         PR tree-optimization/69083
11749         * tree-vect-slp.c (vect_get_constant_vectors): For
11750         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
11751         element type.  If op is fold_convertible_p to vector_type's element
11752         type, use NOP_EXPR instead of VCE.
11753
11754 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
11755
11756         PR rtl-optimization/67778
11757         PR rtl-optimization/68634
11758         PR rtl-optimization/68909
11759         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
11760         block from the stack until done with it.  Remove a superfluous
11761         bitmap set.  Remove a superfluous bitmap test.
11762
11763 2016-01-07  Martin Sebor  <msebor@redhat.com>
11764
11765         PR c/68966
11766         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
11767         constraint on the type of arguments.
11768
11769 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
11770
11771         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
11772         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
11773         unaligned_access on the gcc_options set.
11774         * config/arm/arm.c (arm_option_override_internal): Use
11775         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
11776
11777 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
11778
11779         PR target/69140
11780         * config/i386/i386.c (ix86_frame_pointer_required): Enable
11781         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
11782
11783 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
11784
11785         Revert
11786         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
11787
11788         PR target/69140
11789         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
11790         depending on frame_pointer_needed before remaining integer and SSE
11791         registers are saved.
11792
11793 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
11794
11795         PR 1078
11796         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
11797
11798 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
11799
11800         PR target/69171
11801         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
11802         Use the "xBm" constraint.
11803         (float<sseintvecmodelower><mode>2<mask_name><round_name):
11804         Likewise.
11805         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
11806         (sse_cvtsi2ssq<round_name>): Likewise.
11807         (sse_cvtss2si<round_name>): Likewise.
11808         (sse_cvtss2siq<round_name>): Likewise.
11809         (sse2_cvtsi2sdq<round_name>): Likewise.
11810         (sse2_cvtsd2si<round_name>): Likewise.
11811         (sse2_cvtsd2siq<round_name>): Likewise.
11812         * config/i386/subst.md (round_nimm_scalar_predicate): New
11813         predicate.
11814
11815 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
11816
11817         PR middle-end/67639
11818         * varasm.c (make_decl_rtl): Mark invalid register vars as
11819         DECL_EXTERNAL.
11820
11821         PR rtl-optimization/66206
11822         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
11823         All callers changed.
11824
11825 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
11826
11827         PR tree-optimization/69141
11828         * tree-ssa-pre.c: Include langhooks.h.
11829         (eliminate_dom_walker::before_dom_children): Use
11830         lang_hooks.decl_printable_name instead of
11831         cgraph_node::get ()->name ().
11832
11833         PR middle-end/68960
11834         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
11835         it and DECL_ALIGN too.
11836
11837 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
11838
11839         * config/mips/mips-ftypes.def: Sort to lexicographical order.
11840
11841 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
11842
11843         PR target/69140
11844         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
11845         depending on frame_pointer_needed before remaining integer and SSE
11846         registers are saved.
11847
11848 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11849
11850         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
11851         mode iterator with VSX_M2.
11852         (*p9_vecstore_<mode>): Likewise.
11853         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
11854         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
11855         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
11856         (define_split for VSX_LE128 stores): Likewise.
11857         (define_peephole2 for TImode LE swaps): Likewise.
11858         (define_split for VSX_LE128 post-reload stores): Likewise.
11859
11860 2016-01-06  Marek Polacek  <polacek@redhat.com>
11861
11862         PR sanitizer/69099
11863         * convert.c (convert_to_integer_1): Adjust call to
11864         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
11865         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
11866         EXPR instead of ARG.
11867         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
11868
11869 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
11870
11871         PR 1078
11872         * doc/extend.texi (RL78 Variable Attributes): New section.
11873
11874 2016-01-05  Marek Polacek  <polacek@redhat.com>
11875
11876         PR c/69104
11877         * builtins.c (get_memmodel): Use expansion point location rather than
11878         the input location.  Call warning_at rather than warning.
11879         (expand_builtin_atomic_compare_exchange): Likewise.
11880         (expand_builtin_atomic_load): Likewise.
11881         (expand_builtin_atomic_store): Likewise.
11882         (expand_builtin_atomic_clear): Likewise.
11883
11884 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
11885
11886         PR target/68991
11887         * config/i386/i386.c (ix86_expand_vector_logical_operator):
11888         Replace nonimmediate_operand with vector_operand.
11889         * config/i386/predicates.md (vector_operand): New predicate.
11890         (general_vector_operand): Replace nonimmediate_operand with
11891         vector_operand.
11892         * config/i386/sse.md: Replace nonimmediate_operand with
11893         vector_operand and m constraint with Bm constraint on SSE
11894         patterns with 16-byte memory operand.
11895         * config/i386/subst.md (round_nimm_predicate): Replace
11896         nonimmediate_operand with vector_operand.
11897         (round_saeonly_nimm_predicate): Likewise.
11898         (round_saeonly_nimm_scalar_predicate): New.
11899
11900 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
11901
11902         PR target/68991
11903         * config/i386/constraints.md (Bm): New constraint.
11904         * config/i386/predicates.md (vector_memory_operand): New
11905         predicate.
11906         * config/i386/sse.md: Replace xm with xBm in plusminus and
11907         any_logic patterns.
11908
11909 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
11910
11911         PR 1078
11912         * doc/extend.texi (V850 Function Attributes): New section.
11913         (V850 Variable Attributes): New section.
11914
11915 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
11916
11917         PR 1078
11918         * doc/extend.texi (MicroBlaze Function Attributes): Document
11919         interrupt_handler and fast_interrupt attributes.
11920
11921 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
11922
11923         PR other/60465
11924         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
11925         for local symbolic operands.
11926         * config/ia64/predicates.md (local_symbolic_operand64): New
11927         predicate.
11928
11929 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11930
11931         PR rtl-optimization/68651
11932         * combine.c (combine_simplify_rtx): Canonicalize x + x into
11933         x << 1.
11934
11935 2016-01-05  Nathan Sidwell  <nathan@acm.org>
11936
11937         * alias.c (compare_base_decls): Use symtab_node::get.
11938
11939 2016-01-05  Nick Clifton  <nickc@redhat.com>
11940
11941         PR target/68770
11942         * ira-costs.c (copy_cost): Initialise the t_icode field of the
11943         secondary_reload_info structure.
11944
11945         PR target/66655
11946         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
11947         decls if weak support is available.
11948
11949 2016-01-04  Martin Sebor  <msebor@redhat.com>
11950
11951         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
11952
11953 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
11954
11955         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
11956         OPTION_MASK_P9_DFORM.
11957
11958         * config/rs6000/constraints.md (wo constraint): New constraint for
11959         ISA 3.0 (power9).
11960
11961         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
11962         for wo constraint.
11963         (rs6000_init_hard_regno_mode_ok): Likewise.
11964
11965         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
11966         wo constraint.
11967
11968         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
11969         expanders not to have constraints.  Add support for ISA 3.0 xxperm
11970         instruction.  Add support for fusing xxlor with xxperm.
11971         (altivec_vperm_<mode>_internal): Likewise.
11972         (altivec_vperm_v8hiv16qi): Likewise.
11973         (altivec_vperm_<mode>v16q): Likewise.
11974         (altivec_vperm_<mode>_uns): Likewise.
11975         (vperm_v8hiv4si): Likewise.
11976         (vperm_v16qiv8hi): Likewise.
11977
11978         * doc/md.texi (RS/6000 constraints): Document wo constraint.
11979
11980 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
11981
11982         Update copyright years.
11983
11984         * gcc.c (process_command): Update copyright notice dates.
11985         * gcov-dump.c (print_version): Ditto.
11986         * gcov.c (print_version): Ditto.
11987         * gcov-tool.c (print_version): Ditto.
11988         * gengtype.c (create_file): Ditto.
11989         * doc/cpp.texi: Bump @copying's copyright year.
11990         * doc/cppinternals.texi: Ditto.
11991         * doc/gcc.texi: Ditto.
11992         * doc/gccint.texi: Ditto.
11993         * doc/gcov.texi: Ditto.
11994         * doc/install.texi: Ditto.
11995         * doc/invoke.texi: Ditto.
11996
11997 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11998
11999         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
12000         modes larger than TImode as TImode if NEON is not enabled.
12001
12002 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
12003
12004         PR target/69100
12005         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
12006         mode for %f0-%f31 only if TARGET_FPU.
12007
12008 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
12009
12010         PR target/69072
12011         * config/sparc/sparc.c (scan_record_type): Take into account subfields
12012         to compute the PACKED_P predicate.
12013         (function_arg_record_value): Minor tweaks.
12014
12015 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12016
12017         * doc/install.texi (--with-multilib-list): Describe the meaning of the
12018         option for arm*-*-* targets.
12019
12020 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
12021
12022         * doc/extend.texi (Common Function Attributes): Move docs for
12023         MSP430-specific attributes to....
12024         (MSP430 Function Attributes): ...here.  Delete the redundant
12025         entries and copy-edit the remaining text.
12026         (MSP430 Variable Attributes): Use uniform format for index
12027         entries and add a cross-reference to the corresponding function
12028         attribute docs.
12029
12030 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
12031
12032         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
12033         -finite-math typo.
12034         (x86 Options): Likewise.
12035
12036 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
12037
12038         PR 1078
12039
12040         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
12041         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
12042         to corresponding attribute.
12043
12044 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
12045
12046         * doc/extend.texi (Common Function Attributes) <noplt>: Move
12047         to correct alphabetization of table.  Copy-edit and correct
12048         markup.
12049         <stack_protect>: Likewise.
12050         <target_clones>: Likewise.
12051         <simd>: Likewise.
12052         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
12053         Correct punctuation.
12054         (Code Gen Options) <-fno-plt>: Copy-edit.
12055
12056 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12057
12058         PR target/68917
12059         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
12060         SI values.  Explicitly convert SI to DI and vice-versa.
12061
12062 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
12063
12064         PR tree-optimization/69070
12065         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
12066         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
12067
12068         PR sanitizer/69055
12069         * ubsan.c (ubsan_instrument_float_cast): Call
12070         initialize_sanitizer_builtins.
12071
12072         PR target/69015
12073         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
12074 \f
12075 Copyright (C) 2016 Free Software Foundation, Inc.
12076
12077 Copying and distribution of this file, with or without modification,
12078 are permitted in any medium without royalty provided the copyright
12079 notice and this notice are preserved.