c-common.c (get_source_date_epoch): Use int64_t instead of long long.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
2
3         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
4         (do_rewrite): likewise.
5
6 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7
8         * common/config/mep/mep-common.c: Remove.
9         * config.gcc: Remove mep-* support.
10         * config/mep/constraints.md: Remove.
11         * config/mep/default.h: Remove.
12         * config/mep/intrinsics.h: Remove.
13         * config/mep/intrinsics.md: Remove.
14         * config/mep/ivc2-template.h: Remove.
15         * config/mep/mep-c5.cpu: Remove.
16         * config/mep/mep-core.cpu: Remove.
17         * config/mep/mep-default.cpu: Remove.
18         * config/mep/mep-ext-cop.cpu: Remove.
19         * config/mep/mep-intrin.h: Remove.
20         * config/mep/mep-ivc2.cpu: Remove.
21         * config/mep/mep-pragma.c: Remove.
22         * config/mep/mep-protos.h: Remove.
23         * config/mep/mep.c: Remove.
24         * config/mep/mep.cpu: Remove.
25         * config/mep/mep.h: Remove.
26         * config/mep/mep.md: Remove.
27         * config/mep/mep.opt: Remove.
28         * config/mep/predicates.md: Remove.
29         * config/mep/t-mep: Remove.
30         * doc/install.texi: Remove mep-* documentation.
31         * doc/md.texi: Likewise.
32
33 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34
35         * config.gcc: Remove support for avr-rtems.
36         * config/avr/gen-avr-mmcu-specs.c: Likewise.
37         * config/avr/rtems.h: Remove.
38         * config/avr/t-rtems: Remove.
39
40 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
41
42         * config.gcc: Remove m32r-rtems support.
43         * config/m32r/rtems.h: Remove.
44
45 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
46
47         * config.gcc: Remove h8300-rtems support.
48         * config/h8300/rtems.h: Remove.
49         * config/h8300/t-rtems: Remove.
50
51 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
52
53         * config.gcc: Remove support for knetbsd.
54         * configure.ac: Likewise.
55         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
56         * config/knetbsd-gnu.h: Remove.
57         * configure: Regenerate.
58
59 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
60
61         * config.gcc: Remove support for openbsd 2 and 3.
62         * config/openbsd-oldgas.h: Remove.
63
64 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
65
66         * config.gcc: Remove interix support.
67         * config/i386/i386-interix.h: Remove.
68         * config/i386/interix.opt: Remove.
69         * config/i386/t-interix: Remove.
70         * configure: Regenerate.
71         * configure.ac: Remove interix support.
72         * doc/install.texi: Remove interix documentation.
73
74 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
75
76         * config/rs6000/rs6000.h: Add conditional preprocessing directives
77         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
78         not defined.
79
80 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
81
82         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
83         they are both PLACEHOLDER_EXPRs.
84
85 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
86
87         * stor-layout.c (layout_type): Move setting complex MODE to
88         layout_type, instead of setting it ahead of time by the caller.
89         * tree.c (build_complex_type): Likewise.
90
91 2016-06-21  Martin Liska  <mliska@suse.cz>
92
93         * predict.c (force_edge_cold): Replace imposisble with
94         impossible.
95
96 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
97
98         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
99         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
100
101 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
102
103         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
104
105 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
106             Ilya Enkovich  <ilya.enkovich@intel.com>
107
108         PR target/71549
109         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
110         New member function to convert V1TImode register to SUBREG
111         TImode in debug insn.
112         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
113         after changing register mode to V1TImode.
114
115 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
116
117         * config/aarch64/aarch64-cores.def (vulcan): New core.
118         * config/aarch64/aarch64-tune.md: Regenerate.
119         * doc/invoke.texi: Document vulcan as an available option.
120
121 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
122
123         * cse.c (canon_asm_operands): New function extracted from...
124         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
125         either standalone or member of a PARALLEL.
126
127 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
128
129         PR target/30417
130         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
131         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
132         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
133
134 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
135
136         PR target/71103
137         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
138         constant addresses if can_create_pseudo_p.
139
140 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
141
142         PR tree-optimization/71588
143         * tree-ssa-strlen.c (valid_builtin_call): New function.
144         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
145         it.
146
147 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
148
149         PR middle-end/71581
150         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
151         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
152         for conversion of scalar user var to complex type and use the
153         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
154         punt.
155
156         PR rtl-optimization/71591
157         * toplev.c (toplev::run_self_tests): If no_backend, complain and
158         don't run any tests.
159
160 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
161
162         PR target/71571
163         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
164         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
165         space for PIC with non-v32 and the common non-PIC "jump".
166
167 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
168
169         PR target/71559
170         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
171         returned values and add UN*/LTGT/*ORDERED cases with values matching
172         D operand modifier on vcmp for AVX.
173
174 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
175
176         * config/aarch64/aarch64.opt
177         (mpc-relative-literal-loads): Rename internal option name.
178         * config/aarch64/aarch64.c
179         (aarch64_nopcrelative_literal_loads): Rename to
180         aarch64_pcrelative_literal_loads.
181         (aarch64_expand_mov_immediate): Likewise.
182         (aarch64_secondary_reload): Likewise.
183         (aarch64_can_use_per_function_literal_pools_p): Likewise.
184         (aarch64_override_options_after_change_1): Rename and simplify logic.
185         (aarch64_classify_symbol): Merge large model checks into switch,
186         remove pc-relative load check.
187
188 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
189
190         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
191         costs relative to the cost of a register move.
192
193 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
194
195         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
196         (vcvt_n_f64_u64): Likewise.
197         (vcvt_n_s64_f64): Likewise.
198         (vcvt_n_u64_f64): Likewise.
199         (vcvt_f64_s64): Likewise.
200         (vrecpe_f64): Likewise.
201         (vcvt_f64_u64): Likewise.
202         (vrecps_f64): Likewise.
203
204 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
205
206         * config/aarch64/aarch64.md
207         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
208         iterators.
209         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
210         attributes.
211         * config/aarch64/aarch64-builtins.c
212         (aarch64_types_binop_uss_qualifiers): Delete.
213         (TYPES_BINOP_USS): Likewise.
214         (aarch64_types_binop_sus_qualifiers): Likewise.
215         (TYPES_BINOP_SUS): Likewise.
216         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
217         (TYPES_FCVTIMM_SUS): Likewise.
218         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
219         rather than BINOP.
220         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
221         (fcvtzs): Use SHIFTIMM rather than BINOP.
222         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
223
224 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
225
226         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
227         costs relative to the cost of a register move.
228
229 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
230
231         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
232         Allow scalar/single vector modes to be tieable.
233
234 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
235
236         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
237
238 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
239
240         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
241         "alignement".
242         * tree.h (TYPE_ALIGN): Likewise.
243
244 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
245
246         PR target/71103
247         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
248
249 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
250
251         * config/avr/avr.c (avr_print_operand): Fix "format not a string
252         literal" build warnings.
253         (avr_print_operand_address): Dito.
254
255 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
256
257         PR target/71375
258         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
259         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
260
261 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
262
263         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
264
265 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
266
267         PR bootstrap/71435
268         * reload1.c (reload): Pass 0 to finish_spills when called because
269         update_eliminables_and_spill returns true and remove did_spill.
270         (finish_spills): Adjust comment and document GLOBAL parameter.
271
272 2016-06-17  DJ Delorie  <dj@redhat.com>
273
274         PR target/71338
275         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
276         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
277         (umulqihi3_virt): Likewise.
278         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
279         (umulqihi3_real): Likewise.
280
281 2016-06-17  Martin Liska  <mliska@suse.cz>
282
283         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
284
285 2016-06-17  Martin Liska  <mliska@suse.cz>
286
287         * predict.def: PRED_LOOP_EXIT from 92 to 85.
288
289 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
290
291         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
292         __FAST_MATH__.
293         (vaddq_f32): Likewise.
294         (vmul_f32): Likewise.
295         (vmulq_f32): Likewise.
296         (vsub_f32): Likewise.
297         (vsubq_f32): Likewise.
298
299 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
300
301         PR tree-optimization/71347
302         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
303         cost for all uses in group.
304
305 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
306
307         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
308         insert gimple seq if it's not empty.
309
310 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
311
312         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
313         member OFFSET.
314         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
315         rather than OFFSET.
316         (comp_dr_with_seg_len_pair): Ditto.
317         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
318         struct dr_with_seg_len_pair against DR_OFFSET.
319         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
320         DR_OFFSET directly.
321
322 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
323
324         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
325
326 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
327
328         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
329         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
330         (pa_output_millicode_call): Likewise.
331         (pa_output_call): Likewise.
332         (pa_output_indirect_call): Likewise.
333         (pa_asm_output_mi_thunk): Likewise.
334
335 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
336
337         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
338
339 2016-06-16  Martin Liska  <mliska@suse.cz>
340
341         * predict.c (combine_predictions_for_insn): When we find a first
342         match predictor, we should consider just predictors with
343         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
344         DS theory predictor.
345         (combine_predictions_for_bb): Likewise.
346
347 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
348
349         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
350         with base of reference to struct.
351
352 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
353
354         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
355
356 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
357
358         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
359         progmem_swtable_section.
360         (progmem_swtable_section): Remove.
361         (avr_asm_function_rodata_section): Remove.
362         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
363         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
364
365 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
366
367         * config/i386/driver-i386.c (host_detect_local_cpu): Set
368         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
369         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
370         signature_CENTAUR_ebx.
371         * config/i386/i386.c (ix86_option_override_internal): Add
372         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
373         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
374         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
375
376 2016-06-16  Martin Liska  <mliska@suse.cz>
377
378         * predict.def: Add fortran loop preheader predictor.
379         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
380         fold IFN_BUILTIN_EXPECT with a known constant argument.
381
382 2016-06-16  Martin Liska  <mliska@suse.cz>
383
384         * predict.def: Add 'Fortran' to display text of all
385         PRED_FORTRAN_* predictors.
386
387 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
388
389         PR target/71242
390         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
391         [IA64_BUILTIN_NANSQ]: Ditto.
392         (ia64_fold_builtin): New function.
393         (TARGET_FOLD_BUILTIN): New define.
394         (ia64_init_builtins) Declare const_string_type node.
395         Add __builtin_nanq and __builtin_nansq builtin functions.
396         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
397
398 2016-06-16  Nick Clifton  <nickc@redhat.com>
399
400         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
401         MSP430_HWMULT_ prefix to enum values.
402         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
403         * config/msp430/msp430.c: Update use of enum values.
404         * config/msp430/msp430.md: Likewise.
405         * config/msp430/msp430.opt: Likewise.
406
407 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
408
409         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
410         of comparsions in the last iteration.
411
412 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
413             Joern Rennecke  <joern.rennecke@embecosm.com>
414
415         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
416         addresses.
417         (arc_needs_pcl_p): Add GOTOFFPC.
418         (arc_legitimate_pic_addr_p): Likewise.
419         (arc_output_pic_addr_const): Likewise.
420         (arc_legitimize_pic_address): Generate a pc-relative address using
421         GOTOFFPC.
422         (arc_output_libcall): Use @pcl syntax.
423         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
424         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
425         (*movsi_insn): Use @pcl syntax.
426         (doloop_begin_i): Likewise.
427
428 2016-06-16  Martin Liska  <mliska@suse.cz>
429
430         * predict.def: Define a new predictor.
431
432 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
433
434         * config/arc/arc.opt (mtp-regno): Update text.
435
436 2016-06-16  Renlin Li  <renlin.li@arm.com>
437
438         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
439
440 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
441
442         PR target/71554
443         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
444         (setcc + and peephole2): Likewise.
445
446         PR rtl-optimization/71532
447         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
448         memory slots.
449
450 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
451
452         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
453         DImode constants with XXSPLTIB in vector registers.
454         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
455         vsx_extract_<mode>_internal{1,2} into a single insn that handles
456         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
457         extraction of the element at the top of the register as a scalar
458         value.
459         (vsx_extract_<mode>_internal1): Likewise.
460         (vsx_extract_<mode>_internal2): Likewise.
461         * config/rs6000/constraints.md (wi constraint): Remove a comment
462         about DImode not being allowed in Altivec registers.
463         (wB constraint): New constraint for constants that can be
464         generated in Altivec registers with VSPLTISW/VUPKHSW.
465         * config/rs6000/predicates.md (xxspltib_constant_split): Update
466         comments.
467         (xxspltib_constant_nosplit): Likewise.
468         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
469         support for -mupper-regs-di to enable DImode to go into Altivec
470         registers.
471         (POWERPC_MASKS): Likewise.
472         (power7 cpu): Likewise.
473         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
474         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
475         for DImode being allowed in Altivec registers.  Update wi/wj
476         constraints.  Set scalar_in_vmx_p flag.
477         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
478         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
479         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
480         (rs6000_opt_masks): Add -mupper-regs-di.
481         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
482         direct move to use wi and not wj.
483         (lfiwzx): Likewise.
484         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
485         alternative.
486         (floatunssi<mode>2_lfiwzx_mem): Likewise.
487         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
488         any VSX register, instead of just Altivec registers, to allow
489         either operand to be an Altivec register or both.
490         (fixuns_trunc<mode>di2_fctiduz): Likewise.
491         (movdi_internal32): Add support for -mupper-regs-di.  Add support
492         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
493         the alternatives and attributes to be lined up to be easier to
494         read.
495         (movdi_internal64): Likewise.
496         (64-bit DImode splitters): Change predicates to only split loading
497         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
498         load constants in ISA 3.0 or ISA 2.07 respectively.
499         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
500         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
501         mention -mcpu=power9 sets these options.
502         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
503         wB constraint.
504
505 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
506
507         PR target/67353
508         * config/avr/avr.c (avr_set_current_function): Warn misspelled
509         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
510         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
511         by default to warn misspelled interrupt/ signal handler.
512         * doc/invoke.texi (AVR Options): Document it. Update description
513         for -nodevicelib option.
514
515 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
516
517         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
518         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
519         (aarch64_<sur>shll2_n<mode>): Likewise.
520
521 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
522
523         PR middle-end/71529
524         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
525         DECL_CONTEXT for copied arguments.
526
527 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
528
529         PR tree-optimization/71483
530         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
531         for slp
532
533 2016-06-15  Martin Liska  <mliska@suse.cz>
534
535         * predict.c (tree_predict_by_opcode): Call predict_edge_def
536         instead of predict_edge w/o a probability.
537
538 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
539
540         PR tree-optimization/71439
541         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
542         live PHIs.
543
544 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
545
546         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
547         register subregs in SET_SRC.
548
549 2016-06-15  Richard Biener  <rguenther@suse.de>
550
551         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
552         store restrictions.
553
554 2016-06-15  Richard Biener  <rguenther@suse.de>
555
556         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
557         not consider dependences between accesses that belong to the
558         same group.
559         (vect_analyze_data_ref_dependences): Do not analyze read-read
560         or self-dependences.
561
562 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
563
564         * spellcheck-tree.c: Include spellcheck-tree.h rather than
565         spellcheck.h.
566         (find_closest_identifier): Reimplement in terms of
567         best_match<tree,tree>.
568         * spellcheck-tree.h: New file.
569         * spellcheck.c (struct edit_distance_traits<const char *>): New
570         struct.
571         (find_closest_string): Reimplement in terms of
572         best_match<const char *, const char *>.
573         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
574         overload to spellcheck-tree.h.
575         (find_closest_identifier): Likewise.
576         (struct edit_distance_traits<T>): New template.
577         (class best_match): New class.
578
579 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
580
581         * selftest-run-tests.c (selftest::run_tests): Call
582         selftest::spellcheck_tree_c_tests.
583         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
584         * spellcheck-tree.c: Include selftest.h and stringpool.h.
585         (selftest::test_find_closest_identifier): New function.
586         (selftest::spellcheck_tree_c_tests): New function.
587         * spellcheck.c (selftest::test_find_closest_string): Verify that
588         the order of the vec does not affect the results for this case.
589         (selftest::test_data): New array.
590         (selftest::test_metric_conditions): New function.
591         (selftest::spellcheck_c_tests): Add a test of case-comparison.
592         Call selftest::test_metric_conditions.
593
594 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
595
596         * config/rs6000/rs6000-builtin.def (commentary): Typo.
597         (BU_P9_MISC_1): Likewise.
598         (BU_P9_64BIT_MISC_0): Likewise.
599         (BU_P9_MISC_0): Likewise.
600
601 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
602
603         * gcc-rich-location.c
604         (gcc_rich_location::add_fixit_misspelled_id): New method.
605         * gcc-rich-location.h
606         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
607
608 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
609
610         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
611         FreeBSD 11 and above.
612
613 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
614
615         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
616
617 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
618
619         * expmed.h: Close parenthesis in "at your option" in copyright
620         boilerplate.
621         * lower-subreg.h: Likewise.
622
623 2016-06-14  Richard Biener  <rguenther@suse.de>
624
625         PR middle-end/71526
626         * genmatch.c (expr::gen_transform): Use in_type for comparisons
627         if available.
628
629 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
630
631         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
632         New function.
633         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
634         mask+shift version.
635         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
636         New prototype.
637         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
638         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
639
640 2016-06-14  Richard Biener  <rguenther@suse.de>
641
642         PR tree-optimization/71522
643         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
644         copying into float copying.
645
646 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
647
648         PR tree-optimization/71520
649         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
650         (replace_block_by): Move user labels from bb1 to bb2.
651
652 2016-06-14  Richard Biener  <rguenther@suse.de>
653
654         PR middle-end/71310
655         PR bootstrap/71510
656         * expr.h (get_bit_range): Declare.
657         * expr.c (get_bit_range): Export.
658         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
659         word_mode again to constrain the bitfield access.
660
661 2016-06-14  Richard Biener  <rguenther@suse.de>
662
663         PR tree-optimization/71521
664         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
665         division int_const_binop against zero divisor.
666
667 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
668
669         * config/i386/i386.md (signbittf2): New expander.
670         * config/i386/sse.md (ptesttf2): New insn pattern.
671
672 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
673
674         PR bootstrap/71481
675         * input.c (selftest::test_reading_source_line): Avoid reading from
676         __FILE__ by creating a tempfile with known content and reading
677         from that instead.
678
679 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
680
681         * pretty-print.c (assert_pp_format_colored): Skip the test if
682         GCC_COLORS is set.
683         (test_pp_format): Remove comment about GCC_COLORS.
684
685 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
686
687         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
688         * pretty-print.c (assert_pp_format_va): Add location param and use
689         it with ASSERT_STREQ_AT.
690         (assert_pp_format): Add location param and pass it to
691         assert_pp_format_va.
692         (assert_pp_format_colored): Likewise.
693         (ASSERT_PP_FORMAT_1): New.
694         (ASSERT_PP_FORMAT_2): New.
695         (ASSERT_PP_FORMAT_3): New.
696         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
697         explicitly, or implicitly via the above macros.
698         * selftest.c (selftest::pass): Use a selftest::location rather
699         than file and line.
700         (selftest::fail): Likewise.  Print the function name.
701         (selftest::fail_formatted): Likewise.
702         (selftest::assert_streq): Use a selftest::location rather than
703         file and line.
704         * selftest.h (selftest::location): New struct.
705         (SELFTEST_LOCATION): New macro.
706         (selftest::pass): Accept a const location & rather than file
707         and line.
708         (selftest::fail): Likewise.
709         (selftest::fail_formatted): Likewise.
710         (selftest::assert_streq): Likewise.
711         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
712         (ASSERT_FALSE): Likewise.
713         (ASSERT_EQ): Likewise.
714         (ASSERT_NE): Likewise.
715         (ASSERT_STREQ): Likewise.
716         (ASSERT_PRED1): Likewise.
717         (ASSERT_STREQ_AT): New macro.
718
719 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
720
721         * selftest.c (selftest::fail_formatted): New function.
722         (selftest::assert_streq): New function.
723         * selftest.h (selftests::fail_formatted): New decl.
724         (selftest::assert_streq): New decl.
725         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
726
727 2016-06-13  Jeff Law  <law@redhat.com>
728
729         PR tree-optimization/71403
730         * tree-ssa-threadbackward.c
731         (convert_and_register_jump_thread_path): No longer accept reference
732         to path.  Do not pop items off the path anymore.
733         (fsm_find_control_statement_thread_paths): Do not allow threading
734         to a deeper loop nest.  Pop the last item off the path here rather
735         than in convert_and_register_jump_thread_path.
736
737 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
738             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
739
740         [AArch64] Emit division using the Newton series
741
742         * config/aarch64/aarch64-protos.h
743         (cpu_approx_modes): Add new member "division".
744         (aarch64_emit_approx_div): Declare new function.
745         * config/aarch64/aarch64.c
746         (generic_approx_modes): New member "division".
747         (exynosm1_approx_modes): Likewise.
748         (xgene1_approx_modes): Likewise.
749         (aarch64_emit_approx_div): Define new function.
750         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
751         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
752         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
753         * doc/invoke.texi (-mlow-precision-div): Describe new option.
754
755 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
756             Wilco Dijkstra  <wilco.dijkstra@arm.com>
757
758         [AArch64] Emit square root using the Newton series
759
760         * config/aarch64/aarch64-protos.h
761         (aarch64_emit_approx_rsqrt): Replace with new function
762         "aarch64_emit_approx_sqrt".
763         (cpu_approx_modes): New member "sqrt".
764         * config/aarch64/aarch64.c
765         (generic_approx_modes): New member "sqrt".
766         (exynosm1_approx_modes): Likewise.
767         (xgene1_approx_modes): Likewise.
768         (aarch64_emit_approx_rsqrt): Replace with new function
769         "aarch64_emit_approx_sqrt".
770         (aarch64_override_options_after_change_1): Handle new option.
771         * config/aarch64/aarch64-simd.md
772         (rsqrt<mode>2): Use new function instead.
773         (sqrt<mode>2): New expansion and insn definitions.
774         * config/aarch64/aarch64.md: Likewise.
775         * config/aarch64/aarch64.opt
776         (mlow-precision-sqrt): Add new option description.
777         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
778
779 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
780
781         [AArch64] Add more choices for the reciprocal square root approximation
782
783         Allow a target to prefer such operation depending on the operation mode.
784
785         * config/aarch64/aarch64-protos.h
786         (AARCH64_APPROX_MODE): New macro.
787         (AARCH64_APPROX_{NONE,ALL}): Likewise.
788         (cpu_approx_modes): New structure.
789         (tune_params): New member "approx_modes".
790         * config/aarch64/aarch64-tuning-flags.def
791         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
792         * config/aarch64/aarch64.c
793         (generic_approx_modes): New core "cpu_approx_modes" structure.
794         (exynosm1_approx_modes): Likewise.
795         (xgene1_approx_modes): Likewise.
796         (generic_tunings): New member "approx_modes".
797         (cortexa35_tunings): Likewise.
798         (cortexa53_tunings): Likewise.
799         (cortexa57_tunings): Likewise.
800         (cortexa72_tunings): Likewise.
801         (exynosm1_tunings): Likewise.
802         (thunderx_tunings): Likewise.
803         (xgene1_tunings): Likewise.
804         (use_rsqrt_p): New argument for the mode and use new member from
805         "tune_params".
806         (aarch64_builtin_reciprocal): Devise mode from builtin.
807         (aarch64_optab_supported_p): New argument for the mode.
808         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
809
810 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
811
812         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
813         RS6000_BTM_MODULO flag into the set of flags that are considered
814         to be part of the common configuration.
815
816 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
817
818         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
819         difference unsigned.
820         (vec_absdb): New macro for vector absolute difference unsigned
821         byte.
822         (vec_absdh): New macro for vector absolute difference unsigned
823         half-word.
824         (vec_absdw): New macro for vector absolute difference unsigned word.
825         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
826         (vadu<mode>3): New insn.
827         (*p9_vadu<mode>3): New insn.
828         * config/rs6000/rs6000-builtin.def (vadub): New built-in
829         definition.
830         (vaduh): New built-in definition.
831         (vaduw): New built-in definition.
832         (vadu): New overloaded built-in definition.
833         (vadub): New overloaded built-in definition.
834         (vaduh): New overloaded built-in definition.
835         (vaduw): New overloaded built-in definition.
836         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
837         overloaded vector absolute difference unsigned functions.
838         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
839         the ISA 3.0 vector absolute difference unsigned built-in functions.
840
841 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
842
843         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
844         update shared_lookup_references only once after changing operands.
845
846 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
847
848         PR middle-end/71373
849         * tree-nested.c (convert_nonlocal_omp_clauses)
850         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
851
852         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
853         * tree.def (CASE_LABEL_EXPR): Likewise.
854
855 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
856
857         PR bootstrap/71481
858         * input.c (test_builtins): Fix an assertion.
859
860 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
861
862         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
863         (paritysi2): Ditto.
864         (isinfxf2): Ditto.
865         (isinf<mode>2): Ditto.
866
867 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
868
869         * ggc-tests.c (test_finalization): Only test need_finalization_p
870         for GCC_VERSION >= 4003.
871
872 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
873
874         * config/s390/vecintrin.h: Fix file description in comment.
875
876 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
877
878         * config/s390/s390-builtin-types.def: Change builtin type naming
879         scheme to match builtin-types.def.
880
881 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
882
883         * fold-const.c (optimize_minmax_comparison): Remove.
884         (fold_comparison): Remove call to the above.
885         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
886         New transformations.
887
888 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
889
890         PR tree-optimization/71416
891         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
892         multiple entries
893
894 2016-06-13  Martin Liska  <mliska@suse.cz>
895
896         * predict.c (enum predictor_reason): Prefix enum with REASON_.
897         (combine_predictions_for_insn): Likewise.
898         (prune_predictions_for_bb): Likewise.
899         (combine_predictions_for_bb): Likewise.
900
901 2016-06-13  Richard Biener  <rguenther@suse.de>
902
903         PR tree-optimization/71505
904         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
905         assert match comment.
906
907 2016-06-13  Marek Polacek  <polacek@redhat.com>
908
909         PR middle-end/71476
910         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
911         gimplify_switch_expr.
912         (warn_switch_unreachable_r): New function.
913
914 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
915
916         PR target/71379
917         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
918         one.
919
920 2016-06-13  Richard Biener  <rguenther@suse.de>
921
922         PR middle-end/64516
923         * fold-const.c (fold_unary_loc): Preserve alignment when
924         folding a VIEW_CONVERT_EXPR into a MEM_REF.
925
926 2016-06-13  Martin Liska  <mliska@suse.cz>
927
928         PR sanitizer/71458
929         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
930         w/ -fsanitize=bounds.
931
932 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
933
934         * config/i386/i386.c (ix86_init_builtins): Calculate
935         FLOAT128_FTYPE_CONST_STRING function type only once.
936         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
937         built-in functions are available for x86-32 and x86-64 targets.
938
939 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
940
941         PR target/71241
942         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
943         New primitive type.
944         (FLOAT128_FTYPE_CONST_STRING): New function type.
945         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
946         [IX86_BUILTIN_NANSQ]: Ditto.
947         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
948         (ix86_init_builtin_types): Declare const_string_type_node.
949         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
950         builtin functions.
951         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
952         * doc/extend.texi (x86 Built-in Functions): Document
953         __builtin_nanq and __builtin_nansq.
954
955 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
956
957         PR target/71061
958         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
959         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
960         length for pop patterns.
961         (arm_attr_length_push_multi): Update comments.
962         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
963         attribute.
964         (*pop_multiple_with_writeback_and_return): Likewise.
965         (*pop_multiple_with_return): Likewise.
966
967 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
968
969         PR middle-end/71310
970         * fold-const.c (optimize_bit_field_compare): Don't try to use
971         word_mode unconditionally for reading the bit field, look at
972         DECL_BIT_FIELD_REPRESENTATIVE instead.
973
974 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
975
976         PR middle-end/71478
977         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
978         vector integer type.
979
980 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
981
982         PR middle-end/71494
983         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
984         without LABEL_DECL, set *handled_ops_p to false instead of true.
985
986 2016-06-10  Martin Sebor  <msebor@redhat.com>
987
988         PR c/71392
989         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
990         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
991         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
992         them.
993         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
994         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
995         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
996         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
997         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
998         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
999         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
1000         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
1001
1002 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1003
1004         * config/arm/arm.h (pool_vector_label,
1005         return_used_this_function): Remove.
1006
1007 2016-06-10  Jeff Law  <law@redhat.com>
1008
1009         PR tree-optimization/71335
1010         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
1011         zero length paths here.
1012         (convert_and_register_jump_thread_path): Remove hacks related to
1013         duplicated blocks in the jump thread path.
1014         (fsm_find_control_statement_thread_paths): Avoid putting the same
1015         block on the thread path twice, but ensure the thread path is
1016         unchanged from the caller's point of view.
1017
1018 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
1019
1020         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
1021         * predict.def (PRED_LOOP_BRANCH): Remove.
1022
1023 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
1024
1025         * Makefile.in (OBJS): Add ggc-tests.o.
1026         (GTFILES): Add ggc-tests.c.
1027         * ggc-tests.c: New file.
1028         * selftest-run-tests.c (selftest::run_tests): Call
1029         selftest::ggc_tests_c_tests.
1030         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
1031
1032 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
1033
1034         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
1035
1036 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
1037
1038         PR sanitizer/71480
1039         * varasm.c (place_block_symbol): Adjust alignment for asan protected
1040         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
1041
1042 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
1043
1044         * profile.c: Include cfgloop.h.
1045         (branch_prob): Compute estimated number of iterations.
1046         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
1047         recompute estimate number of iterations from profile.
1048
1049 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1050
1051         PR inline-asm/68843
1052         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
1053         must be grouped on top of stack.  Don't force early clobber
1054         on ordinary reg outputs.
1055
1056 2016-06-10  Richard Biener  <rguenther@suse.de>
1057
1058         * targhooks.c (default_builtin_vectorization_cost): Adjust
1059         vec_construct cost.
1060
1061 2016-06-10  Richard Biener  <rguenther@suse.de>
1062
1063         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
1064         to fold the RHS to a constant if possible.
1065
1066 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
1067
1068         PR middle-end/71373
1069         * tree-nested.c (convert_nonlocal_omp_clauses)
1070         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
1071         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
1072         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
1073
1074         * gimplify.c (gimplify_adjust_omp_clauses): Discard
1075         OMP_CLAUSE_TILE.
1076         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
1077
1078         * omp-low.c (scan_sharing_clauses): Don't expect
1079         OMP_CLAUSE__CACHE_.
1080
1081 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
1082
1083         PR tree-optimization/71407
1084         PR tree-optimization/71416
1085         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
1086         BIT_FIELD_REF type.
1087
1088 2016-06-10  Richard Biener  <rguenther@suse.de>
1089
1090         PR middle-end/71477
1091         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
1092
1093 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
1094
1095         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
1096
1097 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
1098             Jiong Wang  <jiong.wang@arm.com>
1099
1100         PR rtl-optimization/70751
1101         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
1102         spilled into memory.
1103
1104 2016-06-09  Jonathan Yong  <10walls@gmail.com>
1105
1106         Revert:
1107         2015-09-21  Jonathan Yong  <10walls@gmail.com>
1108
1109         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
1110         sysroot/usr/lib/32api for additional win32 libraries,
1111         fixes failing Cygwin bootstrapping.
1112
1113 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
1114
1115         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
1116         Delete.
1117
1118 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
1119
1120         PR bootstrap/71471
1121         * pretty-print.c (pp_indent): Specify that %p is printed in a
1122         host-dependent manner.
1123         (test_pp_format): Remove the test for %p.
1124
1125 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
1126
1127         * config/mips/mips.c (mips_output_jump): Fix formatting.
1128
1129 2016-06-09  Richard Biener  <rguenther@suse.de>
1130
1131         PR tree-optimization/71462
1132         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
1133         removed blocks.
1134
1135 2016-06-09  Martin Liska  <mliska@suse.cz>
1136
1137         * predict.c (dump_prediction): Add new argument.
1138         (enum predictor_reason): New enum.
1139         (struct predictor_hash): New struct.
1140         (predictor_hash::hash): New function.
1141         (predictor_hash::equal): Likewise.
1142         (not_removed_prediction_p): New function.
1143         (prune_predictions_for_bb): Likewise.
1144         (combine_predictions_for_bb): Prune predictions.
1145
1146 2016-06-09  Martin Liska  <mliska@suse.cz>
1147
1148         * predict.c (filter_predictions): New function.
1149         (remove_predictions_associated_with_edge): Use the filter
1150         function.
1151         (equal_edge_p): New function.
1152
1153 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
1154
1155         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
1156         Correct usage of @samp vs @option, add @samp where appropriate.
1157         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
1158         Add armv6s-m and document it, as it is no official ARM name.
1159
1160 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1161
1162         * ifcvt.c (struct noce_if_info): Add transform_name field.
1163         (noce_try_move): Set if_info->transform_name to the function name.
1164         (noce_try_ifelse_collapse): Likewise.
1165         (noce_try_store_flag): Likewise.
1166         (noce_try_inverse_constants): Likewise.
1167         (noce_try_store_flag_constants): Likewise.
1168         (noce_try_addcc): Likewise.
1169         (noce_try_store_flag_mask): Likewise.
1170         (noce_try_cmove): Likewise.
1171         (noce_try_cmove_arith): Likewise.
1172         (noce_try_minmax): Likewise.
1173         (noce_try_abs): Likewise.
1174         (noce_try_sign_mask): Likewise.
1175         (noce_try_bitop): Likewise.
1176         (noce_convert_multiple_sets): Likewise.
1177         (noce_process_if_block): Print if_info->transform_name to
1178         dump_file if transformation succeeded.
1179
1180 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1181
1182         * config/arm/cortex-a57.md (cortex_a57_alu):
1183         Handle csel type.
1184
1185 2016-06-08  Martin Sebor  <msebor@redhat.com>
1186             Jakub Jelinek  <jakub@redhat.com>
1187
1188         PR c++/70507
1189         PR c/68120
1190         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
1191         BUILT_IN_MUL_OVERFLOW_P): New builtins.
1192         * builtins.c: Include gimple-fold.h.
1193         (fold_builtin_arith_overflow): Handle
1194         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
1195         (fold_builtin_3): Likewise.
1196         * doc/extend.texi (Integer Overflow Builtins): Document
1197         __builtin_{add,sub,mul}_overflow_p.
1198
1199 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
1200
1201         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
1202         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
1203
1204 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
1205
1206         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
1207         Rewrite, looking one level down for records and arrays.
1208
1209 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
1210
1211         * pretty-print.c: Include "selftest.h".
1212         (pp_format): Fix comment.
1213         (identifier_to_locale): Likewise.
1214         (selftest::test_basic_printing): New function.
1215         (selftest::assert_pp_format): New function.
1216         (selftest::test_pp_format): New function.
1217         (selftest::pretty_print_c_tests): New function.
1218         * selftest-run-tests.c (selftest::run_tests): Call
1219         selftest::pretty_print_c_tests.
1220         * selftest.h (pretty_print_c_tests): New declaration.
1221
1222 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1223
1224         * invoke.texi (max-loop-headers-insns): Document.
1225         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
1226         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
1227         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
1228
1229 2016-06-08  Richard Biener  <rguenther@suse.de>
1230
1231         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
1232         on strided SLP loads and fall back to scalar loads in case
1233         we can't chunk them.
1234
1235 2016-06-08  Richard Biener  <rguenther@suse.de>
1236
1237         PR tree-optimization/71452
1238         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
1239         type used for the SSA rewrite has enough precision to cover
1240         the dynamic type of the location.
1241
1242 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
1243             Richard Biener  <rguenther@suse.de>
1244
1245         PR c++/71448
1246         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
1247         the same as DECL_P (base0) for indirect_base0.  Use equality_code
1248         in one further place.
1249
1250 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
1251
1252         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
1253         to one word if the field is known to overlap other words.
1254         (extract_bit_field_1): Likewise.
1255         (store_split_bit_field): Remove compensating code.
1256         (extract_split_bit_field): Likewise.
1257
1258 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
1259
1260         PR debug/71432
1261         PR ada/71413
1262         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
1263
1264 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1265
1266         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
1267         VDQF.
1268         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
1269         (arch64_addpv4sf): Delete.
1270         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
1271         "gen_aarch64_addpv4sf".
1272         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
1273         builtin.
1274         (vpadds_f32): Likewise.
1275         (vpaddq_f32): Likewise.
1276         (vpaddq_f64): Likewise.
1277
1278 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1279
1280         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
1281         VALLF.
1282         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
1283         to VALLF.  Rename to "fabd<mode>3".
1284         "*fabd_scalar<mode>3): Delete.
1285         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
1286         Use builtin.
1287         (vabdd_f64): Likewise.
1288         (vabd_f32): Likewise.
1289         (vabd_f64): Likewise.
1290         (vabdq_f32): Likewise.
1291         (vabdq_f64): Likewise.
1292
1293 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1294
1295         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
1296         VALLF.
1297         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
1298         "aarch64_rsqrts<mode>".
1299         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
1300         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
1301         builtin.
1302         (vrsqrtsd_f64): Likewise.
1303         (vrsqrts_f32): Likewise.
1304         (vrsqrts_f64): Likewise.
1305         (vrsqrtsq_f32): Likewise.
1306         (vrsqrtsq_f64): Likewise.
1307
1308 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1309
1310         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
1311         VALLF.
1312         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
1313         "aarch64_rsqrte<mode>".
1314         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
1315         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
1316         builtin.
1317         (vrsqrted_f64): Likewise.
1318         (vrsqrte_f32): Likewise.
1319         (vrsqrte_f64): Likewise.
1320         (vrsqrteq_f32): Likewise.
1321         (vrsqrteq_f64): Likewise.
1322
1323 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1324
1325         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
1326         (ucvtf): Likewise.
1327         (fcvtzs): Likewise.
1328         (fcvtzu): Likewise.
1329         * config/aarch64/aarch64-simd.md
1330         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
1331         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
1332         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
1333         Use builtin.
1334         (vcvt_n_f32_u32): Likewise.
1335         (vcvt_n_s32_f32): Likewise.
1336         (vcvt_n_u32_f32): Likewise.
1337         (vcvtq_n_f32_s32): Likewise.
1338         (vcvtq_n_f32_u32): Likewise.
1339         (vcvtq_n_f64_s64): Likewise.
1340         (vcvtq_n_f64_u64): Likewise.
1341         (vcvtq_n_s32_f32): Likewise.
1342         (vcvtq_n_s64_f64): Likewise.
1343         (vcvtq_n_u32_f32): Likewise.
1344         (vcvtq_n_u64_f64): Likewise.
1345         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
1346         (VSDQ_SDI): Likewise.
1347         (fcvt_target): Support V4DI, V4SI and V2SI.
1348         (FCVT_TARGET): Likewise.
1349
1350 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1351
1352         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
1353         (TYPES_BINOP_SUS): Likewise.
1354         (aarch64_simd_builtin_data): Update include file name.
1355         (aarch64_builtins): Likewise.
1356         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
1357         for conversion between scalar float-point and fixed-point.
1358         (ucvtf): Likewise.
1359         (fcvtzs): Likewise.
1360         (fcvtzu): Likewise.
1361         * config/aarch64/aarch64.md
1362         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
1363         pattern for conversion between scalar float to fixed-pointer.
1364         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
1365         (UNSPEC_FCVTZS): New UNSPEC enumeration.
1366         (UNSPEC_FCVTZU): Likewise.
1367         (UNSPEC_SCVTF): Likewise.
1368         (UNSPEC_UCVTF): Likewise.
1369         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
1370         Use builtin.
1371         (vcvtd_n_f64_u64): Likewise.
1372         (vcvtd_n_s64_f64): Likewise.
1373         (vcvtd_n_u64_f64): Likewise.
1374         (vcvtd_n_f32_s32): Likewise.
1375         (vcvts_n_f32_u32): Likewise.
1376         (vcvtd_n_s32_f32): Likewise.
1377         (vcvts_n_u32_f32): Likewise.
1378         * config/aarch64/iterators.md (fcvt_target): Support integer to float
1379         mapping.
1380         (FCVT_TARGET): Likewise.
1381         (FCVT_FIXED2F): New iterator.
1382         (FCVT_F2FIXED): Likewise.
1383         (fcvt_fixed_insn): New define_int_attr.
1384
1385 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1386
1387         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
1388         some statements was removed.
1389
1390 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
1391
1392         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
1393         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
1394         (vect_can_advance_ivs_p): likewise.
1395         (vect_update_ivs_after_vectorizer): likewise.
1396         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
1397         (vect_analyze_scalar_cycles_1): likewise.
1398         (vect_analyze_loop_operations): likewise.
1399         (report_vect_op): likewise.
1400         (vect_is_slp_reduction): likewise.
1401         (vect_is_simple_reduction): likewise.
1402         (get_initial_def_for_induction): likewise.
1403         (vect_transform_loop): likewise.
1404         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
1405         (vect_recog_sad_pattern): likewise.
1406         (vect_recog_widen_sum_pattern): likewise.
1407         (vect_recog_widening_pattern): likewise.
1408         (vect_recog_divmod_pattern): likewise.
1409         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
1410         (vect_analyze_slp_instance): likewise.
1411         (vect_transform_slp_perm_load): likewise.
1412         (vect_schedule_slp_instance): likewise.
1413
1414 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1415
1416         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
1417         (return_prediction): PRED_CONST_RETURN predict return as not taken.
1418         * predict.def (PRED_CONTINUE): Change hitrate 50->67
1419         (PRED_LOOP_BRANCH): Document predictor as broken.
1420         (PRED_LOOP_EXIT): Change hitrate 91->92.
1421         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
1422         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
1423         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
1424         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
1425         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
1426         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
1427         (PRED_CALL): Chane hitrate 71->67.
1428         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
1429         (PRED_GOTO): Document as unused right now.
1430         (PRED_CONST_RETURN): Change hitrate 67->69
1431         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
1432         (PRED_NULL_RETURN): Change hitrate 91->90.
1433         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
1434         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
1435         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
1436
1437 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
1438
1439         * config/rs6000/altivec.h: Add __builtin_vec_mul.
1440         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
1441         special case Altivec builtin.
1442         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
1443         VSX_BUILTIN_VEC_MUL (replaced with special case code).
1444         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
1445         code for ALTIVEC_BUILTIN_VEC_MUL.
1446         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
1447         for __builtin_vec_mul.
1448
1449 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
1450
1451         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
1452         -mno-htm.
1453
1454 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
1455
1456         * spellcheck.c (selftest::test_find_closest_string): New function.
1457         (spellcheck_c_tests): Call the above.
1458
1459 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1460
1461         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
1462
1463 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
1464
1465         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
1466         Yv=Yv,C alternatives.
1467
1468 2016-06-07  Richard Biener  <rguenther@suse.de>
1469
1470         PR c/61564
1471         * common.opt (ffast-math): Make Optimization.
1472
1473 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
1474             Prachi Godbole  <prachi.godbole@imgtec.com>
1475
1476         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
1477         `fabs' and `fneg' type attributes.
1478         (p5600_fpu_fabs): Add `fmove' to the comment.
1479
1480 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1481
1482         * gimple.c: Include builtins.h
1483         (gimple_inexpensive_call_p): New function.
1484         * gimple.h (gimple_inexpensive_call_p): Declare.
1485         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
1486         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
1487         fix formatting.
1488
1489 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
1490
1491         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
1492         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
1493         warning_at_rich_loc, warning_n, pedwarn, permerror,
1494         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
1495         sorry, fatal_error, internal_error, internal_error_no_backtrace):
1496         Use the above.
1497
1498 2016-06-07  Richard Biener  <rguenther@suse.de>
1499
1500         PR tree-optimization/71428
1501         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
1502         BIT_FIELD_REF op vs. load.
1503
1504 2016-06-07  Richard Biener  <rguenther@suse.de>
1505
1506         PR middle-end/71423
1507         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
1508         for signed ops.
1509
1510 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
1511
1512         * config/pa/pa.md (call): Generate indirect long calls to non-local
1513         functions on TARGET_64BIT.
1514         (call_value): Likewise.
1515
1516 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
1517
1518         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
1519         pattern and subsequent splitters.
1520         (call_val_reg_64bit_post_reload): Likewise.
1521
1522 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
1523
1524         PR middle-end/71408
1525         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
1526         propagate_op_to_single_use.
1527
1528 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
1529
1530         PR middle-end/71281
1531         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
1532
1533 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
1534
1535         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
1536         (enum x86_dirflag_state): New enum.
1537         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
1538         (machine_function): Remove needs_cld.
1539         (ix86_current_function_needs_cld): Remove.
1540         * config/i386/i386.c (ix86_set_func_type): Set
1541         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
1542         (ix86_expand_prologue): Do not emit CLD here.
1543         (ix86_dirflag_mode_needed): New function.
1544         (ix86_dirflag_mode_entry): Ditto.
1545         (ix86_mode_needed): Handle X86_DIRFLAG entity.
1546         (ix86_mode_after): Ditto.
1547         (ix86_mode_entry): Ditto.
1548         (ix86_mode_exit): Ditto.
1549         (ix86_emit_mode_set): Ditto.
1550         * config/i386/i386.md (strmov_singleop): Set
1551         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
1552         Do not set ix86_current_function_needs_cld.
1553         (rep_mov): Ditto.
1554         (strset_singleop): Ditto.
1555         (rep_stos): Ditto.
1556         (cmpstrnqi_nz_1): Ditto.
1557         (cmpstrnqi_1): Ditto.
1558         (strlenqi_1): Ditto.
1559
1560 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
1561
1562         PR tree-optimization/71259
1563         * tree-vect-slp.c (vect_get_constant_vectors): For
1564         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
1565         one for constant op, and use COND_EXPR for non-constant.
1566
1567 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
1568
1569         * Makefile.in (OBJS): Add function-tests.o,
1570         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
1571         selftest-run-tests.o.
1572         (OBJS-libcommon): Add selftest.o.
1573         (OBJS-libcommon-target): Add selftest.o.
1574         (all.internal): Add "selftest".
1575         (all.cross): Likewise.
1576         (selftest): New phony target.
1577         (s-selftest): New target.
1578         (selftest-gdb): New phony target.
1579         (COLLECT2_OBJS): Add selftest.o.
1580         * bitmap.c: Include "selftest.h".
1581         (selftest::test_gc_alloc): New function.
1582         (selftest::test_set_range): New function.
1583         (selftest::test_clear_bit_in_middle): New function.
1584         (selftest::test_copying): New function.
1585         (selftest::test_bitmap_single_bit_set_p): New function.
1586         (selftest::bitmap_c_tests): New function.
1587         * common.opt (fself-test): New.
1588         * diagnostic-show-locus.c: Include "selftest.h".
1589         (make_range): New function.
1590         (test_range_contains_point_for_single_point): New function.
1591         (test_range_contains_point_for_single_line): New function.
1592         (test_range_contains_point_for_multiple_lines): New function.
1593         (assert_eq): New function.
1594         (test_get_line_width_without_trailing_whitespace): New function.
1595         (selftest::diagnostic_show_locus_c_tests): New function.
1596         * et-forest.c: Include "selftest.h".
1597         (selftest::test_single_node): New function.
1598         (selftest::test_simple_tree): New function.
1599         (selftest::test_disconnected_nodes): New function.
1600         (selftest::et_forest_c_tests): New function.
1601         * fold-const.c: Include "selftest.h".
1602         (selftest::assert_binop_folds_to_const): New function.
1603         (selftest::assert_binop_folds_to_nonlvalue): New function.
1604         (selftest::test_arithmetic_folding): New function.
1605         (selftest::fold_const_c_tests): New function.
1606         * function-tests.c: New file.
1607         * gimple.c: Include "selftest.h".
1608         Include "gimple-pretty-print.h".
1609         (selftest::verify_gimple_pp): New function.
1610         (selftest::test_assign_single): New function.
1611         (selftest::test_assign_binop): New function.
1612         (selftest::test_nop_stmt): New function.
1613         (selftest::test_return_stmt): New function.
1614         (selftest::test_return_without_value): New function.
1615         (selftest::gimple_c_tests): New function.
1616         * hash-map-tests.c: New file.
1617         * hash-set-tests.c: New file.
1618         * input.c: Include "selftest.h".
1619         (selftest::assert_loceq): New function.
1620         (selftest::test_accessing_ordinary_linemaps): New function.
1621         (selftest::test_unknown_location): New function.
1622         (selftest::test_builtins): New function.
1623         (selftest::test_reading_source_line): New function.
1624         (selftest::input_c_tests): New function.
1625         * rtl-tests.c: New file.
1626         * selftest-run-tests.c: New file.
1627         * selftest.c: New file.
1628         * selftest.h: New file.
1629         * spellcheck.c: Include "selftest.h".
1630         (selftest::levenshtein_distance_unit_test_oneway): New function,
1631         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
1632         (selftest::levenshtein_distance_unit_test): Likewise.
1633         (selftest::spellcheck_c_tests): Likewise.
1634         * toplev.c: Include selftest.h.
1635         (toplev::run_self_tests): New.
1636         (toplev::main): Handle -fself-test.
1637         * toplev.h (toplev::run_self_tests): New.
1638         * tree.c: Include "selftest.h".
1639         (selftest::test_integer_constants): New function.
1640         (selftest::test_identifiers): New function.
1641         (selftest::test_labels): New function.
1642         (selftest::tree_c_tests): New function.
1643         * tree-cfg.c: Include "selftest.h".
1644         (selftest::push_fndecl): New function.
1645         (selftest::test_linear_chain): New function.
1646         (selftest::test_diamond): New function.
1647         (selftest::test_fully_connected): New function.
1648         (selftest::tree_cfg_c_tests): New function.
1649         * vec.c: Include "selftest.h".
1650         (selftest::safe_push_range): New function.
1651         (selftest::test_quick_push): New function.
1652         (selftest::test_safe_push): New function.
1653         (selftest::test_truncate): New function.
1654         (selftest::test_safe_grow_cleared): New function.
1655         (selftest::test_pop): New function.
1656         (selftest::test_safe_insert): New function.
1657         (selftest::test_ordered_remove): New function.
1658         (selftest::test_unordered_remove): New function.
1659         (selftest::test_block_remove): New function.
1660         (selftest::reverse_cmp): New function.
1661         (selftest::test_qsort): New function.
1662         (selftest::vec_c_tests): New function.c.
1663         * wide-int.cc: Include selftest.h and wide-int-print.h.
1664         (selftest::from_int <wide_int>): New function.
1665         (selftest::from_int <offset_int>): New function.
1666         (selftest::from_int <widest_int>): New function.
1667         (selftest::assert_deceq): New function.
1668         (selftest::assert_hexeq): New function.
1669         (selftest::test_printing <VALUE_TYPE>): New function template.
1670         (selftest::test_ops <VALUE_TYPE>): New function template.
1671         (selftest::test_comparisons <VALUE_TYPE>): New function template.
1672         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
1673         template.
1674         (selftest::wide_int_cc_tests): New function.
1675
1676 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1677
1678         PR middle-end/37780
1679         * ifcvt.c (noce_try_ifelse_collapse): New function.
1680         Declare prototype.
1681         (noce_process_if_block): Call noce_try_ifelse_collapse.
1682         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
1683         (simplify_ternary_operation): Use the above to simplify
1684         conditional CLZ/CTZ expressions.
1685
1686 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1687
1688         PR middle-end/37780
1689         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
1690         define_insn_and_split.
1691
1692 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1693
1694         PR middle-end/37780
1695         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
1696
1697 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1698
1699         PR c/24414
1700         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
1701         Implicitly clobber memory for basic asm with non-empty assembler
1702         string.  Use targetm.md_asm_adjust also here.
1703         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
1704         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
1705         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
1706         non-empty assembler string.
1707         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
1708         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
1709         (decode_asm_operands): Handle basic asm in PARALLEL block.
1710         (extract_insn): Handle basic asm in PARALLEL block.
1711         * doc/extend.texi: Mention new behavior of basic asm.
1712         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
1713         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
1714         branch_needs_nop_p): Use asm_noperands.
1715
1716 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
1717
1718         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
1719         Include the M7 SPARC DFA scheduler.
1720         New attribute v3pipe.
1721         Annotate insns with v3pipe where appropriate.
1722         Define cpu_feature vis4.
1723         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
1724         Add (V8QI "8") to vbits.
1725         Add insns {add,sub}v8qi3
1726         Add insns ss{add,sub}v8qi3
1727         Add insns us{add,sub}{v8qi,v4hi}3
1728         Add insns {min,max}{v8qi,v4hi,v2si}3
1729         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
1730         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
1731         * config/sparc/niagara4.md: Add a comment explaining the
1732         discrepancy between the documented latenty numbers and the
1733         implemented ones.
1734         * config/sparc/niagara7.md: New file.
1735         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
1736         supports SPARC5 and VIS 4.0 instructions.
1737         * configure: Regenerate.
1738         * config.in: Likewise.
1739         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
1740         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
1741         TARGET_CPU_niagara7.
1742         (ASM_CPU64_DEFAULT_SPEC): Likewise.
1743         (CPP_CPU_SPEC): Handle niagara7.
1744         (ASM_CPU_SPEC): Likewise.
1745         * config/sparc/sparc-opts.h (processor_type): Add
1746         PROCESSOR_NIAGARA7.
1747         (mvis4): New option.
1748         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
1749         (AS_NIAGARA7_FLAG): Define.
1750         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
1751         (CPP_CPU64_DEFAULT_SPEC): Likewise.
1752         (CPP_CPU_SPEC): Handle niagara7.
1753         (ASM_CPU_SPEC): Likewise.
1754         * config/sparc/sparc.c (niagara7_costs): Define.
1755         (sparc_option_override): Handle niagara7 and adjust cache-related
1756         parameters with better values for niagara cpus.  Also support VIS4.
1757         (sparc32_initialize_trampoline): Likewise.
1758         (sparc_use_sched_lookahead): Likewise.
1759         (sparc_issue_rate): Likewise.
1760         (sparc_register_move_cost): Likewise.
1761         (dump_target_flag_bits): Support VIS4.
1762         (sparc_vis_init_builtins): Likewise.
1763         (sparc_builtins): Likewise.
1764         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
1765         VIS4 4.0.
1766         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
1767         UltraSparc M7.
1768         * config/sparc/sparc.opt (sparc_processor_type): New value
1769         niagara7.
1770         * config/sparc/visintrin.h (__attribute__): Prototypes for the
1771         VIS4 builtins.
1772         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
1773         -mvis4.
1774         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
1775         VIS4 builtins.
1776
1777 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
1778
1779         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
1780
1781 2016-06-06  Richard Biener  <rguenther@suse.de>
1782
1783         PR tree-optimization/71398
1784         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
1785         remove edges.
1786
1787 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
1788
1789         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
1790         ft32_expand_prolog, ft32_expand_epilogue):
1791         Handle pretend_args.
1792         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
1793         * config/ft32/ft32.md: Add pretend_returner.
1794
1795 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
1796
1797         PR target/71389
1798         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
1799         Copy op1 RTX to avoid invalid sharing.
1800         (ix86_expand_vector_move_misalign): Ditto.
1801
1802 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
1803
1804         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
1805         ATTRIBUTE_UNUSED.
1806
1807 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
1808
1809         * predict.c (predicted_by_loop_heuristics_p): New function.
1810         (predict_iv_comparison): Use it.
1811         (predict_loops): Walk from innermost loops; do not predict edges
1812         leaving multiple loops multiple times; implement
1813         PRED_LOOP_ITERATIONS_MAX heuristics.
1814         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
1815
1816 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
1817
1818         * cfg.c (check_bb_profile): Do not report mismatched profiles when
1819         only edges out of BB are EH edges.
1820
1821 2016-06-04  Martin Sebor  <msebor@redhat.com>
1822             Marcin Baczyński  <marbacz@gmail.com>
1823
1824         PR c/48116
1825         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
1826         a void expression in a void function.
1827
1828 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
1829
1830         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
1831         aux; dump reasons of decisions.
1832         (should_duplicate_loop_header_p): Likewise.
1833         (do_while_loop_p): Likewise.
1834         (ch_base::copy_headers): Dump asi num insns duplicated.
1835
1836 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
1837
1838         PR tree-optimization/71405
1839         * tree-ssa.c (execute_update_addresses_taken): For clobber with
1840         incompatible type, build a new clobber with the right type instead
1841         of building a VIEW_CONVERT_EXPR around it.
1842
1843 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
1844
1845         PR tree-optimization/52171
1846         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
1847         by_pieces_ninsns instead of move_by_pieces_ninsns.
1848
1849 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
1850
1851         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
1852         for reg+reg addressing mode.
1853
1854 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1855
1856         * rs6000-c.c (c/c-tree.h): Add #include.
1857         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
1858         in C++ when found in the base position of vec_ld or vec_st.
1859
1860 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
1861
1862         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
1863         use of profile unless profile status is PROFILE_READ.
1864         * profile.c (compute_branch_probabilities): Set profile status
1865         only after reporting predictor hitrates.
1866
1867 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1868
1869         PR target/71276
1870         PR target/71277
1871         * common.opt (ffp-int-builtin-inexact): New option.
1872         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
1873         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
1874         (ceil@var{m}2): Document dependence on this option.
1875         * ipa-inline-transform.c (inline_call): Handle
1876         flag_fp_int_builtin_inexact.
1877         * ipa-inline.c (can_inline_edge_p): Likewise.
1878         * config/i386/i386.md (rintxf2): Do not test
1879         flag_unsafe_math_optimizations.
1880         (rint<mode>2_frndint): New define_insn.
1881         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
1882         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
1883         for 387 instead of extending and truncating.
1884         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
1885         !flag_trapping_math instead of flag_unsafe_math_optimizations.
1886         Change to frndint<mode>2_<rounding>.
1887         (frndintxf2_<rounding>_i387): Likewise.  Change to
1888         frndint<mode>2_<rounding>_i387.
1889         (<rounding_insn>xf2): Likewise.
1890         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
1891         !flag_trapping_math instead of flag_unsafe_math_optimizations for
1892         x87.  Test TARGET_ROUND || !flag_trapping_math ||
1893         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
1894         SSE.  Use ROUND_NO_EXC in constant operand of
1895         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
1896         for 387 instead of extending and truncating.
1897
1898 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
1899             Julia Koval  <julia.koval@intel.com>
1900
1901         PR target/66960
1902         PR target/67630
1903         PR target/67634
1904         PR target/67841
1905         PR target/68037
1906         PR target/68618
1907         PR target/68661
1908         PR target/69575
1909         PR target/69596
1910         PR target/69734
1911         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
1912         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
1913         all registers, except for function return registers if there are
1914         no caller-saved registers.
1915         (ix86_set_func_type): New function.
1916         (ix86_set_current_function): Call ix86_set_func_type to set
1917         no_caller_saved_registers and func_type.  Call reinit_regs if
1918         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
1919         nor x87 instructions in interrupt handler nor function with
1920         no_caller_saved_registers attribute.
1921         (ix86_function_ok_for_sibcall): Return false if there are no
1922         caller-saved registers.
1923         (type_natural_mode): Don't warn ABI change for MMX in interrupt
1924         handler.
1925         (ix86_function_arg_advance): Skip for callee in interrupt handler.
1926         (ix86_function_arg): Return special arguments in interrupt handler.
1927         (ix86_promote_function_mode): Promote pointer to word_mode only
1928         for normal functions.
1929         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
1930         interrupt handler.
1931         (ix86_epilogue_uses): New function.
1932         (ix86_hard_regno_scratch_ok): Likewise.
1933         (ix86_save_reg): Preserve all registers in interrupt handler
1934         after reload.  Preserve all registers, except for function return
1935         registers, if there are no caller-saved registers after reload.
1936         (find_drap_reg): Always use callee-saved register if there are
1937         no caller-saved registers.
1938         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
1939         for interrupt handler.
1940         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
1941         Emit cld instruction if stringops are used in interrupt handler
1942         or interrupt handler isn't a leaf function.
1943         (ix86_expand_epilogue): Generate interrupt return for interrupt
1944         handler and pop the 'ERROR_CODE' off the stack before interrupt
1945         return in exception handler.
1946         (ix86_expand_call): Disallow calling interrupt handler directly.
1947         If there are no caller-saved registers, mark all registers that
1948         are clobbered by the call which returns as clobbered.
1949         (ix86_handle_no_caller_saved_registers_attribute): New function.
1950         (ix86_handle_interrupt_attribute): Likewise.
1951         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
1952         attributes.
1953         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
1954         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
1955         accumulation in interrupt function if stack may be realigned to
1956         avoid DRAP.
1957         (EPILOGUE_USES): New.
1958         (function_type): New enum.
1959         (machine_function): Add func_type and no_caller_saved_registers.
1960         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
1961         (interrupt_return): New pattern.
1962         * doc/extend.texi: Document x86 interrupt and
1963         no_caller_saved_registers attributes.
1964
1965 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
1966
1967         PR tree-optimization/52171
1968         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
1969         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
1970         Look for constant strings.  Move some code to emit_block_cmp_hints
1971         and use it.
1972         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
1973         * defaults.h (COMPARE_MAX_PIECES): New macro.
1974         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
1975         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
1976         (clear_by_pieces_1): Don't declare.  Move definition before use.
1977         (can_do_by_pieces): New static function.
1978         (can_move_by_pieces): Use it.  Return bool.
1979         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
1980         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
1981         (class pieces_addr); New.
1982         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
1983         pieces_addr::adjust, pieces_addr::increment_address,
1984         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
1985         functions for it.
1986         (class op_by_pieces_d): New.
1987         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
1988         functions for it.
1989         (class move_by_pieces_d, class compare_by_pieces_d,
1990         class store_by_pieces_d): New subclasses of op_by_pieces_d.
1991         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
1992         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
1993         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
1994         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
1995         compare_by_pieces_d::finish_mode): New member functions.
1996         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
1997         functions.
1998         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
1999         (emit_block_cmp_hints): New function.
2000         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
2001         use the newly defined classes.
2002         * expr.h (by_pieces_constfn): New typedef.
2003         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
2004         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
2005         (move_by_pieces_ninsns): Don't declare.
2006         (can_move_by_pieces): Change return value to bool.
2007         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
2008         (compare_by_pieces_branch_ratio): New hook.
2009         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
2010         (by_pieces_ninsns): Declare.
2011         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
2012         COMPARE_BY_PIECES.
2013         (default_compare_by_pieces_branch_ratio): New function.
2014         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
2015         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
2016         * doc/tm.texi: Regenerate.
2017         * tree-ssa-strlen.c: Include "builtins.h".
2018         (handle_builtin_memcmp): New static function.
2019         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
2020         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
2021
2022 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
2023
2024         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
2025         relevant stmts which are simple and invariant.
2026         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
2027         instead of simple and invariant
2028
2029 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
2030
2031         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
2032         (vectorizable_reduction): Check for new relevant state.
2033         (vectorizable_live_operation): vectorize live stmts using
2034         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
2035         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
2036         (vect_stmt_relevant_p): Check for stmts which are only used live.
2037         (process_use): Use of a stmt does not inherit it's live value.
2038         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
2039         (vect_analyze_stmt): Check for new relevant state.
2040         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
2041         outside the loop, but not inside it.
2042
2043 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
2044
2045         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
2046         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
2047         (vect_get_vec_def_for_operand): Split out code.
2048
2049 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
2050
2051         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
2052
2053 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
2054
2055         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
2056
2057 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2058
2059         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
2060
2061 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
2062
2063         PR middle-end/71387
2064         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
2065         to noreturn e->callee->decl that has void return type and void
2066         arguments, adjust gimple_call_fntype and remove lhs even if it had
2067         previously addressable type.
2068
2069 2016-06-02  Jeff Law  <law@redhat.com>
2070
2071         PR tree-optimization/71328
2072         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
2073         error when checking for a jump back onto the copied path.
2074
2075 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
2076
2077         * config/microblaze/microblaze.c (get_branch_target): Add return
2078         NULL_RTX for the non-CALL_P case.
2079         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
2080         (insert_wic): Remove unused local "j".
2081
2082 2016-06-02  Martin Liska  <mliska@suse.cz>
2083
2084         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
2085
2086 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2087             Julia Koval  <julia.koval@intel.com>
2088
2089         * function.c (assign_parm_setup_stack): Force source into a
2090         register if needed.
2091         * target.def (function_incoming_arg): Update documentation to
2092         allow arbitrary address computation based on hard register.
2093         * doc/tm.texi: Regenerated.
2094
2095 2016-06-02  Martin Liska  <mliska@suse.cz>
2096
2097         * predict.c (combine_predictions_for_bb): Fix first match in
2098         cases where a first predictor contains more than one occurence
2099         in list of predictors.  Take the best value in such case.
2100
2101 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2102
2103         PR rtl-optimization/71295
2104         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
2105         offset would go over the size of the inner mode reject it.
2106
2107 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
2108
2109         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
2110         x=x,x and v=v,m instead of x=x,m.
2111
2112         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
2113         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
2114         alternative to v=rm,C.
2115
2116         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
2117         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
2118         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
2119         instead of vex for the last two above mentioned alternatives.
2120
2121 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2122
2123         PR target/70830
2124         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
2125
2126 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
2127
2128         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
2129
2130 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
2131
2132         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
2133         from int to unsigned.
2134
2135 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
2136
2137         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
2138         alternatives, eliminating preferred register class.  Add support
2139         for the MTVSRDD instruction in ISA 3.0.
2140         (vsx_splat_v4si_internal): Use splat_input_operand instead of
2141         reg_or_indexed_operand.
2142         (vsx_splat_v4sf_internal): Likewise.
2143
2144 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
2145
2146         PR target/71186
2147         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
2148         for loading up all 0's or all 1's.
2149
2150 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2151
2152         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
2153
2154 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
2155
2156         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
2157         extension.
2158         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
2159         * gcc.c (set_source_date_epoch_envvar): New function, sets
2160         the SOURCE_DATE_EPOCH environment variable to the current time.
2161
2162 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
2163
2164         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
2165         the factor for live Phi nodes.
2166
2167 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
2168
2169         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
2170         * tree-parloops.c (parallelize_loops): likewise.
2171         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
2172         tree_unswitch_outer_loop): likewise.
2173
2174 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
2175
2176         PR middle-end/71371
2177         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
2178         around creation of the temporary.
2179
2180 2016-06-01  Richard Biener  <rguenther@suse.de>
2181
2182         PR tree-optimization/71366
2183         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
2184         (unloop_loops): Move removing edges here ...
2185         (try_unroll_loop_completely): ... from here.
2186         (try_peel_loop): ... and here.
2187         (tree_unroll_loops_completely_1): Track parent loops via
2188         bitmap of header BBs.
2189         (tree_unroll_loops_completely): Adjust for that.
2190
2191 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2192
2193         * config/rs6000/altivec.h (vec_slv): New macro.
2194         (vec_srv): New macro.
2195         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
2196         (UNSPEC_VSRV): New value.
2197         (vslv): New insn.
2198         (vsrv): New insn.
2199         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
2200         (vsrv): New builtin definition.
2201         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
2202         define argument types for new builtin.
2203         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
2204         new builtin.
2205         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
2206         functions.
2207
2208 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
2209             Jocelyn Mayer  <l_indien@magic.fr>
2210
2211         PR target/67310
2212         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
2213         detect processor family for signature_CENTAUR_ebx.
2214         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
2215         signature_CENTAUR_ebx.
2216         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
2217         <default>: Pass x86-64 for has_longmode.
2218
2219 2016-06-01  Nathan Sidwell  <nathan@acm.org>
2220
2221         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
2222         undefined weak.
2223
2224 2016-06-01  Richard Biener  <rguenther@suse.de>
2225
2226         PR tree-optimization/71261
2227         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
2228         of stmts successfully put in the bool pattern.  Remove
2229         single-use restriction.
2230         (adjust_bool_pattern_cast): Add cast at the use site via the
2231         pattern def sequence.
2232         (adjust_bool_pattern): Remove recursion, maintain a hash-map
2233         of patterned defs.  Use the pattern def seqence instead of
2234         multiple independent patterns.
2235         (sort_after_uid): New qsort compare function.
2236         (adjust_bool_stmts): New function to process stmts in the bool
2237         pattern in IL order.
2238         (vect_recog_bool_pattern): Adjust.
2239         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
2240         (ifcvt_walk_pattern_tree): Likewise.
2241         (stmt_is_root_of_bool_pattern): Likewise.
2242         (ifcvt_repair_bool_pattern): Likewise.
2243         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
2244
2245 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
2246
2247         * loop-unroll.c (decide_unroll_constant_iterations,
2248         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
2249         likely upper bounds.
2250         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
2251
2252 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
2253
2254         * tree-core.h (enum omp_clause_code): Remove
2255         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
2256
2257 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2258
2259         * config/arm/sync.md (arm_store_exclusive<mode>):
2260         Use 'H' output modifier on operands[2] rather than creating a new
2261         entry in out-of-bounds memory of the operands array.
2262         (arm_store_release_exclusivedi): Likewise.
2263
2264 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2265
2266         * config/arm/arm.c (arm_fusion_enabled_p): New function.
2267         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
2268         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
2269         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
2270
2271 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
2272
2273         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
2274         into account live statements for mask producers.
2275
2276 2016-06-01  Richard Biener  <rguenther@suse.de>
2277
2278         PR tree-optimization/71311
2279         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
2280         restrict to non-INTEGER_CST @0.
2281
2282 2016-06-01  Richard Biener  <rguenther@suse.de>
2283
2284         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
2285         (relational patterns): Use :c to avoid pattern duplications.
2286
2287 2016-06-01  Richard Biener  <rguenther@suse.de>
2288
2289         * genmatch.c (comparison_code_p): New predicate.
2290         (swap_tree_comparison): New function.
2291         (commutate): Add for_vec parameter to append new for entries.
2292         Support commutating relational operators by swapping it alongside
2293         operands.
2294         (lower_commutative): Adjust.
2295         (dt_simplify::gen): Do not pass artificial operators to gen
2296         functions.
2297         (decision_tree::gen): Do not add artificial operators as parameters.
2298         (parser::parse_expr): Verify operator commutativity when :c is
2299         applied.  Allow :C to override this.
2300         * match.pd: Adjust patterns to use :C instead of :c where required.
2301
2302 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
2303
2304         PR tree-optimization/71077
2305         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
2306         the combining step, use boolean_false_node and boolean_true_node
2307         as the designated false/true return values.
2308
2309 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
2310
2311         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
2312         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
2313         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
2314         PRED_LOOP_EXIT.
2315
2316 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
2317
2318         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
2319         of flags impliying the register renaming.
2320         * toplev.c (process_options): Do not imply flag_rename_registers with
2321         loop peeling.
2322
2323 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2324
2325         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
2326         default implementation.
2327
2328 2016-05-31  Nathan Sidwell  <nathan@acm.org>
2329
2330         * dwarf2out.c (cur_line_info_table): Add GTY marker.
2331
2332 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2333
2334         * config/sh/constraints.md (b): Remove constraint.
2335         * config/sh/predicates.md (arith_reg_operand): Remove
2336         TARGET_REGISTER_P.
2337         * config/sh/sh-modes.def (PDI): Remove.
2338         * config/sh/sh.c (sh_target_reg_class,
2339         sh_optimize_target_register_callee_saved): Remove functions.
2340         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
2341         (sh_expand_epilogue): Update comment.
2342         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
2343         sh_secondary_reload): Remove TARGET_REGS related code.
2344         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
2345         TARGET_REGISTER_P): Remove macros.
2346         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
2347         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
2348         TR1_REG, TR2_REG): Remove constants.
2349         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
2350
2351 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2352
2353         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
2354         define_expand patterns.
2355         (adddi3_compact): Rename to adddi3.
2356         (subdi3_compact): Rename to subdi3.
2357         (*negdi2): Rename to negdi2.
2358         (*abs<mode>2): Rename to abs<mode>2.
2359
2360 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2361
2362         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
2363         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
2364         (atomic_sub_fetchsi): ... this new pattern.
2365         (mvtc): Add CC_REG clobber.
2366
2367 2016-05-31  Marek Polacek  <polacek@redhat.com>
2368
2369         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
2370
2371 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2372
2373         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
2374         aarch64_fusion_enabled_p to check for fusion capabilities.
2375
2376 2016-05-31  Richard Biener  <rguenther@suse.de>
2377
2378         PR tree-optimization/71352
2379         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
2380         minus one and a negate.
2381
2382 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2383
2384         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
2385         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
2386         Delete prototype.
2387         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
2388         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
2389         Remove use of aarch64_simd_attr_length_move, set length attribute
2390         directly.
2391         (*aarch64_be_movoi): Likewise.
2392         (*aarch64_be_movci): Likewise.
2393         (*aarch64_be_movxi): Likewise.
2394
2395 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
2396
2397         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
2398         It no longer does that.
2399         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
2400
2401 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
2402
2403         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
2404         attribute __unused__.
2405
2406 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2407
2408         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
2409         * config/arm/arm.c (arm_arch_thumb1): Define.
2410         (arm_option_override): Initialize arm_arch_thumb1.
2411         * config/arm/arm.h (arm_arch_thumb1): Declare.
2412         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
2413         support Thumb-1 ISA.
2414
2415 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
2416
2417         PR target/71346
2418         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
2419         `Yv' for scalar operand.
2420
2421 2016-05-31  Tom de Vries  <tom@codesourcery.com>
2422
2423         PR tree-optimization/69068
2424         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
2425         phis with more than two args.
2426
2427 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
2428
2429         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
2430         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
2431         target.
2432
2433 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
2434
2435         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
2436         tune_64.
2437         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
2438         support on SPARC.
2439         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
2440         cpu_32, cpu_64, tune_32 and tune_64.
2441         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
2442
2443 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
2444
2445         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
2446
2447 2016-05-30  Andi Kleen  <ak@linux.intel.com>
2448
2449         * auto-profile.c (read_profile): Replace asserts with errors
2450         when file does not exist.
2451         * gcov-io.c (gcov_read_words): Dito.
2452
2453 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2454
2455         * tree-cfg.c (print_loop): Print likely upper bounds.
2456
2457 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2458
2459         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
2460         * opts.c (default_options): Enable peel loops at -O3.
2461         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
2462         (try_peel_loop): Do not re-peel already peeled loops;
2463         use likely upper bounds; fix profile updating.
2464         (pass_complete_unroll::execute): Initialize peeled_loops.
2465
2466 2016-05-30  Martin Liska  <mliska@suse.cz>
2467
2468         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
2469         computed costs by frequency of BB they belong to.
2470         (get_scaled_computation_cost_at): New function.
2471
2472 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
2473             Marc Glisse  <marc.glisse@inria.fr>
2474
2475         PR tree-optimization/71289
2476         * match.pd (-1 / B < A, A > -1 / B): New transformations.
2477
2478 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2479
2480         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
2481
2482 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2483
2484         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
2485         for peeled copies; avoid underflow when updating estimates; correctly
2486         scale loop profile.
2487
2488 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
2489
2490         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
2491         r236875. Corrected oe3 to oe2 as obvious.
2492
2493 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
2494
2495         PR middle-end/71269
2496         PR middle-end/71252
2497         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
2498         that inserted stmt will not dominate stmts that defines its operand.
2499         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
2500         (rewrite_expr_tree_parallel): Likewise.
2501
2502 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
2503
2504         PR middle-end/71252
2505         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
2506         all fields including stmt_to_insert are swapped.
2507
2508 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2509
2510         * predict.h (force_edge_cold): Declare.
2511         * predict.c (force_edge_cold): New function.
2512         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
2513         updating.
2514         (canonicalize_loop_induction_variables): Fix formating.
2515
2516 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
2517
2518         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
2519         (visium_expand_copysign): Use gen_int_mode directly.
2520         (visium_compute_frame_size): Minor tweaks.
2521
2522 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2523
2524         * tree-vect-loop.c (vect_analyze_loop_2): Use
2525         likely_max_stmt_executions_int.
2526
2527 2016-05-30  Tom de Vries  <tom@codesourcery.com>
2528
2529         PR tree-optimization/69067
2530         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
2531
2532 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
2533
2534         PR target/71245
2535         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
2536         New peepholes to remove unneeded fild/fistp pairs.
2537         (define_peephole2 atomic_loaddi_fpu): Ditto.
2538
2539 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2540
2541         * predict.c (maybe_hot_frequency_p): Avoid division.
2542
2543 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
2544
2545         * doc/install.texi: Use https for shop.fsf.org.
2546
2547 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2548
2549         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
2550         likely_max_stmt_executions_int.
2551
2552 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2553
2554         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
2555         likely_max_stmt_executions_int.
2556
2557 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2558
2559         * profile.c (compute_branch_probabilities): Do not report hitrates
2560         here.
2561         (branch_prob): Report hitrates here.
2562         * predict.c (gimple_predict_edge): Do not assert profile status;
2563         fix formatting issues.
2564
2565 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2566
2567         * predict.c (edge_predicted_by_p): New function.
2568         (predict_paths_for_bb): Do not put multiple predictions of the same type
2569         on one edge.
2570
2571 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2572
2573         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
2574         commit.
2575
2576 2016-05-28  Alan Modra  <amodra@gmail.com>
2577
2578         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
2579
2580 2016-05-28  Alan Modra  <amodra@gmail.com>
2581
2582         PR rtl-optimization/71275
2583         * ira.c (ira): Free dominance info.
2584
2585 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
2586
2587         * doc/sourcebuild.texi: New address for upstream Go repository.
2588
2589 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2590
2591         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
2592         (TARGET_ARM_V7M): Likewise.
2593
2594 2016-05-26  Jeff Law  <law@redhat.com>
2595
2596         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
2597         (thread_across_edge): Remove calls to find_jump_threads_backwards.
2598         * passes.def: Add jump threading passes before DOM/VRP.
2599         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
2600         argument to a basic block from an edge.  Remove tests which are
2601         handled elsewhere.
2602         (pass_data_thread_jumps, class pass_thread_jumps): New.
2603         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
2604         (make_pass_thread_jumps): Likewise.
2605         * tree-pass.h (make_pass_thread_jumps): Declare.
2606
2607 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
2608
2609         * config/visium/visium-protos.h (split_double_move): Rename into...
2610         (visium_split_double_move): ...this.
2611         (visium_split_double_add): Declare.
2612         * config/visium/visium.c (split_double_move): Rename into...
2613         (visium_split_double_move): ...this.
2614         (visium_split_double_add): New function.
2615         (visium_expand_copysign): Renumber operands for consistency.
2616         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
2617         (DFmode move splitter): Likewise.
2618         (*addi3_insn): Split by means of visium_split_double_add.
2619         (*adddi3_insn_flags): Delete.
2620         (*plus_plus_sltu<subst_arith>): New insn.
2621         (*subdi3_insn): Split by means of visium_split_double_add.
2622         (subdi3_insn_flags): Delete.
2623         (*minus_minus_sltu<subst_arith>): New insn.
2624         (*negdi2_insn): Split by means of visium_split_double_add.
2625         (*negdi2_insn_flags): Delete.
2626
2627 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
2628
2629         * configure.ac: Treat a --with-headers option without argument
2630         the same as the default (i.e. consult sys-include directory).
2631         * configure: Regenerate.
2632
2633 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2634
2635         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
2636         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
2637         prototype.
2638         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
2639         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
2640
2641 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
2642
2643         PR target/63596
2644         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
2645         tree-stdarg analysis results.
2646         (aarch64_setup_incoming_varargs): Likewise.
2647
2648 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
2649
2650         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
2651         va_list_gpr_counter_field and va_list_fpr_counter_field.
2652
2653 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
2654
2655         PR67609
2656         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
2657         * config/aarch64/aarch64.c
2658         (aarch64_cannot_change_mode_class): Remove function.
2659         * config/aarch64/aarch64-protos.h
2660         (aarch64_cannot_change_mode_class): Remove.
2661
2662 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2663
2664         * cfgloop.c (record_niter_bound): Record likely upper bounds.
2665         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
2666         get_likely_max_loop_iterations_int): New.
2667         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
2668         any_likely_upper_bound.
2669         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
2670         Declare.
2671         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
2672         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
2673         upper bound.
2674         (unroll_loop_constant_iterations): Likewise.
2675         (unroll_loop_runtime_iterations): Likewise.
2676         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
2677         * lto-streamer-out.c (output_cfg): Likewise.
2678         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
2679         bounds.
2680         (canonicalize_loop_induction_variables): Dump likely upper bounds.
2681         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
2682         (likely_max_loop_iterations): New.
2683         (likely_max_loop_iterations_int): New.
2684         (likely_max_stmt_executions): New.
2685         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
2686         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
2687         likely_max_stmt_executions): Declare.
2688
2689 2016-05-27  Marek Polacek  <polacek@redhat.com>
2690
2691         PR middle-end/71308
2692         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
2693
2694 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2695
2696         * config/s390/s390.md (2x risbg splitters): Use
2697         reg_overlap_mentioned_p instead of rtx_equal_p.
2698
2699 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2700
2701         * combine.c (make_compound_operation): Take known zero bits into
2702         account when checking for possible zero_extend.
2703
2704 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2705
2706         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
2707         Use const_int_operand for operand 2 predicate.  Simplify expand code
2708         as a result.
2709
2710 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
2711
2712         PR middle-end/71279
2713         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
2714         into comparison.
2715
2716 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2717
2718         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
2719         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
2720         that returns CC_SESWPmode and CC_ZESWPmode.
2721         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
2722         and CC_SESWPmode.
2723         (aarch64_rtx_costs): Likewise.
2724
2725 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2726
2727         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
2728         for ISA 3.0 min/max support.
2729         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
2730         conditional move support.
2731         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
2732         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
2733         available.
2734         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
2735         conditional moves where the comparison type is different from move
2736         type.
2737         (fp_minmax): New code iterator for smin/smax.
2738         (minmax): New code attributes for min/max.
2739         (SMINMAX): Likewise.
2740         (smax<mode>3): Combine min, max insns into one insn using the
2741         fp_minmax code iterator.  Add support for ISA 3.0 min/max
2742         instructions that don't need -ffast-math.
2743         (s<minmax><mode>3): Likewise.
2744         (smax<mode>3_vsx): Likewise.
2745         (smin<mode>3): Likewise.
2746         (s<minmax><mode>3_vsx): Likewise.
2747         (smin<mode>3_vsx): Likewise.
2748         (pre-VSX min/max splitters): Likewise.
2749         (s<minmax><mode>3_fpr): Likewise.
2750         (movsfcc): Rewrite floating point conditional moves to combine
2751         SFmode/DFmode into a single insn.
2752         (mov<mode>cc): Likewise.
2753         (movdfcc): Likewise.
2754         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
2755         SFDF2 iterators to handle all combinations.
2756         (fseldfsf4): Likewise.
2757         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
2758         (fseldfdf4): Likewise.
2759         (fselsfdf4): Likewise.
2760         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
2761         comparison instructions that set a 0/-1 mask, and use it for
2762         floating point conditional move via XXSEL.
2763         (fpmask<mode>): Likewise.
2764         (xxsel<mode>): Likewise.
2765         * config/rs6000/predicates.md (min_max_operator): Delete, no
2766         longer used.
2767         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
2768         instructions that generate a 0/-1 mask for use with XXSEL.
2769         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
2770         say whether floating point min/max is available, either through
2771         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
2772         (TARGET_MINMAX_DF): Likewise.
2773
2774 2016-05-27  Alan Modra  <amodra@gmail.com>
2775
2776         PR rtl-optimization/71275
2777         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
2778         for update_equiv_regs and combine_and_move_insns.
2779
2780 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
2781
2782         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
2783         if_then_else or cond RTXes to calculate attribute value.
2784         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
2785         <attr "length_immediate>: Ditto.
2786         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
2787         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
2788         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
2789         <attr "type">: Ditto.
2790         <attr "prefix_data16">: Ditto.
2791         <attr "prefix_extra">: Ditto.
2792         <attr "length_immediate">: Ditto.
2793         <attr "prefix">: Ditto.
2794         (vec_set<mode>_0) <attr "isa">: Ditto.
2795         <attr "prefix_extra">: Ditto.
2796         <attr "length_immediate">: Ditto.
2797         <attr "prefix">: Ditto.
2798         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
2799         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
2800         (sse2_storelpd) <attr "prefix_data16">: Ditto.
2801         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
2802         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
2803         <attr "length_immediate">: Ditto.
2804         <attr "prefix">: Ditto.
2805         (sse2_movsd) <attr "length_immediate">: Ditto.
2806         <attr "prefix">: Ditto.
2807         (vec_concatv2df)  <attr "isa">: Ditto.
2808         <attr "prefix">: Ditto.
2809         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
2810         (*vec_extractv2di_1) <attr "isa">: Ditto.
2811         <attr "type">: Ditto.
2812         <attr "length_immediate">: Ditto.
2813         <attr "prefix_rex">: Ditto.
2814         <attr "prefix_extra">: Ditto.
2815         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
2816         <attr "prefix_extra">: Ditto.
2817         <attr "length_immediate">: Ditto.
2818         (vec_concatv2di) <attr "isa">: Ditto.
2819         <attr "prefix_extra">: Ditto.
2820         <attr "length_immediate">: Ditto.
2821         <attr "prefix">: Ditto.
2822
2823 2016-05-26  Martin Liska  <mliska@suse.cz>
2824
2825         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
2826         function.
2827         (operator+): Likewise.
2828         (operator-): Likewise.
2829         (comp_cost::operator+=): Likewise.
2830         (comp_cost::operator-=): Likewise.
2831         (comp_cost::operator/=): Likewise.
2832         (comp_cost::operator*=): Likewise.
2833         (operator<): Likewise.
2834         (operator==): Likewise.
2835         (operator<=): Likewise.
2836         (new_cost): Remove.
2837         (infinite_cost_p): Likewise.
2838         (add_costs): Likewise.
2839         (sub_costs): Likewise.
2840         (compare_costs): Likewise.
2841         (set_group_iv_cost): Use the newly introduced functions.
2842         (get_address_cost): Likewise.
2843         (get_shiftadd_cost): Likewise.
2844         (force_expr_to_var_cost): Likewise.
2845         (split_address_cost): Likewise.
2846         (ptr_difference_cost): Likewise.
2847         (difference_cost): Likewise.
2848         (get_computation_cost_at): Likewise.
2849         (determine_group_iv_cost_generic): Likewise.
2850         (determine_group_iv_cost_address): Likewise.
2851         (determine_group_iv_cost_cond): Likewise.
2852         (autoinc_possible_for_pair): Likewise.
2853         (determine_group_iv_costs): Likewise.
2854         (cheaper_cost_pair): Likewise.
2855         (iv_ca_recount_cost): Likewise.
2856         (iv_ca_set_no_cp): Likewise.
2857         (iv_ca_set_cp): Likewise.
2858         (iv_ca_cost): Likewise.
2859         (iv_ca_new): Likewise.
2860         (iv_ca_dump): Likewise.
2861         (iv_ca_narrow): Likewise.
2862         (iv_ca_prune): Likewise.
2863         (iv_ca_replace): Likewise.
2864         (try_add_cand_for): Likewise.
2865         (try_improve_iv_set): Likewise.
2866         (find_optimal_iv_set): Likewise.
2867
2868 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
2869
2870         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
2871         that internal functions will clobber all caller-saved registers.
2872
2873 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
2874
2875         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
2876         Return a better case_values_threshold when optimizing.
2877
2878 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
2879
2880         * config/aarch64/aarch64-simd.md (aarch64_combinez):
2881         Add ? to integer variant.
2882         (aarch64_combinez_be): Likewise.
2883
2884 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
2885
2886         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
2887         instead of x constraint.
2888         (vcvtps2ph256<mask_name>): Likewise.
2889
2890         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
2891         alternative.  Formatting fix.
2892
2893         * config/i386/sse.md
2894         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
2895         to ...
2896         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
2897         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
2898         maybe_evex prefix instead of vex.
2899         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
2900         EXT_REX_SSE_REG_P (op0) case in the splitter.
2901
2902 2016-05-25  Jeff Law  <law@redhat.com>
2903
2904         PR tree-optimization/71272
2905         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
2906         Update comments.  Add test for empty path.
2907
2908 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
2909
2910         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
2911         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
2912         special case builtin.
2913         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
2914         code for ALTIVEC_BUILTIN_VEC_CMPNE.
2915         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
2916         for __builtin_vec_cmpne.
2917
2918 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
2919
2920         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
2921         redundant test and bail out if the type of the new operand is not
2922         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
2923
2924 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
2925
2926         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
2927         (x_ix86_target_flags_explicit): Remove.
2928         * config/i386/i386.c (ix86_function_specific_save): Do not copy
2929         x_ix86_target_flags_explicit.
2930         (ix86_function_specific_restore): Ditto.
2931
2932 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
2933             H.J. Lu  <hongjiu.lu@intel.com>
2934
2935         PR target/70738
2936         * common/config/i386/i386-common.c
2937         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
2938         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
2939         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
2940         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
2941         (-mgeneral-regs-only): Add new option.
2942         * config/i386/i386.c (ix86_option_override_internal): Don't enable
2943         x87 instructions if only general registers are allowed.
2944         (ix86_target_string): Add ix86_flags argument. Handle additional
2945         flags options through ix86_flags argument.  Update all callers.
2946         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
2947
2948 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2949
2950         PR rtl-optimization/66940
2951         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
2952         decrementing desired_val will not overflow before performing these
2953         operations.
2954
2955 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
2956
2957         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
2958         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
2959         * config/i386/i386.c (enum ix86_builtins): Add
2960         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
2961         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
2962         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
2963         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
2964         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
2965         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
2966         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
2967         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
2968         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
2969         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
2970         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
2971         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
2972         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
2973         __builtin_ia32_cvtps2dq512_mask.
2974         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
2975         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
2976         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
2977         * config/i386/sse.md
2978         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
2979         Rename to ...
2980         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
2981         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
2982         to ...
2983         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
2984         (avx512f_vec_pack_sfix_v8df): New define_expand.
2985         (avx512f_roundpd512): Rename to ...
2986         (avx512f_round<castmode>512): ... this.  Change iterator.
2987         (avx512f_roundps512_sfix): New define_expand.
2988         (round<mode>2_sfix): Change iterator.
2989
2990 2016-05-25  Nick Clifton  <nickc@redhat.com>
2991
2992         * config/msp430/msp430.c (msp430_attr): Produce an error if a
2993         static interrupt handler is detected.
2994         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
2995         default linker script.
2996         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
2997         the low part of a symbolic pointer.
2998
2999 2016-05-25  Richard Biener  <rguenther@suse.de>
3000
3001         PR tree-optimization/71261
3002         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
3003         interesting stmt instead of immediate uses when looking
3004         for the use operand to replace.
3005
3006 2016-05-25  Martin Liska  <mliska@suse.cz>
3007
3008         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
3009
3010 2016-05-25  Richard Biener  <rguenther@suse.de>
3011
3012         PR tree-optimization/71264
3013         * tree-vect-stmts.c (vect_init_vector): Properly deal with
3014         vector type val.
3015
3016 2016-05-25  Martin Liska  <mliska@suse.cz>
3017
3018         PR tree-optimization/71239
3019         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
3020         if DECL_SIZE is NULL.
3021
3022 2016-05-25  Richard Biener  <rguenther@suse.de>
3023
3024         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
3025         * tree-if-conv.c (pass_data_if_conversion): Use it.
3026
3027 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3028
3029         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
3030         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
3031         * varpool.c (varpool_node::get_availability): Likewise.
3032
3033 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3034
3035         * config/rs6000/altivec.md (VNEG iterator): New iterator for
3036         VNEGW/VNEGD instructions.
3037         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
3038         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
3039         support for ISA 3.0 VNEGW/VNEGD instructions.
3040
3041 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
3042
3043         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
3044         pointers inside OACC_DATA regions.
3045         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
3046         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
3047         (gimplify_adjust_omp_clauses): Fix typo in comment.
3048
3049 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3050
3051         * config/rs6000/altivec.md (VParity): New mode iterator for vector
3052         parity built-in functions.
3053         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
3054         zeros.
3055         (p9v_parity<mode>2): Likewise.
3056         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
3057         parity.
3058         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
3059         (parity<mode>2): ISA 3.0 expander for vector parity.
3060         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
3061         power9 built-ins.
3062         (BU_P9_64BIT_MISC_0): Likewise.
3063         (BU_P9_MISC_0): Likewise.
3064         (BU_P9V_AV_1): Likewise.
3065         (BU_P9V_AV_2): Likewise.
3066         (BU_P9V_AV_3): Likewise.
3067         (BU_P9V_AV_P): Likewise.
3068         (BU_P9V_VSX_1): Likewise.
3069         (BU_P9V_OVERLOAD_1): Likewise.
3070         (BU_P9V_OVERLOAD_2): Likewise.
3071         (BU_P9V_OVERLOAD_3): Likewise.
3072         (VCTZB): Add vector count trailing zeros support.
3073         (VCTZH): Likewise.
3074         (VCTZW): Likewise.
3075         (VCTZD): Likewise.
3076         (VPRTYBD): Add vector parity support.
3077         (VPRTYBQ): Likewise.
3078         (VPRTYBW): Likewise.
3079         (VCTZ): Add overloaded vector count trailing zeros support.
3080         (VPRTYB): Add overloaded vector parity support.
3081         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3082         overloaded vector count trailing zeros and parity instructions.
3083         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
3084         vector parity support.
3085         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
3086         trailing zeros support.
3087         (vec_cntlz): Likewise.
3088         (vec_vctzb): Likewise.
3089         (vec_vctzd): Likewise.
3090         (vec_vctzh): Likewise.
3091         (vec_vctzw): Likewise.
3092         (vec_vprtyb): Add ISA 3.0 vector parity support.
3093         (vec_vprtybd): Likewise.
3094         (vec_vprtybw): Likewise.
3095         (vec_vprtybq): Likewise.
3096         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3097         the ISA 3.0 vector count trailing zeros and vector parity built-in
3098         functions.
3099
3100 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
3101
3102         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
3103         when there is stmt_to_insert.
3104
3105 2016-05-24  Martin Sebor  <msebor@redhat.com>
3106
3107         PR c++/71147
3108         * tree.h (complete_or_array_type_p): New inline function.
3109
3110 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
3111
3112         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
3113         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
3114         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
3115
3116         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
3117         Limit 1st alternative to noavx isa, split 2nd alternative into one
3118         noavx and one avx alternative, use *x and Bm in the former and
3119         x and m in the latter.
3120
3121         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
3122         of sse4 for the first alternative, drop %v from the template
3123         and d operand modifier.  Split second alternative into one sse4_noavx
3124         and one avx alternative, use *x instead of *v in the former and v
3125         instead of *v in the latter.
3126         (*sse4_1_extractps): Use noavx isa instead of * for the first
3127         alternative, drop %v from the template.  Split second alternative into
3128         one noavx and one avx alternative, use *x instead of *v in the
3129         former and v instead of *v in the latter.
3130         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
3131         with noavx and the last one with avx.
3132         (sse4_1_phminposuw): Guard first alternative with noavx isa,
3133         split the second one into one noavx and one avx alternative,
3134         use *x and Bm in the former and x and m in the latter one.
3135         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
3136         alternatives.
3137
3138         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
3139         first two alternatives to noavx, use *x instead of *v in the second
3140         one, add avx alternative without *.
3141         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
3142         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
3143         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
3144
3145 2016-05-24  Jeff Law  <law@redhat.com>
3146
3147         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
3148         New function, extracted from...
3149         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
3150         Allow simple copies and constant initializations in the SSA chain.
3151
3152 2016-05-24  Marek Polacek  <polacek@redhat.com>
3153
3154         PR c/71249
3155         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
3156         scope.
3157
3158 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
3159
3160         PR c++/71257
3161         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
3162         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
3163         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
3164         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
3165         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
3166
3167 2016-05-24  Richard Biener  <rguenther@suse.de>
3168
3169         PR tree-optimization/71240
3170         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
3171         has integral type.
3172
3173 2016-05-24  Richard Biener  <rguenther@suse.de>
3174
3175         PR tree-optimization/71230
3176         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
3177
3178 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
3179
3180         * tree-vectorizer.h (vectorizable_comparison): Delete.
3181         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
3182         PURE_SLP_STMT check.
3183         * tree-vect-stmts.c (vectorizable_call): Likewise.
3184         (vectorizable_simd_clone_call): Likewise.
3185         (vectorizable_conversion): Likewise.
3186         (vectorizable_assignment): Likewise.
3187         (vectorizable_shift): Likewise.
3188         (vectorizable_operation): Likewise.
3189         (vectorizable_load): Likewise.
3190         (vectorizable_condition): Likewise.
3191         (vectorizable_store): Likewise.  Assert that we don't have
3192         hybrid SLP.
3193         (vectorizable_comparison): Make static.  Remove redundant
3194         PURE_SLP_STMT check.
3195         (vect_transform_stmt): Assert that we always have an slp_node
3196         if PURE_SLP_STMT.
3197
3198 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3199
3200         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
3201         operands[2] against 1 with comparison against CONST1_RTX.
3202         (<shift>di3_neon): Likewise.
3203         * config/arm/predicates.md (const0_operand): Replace with comparison
3204         against CONST0_RTX.
3205
3206 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3207
3208         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
3209         operands[2] against 1 with comparison against CONST1_RTX.
3210         (ashrdi3): Likewise.
3211         (lshrdi3): Likewise.
3212         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
3213         UINTVAL.
3214         (ashrsi3): Likewise.
3215         (lshrsi3): Likewise.
3216         (rotrsi3): Likewise.
3217         (define_split above *compareqi_eq0): Likewise.
3218         (define_split above "prologue"): Likewise.
3219         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
3220         * config/arm/predicates.md (shift_operator): Likewise.
3221         (shift_nomul_operator): Likewise.
3222         (sat_shift_operator): Likewise.
3223         (thumb1_cmp_operand): Likewise.
3224         (const_neon_scalar_shift_amount_operand): Replace manual range
3225         check with IN_RANGE.
3226         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
3227         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
3228
3229 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3230
3231         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
3232         with HOST_WIDE_INT_1.
3233         (insv): Likewise.
3234         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
3235         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
3236         (arm_canonicalize_comparison): Likewise.
3237         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
3238         HOST_WIDE_INT_1.
3239         (thumb1_size_rtx_costs): Likewise.
3240         (vfp_const_double_index): Replace cast of 1 to unsigned
3241         HOST_WIDE_INT with HOST_WIDE_INT_1U.
3242         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
3243         HOST_WIDE_INT_1.
3244         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
3245         HOST_WIDE_INT with HOST_WIDE_INT_1U.
3246         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
3247         HOST_WIDE_INT with HOST_WIDE_INT_1.
3248
3249 2016-05-24  Marek Polacek  <polacek@redhat.com>
3250
3251         * tree-cfg.h (should_remove_lhs_p): New predicate.
3252         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
3253         * gimplify.c (gimplify_modify_expr): Likewise.
3254         * tree-cfg.c (verify_gimple_call): Likewise.
3255         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
3256         * gimple-fold.c: Include "tree-cfg.h".
3257         (gimple_fold_call): Use should_remove_lhs_p.
3258
3259 2016-05-24  Richard Biener  <rguenther@suse.de>
3260
3261         PR tree-optimization/71253
3262         * cfganal.h (control_dependences): Make robust against edge
3263         and BB removal.
3264         (control_dependences::control_dependences): Remove edge_list argument.
3265         (control_dependences::get_edge): Remove.
3266         (control_dependences::get_edge_src): Add.
3267         (control_dependences::get_edge_dest): Likewise.
3268         (control_dependences::m_el): Make a vector of edge src/dest index.
3269         * cfganal.c (control_dependences::find_control_dependence): Adjust.
3270         (control_dependences::control_dependences): Likewise.
3271         (control_dependences::~control_dependence): Likewise.
3272         (control_dependences::get_edge): Remove.
3273         (control_dependences::get_edge_src): Add.
3274         (control_dependences::get_edge_dest): Likewise.
3275         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
3276         get_edge_src.
3277         (perform_tree_ssa_dce): Adjust.
3278         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
3279         get_edge_src.
3280         (pass_loop_distribution::execute): Adjust.  Do loop destroying
3281         conditional on changed.
3282
3283 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3284
3285         PR target/69857
3286         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
3287         return.  Reindent transformation comment and mention the ARM state
3288         behavior.
3289
3290 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
3291
3292         PR middle-end/71252
3293         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
3294         after build_and_add_sum creates new use stmt.
3295
3296 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
3297
3298         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
3299         load_lanes/grouped_load classification comes first.  Don't check
3300         whether the vectorization factor is a multiple of the group size
3301         for load_lanes.
3302
3303 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
3304
3305         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
3306         GROUP_GAP for single-element interleaving.
3307         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
3308         variable.
3309
3310 2016-05-24  Richard Biener  <rguenther@suse.de>
3311
3312         PR middle-end/70434
3313         PR c/69504
3314         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
3315         bases which are accessed with non-invariant indices.
3316         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
3317         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
3318
3319 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
3320
3321         PR middle-end/71170
3322         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
3323         (add_to_ops_vec): Add stmt_to_insert.
3324         (add_repeat_to_ops_vec): Init stmt_to_insert.
3325         (insert_stmt_before_use): New.
3326         (transform_add_to_multiply): Remove mult_stmt insertion and add it
3327         to ops vector.
3328         (get_ops): Init stmt_to_insert.
3329         (maybe_optimize_range_tests): Likewise.
3330         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
3331         (rewrite_expr_tree_parallel): Likewise.
3332         (reassociate_bb): Likewise.
3333
3334 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3335
3336         PR target/71201
3337         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
3338         ISA 3.0 xxperm fusion alternative.
3339         (altivec_vperm_v8hiv16qi): Likewise.
3340         (altivec_vperm_<mode>_uns_internal): Likewise.
3341         (vperm_v8hiv4si): Likewise.
3342         (vperm_v16qiv8hi): Likewise.
3343
3344 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3345             Kelvin Nilsen  <kelvin@gcc.gnu.org>
3346
3347         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
3348         vpermr/xxpermr on ISA 3.0.
3349         (altivec_expand_vec_perm_le): Likewise.
3350         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
3351         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
3352         ISA 3.0.
3353
3354 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
3355
3356         * config/i386/i386.h (IS_STACK_MODE): Enable for
3357         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
3358         SSE_FLOAT_MODE_P macros.
3359         * config/i386/i386.c (ix86_preferred_reload_class): Use
3360         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
3361         Cleanup regclass processing for CONST_DOUBLE_P.
3362         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
3363         (ix86_rtx_costs): Remove redundant TARGET_80387 check
3364         with IS_STACK_MODE macro.
3365         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
3366         with TARGET_SSE2.
3367         (*movdf_internal): Use IS_STACK_MODE macro.
3368         (*movsf_internal): Ditto.
3369
3370 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
3371
3372         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
3373         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
3374
3375 2016-05-23  Jeff Law  <law@redhat.com>
3376
3377         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
3378         extracted from ...
3379         (fsm_find_control_statement_thread_paths): Call it.
3380
3381 2016-05-23  Martin Jambor  <mjambor@suse.cz>
3382
3383         PR ipa/71234
3384         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
3385         from_global_constant if t is not NULL.
3386
3387 2016-05-23  Marek Polacek  <polacek@redhat.com>
3388
3389         PR c/49859
3390         * common.opt (Wswitch-unreachable): New option.
3391         * doc/invoke.texi: Document -Wswitch-unreachable.
3392         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
3393         warning.
3394
3395 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
3396
3397         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
3398         TMR_INDEX is non-NULL.
3399
3400 2016-05-23  Richard Biener  <rguenther@suse.de>
3401
3402         PR tree-optimization/71230
3403         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
3404         (try_special_add_to_ops): ... here.  Always test for single-use.
3405
3406 2016-05-23  Martin Jambor  <mjambor@suse.cz>
3407
3408         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
3409         default block if a PHI node in the original one would be resized.
3410
3411 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3412
3413         PR tree-optimization/58135
3414         * tree-vect-slp.c: When group size is not multiple
3415         of vector size, allow splitting of store group at
3416         vector boundary.
3417
3418 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
3419
3420         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
3421
3422 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
3423
3424         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
3425         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
3426         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
3427         of 64x2.
3428
3429         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
3430         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
3431         v constraint instead of x and vinserti32x4 insn.
3432
3433         * config/i386/sse.md (i128vldq): New mode iterator.
3434         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
3435         avx512dq and avx512vl alternatives.
3436
3437         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
3438         constraint, use maybe_evex prefix instead of vex.
3439         (vec_dupv4sf): Use v constraint instead of x for output
3440         operand except for noavx alternative, use Yv constraint
3441         instead of x for input.  Use maybe_evex prefix instead of vex.
3442         (*vec_dupv4si): Likewise.
3443         (*vec_dupv2di): Likewise.
3444
3445 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
3446
3447         PR middle-end/40921
3448         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
3449         (linearize_expr_tree): Call try_special_add_to_ops.
3450         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
3451
3452 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3453
3454         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
3455         to computed stack_usage.
3456
3457 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3458
3459         PR target/71103
3460         * config/avr/avr.md (define_expand "mov<mode>"): If the source
3461         operand is subreg (symbol_ref) then move the symbol ref to register.
3462
3463 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
3464
3465         * tree.c (array_at_struct_end_p): Look through MEM_REF.
3466
3467 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
3468
3469         PR middle-end/71179
3470         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
3471         VECTOR type.
3472
3473 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
3474
3475         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
3476         ranges by calling get_single_symbol and tidy up.  Look more closely
3477         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
3478
3479 2016-05-20  Jeff Law  <law@redhat.com>
3480
3481         * bitmap.c (bitmap_find_bit): Remove useless test.
3482
3483 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
3484
3485         * function.c (thread_prologue_and_epilogue_insns): Commit the
3486         insertion of the epilogue.
3487
3488 2016-05-20  Martin Jambor  <mjambor@suse.cz>
3489
3490         PR tree-optimization/70884
3491         * tree-sra.c (initialize_constant_pool_replacements): Do not check
3492         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
3493         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
3494         of constant pool data as a reason for scalarization.
3495
3496 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
3497
3498         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
3499         for naked functions.
3500         (thumb1_expand_prologue): Likewise.
3501
3502 2016-05-20  Nathan Sidwell  <nathan@acm.org>
3503
3504         * config/nvptx/nptx.c (nvptx_option_override): Only set
3505         flag_toplevel_reorder, if not explicitly specified.  Set
3506         flag_no_common, unless explicitly specified.
3507
3508 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
3509
3510         * calls.c (can_implement_as_sibling_call_p): Mark param
3511         reg_parm_stack_space with ATTRIBUTE_UNUSED.
3512
3513 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
3514
3515         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
3516         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
3517         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
3518         constants.
3519         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
3520         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
3521         and CASE_CONST_ANY.
3522
3523 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
3524
3525         * config/nvptx/nvptx.md (sincossf3): New pattern.
3526
3527 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
3528
3529         * calls.c (maybe_complain_about_tail_call): New function.
3530         (initialize_argument_information): Call
3531         maybe_complain_about_tail_call when clearing *may_tailcall.
3532         (can_implement_as_sibling_call_p): Call
3533         maybe_complain_about_tail_call when returning false.
3534         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
3535         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
3536         if tail-call optimization fails.
3537         * cfgexpand.c (expand_call_stmt): Initialize
3538         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
3539         * gimple-pretty-print.c (dump_gimple_call): Dump
3540         gimple_call_must_tail_p.
3541         * gimple.c (gimple_build_call_from_tree): Call
3542         gimple_call_set_must_tail with the value of
3543         CALL_EXPR_MUST_TAIL_CALL.
3544         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
3545         (gimple_call_set_must_tail): New function.
3546         (gimple_call_must_tail_p): New function.
3547         * print-tree.c (print_node): Update printing of TREE_STATIC
3548         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
3549         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
3550         trailing comment listing applicable flags.
3551         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
3552
3553 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
3554
3555         * calls.c (expand_call): Move "Rest of purposes for tail call
3556         optimizations to fail" to...
3557         (can_implement_as_sibling_call_p): ...this new function, and
3558         split into multiple "if" statements.
3559
3560 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
3561
3562         * cfgloop.h (expected_loop_iterations_unbounded,
3563         expected_loop_iterations): Unconstify.
3564         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
3565         profile with known upper bound; return 3 when profile is absent.
3566         (expected_loop_iterations): Update.
3567
3568 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
3569
3570         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
3571         and get_max_loop_iterations_int.
3572
3573 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
3574
3575         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
3576         realistic upper bounds here.
3577
3578 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
3579
3580         PR c++/71210
3581         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
3582         calls if the LHS is variable length or has addressable type.
3583         If targets[0]->decl is a noreturn call with void return type and
3584         zero arguments, adjust fntype and remove lhs in that case.
3585
3586 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
3587
3588         PR tree-optimization/71079
3589         PR tree-optimization/71206
3590         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
3591
3592 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3593
3594         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
3595         (get_vec_alignment_for_array_decl): Likewise.
3596         (get_vec_alignment_for_record_decl): Likewise.
3597         (increase_alignment::execute): Move code to find alignment to
3598         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
3599         (type_align_map): New hash_map.
3600
3601 2016-05-20  Richard Guenther  <rguenther@suse.de>
3602
3603         PR tree-optimization/29756
3604         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
3605         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
3606         * fold-const.c (operand_equal_p): Likewise.
3607         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
3608         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
3609         * tree-inline.c (estimate_operator_cost): Likewise.
3610         * tree-pretty-print.c (dump_generic_node): Likewise.
3611         * tree-ssa-operands.c (get_expr_operands): Likewise.
3612         * cfgexpand.c (expand_debug_expr): Likewise.
3613         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
3614         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
3615         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
3616         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
3617         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
3618         (execute_update_addresses_taken): Do it.
3619
3620 2016-05-20  Richard Biener  <rguenther@suse.de>
3621
3622         PR tree-optimization/71185
3623         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
3624         register operations.
3625
3626 2016-05-20  Richard Biener  <rguenther@suse.de>
3627
3628         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
3629         gimple_seq_add_seq_without_update.
3630         (release_bb_predicate): Assert we have no operands to free.
3631         (if_convertible_loop_p_1): Calculate post dominators later.
3632         Do not free BB predicates here.
3633         (combine_blocks): Do not recompute BB predicates.
3634         (version_loop_for_if_conversion): Save BB predicates around
3635         loop versioning.
3636
3637 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
3638
3639         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
3640         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
3641         code.  Ignore sibcalls on EDGE_IGNORE edges.
3642         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
3643         on edges for sibcalls that run without prologue.  The rest of the
3644         function is combined from...
3645         (fix_fake_fallthrough_edge): ... this, and ...
3646         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
3647         function argument, make it a local variable.
3648
3649 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
3650
3651         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
3652         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
3653         for 32-bit mode and SEH for 64-bit.
3654         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
3655         TARGET_64BIT_DEFAULT.
3656
3657 2016-05-19  Ryan Burn  <contact@rnburn.com>
3658
3659         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
3660         * gengtype.c (open_base_files): Add cilk.h to ifiles.
3661
3662 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
3663
3664         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
3665         force pending loads from memory.
3666
3667 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3668
3669         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
3670         (UNSPEC_DARN_32): New unspec constant.
3671         (UNSPEC_DARN_RAW): New unspec constant.
3672         (darn_32): New instruction.
3673         (darn_raw): New instruction.
3674         (darn): New instruction.
3675         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
3676         support and documentation for this macro.
3677         (BU_P9_MISC_1): New macro definition.
3678         (BU_P9_64BIT_MISC_0): New macro definition.
3679         (BU_P9_MISC_0): New macro definition.
3680         (darn_32): New builtin definition.
3681         (darn_raw): New builtin definition.
3682         (darn): New builtin definition.
3683         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
3684         RS6000_BUILTIN_0 directives to surround each occurrence of
3685         #include "rs6000-builtin.def".
3686         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
3687         RS6000_BTM_64BIT flags to the returned mask, depending on
3688         configuration.
3689         (def_builtin): Correct an error in the assignments made to the
3690         debugging variable attr_string.
3691         (rs6000_expand_builtin): Add support for no-operand built-in
3692         functions.
3693         (builtin_function_type): Remove fatal_error assertion that is no
3694         longer valid.
3695         (rs6000_common_init_builtins): Add support for no-operand built-in
3696         functions.
3697         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
3698         definition.
3699         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
3700         definition.
3701         (RS6000_BTM_64BIT): New macro definition.
3702         * doc/extend.texi: Document __builtin_darn (void),
3703         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
3704         functions.
3705
3706 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
3707
3708         * tree-vect-loop.c (vect_analyze_loop_2): Use also
3709         max_loop_iterations_int.
3710
3711 2016-05-19  Marek Polacek  <polacek@redhat.com>
3712
3713         PR tree-optimization/71031
3714         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
3715         condition and adjust the code a bit.
3716
3717 2016-05-19  Martin Liska  <mliska@suse.cz>
3718
3719         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
3720         auto_vec instead of vec.
3721
3722 2016-05-19  Martin Liska  <mliska@suse.cz>
3723
3724         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
3725
3726 2016-05-19  Martin Liska  <mliska@suse.cz>
3727
3728         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
3729
3730 2016-05-19  Martin Liska  <mliska@suse.cz>
3731
3732         * ipa-pure-const.c (set_function_state): Remove an existing
3733         funct_state.
3734         (remove_node_data): Do not free it as it's released
3735         in set_function_state.
3736
3737 2016-05-19  Martin Liska  <mliska@suse.cz>
3738
3739         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
3740         bitmap.
3741
3742 2016-05-19  Martin Liska  <mliska@suse.cz>
3743
3744         * omp-simd-clone.c (simd_clone_adjust): Release vector.
3745
3746 2016-05-19  Martin Liska  <mliska@suse.cz>
3747
3748         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
3749         an auto_vec instead of re-creating it.
3750
3751 2016-05-19  Martin Liska  <mliska@suse.cz>
3752
3753         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
3754         auto_vec instead of vec.
3755
3756 2016-05-19  Martin Liska  <mliska@suse.cz>
3757
3758         * lto-section-in.c (lto_get_section_data): Call
3759         lto_check_version with additional argument.
3760         * lto-streamer.c (lto_check_version): Add new argument.
3761         * lto-streamer.h (lto_check_version): Likewise.
3762
3763 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3764
3765         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
3766         Don't add cost of inner memory when handling sign-extended loads.
3767
3768 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
3769
3770         PR rtl-optimization/71148
3771         * cse.c (cse_main): Free dominance info.
3772         (rest_of_handle_cse): Don't free dominance info.
3773         (rest_of_handle_cse2): Likewise.
3774         (rest_of_handle_cse_after_global_opts): Likewise.
3775
3776 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3777
3778         PR target/71056
3779         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
3780         NULL_TREE early if NEON is not available.  Remove now redundant check
3781         in ARM_CHECK_BUILTIN_MODE.
3782
3783 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
3784
3785         PR sanitizer/64354
3786         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
3787         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
3788         * doc/cpp.texi: Document new macros.
3789
3790 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
3791
3792         PR tree-optimization/69848
3793         * tree-vect-loop.c (vectorizable_reduction): Don't factor
3794         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
3795
3796 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
3797
3798         * function.c (thread_prologue_and_epilogue_insn): Move the
3799         "goto epilogue_done" one block later.
3800
3801 2016-05-19  Richard Biener  <rguenther@suse.de>
3802
3803         PR tree-optimization/70729
3804         * passes.def: Move LIM pass before PRE.  Remove no longer
3805         required copyprop and move first DCE out of the loop pipeline.
3806
3807 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
3808
3809         PR driver/69265
3810         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
3811         (OBJS-libcommon-target): ...here.
3812         * opts-common.c: Include spellcheck.h.
3813         (cmdline_handle_error): Build a vec of valid options and use it
3814         to suggest provide hints for misspelled arguments.
3815
3816 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
3817
3818         PR c++/71100
3819         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
3820         lhs if it has TREE_ADDRESSABLE type.
3821
3822 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
3823
3824         PR target/71145
3825         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
3826         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
3827
3828 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3829
3830         PR ipa/69708
3831         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
3832         input for NOP_EXPR pass-through functions.
3833         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
3834         aggregate global constant VAR_DECLs in constant jump functions.
3835
3836 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3837
3838         PR ipa/69708
3839         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
3840         from TREE_READONLY parameters.
3841
3842 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3843
3844         PR ipa/69708
3845         * cgraph.h (cgraph_indirect_call_info): New field
3846         guaranteed_unmodified.
3847         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
3848         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
3849         appropriate.
3850         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
3851         pass the parameter value to ipa_find_agg_cst_for_param.
3852         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
3853         guaranteed_unmodified, store AA results there instead of bailing out
3854         if present.
3855         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
3856         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
3857         (find_constructor_constant_at_offset): New function.
3858         (ipa_find_agg_cst_from_init): Likewise.
3859         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
3860         static initializers of contants, report back through a new paameter
3861         from_global_constant if that was the case.
3862         (try_make_edge_direct_simple_call): Also pass parameter value to
3863         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
3864         appropriate.
3865         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
3866         (ipa_read_indirect_edge_info): Likewise.
3867         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
3868         (ipa_load_from_parm_agg): Likewise.
3869
3870 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
3871
3872         PR rtl-optimization/71150
3873         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
3874         check.
3875
3876 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3877
3878         PR target/70915
3879         * config/rs6000/constraints.md (wE constraint): New constraint
3880         for a vector constant that can be loaded with XXSPLTIB.
3881         (wM constraint): New constraint for a vector constant of a 1's.
3882         (wS constraint): New constraint for a vector constant that can be
3883         loaded with XXSPLTIB and a vector sign extend instruction.
3884         * config/rs6000/predicates.md (xxspltib_constant_split): New
3885         predicates for wE/wS constraints.
3886         (xxspltib_constant_nosplit): Likewise.
3887         (easy_vector_constant): Add support for constants that can be
3888         loaded via XXSPLTIB.
3889         (all_ones_constant): New predicate for vector constant with all
3890         1's set.
3891         (splat_input_operand): Add support for ISA 3.0 word splat operations.
3892         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
3893         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
3894         instruction and possibly with a sign extension.
3895         (output_vec_const_move): Add support for XXSPLTIB. If we are
3896         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
3897         instead of XXLXOR/XXLORC.
3898         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
3899         operations.
3900         (rs6000_legitimize_reload_address): Likewise.
3901         (rs6000_output_move_128bit): Use output_vec_const_move to emit
3902         constants.
3903         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
3904         combine VSX_M and VSX_M2 into one iterator.
3905         (VSX_M2): Likewise.
3906         (VSINT_84): New iterators for loading constants with XXSPLTIB.
3907         (VSINT_842): Likewise.
3908         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
3909         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
3910         XXSPLTIB instruction.
3911         (xxspltib_<mode>_nosplit): Likewise.
3912         (xxspltib_<mode>_split): New insn to load up constants with
3913         XXSPLTIB and a sign extend instruction.
3914         (vsx_mov<mode>): Replace single move that handled all vector types
3915         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
3916         moves (when -mvsx-timode is in effect) into the main vector
3917         moves.  Eliminate separate moves for <VSr> <VSa>, where the
3918         preferred register class (<VSr>) is listed first, and the
3919         secondary register class (<VSa>) is listed second with a '?' to
3920         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
3921         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
3922         that if the register was involved in a slow operation, the
3923         clear/set operation does not wait for the slow operation to
3924         finish.  Adjust the length attributes for 32-bit mode.  Use
3925         rs6000_output_move_128bit and drop the use of the string
3926         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
3927         spacing so that the alternatives and attributes don't generate
3928         long lines, and put things in columns, so that it is easier to
3929         match up the operands and attributes with the insn alternatives.
3930         (vsx_mov<mode>_64bit): Likewise.
3931         (vsx_mov<mode>_32bit): Likewise.
3932         (vsx_movti_64bit): Fold movti into normal vector moves.
3933         (vsx_movti_32bit): Likewise.
3934         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
3935         splat instructions.
3936         (vsx_splat_v4si_internal): Likewise.
3937         (vsx_splat_v4sf_internal): Likewise.
3938         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
3939         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
3940         extend vector elements.
3941         (vsx_sign_extend_hi_<mode>): Likewise.
3942         (vsx_sign_extend_si_v2di): Likewise.
3943         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
3944         declaration.
3945         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
3946         constraints.  Add trailing period to wL documentation.
3947
3948 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
3949
3950         PR middle-end/71020
3951         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
3952         * tree-dfa.c (replace_abnormal_ssa_names): New function.
3953         * tree-call-cdce.c: Include tree-dfa.h.
3954         (can_guard_call_p): New function, extracted from...
3955         (can_use_internal_fn): ...here.
3956         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
3957         and return void.
3958         (shrink_wrap_one_built_in_call): Likewise.
3959         (use_internal_fn): Likewise.
3960         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
3961         and return void.  Call replace_abnormal_ssa_names.
3962         (pass_call_cdce::execute): Check can_guard_call_p during the
3963         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
3964         will always change something.
3965
3966 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3967
3968         PR ipa/70646
3969         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
3970         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
3971
3972 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3973
3974         PR ipa/70646
3975         * ipa-inline.h (condition): New field size.
3976         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
3977         for comaprison and store it into the new condition.
3978         (evaluate_conditions_for_known_args): Use condition size to check
3979         access sizes for all but CHANGED conditions.
3980         (unmodified_parm_1): New parameter size_p, store access size into it.
3981         (unmodified_parm): Likewise.
3982         (unmodified_parm_or_parm_agg_item): Likewise.
3983         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
3984         (set_cond_stmt_execution_predicate): Extract access sizes and store
3985         them to conditions.
3986         (set_switch_stmt_execution_predicate): Likewise.
3987         (will_be_nonconstant_expr_predicate): Likewise.
3988         (will_be_nonconstant_predicate): Likewise.
3989         (inline_read_section): Stream condition size.
3990         (inline_write_summary): Likewise.
3991
3992 2016-05-18  Richard Biener  <rguenther@suse.de>
3993
3994         * tree-ssa-loop-im.c (determine_max_movement): Properly add
3995         condition cost to PHI cost instead of total_cost.
3996
3997 2016-05-18  Martin Liska  <mliska@suse.cz>
3998
3999         PR fortran/70856
4000         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
4001         merged variables.
4002
4003 2016-05-18  Richard Biener  <rguenther@suse.de>
4004
4005         * lto-streamer.h (LTO_major_version): Bump to 6.
4006
4007 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
4008
4009         * function.c (make_split_prologue_seq, make_prologue_seq,
4010         make_epilogue_seq): New functions, factored out from...
4011         (thread_prologue_and_epilogue_insns): Here.
4012
4013 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
4014
4015         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
4016         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
4017         of before.  Add a comment.
4018
4019 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
4020
4021         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
4022         expression pointer, not pointer to the pointer.
4023
4024 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
4025
4026         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
4027         (avx2_pbroadcast<mode>): Add another alternative with v instead
4028         of x constraints in it, using <pbroadcast_evex_isa> isa.
4029         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
4030
4031         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
4032         constraint x instead of v in second alternative, add avx512bw
4033         alternative.
4034
4035         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
4036         constraint x instead of v in second alternative, add avx512bw
4037         alternative.
4038
4039         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
4040         constraint x instead of v in second alternative, add avx512bw
4041         alternative.
4042
4043         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
4044         avx512bw alternative.
4045
4046 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
4047
4048         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
4049         array to 128 chars.
4050         (define_insn "*andnottf3"): Ditto.
4051         (define_insn "*<code><mode>3"/any_logic): Ditto.
4052         (define_insn "*<code>tf3"/any_logic): Ditto.
4053         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
4054         operand to block AVX-512VL insn variant emit when it is not enabled.
4055
4056 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
4057
4058         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
4059         constraint fot SF mode.
4060
4061 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
4062             Kirill Yukhin  <kirill.yukhin@intel.com>
4063
4064         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
4065         modifiers.
4066         (define_insn "rsqrt14<mode>"): Ditto.
4067         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
4068         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
4069         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
4070         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4071         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
4072         Ditto.
4073         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
4074         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
4075         * config/i386/i386.c (ix86_print_operand): Expand check for size
4076         override codes for Intel syntax.
4077
4078 2016-05-18  Richard Biener  <rguenther@suse.de>
4079
4080         PR tree-optimization/71168
4081         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
4082         initialization earlier.
4083
4084 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
4085
4086         * config/aarch64/aarch64-simd.md
4087         (aarch64_reduc_plus_internal<mode>): Rename to...
4088         (reduc_plus_scal): ...This, and remove previous implementation.
4089
4090 2016-05-18  Richard Biener  <rguenther@suse.de>
4091
4092         * passes.def: Put late dse and cd_dce in canonical order.
4093
4094 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
4095
4096         * ipa-inline-transform.c (preserve_function_body_p): Look for
4097         first non-thunk clone.
4098         (save_function_body): Save into first non-thunk.
4099         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
4100         up call stmt id.
4101         (lto_output_node): Inline thunks don't need body in every
4102         partition.
4103         * lto-streamer-in.c: Do not fixup thunk clones.
4104         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
4105         thunks.
4106         * tree-inline.c (copy_bb): Be prepared for target node to be new after
4107         folding suceeds.
4108
4109 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
4110
4111         PR middle-end/63586
4112         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
4113         (reassociate_bb): Call transform_add_to_multiply.
4114
4115 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
4116
4117         * config/aarch64/aarch64.c (all_extensions): Removed unused
4118         static variable.
4119
4120 2016-05-17  Nathan Sidwell  <nathan@acm.org>
4121
4122         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
4123         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
4124
4125 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
4126
4127         PR tree-optimization/54579
4128         PR middle-end/55299
4129         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
4130
4131 2016-05-17  Marek Polacek  <polacek@redhat.com>
4132
4133         PR ipa/71146
4134         * tree-inline.c (expand_call_inline): Call
4135         maybe_remove_unused_call_args.
4136
4137 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
4138
4139         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
4140         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
4141         * doc/md.texi (fmin@var{m}3): Likewise.
4142
4143 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
4144
4145         * match.pd (X & C): New transformation.
4146
4147 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
4148
4149         * match.pd (~X & Y): New transformation.
4150
4151 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
4152
4153         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
4154         information for new SSA_NAME.
4155         (simplify_conversion_using_ranges): Get range through get_range_info
4156         instead of get_value_range.
4157
4158 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
4159
4160         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
4161         Remove inline assembly.
4162         (vmvn_s16): Likewise.
4163         (vmvn_s32): Likewise.
4164         (vmvn_u8): Likewise.
4165         (vmvn_u16): Likewise.
4166         (vmvn_u32): Likewise.
4167         (vmvnq_s8): Likewise.
4168         (vmvnq_s16): Likewise.
4169         (vmvnq_s32): Likewise.
4170         (vmvnq_u8): Likewise.
4171         (vmvnq_u16): Likewise.
4172         (vmvnq_u32): Likewise.
4173         (vmvn_p8): Likewise.
4174         (vmvnq_p16): Likewise.
4175
4176 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
4177
4178         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
4179         Use builtin.
4180         (vmul_n_s16): Likewise.
4181         (vmul_n_s32): Likewise.
4182         (vmul_n_u16): Likewise.
4183         (vmul_n_u32): Likewise.
4184         (vmulq_n_f32): Likewise.
4185         (vmulq_n_f64): Likewise.
4186         (vmulq_n_s16): Likewise.
4187         (vmulq_n_s32): Likewise.
4188         (vmulq_n_u16): Likewise.
4189         (vmulq_n_u32): Likewise.
4190
4191 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
4192
4193         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
4194         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
4195
4196 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
4197
4198         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
4199         to *aarch64_fma4_elt_from_dup<mode>.
4200         (*aarch64_fnma4_elt_to_128df): Rename to
4201         *aarch64_fnma4_elt_from_dup<mode>.
4202         * config/aarch64/arm_neon.h (vfma_n_f64): New.
4203         (vfms_n_f32): Likewise.
4204         (vfms_n_f64): Likewise.
4205         (vfmsq_n_f32): Likewise.
4206         (vfmsq_n_f64): Likewise.
4207
4208 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
4209
4210         * wide-int.h: Change fixed_wide_int_storage from class to struct.
4211
4212 2016-05-17  Richard Biener  <rguenther@suse.de>
4213
4214         PR tree-optimization/71132
4215         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
4216         Only add control dependences for blocks in the loop.
4217         (build_rdg): Adjust.
4218         (generate_code_for_partition): Return whether loop should
4219         be destroyed and delay that.
4220         (distribute_loop): Likewise.
4221         (pass_loop_distribution::execute): Record loops to be destroyed
4222         and perform delayed destroying of loops.
4223
4224 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4225
4226         PR target/70809
4227         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
4228
4229 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
4230
4231         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
4232
4233 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
4234
4235         PR target/71114
4236         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
4237         insertion point for instructions generated by validize_mem.
4238
4239 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
4240
4241         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
4242         in brackets.
4243
4244 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
4245
4246         * config/aarch64/aarch64.c
4247         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
4248         rather than a macro.
4249
4250 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
4251
4252         * doc/invoke.texi (AArch64 Options): Various updates.
4253
4254 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4255
4256         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
4257         into instrumentation thunks.
4258         * cif-code.def (CIF_CHKP): New.
4259
4260 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
4261
4262         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
4263
4264 2016-05-16  Martin Jambor  <mjambor@suse.cz>
4265
4266         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
4267         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
4268
4269 2016-05-16  Marek Polacek  <polacek@redhat.com>
4270
4271         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
4272         commentary.
4273
4274 2016-05-16  Martin Jambor  <mjambor@suse.cz>
4275
4276         PR hsa/70857
4277         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
4278         the outlined kernel function.
4279
4280 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
4281
4282         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
4283         (ISA_HAS_DLSA): Ditto.
4284
4285 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
4286
4287         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
4288
4289 2016-05-16  Nathan Sidwell  <nathan@acm.org>
4290
4291         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
4292         (nvptx_name_replacement): Restore.  Add comment.
4293         (write_fn_proto, write_fn_proto_from_insn,
4294         nvptx_output_call_insn): Restore
4295         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
4296
4297 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
4298
4299         * config/aarch64/aarch64.md
4300         (add<mode>3_compareC_cconly_imm): Remove use of %w.
4301         (add<mode>3_compareC_imm): Likewise.
4302         (<optab>si3_uxtw): Split into register and immediate variants.
4303         (andsi3_compare0_uxtw): Likewise.
4304         (and<mode>3_compare0): Likewise.
4305         (and<mode>3nr_compare0): Likewise.
4306         (stack_protect_test_<mode>): Don't use %x for memory operands.
4307
4308 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
4309
4310         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
4311
4312 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
4313
4314         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
4315         Split integer shifts into shift_reg and bfm.
4316         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4317         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4318         (ror<mode>3_insn): Likewise.
4319         (<optab>si3_insn_uxtw): Likewise.
4320         (<optab><mode>3_insn): Change to rotate_imm.
4321         (extr<mode>5_insn_alt): Likewise.
4322         (extrsi5_insn_uxtw): Likewise.
4323         (extrsi5_insn_uxtw_alt): Likewise.
4324
4325 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
4326
4327         * doc/tm.texi: Regenerate.
4328         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
4329         (TARGET_INVALID_RETURN_TYPE): Remove.
4330         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
4331         TARGET_INVALID_RETURN_TYPE.
4332         * target.def (invalid_parameter_type): Remove.
4333         (invalid_return_type): Remove.
4334
4335 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4336
4337         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
4338         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
4339         calls from thunk.
4340         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
4341         gimple body.
4342         (preserve_function_body_p): No need to preserve function body
4343         * cif-codes.def (CIF_THUNK): Remove.
4344         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
4345
4346 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4347
4348         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
4349
4350 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4351
4352         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
4353         for thunks.
4354
4355 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4356
4357         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
4358         (inline_small_functions): Do not look for function symbol when
4359         resetting caches.
4360
4361 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4362
4363         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
4364         of inline thunks
4365
4366 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
4367             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4368             Jiong Wang  <jiong.wang@arm.com>
4369
4370         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
4371         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
4372         Define __ARM_FP16_ARGS when appropriate.
4373         * config/arm/arm.c (arm_invalid_parameter_type): Remove
4374         declaration.
4375         (arm_invalid_return_type): Likewise.
4376         (TARGET_INVALID_PARAMETER_TYPE): Remove.
4377         (TARGET_INVALID_RETURN_TYPE): Remove.
4378         (aapcs_vfp_sub_candidate): Allow HFmode.
4379         (aapcs_vfp_allocate): Add comment.  Support HFmode.
4380         (aapcs_vfp_allocate_return_reg): Likewise.
4381         (struct aapcs_cp_arg_layout): Slightly reword comments for
4382         is_return_candidate and allocate_return_reg.
4383         (output_mov_vfp): Update assert.
4384         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
4385         condition.
4386         (arm_invalid_parameter_type): Remove.
4387         (amr_invalid_return_type): Remove.
4388         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
4389         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
4390         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
4391
4392 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
4393
4394         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
4395         * config/aarch64/arch64-protos.h
4396         (aarch64_legitimize_reload_address): Remove.
4397         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
4398         Remove.
4399
4400 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
4401
4402         * configure.ac: Add ACX_NONCANONICAL_HOST.
4403         * configure: Regenerate.
4404         * Makefile.in: Set host_noncanonical.
4405
4406 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
4407
4408         PR target/71097
4409         * config/i386/i386.md (*movtf_internal): Before register allocation,
4410         do not allow FP constants for CM_MEDIUM memory model, allow only
4411         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
4412         (*movxf_internal): Ditto.
4413         (*movdf_internal): Ditto.
4414         (*movsf_internal): Ditto.
4415
4416 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
4417
4418         PR rtl-optimization/67483
4419         * combine.c (make_compound_operation): Don't call extract_left_shift
4420         with negative shift amounts.
4421
4422 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
4423
4424         PR bootstrap/71071
4425         * fold-const.c (fold_checksum_tree): Allow modification
4426         of TYPE_ALIAS_SET during folding.
4427
4428         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
4429         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
4430         (ix86_split_to_parts): Likewise.  Fix up formatting.
4431
4432 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
4433
4434         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
4435         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
4436         printf format.
4437
4438 2016-05-13  Nathan Sidwell  <nathan@acm.org>
4439
4440         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
4441         (nvptx_name_replacement): Delete.
4442         (write_fn_proto, write_fn_proto_from_insn,
4443         nvptx_output_call_insn): Remove nvptx_name_replacement call.
4444         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
4445         * langhooks.c (add_builtin_funcction_common): Call
4446         targetm.mangle_decl_assembler_name.
4447
4448         * config/nvptx/nvptx.c (write_fn_proto): Handle
4449         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
4450
4451 2016-05-13  Martin Liska  <mliska@suse.cz>
4452
4453         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
4454         and PRIu64 in printf format.
4455
4456 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4457
4458         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
4459         comment.
4460
4461 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4462
4463         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
4464         Change --param max-completely-peeled-times to
4465         --param max-completely-peel-times in dump file printing.
4466
4467 2016-05-13  Richard Biener  <rguenther@suse.de>
4468
4469         PR tree-optimization/42587
4470         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
4471         (find_bswap_or_nop_1): Likewise.
4472         (bswap_replace): Likewise.
4473
4474 2016-05-13  Martin Liska  <mliska@suse.cz>
4475
4476         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
4477         Initialize a variable with default value.
4478
4479 2016-05-13  Martin Liska  <mliska@suse.cz>
4480
4481         * doc/invoke.texi: Enhance explanation of error recovery
4482         of sanitizers.
4483
4484 2016-05-13  Martin Liska  <mliska@suse.cz>
4485
4486         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
4487         (struct cost_pair): Change inv_expr_id (int) to inv_expr
4488         (iv_inv_expr_ent *).
4489         (struct iv_inv_expr_ent): Comment struct fields.
4490         (sort_iv_inv_expr_ent): New function.
4491         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
4492         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
4493         a hash_map between iv_inv_expr_ent and number of usages.
4494         (niter_for_exit): Fix coding style.
4495         (tree_ssa_iv_optimize_init): Use renamed variable.
4496         (determine_base_object): Fix coding style.
4497         (alloc_iv): Likewise.
4498         (find_interesting_uses_outside): Likewise.
4499         (add_candidate_1): Likewise.
4500         (add_standard_iv_candidates): Likewise.
4501         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
4502         (prepare_decl_rtl): Fix coding style.
4503         (get_address_cost): Likewise.
4504         (get_shiftadd_cost): Likewise.
4505         (force_expr_to_var_cost): Likewise.
4506         (compare_aff_trees): Likewise.
4507         (get_expr_id): Restructure the function.
4508         (get_loop_invariant_expr_id): Renamed to
4509         get_loop_invariant_expr.
4510         (get_computation_cost_at): Replace usage of inv_expr_id with
4511         inv_expr.
4512         (get_computation_cost): Likewise.
4513         (determine_group_iv_cost_generic): Likewise.
4514         (determine_group_iv_cost_address): Likewise.
4515         (iv_period): Fix coding style.
4516         (iv_elimination_compare_lt): Likewise.
4517         (may_eliminate_iv): Likewise.
4518         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
4519         inv_expr.
4520         (determine_group_iv_costs): Dump invariant expressions.
4521         (iv_ca_recount_cost): Use the newly added hash_map.
4522         (iv_ca_set_remove_invariants): Fix coding style.
4523         (iv_ca_set_add_invariants): Fix coding style.
4524         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
4525         invariants.
4526         (iv_ca_set_cp): Likewise.
4527         (iv_ca_new): Initialize the newly added hash_map and remove
4528         initialization of fields.
4529         (iv_ca_free): Delete the hash_map.
4530         (iv_ca_dump): Dump invariant expressions.
4531         (iv_ca_extend): Fix coding style.
4532         (try_add_cand_for): Likewise.
4533         (create_new_ivs): Dump information about # of avg iterations and
4534         # of used invariant expressions.
4535         (rewrite_use_compare): Fix coding style.
4536         (free_loop_data): Set default value for max_inv_expr_id.
4537
4538 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
4539
4540         * cse.c (rest_of_handle_cse): Use cleanup_cfg
4541         returned value cse_cfg_altered computation.
4542         (rest_of_handle_cse2): Likewise.
4543         (rest_of_handle_cse_after_global_opts): Likewise.
4544
4545 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4546
4547         PR target/53440
4548         * config/arm/arm.c (arm32_output_mi_thunk): New.
4549         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
4550         to split Thumb1 vs TARGET_32BIT functionality.
4551         (arm_thumb1_mi_thunk): New.
4552
4553 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4554
4555         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
4556         to true.
4557
4558 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4559
4560         PR target/71080
4561         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
4562
4563 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
4564
4565         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
4566         (expand_builtin_trap): Emit a regular call.
4567         (set_builtin_user_assembler_name): Remove obsolete cases.
4568         * dse.c (scan_insn): Adjust.
4569         * except.c: Include calls.h.
4570         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
4571         emit a regular call to setjmp.
4572         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
4573         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
4574         (emit_block_move_via_libcall): Delete.
4575         (block_move_fn): Delete.
4576         (init_block_move_fn): Likewise.
4577         (emit_block_move_libcall_fn): Likewise.
4578         (emit_block_op_via_libcall): New function.
4579         (set_storage_via_libcall): Tidy up and use memset builtin.
4580         (block_clear_fn): Delete.
4581         (init_block_clear_fn): Likewise.
4582         (clear_storage_libcall_fn): Likewise.
4583         (expand_assignment): Call emit_block_move_via_libcall.
4584         Do not include gt-expr.h.
4585         * expr.h (emit_block_op_via_libcall): Declare.
4586         (emit_block_copy_via_libcall): New inline function.
4587         (emit_block_move_via_libcall): Likewise.
4588         (emit_block_comp_via_libcall): Likewise.
4589         (block_clear_fn): Delete.
4590         (init_block_move_fn): Likewise.
4591         (init_block_clear_fn): Likewise.
4592         (emit_block_move_via_libcall): Likewise.
4593         (set_storage_via_libcall): Add default parameter value.
4594         * libfuncs.h (enum libfunc_index): Remove obsolete values.
4595         (abort_libfunc): Delete.
4596         (memcpy_libfunc): Likewise.
4597         (memmove_libfunc): Likewise.
4598         (memcmp_libfunc): Likewise.
4599         (memset_libfunc): Likewise.
4600         (setbits_libfunc): Likewise.
4601         (setjmp_libfunc): Likewise.
4602         (longjmp_libfunc): Likewise.
4603         (profile_function_entry_libfunc): Likewise.
4604         (profile_function_exit_libfunc): Likewise.
4605         (gcov_flush_libfunc): Likewise.
4606         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
4607         and DECL_VISIBILITY on the declaration.
4608         (init_optabs): Do not initialize obsolete libfuncs.
4609         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
4610         * tree-core.h (ECF_RET1): Define.
4611         (ECF_TM_PURE): Adjust.
4612         (ECF_TM_BUILTIN): Likewise.
4613         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
4614         (build_common_builtin_nodes): Initialize abort builtin.
4615         Add ECF_RET1 on memcpy, memmove and memset builtins.
4616         Pass final flags for alloca and alloca_with_align builtins.
4617         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
4618         obsolete builtins.
4619         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
4620         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
4621         set_storage_via_libcall and call emit_block_copy_via_libcall.
4622
4623 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
4624
4625         * config/i386/i386.md (*call_got_x32): Change operand 0 to
4626         DImode before it is passed to ix86_output_call_operand.
4627         (*call_value_got_x32): Ditto for operand 1.
4628
4629 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
4630
4631         PR rtl-optimization/70904
4632         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
4633         reload for wide mode.
4634
4635 2016-05-12  Marek Polacek  <polacek@redhat.com>
4636
4637         PR c/70756
4638         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
4639         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
4640         * langhooks.h (incomplete_type_error): Likewise.
4641         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
4642         parameter, pass it down to incomplete_type_error.
4643         * tree.h (size_in_bytes): New inline overload.
4644         (size_in_bytes_loc): Renamed from size_in_bytes.
4645
4646 2016-05-12  Richard Biener  <rguenther@suse.de>
4647
4648         PR tree-optimization/71059
4649         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
4650         nary before looking up or entering the expression into the VN
4651         hashes.
4652         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
4653         Make sure to re-use NARYs without result as inserted by
4654         phi-translation.
4655
4656 2016-05-12  Richard Biener  <rguenther@suse.de>
4657
4658         PR tree-optimization/71062
4659         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
4660         field.
4661         * tree-ssa-structalias.c (set_uids_in_ptset): Set
4662         vars_contains_restrict if the var is a restrict tag.
4663         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
4664         do not disambiguate pointers against it.
4665         (dump_points_to_solution): Re-structure and adjust for new
4666         vars_contains_restrict flag.
4667         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
4668
4669 2016-05-12  Martin Liska  <mliska@suse.cz>
4670
4671         * doc/invoke.texi: Explain connection between
4672         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
4673
4674 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
4675
4676         PR tree-optimization/71006
4677         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4678         consider COND_EXPR as a mask producer.
4679
4680 2016-05-12  Marek Polacek  <polacek@redhat.com>
4681
4682         PR driver/71063
4683         * opts.c (common_handle_option): Detect missing argument for --help^.
4684
4685 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4686
4687         PR target/70830
4688         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
4689         when popping the PC and within an interrupt handler routine.
4690         Add missing tab to output of "ldmfd".
4691         (output_return_instruction): Output LDMFD with SP update rather
4692         than POP when returning from interrupt handler.
4693
4694 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
4695
4696         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
4697         TARGET_64BIT && TARGET_AVX512DQ.
4698         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
4699         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
4700         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
4701         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
4702         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
4703         (*vec_extractv4si_zext): Add avx512dq alternative.
4704         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
4705         use v instead of x constraint in other alternatives where possible.
4706
4707         * config/i386/sse.md (sse2_loadld): Use v instead of x
4708         constraint in alternatives 0,1,4.
4709
4710         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
4711         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
4712         v constraints instead of x and <pinsr_evex_isa> isa attribute.
4713
4714         PR target/71019
4715         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
4716         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
4717         is not emitted unless TARGET_AVX512BW.
4718         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
4719         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
4720         for the result operand.
4721
4722         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
4723         constraint instead of x in avx alternatives.  Use maybe_evex instead
4724         of vex prefix.
4725
4726         * config/i386/constraints.md (Yv): New constraint.
4727         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
4728         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
4729         * config/i386/i386.md (avx512fvecmode): New mode attr.
4730         (*pushtf): Use v constraint instead of x.
4731         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
4732         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
4733         (*absneg<mode>2): Use Yv constraint instead of x constraint.
4734         (*absnegtf2_sse): Likewise.
4735         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
4736         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
4737         avx512f alternatives.
4738         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
4739
4740 2016-05-12  Richard Biener  <rguenther@suse.de>
4741
4742         PR tree-optimization/71060
4743         * tree-data-ref.c (initialize_data_dependence_relation): Do not
4744         require exact match of DR_BASE_OBJECT but only matching address and
4745         type.
4746
4747 2016-05-12  Richard Biener  <rguenther@suse.de>
4748
4749         PR tree-optimization/70986
4750         * cfganal.c: Include cfgloop.h.
4751         (dfs_find_deadend): Prefer to take edges exiting loops.
4752
4753 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4754
4755         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
4756         compile and run time.
4757
4758 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
4759
4760         PR c/43651
4761         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
4762
4763 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
4764
4765         * config/i386/i386.c (legitimize_pic_address): Use
4766         copy_to_suggested_reg instead of gen_movsi.
4767
4768 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
4769
4770         * config/rs6000/predicates.md (quad_memory_operand): Move most of
4771         the code into quad_address_p and call it to share code with
4772         vsx_quad_dform_memory_operand.
4773         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
4774         d-form support.
4775         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
4776         bit instead of being a separate word.  Split -mpower9-dform into
4777         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
4778         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
4779         for the register class supporting 128-bit quad word memory offsets.
4780         (mode_supports_vsx_dform_quad): Helper function to return if the
4781         register class uses quad word memory offsets.
4782         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
4783         (rs6000_debug_reg_global): Always print if we are using LRA or not.
4784         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
4785         instructions are enabled, set up the appropriate addr_masks for
4786         128-bit types.
4787         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
4788         -mpower9-dform-scalar, instead of -mpower9-dform.
4789         (rs6000_option_override_internal): Split -mpower9-dform into two
4790         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
4791         -mpower9-dform switch sets or clears both.  If we are not using
4792         the LRA register allocator, do not enable -mpower9-dform-vector by
4793         default.  If we are using LRA, enable -mpower9-dform-vector and
4794         -mvsx-timode if it is appropriate.  Issue a warning if either
4795         -mpower9-dform-vector or -mvsx-timode are explicitly used without
4796         enabling LRA.
4797         (quad_address_offset_p): New helper function to return if the
4798         offset is legal for quad word memory instructions.
4799         (quad_address_p): New function to determin if GPR or vector
4800         register quad word memory addresses are legal.
4801         (mem_operand_gpr): Validate quad word address offsets.
4802         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
4803         d-form (register + offset) instructions.
4804         (offsettable_ok_by_alignment): Likewise.
4805         (rs6000_legitimate_offset_address_p): Likewise.
4806         (legitimate_lo_sum_address_p): Likewise.
4807         (rs6000_legitimize_address): Likewise.
4808         (rs6000_legitimize_reload_address): Add more debug statements for
4809         -mdebug=addr.
4810         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
4811         d-form instructions.
4812         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
4813         d-form instructions.  Distinguish different cases in debug
4814         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
4815         d-form instructions.
4816         (rs6000_preferred_reload_class): Likewise.
4817         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
4818         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
4819         of the ISA 2.06 indexed memory instructions.
4820         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
4821         use them to save/restore the saved vector registers instead of
4822         using Altivec instructions.
4823         (rs6000_emit_epilogue): Likewise.
4824         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
4825         (rs6000_opt_masks): Split -mpower9-dform into
4826         -mpower9-dform-scalar and -mpower9-dform-vector.
4827         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
4828         was not selected.
4829         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
4830         ISA 3.0 vector indexed memory instructions, and fold the code into
4831         the normal mov<mode> patterns.
4832         (p9_vecstore_<mode>): Likewise.
4833         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
4834         instructions.
4835         (vsx_movti_64bit): Likewise.
4836         (vsx_movti_32bit): Likewise.
4837         * config/rs6000/constraints.md (wO constraint): New constraint for
4838         ISA 3.0 vector d-form support.
4839         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
4840         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
4841         include -mpower9-dform-vector until we switch over to LRA.
4842         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
4843         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
4844         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
4845         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
4846         for -mpower9-dform and -mlra.
4847         * doc/md.texi (wO constraint): Document wO constraint.
4848
4849 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
4850
4851         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
4852         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
4853         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
4854         Move handling of non-insn arguments inline into the sole user:
4855         (output_trans_func): ...here.
4856         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
4857         in emitted function prototype.
4858         (output_internal_insn_latency_func): Ditto.  Simplify.
4859         (output_internal_maximal_insn_latency_func): Ditto.  Delete
4860         always-unused argument.
4861         (output_insn_latency_func): Ditto.
4862         (output_maximal_insn_latency_func): Ditto.
4863
4864 2016-05-11  Richard Biener  <rguenther@suse.de>
4865
4866         PR tree-optimization/71055
4867         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
4868         sth with precision not equal to access size verify we don't chop
4869         off bits.
4870
4871 2016-05-11  Richard Biener  <rguenther@suse.de>
4872
4873         PR debug/71057
4874         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
4875         (dwarf2out_finish): Move retry_incomplete_types call ...
4876         (dwarf2out_early_finish): ... here.
4877
4878 2016-05-11  Richard Biener  <rguenther@suse.de>
4879
4880         PR middle-end/71002
4881         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
4882         if the langhook insists on it.
4883         * fold-const.c (make_bit_field_ref): Add arg for the original
4884         reference and preserve its alias-set.
4885         (decode_field_reference): Take exp by reference and adjust it
4886         to the original memory reference.
4887         (optimize_bit_field_compare): Adjust callers.
4888         (fold_truth_andor_1): Likewise.
4889         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
4890
4891 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
4892
4893         PR middle-end/70807
4894         * cfgrtl.h (delete_insn_and_edges): Now return bool.
4895         * cfgrtl.c (delete_insn_and_edges): Likewise.
4896         * config/i386/i386.c (convert_scalars_to_vector): Remove
4897         redundant code.
4898         * cse.c (cse_insn): Compute cse_cfg_altered.
4899         (delete_trivially_dead_insns): Likewise.
4900         (cse_cc_succs): Likewise.
4901         (rest_of_handle_cse): Free dominance info if required.
4902         (rest_of_handle_cse2): Likewise.
4903         (rest_of_handle_cse_after_global_opts): Likewise.
4904
4905 2016-05-11  Alan Modra  <amodra@gmail.com>
4906
4907         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
4908         abi_v4_pass_in_fpr): New functions.
4909         (rs6000_function_arg_boundary): Exclude complex IBM long double
4910         from 64-bit alignment when ABI_V4.
4911         (rs6000_function_arg, rs6000_function_arg_advance_1,
4912         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
4913
4914 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
4915
4916         PR rtl-optimization/71028
4917         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
4918         jump with just a return in the fallthrough block if the branch
4919         block contains just a return as well.
4920
4921 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
4922
4923         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
4924         * match.pd ((X & Y) ^ Y): ... this.
4925         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
4926         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
4927
4928 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
4929
4930         * read-md.c (require_char_ws): New function.
4931         (read_string): Simplify using require_char_ws.
4932         (handle_constants): Likewise.
4933         (handle_enum): Likewise.
4934         (handle_file): Likewise.
4935         * read-md.h (require_char_ws): New declaration.
4936         * read-rtl.c (read_conditions): Simplify using require_char_ws.
4937         (read_mapping): Likewise.
4938         (read_rtx_code): Likewise.
4939         (read_nested_rtx): Likewise.
4940
4941 2016-05-10  James Norris  <jnorris@codesourcery.com>
4942
4943         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
4944         if offloading is enabled and -fopenacc or -fopenmp is specified.
4945         (CRTOFFLOADEND): Likewise.
4946         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
4947         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
4948
4949 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
4950
4951         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
4952         gotoff_operand code paths.  Use copy_to_suggested_regs and
4953         expand_simple_binop where appropriate.  Cleanup.
4954
4955 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4956
4957         PR target/70799
4958         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
4959         integer constants.
4960         (dimode_scalar_chain::vector_const_cost): New.
4961         (dimode_scalar_chain::compute_convert_gain): Handle constants.
4962         (dimode_scalar_chain::convert_op): Likewise.
4963         (dimode_scalar_chain::convert_insn): Likewise.
4964
4965 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
4966
4967         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
4968         unary operation, not a binary one.
4969
4970 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4971
4972         PR middle-end/70877
4973         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
4974         calls with type casted fndecl.
4975
4976 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4977
4978         PR tree-optimization/70786
4979         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
4980         * calls.c (initialize_argument_information): Bind bounds
4981         with corresponding args passed by reference.
4982
4983 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
4984
4985         PR target/70927
4986         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
4987         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
4988         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
4989         accordingly.
4990
4991 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4992
4993         PR target/70963
4994         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
4995         code for a zero scale factor.
4996         (vsx_xvcvdpuxds_scale): Likewise.
4997
4998 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
4999
5000         * diagnostic-show-locus.c (layout::layout): Call show_ruler
5001         if show_ruler_p was set on the context.
5002         (layout::show_ruler): New method.
5003         * diagnostic.h (struct diagnostic_context): Add field
5004         "show_ruler_p".
5005
5006 2016-05-10  Richard Biener  <rguenther@suse.de>
5007
5008         PR tree-optimization/71039
5009         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
5010         (chk_uses): New function.
5011         (propagate_with_phi): Verify we can safely replicate the lhs of an
5012         aggregate assignment on all incoming edges.
5013
5014 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
5015
5016         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
5017         Forward declare.
5018         (rx_atomic_sequence): New class.
5019         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
5020         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
5021         non-inline.
5022         (rx_atomic_sequence::rx_atomic_sequence,
5023         rx_atomic_sequence::~rx_atomic_sequence): New functions.
5024         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
5025         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
5026         CTRLREG_INTB): New constants.
5027         (FETCHOP): New code iterator.
5028         (fethcop_name, fetchop_name2): New iterator code attributes.
5029         (QIHI): New mode iterator.
5030         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
5031         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
5032         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
5033
5034 2016-05-10  Martin Liska  <mliska@suse.cz>
5035
5036         * tree-inline.c (remap_dependence_clique): Do not remap
5037         debugging statements.
5038
5039 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5040
5041         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
5042         ("*fixuns_truncdfdi2_z13")
5043         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
5044         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
5045         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
5046
5047 2016-05-10  Richard Biener  <rguenther@suse.de>
5048
5049         PR tree-optimization/70497
5050         PR tree-optimization/28367
5051         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
5052         split out from ...
5053         (visit_reference_op_load): ... here.
5054         (vn_reference_lookup_3): Use it to handle subreg-like accesses
5055         with simplified BIT_FIELD_REFs.
5056         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
5057         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
5058         correctly.
5059
5060 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
5061
5062         * dwarf2out.c (add_abstract_origin_attribute): Adjust
5063         documentation comment.  For BLOCK nodes, add a
5064         DW_AT_abstract_origin attribute that points to the DIE generated
5065         for the origin BLOCK.
5066         (gen_lexical_block_die): Call add_abstract_origin_attribute for
5067         blocks from inlined functions.
5068
5069 2016-05-10  Alan Modra  <amodra@gmail.com>
5070
5071         PR target/70947
5072         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
5073         regrename modifying insns saving lr before __morestack call.
5074         * config/rs6000/rs6000.md (split_stack_return): Similarly for
5075         insns restoring lr after __morestack call.
5076
5077 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
5078
5079         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
5080         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
5081         expanders.
5082         * config/i386/sse.md (vec_interleave_high<mode>,
5083         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
5084         <avx512>_vpermt2var<mode>3_maskz): Likewise.
5085
5086 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5087
5088         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
5089         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
5090         parallel reassociation for power8 and forward.
5091
5092 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
5093
5094         * config/i386/i386.md (absneg splitters with general regs): Use
5095         general_reg_operand predicate.
5096         (btsq peephole2): Use x86_64_immediate_operand to check if new
5097         value is suitable for immediate operand.  Generate emitted insn
5098         using RTL expressions.
5099         (btcq peephole2): Ditto.
5100         (btrq peephole2): Ditto.  Generate correct immediate operand
5101         for AND masking.
5102
5103 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
5104
5105         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
5106         bitpos.
5107
5108 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
5109
5110         * tree-affine.c (wide_int_constant_multiple_p): Add missing
5111         pointer dereference.
5112
5113 2016-05-09  Richard Biener  <rguenther@suse.de>
5114
5115         PR tree-optimization/70985
5116         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
5117         op0 isn't a gimple register.
5118
5119 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
5120
5121         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
5122         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
5123         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
5124         (i6400_fpu_mult): New cpu units.
5125         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
5126         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
5127         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
5128         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
5129         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
5130         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
5131         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
5132         (i6400_msa_long_float4, i6400_msa_long_float5)
5133         (i6400_msa_long_float8, i6400_msa_fdiv_df)
5134         (i6400_msa_fdiv_sf): New reservations.
5135         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
5136         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
5137         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
5138         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
5139         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
5140         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
5141         (msa_short_cmp, msa_short_float2, msa_short_logic3)
5142         (msa_short_store4, msa_long_load, msa_short_store)
5143         (msa_long_logic, msa_long_float2, msa_long_float4)
5144         (msa_long_float5, msa_long_float8, msa_long_mult)
5145         (msa_long_fdiv, msa_long_div): New reservations.
5146
5147 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
5148             Sameera Deshpande  <sameera.deshpande@imgtec.com>
5149             Matthew Fortune  <matthew.fortune@imgtec.com>
5150             Graham Stott  <graham.stott@imgtec.com>
5151             Chao-ying Fu  <chao-ying.fu@imgtec.com>
5152
5153         * config.gcc: Add MSA header file for mips*-*-* target.
5154         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
5155         (Ubv8i, Urv8):  New constraints.
5156         * config/mips/mips-ftypes.def: Add function types for MSA
5157         builtins.
5158         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
5159         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
5160         * config/mips/mips-msa.md: New file.
5161         * config/mips/mips-protos.h
5162         (mips_split_128bit_const_insns): New prototype.
5163         (mips_msa_idiv_insns): Likewise.
5164         (mips_split_128bit_move): Likewise.
5165         (mips_split_128bit_move_p): Likewise.
5166         (mips_split_msa_copy_d): Likewise.
5167         (mips_split_msa_insert_d): Likewise.
5168         (mips_split_msa_fill_d): Likewise.
5169         (mips_expand_msa_branch): Likewise.
5170         (mips_const_vector_same_val_p): Likewise.
5171         (mips_const_vector_same_bytes_p): Likewise.
5172         (mips_const_vector_same_int_p): Likewise.
5173         (mips_const_vector_shuffle_set_p): Likewise.
5174         (mips_const_vector_bitimm_set_p): Likewise.
5175         (mips_const_vector_bitimm_clr_p): Likewise.
5176         (mips_msa_vec_parallel_const_half): Likewise.
5177         (mips_msa_output_division): Likewise.
5178         (mips_ldst_scaled_shift): Likewise.
5179         (mips_expand_vec_cond_expr): Likewise.
5180         * config/mips/mips.c (enum mips_builtin_type): Add
5181         MIPS_BUILTIN_MSA_TEST_BRANCH.
5182         (mips_gen_const_int_vector_shuffle): New prototype.
5183         (mips_const_vector_bitimm_set_p): New function.
5184         (mips_const_vector_bitimm_clr_p): Likewise.
5185         (mips_const_vector_same_val_p): Likewise.
5186         (mips_const_vector_same_bytes_p): Likewise.
5187         (mips_const_vector_same_int_p): Likewise.
5188         (mips_const_vector_shuffle_set_p): Likewise.
5189         (mips_symbol_insns): Forbid loading symbols via immediate for
5190         MSA.
5191         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
5192         stores.
5193         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
5194         MSA.
5195         (mips_lx_address_p): Add support load indexed address for MSA.
5196         (mips_address_insns): Add calculation of instructions needed for
5197         stores and loads for MSA.
5198         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
5199         CONST_VECTOR for MSA and let it fall through.
5200         (mips_ldst_scaled_shift): New function.
5201         (mips_subword_at_byte): Likewise.
5202         (mips_msa_idiv_insns): Likewise.
5203         (mips_legitimize_move): Validate MSA moves.
5204         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
5205         calculation of costs for MSA division.
5206         (mips_split_move_p): Check if MSA moves need splitting.
5207         (mips_split_move): Split MSA moves if necessary.
5208         (mips_split_128bit_move_p): New function.
5209         (mips_split_128bit_move): Likewise.
5210         (mips_split_msa_copy_d): Likewise.
5211         (mips_split_msa_insert_d): Likewise.
5212         (mips_split_msa_fill_d): Likewise.
5213         (mips_output_move): Handle MSA moves.
5214         (mips_expand_msa_branch): New function.
5215         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
5216         Reinstate 'y' modifier.
5217         (mips_file_start): Add MSA .gnu_attribute.
5218         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
5219         FPRs.
5220         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
5221         (mips_class_max_nregs): Add register size for MSA supported mode.
5222         (mips_cannot_change_mode_class): Allow conversion between MSA
5223         vector modes and TImode.
5224         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
5225         instruction.
5226         (mips_secondary_reload_class): Force MSA loads/stores via memory.
5227         (mips_preferred_simd_mode): Add preffered modes for MSA.
5228         (mips_vector_mode_supported_p): Add MSA supported modes.
5229         (mips_autovectorize_vector_sizes): New function.
5230         (mips_msa_output_division): Likewise.
5231         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
5232         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
5233         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
5234         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
5235         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
5236         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
5237         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
5238         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
5239         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
5240         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
5241         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
5242         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
5243         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
5244         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
5245         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
5246         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
5247         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
5248         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
5249         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
5250         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
5251         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
5252         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
5253         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
5254         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
5255         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
5256         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
5257         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
5258         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
5259         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
5260         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
5261         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
5262         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
5263         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
5264         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
5265         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
5266         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
5267         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
5268         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
5269         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
5270         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
5271         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
5272         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
5273         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
5274         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
5275         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
5276         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
5277         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
5278         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
5279         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
5280         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
5281         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
5282         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
5283         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
5284         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
5285         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
5286         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
5287         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
5288         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
5289         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
5290         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
5291         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
5292         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
5293         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
5294         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
5295         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
5296         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
5297         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
5298         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
5299         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
5300         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
5301         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
5302         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
5303         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
5304         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
5305         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
5306         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
5307         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
5308         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
5309         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
5310         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
5311         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
5312         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
5313         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
5314         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
5315         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
5316         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
5317         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
5318         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
5319         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
5320         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
5321         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
5322         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
5323         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
5324         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
5325         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
5326         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
5327         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
5328         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
5329         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
5330         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
5331         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
5332         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
5333         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
5334         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
5335         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
5336         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
5337         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
5338         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
5339         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
5340         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
5341         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
5342         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
5343         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
5344         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
5345         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
5346         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
5347         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
5348         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
5349         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
5350         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
5351         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
5352         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
5353         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
5354         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
5355         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
5356         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
5357         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
5358         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
5359         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
5360         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
5361         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
5362         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
5363         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
5364         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
5365         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
5366         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
5367         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
5368         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
5369         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
5370         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
5371         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
5372         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
5373         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
5374         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
5375         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
5376         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
5377         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
5378         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
5379         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
5380         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
5381         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
5382         move_v builtins.
5383         (mips_get_builtin_decl_index): New array.
5384         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
5385         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
5386         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
5387         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
5388         (mips_init_builtins): Initialize mips_get_builtin_decl_index
5389         array.
5390         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
5391         hook.
5392         (mips_expand_builtin_insn): Prepare operands for
5393         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
5394         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
5395         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
5396         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
5397         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
5398         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
5399         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
5400         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
5401         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
5402         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
5403         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
5404         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
5405         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
5406         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
5407         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
5408         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
5409         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
5410         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
5411         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
5412         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
5413         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
5414         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
5415         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
5416         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
5417         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
5418         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
5419         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
5420         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
5421         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
5422         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
5423         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
5424         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
5425         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
5426         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
5427         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
5428         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
5429         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
5430         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
5431         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
5432         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
5433         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
5434         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
5435         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
5436         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
5437         These are set implicitly and an error is reported if overridden.
5438         (mips_expand_builtin_msa_test_branch): New function.
5439         (mips_expand_msa_shuffle): Likewise.
5440         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
5441         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
5442         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
5443         (mips_expand_vec_unpack): Add support for MSA.
5444         (mips_expand_vector_init): Likewise.
5445         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
5446         instead of const0_rtx.
5447         (mips_msa_vec_parallel_const_half): New function.
5448         (mips_gen_const_int_vector): Likewise.
5449         (mips_gen_const_int_vector_shuffle): Likewise.
5450         (mips_expand_msa_cmp): Likewise.
5451         (mips_expand_vec_cond_expr): Likewise.
5452         * config/mips/mips.h
5453         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
5454         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
5455         specified.
5456         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
5457         (ISA_HAS_MSA): New macro.
5458         (UNITS_PER_MSA_REG): Likewise.
5459         (BITS_PER_MSA_REG): Likewise.
5460         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
5461         (MSA_REG_FIRST): New macro.
5462         (MSA_REG_LAST): Likewise.
5463         (MSA_REG_NUM): Likewise.
5464         (MSA_REG_P): Likewise.
5465         (MSA_REG_RTX_P): Likewise.
5466         (MSA_SUPPORTED_MODE_P): Likewise.
5467         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
5468         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
5469         * config/mips/mips.md: Include mips-msa.md.
5470         (alu_type): Add simd_add.
5471         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
5472         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
5473         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
5474         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
5475         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
5476         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
5477         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
5478         simd_move, simd_load, simd_store.  Choose "multi" for moves
5479         for "qword_mode".
5480         (qword_mode): New attribute.
5481         (insn_count): Add instruction count for quad moves.
5482         Increase the count for MIPS SIMD division.
5483         (UNITMODE): Add UNITMODEs for vector types.
5484         (addsub): New code iterator.
5485         * config/mips/mips.opt (mmsa): New option.
5486         * config/mips/msa.h: New file.
5487         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
5488         specified.
5489         * config/mips/mti-linux.h: Likewise.
5490         * config/mips/predicates.md
5491         (const_msa_branch_operand): New constraint.
5492         (const_uimm3_operand): Likewise.
5493         (const_uimm4_operand): Likewise.
5494         (const_uimm5_operand): Likewise.
5495         (const_uimm8_operand): Likewise.
5496         (const_imm5_operand): Likewise.
5497         (aq10b_operand): Likewise.
5498         (aq10h_operand): Likewise.
5499         (aq10w_operand): Likewise.
5500         (aq10d_operand): Likewise.
5501         (const_m1_operand): Likewise.
5502         (reg_or_m1_operand): Likewise.
5503         (const_exp_2_operand): Likewise.
5504         (const_exp_4_operand): Likewise.
5505         (const_exp_8_operand): Likewise.
5506         (const_exp_16_operand): Likewise.
5507         (const_vector_same_val_operand): Likewise.
5508         (const_vector_same_simm5_operand): Likewise.
5509         (const_vector_same_uimm5_operand): Likewise.
5510         (const_vector_same_uimm6_operand): Likewise.
5511         (const_vector_same_uimm8_operand): Likewise.
5512         (par_const_vector_shf_set_operand): Likewise.
5513         (reg_or_vector_same_val_operand): Likewise.
5514         (reg_or_vector_same_simm5_operand): Likewise.
5515         (reg_or_vector_same_uimm6_operand): Likewise.
5516         * doc/extend.texi (MIPS SIMD Architecture Functions): New
5517         section.
5518         * doc/invoke.texi (-mmsa): Document new option.
5519
5520 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5521
5522         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
5523         * configure: Regenerate.
5524         * config.in: Regenerate.
5525         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
5526         on -fvtable-verify.
5527         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
5528         (ENDFILE_VTV_SPEC): Define.
5529
5530 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
5531
5532         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
5533         registers in all interrupt handlers if necessary.
5534         (rl78_option_override): Add warning.
5535         (MUST_SAVE_MDUC_REGISTERS): New macro.
5536         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
5537         * config/rl78/rl78.c (check_mduc_usage): New function.
5538         (mduc_regs): New structure to hold MDUC register data.
5539         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
5540         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
5541         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
5542         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
5543         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
5544         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
5545
5546 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
5547
5548         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
5549         (tree-ssa-loop-niter.h): Ditto.
5550         (idx_within_array_bound, ref_within_array_bound): New functions.
5551         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
5552         Factor out check on writable base object to ...
5553         (base_object_writable): ... here.
5554
5555 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5556
5557         * config/arm/arm.md (probe_stack): Add modes to set source
5558         and destination.
5559
5560 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
5561
5562         * regrename.c (base_reg_class_for_rename): New static function.
5563         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
5564
5565 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
5566
5567         * cgraph.c (thunk_adjust): Export.
5568         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
5569         * cgraphunit.c (thunk_adjust): Export.
5570         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
5571         thunks.
5572         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
5573         inlinable.
5574         * tree-inline.c (expand_call_inline): Expand thunks inline.
5575
5576 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
5577
5578         PR target/70998
5579         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
5580         (*sse2_vd_cvtss2sd): Ditto.
5581         * config/i386/i386.md
5582         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
5583         Generate *sse2_vd_cvtsd2ss pattern.
5584         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
5585         Generate *sse2_vd_cvtss2sd pattern.
5586
5587 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
5588
5589         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
5590         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
5591         users.
5592
5593 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
5594
5595         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
5596         * config/sh/sh.c: Define and declare variables on first use throughout
5597         the file.
5598         (current_function_interrupt): Change to bool type.
5599         (frame_insn): Rename to emit_frame_insn and update users.
5600         (push_regs): Use bool for 'interrupt_handler' argument.
5601         (save_schedule_s): Remove.
5602         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
5603         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
5604         targetm.asm_out.unaligned_op.di.
5605         (gen_far_branch): Remove redundant forward declaration.
5606         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
5607         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
5608         (sh_set_return_address, sh_function_ok_for_sibcall,
5609         scavenge_reg): Update comments.
5610         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
5611         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
5612         (sh_attr_renesas_p): Remove unnecessary parentheses.
5613         (branch_dest): Simplify.
5614         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
5615         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
5616         (CUMULATIVE_ARGS): Change macro to typedef.
5617         (current_function_interrupt): Change to bool type.
5618         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
5619         Surround with __cplusplus ifdef.
5620         (sh_compare_op0, sh_compare_op1): Remove.
5621         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
5622
5623 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
5624
5625         * config/arm/arm.md: (arch): Add neon.
5626         (arch_enabled): Return yes for arch neon when TARGET_NEON.
5627         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
5628         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
5629         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
5630         attributes for alt renumbering.  Mark alt 3 as non-predicable.
5631         (thumb2_movdf_vfp): Likewise.
5632
5633 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
5634
5635         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
5636         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
5637         (*andqi_1): Add preferred_for_speed attribute to disparage
5638         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
5639         (*<code>qi_1): Ditto.
5640         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
5641         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
5642         (*ashlqi3_1): Ditto.
5643         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
5644         Add preferred_for_size attribute to disparage alternative 0 and
5645         preferred_for_speed attribute to disparage alternative 1 for
5646         TARGET_PARTIAL_REG_STALL targets.
5647
5648 2016-05-07  Tom de Vries  <tom@codesourcery.com>
5649
5650         PR tree-optimization/70956
5651         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
5652         def.
5653
5654 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
5655
5656         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
5657         * config/sh/sh.c (sh_cbranch_distance): Implement it.
5658         * config/sh/sh.md (branch_zero): Remove define_attr.
5659         (define_delay): Disable delay slot if branch distance is one insn.
5660
5661 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
5662
5663         * config/i386/i386.md (LEAMODE): New mode attribute.
5664         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
5665         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
5666         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
5667         operand 2 predicate.
5668         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
5669         (*lea<mode>_general_3): Ditto.
5670         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
5671
5672 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
5673
5674         * genmddump.c (main): Convert argv from char ** to const char **.
5675
5676 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
5677
5678         * coretypes.h (OVERRIDE): New macro.
5679         (FINAL): New macro.
5680
5681 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
5682
5683         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
5684         allow coalescing if the types are compatible.
5685
5686 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
5687
5688         * pass_manager.h (pass_manager::register_pass_name): New method.
5689         (pass_manager::get_pass_by_name): New method.
5690         (pass_manager::create_pass_tab): New method.
5691         (pass_manager::m_name_to_pass_map): New field.
5692         * passes.c (name_to_pass_map): Delete global in favor of field
5693         "m_name_to_pass_map" of pass_manager.
5694         (register_pass_name): Rename from a function to...
5695         (pass_manager::register_pass_name): ...this method, updating
5696         for renaming of global "name_to_pass_map" to field
5697         "m_name_to_pass_map".
5698         (create_pass_tab): Rename from a function to...
5699         (pass_manager::create_pass_tab): ...this method, updating
5700         for renaming of global "name_to_pass_map" to field.
5701         (get_pass_by_name): Rename from a function to...
5702         (pass_manager::get_pass_by_name): ...this method.
5703         (enable_disable_pass): Convert use of get_pass_by_name to
5704         a method call, locating the pass_manager singleton.
5705
5706 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
5707
5708         * genattr-common.c (main): Convert argv from char ** to const char **.
5709         * genattr.c (main): Likewise.
5710         * genattrtab.c (main): Likewise.
5711         * genautomata.c (initiate_automaton_gen): Likewise.
5712         (main): Likewise.
5713         * gencodes.c (main): Likewise.
5714         * genconditions.c (main): Likewise.
5715         * genconfig.c (main): Likewise.
5716         * genconstants.c (main): Likewise.
5717         * genemit.c (main): Likewise.
5718         * genenums.c (main): Likewise.
5719         * genextract.c (main): Likewise.
5720         * genflags.c (main): Likewise.
5721         * genmddeps.c (main): Likewise.
5722         * genopinit.c (main): Likewise.
5723         * genoutput.c (main): Likewise.
5724         * genpeep.c (main): Likewise.
5725         * genpreds.c (main): Likewise.
5726         * genrecog.c (main): Likewise.
5727         * gensupport.c (init_rtx_reader_args_cb): Likewise.
5728         (init_rtx_reader_args): Likewise.
5729         * gensupport.h (init_rtx_reader_args_cb): Likewise.
5730         (init_rtx_reader_args): Likewise.
5731         * gentarget-def.c (main): Likewise.
5732         * read-md.c (read_md_files): Likewise.
5733         * read-md.h (read_md_files): Likewise.
5734
5735 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
5736
5737         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
5738         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
5739         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
5740         Remove unused predicate.
5741         (register_and_not_fp_reg_operand): Ditto.
5742
5743 2016-05-06  Martin Liska  <mliska@suse.cz>
5744
5745         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
5746         instead of vec as the vector is local to the function.
5747
5748 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
5749
5750         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
5751         avx512bw alternative.
5752
5753         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
5754         before the ashr<mode>3 pattern.
5755
5756         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
5757         v instead of x in vex or maybe_vex alternatives, use
5758         maybe_evex instead of vex in prefix.
5759
5760         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
5761         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
5762         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
5763         in vex or maybe_vex alternatives, use maybe_evex instead of vex
5764         in prefix.
5765
5766         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
5767         v instead of x in vex or maybe_vex alternatives, use
5768         maybe_evex instead of vex in prefix.
5769
5770         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
5771         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
5772         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
5773         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
5774         alternatives, use maybe_evex instead of vex in prefix.
5775
5776         * config/i386/sse.md (vec_interleave_lowv4sf,
5777         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
5778         v instead of x in vex or maybe_vex alternatives, use
5779         maybe_evex instead of vex in prefix.
5780
5781         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
5782         v instead of x in vex or maybe_vex alternatives, use
5783         maybe_evex instead of vex in prefix.
5784
5785         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
5786         v constraint instead of x.
5787
5788 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
5789
5790         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
5791         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
5792         equality first.
5793
5794 2016-05-06  Richard Biener  <rguenther@suse.de>
5795
5796         PR tree-optimization/70948
5797         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5798         Properly clobber all fields of va_list for __builtin_va_start.
5799
5800 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
5801
5802         PR debug/70935
5803         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
5804         loop latch destination.
5805
5806 2016-05-06  Martin Liska  <mliska@suse.cz>
5807
5808         * tree-ssa-uninit.c: Apply manual changes
5809         to the GNU coding style.
5810         (prune_uninit_phi_opnds): Rename from
5811         prune_uninit_phi_opnds_in_unrealizable_paths.
5812
5813 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5814
5815         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
5816         mspace): Remove deprecated options.
5817         * doc/invoke.texi (SH options): Remove -mspace.
5818
5819 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5820
5821         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
5822
5823 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5824
5825         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
5826         corresponding combine split pattern.
5827
5828 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5829
5830         PR target/58219
5831         * config/sh/predicates.md (long_displacement_mem_operand): New.
5832         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
5833         Add movi20, movi20s alternatives.  Adjust length attribute for
5834         alternatives.
5835         (movsi_ie): Allow for any FPU.  Adjust length attribute for
5836         alternatives.
5837         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
5838         attribute for alternatives.
5839         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
5840         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
5841         length attribute for alternatives.
5842
5843 2016-05-06  Richard Biener  <rguenther@suse.de>
5844
5845         PR tree-optimization/70960
5846         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
5847
5848 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5849
5850         PR target/52933
5851         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
5852         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
5853
5854 2016-05-06  Marek Polacek  <polacek@redhat.com>
5855
5856         PR sanitizer/70875
5857         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
5858
5859 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5860
5861         PR target/54089
5862         * config/sh/sh.md (*rotcr): Add another variant.
5863
5864 2016-05-06  Richard Biener  <rguenther@suse.de>
5865
5866         PR middle-end/70931
5867         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
5868
5869 2016-05-06  Richard Biener  <rguenther@suse.de>
5870
5871         PR middle-end/70941
5872         * fold-const.c (split_tree): Always convert to the original type
5873         before negating.
5874
5875 2016-05-06  Richard Biener  <rguenther@suse.de>
5876
5877         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
5878         (fwprop_addr): Likewise.
5879
5880 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
5881
5882         PR target/70873
5883         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
5884         New prototype.
5885         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
5886         * config/i386/i386.md (push mem splitter): Use find_constant_src in
5887         the splitter condition.
5888         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
5889         the splitter condition.
5890         (FP float_extend load splitter): Ditto.
5891
5892 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
5893
5894         * config/i386/i386.md (peehole2 patterns): Change true_regnum
5895         to REGNO in all peephole2 patterns.
5896         (post-reload splitters): Change true_regnum to REGNO in
5897         post-reload splitters.
5898         (zero_extend splitters): Use general_reg_operand and
5899         nonimmediate_gr_operand predicates.
5900
5901 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
5902
5903         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
5904         v constraint instead of x.
5905
5906 2016-05-05  Alan Modra  <amodra@gmail.com>
5907
5908         PR target/68662
5909         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
5910         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
5911         TARGET_NO_FP_IN_TOC for -mrelocatable.
5912         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
5913         TARGET_RELOCATABLE test.
5914         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
5915         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
5916         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5917         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
5918         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
5919         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5920         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
5921         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
5922         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
5923         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
5924         Likewise.
5925         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
5926         (rs6000_stack_info): Likewise.
5927         (rs6000_elf_asm_out_constructor): Likewise.
5928         (rs6000_elf_asm_out_destructor): Likewise.
5929         (rs6000_elf_declare_function_name): Likewise.
5930         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
5931         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
5932         Don't define.
5933
5934 2016-05-05  Alan Modra  <amodra@gmail.com>
5935
5936         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
5937
5938 2016-05-05  Alan Modra  <amodra@gmail.com>
5939
5940         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
5941         out-of-line gpr restore for one or two regs if that would add
5942         a save of lr.
5943
5944 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
5945
5946         PR target/70873
5947         * config/i386/i386.md
5948         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
5949         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
5950         as operand 0 predicate.
5951         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
5952         Ditto.
5953         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
5954         Ditto.  Emit the pattern using RTX.
5955
5956         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
5957         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
5958         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
5959         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
5960         Ditto.
5961         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
5962         sse_reg_operand as operand 0 predicate.
5963
5964         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
5965         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
5966         instead of gen_rtx_REG.
5967         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
5968         Ditto.
5969
5970 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
5971
5972         * function.c (emit_use_return_register_into_block): Delete.
5973         (gen_return_pattern): Delete.
5974         (emit_return_into_block): Delete.
5975         (active_insn_between): Delete.
5976         (convert_jumps_to_returns): Delete.
5977         (emit_return_for_exit): Delete.
5978         (thread_prologue_and_epilogue_insns): Delete all code dealing with
5979         simple_return for shrink-wrapped blocks.
5980         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
5981         end of blocks that need one.
5982         (get_unconverted_simple_return): Delete.
5983         (convert_to_simple_return): Delete.
5984         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
5985         (convert_to_simple_return): Ditto.
5986
5987 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
5988
5989         * cfgcleanup.c (bb_is_just_return): New function.
5990         (try_optimize_cfg): Simplify jumps to return, branches to return,
5991         and branches around return.
5992
5993 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
5994
5995         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
5996         branch to a return.
5997
5998 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
5999
6000         PR c++/70906
6001         PR c++/70933
6002         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
6003         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
6004         assert flags & OEP_HASH_CHECK, instead of asserting it
6005         never happens.  Handle TARGET_EXPR.
6006         * fold-const.c (operand_equal_p): For hash verification,
6007         or in OEP_HASH_CHECK into flags.
6008
6009 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
6010
6011         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
6012         comment.
6013         (compute_samebase_partition_bases): Fix typo.
6014
6015 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
6016
6017         * config/i386/sse.md (vec_interleave_highv8sf,
6018         vec_interleave_lowv8sf, vec_interleave_highv4df,
6019         vec_interleave_lowv4df): Remove constraints from expanders.
6020
6021         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
6022
6023 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
6024
6025         * tree-inline.c (expand_call_inline): Fix path dealing with
6026         making lhs of call statement undefined.
6027
6028 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
6029
6030         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
6031         Check availability on NODE, too.
6032         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
6033         (cgraph_node::call_for_symbol_and_aliases): Likewise.
6034         (varpool_node::call_for_symbol_and_aliase): Likewise.
6035         * ipa-pure-const.c (add_new_function): Analyze all bodies.
6036         (propagate_pure_const): Propagate across interposable functions, too.
6037         (skip_function_for_local_pure_const): Do not skip interposable bodies
6038         with aliases.
6039         (pass_local_pure_const::execute): Update.
6040
6041 2016-05-04  Marek Polacek  <polacek@redhat.com>
6042
6043         * doc/invoke.texi: Document -Wdangling-else.
6044
6045 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6046
6047         * config.gcc: Error out when conflicting multilib is detected.  Do not
6048         loop over multilibs since no combination is legal.
6049
6050 2016-05-04  Alan Modra  <amodra@gmail.com>
6051
6052         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
6053         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
6054         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
6055         Align .toc.
6056
6057 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
6058
6059         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
6060         Clean up p5600 comments.
6061
6062 2016-05-04  Richard Biener  <rguenther@suse.de>
6063
6064         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
6065         constructor simplifications.
6066         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
6067
6068 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
6069
6070         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
6071         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
6072         result.set_rtx is null instead of aborting.
6073         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
6074         Always enable.
6075         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
6076         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
6077         *mov<mode>_store_postinc): New patterns.
6078
6079 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
6080
6081         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
6082         as commutative.  Check both conversions are NOP.
6083         ((A & B) OP (C & B)): Remove.
6084
6085 2016-05-04  Alan Modra  <amodra@gmail.com>
6086
6087         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
6088
6089 2016-05-04  Alan Modra  <amodra@gmail.com>
6090
6091         PR target/70866
6092         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
6093         when cr2,3,4 are all fixed regs.
6094
6095 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
6096
6097         PR rtl-optimization/57193
6098         * opts.c (default_options_table): Revert OPT_frename_registers change.
6099         * doc/invoke.texi (-frename-registers, -O2): Likewise.
6100
6101 2016-05-03  Martin Sebor  <msebor@redhat.com>
6102
6103         PR c++/66561
6104         * builtins.c (fold_builtin_FILE): New function.
6105         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
6106         (fold_builtin_0): Call them.
6107         * gimplify.c (gimplify_call_expr): Remove the handling of
6108         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
6109
6110         PR c++/66561
6111         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
6112         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
6113         constants.
6114
6115         PR c++/66639
6116         * doc/extend.texi (Function Names as Strings): Update __func__,
6117         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
6118         constants.
6119
6120 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
6121             Richard Biener  <rguenther@suse.de>
6122
6123         PR tree-optimization/70916
6124         * tree-if-conv.c: Include cfganal.h.
6125         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
6126         and remove_fake_exit_edges around the optimization pass.
6127
6128 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
6129
6130         * cgraph.c (symbol_table::create_edge): Set inline_failed.
6131         (cgraph_edge::make_direct): Likewise.
6132         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
6133         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
6134         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
6135         (CIF_THUNK): New code.
6136         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
6137         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
6138         (compute_inline_parameters): Set inline_failed for thunks.
6139         (inline_analyze_function): Cleanup.
6140         * ipa-inline.c (can_inline_edge_p): Do not deal with
6141         call_stmt_cannot_inline_p.
6142         (can_early_inline_edge_p): Likewise.
6143         (early_inliner): Initialize inline_failed.
6144         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
6145
6146 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
6147
6148         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
6149         from nonimm_ssenomem_operand.
6150         (nonimm_ssenomem_operand): New predicate.
6151         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
6152         as operand 0 predicate.
6153         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
6154         Disable unsupported alternatives using "enabled" attribute.
6155         Use register_ssemem_operand as operand 0 predicate.
6156         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
6157
6158 2016-05-03  Marek Polacek  <polacek@redhat.com>
6159
6160         PR c/70859
6161         * input.c (expansion_point_location): New function.
6162         * input.h (expansion_point_location): Declare.
6163
6164 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
6165
6166         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
6167         occurence with frame_offset_ ones.
6168
6169 2016-05-03  Alan Modra  <amodra@gmail.com>
6170
6171         PR rtl-optimization/70890
6172         * ira.c (combine_and_move_insns): When moving def_insn, remove
6173         equivs on use_insn.
6174
6175 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6176
6177         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
6178         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
6179         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
6180         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
6181
6182 2016-05-03  Alan Modra  <amodra@gmail.com>
6183
6184         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
6185         for SAVE_MULTIPLE/STORE_MULTIPLE.
6186
6187 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
6188
6189         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
6190         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
6191
6192 2016-05-03  Richard Biener  <rguenther@suse.de>
6193
6194         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
6195         default true.
6196         (gimplify_arg): Likewise.
6197         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
6198         re-writing the result to a decl if required.
6199         (internal_get_tmp_var): Add allow_ssa parameter
6200         and override into_ssa with it.
6201         (get_formal_tmp_var): Adjust.
6202         (get_initialized_tmp_var): Add allow_ssa parameter.
6203         (gimplify_arg): Add allow_ssa parameter and avoid generating
6204         SSA names for the result false.
6205         (gimplify_call_expr): If the call may return twice do not
6206         gimplify parameters into SSA.
6207         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
6208         (gimplify_modify_expr): Adjust assert.  For noreturn calls
6209         with a SSA name LHS adjust its def.
6210         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
6211         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
6212         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
6213         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
6214         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
6215         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
6216         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
6217         (optimize_target_teams): Do not allow SSA names for clause operands.
6218         (gimplify_expr): Likewise for where we mark the result addressable.
6219         * passes.def (pass_init_datastructures): Remove.
6220         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
6221         (rewrite_stmt): Likewise.
6222         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
6223         (replace_locals_op): Replace SSA names.
6224         (copy_gimple_seq_and_replace_locals): Init src_cfun.
6225         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
6226         * cgraph.c (release_function_body): Free CFG annotations only
6227         when we have a CFG.  Simplify.
6228         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
6229         force_gimple_operand instead of get_initialized_tmp_var.
6230         * tree-pass.h (make_pass_init_datastructures): Remove.
6231         * tree-ssa.c (execute_init_datastructures): Remove.
6232         (pass_data_init_datastructures): Likewise.
6233         (class pass_init_datastructures): Likewise.
6234         (make_pass_init_datastructures): Likewise.
6235         * omp-low.c (create_omp_child_function): Init SSA data structures.
6236         (grid_expand_target_grid_body): Likewise.
6237         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
6238         name before adding it to names_to_release.
6239         (remove_bb): Always release SSA defs.
6240         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
6241         before dereferencing it.
6242         * cgraphunit.c (init_lowered_empty_function): Always
6243         int SSA data structures.
6244         * tree-ssanames.c (release_defs): Remove assert that we are in
6245         SSA form.
6246         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
6247
6248 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
6249             Uros Bizjak  <ubizjak@gmail.com>
6250
6251         PR rtl-optimization/70467
6252         * config/i386/predicates.md (x86_64_hilo_int_operand,
6253         x86_64_hilo_general_operand): New predicates.
6254         * config/i386/constraints.md (Wd): New constraint.
6255         * config/i386/i386.md (mode attr di): Use Wd instead of e.
6256         (general_hilo_operand): New mode attr.
6257         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
6258         instead of <general_operand>.
6259         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
6260         x86_64_hilo_general_operand instead of <general_operand>.
6261
6262 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
6263
6264         PR tree-optimization/70916
6265         * tree-if-conv.c (constant_or_ssa_name): Removed.
6266         (fold_build_cond_expr): Use is_gimple_val instead of
6267         constant_or_ssa_name.
6268
6269         PR tree-optimization/70916
6270         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
6271         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
6272
6273         PR target/49244
6274         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
6275         (optimize_atomic_bit_test_and): New function.
6276         (pass_fold_builtins::execute): Use it.
6277         * optabs.def (atomic_bit_test_and_set_optab,
6278         atomic_bit_test_and_complement_optab,
6279         atomic_bit_test_and_reset_optab): New optabs.
6280         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
6281         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
6282         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
6283         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
6284         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
6285         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
6286         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
6287         * doc/md.texi (atomic_bit_test_and_set@var{mode},
6288         atomic_bit_test_and_complement@var{mode},
6289         atomic_bit_test_and_reset@var{mode}): Document.
6290         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
6291         atomic_bit_test_and_complement<mode>,
6292         atomic_bit_test_and_reset<mode>): New expanders.
6293         (atomic_bit_test_and_set<mode>_1,
6294         atomic_bit_test_and_complement<mode>_1,
6295         atomic_bit_test_and_reset<mode>_1): New insns.
6296
6297 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
6298
6299         PR rtl-optimization/70687
6300         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
6301         instead of unsigned HOST_WIDE_INT.
6302
6303 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
6304
6305         PR rtl-optimization/44281
6306         * hard-reg-set.h (struct target_hard_regs): New field
6307         x_fixed_nonglobal_reg_set.
6308         (fixed_nonglobal_reg_set): New macro.
6309         * reginfo.c (init_reg_sets_1): Initialize it.
6310         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
6311         of fixed_reg_set.
6312         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
6313
6314 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
6315
6316         PR tree-optimization/56541
6317         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
6318         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
6319         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
6320         (any_complicated_phi): new static variable.
6321         (aggressive_if_conv): delete.
6322         (if_convertible_phi_p): support phis with more than two arguments.
6323         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
6324         critical pred edges.
6325         (ifcvt_split_critical_edges): support phis with more than two
6326         arguments by checking new parameter.  only split critical edges
6327         if needed.
6328         (tree_if_conversion): handle simd pragma marked loop using new
6329         local variable aggressive_if_conv.  check any_complicated_phi.
6330
6331 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
6332
6333         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
6334         before using it.
6335
6336 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
6337
6338         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
6339         cbase.
6340
6341 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
6342
6343         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
6344         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
6345         define_insn_and_split.
6346         (mulsi3_i): New define_insn_and_split.
6347         (mulsi3_call): Convert to define_insn.
6348         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
6349         Remove constraints.
6350
6351 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
6352
6353         * machmode.h (mode_complex): Add support to give the complex mode
6354         for a given mode.
6355         (GET_MODE_COMPLEX_MODE): Likewise.
6356         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
6357         stored by build_complex_type and gfc_build_complex_type instead of
6358         trying to figure out the appropriate mode based on the size. Raise
6359         an assertion error, if the type was not set.
6360         * genmodes.c (struct mode_data): Add field for the complex type of
6361         the given type.
6362         (blank_mode): Likewise.
6363         (make_complex_modes): Remember the complex mode created in the
6364         base type.
6365         (emit_mode_complex): Write out the mode_complex array to map a
6366         type mode to the complex version.
6367         (emit_insn_modes_c): Likewise.
6368         * tree.c (build_complex_type): Set the complex type to use before
6369         calling layout_type.
6370         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
6371         support for __float128 complex datatypes.
6372         (rs6000_hard_regno_mode_ok): Likewise.
6373         (rs6000_setup_reg_addr_masks): Likewise.
6374         (rs6000_complex_function_value): Likewise.
6375         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
6376         __float128 and __ibm128 complex.
6377         (FLOAT128_IBM_P): Likewise.
6378         (ALTIVEC_ARG_MAX_RETURN): Likewise.
6379         * doc/extend.texi (Additional Floating Types): Document that
6380         -mfloat128 must be used to enable __float128.  Document complex
6381         __float128 and __ibm128 support.
6382
6383 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
6384
6385         PR target/49244
6386         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
6387         char/short arguments promoted to int because of promote_prototypes.
6388
6389 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
6390
6391         * config/i386/predicates.md (register_ssemem_operand): New predicate.
6392         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
6393         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
6394         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
6395         alternatives using "enabled" attribute.  Use register_ssemem_operand
6396         as operand 1 predicate.
6397         (*cmpi<unord>xf_i387): Split XFmode pattern from
6398         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
6399         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
6400         *absneg<mode>2_i387.  Disable unsupported alternatives using
6401         "enabled" attribute.
6402         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
6403
6404 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
6405
6406         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
6407         marker.
6408         (oacc_loop_process): Check mask for loop termination.
6409
6410 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
6411
6412         * cif-code.def (CIF_THUNK): Add.
6413         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
6414         accidental change.
6415
6416 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
6417
6418         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
6419         (dump_inline_summary): Dump it.
6420         (fp_expression_p): New predicate.
6421         (estimate_function_body_sizes): Use it.
6422         (inline_merge_summary): Merge fp_expressions.
6423         (inline_read_section): Read fp_expressions.
6424         (inline_write_summary): Write fp_expressions.
6425         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
6426         codegen boundary if either caller or callee is !fp_expressions.
6427         * ipa-inline.h (inline_summary): Add fp_expressions.
6428         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
6429         to fp_expressions be sure the fp generation flags are updated.
6430
6431 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
6432
6433         PR rtl-optimization/70467
6434         * cse.c (cse_insn): Handle no-op MEM moves after folding.
6435
6436         PR rtl-optimization/70467
6437         * ipa-pure-const.c (check_call): Handle internal calls even in
6438         ipa mode like in local mode.
6439
6440 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6441
6442         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
6443
6444 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
6445
6446         * match.pd (X u< X, X u> X): New transformations.
6447
6448 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
6449
6450         * flag-types.h (enum warn_strict_overflow_code): Move ...
6451         * coretypes.h: ... here.
6452         * fold-const.h (fold_overflow_warning): Declare.
6453         * fold-const.c (fold_overflow_warning): Make non-static.
6454         (fold_comparison): Move the transformation of X +- C1 CMP C2
6455         into X CMP C2 -+ C1 ...
6456         * match.pd: ... here.
6457         * gimple-fold.c (fold_stmt_1): Protect with
6458         fold_defer_overflow_warnings.
6459
6460 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
6461
6462         * omp-low.c (struct oacc_loop): Add 'inner' field.
6463         (new_oacc_loop_raw): Initialize it to zero.
6464         (oacc_loop_fixed_partitions): Initialize it.
6465         (oacc_loop_auto_partitions): Partition outermost loop to outermost
6466         available partitioning.
6467
6468 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
6469
6470         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
6471         register_operand.
6472         (umulsidi3): Likewise.
6473         (indirect_jump): Fix jump instruction assembly patterns.
6474
6475 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
6476
6477         PR target/70860
6478         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
6479         (nvptx_function_value): Assert non-NULL cfun.
6480
6481 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
6482
6483         PR rtl-optimization/70886
6484         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
6485
6486         * cselib.h (rtx_equal_for_cselib_1): Declare.
6487         (rtx_equal_for_cselib_p: New inline function.
6488         * cselib.c (rtx_equal_for_cselib_p): Delete.
6489         (rtx_equal_for_cselib_1): Make public.
6490
6491 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
6492
6493         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
6494         (register_mixssei387nonimm_operand): Remove predicate.
6495         * config/i386/i386.md (*fop_<mode>_comm): Merge from
6496         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
6497         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
6498         for TARGET_MIX_SSE_I387 alternatives.
6499         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
6500         Disable unsupported alternatives using "enabled" attribute.  Use
6501         nonimm_ssenomem_operand as operand 1 predicate.  Also check
6502         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
6503
6504 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
6505
6506         * tree.c (cst_and_fits_in_hwi): Simplify.
6507
6508 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
6509
6510         * tree.h (wi::to_wide): New function.
6511         * expr.c (expand_expr_real_1): Use wi::to_wide.
6512         * fold-const.c (int_const_binop_1): Likewise.
6513         (extract_muldiv_1): Likewise.
6514
6515 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
6516
6517         * wide-int.h: Update offset_int and widest_int documentation.
6518         (WI_SIGNED_SHIFT_RESULT): New macro.
6519         (wi::binary_shift): Define signed_shift_result_type for
6520         shifts on offset_int- and widest_int-like types.
6521         (generic_wide_int): Support <<= and >>= if << and >> are supported.
6522         * tree.h (int_bit_position): Use shift operators instead of wi::
6523          shifts.
6524         * alias.c (adjust_offset_for_component_ref): Likewise.
6525         * expr.c (get_inner_reference): Likewise.
6526         * fold-const.c (fold_comparison): Likewise.
6527         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
6528         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
6529         * tree-dfa.c (get_ref_base_and_extent): Likewise.
6530         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6531         (stmt_kills_ref_p): Likewise.
6532         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
6533         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
6534         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6535         (ao_ref_init_from_vn_reference): Likewise.
6536
6537 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
6538
6539         * wide-int.h: Update offset_int and widest_int documentation.
6540         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
6541         (wi::binary_traits): Allow ordered comparisons between offset_int and
6542         offset_int, between widest_int and widest_int, and between either
6543         of these types and basic C types.
6544         (operator <, <=, >, >=): Define for the same combinations.
6545         * tree.h (tree_int_cst_lt): Use comparison operators instead
6546         of wi:: comparisons.
6547         (tree_int_cst_le): Likewise.
6548         * gimple-fold.c (fold_array_ctor_reference): Likewise.
6549         (fold_nonarray_ctor_reference): Likewise.
6550         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
6551         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
6552         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
6553         * tree-sra.c (completely_scalarize): Likewise.
6554         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
6555         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
6556         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
6557         (check_for_binary_op_overflow): Likewise.
6558         (search_for_addr_array): Likewise.
6559         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
6560
6561 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
6562
6563         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
6564         (arc_save_restore): Likewise.
6565         (arc_dwarf_register_span): Likewise.
6566         (arc_output_pic_addr_const): Initialize suffix variable.
6567
6568 2016-05-02  Martin Liska  <mliska@suse.cz>
6569
6570         * symbol-summary.h (function_summary::function_summary):
6571         Remove checking assert for all cgraph nodes.
6572         (function_summary::get): Check summary_uid.
6573         (symtab_insertion): Check summary_uid.
6574
6575 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
6576
6577         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
6578         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
6579         bmaskn instruction.
6580         (arc_dwarf_register_span): Remove enum keyword.
6581         (compact_memory_operand_p): New function.
6582         * config/arc/arc.h (reg_class): Add code density register classes.
6583         (REG_CLASS_NAMES): Likewise.
6584         (REG_CLASS_CONTENTS): Likewise.
6585         * config/arc/arc.md (*movqi_insn): Add code density instructions.
6586         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
6587         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
6588         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
6589         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
6590         constraints.
6591         (h, Rcd, Rsd, Rzd): New register constraints.
6592         (T): Use compact_memory_operand_p function.
6593         * config/arc/predicates.md (compact_load_memory_operand): Remove.
6594
6595 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
6596
6597         * config/sh/sh.md (*negnegt, *movtt): Remove.
6598
6599 2016-05-02  Marek Polacek  <polacek@redhat.com>
6600             Tom de Vries  <tom@codesourcery.com>
6601
6602         PR tree-optimization/70700
6603         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
6604         bigger than FIRST_REF_NODE.
6605
6606 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
6607
6608         PR target/52898
6609         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
6610         TARGET_CMPEQDI_T.
6611         (prepare_cbranch_operands): Don't use scratch register.  Assume that
6612         function is used when pseudos can be created.
6613         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
6614         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
6615         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
6616         define_expand.  Allow it only when pseudos can be created.
6617         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
6618
6619 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
6620
6621         * config/i386/constraints.md (BC): Only allow -1 operands.
6622         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
6623         Add "enabled" attribute.  Update XI mode attribute calculation.
6624         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
6625         (*movoi_internal_avx): Update XI mode attribute calculation.
6626         (*movti_internal): Ditto.
6627
6628 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
6629
6630         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
6631         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
6632
6633 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
6634
6635         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
6636         statement on instruction code.  Remove trailing spaces.
6637         (altivec_expand_stv_builtin): Likewise.
6638
6639 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
6640
6641         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
6642         (TARGET_FPU_DOUBLE): Simplify.
6643         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
6644         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
6645         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
6646         with 'TARGET_FPU_DOUBLE'.
6647         * config/sh/sh.md: Likewise.
6648
6649 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
6650
6651         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
6652         SH_DIV_STR_FOR_SIZE): Remove.
6653         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
6654         SH_DIV_STR_FOR_SIZE): Remove.
6655
6656 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
6657
6658         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
6659         logical_reg_operand): Delete.
6660         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
6661         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
6662         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
6663         match_operand and match_test.
6664         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
6665         variables on their first use.  Return bool values.
6666         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
6667         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
6668         arith_reg_operand for input operand.  Remove empty constraints.
6669         (xorsi3): Delete.
6670         (*xorsi3_compact): Rename to xorsi3.
6671         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
6672         (*zero_extend<mode>si2_disp_mem): Update comment.
6673         (mov_nop): Delete.
6674
6675 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
6676
6677         * config/sh/t-sh: Remove SH5 support.
6678         * config.gcc: Likewise.
6679         * configure: Likewise.
6680
6681 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6682
6683         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
6684
6685 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
6686
6687         * config/sh/sh.c (register_sh_passes, sh_option_override,
6688         sh_print_operand, prepare_move_operands,
6689         sh_can_follow_jump): Remove TARGET_SH1 checks.
6690         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
6691         PROMOTE_MODE): Likewise.
6692         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
6693         movdi): Likewise.
6694
6695 2016-04-30  Alan Modra  <amodra@gmail.com>
6696
6697         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
6698         restoring when fixed_reg_p, but allow out-of-line or stmw save.
6699         Check for user regs later to avoid unnecessary looping over regs.
6700         Merge user reg check with non-saved reg check.  Don't force
6701         inline VR restore when static chain used.
6702         (rs6000_frame_related): Omit eh_frame info for user regs when
6703         saving.
6704         (fixed_regs_p): Delete.
6705
6706 2016-04-30  Alan Modra  <amodra@gmail.com>
6707
6708         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
6709         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
6710         Update all uses.
6711
6712 2016-04-30  Alan Modra  <amodra@gmail.com>
6713
6714         PR target/69645
6715         * config/rs6000/rs6000.c (fixed_reg_p): New function.
6716         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
6717         Update all uses.
6718
6719 2016-04-30  Alan Modra  <amodra@gmail.com>
6720
6721         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
6722         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
6723         flag_pic test for Darwin.
6724
6725 2016-04-30  Alan Modra  <amodra@gmail.com>
6726
6727         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
6728         throw_calls_crossed.
6729         (REG_FREQ_CALLS_CROSSED): Delete.
6730         (REG_N_THROWING_CALLS_CROSSED): Delete.
6731         * regstat.c (regstat_bb_compute_ri): Don't calculate
6732         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
6733         (dump_reg_info): Don't print call cross frequency.
6734         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
6735         and REG_N_THROWING_CALLS_CROSSED.
6736
6737 2016-04-30  Alan Modra  <amodra@gmail.com>
6738
6739         * regs.h (struct reg_info_t): Delete live_length.
6740         (REG_LIVE_LENGTH): Delete macro.
6741         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
6742         local_live, local_processed and local_live_last_luid params.
6743         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
6744         Formatting fixes.
6745         (regstat_compute_ri): Adjust for above.  Don't set
6746         REG_LIVE_LENGTH.
6747         (dump_reg_info): Don't print live length.
6748         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
6749         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
6750         Localize loop_depth var.
6751
6752 2016-04-30  Alan Modra  <amodra@gmail.com>
6753
6754         * ira.c (enum valid_equiv): New.
6755         (validate_equiv_mem): Return enum.
6756         (update_equiv_mem): Create replacement in more cases.
6757         (add_store_equivs): Update validate_equiv_mem call.
6758
6759 2016-04-30  Alan Modra  <amodra@gmail.com>
6760
6761         * ira.c (combine_and_move_insns): Rather than scanning insns,
6762         use DF infrastucture to find use and def insns.
6763
6764 2016-04-30  Alan Modra  <amodra@gmail.com>
6765
6766         ira.c (combine_and_move_insns): Move invariant conditions..
6767         (ira.c): ..to here.  Call combine_and_move_insns before
6768         add_store_equivs.  Call grow_reg_equivs later.  Allocate
6769         req_equiv later using max_reg_num() rather than global max_regno.
6770         (contains_replace_regs): Delete.
6771         (add_store_equivs): Remove contains_replace_regs test.
6772
6773 2016-04-30  Alan Modra  <amodra@gmail.com>
6774
6775         * ira.c (struct equiv_mem_data): New.
6776         (equiv_mem, equiv_mem_modified): Delete static vars.
6777         (validate_equiv_mem_from_store): Use "data" param to communicate..
6778         (validate_equiv_mem): ..from here.
6779
6780 2016-04-30  Alan Modra  <amodra@gmail.com>
6781
6782         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
6783         split out from..
6784         (update_reg_equivs): ..here.  Move allocation and freeing of
6785         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
6786         end_alias_analysis to..
6787         (ira): ..here.
6788
6789 2016-04-30  Alan Modra  <amodra@gmail.com>
6790
6791         * ira.c (pdx_subregs): Delete.
6792         (struct equivalence): Add pdx_subregs field.
6793         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
6794         pdx_subregs access.
6795         (update_equiv_regs): Don't create or free pdx_subregs.  Update
6796         pdx_subregs access.
6797
6798 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6799
6800         * config/rs6000/altivec.h: Change definitions of vec_xl and
6801         vec_xst.
6802         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
6803         (LD_ELEMREV_V2DI): New.
6804         (LD_ELEMREV_V4SF): New.
6805         (LD_ELEMREV_V4SI): New.
6806         (LD_ELEMREV_V8HI): New.
6807         (LD_ELEMREV_V16QI): New.
6808         (ST_ELEMREV_V2DF): New.
6809         (ST_ELEMREV_V2DI): New.
6810         (ST_ELEMREV_V4SF): New.
6811         (ST_ELEMREV_V4SI): New.
6812         (ST_ELEMREV_V8HI): New.
6813         (ST_ELEMREV_V16QI): New.
6814         (XL): New.
6815         (XST): New.
6816         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6817         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
6818         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
6819         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
6820         (altivec_expand_builtin): Add handling for
6821         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
6822         (rs6000_invalid_builtin): Add error-checking for
6823         RS6000_BTM_P9_VECTOR.
6824         (altivec_init_builtins): Define builtins used to implement vec_xl
6825         and vec_xst.
6826         (rs6000_builtin_mask_names): Define power9-vector.
6827         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
6828         (RS6000_BTM_P9_VECTOR): Define.
6829         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
6830         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
6831         (vsx_ld_elemrev_v2df): Likewise.
6832         (vsx_ld_elemrev_v4sf): Likewise.
6833         (vsx_ld_elemrev_v4si): Likewise.
6834         (vsx_ld_elemrev_v8hi): Likewise.
6835         (vsx_ld_elemrev_v16qi): Likewise.
6836         (vsx_st_elemrev_v2df): Likewise.
6837         (vsx_st_elemrev_v2di): Likewise.
6838         (vsx_st_elemrev_v4sf): Likewise.
6839         (vsx_st_elemrev_v4si): Likewise.
6840         (vsx_st_elemrev_v8hi): Likewise.
6841         (vsx_st_elemrev_v16qi): Likewise.
6842         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
6843         grammar.
6844
6845 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
6846
6847         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
6848         out into ...
6849         (simplify_control_stmt_condition_1): ... here.  Recurse into
6850         BIT_AND_EXPRs and BIT_IOR_EXPRs.
6851
6852 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
6853
6854         PR target/69810
6855         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
6856         (zero_extendqi<mode>2_dot): Revert earlier conversion from
6857         define_insn_and_split to define_insn.
6858         (zero_extendqi<mode>2_dot2): Same.
6859         (extendqi<mode>2_dot): Same.
6860         (extendqi<mode>2_dot2): Same.
6861
6862 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
6863
6864         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
6865         (probe_stack): New expander.
6866         (probe_stack_<mode>): New insn pattern.
6867
6868 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
6869
6870         * config/i386/i386.md
6871         (operations with memory inputs setting flags peephole2):
6872         Remove uneeded REG_P checks.  Cleanup pattern generation.
6873
6874 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
6875
6876         * tree-vect-loop.c (vect_transform_loop): Fix
6877         nb_iterations_upper_bound computation for vectorized loop.
6878
6879 2016-04-29  Marek Polacek  <polacek@redhat.com>
6880             Jakub Jelinek  <jakub@redhat.com>
6881
6882         PR sanitizer/70342
6883         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
6884         TARGET_EXPR_SLOT as a base.
6885
6886 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
6887
6888         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
6889         with 'rCm2' constraints to limit possible immediate size.
6890         (*load_zeroextendqisi_update): Likewise.
6891         (*load_signextendqisi_update): Likewise.
6892         (*loadhi_update): Likewise.
6893         (*load_zeroextendhisi_update): Likewise.
6894         (*load_signextendhisi_update): Likewise.
6895         (*loadsi_update): Likewise.
6896         (*loadsf_update): Likewise.
6897
6898 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
6899
6900         * config/i386/predicates.md (constm1_operand): Fix comparison.
6901
6902 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
6903
6904         * testsuite/gcc.target/arc/ieee_eq.c: New test.
6905
6906 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
6907
6908         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
6909         remaining SH5 related settings.
6910         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
6911         shmedia_prepare_call_address): Delete.
6912         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
6913         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
6914         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
6915         UNSUPPORTED_SH2A): Remove m5 checks.
6916         (sh_divide_strategy_e): Remove SH5 division strategies.
6917         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
6918         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
6919
6920 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6921
6922         * config/s390/s390.c (s390_rtx_costs): Update documentation.
6923
6924 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6925
6926         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
6927         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
6928         Change lder to ldr.
6929         * config/s390/vector.md ("mov<mode>"): Likewise.
6930
6931 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
6932
6933         * config/s390/constraints.md ("U", "W"): Invoke
6934         s390_mem_constraint with "ZR" and "ZT".
6935         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
6936         addresses when using LRA.  Accept also short displacements for S
6937         and T constraints.  Do not check for long displacement target for
6938         S and T constraints.
6939         (s390_mem_constraint): Remove handling of U and W constraints.
6940         * config/s390/s390.md (various patterns): Remove the short
6941         displacement constraints (Q and R) if a long displacement
6942         constraint is present.  Add longdisp as required CPU capability.
6943         * config/s390/vector.md: Likewise.
6944         * config/s390/vx-builtins.md: Likewise.
6945
6946 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6947
6948         PR target/60040
6949         * reload1.c (reload): Call finish_spills before
6950         restarting reload loop. Skip select_reload_regs
6951         if update_eliminables_and_spill returns true.
6952
6953 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
6954
6955         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
6956         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
6957         (umulhisi3_imm): Update predicates and constraint letters.
6958         (umulhisi3_reg): Declare instruction as commutative.
6959         * config/arc/constraints.md (J12, J16): New constraints.
6960         * config/arc/predicates.md (short_unsigned_const_operand): New
6961         predicate.
6962         (arc_short_operand): Likewise.
6963         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
6964
6965 2016-04-29  Richard Biener  <rguenther@suse.de>
6966
6967         PR tree-optimization/13962
6968         PR tree-optimization/65686
6969         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
6970         * tree-ssa-alias.c (ptrs_compare_unequal): New function
6971         using PTA to compare pointers.
6972         * match.pd: Add pattern for pointer equality compare simplification
6973         using ptrs_compare_unequal.
6974
6975 2016-04-29  Richard Biener  <rguenther@suse.de>
6976
6977         * stor-layout.c (layout_type): Do not build a pointer-to-element
6978         type for arrays.
6979
6980 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
6981
6982         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
6983         Use SWI mode iterator.  Use general_reg_operand predicate.
6984         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
6985         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
6986         predicates.
6987
6988 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
6989
6990         PR middle-end/70843
6991         * fold-const.c (operand_equal_p): Don't verify hash value equality
6992         if arg0 == arg1.
6993         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
6994         and OMP_CLAUSE.
6995
6996 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
6997
6998         PR target/70858
6999         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
7000         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
7001         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
7002         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
7003         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
7004
7005 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
7006
7007         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
7008         to info.  Don't initialize separate fields to 0.  Clean up
7009         formatting a bit.
7010
7011 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
7012
7013         * config/i386/i386.md (peephole2s for operations with memory inputs):
7014         Use SWI mode iterator.
7015         (peephole2s for operations with memory outputs): Ditto.
7016         Do not check for stack checking probe.
7017
7018         (probe_stack): Remove expander.
7019
7020 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
7021             Andrew Burgess  <andrew.burgess@embecosm.com>
7022
7023         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
7024         operands as 32-bits.
7025
7026 2016-04-28  Jason Merrill  <jason@redhat.com>
7027
7028         * gdbinit.in: Skip line-map.h.
7029
7030 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
7031             Andrew Burgess  <andrew.burgess@embecosm.com>
7032
7033         * config/arc/arc.c (arc_conditional_register_usage): Take
7034         TARGET_RRQ_CLASS into account.
7035         (arc_print_operand): Support printing 'p' and 's' operands.
7036         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
7037         as 0.
7038         (TARGET_RRQ_CLASS): Define.
7039         (IS_POWEROF2_OR_0_P): Define.
7040         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
7041         alternatives.
7042         (*tst_movb): New define_insn.
7043         (*tst): Avoid recognition if it could prevent '*tst_movb'
7044         combination; replace c/CnL with c/Chs alternative.
7045         (*tst_bitfield_tst): New define_insn.
7046         (*tst_bitfield_asr): New define_insn.
7047         (*tst_bitfield): New define_insn.
7048         (andsi3_i): Add Rrq variant.
7049         (extzv): New define_expand.
7050         (insv): New define_expand.
7051         (*insv_i): New define_insn.
7052         (*movb): New define_insn.
7053         (*movb_signed): New define_insn.
7054         (*movb_high): New define_insn.
7055         (*movb_high_signed): New define_insn.
7056         (*movb_high_signed + 1): New define_split pattern.
7057         (*mrgb): New define_insn.
7058         (*mrgb + 1): New define_peephole2 pattern.
7059         (*mrgb + 2): New define_peephole2 pattern.
7060         * config/arc/arc.opt (mbitops): New option for nps400, uses
7061         TARGET_NPS_BITOPS_DEFAULT.
7062         * config/arc/constraints.md (q): Make register class conditional.
7063         (Rrq): New register constraint.
7064         (Chs): New constraint.
7065         (Clo): New constraint.
7066         (Chi): New constraint.
7067         (Cbf): New constraint.
7068         (Cbn): New constraint.
7069         (C18): New constraint.
7070         (Cbi): New constraint.
7071
7072 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
7073
7074         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
7075         dst->popcount.
7076         (bitmap_intersection_of_preds): Ditto.
7077         (bitmap_union_of_succs): Ditto.
7078         (bitmap_union_of_preds): Ditto.
7079         * sbitmap.c (do_popcount): Delete.
7080         (BITMAP_DEBUGGING): Delete.
7081         (sbitmap_verify_popcount): Delete.
7082         (sbitmap_alloc): Don't initialize the popcount field.
7083         (sbitmap_alloc_with_popcount): Delete.
7084         (sbitmap_resize): Don't resize the popcount array.
7085         (sbitmap_vector_alloc): Don't initialize the popcount field.
7086         (bitmap_copy): Don't copy the popcount array.
7087         (bitmap_clear): Don't clear the popcount array.
7088         (bitmap_clear): Delete the popcount array handling.
7089         (bitmap_ior_and_compl): Delete the popcount assert.
7090         (bitmap_not): Ditto.
7091         (bitmap_and_compl): Ditto.
7092         (bitmap_and): Delete the popcount array handling.
7093         (bitmap_xor): Ditto.
7094         (bitmap_ior): Ditto.
7095         (bitmap_or_and): Delete the popcount assert.
7096         (bitmap_and_or): Ditto.
7097         (popcount_table): Delete.
7098         (sbitmap_elt_popcount): Delete.
7099         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
7100         (bitmap_set_bit): Delete the popcount assert.
7101         (bitmap_clear_bit): Ditto.
7102         (sbitmap_free): Don't free the popcount array.
7103         (sbitmap_alloc_with_popcount): Delete declaration.
7104         (sbitmap_popcount): Ditto.
7105
7106 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
7107             Andrew Burgess  <andrew.burgess@embecosm.com>
7108
7109         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
7110         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
7111         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
7112         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
7113         * config/arc/arc.opt (mcmem): New option.
7114         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
7115         supply length for r/m alternative.
7116         (*extendqisi2_ac): Likewise.
7117         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
7118         r/Uex alternative.
7119         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
7120         (movhi_insn): Likewise.
7121         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
7122         (*zero_extendqihi2_i): Add r/Ucm alternative.
7123         (*zero_extendqisi2_ac): Likewise.
7124         (*zero_extendhisi2_i): Likewise.
7125         * config/arc/constraints.md (Uex): New memory constraint.
7126         (Ucm): New define_constraint.
7127         * config/arc/predicates.md (long_immediate_loadstore_operand):
7128         Return 0 for MEM with cmem_address address.
7129         (cmem_address_0): New predicates.
7130         (cmem_address_1): Likewise.
7131         (cmem_address_2): Likewise.
7132         (cmem_address): Likewise.
7133
7134 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
7135
7136         * config/rs6000/rs6000.c (machine_function): Rename
7137         insn_chain_scanned_p to spe_insn_chain_scanned_p.
7138         (rs6000_stack_info): Adjust.
7139
7140 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
7141             Andrew Burgess  <andrew.burgess@embecosm.com>
7142
7143         * config/arc/constraints.md (Usd): Convert to define_constraint.
7144         (Us<): Likewise.
7145         (Us>): Likewise.
7146
7147 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
7148
7149         PR target/70821
7150         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
7151         Add new peephole2 where the first insn is *mov<mode>_or instead of
7152         *mov<mode>_internal.
7153
7154 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
7155
7156         * tracer.c (bb_seen): Make static.
7157
7158 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
7159
7160         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
7161         support, setup defaults.
7162         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
7163         * config/arc/arc.c (arc_init): Add NPS400 support.
7164         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
7165         (TARGET_ARC700): NPS400 is also an ARC700.
7166         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
7167
7168 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
7169
7170         PR target/70668
7171         * config/nds32/nds32.md (casesi): Don't access the operands array
7172         out of bounds.
7173
7174 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
7175
7176         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
7177         (or $-1,reg peephole2): Ditto.
7178         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
7179
7180 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
7181
7182         * doc/extend.texi (Common Function Attributes) [optimize]:
7183         Discourage use of the optimize attribute.
7184
7185 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
7186
7187         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
7188         special case builtin.
7189         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
7190         ALTIVEC_BUILTIN_VEC_ADDE.
7191         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
7192         support for ALTIVEC_BUILTIN_VEC_ADDE.
7193         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
7194         for __builtin_vec_adde.
7195
7196 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
7197
7198         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
7199         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
7200
7201 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7202
7203         PR testsuite/70595
7204         * doc/sourcebuild.texi (Effective-Target Keywords, Other
7205         attributes): Document cilkplus_runtime.
7206
7207 2016-04-28  Martin Jambor  <mjambor@suse.cz>
7208
7209         * tree-cfg.c (verify_expr): Verify that local declarations belong to
7210         this function.  Call verify_expr on MEM_REFs and bases of other
7211         handled_components.
7212
7213 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7214
7215         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
7216         for WORD_REGISTER_OPERATIONS to runtime check.
7217
7218 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7219
7220         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
7221
7222 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7223
7224         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
7225         big-endian compilation.
7226         * config/arc/arc.md (addf3): Likewise.
7227         (subdf3): Likewise.
7228         (muldf3): Likewise.
7229
7230 2016-04-28  Richard Biener  <rguenther@suse.de>
7231
7232         PR tree-optimization/70840
7233         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
7234         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
7235         Mark x * pow(x,c) -> pow(x,c+1) commutative.
7236         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
7237
7238 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7239
7240         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
7241         and explain why in a comment.
7242
7243 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7244
7245         * config/arc/arc.md (cpu_facility): Add fpx variant.
7246         (subdf3): Prohibit use reverse sub when assist operations option
7247         is enabled.
7248         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
7249         instructions only when FPX is enabled.
7250         * testsuite/gcc.target/arc/trsub.c: New test.
7251
7252 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
7253
7254         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
7255         mult_operator when calculating "type" attribute.
7256         (*fop_<mode>_1_i387): Ditto.
7257         (*fop_xf_1_i387): Ditto.
7258         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
7259         Use std::swap to swap operands.  Use RTL expressions to generate
7260         converted pattern.
7261
7262 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7263             Joern Rennecke  <joern.rennecke@embecosm.com>
7264
7265         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
7266         declaration.
7267         (emit_pic_move): Remove.
7268         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
7269         * config/arc/arc.c (emit_pic_move): Removed.
7270         (TARGET_HAVE_TLS): Define.
7271         (arc_conditional_register_usage): Test for arc_tp_regno.
7272         (arc_print_operand, arc_print_operand_address): Handle TLS
7273         unspecs.
7274         (arc_needs_pcl_p): New function.
7275         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
7276         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
7277         (arc_raw_symbolic_reference_mentioned_p): Likewise.
7278         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
7279         (arc_legitimize_tls_address): Likewise.
7280         (DTPOFF_ZERO_SYM): Define.
7281         (arc_legitimize_pic_address): Make it static, handle TLS cases.
7282         (arc_output_pic_addr_const): Print TLS unspecs.
7283         (prepare_pic_move): New function, replaces emit_pic_move.
7284         (arc_legitimate_constant_p): Handle TLS unspecs.
7285         (arc_legitimate_address_p): Likewise.
7286         (arc_rewrite_small_data_p): Use assert for TLS constants.
7287         (prepare_move_operands): Use prepare_pic_move.
7288         (arc_legitimize_address): Legitimize tls addresses.
7289         (arc_epilogue_uses): Check for arc_tp_regno.
7290         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
7291         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
7292         Define.
7293         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
7294         Likewise.
7295         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
7296         %(arc_tls_extra_start_spec).
7297         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
7298         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
7299         (EH_USES): Define.
7300         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
7301         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
7302         (UNSPEC_TLS_OFF): Add.
7303         (R10_REG): Define.
7304         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
7305         (get_thread_pointersi): New patterns.
7306         * config/arc/arc.opt (mtp-regno): New option.
7307         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
7308         (move_dest_operand): Likewise.
7309         * configure: Regenerate.
7310         * configure.ac: Add arc*-*-* case to test for tls.
7311         * doc/invoke.texi (ARC options): Document mtp-regno.
7312
7313 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7314
7315         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
7316         the new ARC HS SIMD instructions.
7317         (arc_preferred_simd_mode): New function.
7318         (arc_autovectorize_vector_sizes): Likewise.
7319         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
7320         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7321         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
7322         (arc_init_builtins): Add new SIMD builtin types.
7323         (arc_split_move): Handle 64 bit vector moves.
7324         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
7325         (TARGET_PLUS_QMACW): Define.
7326         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
7327         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
7328         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
7329         (VSUBADD4H): New builtins.
7330         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
7331         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
7332
7333 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
7334             Matthias Klose  <doko@debian.org>
7335
7336         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
7337
7338 2016-04-28  Richard Biener  <rguenther@suse.de>
7339
7340         PR middle-end/70777
7341         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
7342         canonicalization.
7343
7344 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
7345
7346         * common/config/sh/sh-common.c: Remove SH5 support.
7347         * config/sh/constraints.md: Likewise.
7348         * config/sh/config/sh/elf.h: Likewise.
7349         * config/sh/linux.h: Likewise.
7350         * config/sh/netbsd-elf.h: Likewise.
7351         * config/sh/predicates.md: Likewise.
7352         * config/sh/sh-c.c: Likewise.
7353         * config/sh/sh-protos.h: Likewise.
7354         * config/sh/sh.c: Likewise.
7355         * config/sh/sh.h: Likewise.
7356         * config/sh/sh.md: Likewise.
7357         * config/sh/sh.opt: Likewise.
7358         * config/sh/sync.md: Likewise.
7359         * config/sh/sh64.h: Delete.
7360         * config/sh/shmedia.h: Likewise.
7361         * config/sh/shmedia.md: Likewise.
7362         * config/sh/sshmedia.h: Likewise.
7363         * config/sh/t-netbsd-sh5-64: Likewise.
7364         * config/sh/t-sh64: Likewise.
7365         * config/sh/ushmedia.h: Likewise.
7366
7367 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
7368
7369         * config/i386/i386.md (sign_extend to memory peephole2s): Use
7370         general_reg_operand instead of register_operand predicate.
7371
7372 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7373
7374         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
7375
7376 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
7377
7378         * match.pd (A - B > A, A + B < A): New transformations.
7379
7380 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
7381
7382         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
7383         which defaults to true.  Emit an outer pair of parentheses only if
7384         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
7385         don't emit parentheses for the right-hand operand.
7386
7387 2016-04-27  Jeff Law  <law@redhat.com>
7388
7389         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
7390
7391 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7392
7393         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
7394         (altivec_lvx_<mode>_internal): Document.
7395         (altivec_lvx_<mode>_2op): New define_insn.
7396         (altivec_lvx_<mode>_1op): Likewise.
7397         (altivec_lvx_<mode>_2op_si): Likewise.
7398         (altivec_lvx_<mode>_1op_si): Likewise.
7399         (altivec_stvx_<mode>): Remove.
7400         (altivec_stvx_<mode>_internal): Document.
7401         (altivec_stvx_<mode>_2op): New define_insn.
7402         (altivec_stvx_<mode>_1op): Likewise.
7403         (altivec_stvx_<mode>_2op_si): Likewise.
7404         (altivec_stvx_<mode>_1op_si): Likewise.
7405         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7406         Expand vec_ld and vec_st during parsing.
7407         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
7408         changes.
7409         (altivec_expand_stvx_be): Likewise.
7410         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
7411         address-masking behavior in RTL.
7412         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
7413         address-masking behavior in RTL.
7414         (altivec_expand_builtin): Change builtin code arguments for calls
7415         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
7416         (insn_is_swappable_p): Avoid incorrect swap optimization in the
7417         presence of lvx/stvx patterns.
7418         (alignment_with_canonical_addr): New function.
7419         (alignment_mask): Likewise.
7420         (find_alignment_op): Likewise.
7421         (recombine_lvx_pattern): Likewise.
7422         (recombine_stvx_pattern): Likewise.
7423         (recombine_lvx_stvx_patterns): Likewise.
7424         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
7425         stvx patterns from expand.
7426         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
7427         expansions.
7428         (vector_altivec_store_<mode>): Likewise.
7429
7430 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
7431
7432         * config/aarch64/aarch64.md
7433         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
7434         remove the "fp" attributes.
7435         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
7436         add the "simd" attributes.
7437         (*movdf_aarch64): Likewise.
7438         (*movtf_aarch64): Remove the "fp" attributes.
7439         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
7440         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
7441
7442 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7443
7444         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
7445         rtx to rtx_code_label *.
7446         * rtl.h (maybe_set_first_label_num): Likewise.
7447
7448 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7449
7450         * df-core.c (df_add_problem): Make the problem param be const.
7451         (df_remove_problem): Make local "problem" be const.
7452         * df-problems.c (problem_RD): Make const.
7453         (problem_LR): Likewise.
7454         (problem_LIVE): Likewise.
7455         (problem_MIR): Likewise.
7456         (problem_CHAIN): Likewise.
7457         (problem_WORD_LR): Likewise.
7458         (problem_NOTE): Likewise.
7459         (problem_MD): Likewise.
7460         * df-scan.c (problem_SCAN): Likewise.
7461         * df.h (struct df_problem): Make field "dependent_problem" be
7462         const.
7463         (struct dataflow): Likewise for field "problem".
7464         (df_add_problem): Make param const.
7465
7466 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
7467
7468         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
7469         inter-unit moves to/from vector registers are enabled.  Do not disable
7470         for TARGET_MMX.
7471
7472 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7473
7474         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
7475         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
7476         #define to...
7477         (enum df_problem_id): ...this new enum.
7478         (struct df_problem): Convert field "id" from "int" to
7479         enum df_problem_id.
7480
7481 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7482
7483         * rtl.def: Update comment for "things in the instruction chain" to
7484         reflect the removal of the leading "i" field for INSN_UID in
7485         r210360.  Fix bogus apostrophe.
7486
7487 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
7488
7489         * config/i386/i386.md
7490         (lea arith with mem operand + setcc peephole2): Set operator mode.
7491
7492 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
7493
7494         PR target/70155
7495         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
7496         (dimode_scalar_to_vector_candidate_p): This.
7497         (timode_scalar_to_vector_candidate_p): New function.
7498         (scalar_to_vector_candidate_p): Likewise.
7499         (timode_check_non_convertible_regs): Likewise.
7500         (timode_remove_non_convertible_regs): Likewise.
7501         (remove_non_convertible_regs): Likewise.
7502         (remove_non_convertible_regs): Renamed to ...
7503         (dimode_remove_non_convertible_regs): This.
7504         (scalar_chain::~scalar_chain): Make it virtual.
7505         (scalar_chain::compute_convert_gain): Make it pure virtual.
7506         (scalar_chain::mark_dual_mode_def): Likewise.
7507         (scalar_chain::convert_insn): Likewise.
7508         (scalar_chain::convert_registers): Likewise.
7509         (scalar_chain::add_to_queue): Make it protected.
7510         (scalar_chain::emit_conversion_insns): Likewise.
7511         (scalar_chain::replace_with_subreg): Likewise.
7512         (scalar_chain::replace_with_subreg_in_insn): Likewise.
7513         (scalar_chain::convert_op): Likewise.
7514         (scalar_chain::convert_reg): Likewise.
7515         (scalar_chain::make_vector_copies): Likewise.
7516         (scalar_chain::convert_registers): New pure virtual function.
7517         (class dimode_scalar_chain): New class.
7518         (class timode_scalar_chain): Likewise.
7519         (scalar_chain::mark_dual_mode_def): Renamed to ...
7520         (dimode_scalar_chain::mark_dual_mode_def): This.
7521         (timode_scalar_chain::mark_dual_mode_def): New function.
7522         (timode_scalar_chain::convert_insn): Likewise.
7523         (dimode_scalar_chain::convert_registers): Likewise.
7524         (scalar_chain::compute_convert_gain): Renamed to ...
7525         (dimode_scalar_chain::compute_convert_gain): This.
7526         (scalar_chain::replace_with_subreg): Renamed to ...
7527         (dimode_scalar_chain::replace_with_subreg): This.
7528         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
7529         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
7530         (scalar_chain::make_vector_copies): Renamed to ...
7531         (dimode_scalar_chain::make_vector_copies): This.
7532         (scalar_chain::convert_reg): Renamed to ...
7533         (dimode_scalar_chain::convert_reg ): This.
7534         (scalar_chain::convert_op): Renamed to ...
7535         (dimode_scalar_chain::convert_op): This.
7536         (scalar_chain::convert_insn): Renamed to ...
7537         (dimode_scalar_chain::convert_insn): This.
7538         (scalar_chain::convert): Call convert_registers.
7539         (convert_scalars_to_vector): Change to scalar_chain pointer to
7540         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
7541         in 32-bit mode.  Delete scalar_chain pointer.  Call
7542         free_dominance_info in 64-bit mode.
7543         (pass_stv::gate): Remove TARGET_64BIT check.
7544         (ix86_option_override): Put the 64-bit STV pass before the CSE
7545         pass.
7546
7547 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
7548
7549         * dwarf2out.h (struct dw_loc_descr_node): Remove the
7550         dw_loc_frame_offset field.
7551         * dwarf2out.c (new_loc_descr): Likewise.
7552         (resolve_args_picking_1): Turn the VISITED hash set into a
7553         FRAME_OFFSET hash map. Use it to associate a frame offset to
7554         visited nodes. Remove uses of the CHECKING_P macro.
7555         (resolve_args_picking): Update call to resolve_args_picking_1.
7556
7557 2016-04-27  Martin Liska  <mliska@suse.cz>
7558
7559         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
7560         (free_loop_data): Release vuses of groups.
7561
7562 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
7563
7564         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
7565         instead of redundant use_id and boolean have_use_for.
7566         (struct iv_use): Change sub_id into group_id.  Remove field next.
7567         Move fields: related_cands, n_map_members, cost_map and selected
7568         to ...
7569         (struct iv_group): ... here.  New structure.
7570         (struct iv_common_cand): Use structure declaration directly.
7571         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
7572         (MAX_CONSIDERED_USES): Rename macro to ...
7573         (MAX_CONSIDERED_GROUPS): ... here.
7574         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
7575         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
7576         (dump_uses): Rename to ...
7577         (dump_groups): ... here.  Update all uses.
7578         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
7579         (find_induction_variables): Refactor format of dump information.
7580         (record_sub_use): Delete.
7581         (record_use): Update all uses.
7582         (record_group): New function.
7583         (record_group_use, find_interesting_uses_op): Call above functions.
7584         Update all uses.
7585         (find_interesting_uses_cond): Ditto.
7586         (group_compare_offset): New function.
7587         (split_all_small_groups): Rename to ...
7588         (split_small_address_groups_p): ... here.  Update all uses.
7589         (split_address_groups):  Update all uses.
7590         (find_interesting_uses): Refactor format of dump information.
7591         (add_candidate_1): Update all uses.  Remove redundant check on iv,
7592         base and step.
7593         (add_candidate, record_common_cand): Remove redundant assert.
7594         (add_iv_candidate_for_biv): Update use.
7595         (add_iv_candidate_derived_from_uses): Update all uses.
7596         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
7597         (alloc_use_cost_map): Ditto.
7598         (set_use_iv_cost, get_use_iv_cost): Rename to ...
7599         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
7600         (determine_use_iv_cost_generic): Ditto.
7601         (determine_group_iv_cost_generic): Ditto.
7602         (determine_use_iv_cost_address): Ditto.
7603         (determine_group_iv_cost_address): Ditto.
7604         (determine_use_iv_cost_condition): Ditto.
7605         (determine_group_iv_cost_cond): Ditto.
7606         (determine_use_iv_cost): Ditto.
7607         (determine_group_iv_cost): Ditto.
7608         (set_autoinc_for_original_candidates): Update all uses.
7609         (find_iv_candidates): Update all uses.  Refactor dump information.
7610         (determine_use_iv_costs): Ditto.
7611         (determine_iv_costs): Ditto.
7612         (iv_ca_cand_for_use): Rename to ...
7613         (iv_ca_cand_for_group): ... here.  Update all uses.
7614         (iv_ca_add_use, iv_ca_add_group): Ditto.
7615         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
7616         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
7617         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
7618         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
7619         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
7620         (create_new_iv, adjust_iv_update_pos): Ditto.
7621         (rewrite_use_address): Delete.
7622         (rewrite_use_address_1): Rename to ...
7623         (rewrite_use_address): ... here.
7624         (rewrite_use_compare): Update all uses.
7625         (rewrite_use): Delete.
7626         (rewrite_uses): Rename to ...
7627         (rewrite_groups): ... here.  Update all uses.
7628         (remove_unused_ivs, free_loop_data): Update all uses.
7629         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
7630
7631 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7632
7633         * rtlanal.c (nonzero_bits1): Convert preprocessor check
7634         for WORD_REGISTER_OPERATIONS to runtime check.
7635
7636 2016-04-27  Richard Biener  <rguenther@suse.de>
7637
7638         PR ipa/70760
7639         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
7640         aggregate_value_p to determine if a function result is
7641         returned by reference.
7642         (ipa_pta_execute): Functions having their address taken are
7643         not automatically nonlocal.
7644
7645 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
7646
7647         PR sanitizer/70683
7648         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
7649         * fold-const.c (operand_equal_p): If flag_checking and
7650         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
7651         and if it returns non-zero, assert iterative_hash_expr on both
7652         args is the same.
7653
7654 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
7655
7656         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
7657
7658 2016-04-27  Nick Clifton  <nickc@redhat.com>
7659
7660         PR middle-end/49889
7661         * varasm.c (merge_weak): Generate an error if an attempt is made
7662         to convert a non-weak static function into a weak, public function.
7663
7664 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7665
7666         * params.def (MAX_PARTITION_SIZE): New param.
7667         * doc/invoke.texi: Document lto-max-partition.
7668
7669 2016-04-27  Richard Biener  <rguenther@suse.de>
7670
7671         PR ipa/70785
7672         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
7673         function cummulating used_from_other_partition, externally_visible
7674         and force_output from aliases.
7675         (refered_from_nonlocal_var): Likewise.
7676         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
7677         node flags properly.
7678
7679 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
7680
7681         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
7682         (-Wmemset-elt-size): New item.
7683
7684 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
7685
7686         PR ada/70759
7687         * stor-layout.h (internal_reference_types): Delete.
7688         * stor-layout.c (reference_types_internal): Likewise.
7689         (internal_reference_types): Likewise.
7690         (layout_type) <REFERENCE_TYPE>: Adjust.
7691
7692 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
7693
7694         PR sanitizer/70683
7695         * tree.h (inchash::add_expr): Add FLAGS argument.
7696         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
7697         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
7698         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
7699         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
7700         if swap_tree_comparison (code) is smaller than code, hash that
7701         and arguments in the other order.  Hash CONVERT_EXPR the same
7702         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
7703         of ADDR_EXPR of decl as the decl itself.  Add or remove
7704         OEP_ADDRESS_OF from recursive flags as needed.  For
7705         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
7706         operands commutatively and only the third one normally.
7707         For internal CALL_EXPR hash in CALL_EXPR_IFN.
7708
7709 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7710
7711         * config/rtems.h (LIB_SPEC): Add -latomic.
7712
7713 2016-04-27  Joel Sherrill  <joel@rtems.org>
7714
7715         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
7716         xilink.ld and flags not relevant to RTEMS.
7717
7718 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
7719
7720         * toplev.c (backend_init_target): Avoid calling init_reload when using
7721         LRA.
7722
7723 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
7724
7725         * reorg.c (try_merge_delay_insns): Declare i and j inside the
7726         for loops rather than one for the whole function.
7727
7728 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
7729
7730         * match.pd (X + CST CMP X): New transformation.
7731
7732 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
7733
7734         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
7735         * fold-const.c (fold_binary_loc): Remove 2 transformations
7736         superseded by match.pd.
7737         * match.pd (x+x -> x*2): Generalize to integers.
7738
7739 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
7740
7741         * config/i386/i386.md (operation on memory peephole): Duplicate an
7742         existing peephole and adapt it to match lea rather than an operation
7743         that clobbers CC.
7744
7745         PR rtl-optimization/57193
7746         * opts.c (default_options_table): Add OPT_frename_registers at -O2
7747         and above.
7748         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
7749
7750 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
7751
7752         * tree-if-conv.c (any_pred_load_store): New static variable.
7753         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
7754         any_pred_load_store instead of and_mask_load_store.
7755         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
7756         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
7757         (combine_blocks, tree_if_conversion): Ditto.
7758
7759 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
7760
7761         PR tree-optimization/70771
7762         PR tree-optimization/70775
7763         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
7764         virtual PHI nodes.  Delete parameter.
7765         (if_convertible_loop_p_1): Delete argument to above function.
7766         (predicate_all_scalar_phis): Delete code handling single-argument
7767         PHIs.
7768         (tree_if_conversion): Mark and update virtual SSA.
7769
7770 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7771
7772         PR target/61821
7773         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
7774         (x86_elf_aligned_common): Rename to ...
7775         (x86_elf_aligned_decl_common): ... this.
7776         Add decl arg.  Switch to .lbss for largecomm object.  Use
7777         LARGECOMM_SECTION_ASM_OP.
7778         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
7779         renaming.
7780         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
7781         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
7782         Pass new decl arg.
7783         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
7784         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
7785
7786 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7787
7788         PR target/59407
7789         * config/i386/i386.c (SECTION_LARGE): Define.
7790         (x86_64_elf_select_section): Set it for large data/bss sections.
7791         Only clear SECTION_WRITE for .lrodata.
7792         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
7793         data/bss sections.
7794         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
7795         * varasm.c (default_elf_asm_named_section): Grow flagchars.
7796         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
7797         SECTION_MACH_DEP.
7798         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
7799         * doc/tm.texi: Regenerate.
7800
7801 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
7802
7803         PR bootstrap/70704
7804         * configure.ac (--enable-checking): Document extra flag, for
7805         non-release builds default to --enable-checking=yes,extra.
7806         If misc checking and extra checking, define CHECKING_P to 2 instead
7807         of 1.
7808         * common.opt (fchecking=): Add.
7809         * doc/invoke.texi (-fchecking=): Document.
7810         * doc/install.texi: Document --enable-checking changes.
7811         * configure: Regenerated.
7812         * config.in: Regenerated.
7813
7814 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
7815
7816         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
7817         attribute instead of which_alternative.
7818         * config/i386/sse.md (*mov<mode>_internal): Ditto.
7819         Use EXT_REX_SSE_REG_P where appropriate.
7820
7821 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
7822
7823         * config/i386/predicates.md (const0_operand): Do not match
7824         const_wide_int code.
7825         (const1_operand): Ditto.
7826
7827 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
7828
7829         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
7830         for SSE constm1 operands and TARGET_AVX512VL.
7831         (*movti_internal): Ditto.
7832         (*mov<mode>_or): Use constm1_operand predicate.
7833         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
7834         for SSE vector_all_ones operands and TARGET_AVX512VL.
7835         * config/i386/predicates.md (constm1_operand): New predicate.
7836         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
7837         emission of constant -1 load.
7838
7839 2016-04-25  Jason Merrill  <jason@redhat.com>
7840
7841         * gdbinit.in: Skip is-a.h.
7842
7843         * attribs.c (register_scoped_attributes): Fix logic.
7844         * attribs.h: Declare register_scoped_attributes.
7845
7846 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7847
7848         * config/rs6000/rs6000-builtin.def: Correct pasto error for
7849         stxvd2x and stxvw4x built-in functions.
7850
7851 2016-04-25  DJ Delorie  <dj@redhat.com>
7852
7853         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
7854         (ashrhi3): Likewise.
7855         (lshrhi3): Likewise.
7856
7857 2016-04-25  Richard Biener  <rguenther@suse.de>
7858
7859         PR tree-optimization/70780
7860         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
7861         wasn't visited yet.
7862         (compute_antic): Mark blocks with abnormal preds as visited as
7863         they have a final empty antic-in solution already.
7864
7865 2016-04-25  Michael Collison  <michael.collison@linaro.org>
7866
7867         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
7868
7869 2016-04-25  Michael Collison  <michael.collison@linaro.org>
7870
7871         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
7872         mode is VQI to improve mixed mode vectorization.
7873         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
7874         define_insn to match low half of signed vaddw.
7875         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
7876         define_insn to match high half of signed vaddw.
7877         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
7878         define_insn to match low half of unsigned vaddw.
7879         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
7880         define_insn to match high half of unsigned vaddw.
7881         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
7882         (arm_simd_check_vect_par_cnst_half_p): Likewise.
7883         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
7884         for new function.
7885         (arm_simd_check_vect_par_cnst_half_p): Likewise.
7886         * config/arm/predicates.md (vect_par_constant_high): Support
7887         big endian and simplify by calling
7888         arm_simd_check_vect_par_cnst_half
7889         (vect_par_constant_low): Likewise.
7890
7891 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
7892
7893         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
7894         predicate for operand 2.
7895
7896 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
7897             H.J. Lu  <hongjiu.lu@intel.com>
7898
7899         * config/i386/i386-protos.h (standard_sse_constant_p): Add
7900         machine_mode argument.
7901         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
7902         constm1_rtx operands.  For VOIDmode constants, get mode from
7903         pred_mode.  Check mode size if the mode is supported by ABI.
7904         (standard_sse_constant_opcode): Do not use standard_constant_p.
7905         Strictly check ABI support for all-ones operands.
7906         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
7907         immediates. Update calls to standard_sse_constant_p.
7908         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
7909         (ix86_rtx_costs): Ditto.
7910         * config/i386/i386.md (*movxi_internal_avx512f): Use
7911         nonimmediate_or_sse_const_operand instead of vector_move_operand.
7912         Use (v,BC) alternative instead of (v,C). Use register_operand
7913         checks instead of MEM_P.
7914         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
7915         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
7916         isa attribute.  Use register_operand checks instead of MEM_P.
7917         (*movti_internal): Use nonimmediate_or_sse_const_operand for
7918         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
7919         alternative and corresponding sse2 isa attribute.
7920         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
7921         to standard_sse_constant_p.
7922         (FP constant splitters): Ditto.
7923         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
7924         (C): Ditto.
7925         * config/i386/predicates.md (constm1_operand): Remove.
7926         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
7927         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
7928         vector_all_ones_operand instead of constm1_operand.
7929
7930 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7931
7932         * print-rtl.c (print_rtx_insn_vec): New function.
7933         * print-rtl.h: New prototype.
7934         * store-motion.c (struct st_expr): Make avail_stores a vector.
7935         (st_expr_entry): Adjust.
7936         (free_st_expr_entry): Likewise.
7937         (print_store_motion_mems): Likewise.
7938         (find_moveable_store): Likewise.
7939         (compute_store_table): Likewise.
7940         (delete_store): Likewise.
7941         (build_store_vectors): Likewise.
7942
7943 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7944
7945         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
7946
7947 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7948
7949         * vec.h (vec_safe_contains): New function.
7950         (vec::contains): Likewise.
7951         (vec::begin): Likewise.
7952         (vec::end): Likewise.
7953
7954 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
7955
7956         PR sanitizer/70712
7957         * cfgexpand.c (expand_stack_vars): Fix typo.
7958
7959 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7960
7961         * system.h (list, map, set, vector): Include conditionally.
7962         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
7963         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
7964         * ipa-icf.c (INCLUDE_LIST): Define.
7965         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
7966         * config/sh/sh.c (INCLUDE_VECTOR): Define.
7967         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
7968         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
7969         * cp/logic.cc (INCLUDE_LIST): Define.
7970         * fortran/trans-common.c (INCLUDE_MAP): Define.
7971
7972 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7973
7974         * auto-profile.c: Remove <string.h> include.
7975         * ipa-icf-gimple.c: Remove <list> include.
7976         * diagnostic.c: Remove <new> include.
7977         * genmatch.c: Likewise.
7978         * pretty-print.c: Likewise.
7979         * toplev.c: Likewise
7980         * c/c-objc-common.c: Likewise.
7981         * cp/error.c: Likewise.
7982         * fortran/error.c: Likewise.
7983
7984 2016-04-22  Richard Biener  <rguenther@suse.de>
7985
7986         * lto-streamer-in.c (input_ssa_names): Do not allocate
7987         GIMPLE_NOP for all SSA names.
7988         * lto-streamer-out.c (output_ssa_names): Do not output
7989         SSA names that should have been released.
7990
7991 2016-04-22  Richard Biener  <rguenther@suse.de>
7992
7993         PR tree-optimization/70740
7994         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
7995         VDEF.
7996
7997 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
7998
7999         PR target/70750
8000         * config/i386/predicates.md (call_insn_operand): Replace
8001         sibcall_memory_operand with memory_operand.
8002
8003 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
8004
8005         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
8006         has_single_use() tests.
8007         (register_edge_assert_for_1): Likewise.
8008         (find_assert_locations_1): Check the liveness bitmap instead of
8009         checking has_single_use().
8010
8011 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
8012
8013         PR target/70728
8014         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
8015         Extract AVX-512BW constraint from AVX.
8016
8017 2016-04-21  Richard Biener  <rguenther@suse.de>
8018
8019         PR tree-optimization/70725
8020         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
8021         for phi_convertible_by_degenerating_args.
8022         (predicate_all_scalar_phis): Handle single-argument PHIs.
8023
8024 2016-04-21  Richard Biener  <rguenther@suse.de>
8025
8026         PR middle-end/70747
8027         * fold-const.c (fold_comparison): Return properly typed
8028         constant boolean.
8029
8030 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
8031
8032         PR tree-optimization/70715
8033         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
8034         after expanding BASE using expand_simple_operations.
8035
8036 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
8037
8038         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
8039         New transformations.
8040
8041 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
8042
8043         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
8044
8045 2016-04-20  Jan Hubicka  <jh@suse.cz>
8046
8047         * ipa-inline.c (can_inline_edge_p): Pass caller info to
8048         ultiimate_alias_target.
8049         (update_callee_keys): Likewise.
8050         (lookup_recursive_calls): Likewise.
8051         (speculation_useful_p): Likewise.
8052
8053 2016-04-20  Jan Hubicka  <jh@suse.cz>
8054
8055         PR ipa/70018
8056         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
8057         (set_nothrow_flag_1): ... this; handle interposition correctly;
8058         recurse on aliases and thunks.
8059         (cgraph_node::set_nothrow_flag): New.
8060         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
8061         functions compiled with non-call exceptions that binds to current
8062         def.
8063         (propagate_nothrow): Be safe WRT interposition.
8064         * cgraph.h (set_nothrow_flag): Update prototype.
8065
8066 2016-04-18  Jan Hubicka  <jh@suse.cz>
8067
8068         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
8069         max_loop_iterations_int.
8070         (tree_unswitch_outer_loop): Likewise.
8071
8072 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
8073
8074         PR tree-optimization/69489
8075         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
8076         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
8077         Revise dump message.
8078         (if_convertible_bb_p): Remove check on edge count of basic block's
8079         predecessors.
8080
8081 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
8082
8083         PR tree-optimization/56625
8084         PR tree-optimization/69489
8085         * tree-data-ref.h (DR_INNERMOST): New macro.
8086         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
8087         hashing struct innermost_loop_behavior.
8088         (ref_DR_map): Remove.
8089         (innermost_DR_map): New map.
8090         (baseref_DR_map): Revise comment.
8091         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
8092         to innermost_DR_map accroding to its innermost loop behavior.
8093         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
8094         to its innermost loop behavior.
8095         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
8096         Add initialization for innermost_DR_map.  Record memory reference
8097         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
8098         have innermost loop behavior.
8099         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
8100         innermost_DR_map.
8101
8102 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
8103
8104         * config/i386/i386.md (*lea<mode>_general_1): Rename from
8105         *lea_general_1.  Use explicit SWI12 mode interator.
8106         (*lea<mode>_general_2): Rename from *lea_general_2.
8107         Use explicit SWI12 mode interator.
8108         (*lea<mode>_general_3): Rename from *lea_general_3.
8109         Use explicit SWI12 mode interator.
8110         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
8111         Use explicit SWI12 mode interator.
8112         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
8113         Use explicit SWI48 mode interator.
8114
8115 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
8116
8117         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
8118         Short-cut unaligned load and store cases.  Handle all integer
8119         vector modes.
8120         (ix86_expand_vector_move_misalign): Short-cut unaligned load
8121         and store cases.  Call ix86_avx256_split_vector_move_misalign
8122         directly without checking mode class.
8123
8124 2016-04-20  Andrew Pinski  <apinski@cavium.com>
8125             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8126
8127         PR target/64971
8128         * config/aarch64/aarch64.md (sibcall): Force call
8129         address to be DImode for ILP32.
8130         (sibcall_value): Likewise.
8131
8132 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
8133
8134         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
8135
8136 2016-04-20  Richard Biener  <rguenther@suse.de>
8137
8138         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
8139         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
8140         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
8141         (maybe_push_res_to_seq): Adjust.
8142         * gimple-fold.c (maybe_build_generic_op): Likewise.
8143
8144 2016-04-20  Marek Polacek  <polacek@redhat.com>
8145
8146         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
8147         rather than true.
8148
8149 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
8150
8151         * config/i386/sse.md (vec_unpacks_lo_hi): Always
8152         use kmovw to support AVX512F target.
8153
8154 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
8155
8156         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
8157
8158 2016-04-20  Marek Polacek  <polacek@redhat.com>
8159
8160         PR tree-optimization/70725
8161         * tree-if-conv.c (is_false_predicate): New function.
8162         (predicate_mem_writes): Use it.
8163
8164 2016-04-20  Richard Biener  <rguenther@suse.de>
8165
8166         PR tree-optimization/70726
8167         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
8168         shift amounts from a pattern stmt operand.
8169
8170 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8171
8172         PR target/70674
8173         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
8174         stack_restore_from_fpr pattern when restoring r15.
8175         (s390_optimize_prologue): Strip away the memory barrier in the
8176         parallel when trying to get rid of restore insns.
8177         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
8178         definition for loading the stack pointer from an FPR.  Compared to
8179         the normal move insn this pattern includes a full memory barrier.
8180
8181 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
8182
8183         PR middle-end/70680
8184         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
8185         implicitly linear or lastprivate iterator on the outer context.
8186
8187 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
8188
8189         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
8190         alignment check.
8191         * config/i386/i386.md (ssememalign): Removed.
8192         * config/i386/sse.md: Remove ssememalign attribute from patterns.
8193
8194 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
8195
8196         PR target/69201
8197         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
8198         const short * to __builtin_ia32_loaddquhi512_mask.
8199         (_mm512_maskz_loadu_epi16): Likewise.
8200         (_mm512_mask_storeu_epi16): Pass short * to
8201         __builtin_ia32_storedquhi512_mask.
8202         (_mm512_mask_loadu_epi8): Pass const char * to
8203         __builtin_ia32_loaddquqi512_mask.
8204         (_mm512_maskz_loadu_epi8): Likewise.
8205         (_mm512_mask_storeu_epi8): Pass char * to
8206         __builtin_ia32_storedquqi512_mask.
8207         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
8208         const double * to __builtin_ia32_loadupd512_mask.
8209         (_mm512_mask_loadu_pd): Likewise.
8210         (_mm512_maskz_loadu_pd): Likewise.
8211         (_mm512_storeu_pd): Pass double * to
8212         __builtin_ia32_storeupd512_mask.
8213         (_mm512_mask_storeu_pd): Likewise.
8214         (_mm512_loadu_ps): Pass const float * to
8215         __builtin_ia32_loadups512_mask.
8216         (_mm512_mask_loadu_ps): Likewise.
8217         (_mm512_maskz_loadu_ps): Likewise.
8218         (_mm512_storeu_ps): Pass float * to
8219         __builtin_ia32_storeups512_mask.
8220         (_mm512_mask_storeu_ps): Likewise.
8221         (_mm512_mask_loadu_epi64): Pass const long long * to
8222         __builtin_ia32_loaddqudi512_mask.
8223         (_mm512_maskz_loadu_epi64): Likewise.
8224         (_mm512_mask_storeu_epi64): Pass long long *
8225         to __builtin_ia32_storedqudi512_mask.
8226         (_mm512_loadu_si512): Pass const int * to
8227         __builtin_ia32_loaddqusi512_mask.
8228         (_mm512_mask_loadu_epi32): Likewise.
8229         (_mm512_maskz_loadu_epi32): Likewise.
8230         (_mm512_storeu_si512): Pass int * to
8231         __builtin_ia32_storedqusi512_mask.
8232         (_mm512_mask_storeu_epi32): Likewise.
8233         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
8234         char * to __builtin_ia32_storedquqi256_mask.
8235         (_mm_mask_storeu_epi8): Likewise.
8236         (_mm256_mask_loadu_epi16): Pass const short * to
8237         __builtin_ia32_loaddquhi256_mask.
8238         (_mm256_maskz_loadu_epi16): Likewise.
8239         (_mm_mask_loadu_epi16): Pass const short * to
8240         __builtin_ia32_loaddquhi128_mask.
8241         (_mm_maskz_loadu_epi16): Likewise.
8242         (_mm256_mask_loadu_epi8): Pass const char * to
8243         __builtin_ia32_loaddquqi256_mask.
8244         (_mm256_maskz_loadu_epi8): Likewise.
8245         (_mm_mask_loadu_epi8): Pass const char * to
8246         __builtin_ia32_loaddquqi128_mask.
8247         (_mm_maskz_loadu_epi8): Likewise.
8248         (_mm256_mask_storeu_epi16): Pass short * to.
8249         __builtin_ia32_storedquhi256_mask.
8250         (_mm_mask_storeu_epi16): Pass short * to.
8251         __builtin_ia32_storedquhi128_mask.
8252         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
8253         const double * to __builtin_ia32_loadupd256_mask.
8254         (_mm256_maskz_loadu_pd): Likewise.
8255         (_mm_mask_loadu_pd): Pass onst double * to
8256         __builtin_ia32_loadupd128_mask.
8257         (_mm_maskz_loadu_pd): Likewise.
8258         (_mm256_mask_storeu_pd): Pass double * to
8259         __builtin_ia32_storeupd256_mask.
8260         (_mm_mask_storeu_pd): Pass double * to
8261         __builtin_ia32_storeupd128_mask.
8262         (_mm256_mask_loadu_ps): Pass const float * to
8263         __builtin_ia32_loadups256_mask.
8264         (_mm256_maskz_loadu_ps): Likewise.
8265         (_mm_mask_loadu_ps): Pass const float * to
8266         __builtin_ia32_loadups128_mask.
8267         (_mm_maskz_loadu_ps): Likewise.
8268         (_mm256_mask_storeu_ps): Pass float * to
8269         __builtin_ia32_storeups256_mask.
8270         (_mm_mask_storeu_ps): ass float * to
8271         __builtin_ia32_storeups128_mask.
8272         (_mm256_mask_loadu_epi64): Pass const long long * to
8273         __builtin_ia32_loaddqudi256_mask.
8274         (_mm256_maskz_loadu_epi64): Likewise.
8275         (_mm_mask_loadu_epi64): Pass const long long * to
8276         __builtin_ia32_loaddqudi128_mask.
8277         (_mm_maskz_loadu_epi64): Likewise.
8278         (_mm256_mask_storeu_epi64): Pass long long * to
8279         __builtin_ia32_storedqudi256_mask.
8280         (_mm_mask_storeu_epi64): Pass long long * to
8281         __builtin_ia32_storedqudi128_mask.
8282         (_mm256_mask_loadu_epi32): Pass const int * to
8283         __builtin_ia32_loaddqusi256_mask.
8284         (_mm256_maskz_loadu_epi32): Likewise.
8285         (_mm_mask_loadu_epi32): Pass const int * to
8286         __builtin_ia32_loaddqusi128_mask.
8287         (_mm_maskz_loadu_epi32): Likewise.
8288         (_mm256_mask_storeu_epi32): Pass int * to
8289         __builtin_ia32_storedqusi256_mask.
8290         (_mm_mask_storeu_epi32): Pass int * to
8291         __builtin_ia32_storedqusi128_mask.
8292         * config/i386/i386-builtin-types.def (PCSHORT): New.
8293         (PINT64): Likewise.
8294         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
8295         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
8296         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
8297         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
8298         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
8299         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
8300         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
8301         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
8302         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
8303         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
8304         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
8305         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
8306         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
8307         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
8308         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
8309         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
8310         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
8311         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
8312         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
8313         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
8314         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
8315         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
8316         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
8317         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
8318         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
8319         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
8320         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
8321         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
8322         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
8323         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
8324         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
8325         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
8326         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
8327         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
8328         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
8329         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
8330         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
8331         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
8332         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
8333         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
8334         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
8335         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
8336         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
8337         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
8338         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
8339         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
8340         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
8341         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
8342         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
8343         use UNSPEC_STOREU.
8344         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
8345         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
8346         load nor store.
8347         (ix86_expand_vector_move_misalign): Likewise.
8348         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
8349         to scalar function prototype for unaligned load/store builtins.
8350         (ix86_expand_special_args_builtin): Updated.
8351         * config/i386/sse.md (UNSPEC_LOADU): Removed.
8352         (UNSPEC_STOREU): Likewise.
8353         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
8354         (VI_ULOADSTORE_F_AVX512VL): Likewise.
8355         (ssescalarsize): Handle V4TI, V2TI and V1TI.
8356         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
8357         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
8358         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
8359         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
8360         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
8361         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
8362         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
8363         (<avx512>_storedqu<mode>_mask): Likewise.
8364         (*sse4_2_pcmpestr_unaligned): Likewise.
8365         (*sse4_2_pcmpistr_unaligned): Likewise.
8366         (*mov<mode>_internal): Renamed to ...
8367         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
8368         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
8369         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
8370         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
8371
8372 2016-04-19  Richard Biener  <rguenther@suse.de>
8373
8374         PR tree-optimization/70171
8375         * tree-ssa-phiprop.c: Include stor-layout.h.
8376         (phiprop_insert_phi): Handle the aggregate copy case.
8377         (propagate_with_phi): Likewise.
8378
8379 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
8380
8381         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
8382         instead of simplify_gen_subreg (... , 0).
8383         (ix86_delegitimize_address): Ditto.
8384         (ix86_split_divmod): Ditto.
8385         (ix86_split_copysign_const): Ditto.
8386         (ix86_split_copysign_var): Ditto.
8387         (ix86_expand_args_builtin): Ditto.
8388         (ix86_expand_round_builtin): Ditto.
8389         (ix86_expand_special_args_builtin): Ditto.
8390         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
8391         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
8392         (udivmodqi4): Ditto.
8393         (absneg splitters): Ditto.
8394         (*jcc_bt<mode>_1): Ditto.
8395
8396 2016-04-19  Richard Biener  <rguenther@suse.de>
8397
8398         PR tree-optimization/70724
8399         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
8400         restoring out from ...
8401         (free_scc_vn): ... here.
8402         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
8403         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
8404         tail merging.
8405         (pass_fre::execute): Restore SSA info.
8406
8407 2016-04-19  Richard Biener  <rguenther@suse.de>
8408
8409         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
8410         * gimple-walk.c (walk_gimple_op): Initialize it.
8411         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
8412         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
8413         remapping SSA names of defs.
8414         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
8415         adjustment.
8416
8417 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
8418
8419         PR middle-end/70689
8420         * lra-constraints.c (equiv_substition_p): New.
8421         (process_alt_operands): Use it.
8422         (swap_operands): Swap it.
8423         (curr_insn_transform): Update it.
8424
8425 2016-04-18  Michael Matz  <matz@suse.de>
8426
8427         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
8428         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
8429         * tree-core.h (tree_type_common.align): Use bit-field.
8430         (tree_type_common.spare): New.
8431         (tree_decl_common.off_align): Make smaller.
8432         (tree_decl_common.align): Use bit-field.
8433
8434         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
8435         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
8436         (scan_sharing_clauses): Ditto.
8437         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
8438         (omp_finish_file): Ditto.
8439         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
8440         (layout_decl): Ditto.
8441         (relayout_decl): Ditto.
8442         (finalize_record_size): Use SET_TYPE_ALIGN.
8443         (finalize_type_size): Ditto.
8444         (finish_builtin_struct): Ditto.
8445         (layout_type): Ditto.
8446         (initialize_sizetypes): Ditto.
8447         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
8448         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
8449         (lookup_field_for_decl): Use SET_DECL_ALIGN.
8450         (get_chain_field): Ditto.
8451         (get_trampoline_type): Ditto.
8452         (get_nl_goto_field): Ditto.
8453         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
8454         SET_DECL_ALIGN.
8455         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
8456         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
8457         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
8458         (build_qualified_type): Use SET_TYPE_ALIGN.
8459         (build_aligned_type, build_range_type_1): Ditto.
8460         (build_atomic_base): Ditto.
8461         (build_common_tree_nodes): Ditto.
8462         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
8463         (expand_one_stack_var_at): Ditto.
8464         * coverage.c (build_var): Use SET_DECL_ALIGN.
8465         * except.c (init_eh): Ditto.
8466         * function.c (assign_parm_setup_block): Ditto.
8467         * symtab.c (increase_alignment_1): Ditto.
8468         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
8469         * tree-vect-stmts.c (ensure_base_align): Ditto.
8470         * varasm.c (align_variable): Ditto.
8471         (assemble_variable): Ditto.
8472         (build_constant_desc): Ditto.
8473         (output_constant_def_contents): Ditto.
8474
8475         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
8476         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
8477         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
8478         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
8479         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
8480
8481 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
8482
8483         PR target/70708
8484         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
8485         replace %vmovsd with "%vmovq".
8486         (vec_concatv2df): Likewise.
8487
8488 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
8489
8490         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
8491         (*vec_extractv2si_0): Ditto.
8492         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
8493         (zero_extended_scalar_load_operand splitters): Ditto.
8494         (vec_extract splitters): Ditto.
8495         (*vec_extractv4si_0_zext): Ditto.
8496         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
8497         and lowpart_subreg.
8498         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
8499         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
8500         (*sse4_1_extractps): Use lowpart_subreg.
8501         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
8502
8503 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8504
8505         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
8506         gld requirements.
8507         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
8508         Mention Solaris 11 packaging changes.
8509         Update gas and gld requirements.
8510         Remove reference to pre-Solaris 10 bug.
8511         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
8512         systems and bugs.
8513         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
8514         with cc.
8515
8516 2016-04-17  Jan Hubicka  <jh@suse.cz>
8517
8518         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
8519         max_loop_iterations_int.
8520
8521 2016-04-18  Richard Biener  <rguenther@suse.de>
8522
8523         PR tree-optimization/43434
8524         * tree-ssa-structalias.c (struct vls_data): New.
8525         (visit_loadstore): Handle all pointer-based accesses.
8526         (compute_dependence_clique): Compute a bitmap of restrict tags
8527         assigned bases and pass it to visit_loadstore.
8528
8529 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
8530
8531         PR target/70711
8532         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
8533         armv8.1-a and armv8.1-a+crc.
8534
8535 2016-04-18  Richard Biener  <rguenther@suse.de>
8536
8537         PR tree-optimization/70701
8538         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
8539         references after translating through a memcpy.
8540
8541 2016-04-18  Richard Biener  <rguenther@suse.de>
8542
8543         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
8544         (compute_antic): ... here.  For partial antic use regular
8545         postorder and scrap iteration.
8546         (compute_partial_antic_aux): Remove unused return value.
8547         (init_pre): Do not allocate postorder.
8548         (fini_pre): Do not free postorder.
8549
8550 2016-04-18  Richard Biener  <rguenther@suse.de>
8551
8552         PR middle-end/37870
8553         * expmed.c (extract_bit_field_1): Remove broken case
8554         using a wider MODE_INT mode.
8555
8556 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
8557
8558         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
8559         unless compiling with at least GCC-4.8.
8560
8561 2016-04-17  Jan Hubicka  <jh@suse.cz>
8562
8563         PR bootstrap/70706
8564         * graphite.c (graphite_finalize): Update call to
8565         tree_estimate_probability.
8566         * predict.h (tree_estimate_probability): Update prototype.
8567
8568 2016-04-17  Jan Hubicka  <jh@suse.cz>
8569
8570         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
8571         (tree_estimate_probability): Likewise.
8572         (pass_profile::execute): Update.
8573         (report_predictor_hitrates): New function.
8574         * profile.c (compute_branch_probabilities): Use it.
8575         * predict.h (report_predictor_hitrates): Declare.
8576
8577 2016-04-17  Jan Hubicka  <jh@suse.cz>
8578
8579         PR ipa/70018
8580         * cgraph.h (cgraph_node::set_const_flag,
8581         cgraph_node::set_pure_flag): Update prototype to return bool;
8582         update comment.
8583         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
8584         of interposable symbol are interposable, too.
8585         (cgraph_set_const_flag_1): Rename to ...
8586         (set_const_flag_1): ... this one; change to self recursive function
8587         instead of call_for_symbol_thunks_and_aliases. Handle correctly
8588         clearnig the flag in all variants and also virtual thunks of const
8589         functions are pure; track if any change was done.
8590         (cgraph_node::set_const_flag): Update.
8591         (struct set_pure_flag_info): New struct.
8592         (cgraph_set_pure_flag_1): Rename to ...
8593         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
8594         rather than pointer encoded flags; track if any changes was done;
8595         handle correctly clearning flag and setting flag of aliases already
8596         declared const.
8597         (cgraph_node::set_pure_flag): Update.
8598         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
8599
8600 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8601
8602         PR other/70433
8603         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
8604         backslash in label.
8605
8606 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8607
8608         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
8609         '{}<> ' as escape-for-record.
8610
8611 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8612
8613         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
8614         structure.
8615
8616 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8617
8618         PR other/70185
8619         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
8620         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
8621         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
8622         * passes.c (finish_optimization_passes): Only call
8623         finish_graph_dump_file if dfi->graph_dump_initialized.
8624         (execute_function_dump, pass_init_dump_file): Use
8625         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
8626
8627 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8628
8629         PR tree-optimization/70256
8630         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
8631         (debug_varmap): New function.
8632
8633 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8634
8635         PR other/70183
8636         * passes.c (pass_manager::register_pass): Propagate pflags.
8637
8638 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8639
8640         PR other/68875
8641         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
8642         * passes.c (pass_manager::pass_manager): Declare and init p_start in
8643         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
8644         check if it's equal to p_start.
8645         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
8646
8647 2016-04-15  Jan Hubicka  <jh@suse.cz>
8648
8649         PR ipa/70018
8650         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
8651         function does not bind to current def.
8652         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
8653         handle conservatively calls to functions that does not need to bind
8654         to current def.
8655         (check_call): Update call of worse_state.
8656         (ignore_edge_for_nothrow): Update.
8657         (ignore_edge_for_pure_const): Likewise.
8658         (propagate_pure_const): Update calls to worse_state.
8659         (skip_function_for_local_pure_const): Reformat comments.
8660
8661 2016-04-15  Jan Hubicka  <jh@suse.cz>
8662
8663         PR ipa/70018
8664         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
8665         (cgraph_node::function_symbol): Likewise.
8666         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
8667         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
8668         (symtab_node::ultimate_alias_target): Add REF parameter.
8669         (symtab_node::binds_to_current_def_p): Declare.
8670         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
8671         (cgraph_node::function_symbol): Likewise.
8672         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
8673         (cgraph_node::get_availability): Likewise.
8674         (cgraph_edge::binds_to_current_def_p): New inline function.
8675         (varpool_node::get_availability): Add REF parameter.
8676         (varpool_node::ultimate_alias_target): Likewise.
8677         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
8678         (symtab_node::binds_to_current_def_p): Likewise.
8679         * varpool.c (varpool_node::get_availability): Likewise.
8680
8681 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
8682
8683         PR target/70662
8684         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
8685         Fix mode size check.
8686
8687 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
8688
8689         * BASE-VER: Set to 7.0.0.
8690
8691 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
8692
8693         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
8694
8695 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8696
8697         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
8698         architecture revisions.
8699
8700 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
8701
8702         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
8703         * config/i386/i386.c (ix86_using_red_zone): No longer static.
8704         * config/i386/i386.md (stack decrement to push peepholes): Guard
8705         with !x86_using_red_zone ().
8706
8707 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
8708
8709         PR c++/70675
8710         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
8711         to dump_generic_node.
8712         (NIY): Pass also flags to do_niy.
8713
8714 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
8715
8716         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
8717         (simd_clone_vector_of_formal_parm_types)
8718         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
8719         (simd_clone_mangle, simd_clone_create)
8720         (simd_clone_adjust_return_type, create_tmp_simd_array)
8721         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
8722         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
8723         (ipa_simd_modify_function_body, simd_clone_linear_addend)
8724         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
8725         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
8726         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
8727         * omp-simd-clone.c: ... this new file.
8728         (simd_clone_vector_of_formal_parm_types): Make it static.
8729         * Makefile.in (OBJS): Add omp-simd-clone.o.
8730
8731 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
8732
8733         PR target/70662
8734         * config/i386/sse.md: Use proper memory operand modifiers.
8735
8736
8737 2016-04-15  Richard Biener  <rguenther@suse.de>
8738         Alan Modra  <amodra@gmail.com>
8739
8740         PR tree-optimization/70130
8741         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
8742         when alignment stays not the same and no not use the realign
8743         scheme then.
8744
8745 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8746
8747         PR target/70669
8748         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
8749         direct move handlers for KFmode. Change TFmode handlers test from
8750         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
8751
8752 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
8753
8754         PR c++/70594
8755         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
8756         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
8757         (inlined_polymorphic_ctor_dtor_block_p): Use it.
8758         * tree-ssa-live.c (remove_unused_scope_block_p): When
8759         in_ctor_dtor_block, avoid discarding not just BLOCKs with
8760         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
8761         block_ultimate_origin is FUNCTION_DECL.
8762         (remove_unused_locals): If current_function_decl is
8763         polymorphic_ctor_dtor_p, pass initial true to
8764         remove_unused_scope_block_p' is_ctor_dtor_block.
8765
8766 2016-04-14  Martin Sebor  <msebor@redhat.com>
8767
8768         PR c++/69517
8769         PR c++/70019
8770         PR c++/70588
8771         * doc/extend.texi (Variable Length): Revert.
8772
8773 2016-04-14  Marek Polacek  <polacek@redhat.com>
8774             Jan Hubicka  <hubicka@ucw.cz>
8775
8776         PR c++/70029
8777         * tree.c (verify_type): Disable the canonical type of main variant
8778         check.
8779
8780 2016-04-14  Jason Merrill  <jason@redhat.com>
8781
8782         * cfgexpand.c, expr.c: Revert previous change.
8783
8784 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
8785
8786         PR middle-end/70643
8787         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
8788         when building a mem ref for the incoming reduction variable.
8789
8790 2016-04-14  Richard Biener  <rguenther@suse.de>
8791
8792         PR tree-optimization/70614
8793         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
8794         loop if the evolution dropped to chrec_dont_know.
8795         (interpret_condition_phi): Likewise.
8796
8797 2016-04-14  Richard Biener  <rguenther@suse.de>
8798
8799         PR tree-optimization/70623
8800         * tree-ssa-pre.c (changed_blocks): Make global ...
8801         (compute_antic): ... local here.  Move and fix worklist
8802         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
8803         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
8804         worklist handling, dump when ANTIC_IN changed.
8805         (compute_partial_antic_aux): Remove worklist handling.
8806         (init_pre): Do not compute post dominators.  Add a comment about
8807         the CFG order chosen.
8808         (fini_pre): Do not free post dominators.
8809
8810 2016-04-13  Martin Sebor  <msebor@redhat.com>
8811
8812         PR c++/69517
8813         PR c++/70019
8814         PR c++/70588
8815         * doc/extend.texi (Variable Length): Document C++ specifics.
8816
8817 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
8818
8819         PR c++/70641
8820         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
8821         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
8822         eh edges have been purged.
8823
8824         PR c++/70594
8825         * tree-sra.c (create_access_replacement,
8826         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
8827         gets fancy name.
8828         * tree-pretty-print.c (dump_fancy_name): New function.
8829         (dump_decl_name, dump_generic_node): Use it.
8830
8831 2016-04-13  Jason Merrill  <jason@redhat.com>
8832
8833         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
8834         * expr.c (expand_expr_real_1): Likewise.
8835
8836 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
8837
8838         * config/i386/i386.md (kunpckhi): Swap operands.
8839         (kunpcksi): Likewise.
8840         (kunpckdi): Likewise.
8841         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
8842         (vec_pack_trunc_<mode>): Likewise.
8843
8844 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
8845
8846         PR debug/70628
8847         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
8848
8849         PR middle-end/70633
8850         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
8851         gimplification turns some element into non-constant.
8852
8853         PR debug/70628
8854         * rtl.h (convert_memory_address_addr_space_1): New prototype.
8855         * explow.c (convert_memory_address_addr_space_1): No longer static,
8856         add NO_EMIT argument and don't call convert_modes if true, pass
8857         it down recursively, remove break after return.
8858         (convert_memory_address_addr_space): Adjust caller.
8859         * simplify-rtx.c (simplify_unary_operation_1): Call
8860         convert_memory_address_addr_space_1 instead of convert_memory_address,
8861         if it returns NULL, don't simplify.
8862
8863 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
8864
8865         PR target/70630
8866         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
8867
8868 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8869
8870         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8871         Bump the upper SIMDLEN limits, so that if the return type or
8872         characteristic type if the return type is void can be passed in
8873         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
8874         allowed.
8875
8876 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8877
8878         PR target/70640
8879         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
8880         Do not use "=" constraint on an input constraint.
8881         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
8882         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
8883         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
8884         generates (neg (abs ...)) instead of (abs ...).
8885
8886 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8887
8888         PR rtl-optimization/70596
8889         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
8890         just invalidate LRA data and reset them.  Adjust dump wording.
8891
8892 2016-04-12  Martin Liska  <mliska@suse.cz>
8893
8894         Revert
8895         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
8896
8897         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
8898         estimates here.
8899         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
8900         max_loop_iterations_int.
8901         (tree_unswitch_outer_loop): Likewise.
8902         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
8903         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8904
8905 2016-04-12  Tom de Vries  <tom@codesourcery.com>
8906
8907         PR tree-optimization/68756
8908         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
8909         instead of new_name.
8910
8911 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8912
8913         PR tree-optimization/70602
8914         * tree-sra.c (generate_subtree_copies): Don't write anything into
8915         constant pool decls.
8916
8917         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
8918         regardless whether there are depend clauses or not.
8919
8920 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
8921
8922         PR target/70381
8923         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
8924         target attribute and pragma from changing the -mfloat128
8925         and -mfloat128-hardware options.
8926
8927         * doc/extend.texi (Additional Floating Types): Document PowerPC
8928         __float128 restrictions.
8929
8930 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
8931
8932         PR target/70133
8933         * config/aarch64/driver-aarch64.c
8934         (aarch64_get_extension_string_for_isa_flags): New.
8935         (arch_extension): Rename to...
8936         (aarch64_arch_extension): ...This.
8937         (ext_to_feat_string): Rename to...
8938         (aarch64_extensions): ...This.
8939         (aarch64_core_data): Keep track of architecture extension flags.
8940         (cpu_data): Rename to...
8941         (aarch64_cpu_data): ...This.
8942         (aarch64_arch_driver_info): Keep track of architecture extension
8943         flags.
8944         (get_arch_name_from_id): Rename to...
8945         (get_arch_from_id): ...This, change return type.
8946         (host_detect_local_cpu): Update and reformat for renames, handle
8947         extensions through common infrastructure.
8948
8949 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
8950
8951         PR target/70133
8952         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
8953         track of a canonical flag name.
8954         (all_extensions): Likewise.
8955         (arch_to_arch_name): Also track extension flags enabled by the arch.
8956         (all_architectures): Likewise.
8957         (aarch64_parse_extension): Move to here.
8958         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
8959         rework.
8960         (aarch64_rewrite_selected_cpu): Update for above change.
8961         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
8962         are handled, such that the single explicit value enabled by an
8963         extension is kept seperate from the implicit values it also enables.
8964         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
8965         to here.
8966         (aarch64_parse_extension): New.
8967         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
8968         here to config/aarch64/aarch64-protos.h.
8969         (aarch64_parse_extension): Move from here to
8970         common/config/aarch64/aarch64-common.c.
8971         (aarch64_option_print): Update.
8972         (aarch64_declare_function_name): Likewise.
8973         (aarch64_start_file): Likewise.
8974         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
8975         the canonical flag for extensions.
8976         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
8977         flags.
8978
8979 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
8980
8981         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
8982         AARCH64_FL_CRC.
8983
8984 2016-04-09  Tom de Vries  <tom@codesourcery.com>
8985
8986         PR tree-optimization/68953
8987         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
8988         first to last subscript.
8989
8990 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
8991
8992         PR tree-optimization/70586
8993         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
8994         for any calls.
8995
8996 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
8997
8998         PR lto/70289
8999         PR ipa/70348
9000         PR tree-optimization/70373
9001         PR middle-end/70533
9002         PR middle-end/70534
9003         PR middle-end/70535
9004         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
9005         clauses for acc parallel reductions as necessary.  Error on those
9006         that are private.
9007         * omp-low.c (scan_sharing_clauses): Don't install variables which
9008         are used in acc parallel reductions.
9009         (lower_rec_input_clauses): Remove dead code.
9010         (lower_oacc_reductions): Add support for reference reductions.
9011         (lower_reduction_clauses): Remove dead code.
9012         (lower_omp_target): Don't remap variables appearing in acc parallel
9013         reductions.
9014         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
9015
9016 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
9017
9018         PR middle-end/70593
9019         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
9020         with multiple SSA_NAME defs, force the outputs other than first
9021         to be live before calling live_track_process_def on each output.
9022
9023         PR rtl-optimization/70574
9024         * fwprop.c (forward_propagate_and_simplify): Don't add
9025         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
9026         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
9027         paradoxical subregs within *loc.
9028
9029 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
9030
9031         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
9032         -ftree-parallelize-loops={0,1}.
9033         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
9034         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
9035         * config/ia64/hpux.h (LIB_SPEC): Likewise.
9036         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9037         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
9038
9039 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
9040
9041         PR sanitizer/70541
9042         * asan.c (instrument_derefs): If we get unknown location, extract it
9043         with EXPR_LOCATION.
9044         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
9045
9046 2016-04-08  Tom de Vries  <tom@codesourcery.com>
9047
9048         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
9049         implicit firstprivate clause.
9050
9051 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9052
9053         PR target/70566
9054         * config/arm/thumb2.md (tst + branch-> lsls + branch
9055         peephole below *orsi_not_shiftsi_si): Require that condition
9056         register is dead after the peephole.
9057         (second peephole after the above): Likewise.
9058
9059 2016-04-08  Alan Modra  <amodra@gmail.com>
9060
9061         PR target/70117
9062         * builtins.c (fold_builtin_classify): For IBM extended precision,
9063         look at just the high-order double to test for NaN.
9064         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
9065         test just the high double for Inf but both doubles for subnormal
9066         limit.
9067
9068 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
9069
9070         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
9071         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
9072         node->simdclone->mask_mode != VOIDmode masks.
9073         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
9074         earlier, use it instead of node->simdclone.
9075         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
9076         Set clonei->mask_mode.
9077
9078 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
9079
9080         PR c/70436
9081         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
9082         Pass it through to cp_parser_already_scoped_statement.
9083         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
9084         it through to cp_parser_statement.
9085         (cp_parser_statement): Pass IF_P through to
9086         cp_parser_iteration_statement.
9087         (cp_parser_pragma): Adjust call to
9088         cp_parser_iteration_statement.
9089
9090 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
9091
9092         PR c/70436
9093         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
9094         resolve a future -Wparentheses warning.
9095         * omp-low.c (scan_sharing_clauses): Likewise.
9096         * tree-parloops.c (eliminate_local_variables): Likewise.
9097
9098 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
9099
9100         PR rtl-optimization/70398
9101         * lra-constraints.c (process_address_1): Check zero scale and code
9102         for reloading with zero scale.
9103
9104 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
9105
9106         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
9107         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
9108
9109 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
9110
9111         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
9112         Add support for AVX512F clones, include them by default for
9113         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
9114         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
9115         up to 128.
9116
9117         PR middle-end/70550
9118         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
9119         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
9120         firstprivate clauses.
9121         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
9122         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
9123         (lower_omp_target): Set TREE_NO_WARNING for
9124         non-addressable possibly uninitialized vars which are copied into
9125         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
9126
9127 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
9128
9129         * config/pa/predicates.md (integer_store_memory_operand): Accept
9130         REG+D operands with a large offset when reload_in_progress is true.
9131         (floating_point_store_memory_operand): Likewise.
9132
9133 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
9134
9135         PR c++/70336
9136         * match.pd (nested int casts): Limit to GIMPLE.
9137
9138 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
9139
9140         PR ipa/66223
9141         * ipa-devirt.c (maybe_record_node): Fix comment; use
9142         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
9143
9144 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
9145
9146         PR rtl-optimization/70542
9147         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
9148         if there are any uses other than insn or debug insns.
9149
9150 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
9151             Jakub Jelinek  <jakub@redhat.com>
9152
9153         PR tree-optimization/70509
9154         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
9155         Shift HOST_WIDE_INT_1U instead of 1.
9156
9157 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
9158
9159         PR tree-optimization/70509
9160         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
9161         of the vector base type for index.
9162
9163 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
9164
9165         PR target/70510
9166         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
9167
9168 2016-04-05  Richard Biener  <rguenther@suse.de>
9169
9170         PR tree-optimization/70526
9171         * tree-sra.c (build_ref_for_offset): Use prev_base to
9172         extract the alias pointer type.
9173
9174 2016-04-05  Richard Biener  <rguenther@suse.de>
9175
9176         * dse.c (struct store_info): Remove alias_set member.
9177         (struct read_info_type): Likewise.
9178         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
9179         spill_deleted, clear_alias_set_lookup): Remove.
9180         (get_group_info): Remove dead base == NULL_RTX case.
9181         (dse_step0): Remove initialization of removed variables.
9182         (delete_dead_store_insn): Reomve alias set dumping.
9183         (free_read_records): Remove alias_set handling.
9184         (canon_address): Remove alias_set_out parameter.
9185         (record_store): Remove spill_alias_set, it's always zero.
9186         (check_mem_read_rtx): Likewise.
9187         (dse_step2): Rename from ...
9188         (dse_step2_nospill): ... this.  Adjust.
9189         (scan_stores): Rename from ...
9190         (scan_stores_nospill): ... this.
9191         (scan_reads): Rename from ...
9192         (scan_reads_nospill): ... this.
9193         (scan_stores_spill, scan_reads_spill): Remove.
9194         (dse_step3_scan): Remove for_spills argument which is always false.
9195         (dse_step3): Likewise.
9196         (dse_step5): Rename from ...
9197         (dse_step5_nospill): ... this.  Remove alias_set handling.
9198         (rest_of_handle_dse): Adjust.
9199
9200 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
9201
9202         PR target/70525
9203         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
9204         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
9205         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
9206         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
9207
9208 2016-04-05  Richard Biener  <rguenther@suse.de>
9209
9210         PR middle-end/70499
9211         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
9212         non-register type temporaries into SSA.
9213
9214 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
9215
9216         PR ipa/66223
9217         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
9218         calls when sanitizing.
9219         (possible_polymorphic_call_target_p): Fix formatting.
9220
9221 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9222             Jakub Jelinek <jakub@redhat.com>
9223
9224         PR middle-end/70457
9225         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
9226         to ensure a call statement is compatible with a built-in's
9227         prototype.
9228         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
9229         Likewise.
9230
9231 2016-04-04  Richard Biener  <rguenther@suse.de>
9232
9233         PR rtl-optimization/70484
9234         * rtl.h (canon_output_dependence): Declare.
9235         * alias.c (canon_output_dependence): New function.
9236         * dse.c (record_store): Use canon_output_dependence rather
9237         than canon_true_dependence.
9238
9239 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
9240
9241         PR ipa/68881
9242         * cgraph.h (symtab_node::copy_visibility_from): New function.
9243         * symtab.c (symtab_node::copy_visibility_from): New function.
9244         * ipa-visibility.c (optimize_weakref): New function.
9245         (function_and_variable_visibility): Use it.
9246
9247 2016-04-04  Martin Liska  <mliska@suse.cz>
9248
9249         PR hsa/70402
9250         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
9251         value that is really in range handled by SBR instruction.
9252         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
9253         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
9254         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
9255
9256 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
9257
9258         PR target/70416
9259         PR target/67391
9260         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
9261         set, but not for SP_REG operands.
9262
9263 2016-04-02  Martin Sebor  <msebor@redhat.com>
9264
9265         PR c++/67376
9266         * fold-const.c (maybe_nonzero_address): New function.
9267         (fold_comparison): Call it.  Fold equality and relational
9268         expressions involving null pointers.
9269         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
9270
9271 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
9272
9273         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
9274         the "Y" constraint (scalar FP 0.0 immediate).
9275
9276         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
9277         Add the "const_double" to the list of operand constraints.
9278
9279 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
9280
9281         PR rtl-optimization/70467
9282         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
9283         If low word of the last operand is 0, just emit addition/subtraction
9284         for the high word.
9285
9286 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9287
9288         PR target/70404
9289         * config/s390/s390.c (s390_expand_insv): Check for everything
9290         constant instead of just VOIDmode stuff.
9291
9292 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9293
9294         PR target/70496
9295         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
9296
9297 2016-04-01  Nathan Sidwell  <nathan@acm.org>
9298
9299         * tree.def (TRY_CATCH_EXPR): Correct documentation.
9300
9301 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
9302
9303         PR rtl-optimization/70461
9304         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
9305         is necessary.
9306
9307 2016-03-31  Martin Liska  <mliska@suse.cz>
9308
9309         PR hsa/70399
9310         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
9311         a tree value or an immediate integer value to a buffer
9312         that is eventually copied to a BRIG section.
9313         (emit_immediate_operand): Call the function here.
9314         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
9315         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
9316         of class' fields that are removed.
9317         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
9318         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
9319         m_brig_repr_size fields.
9320
9321 2016-03-31  Martin Liska  <mliska@suse.cz>
9322
9323         PR hsa/70391
9324         * hsa-gen.c (hsa_function_representation::update_dominance): New
9325         function.
9326         (convert_addr_to_flat_segment): Likewise.
9327         (gen_hsa_memory_set): New alignment argument.
9328         (gen_hsa_ctor_assignment): Likewise.
9329         (gen_hsa_insns_for_single_assignment): Provide alignment
9330         to gen_hsa_ctor_assignment.
9331         (gen_hsa_insns_for_direct_call): Add new argument.
9332         (expand_lhs_of_string_op): New function.
9333         (expand_string_operation_builtin): Likewise.
9334         (expand_memory_copy): New function.
9335         (expand_memory_set): New function.
9336         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
9337         (convert_switch_statements): Change signature.
9338         (generate_hsa): Use a return value of the function.
9339         (pass_gen_hsail::execute): Do not call
9340         convert_switch_statements here.
9341         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
9342         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
9343         (hsa_function_representation::update_dominance): New function.
9344
9345 2016-03-31  Martin Liska  <mliska@suse.cz>
9346
9347         PR hsa/70391
9348         * hsa-brig.c (emit_directive_variable): Emit alignment
9349         according to hsa_symbol::m_align.
9350         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
9351         (dump_hsa_symbol): Dump alignment of HSA symbols.
9352         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
9353         (gen_hsa_addr_with_align): New function.
9354         (hsa_bitmemref_alignment): Use newly added function.
9355         (gen_hsa_insns_for_load): Likewise.
9356         (gen_hsa_insns_for_store): Likewise.
9357         (gen_hsa_memory_copy): New argument added.
9358         (gen_hsa_insns_for_single_assignment): Respect
9359         alignment for assignments processed via gen_hsa_memory_copy.
9360         (gen_hsa_insns_for_direct_call): Likewise.
9361         (gen_hsa_insns_for_return): Likewise.
9362         (gen_function_def_parameters): Set default alignment.
9363         * hsa.c (hsa_object_alignment): New function.
9364         (hsa_byte_alignment): Pasted function.
9365         * hsa.h (hsa_symbol::m_align): New field.
9366
9367 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
9368
9369         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
9370         scratch field for goto case.
9371
9372 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
9373
9374         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
9375
9376 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
9377
9378         PR target/70442
9379         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
9380         (scalar_chain::convert_insn): Call convert_op for reg
9381         moves to handle undefined registers.
9382
9383 2016-03-31  Nathan Sidwell  <nathan@acm.org>
9384
9385         PR c++/70393
9386         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
9387         Assert we don't want to move backwards.
9388
9389 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
9390
9391         PR target/70453
9392         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
9393
9394 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
9395
9396         PR rtl-optimization/70460
9397         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
9398         with operand from REG_LABEL_OPERAND, instead substitute
9399         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
9400         Don't do anything for REG_NON_LOCAL_GOTO jumps.
9401
9402 2016-03-31  Martin Liska  <mliska@suse.cz>
9403
9404         * passes.c (execute_one_pass): Do not call
9405         todo_after for a discarded function.
9406
9407 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
9408
9409         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
9410         (no_cost, infinite_cost): Initialize the new field.
9411         (get_computation_cost_at): Record setup cost.
9412         (determine_use_iv_cost_address): Skip cost computation for sub
9413         uses if we can estimate it without losing accuracy.
9414
9415 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
9416
9417         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
9418         estimates here.
9419         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
9420         max_loop_iterations_int.
9421         (tree_unswitch_outer_loop): Likewise.
9422         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
9423         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9424
9425 2016-03-30  Richard Biener  <rguenther@suse.de>
9426
9427         PR middle-end/70450
9428         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
9429
9430 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
9431
9432         PR target/70421
9433         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
9434         in gen_blendm expander.
9435
9436 2016-03-30  Nick Clifton  <nickc@redhat.com>
9437
9438         PR target/62254
9439         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
9440         case where we are already provided with an SImode SUBREG.
9441
9442 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
9443
9444         PR target/70439
9445         * config/i386/i386.c (ix86_expand_epilogue): Properly check
9446         conflict between DRAP register and __builtin_eh_return.
9447
9448 2016-03-30  Michael Matz  <matz@suse.de>
9449             Richard Biener  <rguenther@suse.de>
9450
9451         PR ipa/12392
9452         * ipa-polymorphic-call.c (struct type_change_info): Change
9453         speculative to an unsigned allowing to limit the work we do.
9454         (csftc_abort_walking_p): New inline function..
9455         (check_stmt_for_type_change): Limit the number of may-defs
9456         skipped for speculative devirtualization to
9457         max-speculative-devirt-maydefs.
9458         * params.def (max-speculative-devirt-maydefs): New param.
9459         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
9460
9461 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
9462
9463         PR target/63890
9464         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
9465         and TARGET_MACHO.
9466
9467 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
9468
9469         PR tree-optimization/59124
9470         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
9471         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
9472
9473 2016-03-29  Jeff Law  <law@redhat.com>
9474
9475         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
9476
9477 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
9478
9479         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
9480         to HOST_WIDE_INT.
9481
9482 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
9483
9484         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
9485         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
9486         gcrt0.o if linking dynamically.
9487
9488 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
9489
9490         PR ipa/70283
9491         * ipa-devirt.c (methods_equal_p): New function.
9492         (compare_virtual_tables): Use it.
9493         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
9494         * cgraphclones.c (clone_function_name_1): Use
9495         symbol_table::symbol_suffix_separator.
9496         * coverage.c (build_var): Likewise.
9497         * symtab.c (symbol_table::symbol_suffix_separator): New.
9498
9499 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
9500
9501         PR rtl-optimization/70429
9502         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
9503         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
9504         mode != result_mode.
9505
9506         PR c++/70353
9507         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
9508
9509         PR tree-optimization/70405
9510         * ssa-iterators.h (num_imm_uses): Add missing braces.
9511
9512 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
9513
9514         PR rtl-optimization/68695
9515         * ira-color.c (allocno_copy_cost_saving): New.
9516         (improve_allocation): Use it.
9517
9518 2016-03-29  Richard Henderson  <rth@redhat.com>
9519
9520         PR middle-end/70355
9521         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
9522
9523 2016-03-29  Richard Biener  <rguenther@suse.de>
9524
9525         PR middle-end/70424
9526         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
9527         use alignment returned by get_pointer_alignment_1 if it is
9528         bigger than BITS_PER_UNIT.
9529         * builtins.c (get_pointer_alignment_1): Do not return true
9530         for alignment extracted from SSA info.
9531
9532 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
9533
9534         * config/ft32/ft32.opt (mnodiv): New.
9535         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
9536         * doc/invoke.texi (FT32 Options -mnodiv): New.
9537
9538 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
9539
9540         PR target/70406
9541         * config/i386/i386.md (define_split, andn): Fix modes.
9542
9543 2016-03-26  Richard Biener  <rguenther@suse.de>
9544             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9545
9546         PR ipa/70366
9547         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
9548         instead of
9549         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
9550         as 2nd argument to cl_optimization_restore().
9551
9552 2016-03-25  Richard Henderson  <rth@redhat.com>
9553
9554         PR target/70120
9555         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
9556         * config/aarch64/aarch64-protos.h: Declare it.
9557         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
9558
9559 2016-03-25  Alan Modra  <amodra@gmail.com>
9560
9561         PR target/70052
9562         * config/rs6000/constraints.md (j): Simplify.
9563         * config/rs6000/predicates.md (easy_fp_constant): Exclude
9564         decimal float 0.D.
9565         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
9566         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
9567          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
9568         in all constraint alternatives.
9569         (movtd_64bit_nodm): Delete "j" constraint alternative.
9570
9571 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
9572
9573         * tree-ssa-propagate.c: Enhance docs for
9574         SSA_PROP_NOT_INTERESTING.
9575
9576 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
9577
9578         * doc/extend.texi: Fix typo in documentation to pure attribute.
9579
9580 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
9581
9582         PR target/70319
9583         * config/pa/pa.md (bswapdi2): Use a scratch register.
9584
9585 2016-03-24  Richard Henderson  <rth@redhat.com>
9586
9587         PR middle-end/69845
9588         * fold-const.c (extract_muldiv_1): Correct test for multiplication
9589         overflow.
9590
9591 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
9592
9593         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
9594         using ix86_expand_binary_operator instead of gen_andsi3.
9595
9596 2016-03-24  Richard Biener  <rguenther@suse.de>
9597
9598         PR tree-optimization/70396
9599         * tree-vect-stmts.c (vectorizable_comparison): Use
9600         get_vectype_for_scalar_type.
9601
9602 2016-03-24  Richard Biener  <rguenther@suse.de>
9603
9604         PR middle-end/70370
9605         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
9606         with register bases.
9607
9608 2016-03-24  Richard Biener  <rguenther@suse.de>
9609
9610         PR tree-optimization/70372
9611         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
9612         build_all_ones_cst to also handle vector types correctly.
9613
9614 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
9615
9616         PR target/70381
9617         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
9618         -mfloat128 here.
9619
9620 2016-03-23  Marek Polacek  <polacek@redhat.com>
9621
9622         PR c++/69884
9623         * doc/invoke.texi: Document -Wignored-attributes.
9624
9625 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
9626
9627         PR tree-optimization/69042
9628         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
9629         parameter from 30 to 40.
9630
9631 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
9632
9633         PR tree-optimization/69042
9634         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
9635         for use with constant offset stripped in base.
9636
9637 2016-03-23  Richard Biener  <rguenther@suse.de>
9638
9639         PR middle-end/70251
9640         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
9641         mode compatibility check.
9642         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
9643
9644 2016-03-23  Jeff Law  <law@redhat.com>
9645
9646         PR tree-optimization/64058
9647         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
9648         CONFLICT_COUNT.
9649         (struct ssa_conflicts): Move up earlier in the file.
9650         (conflicts_, var_map_): New static variables.
9651         (initialize_conflict_count): New function to initialize the
9652         CONFLICT_COUNT field for each conflict pair.
9653         (compare_pairs): Lazily initialize the conflict count and use it
9654         as the first tie-breaker.
9655         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
9656         and wipe conflicts_ and map_ around the call to qsort.  Remove
9657         special case for 2 coalesce pairs.
9658         * bitmap.c (bitmap_count_unique_bits): New function.
9659         (bitmap_count_bits_in_word): New function, extracted from
9660         bitmap_count_bits.
9661         (bitmap_count_bits): Use bitmap_count_bits_in_word.
9662         * bitmap.h (bitmap_count_unique_bits): Declare it.
9663
9664 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
9665
9666         PR target/69917
9667         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
9668         transparent alias chain for decl assembler name.
9669         * config/sol2.c (solaris_assemble_visibility): Likewise.
9670
9671 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9672
9673         * config/arm/arm1020e.md (1020call_op): Reduce reservation
9674         duration.
9675         (v10_fdivs): Likewise.
9676         (v10_fdivd): Likewise.
9677
9678 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9679
9680         PR driver/70132
9681         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
9682         to not call fclose twice on file.
9683
9684 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
9685
9686         PR tree-optimization/70354
9687         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
9688         oprnd0 is wider than oprnd1 and there is a cast from the wider
9689         type to oprnd1, mask it with the mask of the narrower type.
9690
9691         PR target/70321
9692         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
9693         Optimize TARGET_STV splitters, if high or low word of last argument
9694         is 0 or -1.
9695
9696 2016-03-22  Jeff Law  <law@redhat.com>
9697
9698         PR target/70232
9699         tree-ssa-threadbackward.c
9700         (fsm_find_control_statement_thread_paths): Correctly distinguish
9701         between old style jump threads vs FSM jump threads.
9702
9703 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
9704
9705         PR target/70302
9706         * config/i386/i386.c (scalar_chain::convert_op): Support
9707         uninitialized register usage case.
9708
9709 2016-03-22  Richard Biener  <rguenther@suse.de>
9710
9711         PR middle-end/70251
9712         * genmatch.c (gen_transform): Adjust last parameter to a three-state
9713         int...
9714         (capture::gen_transform): ... to change behavior when substituting
9715         a condition into cond or not-cond expr context.
9716         (dt_simplify::gen_1): Adjust.
9717         * gimple-match-head.c: Include gimplify.h for unshare_expr.
9718         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
9719         last change and instead change to
9720         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
9721         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
9722
9723 2016-03-22  Anthony Green  <green@moxielogic.com>
9724
9725         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
9726         issue for moxiebox targets.
9727         (CC1PLUS_SPEC): Ditto.
9728
9729 2016-03-22  Richard Biener  <rguenther@suse.de>
9730
9731         PR middle-end/70333
9732         * fold-const.c (extract_muldiv_1): Properly perform multiplication
9733         in the wide type.
9734
9735 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9736
9737         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
9738
9739 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9740
9741         PR target/70325
9742         * config/i386/i386.c (def_builtin): Handle
9743         OPTION_MASK_ISA_AVX512VL to be and-ed with other
9744         bits.
9745         (const struct builtin_description bdesc_special_args[]):
9746         Remove duplicate ISA bits.
9747
9748 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
9749
9750         PR target/70329
9751         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
9752         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
9753         in a way that works also for AVX512BW.
9754
9755         PR target/70300
9756         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
9757         instead of source if operands[1] is xmm16 and above and
9758         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
9759         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
9760
9761         PR c++/70295
9762         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
9763         on assign if (*from_p) is a comparison, set it to
9764         TREE_NO_WARNING (*from_p).
9765
9766 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
9767
9768         PR middle-end/70326
9769         * lra.c (restore_scratches): Ignore deleted insns.
9770
9771 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
9772             Jakub Jelinek  <jakub@redhat.com>
9773
9774         PR tree-optimization/70317
9775         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
9776         to HONOR_NANS.
9777
9778 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
9779
9780         PR target/70327
9781         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
9782         of ix86_expand_move.
9783         (movoi): Ditto.
9784         (movti): Use general_operand for operand 1 predicate.
9785
9786 2016-03-21  Martin Liska  <mliska@suse.cz>
9787
9788         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
9789         insns.
9790         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
9791
9792 2016-03-21  Martin Liska  <mliska@suse.cz>
9793
9794         PR ipa/70306
9795         * ipa-icf.c (sem_function::parse): Skip static
9796         constructors and destructors.
9797
9798 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
9799
9800         PR target/70296
9801         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
9802         function-like macro, peek following token(s) if it is followed
9803         by CPP_OPEN_PAREN token with optional padding in between, and
9804         if not, don't treat it like a macro.
9805
9806 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9807             Alexander Monakov  <amonakov@ispras.ru>
9808
9809         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
9810         for the stabs debug format.
9811
9812 2016-03-21  Richard Biener  <rguenther@suse.de>
9813
9814         PR tree-optimization/70310
9815         * tree-vect-generic.c (expand_vector_condition): Fold the built
9816         condition.
9817
9818 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
9819
9820         PR target/70293
9821         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
9822         Block third alternative for AVX-512VL target,
9823
9824 2016-03-21  Martin Liska  <mliska@suse.cz>
9825
9826         PR hsa/70234
9827         * hsa-brig.c (emit_function_directives): Mark unemitted
9828         global variables for emission.
9829         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
9830         (get_symbol_for_decl): Likewise.
9831         * hsa.h (struct hsa_symbol): New flag.
9832
9833 2016-03-21  Richard Biener  <rguenther@suse.de>
9834
9835         PR tree-optimization/70288
9836         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
9837         we do not estimate unsimplified all-constant conditionals or
9838         switches as optimized away.
9839
9840 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
9841
9842         PR rtl-optimization/69102
9843         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
9844         when we have a readonly dependency context.
9845
9846 2016-03-18  Jeff Law  <law@redhat.com>
9847
9848         PR rtl-optimization/70263
9849         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
9850         (update_equiv_regs): When trying to move a store to after the insn
9851         that sets the source of the store, make sure the store occurs after
9852         the insn that sets the source of the store.  When successful note
9853         the REG_EQUIV note created in the dump file.
9854
9855 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
9856             Bernd Schmidt  <bschmidt@redhat.com>
9857
9858         * doc/extend.texi: Document more potential problems with basic asms.
9859
9860 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
9861
9862         PR rtl-optimization/70278
9863         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
9864         VOIDmode.
9865
9866 2016-03-18  Jason Merrill  <jason@redhat.com>
9867
9868         * calls.c (load_register_parameters): Fix zero size sibcall logic.
9869
9870 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
9871
9872         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
9873         values to 128b regs.
9874
9875 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9876
9877         PR tree-optimization/70252
9878         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
9879         boolean vector has a proper number of elements.
9880         (supportable_narrowing_operation): Likewise.
9881
9882 2016-03-18  Tom de Vries  <tom@codesourcery.com>
9883
9884         PR ipa/70269
9885         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
9886
9887 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
9888
9889         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
9890         instead of replace_rtx for DEBUG_INSNs.
9891
9892 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9893
9894         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
9895         load type reservations.
9896
9897 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
9898
9899         PR target/70188
9900         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
9901         define_constraint for "Q" and "T" constraints.
9902
9903 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
9904
9905         Tweak the pipeline model for Exynos M1
9906
9907         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
9908         model.
9909
9910 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
9911
9912         PR c/70264
9913         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
9914         where one or both locations aren't within a line_map.
9915
9916 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9917
9918         PR driver/70192
9919         * opts.c (finish_options): Don't set flag_pie to the default if
9920         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
9921         if it is -1.
9922
9923 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
9924
9925         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
9926         true as ALL_REGS argument to replace_rtx.
9927
9928 2016-03-17  Richard Biener  <rguenther@suse.de>
9929
9930         PR debug/70271
9931         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
9932         last.
9933
9934 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
9935
9936         PR target/70245
9937         * rtl.h (replace_rtx): Add ALL_REGS argument.
9938         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
9939         equality and assert mode is the same, instead of just rtx pointer
9940         equality.
9941         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
9942         true as ALL_REGS argument to replace_rtx.
9943
9944 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
9945
9946         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
9947         for boolean vector with vector mode only.
9948         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
9949
9950 2016-03-17  Nick Clifton  <nickc@redhat.com>
9951
9952         PR target/70162
9953         * config/rx/rx.c (rx_print_integer): Print negative constants in
9954         decimal.
9955
9956 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
9957
9958         PR target/70261
9959         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
9960
9961 2016-03-16  Richard Henderson  <rth@redhat.com>
9962             Richard Biener  <rguenth@suse.de>
9963
9964         PR middle-end/70240
9965         PR middle-end/68215
9966         PR tree-opt/68714
9967         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
9968         first operand as is_gimple_condexpr.
9969
9970         PR middle-end/70240
9971         PR middle-end/68215
9972         Revert r231575
9973         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
9974         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
9975         Do not gimplify the result.
9976         (do_unop): Adjust call to tree_vec_extract.
9977         (do_binop): Likewise.
9978         (do_compare): Likewise.
9979         (do_plus_minus): Likewise.
9980         (do_negate): Likewise.
9981         (expand_vector_condition): Likewise.
9982         (do_cond): Likewise.
9983
9984 2016-03-16  Richard Henderson  <rth@redhat.com>
9985
9986         PR target/70048
9987         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
9988         (aarch64_classify_address): Use it.
9989         (aarch64_legitimize_address): Force all subexpressions of PLUS
9990         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
9991
9992 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
9993             Richard Biener  <rguenth@suse.de>
9994
9995         PR target/70245
9996         * rtlanal.c (replace_rtx): For REG, if from is a REG,
9997         return to even if only REGNO is equal, and assert
9998         mode is the same.
9999
10000 2016-03-11  Jeff Law  <law@redhat.com>
10001
10002         PR rtl-optimization/70224
10003         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
10004
10005 2016-03-16  Richard Henderson  <rth@redhat.com>
10006
10007         PR middle-end/70199
10008         * function.h (struct function): Add has_forced_label_in_static.
10009         * gimplify.c (force_labels_r): Set it.
10010         * lto-streamer-in.c (input_struct_function_base): Read it.
10011         * lto-streamer-out.c (output_struct_function_base): Write it.
10012         * tree-inline.c (has_label_address_in_static_1): Remove.
10013         (copy_forbidden): Remove fndecl parameter; test
10014         has_forced_label_in_static.
10015         (inline_forbidden_p): Update call to copy_forbidden.
10016         (tree_versionable_function_p): Likewise.
10017         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
10018         (chkp_versioning): Likewise.
10019         * tree-inline.h (copy_forbidden): Update decl.
10020
10021 2016-03-16  Marek Polacek  <polacek@redhat.com>
10022
10023         PR c/70093
10024         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
10025         function being thunked if the result type doesn't have fixed size.
10026         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
10027         doesn't have fixed size.
10028
10029 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
10030
10031         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
10032         reporting malformed loop nest.
10033
10034 2016-03-16  Tom de Vries  <tom@codesourcery.com>
10035
10036         PR lto/70187
10037         * ipa-devirt.c (possible_polymorphic_call_targets): Move
10038         nodes.length () == 1 test to before first nodes[0] access.
10039
10040 2016-03-16  Tom de Vries  <tom@codesourcery.com>
10041
10042         PR tree-optimization/68715
10043         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
10044         single_pred_p test.
10045
10046 2016-03-16  Tom de Vries  <tom@codesourcery.com>
10047
10048         PR tree-optimization/68809
10049         * graphite-scop-detection.c (same_close_phi_node): Test if result types
10050         are the same.
10051
10052 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
10053             Sandra Loosemore  <sandra@codesourcery.com>
10054
10055         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
10056         on leaf attribute. Mention ELF interposition problems.
10057
10058 2016-03-16  Alan Modra  <amodra@gmail.com>
10059
10060         PR rtl-optimization/69195
10061         PR rtl-optimization/47992
10062         * ira.c (indirect_jump_optimize): Ignore artificial defs.
10063         Add comments.
10064
10065 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
10066
10067         PR bootstrap/69513
10068         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
10069
10070 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10071
10072         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
10073
10074 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
10075
10076         PR rtl-optimization/70222
10077         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
10078         optimization if mode is different from result_mode, queue up masking
10079         of the result in outer_op.  Formatting fix.
10080
10081         PR middle-end/70239
10082         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
10083         of safe_grow.
10084
10085 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
10086
10087         PR rtl-optimization/69032
10088         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
10089         looping backwards over basic block insns.
10090
10091 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
10092
10093         PR target/66660
10094         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
10095         to non-speculative when propagating trap bits.
10096
10097 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
10098
10099         PR rtl-optimization/63384
10100         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
10101         DEBUG_INSN_P insns.
10102
10103 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
10104
10105         PR target/64411
10106         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
10107         factored out from ...
10108         (sched_analyze_insn): ... here.
10109         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
10110         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
10111         get_implicit_reg_pending_clobbers in it.
10112         (setup_id_reg_sets): Use setup_id_implicit_regs.
10113         (deps_init_id): Ditto.
10114
10115 2016-03-15  Tom de Vries  <tom@codesourcery.com>
10116
10117         PR ipa/70161
10118         * cgraph.c (cgraph_node::get_body): Save, reset and restore
10119         dump_file_name.
10120         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
10121         execute_function_dump.
10122         (execute_one_pass): Don't dump function if it will be dumped after ipa
10123         transform.
10124
10125 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
10126
10127         * genrecog.c (match_pattern_2): If pred is NULL don't call
10128         safe_predicate_mode on it.
10129
10130 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
10131
10132         PR middle-end/70219
10133         * lra-constraints.c (delete_move_and_clobber): Change assertion
10134         to also allow dregno == 0.
10135
10136 2016-03-14  Richard Henderson  <rth@redhat.com>
10137
10138         PR tree-opt/68714
10139         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
10140         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
10141         (reassociate_bb): Use optimize_vec_cond_expr; avoid
10142         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
10143         on vectors.
10144
10145 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
10146
10147         PR target/70083
10148         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
10149         regs.
10150         (lra_create_live_ranges_1): initialize hard register biggest_mode to
10151         VOIDmode.
10152         * lra-constraints.c (split_reg): For hard regs, try to find the
10153         biggest single-register mode used in the function.
10154
10155 2016-03-14  Richard Biener  <rguenther@suse.de>
10156
10157         PR tree-optimization/56365
10158         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
10159         constants to compare against.
10160
10161 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
10162
10163         PR target/70098
10164         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
10165         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
10166         (define_split for the GPR case): Use int_reg_operand instead of
10167         gpc_reg_operand for the output.
10168
10169 2016-03-14  Tom de Vries  <tom@codesourcery.com>
10170
10171         PR tree-optimization/70045
10172         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
10173         create_empty_if_region_on_edge argument.
10174
10175 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
10176
10177         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
10178         (STACK_CHECK_PROTECT): Likewise.
10179         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
10180         (STACK_CHECK_PROTECT): Likewise.
10181         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
10182         (STACK_CHECK_PROTECT): Likewise.
10183         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
10184         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10185         (STACK_CHECK_PROTECT): Likewise.
10186
10187 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
10188
10189         PR rtl-optimization/69307
10190         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
10191         registers in modes that span more than one register.
10192
10193 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
10194
10195         PR target/69614
10196         * lra-constraints.c (delete_move_and_clobber): New.
10197         (remove_inheritance_pseudos): Use it.
10198
10199 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
10200
10201         PR ada/70017
10202         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
10203         the libcall is LCT_THROW.
10204         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
10205         for the checking routine.
10206
10207 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
10208
10209         PR target/70131
10210         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
10211         optimization if we have direct move.
10212         (roundu32<mode>2_fprs): Likewise.
10213
10214 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
10215
10216         PR target/70123
10217         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
10218         be rematerialized.
10219         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
10220         Arguments swapped.  All callers changed.  Take reg_renumber into
10221         account, and Calculate and compare register ranges for hard regs.
10222
10223 2016-03-11  Jeff Law  <law@redhat.com>
10224
10225         PR tree-optimization/70190
10226         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10227         Handle cases where we can not extract the taken edge, even though we
10228         found a constant value.
10229
10230         PR tree-optimization/64058
10231         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
10232         (num_coalesce_pairs): Move up earlier in file.
10233         (find_coalesce_pair): Initialize the INDEX field for each pair
10234         discovered.
10235         (compare_pairs): No longer sort on the elements in each pair.
10236         Instead break ties with the index of the coalesce pair.
10237
10238 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10239
10240         PR target/70002
10241         * config/aarch64/aarch64-protos.h
10242         (aarch64_save_restore_target_globals): New prototype.
10243         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
10244         Call the above when popping pragma.
10245         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
10246         New function.
10247         (aarch64_set_current_function): Rewrite using the above.
10248
10249 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
10250
10251         PR tree-optimization/70177
10252         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
10253         (extract_ops_from_tree): ... this.  In the 2 argument
10254         overload remove _1 suffix.
10255         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
10256         (extract_ops_from_tree): ... this.
10257         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
10258         Adjust callers.
10259         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
10260         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
10261         extract_ops_from_tree instead of 2 operand one.
10262
10263 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
10264
10265         PR tree-optimization/70013
10266         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
10267         for constant-pool entries.
10268
10269 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
10270
10271         PR rtl-optimization/70174
10272         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
10273         followed by gen_lowpart on force_reg instead of just gen_lowpart.
10274
10275         PR tree-optimization/70169
10276         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
10277         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
10278         for unknown codes.
10279
10280 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
10281             Jakub Jelinek  <jakub@redhat.com>
10282
10283         PR target/70160
10284         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
10285         of uninitialized values.
10286
10287 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10288
10289         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
10290         define_expand.
10291         ("*trunctddd2"): New pattern definition.
10292         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
10293         TD->DD truncation.
10294
10295 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10296
10297         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
10298         definitions for BFP and DFP rounding modes.
10299         ("fixuns_truncdddi2", "fixuns_trunctddi2")
10300         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
10301         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
10302         ("fix_trunctf<mode>2"): Use the new constants instead of magic
10303         numbers.
10304
10305 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10306
10307         * config/s390/constraints.md: Adjust comment.
10308         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
10309         s390_decompose_addrstyle_without_index.
10310         * config/s390/predicates.md (shift_count_or_setmem_operand):
10311         Rename to setmem_operand.
10312         * config/s390/s390-protos.h
10313         (s390_decompose_shift_count): Rename to
10314         s390_decompose_addrstyle_without_index.
10315         * config/s390/s390.c (s390_decompose_shift_count)
10316         (s390_mem_constraint, print_shift_count_operand)
10317         (print_operand_address, print_operand): Rename
10318         s390_decompose_shift_count to
10319         s390_decompose_addrstyle_without_index and rename
10320         print_shift_count_operand to print_addrstyle_operand troughout the
10321         file.
10322         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
10323         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
10324         Rename shift_count_or_setmem_operand to setmem_operand.
10325         * config/s390/vx-builtins.md ("vec_insert<mode>")
10326         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
10327         nonmemory_operand.
10328
10329 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10330
10331         PR target/70168
10332         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
10333         Handle overlapping retval and newval.
10334
10335 2016-03-10  Nick Clifton  <nickc@redhat.com>
10336
10337         PR target/7044
10338         * config/aarch64/aarch64.c
10339         (aarch64_override_options_after_change_1): When forcing
10340         flag_omit_frame_pointer to be true, use a special value that can
10341         be detected if this function is called again, thus preventing
10342         flag_omit_leaf_frame_pointer from being forced to be false.
10343
10344 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10345
10346         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
10347         Set x_flag_omit_leaf_frame_pointer when handling
10348         -momit-leaf-frame-pointer.
10349
10350 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10351
10352         PR lto/69589
10353         * cgraph.c (cgraph_node::dump): Dump split_part and
10354         indirect_call_target.
10355         * cgraph.h (cgraph_node): Add indirect_call_target flag.
10356         * ipa.c (has_addr_references_p): Cleanup.
10357         (is_indirect_call_target_p): New.
10358         (walk_polymorphic_call_targets): Do not mark virtuals that may be
10359         called indirectly as local.
10360         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
10361
10362 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10363
10364         PR ipa/69630
10365         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
10366         on cxa_pure_virtual.
10367
10368 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10369
10370         PR lto/69589
10371         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
10372
10373 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10374
10375         PR lto/69589
10376         * tree.c (need_assembler_name_p): Only record main variant type names.
10377
10378 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
10379
10380         PR target/70113.
10381         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
10382         Always define to 0 or 1.
10383         (TARGET_FIX_ERR_A53_843419): New macro.
10384         * config/aarch64/aarch64-elf-raw.h
10385         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
10386         * config/aarch64/aarch64-linux.h: Likewise.
10387         * config/aarch64/aarch64.c
10388         (aarch64_override_options_after_change_1): Do not default
10389         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
10390         843419 is on.
10391         (aarch64_attributes): Handle fix-cortex-a53-843419.
10392         (aarch64_can_inline_p): Likewise.
10393         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
10394
10395 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
10396         Jakub Jelinek <jakub@redhat.com>
10397
10398         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
10399         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
10400         DECL_COMMONS if flag_unconstrained_commons is set.
10401         * tree-dfa.c (get_ref_base_and_extent): Likewise.
10402         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
10403         (funconstrained-commons): Document.
10404
10405 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
10406
10407         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
10408         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
10409
10410 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
10411
10412         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
10413         has a proper number of elements.
10414
10415 2016-03-10  Alan Modra  <amodra@gmail.com>
10416
10417         PR rtl-optimization/69195
10418         PR rtl-optimization/47992
10419         * ira.c (recorded_label_ref): Delete.
10420         (update_equiv_regs): Return void.
10421         (indirect_jump_optimize): New function.
10422         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
10423         before regstat_compute_ri.  Don't rebuild_jump_labels here.
10424         Delete update_regstat.
10425
10426 2016-03-10  Richard Biener  <rguenther@suse.de>
10427
10428         PR tree-optimization/70128
10429         * tree-ssa-structalias.c (set_uids_in_ptset): Set
10430         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
10431
10432 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
10433
10434         PR tree-optimization/70152
10435         * tree-sra.c (replace_removed_params_ssa_names): Copy over
10436         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
10437
10438         PR target/70086
10439         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
10440         instead of gen_sse2_loadlpd.
10441         * config/i386/sse.md (*vec_concatv2df): Rename to...
10442         (vec_concatv2df): ... this.
10443
10444         PR tree-optimization/70127
10445         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
10446
10447 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
10448
10449         PR c/68473
10450         PR c++/70105
10451         * diagnostic-show-locus.c (compatible_locations_p): New function.
10452         (layout::layout): Sanitize ranges using compatible_locations_p.
10453
10454 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
10455
10456         PR c/68473
10457         PR c++/70105
10458         * diagnostic-show-locus.c (layout_range::layout_range): Replace
10459         location_range param with three const expanded_locations * and a
10460         bool.
10461         (layout::layout): Replace call to
10462         rich_location::lazily_expand_location with get_expanded_location.
10463         Extract the range and perform location expansion here, passing
10464         the results to the layout_range ctor.
10465         * diagnostic.c (source_range::debug): Delete.
10466         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
10467         of rich_location::get_expanded_location.
10468         * gcc-rich-location.c (get_range_for_expr): Delete.
10469         (gcc_rich_location::add_expr): Reimplement to avoid the
10470         rich_location::add_range overload that took a location_range,
10471         passing a location_t instead.
10472
10473 2016-03-09  Richard Biener  <rguenther@suse.de>
10474         Jakub Jelinek  <jakub@redhat.com>
10475
10476         PR tree-optimization/70138
10477         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
10478         Also skip vect_double_reduction_def.
10479
10480 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
10481
10482         PR target/70049
10483         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
10484         if the operand is "m".
10485
10486 2016-03-09  Nathan Sidwell  <nathan@acm.org>
10487
10488         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
10489
10490 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10491
10492         * config/i386/i386.c (processor_target_table): Fix cost table
10493         intialization order for znver1.
10494
10495 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
10496
10497         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
10498         - becuase -> because.
10499         * ipa-reference.c (ignore_module_statics): Likewise.
10500         * cgraph.c (cgraph_node::get_body): Likewise.
10501         * ipa-inline.c (early_inliner): Likewise.
10502         * ipa-devirt.c (types_same_for_odr): Likewise.
10503         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
10504         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
10505
10506 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10507
10508         * tree-ssa-math-opts.c: Fix typo in comment.
10509
10510 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
10511
10512         PR target/70110
10513         * config/i386/i386.c (scalar_chain::make_vector_copies,
10514         scalar_chain::convert_reg): Call end_sequence in between
10515         get_insns and emit_conversion_insns rather than after both
10516         calls.
10517
10518 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
10519
10520         PR target/70064
10521         * config/i386/i386.h (machine_function): Add
10522         pc_thunk_call_expanded flag.
10523         (ix86_pc_thunk_call_expanded): New define.
10524         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
10525         (*set_got): Rename insn pattern from set_got.
10526         (*set_got_labelled): Rename inst pattern from set_got_labelled.
10527         * config/i386/i386.c (ix86_compute_frame_layout): Use
10528         ix86_pc_thunk_call_expanded to prevent red-zone.
10529
10530 2016-03-07  Martin Jambor  <mjambor@suse.cz>
10531
10532         * hsa.h (hsa_get_ctor_statements): Declare.
10533         (hsa_get_dtor_statements): Likewise.
10534         (hsa_get_kernel_dispatch_type): Likewise.
10535         * hsa.c (hsa_get_ctor_statements): New function.
10536         (hsa_get_dtor_statements): Likewise.
10537         (hsa_get_kernel_dispatch_type): Likewise.
10538         * hsa-brig.c (hsa_cdtor_statements): Removed.
10539         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
10540         hsa_get_dtor_statements.
10541         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
10542         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
10543
10544 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10545
10546         * config/arm/arm-cores.def (cortex-r8): New.
10547         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
10548         * config/arm/arm-tune.md: Likewise.
10549         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
10550
10551 2016-03-07  Martin Sebor  <msebor@redhat.com>
10552
10553         PR rtl-optimization/19705
10554         * doc/invoke.texi (Options That Control Optimization): Clarify
10555         -fno-branch-count-reg.
10556
10557 2016-02-26  Richard Biener  <rguenther@suse.de>
10558             Jeff Law  <law@redhat.com>
10559
10560         PR tree-optimization/69740
10561         * cfghooks.c (remove_edge): Request loop fixups if we delete
10562         an edge that might turn an irreducible loop into a natural
10563         loop.
10564         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
10565         Move after definition of loops_state_clear.
10566
10567 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
10568
10569         PR rtl-optimization/69052
10570         * rtlanal.c (commutative_operand_precedence): Set higher precedence
10571         to CONST_WIDE_INT.
10572
10573 2016-03-07  Tom de Vries  <tom@codesourcery.com>
10574
10575         PR tree-optimization/70116
10576         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
10577         is_tm_ending stmts and ubsan/asan internal functions.
10578         (find_duplicate): Use it.  Don't test is_tm_ending here.
10579
10580 2016-03-07  Richard Biener  <rguenther@suse.de>
10581
10582         PR tree-optimization/70115
10583         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
10584         (propagate_constants_for_unrolling): Use replace_uses_by.
10585
10586 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
10587
10588         PR middle-end/69916
10589         * omp-low.c (struct oacc_loop): Add ifns.
10590         (new_oacc_loop_raw): Initialize it.
10591         (finish_oacc_loop): Clear mask & flags if no ifns.
10592         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
10593         (oacc_loop_xform_loop): Add ifns arg & adjust.
10594         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
10595
10596 2016-03-07  Richard Henderson  <rth@redhat.com>
10597
10598         PR rtl-opt/70061
10599         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
10600         (insert_value_copy_on_edge): Likewise.
10601
10602 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10603
10604         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
10605
10606 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10607
10608         PR target/62281
10609         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
10610
10611 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
10612
10613         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
10614
10615 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
10616
10617         Fix sseimul type attribute.
10618         * config/i386/znver1.md
10619         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
10620         znver1_sseimul_avx256_load) : Fix the type attribute.
10621         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
10622         pipe usage and latency.
10623
10624 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
10625
10626         PR c++/70084
10627         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
10628         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
10629         to the right type.
10630
10631 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
10632
10633         PR c/69973
10634         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
10635
10636         PR rtl-optimization/69941
10637         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
10638         the reg share its mode.
10639
10640 2016-03-04  Jeff Law  <law@redhat.com>
10641
10642         PR tree-optimization/69196
10643         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10644         If the both SSA_NAMEs are anonymous, then consider them unassociated
10645         and include the PHI in the statement count.
10646
10647 2016-03-05  Tom de Vries  <tom@codesourcery.com>
10648
10649         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
10650         construct in oacc routine.  Check for oacc region in oacc routine.
10651
10652 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
10653
10654         PR target/70062
10655         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
10656         2016-02-22 changes, instead don't recurse if RECUR is already true.
10657         Don't change *dynamic_check if RECUR.  Adjust recursive caller
10658         to pass true to the new argument.
10659         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
10660
10661         PR target/70059
10662         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
10663         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
10664         fixes.
10665         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
10666
10667 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
10668
10669         PR rtl-optimization/57676
10670         * lra-assigns.c (lra_assign): Guard test for maximum iterations
10671         with flag_checking.
10672
10673 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
10674
10675         * tree-vect-patterns.c (search_type_for_mask): Handle
10676         comparison of booleans.
10677
10678 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
10679
10680         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
10681         Fix @xref usage.
10682
10683         PR debug/69947
10684         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
10685         all other ops that have dw_val_class_die_ref operands,
10686         and DW_OP_GNU_entry_value.
10687
10688 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10689
10690         PR rtl-optimization/69904
10691         * config/arm/arm.c (arm_cannot_copy_insn_p):
10692         Return true for load-exclusive instructions.
10693
10694 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
10695
10696         PR target/70021
10697         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
10698         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
10699         the pattern no matter if it is used just by non-pattern, pattern
10700         or mix thereof.
10701         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
10702         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
10703         oprnd1 def_stmt is in pattern, don't look through it.
10704
10705 2016-03-03  Marek Polacek  <polacek@redhat.com>
10706
10707         PR middle-end/70050
10708         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
10709
10710 2016-03-03  Martin Liska  <mliska@suse.cz>
10711
10712         PR tree-optimization/70043
10713         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
10714         previous statement if we see a debug statement.
10715
10716 2016-03-03  Richard Biener  <rguenther@suse.de>
10717
10718         PR tree-optimization/55936
10719         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
10720         parameter and guard unsafe equivalence use.
10721         (vrp_evaluate_conditional_warnv_with_ops): Always use
10722         safe equivalences but not via the quadratic compare_names
10723         helper.
10724
10725 2016-03-03  Michael Collison  <michael.collison@linaro.org>
10726
10727         PR target/70014
10728         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
10729         for operand 1 to s_register_operand. Change predicate for operand
10730         2 to arm_not_immediate_operand.
10731
10732 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
10733
10734         * doc/tm.texi: Regenerated.
10735
10736 2016-03-02  Richard Henderson  <rth@redhat.com>
10737
10738         PR rtl-opt/67145
10739         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
10740         simplification when all args are positive non-fixed registers.
10741
10742 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10743
10744         * target.def (lra_p): Specify that new ports should use LRA.
10745
10746 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
10747
10748         PR libgomp/69555
10749         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
10750         gimplify_type_sizes the type they refer to.
10751         (omp_notice_variable): Handle reference vars to VLAs.
10752         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
10753         reference to VLA decls in the second pass instead of first pass.
10754
10755 2016-03-02  Tom de Vries  <tom@codesourcery.com>
10756
10757         PR tree-optimization/68659
10758         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
10759         new_expr == NULL_TREE.
10760         (get_new_name): Handle ADDR_EXPR.
10761
10762 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
10763
10764         PR rtl-optimization/69052
10765         * loop-invariant.c (canonicalize_address): New function.
10766         (inv_can_prop_to_addr_use): Check validity of address expression
10767         which is canonicalized by above function.
10768
10769 2016-03-02  Alan Modra  <amodra@gmail.com>
10770
10771         PR ipa/69990
10772         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
10773         larger alignment.
10774
10775 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
10776
10777         PR target/70028
10778         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
10779         (*movhi_internal): Put mask moves from and to memory separately
10780         from moves from/to GPRs.
10781
10782 2016-03-02  Richard Biener  <rguenther@suse.de>
10783
10784         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
10785         GENERIC expressions in GIMPLE.
10786
10787 2016-03-02  Richard Biener  <rguenther@suse.de>
10788
10789         * config/i386/i386.c (type_natural_mode): Fix typo.
10790
10791 2016-03-02  Nick Clifton  <nickc@redhat.com>
10792
10793         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
10794
10795 2016-03-02  Richard Biener  <rguenther@suse.de>
10796             Uros Bizjak  <ubizjak@gmail.com>
10797
10798         PR target/67278
10799         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
10800
10801 2016-03-02  Richard Biener  <rguenther@suse.de>
10802
10803         PR middle-end/67278
10804         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
10805
10806 2016-03-02  Marek Polacek  <polacek@redhat.com>
10807
10808         PR c/67854
10809         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
10810         "is promoted to" warning.
10811
10812 2016-03-01  DJ Delorie  <dj@redhat.com>
10813
10814         * config.gcc: Deprecate mep-*.
10815
10816 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
10817
10818         PR middle-end/70025
10819         * lra-constraints.c (regno_val_use_in): New.
10820         (match_reload): Use it instead of regno_use_in.
10821
10822 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
10823
10824         PR rtl-optimization/70007
10825         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
10826         references present in REG_EQUAL notes attached to non-SET patterns.
10827
10828 2016-03-01  Jeff Law  <law@redhat.com>
10829
10830         PR tree-optimization/69196
10831         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10832         Appropriately clamp the number of statements to copy when the
10833         thread path does not traverse a loop backedge.
10834
10835         PR tree-optimization/69196
10836         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10837         Do count some PHIs in the thread path against the insn count.  Decrease
10838         final statement count by one as the control statement in the last
10839         block will get removed.  Remove special cased code for handling PHIs
10840         in the last block.
10841
10842 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
10843
10844         PR target/70027
10845         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
10846         asm dialect alternatives to explicit GOTPCREL calls.
10847
10848 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
10849
10850         PR ada/70017
10851         * ira.c (do_reload): Issue warning for generic stack checking here...
10852         * reload1.c (reload): ...instead of here and streamline it.
10853
10854 2016-03-01  Nick Clifton  <nickc@redhat.com>
10855
10856         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
10857
10858 2016-03-01  Richard Biener  <rguenther@suse.de>
10859
10860         PR tree-optimization/69983
10861         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
10862         types and fall back to operand_equal_p.
10863
10864 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10865
10866         Revert
10867         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10868
10869         * config/s390/constraints.md ("jm8"): New constraint.
10870         * config/s390/predicates.md ("const_int_8bitset_operand"): New
10871         predicate.
10872         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
10873         into ...
10874         ("*setmem_long<setmem_and>"): New pattern.
10875         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
10876         into ...
10877         ("*setmem_long_31z<setmem_and>"): New pattern.
10878         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
10879         New substitution rules with the required attributes.
10880
10881
10882 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10883
10884         Revert
10885         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10886
10887         * gensupport.c (process_substs_on_one_elem): Split loop to
10888         complete mark_operands_used_in_match_dup on all expressions in the
10889         vector first.
10890         (adjust_operands_numbers): Inline into process_substs_on_one_elem
10891         and remove function.
10892
10893 2016-03-01  Richard Biener  <rguenther@suse.de>
10894
10895         PR middle-end/70022
10896         * fold-const.c (fold_indirect_ref_1): Fix range checking for
10897         vector BIT_FIELD_REF extract.
10898
10899 2016-03-01  Richard Biener  <rguenther@suse.de>
10900
10901         PR tree-optimization/69994
10902         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
10903
10904 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
10905
10906         PR tree-optimization/69956
10907         * tree-vect-stmts.c (supportable_widening_operation): Support
10908         multi-step conversion of boolean vectors.
10909         (supportable_narrowing_operation): Likewise.
10910
10911 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10912
10913         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
10914         anymore.
10915
10916 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10917
10918         * config/s390/subst.md (DSI_VI): New mode iterator.
10919         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
10920         * config/s390/vector.md ("vec_set<mode>"): Move expander before
10921         the insn definition.
10922         ("*vec_set<mode>"): Change predicate and add alternative to
10923         support only either register or const_int operands as element
10924         selector.
10925         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
10926         operands.
10927         ("vec_extract<mode>"): New expander.
10928         ("*vec_extract<mode>"): New insn definition supporting reg and
10929         const_int element selectors.
10930         ("*vec_extract<mode>_plus"): New insn definition supporting
10931         reg+const_int element selectors.
10932         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
10933         following expander+insn definition.
10934         ("<vec_shifts_name><mode>3"): New expander.
10935         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
10936
10937 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10938
10939         * config/s390/s390.md ("*tabort_1"): Change predicate to
10940         nonmemory_operand.  Add a second alternative to cover
10941         register as well as const int operands.
10942         ("*tabort_1_plus"): New pattern definition.
10943
10944 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10945
10946         * config/s390/s390.md ("*ashrdi3_cc_31")
10947         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
10948         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
10949         Merge insn definitions into ...
10950         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
10951         New pattern definition.
10952         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
10953         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
10954         ("*ashr<mode>3_and"): Merge insn definitions into ...
10955         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
10956         New pattern definition.
10957         * config/s390/subst.md ("addr_style_op_cc_subst")
10958         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
10959         substitutions patterns plus attributes.
10960         Add ashiftrt to SUBST iterator.
10961
10962 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10963
10964         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
10965         op2 to nonmemory_operand.
10966         ("*<shift>di3_31", "*<shift>di3_31_and"):
10967         Merge into single pattern definition ...
10968         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
10969         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
10970         pattern definition ...
10971         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
10972         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
10973         iterator.
10974
10975 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10976
10977         * config/s390/predicates.md (const_int_6bitset_operand): New
10978         predicate.
10979         * config/s390/s390.md: Include subst.md.
10980         ("rotl<mode>3"): New expander.
10981         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
10982         ...
10983         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
10984         * config/s390/subst.md: New file.
10985
10986 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10987
10988         * config/s390/s390.md ("op_type", "atype", "length" attributes):
10989         Remove RRR type.  It doesn't really exist.
10990         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
10991         attributes.
10992         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
10993         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
10994         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
10995         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
10996         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
10997         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
10998         `enabled' attribute.
10999
11000 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11001
11002         * gensupport.c (process_substs_on_one_elem): Split loop to
11003         complete mark_operands_used_in_match_dup on all expressions in the
11004         vector first.
11005         (adjust_operands_numbers): Inline into process_substs_on_one_elem
11006         and remove function.
11007
11008 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
11009
11010         PR target/69706
11011         * config/sparc/sparc.c (NWORDS_UP): Rename to...
11012         (CEIL_NWORDS): ...this.  Use CEIL macro.
11013         (compute_fp_layout): Adjust to above renaming.
11014         (function_arg_union_value): Likewise.
11015         (sparc_arg_partial_bytes): Likewise.
11016         (sparc_function_arg_advance): Likewise.
11017
11018 2016-02-29  Jeff Law  <law@redhat.com>
11019
11020         PR tree-optimization/70005
11021         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
11022         where an object with a boolean range is compared against a value
11023         outside [0..1].
11024
11025         PR tree-optimization/69999
11026         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
11027         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
11028         loop cleanups.
11029
11030 2016-02-29  Richard Biener  <rguenther@suse.de>
11031
11032         PR tree-optimization/69994
11033         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
11034         (get_unary_op): Look through nop conversions.
11035         (ops_equal_values_p): New function, look for equality diregarding
11036         nop conversions.
11037         (eliminate_plus_minus_pair): Use ops_equal_values_p
11038         (repropagate_negates): Do not use get_unary_op here.
11039
11040 2016-02-29  Martin Liska  <mliska@suse.cz>
11041
11042         * system.h: Poison ENABLE_CHECKING macro.
11043
11044 2016-02-29  Martin Liska  <mliska@suse.cz>
11045
11046         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
11047         is presented in dump flags.
11048         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
11049         (hsa_regalloc): Likewise.
11050
11051 2016-02-19  Richard Biener  <rguenther@suse.de>
11052
11053         PR tree-optimization/69980
11054         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
11055         permutation of those we need to keep.
11056
11057 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
11058
11059         PR target/69706
11060         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
11061         (NWORDS_UP): ...this
11062         (init_cumulative_args): Minor tweaks.
11063         (sparc_promote_function_mode): Likewise.
11064         (scan_record_type): Delete.
11065         (traverse_record_type): New function template.
11066         (classify_data_t): New structure type.
11067         (classify_registers): New inline function.
11068         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
11069         exhausted.  Instantiate traverse_record_type on classify_registers and
11070         deal with the case of a structure passed in slot #15 with no FP field
11071         in the first word.
11072         (assign_data_t): New structure type.
11073         (compute_int_layout): New static function.
11074         (compute_fp_layout): Likewise.
11075         (count_registers): New inline function.
11076         (assign_int_registers): New static function.
11077         (assign_fp_registers): Likewise.
11078         (assign_registers): New inline function.
11079         (function_arg_record_value_1): Delete.
11080         (function_arg_record_value_2): Likewise.
11081         (function_arg_record_value_3): Likewise.
11082         (function_arg_record_value): Adjust to above changes.  Instantiate
11083         traverse_record_type on count_registers to first count the number of
11084         registers to be used and then on assign_registers to assign them.
11085         (function_arg_union_value): Adjust to above renaming.
11086         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
11087         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
11088         case of a structure passed in slot #15
11089         (sparc_function_arg_advance): Likewise.
11090         (function_arg_padding): Minor tweak.
11091
11092 2016-02-29  Richard Biener  <rguenther@suse.de>
11093
11094         PR tree-optimization/69720
11095         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
11096         the adjustment_def path for possibly vectorized defs.
11097         (vect_create_epilog_for_reduction): Handle vectorized initial
11098         defs properly.
11099
11100 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
11101
11102         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
11103
11104 2016-02-27  Jeff Law  <law@redhat.com>
11105
11106         Revert
11107         2016-02-26  Richard Biener  <rguenther@suse.de>
11108                     Jeff Law  <law@redhat.com>
11109
11110         PR tree-optimization/69740
11111         * cfghooks.c (remove_edge): Request loop fixups if we delete
11112         an edge that might turn an irreducible loop into a natural
11113         loop.
11114
11115 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
11116
11117         PR rtl-optimization/69896
11118         * tree-vect-generic.c (get_compute_type): Avoid single element
11119         vector types.
11120
11121 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
11122
11123         Rename the AArch64 tuning option and related functions to enable the
11124         Newton series for the reciprocal square root to reflect its
11125         approximative characteristic.
11126
11127         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
11128         function to "aarch64_emit_approx_rsqrt".
11129         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
11130         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
11131         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
11132         (xgene1_tunings): Likewise.
11133         (use_rsqrt_p): Likewise.
11134         (aarch64_emit_swrsqrt): Use new function name.
11135         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
11136         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
11137         text explaining this option.
11138         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
11139
11140 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
11141
11142         PR target/69969
11143         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11144         complain about -mallow-movmisalign without -mvsx if
11145         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
11146
11147 2016-02-26  Joel Sherrill  <joel@rtems.org>
11148
11149         * config.gcc: Add x86_64-*-rtems*.
11150         * config/i386/rtems-64.h: New file.
11151
11152 2016-02-26  Joel Sherrill  <joel@rtems.org>
11153
11154         * config.gcc: Add aarch64-*-rtems*.
11155         * config/aarch64/rtems.h: New file.
11156
11157 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
11158
11159         PR target/69946
11160         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
11161         shift amount using %h.  Add comment.
11162
11163 2016-02-26  Richard Biener  <rguenther@suse.de>
11164             Jeff Law  <law@redhat.com>
11165
11166         PR tree-optimization/69740
11167         * cfghooks.c (remove_edge): Request loop fixups if we delete
11168         an edge that might turn an irreducible loop into a natural
11169         loop.
11170
11171 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11172
11173         PR middle-end/69920
11174         * tree-sra.c (sra_modify_assign): Do not remove loads of
11175         uninitialized aggregates to SSA_NAMEs.
11176
11177 2016-02-26  Richard Henderson  <rth@redhat.com>
11178
11179         PR target/69709
11180         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
11181         pseudo in case the target rtx matches the source of the left
11182         shift.
11183
11184 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11185
11186         PR hsa/69568
11187         * hsa.h (hsa_type_packed_p): Declare.
11188         * hsa.c (hsa_type_packed_p): New function.
11189         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
11190         loads.
11191         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
11192         * hsa-brig.c (emit_basic_insn): Likewise.
11193
11194 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11195
11196         pr hsa/69674
11197         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
11198         pointers.
11199         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
11200
11201 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11202
11203         * hsa.h (is_a_helper): New overload for hsa_op_immed for
11204         hsa_op_with_type operands.
11205         (hsa_unsigned_type_for_type): Declare.
11206         * hsa.c (hsa_unsigned_type_for_type): New function.
11207         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
11208         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
11209         the finalizer.  Do not emit extra move.
11210
11211 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11212
11213         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
11214         atomic operations in private segment.
11215
11216 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11217
11218         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
11219         statements to wi->info.  Also disallow omp simd constructs.
11220         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
11221         for not gridifying.  Dump special string for omp_for.
11222
11223 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11224
11225         PR target/69245
11226         * config/aarch64/aarch64.c (aarch64_set_current_function):
11227         Save/restore target globals when switching to
11228         target_option_default_node.
11229
11230 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11231
11232         PR target/69613
11233         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
11234         Return 0 if !SHIFT_COUNT_TRUNCATED.
11235
11236 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
11237             Eric Botcazou  <ebotcazou@adacore.com>
11238
11239         PR rtl-optimization/69891
11240         * dse.c (scan_insn): If we can't figure out memset arguments
11241         or they are non-constant, call clear_rhs_from_active_local_stores.
11242
11243 2016-02-26  Martin Liska  <mliska@suse.cz>
11244
11245         * doc/extend.texi: Mention clog10, clog10f an clog10l
11246         in Builtins section.
11247
11248 2016-02-26  Martin Liska  <mliska@suse.cz>
11249
11250         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
11251         CHECKING_P.
11252         (resolve_args_picking_1): Likewise.
11253         * dwarf2out.h (struct GTY): Likewise.
11254
11255 2016-02-26  Martin Liska  <mliska@suse.cz>
11256
11257         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
11258         with flag_checking.
11259         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
11260
11261 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
11262             Martin Liska  <mliska@suse.cz>
11263
11264         * doc/install.texi: Mention --enable-valgrind-annotations.
11265
11266 2016-02-26  Richard Biener  <rguenther@suse.de>
11267
11268         PR tree-optimization/69551
11269         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
11270         looking through aliases adjust DECL_PT_UID to refer to the
11271         ultimate alias target.
11272
11273 2016-02-25  Martin Liska  <mliska@suse.cz>
11274
11275         PR middle-end/69919
11276         * alloc-pool.c (after_memory_report): New variable.
11277         * alloc-pool.h (base_pool_allocator ::release): Do not use
11278         the infrastructure if after_memory_report.
11279         * toplev.c (toplev::main): Mark after memory report.
11280
11281 2016-02-25  Richard Biener  <rguenther@suse.de>
11282
11283         PR tree-optimization/48795
11284         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
11285
11286 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
11287
11288         PR driver/68463
11289         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
11290         offloading is enabled and -fopenacc or -fopenmp is specified.
11291         (CRTOFFLOADEND): Likewise.
11292         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
11293         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
11294         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
11295         (offload_objects_file_name): New static var.
11296         (tool_cleanup): Remove offload_objects_file_name file.
11297         (find_offloadbeginend): Replace with ...
11298         (find_crtoffloadtable): ... this.
11299         (run_gcc): Remove offload_argc and offload_argv.
11300         Get offload_objects_file_name from -foffload-objects=... option.
11301         Read names of object files with offload from this file, pass them to
11302         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
11303         don't pass offloadbegin and offloadend to the linker.  Don't pass
11304         offload non-LTO files to the linker, because now they're not claimed.
11305
11306 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
11307
11308         PR ipa/69630
11309         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
11310         on builtin_unreachable.
11311
11312 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
11313
11314         PR rtl-optimization/69896
11315         * regcprop.c: Include cfgrtl.h.
11316         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
11317         than remembered mode, either delete it (if noop_move_p), or
11318         treat like copy_p but not noop_p instruction.
11319
11320 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11321
11322         PR debug/69705
11323         * dwarf2out.c (gen_variable_die): Work around buggy LTO
11324         - allow NULL decl for Fortran DW_TAG_common_block variables.
11325
11326 2016-02-24  Jason Merrill  <jason@redhat.com>
11327
11328         * common.opt (flifetime-dse): Add -flifetime-dse=1.
11329
11330 2016-02-24  Richard Biener  <rguenther@suse.de>
11331             Jakub Jelinek  <jakub@redhat.com>
11332
11333         PR middle-end/69760
11334         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
11335         conditionally executed ops to well-defined overflow behavior.
11336
11337 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11338
11339         PR middle-end/69915
11340         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
11341         elements.
11342
11343 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11344
11345         PR rtl-optimization/69886
11346         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
11347         argument.  Use it when checking validity of set instructions.
11348         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
11349         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
11350         callsite.
11351         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
11352         * store-motion.c (find_moveable_store): Update
11353         can_assign_to_reg_without_clobbers_p callsite.
11354
11355 2016-02-24  Richard Biener  <rguenther@suse.de>
11356
11357         PR middle-end/68963
11358         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
11359         bogus check.
11360         (record_nonwrapping_iv): Do not fall back to the low/high bound
11361         for non-constant IV bases if the stmt is not always executed.
11362
11363 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11364
11365         * config/arm/arm-cores.def (cortex-a32): New entry.
11366         * config/arm/arm-tables.opt: Regenerate.
11367         * config/arm/arm-tune.md: Regenerate.
11368         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
11369         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
11370         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
11371         for -mcpu and -mtune.
11372
11373 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11374
11375         PR target/69875
11376         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
11377         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
11378         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
11379         (atomic_loaddi_1): Delete.
11380         (atomic_loaddi): Rewrite expander using the above changes.
11381
11382 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11383
11384         PR c/69918
11385         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
11386         2 to 3.
11387
11388 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11389             Richard Biener  <rguenth@suse.de>
11390
11391         PR middle-end/69909
11392         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
11393         set_mem_attributes if tem is SSA_NAME which got expanded
11394         as a MEM.
11395
11396 2016-02-24  Richard Biener  <rguenther@suse.de>
11397
11398         PR tree-optimization/69907
11399         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
11400         end of permutations for BB vectorization.
11401
11402 2016-02-24  Christian Bruel  <christian.bruel@st.com>
11403
11404         * config/arm/arm-c.c (arm_option_override): Initialize
11405         target_option_current_node.
11406         * config/arm/arm.c (arm_pragma_target_parse): Replace
11407         build_target_option_node call by target_option_current_node.
11408         Set target_option_current_node.
11409         Fix comments.
11410
11411 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
11412
11413         PR target/69810
11414         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
11415         define_insn_and_split to define_insn.
11416         (zero_extendqi<mode>2_dot2): Same.
11417         (extendqi<mode>2_dot): Same.
11418         (extendqi<mode>2_dot2): Same.
11419
11420 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
11421
11422         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
11423         and add bypass for AES{D,E} and AESMC pairs.
11424         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
11425         and AESMC pairs.
11426
11427 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
11428
11429         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
11430         series for reciprocal square root in Exynos M1.
11431
11432 2016-02-23  Martin Sebor  <msebor@redhat.com>
11433
11434         PR c/69759
11435         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
11436         __builtin_alloca_with_align.
11437
11438 2016-02-23  Richard Henderson  <rth@redhat.com>
11439
11440         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
11441         (ix86_register_pragmas): Remove __seg_tls.
11442         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
11443         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
11444         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
11445         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
11446         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
11447         * doc/extend.texi (__seg_tls): Remove item.
11448
11449 2016-02-23  Richard Biener  <rguenther@suse.de>
11450
11451         * alloc-pool.h (struct allocation_object): Make id member
11452         conditional on CHECKING_P again.
11453         (get_instance): Adjust.
11454         (base_pool_allocator): Likewise.
11455
11456 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
11457
11458         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
11459         (parallelize_loops): In OpenACC kernels mode, set n_threads to
11460         zero.
11461         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
11462         flag_openacc.
11463         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
11464
11465 2016-02-23  Richard Biener  <rguenther@suse.de>
11466
11467         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
11468         * bitmap.h (struct bitmap_usage): Likewise.
11469         (bitmap_move): Declare.
11470         * bitmap.c (register_overhead): Take size_t argument.
11471         (bitmap_move): New function.
11472         * df-problems.c (df_rd_transfer_function): Use bitmap_move
11473         to properly account overhead.
11474         * tree.c (free_node): Use tree_size.
11475
11476 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
11477
11478         PR c++/69902
11479         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
11480         when inverting comparison.
11481
11482         PR c/69900
11483         * common.opt (Wunreachable-code): Add Warning flag.
11484
11485 2016-02-23  Mark Wielaard  <mjw@redhat.com>
11486             Jakub Jelinek  <jakub@redhat.com>
11487
11488         PR c/69911
11489         * cgraphunit.c (check_global_declaration): Check main_input_filename
11490         and DECL_SOURCE_FILE are not NULL.
11491
11492 2016-02-23  Martin Jambor  <mjambor@suse.cz>
11493
11494         PR tree-optimization/69666
11495         * tree-sra.c (sra_modify_assign): Do not attempt to create
11496         default_def replacements for unscalarizable regions.
11497
11498 2016-02-20  Mark Wielaard  <mjw@redhat.com>
11499
11500         PR c/28901
11501         * cgraphunit.c (check_global_declaration): Check level of
11502         warn_unused_const_variable and main_input_filename.
11503         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
11504         (-Wunused-variable): For C implies -Wunused-const-variable=1.
11505         (-Wunused-const-variable): Explain levels 1 and 2.
11506
11507 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
11508
11509         PR target/69888
11510         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
11511         identical arguments.  Formatting and spelling fixes.
11512
11513         PR target/69885
11514         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
11515         be specified.
11516
11517         PR target/69894
11518         PR target/69895
11519         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
11520         and m68k-devices.def.
11521         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
11522         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
11523
11524 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
11525
11526         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
11527         and HImode registers.
11528
11529 2016-02-22  Richard Biener  <rguenther@suse.de>
11530
11531         PR tree-optimization/69882
11532         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
11533         preserve permutations present because of gaps.
11534         (vect_supported_load_permutation_p): Always continue checking
11535         permutations after vect_attempt_slp_rearrange_stmts.
11536
11537 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
11538
11539         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
11540         min_profitable_estimate, rather than min_profitable_iters.
11541
11542 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
11543
11544         PR target/69885
11545         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
11546         SImode for last match_operand.
11547
11548 2016-02-22  Martin Liska  <mliska@suse.cz>
11549
11550         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
11551         return bitsize - 1 as the return value.
11552
11553 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
11554
11555         PR target/69806
11556         PR target/54089
11557         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
11558         Handle negative shift counts.
11559         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
11560         force_reg on the shift constant.
11561         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
11562         (lshrsi3_d): Handle negative shift counts.
11563
11564 2016-02-22  Richard Biener  <rguenther@suse.de>
11565             Tom de Vries  <tom@codesourcery.com>
11566
11567         * graph.c: Include dumpfile.h.
11568         (print_graph_cfg): Split into three overloads.
11569         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
11570
11571 2016-02-22  Tom de Vries  <tom@codesourcery.com>
11572
11573         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
11574         dump-fn.
11575
11576 2016-02-22  Richard Biener  <rguenther@suse.de>
11577
11578         PR ipa/37448
11579         * ipa-inline-transform.c (inline_call): When not updating
11580         overall summaries adjust self size by the growth estimate.
11581         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
11582         hash-set, do not update overall summaries here.  Renamed from ...
11583         (inline_to_all_callers): ... this which is now wrapping the
11584         above and performing delayed overall summary update.
11585         (early_inline_small_functions): Delay updating of the overall
11586         summary.
11587
11588 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
11589
11590         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
11591         variable.
11592
11593 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
11594
11595         PR driver/69805
11596         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
11597         :%* in %:gt() argument.
11598         (greater_than_spec_func): Adjust for expecting only numbers,
11599         if there are more than two numbers, compare the last two.
11600
11601 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
11602
11603         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
11604         -Wnarrowing with -std.
11605
11606 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
11607
11608         PR c++/69851
11609         * expr.c (store_field): Don't use bit-field path if exp is
11610         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
11611         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
11612         and the assignment can be performed by bitwise copy.  Formatting
11613         fix.
11614
11615         PR middle-end/69838
11616         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
11617         call copy_reg_eh_region_note_forward on before and/or after sequences
11618         and remove note from insn if it no longer can throw.
11619
11620         PR target/69820
11621         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
11622         if TARGET_AVX512BW.
11623
11624 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11625
11626         * config/s390/vector.md: Add missing commutative operand markers
11627         to the patterns which qualify for one.
11628         * config/s390/vx-builtins.md: Likewise.
11629
11630 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11631
11632         * config/s390/vector.md (VI, VI_QHS): Add single element vector
11633         types to mode iterators.
11634         (vec_double): ... and mode attribute.
11635         * config/s390/vx-builtins.md (non_vec_int): Likewise.
11636
11637 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11638
11639         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
11640         Change the predicate of op2 from nonimmediate to general and let
11641         reload fix it if necessary.
11642
11643 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11644
11645         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
11646
11647 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11648
11649         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
11650         mode.
11651
11652 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11653
11654         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
11655         * config/s390/s390.c (s390_expand_vec_movstr): New function.
11656         * config/s390/s390.md ("movstr<P:mode>"): Call
11657         s390_expand_vec_movstr.
11658
11659 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11660
11661         * config/s390/s390.md: Add missing output modifier for operand 1
11662         to print it as address properly.
11663
11664 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11665
11666         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
11667         * config/s390/2964.md: New file.
11668         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
11669         of insn grouping attributes depending on the CPU level.
11670         (s390_get_unit_mask): New function.
11671         (s390_sched_score): Remove the OOO from the scheduling macros.
11672         Add loop to calculate a score for the instruction mix.
11673         (s390_sched_reorder): Likewise plus improve debug output.
11674         (s390_sched_variable_issue): Rename macros as above.  Calculate
11675         the unit distances after actually scheduling an insn.  Improve
11676         debug output.
11677         (s390_sched_init): Clear last_scheduled_unit_distance array.
11678         * config/s390/s390.md: Include 2964.md.
11679
11680 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
11681
11682         PR target/69671
11683         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
11684         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
11685         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
11686         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
11687         *avx512f_<code>v8div16qi2_mask_1): New insns.
11688
11689 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
11690
11691         PR target/68404
11692         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
11693         2016-02-09 change.
11694
11695         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
11696         earlyclobber from target.  Use wF constraint for fused memory
11697         address.
11698         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
11699
11700 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
11701             Martin Liska  <mliska@suse.cz>
11702
11703         PR sanitizer/69863
11704         * cfgexpand.c (asan_sanitize_stack_p): New function.
11705         (partition_stack_vars): Use the function.
11706         (expand_stack_vars): Likewise.
11707         (defer_stack_allocation): Likewise.
11708         (expand_used_vars): Likewise.
11709
11710 2016-02-18  Richard Biener  <rguenther@suse.de>
11711
11712         PR middle-end/69553
11713         * fold-const.c (operand_equal_p): Properly compare offsets for
11714         IMAGPART_EXPR and ARRAY_REF.
11715
11716 2016-02-18  Nick Clifton  <nickc@redhat.com>
11717
11718         PR target/62254
11719         PR target/69610
11720         * config/arm/arm.c (arm_option_override_internal): Disable
11721         interworking if the target does not support thumb instructions.
11722         (arm_reload_in_hi): Handle the case where a register to register
11723         move needs reloading because there is no simple pattern to handle
11724         it.
11725         (arm_reload_out_hi): Likewise.
11726
11727 2016-02-18  Richard Biener  <rguenther@suse.de>
11728
11729         PR middle-end/69854
11730         * match.pd: Don't use fold_binary or fold_unary for folding
11731         constants.
11732
11733 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
11734
11735         PR c++/69850
11736         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
11737         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
11738         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
11739         warn on gimple_no_warning_p statements.
11740
11741 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
11742
11743         * doc/extend.texi (C++ Attributes): Correct description of
11744         warn_unused type attribute.
11745
11746 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11747
11748         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
11749         correct instruction.
11750
11751 2016-02-17  Richard Biener  <rguenther@suse.de>
11752
11753         PR rtl-optimization/69609
11754         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
11755         (find_traces_1_round): When ending a trace update cached priority
11756         of successors.
11757         (bb_to_key): Use cached priority when available.
11758         (copy_bb): Initialize cached priority.
11759         (reorder_basic_blocks_software_trace_cache): Likewise.
11760
11761 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11762
11763         PR target/69161
11764         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
11765         New predicate.
11766         (aarch64_comparison_operator): Break overly long line into two.
11767         (aarch64_comparison_operation): Likewise.
11768         * config/aarch64/aarch64.md (cstorecc4): Use
11769         aarch64_comparison_operator_mode instead of
11770         aarch64_comparison_operator.
11771         (cstore<mode>4): Likewise.
11772         (aarch64_cstore<mode>): Likewise.
11773         (*cstoresi_insn_uxtw): Likewise.
11774         (cstore<mode>_neg): Likewise.
11775         (*cstoresi_neg_uxtw): Likewise.
11776
11777 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11778
11779         PR target/69161
11780         * config/arm/predicates.md (arm_comparison_operator_mode):
11781         New predicate.
11782         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
11783         instead of arm_comparison_operator.
11784         (*mov_negscc): Likewise.
11785         (*mov_notscc): Likewise.
11786         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
11787         (*thumb2_mov_negscc): Likewise.
11788         (*thumb2_mov_negscc_strict_it): Likewise.
11789         (*thumb2_mov_notscc): Likewise.
11790         (*thumb2_mov_notscc_strict_it): Likewise.
11791
11792 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
11793
11794         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
11795         Add missing return.
11796
11797 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
11798
11799         * config/visium/visium.c (machine_libfunc_index): New enum.
11800         (machine_libfuncs): New structure.
11801         (visium_libfuncs): New static variable.
11802         (TARGET_INIT_LIBFUNCS): Define to...
11803         (visium_init_libfuncs): ...this.  New function.
11804         (expand_block_move_4): Use the appropriate libfunc.
11805         (expand_block_move_2): Likewise.
11806         (expand_block_move_1): Likewise.
11807         (expand_block_set_4): Likewise.
11808         (expand_block_set_2): Likewise.
11809         (expand_block_set_1): Likewise.
11810         (visium_trampoline_init): Likewise.
11811
11812 2016-02-17  Nick Clifton  <nickc@redhat.com>
11813
11814         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
11815         TI's devices.csv file as of March 2016.
11816
11817 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11818
11819         PR Target/48344
11820         * opts-global.c (handle_common_deferred_options): Introduce and
11821         initialize two global variables to remember command-line options
11822         specifying a stack-limiting register.
11823         * opts.h: Add extern declarations of the two new global variables.
11824         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
11825         variable based on the values of the two new global variables.
11826
11827 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
11828
11829         PR c/69835
11830         * common.opt (Wnonnull-compare): New warning.
11831         * doc/invoke.texi (-Wnonnull): Remove text about comparison
11832         of arguments against NULL.
11833         (-Wnonnull-compare): Document.
11834         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
11835         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
11836         * passes.def (pass_warn_nonnull_compare): Add.
11837         * gimple-ssa-nonnull-compare.c: New file.
11838
11839 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
11840
11841         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
11842         AARCH64_EXTRA_TUNE_RECIP_SQRT.
11843
11844 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
11845
11846         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
11847         reciprocal sqrt for -mlow-precision-recip-sqrt.
11848
11849 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
11850             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11851
11852         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
11853         always use lane loads to construct non-constant vectors.
11854
11855 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
11856
11857         * config/aarch64/aarch64.md
11858         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
11859         constraints for operand 3.
11860         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
11861
11862 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
11863             Richard Biener  <rguenther@suse.de>
11864
11865         PR tree-optimization/69820
11866         * tree-vect-patterns.c (type_conversion_p): Return false if
11867         *orig_type is unsigned single precision or boolean.
11868         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
11869         Formatting fix.
11870
11871 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
11872
11873         PR rtl-optimization/69764
11874         PR rtl-optimization/69771
11875         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
11876         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
11877
11878 2016-02-16  Richard Biener  <rguenther@suse.de>
11879
11880         PR tree-optimization/69776
11881         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
11882         sets from caller.
11883         (indirect_refs_may_alias_p): Likewise.
11884         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
11885         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
11886         according to tbaa_p.
11887         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
11888         (optimize_stmt): For redundant store discovery do not allow tbaa.
11889
11890 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
11891
11892         PR tree-optimization/69714
11893         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
11894         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
11895
11896 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
11897
11898         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
11899         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
11900         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
11901         * config/arc/arc.c (arc_init): Check FPU options.
11902         (get_arc_condition_code): Handle new CC_FPU* modes.
11903         (arc_select_cc_mode): Likewise.
11904         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
11905         register pair only. Allow access for ARCv2 accumulator.
11906         (gen_compare_reg): Whenever we have FPU support use FPU compare
11907         instructions.
11908         (arc_reorg): Don't generate brcc insns when FPU compare
11909         instructions are involved.
11910         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
11911         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
11912         floating point emulation.
11913         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
11914         (REVERSE_CONDITION): Add new CC_FPU* modes.
11915         (TARGET_FP_SP_BASE): Define.
11916         (TARGET_FP_DP_BASE): Likewise.
11917         (TARGET_FP_SP_FUSED): Likewise.
11918         (TARGET_FP_DP_FUSED): Likewise.
11919         (TARGET_FP_SP_CONV): Likewise.
11920         (TARGET_FP_DP_CONV): Likewise.
11921         (TARGET_FP_SP_SQRT): Likewise.
11922         (TARGET_FP_DP_SQRT): Likewise.
11923         (TARGET_FP_DP_AX): Likewise.
11924         * config/arc/arc.md (ARCV2_ACC): New constant.
11925         (type): New fpu type attribute.
11926         (SDF): Conditional iterator.
11927         (cstore<mode>, cbranch<mode>): Change expand condition.
11928         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
11929         handles FPU/FPX cases as well.
11930         * config/arc/arc.opt (mfpu): New option.
11931         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
11932         Renamed.
11933         (adddf3, muldf3, subdf3): Removed.
11934         * config/arc/predicates.md (proper_comparison_operator): Recognize
11935         CC_FPU* modes.
11936         * config/arc/fpu.md: New file.
11937         * doc/invoke.texi (ARC Options): Document mfpu option.
11938
11939 2016-02-16  Richard Biener  <rguenther@suse.de>
11940
11941         PR rtl-optimization/69291
11942         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
11943         noce_operand_ok check.
11944
11945 2016-02-16  Tom de Vries  <tom@codesourcery.com>
11946
11947         PR lto/67709
11948         * omp-low.c (simd_clone_create): Remove call to
11949         symtab->call_cgraph_insertion_hooks.
11950
11951 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
11952
11953         PR tree-optimization/69802
11954         * tree-ssa-reassoc.c (update_range_test): If op is
11955         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
11956         op == 1 test of precision 1 integral op, otherwise handle
11957         that case as op itself.  Fix up formatting.
11958         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
11959         up formatting.
11960
11961 2016-02-16  Richard Biener  <rguenther@suse.de>
11962
11963         PR tree-optimization/69586
11964         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
11965         types for conversion sources.
11966
11967 2016-02-16  Richard Biener  <rguenther@suse.de>
11968
11969         PR middle-end/69801
11970         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
11971         mask OEP_ADDRESS_OF.
11972
11973 2016-02-16  Alan Modra  <amodra@gmail.com>
11974
11975         PR target/68973
11976         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
11977         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
11978         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
11979         (p8_mtvsrwz): New.
11980         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
11981         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
11982         (p8_fmrgow_<mode>): Likewise.
11983         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
11984         changes.
11985         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
11986         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
11987         to use movdi_internal64.  Remove op0_di.
11988         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
11989
11990 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
11991
11992         Add support for the FCCMP insn types
11993
11994         * config/aarch64/aarch64.md (fccmp): Change insn type.
11995         (fccmpe): Likewise.
11996         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
11997         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
11998         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
11999         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
12000         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
12001         * config/arm/types.md (fccmps): Add new insn type.
12002         (fccmpd): Likewise.
12003
12004 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12005
12006         * alias.c (get_alias_set): Fix a typo in comment.
12007
12008 2016-02-15  Richard Biener  <rguenther@suse.de>
12009
12010         PR tree-optimization/69595
12011         * match.pd: Complete range test simplification to true.
12012
12013 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
12014
12015         PR rtl-optimization/69648
12016         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
12017         pic_offset_table_rtx.
12018
12019         PR rtl-optimization/69752
12020         * ira.c (update_equiv_regs): When looking for more than a single SET,
12021         also take other side effects into account.
12022
12023 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
12024
12025         * config/s390/s390.c (s390_function_profiler): Add a new sequence
12026         for z900+ CPUs in 31-bit mode.
12027
12028 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
12029
12030         * common/config/s390/s390-common.c (s390_supports_split_stack):
12031         New function.
12032         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
12033         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
12034         * config/s390/s390.c (struct machine_function): New field
12035         split_stack_varargs_pointer.
12036         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
12037         in s390_emit_prologue.
12038         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
12039         vararg pointer.
12040         (morestack_ref): New global.
12041         (SPLIT_STACK_AVAILABLE): New macro.
12042         (s390_expand_split_stack_prologue): New function.
12043         (s390_live_on_entry): New function.
12044         (s390_va_start): Use split-stack vararg pointer if appropriate.
12045         (s390_asm_file_end): Emit the split-stack note sections.
12046         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
12047         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
12048         (UNSPECV_SPLIT_STACK_CALL): New unspec.
12049         (UNSPECV_SPLIT_STACK_DATA): New unspec.
12050         (split_stack_prologue): New expand.
12051         (split_stack_space_check): New expand.
12052         (split_stack_data): New insn.
12053         (split_stack_call): New expand.
12054         (split_stack_call_*): New insn.
12055         (split_stack_cond_call): New expand.
12056         (split_stack_cond_call_*): New insn.
12057
12058 2016-02-15  Richard Biener  <rguenther@suse.de>
12059
12060         PR tree-optimization/69783
12061         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12062         Add trivially correct cases.
12063
12064 2016-02-15  Tom de Vries  <tom@codesourcery.com>
12065
12066         PR lto/69655
12067         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
12068         do_force_output.
12069         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
12070
12071 2016-02-15  Richard Biener  <rguenther@suse.de>
12072
12073         PR tree-optimization/69776
12074         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
12075         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
12076         indicate whether we can use TBAA to disambiguate against stores.
12077         Use alias-set zero if not.
12078         (visit_reference_op_store): Do not use TBAA when looking up
12079         redundant stores.
12080         * tree-ssa-pre.c (compute_avail): Use TBAA here.
12081         (eliminate_dom_walker::before_dom_children): But not when looking
12082         up redundant stores.
12083
12084 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
12085
12086         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
12087
12088 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12089
12090         *  config/i386/znver1.md
12091         (znver1_pop, znver1_pop_mem,
12092         znver1_load_imov_double_store,
12093         znver1_load_imov_direct_store,
12094         znver1_load_imov_direct_load,
12095         znver1_load_imov_double_load): Add new.
12096         (znver1_insn, znver1_insn_load): Add icmov type.
12097         (znver1_sseavx_fma,
12098         znver1_sseavx_fma_load,
12099         znver1_avx256_fma,
12100         znver1_avx256_fma_load): Fix pipe usage.
12101
12102 2016-02-14  Alan Modra  <amodra@gmail.com>
12103
12104         PR target/68973
12105         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
12106         with an invalid hard reg, reload just the reg not the entire
12107         pre/post-inc/dec address expression.
12108
12109 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
12110
12111         PR target/67260
12112         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
12113         fixed R1_REG scratch reg.
12114         (sibcall_value_pcrel_fdpic): Likewise.
12115
12116 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
12117
12118         PR target/67636
12119         PR target/64345
12120         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
12121
12122 2016-02-12  Walter Lee  <walt@tilera.com>
12123
12124         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
12125         * config/tilegx/t-tilegx: Likewise.
12126
12127 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
12128
12129         PR other/69554
12130         * diagnostic-show-locus.c (struct line_span): New struct.
12131         (layout::get_first_line): Delete.
12132         (layout::get_last_line): Delete.
12133         (layout::get_num_line_spans): New member function.
12134         (layout::get_line_span): Likewise.
12135         (layout::print_heading_for_line_span_index_p): Likewise.
12136         (layout::get_expanded_location): Likewise.
12137         (layout::calculate_line_spans): Likewise.
12138         (layout::m_first_line): Delete.
12139         (layout::m_last_line): Delete.
12140         (layout::m_line_spans): New field.
12141         (layout::layout): Update comment.  Replace m_first_line and
12142         m_last_line with m_line_spans, replacing their initialization
12143         with a call to calculate_line_spans.
12144         (diagnostic_show_locus): When printing source lines and
12145         annotations, rather than looping over a single span
12146         of lines, instead loop over each line_span within
12147         the layout, with an inner loop over the lines within them.
12148         Call the context's start_span callback when changing line spans.
12149         * diagnostic.c (diagnostic_initialize): Initialize start_span.
12150         (diagnostic_build_prefix): Break out the building of the location
12151         part of the string into...
12152         (diagnostic_get_location_text): ...this new function, rewriting
12153         it from nested ternary expressions to a sequence of "if"
12154         statements.
12155         (default_diagnostic_start_span_fn): New function.
12156         * diagnostic.h (diagnostic_start_span_fn): New typedef.
12157         (diagnostic_context::start_span): New field.
12158         (default_diagnostic_start_span_fn): New prototype.
12159
12160 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
12161
12162         PR driver/69779
12163         * gcc.c (driver::finalize): Fix cleanup of "specs".
12164
12165 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
12166
12167         PR driver/69265
12168         PR driver/69453
12169         * gcc.c (driver::driver): Initialize m_option_suggestions.
12170         (driver::~driver): Clean up m_option_suggestions.
12171         (suggest_option): Convert to...
12172         (driver::suggest_option): ...this, and split out into
12173         driver::build_option_suggestions and find_closest_string.
12174         (driver::build_option_suggestions): New function, from
12175         first half of suggest_option.  Special-case
12176         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
12177         the sanitizer_opts array.  For options of enum types, add the
12178         various enum values to the candidate strings.
12179         (driver::handle_unrecognized_options): Remove "const".
12180         * gcc.h (driver::handle_unrecognized_options): Likewise.
12181         (driver::build_option_suggestions): New decl.
12182         (driver::suggest_option): New decl.
12183         (driver::m_option_suggestions): New field.
12184         * opts-common.c (add_misspelling_candidates): New function.
12185         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
12186         and make non-static.
12187         * opts.h (sanitizer_opts): New array decl.
12188         (add_misspelling_candidates): New function decl.
12189         * spellcheck.c (find_closest_string): New function.
12190         * spellcheck.h (find_closest_string): New function decl.
12191
12192 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
12193
12194         PR rtl-optimization/69764
12195         PR rtl-optimization/69771
12196         * optabs.c (expand_binop_directly): For shift_optab_p, force
12197         convert_modes with VOIDmode if xop1 has VOIDmode.
12198
12199 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
12200
12201         PR target/69729
12202         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
12203         to correctly determine instrumentation thunks.
12204
12205 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
12206
12207         PR ipa/69241
12208         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
12209         type by reference, force lhs on the call.
12210
12211         PR ipa/68672
12212         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
12213         Compute retval and retbnd early in all cases if split_part_return_p
12214         and return_bb is not EXIT.  Remove all clobber stmts and reset
12215         all debug stmts that refer to SSA_NAMEs defined in split part,
12216         except if it is retval, in that case replace the old retval with the
12217         lhs of the call to the split part.
12218
12219 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12220
12221         revert:
12222         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12223
12224         PR middle-end/66726
12225         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
12226         whose result is used in PHI.
12227         (maybe_optimize_range_tests): Likewise.
12228         (final_range_test_p): Likweise.
12229
12230 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12231
12232         PR middle-end/66726
12233         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
12234         whose result is used in PHI.
12235         (maybe_optimize_range_tests): Likewise.
12236         (final_range_test_p): Likweise.
12237
12238 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
12239
12240         * cgraph.c: Spelling fixes - behaviour -> behavior and
12241         neighbour -> neighbor.
12242         * target.def: Likewise.
12243         * sel-sched.c: Likewise.
12244         * config/mips/mips.c: Likewise.
12245         * config/arc/arc.md: Likewise.
12246         * config/arm/cortex-a57.md: Likewise.
12247         * config/arm/arm.c: Likewise.
12248         * config/arm/neon.md: Likewise.
12249         * config/arm/arm-c.c: Likewise.
12250         * config/vms/vms-c.c: Likewise.
12251         * config/s390/s390.c: Likewise.
12252         * config/i386/znver1.md: Likewise.
12253         * config/i386/i386.c: Likewise.
12254         * config/ia64/hpux-unix2003.h: Likewise.
12255         * config/msp430/msp430.md: Likewise.
12256         * config/rx/rx.c: Likewise.
12257         * config/rx/rx.md: Likewise.
12258         * config/aarch64/aarch64-simd.md: Likewise.
12259         * config/aarch64/aarch64.c: Likewise.
12260         * config/nvptx/nvptx.c: Likewise.
12261         * config/bfin/bfin.c: Likewise.
12262         * config/cris/cris.opt: Likewise.
12263         * config/rs6000/rs6000.c: Likewise.
12264         * target.h: Likewise.
12265         * spellcheck.c: Likewise.
12266         * ira-build.c: Likewise.
12267         * tree-inline.c: Likewise.
12268         * builtins.c: Likewise.
12269         * lra-constraints.c: Likewise.
12270         * explow.c: Likewise.
12271         * hwint.h: Likewise.
12272         * targhooks.c: Likewise.
12273         * tree-vect-data-refs.c: Likewise.
12274         * expr.c: Likewise.
12275         * doc/tm.texi: Likewise.
12276         * doc/extend.texi: Likewise.
12277         * doc/install.texi: Likewise.
12278         * doc/md.texi: Likewise.
12279         * tree-ssa-tail-merge.c: Likewise.
12280         * sched-int.h: Likewise.
12281         * match.pd: Likewise.
12282         * sched-ebb.c: Likewise.
12283         * target.def (omit_struct_return_reg): Likewise.
12284         * gimple-ssa-isolate-paths.c: Likewise.
12285         (find_implicit_erroneous_behaviour): Renamed to...
12286         (find_implicit_erroneous_behavior): ... this.
12287         (find_explicit_erroneous_behaviour): Renamed to...
12288         (find_explicit_erroneous_behavior): ... this.
12289         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
12290
12291 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
12292
12293         PR rtl-optimization/64682
12294         PR rtl-optimization/69567
12295         PR rtl-optimization/69737
12296         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
12297         in I2 as well, just lose it.
12298
12299 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12300
12301         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
12302         New variable.
12303         (aarch64_last_printed_tune_string): Likewise.
12304         (aarch64_declare_function_name): Only output .arch assembler
12305         directive if it will be different from the previously output
12306         directive.  Same for .tune comment but only if -dA is set.
12307         (aarch64_start_file): New function.
12308         (TARGET_ASM_FILE_START): Define.
12309
12310 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
12311
12312         PR plugins/69758
12313         * Makefile.in (PLUGIN_HEADERS): Add params.list.
12314
12315 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
12316
12317         PR target/65313
12318         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
12319         -Wmaybe-uninitialized warning.
12320
12321 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
12322
12323         PR target/69713
12324         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
12325
12326 2016-02-11  Richard Biener  <rguenther@suse.de>
12327
12328         PR rtl-optimization/69291
12329         * ifcvt.c (noce_try_store_flag_constants): Do not allow
12330         subexpressions affected by changing the result.
12331
12332 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
12333
12334         PR target/69148
12335         * lra-constraints.c (curr_insn_transform): Find in/out operands
12336         for secondary memory moves.  Update dups.
12337
12338 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
12339
12340         PR tree-optimization/69652
12341         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
12342         to nested loop, did source re-formatting, skip debug statements,
12343         add check on statement with volatile operand, remove dead scalar
12344         statements.
12345
12346 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
12347             Patrick Palka  <ppalka@gcc.gnu.org>
12348
12349         PR ipa/69241
12350         PR c++/69649
12351         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
12352         calls if the return type is TREE_ADDRESSABLE.
12353         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
12354         * ipa-split.c (split_function): Fix doubled "we" in comment.
12355         Use void return type for the split part even if
12356         !split_point->split_part_set_retval.
12357
12358 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
12359
12360         PR tree-optimization/68021
12361         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
12362         when computing the value of biv cand by itself.
12363
12364 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
12365
12366         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
12367         (cortexa57_tunings): Likewise.
12368         (cortexa72_tunings): Likewise.
12369         (arch_macro_fusion_pair_p): Add support for AES fusion.
12370         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
12371         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
12372         Allow virtual registers before reload so early scheduling works.
12373         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
12374         correct latency and pipeline.
12375         (cortex_a57_crypto_complex): Likewise.
12376         (cortex_a57_crypto_xor): Likewise.
12377         (define_bypass): Add AES bypass.
12378
12379 2016-02-10  Richard Biener  <rguenther@suse.de>
12380
12381         PR tree-optimization/69726
12382         * passes.def: Add DCE pass before late uninit.
12383         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
12384         really fixup if-conversions job.
12385
12386 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
12387
12388         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
12389         (arm_cortex_a57_tune): Likewise.
12390         (aarch_macro_fusion_pair_p): Add support for AES fusion.
12391         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
12392
12393 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
12394
12395         * timevar.def (TV_PHASE_DBGINFO): Delete.
12396         (TV_PHASE_CHECK_DBGINFO): Likewise.
12397         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
12398
12399 2016-02-10  Richard Biener  <rguenther@suse.de>
12400
12401         PR tree-optimization/69719
12402         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12403         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
12404
12405 2016-02-09  Andrew Pinski  <apinski@cavium.com>
12406
12407         PR tree-opt/69282
12408         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
12409         get_vcond_mask_icode returns false.
12410
12411 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
12412
12413         PR target/68404
12414         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
12415         an ADDIS that adds a pointer to a large constant that sets the
12416         upper16 bits with a load operation.
12417
12418 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
12419
12420         PR target/68532
12421         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
12422         order.
12423         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
12424         endian.
12425         (vzipq_s16): Likewise.
12426         (vzipq_s32): Likewise.
12427         (vzipq_f32): Likewise.
12428         (vzipq_u8): Likewise.
12429         (vzipq_u16): Likewise.
12430         (vzipq_u32): Likewise.
12431         (vzipq_p8): Likewise.
12432         (vzipq_p16): Likewise.
12433
12434 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
12435
12436         PR target/68532
12437         * config/arm/arm.c (neon_endian_lane_map): New function.
12438         (neon_vector_pair_endian_lane_map): New function.
12439         (arm_evpc_neon_vuzp): Allow for big endian lane order.
12440         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
12441         endian.
12442         (vuzpq_s16): Likewise.
12443         (vuzpq_s32): Likewise.
12444         (vuzpq_f32): Likewise.
12445         (vuzpq_u8): Likewise.
12446         (vuzpq_u16): Likewise.
12447         (vuzpq_u32): Likewise.
12448         (vuzpq_p8): Likewise.
12449         (vuzpq_p16): Likewise.
12450
12451 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
12452
12453         PR target/69634
12454         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
12455         debug insns.
12456
12457 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
12458
12459         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
12460         truncate const_int operand 1 to QImode.
12461
12462 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
12463
12464         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
12465         corresponding to an abnormal edge.
12466
12467 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12468
12469         PR tree-optimization/69599
12470         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
12471         function.
12472         (find_func_aliases_for_builtin_call, find_func_clobbers)
12473         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
12474         partition.
12475
12476 2016-02-09  Richard Biener  <rguenther@suse.de>
12477
12478         PR tree-optimization/69715
12479         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
12480         LHS on calls as non-rewritable.
12481
12482 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12483
12484         PR lto/69707
12485         * lto-wrapper.c (append_diag_options): New function.
12486         (compile_offload_image): Call append_diag_options.
12487
12488 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
12489
12490         PR other/69722
12491         * doc/extend.texi (Flag Output Operands): Correct sectioning.
12492         Minor copy-edit to fix verb tenses.
12493
12494 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
12495
12496         PR tree-optimization/69209
12497         * ipa-split.c (split_function): If split part is not
12498         returning retval, retval has gimple type but is not
12499         gimple value, force it into a SSA_NAME first.
12500
12501 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
12502
12503         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
12504         outdated section.
12505
12506 2016-02-08  Jason Merrill  <jason@redhat.com>
12507
12508         PR c++/69631
12509         * convert.c (convert_to_integer_1): Check dofold on truncation
12510         distribution.
12511         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
12512         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
12513         Rename from *_nofold.
12514         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
12515         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
12516
12517 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
12518
12519         PR target/60410
12520         * tree.c (build_common_tree_nodes): Remove short_double argument.
12521         All callers changed.
12522         * tree.h (build_common_tree_nodes): Adjust declaration.
12523         * doc/invoke.texi (-fshort-double): Remove documentation.
12524         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12525         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
12526         * lto-wrapper.c (merge_and_complain, append_compiler_options)
12527         (append_linker_options): Don't handle OPT_fshort_double.
12528
12529         PR rtl-optimization/68730
12530         * lra-remat.c (insn_to_cand_activation): New static variable.
12531         (lra_remat): Allocate and free it.
12532         (create_cand): New arg activation. Initialize a field in
12533         insn_to_cand_activation if it is nonnull.
12534         (create_cands): Pass the activation insn to create_cand when making
12535         a candidate involving an output reload.  Reorganize code a little.
12536         (do_remat): Keep track of active status of candidates in a separate
12537         bitmap.
12538
12539 2016-02-08  Richard Biener  <rguenther@suse.de>
12540
12541         PR tree-optimization/69719
12542         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12543         Properly use absolute of the difference of the two offsets to
12544         compare or adjust the segment length.
12545
12546 2016-02-08  Richard Biener  <rguenther@suse.de>
12547             Jeff Law  <law@redhat.com>
12548
12549         PR target/68273
12550         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
12551         types for anonymous SSA names.
12552
12553 2016-02-08   Richard Biener  <rguenther@suse.de>
12554
12555         PR rtl-optimization/69274
12556         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
12557
12558 2016-02-08  Jeff Law  <law@redhat.com>
12559
12560         PR tree-optimization/65917
12561         * tree-ssa-dom.c (record_temporary_equivalences): Record both
12562         equivalences from if (x == y) style conditionals.
12563         (loop_depth_of_name): Remove.
12564         (record_equality): Remove loop depth check.
12565         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
12566         (const_and_copies::record_const_or_copy_raw): New member function.
12567         * tree-ssa-scopedtables.c
12568         (const_and_copies::record_const_or_copy_raw): New, factored out of
12569         (const_and_copies::record_const_or_copy): Call new member function.
12570
12571 2016-02-05  Jeff Law  <law@redhat.com>
12572
12573         PR tree-optimization/68541
12574         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
12575         (count_stmts_in_block): New function.
12576         (poor_ifcvt_candidate_code): Likewise.
12577         (is_feasible_trace): Add some heuristics to determine when path
12578         splitting is profitable.
12579         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
12580         is a diamond with a single exit.
12581
12582 2016-02-05  Martin Sebor  <msebor@redhat.com>
12583
12584         PR c++/69662
12585         * doc/invoke.texi: Update -Wplacement-new to take an optional
12586         argument.
12587
12588 2016-02-06  Richard Henderson  <rth@redhat.com>
12589
12590         PR c/69643
12591         * tree.c (tree_nop_conversion_p): Do not strip casts into or
12592         out of non-standard address spaces.
12593
12594 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
12595
12596         PR rtl-optimization/69691
12597         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
12598
12599 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
12600
12601         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
12602         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
12603         (*ieee128_mfvsrd_64bit): Likewise.
12604         (*ieee128_mfvsrd_32bit): Likewise.
12605
12606 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
12607
12608         PR target/69369
12609         Revert r232560:
12610         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
12611
12612         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
12613         instrumented_version.
12614
12615 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
12616
12617         * doc/invoke.texi (Optimize Options): In table of --param options
12618         rename second occurrence of tracer-min-branch-ratio to
12619         tracer-min-branch-probability, rename
12620         tracer-min-branch-ratio-feedback to
12621         tracer-min-branch-probability-feedback and clarify description,
12622         rename sched-spec-state-edge-prob-cutoff to
12623         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
12624         to selsched-insns-to-rename, rename lto-minpartition to
12625         lto-min-partition, delete reorder-blocks-duplicate and
12626         reorder-blocks-duplicate-feedback.
12627
12628 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12629
12630         * config/s390/s390.c (s390_register_info_set_ranges): Remove
12631         superfluous loops.
12632
12633 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12634
12635         * doc/extend.texi: S/390: Correct some typos.
12636
12637 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12638
12639         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
12640
12641 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12642
12643         PR target/69625
12644         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
12645         (s390_register_info_gprtofpr): Use new macros above.
12646         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
12647         its name.
12648         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
12649         its name.  Adjust restore and save gpr ranges.
12650         (s390_register_info_set_ranges): New function.
12651         (s390_register_info): Use new macros above.  Call
12652         s390_register_info_set_ranges.
12653         (s390_optimize_register_info): Likewise.
12654         (s390_hard_regno_rename_ok): Use new macros.
12655         (s390_hard_regno_scratch_ok): Likewise.
12656         (s390_emit_epilogue): Likewise.
12657         (s390_can_use_return_insn): Likewise.
12658         (s390_optimize_prologue): Likewise.
12659         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
12660
12661 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
12662
12663         PR bootstrap/69677
12664         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
12665         alignment fixes.
12666         (ix86_option_override_internal): Disable TARGET_STV even for
12667         -m{incoming,preferred}-stack-boundary=3.
12668
12669 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12670
12671         * config.gcc: Mark deprecated rtems targets as obsolete.
12672
12673 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
12674
12675         PR rtl-optimization/64682
12676         PR rtl-optimization/69567
12677         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
12678         before I2 only if the register is both used and set in I2.
12679
12680 2016-02-04  DJ Delorie  <dj@redhat.com>
12681
12682         * config/msp430/msp430.c (msp430_start_function): Add function type.
12683
12684 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
12685
12686         PR fortran/69368
12687         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
12688
12689 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
12690
12691         PR rtl-optimization/69577
12692         Revert:
12693         2015-10-29  Richard Henderson  <rth@redhat.com>
12694
12695         PR target/68124
12696         PR rtl-opt/67609
12697         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
12698         sse check to the exact conditions of PR 67609.
12699
12700 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
12701
12702         PR target/69667
12703         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
12704         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
12705         not allowed into the traditional Altivec registers.
12706         (movtd_64bit_nodm): Likewise.
12707         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
12708
12709 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
12710
12711         * config/aarch64/cortex-a57-fma-steering.c
12712         (aarch64_register_fma_steering): Remove "static" from arguments
12713         to register_pass.
12714
12715 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
12716
12717         PR target/69619
12718         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
12719         twice when complex.
12720
12721 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
12722
12723         * doc/invoke.texi: Delete -mno-fma4.
12724
12725 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
12726
12727         PR rtl-optimization/69577
12728         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
12729         (find_subregs_of_mode): Update accordingly.  Iterate over partial
12730         definitions.
12731
12732 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
12733
12734         * config/arm/arm-protos.h (neon_reinterpret): Remove.
12735         * config/arm/arm.c (neon_reinterpret): Remove.
12736         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
12737         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
12738         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
12739         vreinterpretti): Remove.
12740         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
12741         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
12742         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
12743         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
12744         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
12745         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
12746         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
12747         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
12748         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
12749         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
12750         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
12751         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
12752         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
12753         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
12754         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
12755         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
12756         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
12757         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
12758         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
12759         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
12760         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
12761         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
12762         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
12763         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
12764         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
12765         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
12766         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
12767         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
12768         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
12769         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
12770         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
12771         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
12772         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
12773         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
12774         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
12775         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
12776         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
12777         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
12778         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
12779         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
12780         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
12781         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
12782         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
12783         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
12784         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
12785         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
12786         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
12787         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
12788         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
12789         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
12790         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
12791         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
12792         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
12793         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
12794         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
12795         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
12796         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
12797         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
12798         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
12799         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
12800         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
12801         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
12802         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
12803         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
12804         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
12805         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
12806         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
12807         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
12808         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
12809         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
12810         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
12811         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
12812         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
12813         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
12814         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
12815         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
12816         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
12817         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
12818         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
12819         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
12820         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
12821         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
12822         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
12823         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
12824         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
12825         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
12826         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
12827         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
12828         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
12829         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
12830         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
12831         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
12832         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
12833         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
12834         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
12835         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
12836         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
12837         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
12838         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
12839         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
12840         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
12841         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
12842         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
12843
12844 2016-02-04  Martin Liska  <mliska@suse.cz>
12845
12846         PR sanitizer/69276
12847         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
12848         that are gimple_store_p.
12849         (maybe_instrument_call): Likewise.
12850
12851 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
12852
12853         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
12854         register scaling out of memory reference and comment why.
12855
12856 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12857
12858         PR target/65932
12859         PR target/67714
12860         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
12861         folding the source of a SET.
12862
12863 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12864
12865         PR target/65932
12866         PR target/67714
12867         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
12868         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
12869
12870 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
12871
12872         PR target/65932
12873         PR target/67714
12874         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
12875         HImode.
12876
12877 2016-02-04  Christian Bruel  <christian.bruel@st.com>
12878
12879         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
12880         * config/arm/arm.c (arm_set_current_function): Likewise.
12881
12882 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
12883             Ilya Enkovich  <enkovich.gnu@gmail.com>
12884             H.J. Lu  <hongjiu.lu@intel.com>
12885
12886         PR target/69454
12887         * config/i386/i386.c (convert_scalars_to_vector): Remove
12888         stack alignment fixes.
12889         (ix86_option_override_internal): Disable TARGET_STV if stack
12890         might not be aligned enough.
12891         (ix86_minimum_alignment): Assert that TARGET_STV is false.
12892
12893 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
12894
12895         * config/i386/x86-tune.def: Disable default prefetching
12896         for -march=znver1.
12897
12898 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12899             Vladimir Makarov  <vmakarov@redhat.com>
12900
12901         PR target/69461
12902         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
12903         in validating fused toc addresses.
12904
12905 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
12906
12907         PR c/69627
12908         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
12909         range->m_caret fields if range->m_show_caret_p is false.
12910
12911         PR target/69644
12912         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
12913         Force oldval into register if it does not satisfy reg_or_short_operand
12914         predicate.  Fix up formatting.
12915
12916 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
12917             Alexandre Oliva  <aoliva@redhat.com>
12918
12919         PR target/69461
12920         * lra-constraints.c (simplify_operand_subreg): Check additionally
12921         address validity after potential reloading.
12922         (process_address_1): Check insns validity.  In case of failure do
12923         nothing.
12924
12925 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
12926
12927         PR target/69118
12928         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
12929         Fix target.
12930
12931 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
12932
12933         * wide-int.cc (canonize_uhwi): New function.
12934         (wi::divmod_internal): Use it.
12935
12936 2016-02-02  James Norris  <jnorris@codesourcery.com
12937
12938         * gimplify.c (omp_notice_variable): Add usage check.
12939
12940 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
12941
12942         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
12943         like LE, GE, LT, GT when emitting relational operator.
12944
12945 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
12946
12947         * ira-costs.c (find_costs_and_classes): Add extra argument.
12948         * target.def (ira_change_pseudo_allocno_class): Add parameter.
12949         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
12950         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
12951         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
12952         Add best_class parameter, and return it if not ALL_REGS.
12953         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
12954         Add parameter.
12955         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
12956         Update target hook.
12957
12958 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
12959
12960         * config/aarch64/aarch64.c
12961         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
12962         (aarch64_ira_change_pseudo_allocno_class): New function.
12963
12964 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
12965
12966         PR target/67032
12967         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
12968
12969 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12970
12971         * config/avr/avr.c (avr_option_override): Set
12972         PARAM_ALLOW_STORE_DATA_RACES to 1.
12973
12974 2016-02-02  Richard Biener  <rguenther@suse.de>
12975
12976         PR tree-optimization/69595
12977         * match.pd: Add range test simplifications to true/false.
12978
12979 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
12980
12981         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
12982         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
12983         instead.
12984
12985 2016-02-02  Richard Biener  <rguenther@suse.de>
12986
12987         PR tree-optimization/69606
12988         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
12989         info on the result before moving a stmt.
12990
12991 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
12992
12993         PR middle-end/68542
12994         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
12995         branch with vector comparison.
12996         * config/i386/sse.md (VI48_AVX): New mode iterator.
12997         (define_expand "cbranch<mode>4): Add support for conditional branch
12998         with vector comparison.
12999         * tree-vect-loop.c (optimize_mask_stores): New function.
13000         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
13001         has_mask_store field of vect_info.
13002         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
13003         vectorized loops having masked stores after vec_info destroy.
13004         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
13005         correspondent macros.
13006         (optimize_mask_stores): Add prototype.
13007
13008 2016-02-02  Alan Modra  <amodra@gmail.com>
13009
13010         PR target/69548
13011         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
13012         allow subregs.
13013
13014 2016-02-02  Alan Modra  <amodra@gmail.com>
13015
13016         PR target/68662
13017         * config/rs6000/rs6000.c (need_toc_init): New var, set it
13018         whenever toc_label_name used.
13019         (rs6000_file_start): Don't set up toc section here,
13020         (rs6000_output_function_epilogue): do so here instead,
13021         (rs6000_xcoff_file_start): and here.
13022         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
13023         (load_toc_aix_di): Likewise.
13024
13025 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
13026
13027         PR rtl-optimization/69592
13028         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
13029         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
13030         (num_sign_bit_copies_binary_arith_p): New inline function.
13031         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
13032
13033 2016-02-01  Jeff Law  <law@redhat.com>
13034
13035         PR tree-optimization/69580
13036         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
13037         * tree-ssa-threadbackward.c
13038         (fsm_find_control_statement_thread_paths): Do not try to walk
13039         through large PHI nodes.
13040
13041 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
13042
13043         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
13044         when count is incremented above limit, don't analyze further
13045         insns afterwards.
13046
13047         * omp-low.c (oacc_parse_default_dims): Avoid
13048         -Wsign-compare warning, make sure value fits into int
13049         rather than just unsigned int.
13050
13051 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
13052
13053         PR tree-optimization/67921
13054         * fold-const.c (split_tree): New parameters.  Convert pointer
13055         type variable part to proper type before negating.
13056         (fold_binary_loc): Pass new arguments to split_tree.
13057
13058 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
13059
13060         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
13061         (nvptx_goacc_validate_dims): Extend to handle global defaults.
13062         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
13063         * doc/tm.texti: Rebuilt.
13064         * doc/invoke.texi (fopenacc-dim): Document.
13065         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
13066         (append_compiler_options): Likewise.
13067         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
13068         (oacc_parse_default_dims): New.
13069         (oacc_validate_dims): Add USED arg.  Select non-unity default when
13070         possible.
13071         (oacc_loop_fixed_partitions): Return mask of used partitions.
13072         (oacc_loop_auto_partitions): Emit dump info.
13073         (oacc_loop_partition): Return mask of used partitions.
13074         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
13075         loop partitioning and validation calls.
13076
13077 2016-02-01  Richard Biener  <rguenther@suse.de>
13078
13079         PR middle-end/69556
13080         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
13081
13082 2016-02-01  Richard Biener  <rguenther@suse.de>
13083
13084         PR tree-optimization/69574
13085         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
13086         of asserting return chrec_dont_know.
13087
13088 2016-02-01  Martin Liska  <mliska@suse.cz>
13089
13090         * mem-stats-traits.h: Add copyright header.
13091         * mem-stats.h: Likewise.
13092
13093 2016-02-01  Richard Biener  <rguenther@suse.de>
13094
13095         PR tree-optimization/69579
13096         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
13097         Do not propagate through abnormal PHI results.
13098
13099 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
13100
13101         * postreload.c (reload_cse_simplify): Remove dead code.
13102
13103 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
13104
13105         PR rtl-optimization/69570
13106         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
13107         if there is more than one set, not if there is a single set.
13108
13109 2016-02-01  Richard Henderson  <rth@redhat.com>
13110
13111         PR rtl-opt/69535
13112         * combine.c (make_compound_operation): When looking through a
13113         subreg, make sure to re-extend to the width of the outer mode.
13114
13115 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
13116
13117         PR tree-optimization/69546
13118         * wide-int.cc (wi::divmod_internal): For unsigned division
13119         where both operands fit into uhwi, if o1 is 1 and o0 has
13120         msb set, if divident_prec is larger than bits per hwi,
13121         clear another quotient word and return 2 instead of 1.
13122         Similarly for remainder with msb in HWI set, if dividend_prec
13123         is larger than bits per hwi.
13124
13125 2016-01-29  Martin Jambor  <mjambor@suse.cz>
13126
13127         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
13128         Use short lowercase names.
13129         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
13130         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
13131         acq_rel one.  Protect warning agains segfaults if
13132         get_memory_order_name returns NULL.
13133         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
13134         with release semantics.  Do not warn if get_memory_order already did.
13135         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
13136         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
13137         if get_memory_order already did.
13138
13139 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
13140
13141         * doc/install.texi: Document that isl-0.16 is supported.
13142
13143 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
13144
13145         PR target/69299
13146         * config/i386/constraints.md (Bm): Describe as special memory
13147         constraint.
13148         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
13149         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
13150         * genpreds.c (struct constraint_data): Add is_special_memory.
13151         (have_special_memory_constraints, special_memory_start): New
13152         static vars.
13153         (special_memory_end): Ditto.
13154         (add_constraint): Add new arg is_special_memory.  Add code to
13155         process its true value.  Update have_special_memory_constraints.
13156         (process_define_constraint): Pass the new arg.
13157         (process_define_register_constraint): Ditto.
13158         (choose_enum_order): Process special memory.
13159         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
13160         function insn_extra_special_memory_constraint.
13161         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
13162         * gensupport.c (process_rtx): Process
13163         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
13164         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
13165         * ira-lives.c (single_reg_class): Use
13166         insn_extra_special_memory_constraint.
13167         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
13168         * lra-constraints.c (process_alt_operands): Ditto.
13169         (curr_insn_transform): Use insn_extra_special_memory_constraint.
13170         * recog.c (asm_operand_ok, preprocess_constraints): Process
13171         CT_SPECIAL_MEMORY.
13172         * reload.c (find_reloads): Ditto.
13173         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
13174         * stmt.c (parse_input_constraint): Use
13175         insn_extra_special_memory_constraint.
13176
13177 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
13178
13179         PR target/69530
13180         * lra-splill.c (lra_final_code_change): Revert r229087 by
13181         removing all sub-registers.
13182
13183 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
13184
13185         PR target/65604
13186         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
13187
13188 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
13189
13190         PR target/69551
13191         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
13192         SSE1, copy target into the temporary reg first before recursing
13193         on it.
13194
13195 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
13196
13197         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
13198         with vm.
13199
13200 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
13201
13202         * ginclude/stdarg.h: Test __cplusplus instead of
13203         __GXX_EXPERIMENTAL_CXX0X__.
13204
13205 2016-01-29  Richard Biener  <rguenther@suse.de>
13206
13207         PR tree-optimization/69547
13208         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
13209         Do not mark clobbers necessary.
13210         (mark_all_reaching_defs_necessary_1): Likewise.
13211
13212 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13213
13214         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
13215         declaration name with %qs and print it in both error messages.
13216         Also fix indentation.
13217
13218 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13219
13220         PR other/69006
13221         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
13222         trailing blank line from error message.
13223
13224 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
13225
13226         PR c++/69462
13227         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
13228         for C++-11.
13229
13230 2016-01-29  Richard Biener  <rguenther@suse.de>
13231
13232         PR middle-end/69537
13233         * match.pd: Allow all integral types when simplifying a
13234         widening or sign-changing conversion.
13235
13236 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13237
13238         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
13239         back to setting codegen_error to fail codegen.
13240
13241 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
13242
13243         PR target/69459
13244         * config/i386/constraints.md (C): Only accept constant zero operand.
13245         (BC): New constraint.
13246         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
13247         instead of C constraint.
13248         * doc/md.texi (Machine Constraints): Update description
13249         of C constraint.
13250
13251 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
13252
13253         PR target/68400
13254         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
13255
13256 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
13257
13258         PR middle-end/69542
13259         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
13260         non-debug insns.
13261
13262 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
13263
13264         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
13265         branches if using guessed profile.
13266
13267 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
13268
13269         * graphite-optimize-isl.c (optimize_isl): Fix dump.
13270
13271 2016-01-28  Richard Henderson  <rth@redhat.com>
13272
13273         PR target/69305
13274         * config/aarch64/aarch64-modes.def (CC_Cmode): New
13275         * config/aarch64/aarch64-protos.h: Update.
13276         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
13277         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
13278         (aarch64_get_condition_code_1): Handle CC_Cmode.
13279         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
13280         (*add<mode>3_compareC_cconly_imm): New.
13281         (*add<mode>3_compareC_cconly): New.
13282         (*add<mode>3_compareC_imm): New.
13283         (add<mode>3_compareC): New.
13284         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
13285         to be first.  Use aarch64_carry_operation.
13286         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
13287         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
13288         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
13289         (subti3): Use subdi3_compare1.
13290         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
13291         (sub<mode>3_compare1): New.
13292         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
13293         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
13294         (*subsi3_carryin_uxtw): Likewise.
13295         (*ngc<mode>, *ngcsi_uxtw): Likewise.
13296         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
13297         * config/aarch64/iterators.md (DWI): New.
13298         * config/aarch64/predicates.md (aarch64_carry_operation): New.
13299         (aarch64_borrow_operation): New.
13300
13301 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
13302
13303         * graphite-optimize-isl.c (optimize_isl): Print a different debug
13304         message when isl does not return a valid schedule.
13305
13306 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13307
13308         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
13309         Remove comments from class declarations: they are already in the code
13310         close by the defs.
13311
13312 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13313
13314         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
13315         codegen_error_p.
13316         (ternary_op_to_tree): Same.
13317         (unary_op_to_tree): Same.
13318         (nary_op_to_tree): Same.
13319         (gcc_expression_from_isl_expr_op): Same.
13320         (gcc_expression_from_isl_expression): Same.
13321         (graphite_create_new_loop): Same.
13322         (graphite_create_new_loop_guard): Same.
13323         (build_iv_mapping): Same.
13324         (graphite_create_new_guard): Same.
13325         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
13326         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
13327
13328 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13329
13330         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
13331         instead of setting codegen_error to fail codegen.
13332
13333 2016-01-28  Jason Merrill  <jason@redhat.com>
13334
13335         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
13336
13337 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
13338
13339         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
13340         Remove CONST_INT_P check in CCMP cost calculation.
13341
13342 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
13343
13344         * config/aarch64/aarch64.c (generic_vector_cost):
13345         Set vec_permute_cost.
13346         (cortexa57_vector_cost): Likewise.
13347         (exynosm1_vector_cost): Likewise.
13348         (xgene1_vector_cost): Likewise.
13349         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
13350         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
13351         Add vec_permute_cost entry.
13352
13353 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
13354
13355         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
13356         immediate as %1.
13357         (add<mode>3_compare0): Likewise.
13358         (addsi3_compare0_uxtw): Likewise.
13359         (add<mode>3nr_compare0): Likewise.
13360         (compare_neg<mode>): Likewise.
13361         (<optab><mode>3): Likewise.
13362
13363 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
13364
13365         * tree-vect-stmts.c (vectorizable_comparison): Add
13366         NULL check for vectype.
13367
13368 2016-01-28  Richard Biener  <rguenther@suse.de>
13369
13370         PR tree-optimization/69466
13371         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
13372         Account for PHIs we couldn't duplicate.
13373
13374 2016-01-28  Martin Liska  <mliska@suse.cz>
13375
13376         PR pch/68758
13377         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
13378         instead of ENABLE_VALGRIND_CHECKING.
13379
13380 2016-01-27  Richard Henderson  <rth@redhat.com>
13381
13382         PR rtl-opt/69447
13383         * lra-remat.c (subreg_regs): New.
13384         (dump_candidates_and_remat_bb_data): Dump it.
13385         (operand_to_remat): Reject if operand in subreg_regs.
13386         (set_bb_regs): Collect subreg_regs.
13387         (lra_remat): Init and free subreg_regs.  Compute
13388         calculate_local_reg_remat_bb_data before create_cands.
13389
13390 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
13391
13392         PR target/68986
13393         * config/i386/i386.c (ix86_update_stack_boundary): Don't
13394         change stack_alignment_needed for __tls_get_addr call.
13395
13396 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
13397
13398         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
13399
13400 2016-01-27  Jeff Law  <law@redhat.com>
13401
13402         PR tree-optimization/68398
13403         PR tree-optimization/69196
13404         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
13405         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
13406         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13407         Only count PHIs in the last block in the path.  The others will
13408         const/copy propagate away.  Add heuristic to allow more irreducible
13409         subloops to be created when it is likely profitable to do so.
13410
13411         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13412         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
13413         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
13414
13415 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
13416
13417         PR lto/69254
13418         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
13419         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
13420         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
13421         * tree-streamer-in.c: Include asan.h.
13422         (streamer_get_builtin_tree): For builtins in sanitizer
13423         range call initialize_sanitizer_builtins and retry.
13424
13425 2016-01-27  Ian Lance Taylor  <iant@google.com>
13426
13427         * common.opt (fkeep-gc-roots-live): New undocumented option.
13428         * tree-ssa-loop-ivopts.c (add_candidate_1): If
13429         -fkeep-gc-roots-live, skip pointers.
13430         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
13431         NULL.
13432
13433 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
13434
13435         PR target/69512
13436         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
13437         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
13438
13439 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
13440
13441         PR target/68380
13442         * configure.ac: NetBSD provides SSP in its C library.
13443         * configure: Updated.
13444
13445 2016-01-27  Richard Biener  <rguenther@suse.de>
13446
13447         PR tree-optimization/69166
13448         * tree-vect-loop.c (vect_is_simple_reduction): Always check
13449         reduction code for commutativity / associativity.
13450
13451 2016-01-27  Martin Jambor  <mjambor@suse.cz>
13452
13453         PR tree-optimization/69355
13454         * tree-sra.c (analyze_access_subtree): Correct hole detection when
13455         total_scalarization fails.
13456
13457 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
13458
13459         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
13460         power9.
13461
13462 2016-01-27  Christian Bruel  <christian.bruel@st.com>
13463
13464         PR target/69245
13465         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
13466         Move arm_reset_previous_fndecl and set_target_option_current_node in
13467         the conditional part.  Call save_restore_target_globals.
13468         * config/arm/arm.c (arm_set_current_function):
13469         Refactor to better support #pragma target and attribute mix.
13470         Call save_restore_target_globals.
13471         * config/arm/arm-protos.h (save_restore_target_globals): New function.
13472
13473 2016-01-27  Martin Liska  <mliska@suse.cz>
13474
13475         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
13476         reference for an HSA kernel and its host function.
13477
13478 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
13479
13480         PR tree-optimization/69399
13481         * wide-int.h (wi::lrshift): For larger precisions, only
13482         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
13483
13484 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
13485
13486         * config/arc/predicates.md (proper_comparison_operator): Reject
13487         constant-constant comparison.
13488
13489 2016-01-26  Tom de Vries  <tom@codesourcery.com>
13490
13491         PR tree-optimization/69110
13492         * tree-data-ref.c (initialize_data_dependence_relation): Handle
13493         DR_NUM_DIMENSIONS == 0.
13494
13495 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
13496             Sebastian Pop  <s.pop@samsung.com>
13497
13498         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
13499         isl_ast_op_cond and isl_ast_op_select.
13500         (gcc_expression_from_isl_expr_op): Same.
13501
13502 2016-01-26  Jason Merrill  <jason@redhat.com>
13503
13504         PR c++/68782
13505         * tree.c (recompute_constructor_flags): Split out from
13506         build_constructor.
13507         (verify_constructor_flags): New.
13508         * tree.h: Declare them.
13509
13510 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
13511
13512         PR rtl-optimization/69217
13513         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
13514         are no TYPE_FIELDS set for the record type.
13515
13516 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13517
13518         PR target/68662
13519         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
13520         toc_label_name unconditionally.
13521         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
13522         SYMBOL_REF string.  Use toc_label_name instead of constructing
13523         LCTOC1.
13524         (rs6000_elf_declare_function_name): Use toc_label_name instead of
13525         constructing LCTOC1.
13526
13527 2016-01-26  Martin Sebor  <msebor@redhat.com>
13528
13529         PR other/69477
13530         * doc/extend.texi (Common Type Attributes): Move text that talks about
13531         attribute packed from attribute aligned to the section discussing
13532         the former attribute for clarity.
13533
13534 2016-01-26  Richard Henderson  <rth@redhat.com>
13535
13536         PR middle-end/60908
13537         * trans-mem.c (tm_region_init): Mark entry block as visited.
13538
13539 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
13540
13541         PR other/69006
13542         * diagnostic-show-locus.c (layout::print_source_line): Replace
13543         call to pp_newline with call to layout::print_newline.
13544         (layout::print_annotation_line): Likewise.
13545         (layout::move_to_column): Likewise.
13546         (layout::print_any_fixits): After printing any fixits, print a
13547         trailing newline, if necessary.
13548         (layout::print_newline): New method, resetting any colorization
13549         before a newline.
13550         (diagnostic_show_locus): Move the pp_newline to before the
13551         early bailout.  Remove dummy block enclosing the layout instance.
13552         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
13553         of pp_newline_and_flush with pp_flush.
13554         (diagnostic_append_note): Delete use of pp_newline.
13555         (diagnostic_append_note_at_rich_loc): Delete.
13556         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
13557         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
13558         when newline characters are added to the buffer.
13559
13560 2016-01-26  Michael Matz  <matz@suse.de>
13561
13562         * configure.ac (ac_cv_std_swap_in_utility): New test.
13563         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
13564         * configure: Regenerate.
13565         * config.in: Regenerate.
13566
13567 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
13568
13569         * config/arc/arc.md (cstoresi4): Force operand into register.
13570         (arcset<code>): Fix predicate.
13571         (arcsetltu): Likewise.
13572         (arcsetgeu): Likewise.
13573         (arcsethi): Likewise.
13574         (arcsetls): Likewise.
13575
13576 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13577
13578         PR tree-optimization/69483
13579         * gimple-fold.c (canonicalize_constructor_val): Return NULL
13580         if base has error_mark_node type.
13581
13582 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
13583
13584         PR target/68620
13585         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
13586         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
13587         New helper macros.
13588         (vget_lane_f16): Handle big-endian.
13589         (vgetq_lane_f16): Likewise.
13590         (vset_lane_f16): Likewise.
13591         (vsetq_lane_f16): Likewise.
13592         * config/arm/iterators.md (VQXMOV): Add V8HF.
13593         (VDQ): Add V4HF and V8HF.
13594         (V_reg): Handle V4HF and V8HF.
13595         (Is_float_mode): Likewise.
13596         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
13597         neon_vdup_nv8hf): New patterns.
13598         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
13599         Use VD_LANE iterator.
13600         (neon_vld1_dup<mode>): Use VQ2 iterator.
13601
13602 2016-01-26  Nathan Sidwell  <nathan@acm.org>
13603
13604         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
13605         (set_oacc_fn_attrib): Add IS_KERNEL arg.
13606         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
13607         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
13608         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
13609         (oacc_validate_dims): Add LEVEL arg, don't return level.
13610         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
13611         oacc_validate_dims.
13612         (execute_oacc_device_lower): Adjust, add more dump output.
13613         * tree-ssa-loop.c (gate_oacc_kernels): Use
13614         oacc_fn_attrib_kernels_p.
13615         * tree-parloops.c (create_parallel_loop): Adjust
13616         set_oacc_fn_attrib call.
13617
13618 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13619
13620         PR lto/69254
13621         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
13622         (append_compiler_options): Handle -fcilkplus.
13623         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
13624
13625 2016-01-26  Nick Clifton  <nickc@redhat.com>
13626
13627         PR target/66655
13628         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
13629         been marked as DECL_ONE_ONLY but we do not the means to make it
13630         so, then do not allow it to bind locally.
13631
13632 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13633
13634         PR lto/69254
13635         * opts.h (parse_sanitizer_options): New prototype.
13636         * opts.c (sanitizer_opts): New array.
13637         (parse_sanitizer_options): New function.
13638         (common_handle_option): Use parse_sanitizer_options.
13639
13640 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
13641
13642         PR target/68986
13643         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
13644         alignment adjustment to ...
13645         (ix86_update_stack_boundary): Here.  Don't over-align stack for
13646         __tls_get_addr.
13647         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
13648         if __tls_get_addr is called.
13649
13650 2016-01-26  Christian Bruel  <christian.bruel@st.com>
13651
13652         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
13653
13654 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
13655
13656         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
13657
13658 2016-01-26  Richard Biener  <rguenther@suse.de>
13659
13660         PR middle-end/69467
13661         * match.pd: Guard X * CST CMP 0 pattern with single_use.
13662
13663 2016-01-26  Richard Biener  <rguenther@suse.de>
13664
13665         PR tree-optimization/69452
13666         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
13667         (move_computations_dom_walker::before_dom_children): Rename
13668         to ...
13669         (move_computations_worker): This.
13670         (move_computations): Perform an RPO rather than a DOM walk.
13671
13672 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13673
13674         PR target/69442
13675         * combine.c (combine_instructions): For REG_EQUAL note with
13676         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
13677         to the underlying register.
13678         * doc/rtl.texi (REG_EQUAL): Document the behavior of
13679         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
13680
13681 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
13682
13683         PR target/67896
13684         * config/aarch64/aarch64-builtins.c
13685         (aarch64_init_simd_builtin_types): Do not set structural
13686         equality to __Poly{8,16,64,128}_t types.
13687
13688 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
13689
13690         PR tree-optimization/69400
13691         * wide-int.cc (wi_pack): Take the precision as argument and
13692         perform canonicalization here rather than in the callers.
13693         Use the main loop to handle all full-width HWIs.  Add a
13694         zero HWI if in_len isn't a full result.
13695         (wi::divmod_internal): Update accordingly.
13696         (wi::mul_internal): Likewise.  Simplify.
13697
13698 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
13699             Sebastian Pop  <s.pop@samsung.com>
13700
13701         * graphite-poly.c (apply_poly_transforms): Simplify.
13702         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
13703         (print_isl_map): Same.
13704         (print_isl_union_map): Same.
13705         (print_isl_schedule): New.
13706         (debug_isl_schedule): New.
13707         * graphite-dependences.c (scop_get_reads): Do not call
13708         isl_union_map_add_map that is undocumented isl functionality.
13709         (scop_get_must_writes): Same.
13710         (scop_get_may_writes): Same.
13711         (scop_get_original_schedule): Remove.
13712         (scop_get_dependences): Do not call isl_union_map_compute_flow that
13713         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
13714         (compute_deps): Remove.
13715         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
13716         (debug_schedule_ast): New.
13717         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
13718         set_separate_option.
13719         (graphite_regenerate_ast_isl): Add dump.
13720         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
13721         from scop->transformed_schedule.
13722         (graphite_regenerate_ast_isl): Add more dump.
13723         * graphite-optimize-isl.c (optimize_isl): Set
13724         scop->transformed_schedule.  Check whether schedules are equal.
13725         (apply_poly_transforms): Move here.
13726         * graphite-poly.c (apply_poly_transforms): ... from here.
13727         (free_poly_bb): Static.
13728         (free_scop): Static.
13729         (pbb_number_of_iterations_at_time): Remove.
13730         (print_isl_ast): New.
13731         (debug_isl_ast): New.
13732         (debug_scop_pbb): New.
13733         * graphite-scop-detection.c (print_edge): Move.
13734         (print_sese): Move.
13735         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
13736         (build_scop_scattering): Remove.
13737         (create_pw_aff_from_tree): Assert instead of bailing out.
13738         (add_condition_to_pbb): Remove unused code, do not fail.
13739         (add_conditions_to_domain): Same.
13740         (add_conditions_to_constraints): Remove.
13741         (build_scop_context): New.
13742         (add_iter_domain_dimension): New.
13743         (build_iteration_domains): Initialize pbb->iterators.
13744         Call add_conditions_to_domain.
13745         (nested_in): New.
13746         (loop_at): New.
13747         (index_outermost_in_loop): New.
13748         (index_pbb_in_loop): New.
13749         (outermost_pbb_in): New.
13750         (add_in_sequence): New.
13751         (add_outer_projection): New.
13752         (outer_projection_mupa): New.
13753         (add_loop_schedule): New.
13754         (build_schedule_pbb): New.
13755         (build_schedule_loop): New.
13756         (embed_in_surrounding_loops): New.
13757         (build_schedule_loop_nest): New.
13758         (build_original_schedule): New.
13759         (build_poly_scop): Call build_original_schedule.
13760         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
13761         (free_poly_dr): Remove.
13762         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
13763         (free_poly_bb): Remove.
13764         (debug_loop_vec): Remove.
13765         (print_isl_ast): Declare.
13766         (debug_isl_ast): Declare.
13767         (scop_do_interchange): Remove.
13768         (scop_do_strip_mine): Remove.
13769         (scop_do_block): Remove.
13770         (flatten_all_loops): Remove.
13771         (optimize_isl): Remove.
13772         (pbb_number_of_iterations_at_time): Remove.
13773         (debug_scop_pbb): Declare.
13774         (print_schedule_ast): Declare.
13775         (debug_schedule_ast): Declare.
13776         (struct scop): Remove schedule.  Add original_schedule,
13777         transformed_schedule.
13778         (free_gimple_poly_bb): Remove.
13779         (print_generated_program): Remove.
13780         (debug_generated_program): Remove.
13781         (unify_scattering_dimensions): Remove.
13782         * sese.c (print_edge): ... here.
13783         (print_sese): ... here.
13784         (debug_edge): ... here.
13785         (debug_sese): ... here.
13786         * sese.h (print_edge): Declare.
13787         (print_sese): Declare.
13788         (dump_edge): Declare.
13789         (dump_sese): Declare.
13790
13791 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
13792             Sebastian Pop  <s.pop@samsung.com>
13793
13794         * Makefile.in: Set ISLVER in site.exp.
13795
13796 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
13797
13798         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
13799         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
13800         through DECL_VALUE_EXPR for expansion.
13801
13802 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13803
13804         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
13805         the frame info after reload completed.
13806
13807 2016-01-25  Jeff Law  <law@redhat.com>
13808
13809         PR tree-optimization/69196
13810         PR tree-optimization/68398
13811         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
13812         tree-ssa-threadupdate.c.
13813         (determine_bb_domination_status): Prototype
13814         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
13815         (determine_bb_domination_status): No longer static.
13816         (valid_jump_thread_path): Remove code to detect characteristics
13817         of the jump thread path not associated with correctness.
13818         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
13819         Correct test for thread path length.  Count PHIs for real operands as
13820         statements that need to be copied.  Do not count ASSERT_EXPRs.
13821         Look at all the blocks in the thread path.  Compute and selectively
13822         filter thread paths based on threading through the latch, threading
13823         a multiway branch or crossing a multiway branch.
13824
13825 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13826
13827         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
13828         decl with __attribute__ ((unused)) annotation.
13829
13830 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
13831
13832         PR target/69421
13833         * tree-vect-stmts.c (vectorizable_condition): Check vectype
13834         of operands is compatible with a statement vectype.
13835
13836 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
13837
13838         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
13839         improve wording for mixed storage order support.
13840
13841 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
13842
13843         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
13844         (vcvt_u64_f64): Likewise.
13845         (vcvta_s64_f64): Likewise.
13846         (vcvta_u64_f64): Likewise.
13847         (vcvtm_s64_f64): Likewise.
13848         (vcvtm_u64_f64): Likewise.
13849         (vcvtn_s64_f64): Likewise.
13850         (vcvtn_u64_f64): Likewise.
13851         (vcvtp_s64_f64): Likewise.
13852         (vcvtp_u64_f64): Likewise.
13853
13854 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
13855
13856         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
13857         (arc_init): Check validity mll64 option.
13858         (arc_save_restore): Use double load/store instruction.
13859         (arc_expand_movmem): Likewise.
13860         (arc_split_move): Don't split if we have double load/store
13861         instructions. Returns a boolean.
13862         (arc_process_double_reg_moves): Change function to return boolean
13863         instead of a sequence of instructions.
13864         (arc_dwarf_register_span): New function.
13865         * config/arc/arc-protos.h (arc_split_move): Change prototype.
13866         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
13867         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
13868         (*movdf_insn): Likewise.
13869         * config/arc/arc.opt (mll64): New option.
13870         * config/arc/predicates.md (even_register_operand): New predicate.
13871         * doc/invoke.texi (ARC Options): Add mll64 documentation.
13872
13873 2016-01-25  Richard Biener  <rguenther@suse.de>
13874
13875         PR lto/69393
13876         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
13877         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
13878         DECL_NAMELESS.
13879         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
13880
13881 2016-01-25  Richard Biener  <rguenther@suse.de>
13882
13883         PR tree-optimization/69376
13884         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
13885         flag.
13886         (VN_INFO_ANTI_RANGE_P): New inline.
13887         (VN_INFO_RANGE_TYPE): Likewise.
13888         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
13889         SSA_NAME_ANTI_RANGE_P.
13890         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
13891         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13892         Properly query VN_INFO_RANGE_TYPE.
13893
13894 2016-01-25  Nick Clifton  <nickc@redhat.com>
13895
13896         PR target/66655
13897         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
13898
13899 2016-01-23  Tom de Vries  <tom@codesourcery.com>
13900
13901         PR tree-optimization/69426
13902         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
13903         removed clobber.
13904
13905 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
13906
13907         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
13908         "the the" with "the" in the comments.
13909         * ipa-devirt.c (build_type_inheritance_graph,
13910         update_type_inheritance_graph): Likewise.
13911         * tree.c (build_function_type_list_1): Likewise.
13912         * cfgloopmanip.c (scale_loop_profile): Likewise.
13913         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
13914         * gimple-ssa-split-paths.c
13915         (find_block_to_duplicate_for_splitting_paths): Likewise.
13916         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
13917         * expr.c (convert_move): Likewise.
13918         * var-tracking.c (vt_stack_adjustments): Likewise.
13919         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
13920         * tree-vrp.c (test_for_singularity): Likewise.
13921
13922         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
13923         directly instead of building a temporary tree.
13924
13925         PR bootstrap/69434
13926         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
13927         remove <algorithm> include.
13928
13929 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
13930
13931         PR target/69432
13932         * config/i386/i386.c: Include dojump.h.
13933         (expand_small_movmem_or_setmem,
13934         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
13935         fixes.
13936         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
13937         if dynamic_check != -1.
13938
13939 2016-01-21  Jeff Law  <law@redhat.com>
13940
13941         PR middle-end/69347
13942         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
13943         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
13944         into dominated_by_p.
13945         (cprop_into_successor_phis): Avoid unnecessary tests.
13946
13947 2016-01-22  Richard Henderson  <rth@redhat.com>
13948
13949         PR target/69416
13950         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
13951         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
13952
13953 2016-01-22  Michael Matz  <matz@suse.de>
13954
13955         * system.h (string, algorithm): Include only conditionally.
13956         (new): Include always under C++.
13957         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
13958         * final.c (toplevel): Ditto.
13959         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
13960         * genconditions.c (write_header): Make gencondmd.c define
13961         INCLUDE_STRING.
13962         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
13963
13964         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
13965         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
13966
13967 2016-01-22  Christian Bruel  <christian.bruel@st.com>
13968
13969         PR target/68674
13970         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
13971
13972 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13973
13974         PR target/69403
13975         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
13976         define_insn_and_split.  Ensure operands[1] and operands[0] do not
13977         get assigned the same register.
13978
13979 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
13980
13981         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
13982
13983 2016-01-22  Christian Bruel  <christian.bruel@st.com>
13984
13985         * config/arm/arm-c.c (arm_pragma_target_parse):
13986         Remove warn_builtin_macro_redefined overwrite.
13987
13988 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
13989
13990         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
13991         flag_non_call_exceptions compatibility.
13992
13993 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
13994
13995         PR debug/66668
13996         * dwarf2out.c (add_child_die_after): New function.
13997         (dwarf_qual_info_t): New type.
13998         (dwarf_qual_info): New variable.
13999         (qualified_die_p): New function.
14000         (modified_type_die): For -fdebug-types-section, ensure
14001         canonical order of qualifiers.  Put qualified DIEs adjacent
14002         to the corresponding non-qualified type DIE and search there
14003         for existing qualified DIEs.
14004
14005 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
14006
14007         * doc/extend.texi (scalar_storage_order type attribute): Document
14008         restriction on type punning and aliasing, and remove future tense.
14009
14010 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
14011
14012         PR target/69252
14013         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
14014         first stage.
14015
14016 2016-01-21  Jeff Law  <law@redhat.com>
14017
14018         PR middle-end/69347
14019         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
14020         useless call to record_temporary_equivalences.
14021         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
14022         allocate 10 slots in the bb_path vector and let it grow as needed.
14023         (fsm_find_control_statement_thread_paths): Similarly for the next_path
14024         vector.
14025
14026 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
14027
14028         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
14029         Detangle.
14030         * configure: Regenerate.
14031
14032 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
14033
14034         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
14035         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
14036
14037 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
14038
14039         PR middle-end/66178
14040         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
14041         drop EXPAND_INITIALIZER.
14042         * rtl.h (contains_symbolic_reference_p): Declare.
14043         * rtlanal.c (contains_symbolic_reference_p): New function.
14044         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
14045         a subtraction into a NOT if symbolic constants are involved.
14046
14047 2016-01-21  Anton Blanchard  <anton@samba.org>
14048             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14049
14050         PR target/63354
14051         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
14052         #define.
14053         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
14054         function.
14055
14056 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
14057
14058         * config/microblaze/microblaze.c
14059         (get_branch_target): New.
14060         (insert_wic_for_ilb_runout): New.
14061         (insert_wic): New.
14062         (microblaze_machine_dependent_reorg): New.
14063         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
14064         * config/microblaze/microblaze.md
14065         (UNSPEC_IPREFETCH): Define.
14066         (iprefetch): New pattern
14067         * config/microblaze/microblaze.opt
14068         (mxl-prefetch): New flag.
14069
14070 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
14071
14072         * config/microblaze/microblaze.h
14073         (FIXED_REGISTERS): Update in macro.
14074         (CALL_USED_REGISTERS): Update in macro.
14075
14076 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
14077
14078         PR rtl-optimization/68920
14079         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
14080         moves.
14081
14082 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
14083
14084         PR rtl-optimization/68990
14085         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
14086         pseudo instead of inheritance ones.
14087
14088 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14089             Nick Clifton  <nickc@redhat.com>
14090
14091         PR target/69129
14092         PR target/69012
14093         * config/mips/mips.c (mips_compute_frame_info): Initialise
14094         args_size and hard_frame_pointer_offset fields of the frame
14095         structure before calling mips_global_pointer.
14096
14097 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
14098
14099         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
14100         label reference.
14101         * configure: Regenerate.
14102
14103 2016-01-21  Richard Biener  <rguenther@suse.de>
14104
14105         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
14106
14107 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
14108
14109         * config/s390/s390.c (s390_asm_declare_function_size): Add code
14110         to actually emit the .size directive.
14111
14112 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
14113              Jakub Jelinek  <jakub@redhat.com>
14114
14115         PR target/69187
14116         PR target/65624
14117         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
14118         args array size by one to avoid buffer overflow.
14119
14120 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
14121
14122         * config/s390/s390.md (pool_section_start): Use switch_to_section
14123         to select proper read-only data section instead of hardcoding
14124         .rodata.
14125         (pool_section_end): Use switch_to_section to match the above.
14126
14127 2016-01-21  Richard Biener  <rguenther@suse.de>
14128
14129         PR tree-optimization/69378
14130         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
14131         (set_ssa_val_to): Use it for dominance checks taking into
14132         account not executable edges.
14133
14134 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
14135
14136         PR c++/69355
14137         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
14138         for bitsize instead of GET_MODE_PRECISION (mode).
14139
14140 2016-01-20  Martin Sebor  <msebor@redhat.com>
14141
14142         PR c/52291
14143         * extend.texi (__sync Builtins): Clarify the semantics of
14144         __sync_fetch_and_OP built-ins on pointers.
14145         (__atomic Builtins): Same.
14146
14147 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14148             Sebastian Pop  <s.pop@samsung.com>
14149
14150         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
14151         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
14152         (is_valid_rename): Same.
14153         (translate_isl_ast_to_gimple::get_rename): Same.
14154         (translate_isl_ast_to_gimple::rename_all_uses): Same.
14155         (translate_isl_ast_to_gimple::rename_uses): Same.
14156         (get_new_name): Check for close_phi nodes.
14157         (copy_loop_phi_args): Use phi_node_kind.
14158         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
14159         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
14160
14161 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14162             Sebastian Pop  <s.pop@samsung.com>
14163
14164         Revert commit r229783.
14165         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
14166         Remove use of parameter_rename_map.
14167         (copy_def): Remove.
14168         (copy_internal_parameters): Remove.
14169         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
14170         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
14171         (free_sese_info): Do not free parameter_rename_map.
14172         (set_rename): Do not use parameter_rename_map.
14173         (rename_uses): Update call to set_rename.
14174         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
14175         * sese.h (parameter_rename_map_t): Remove.
14176         (struct sese_info_t): Remove field parameter_rename_map.
14177
14178 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14179             Sebastian Pop  <s.pop@samsung.com>
14180
14181         * graphite-isl-ast-to-gimple.c: Fix comment.
14182         * graphite-scop-detection.c (defined_in_loop_p): New.
14183         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
14184         names defined in loop.
14185
14186 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14187             Sebastian Pop  <s.pop@samsung.com>
14188
14189         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
14190         Discard unstructured if-then-else regions.
14191
14192 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14193             Sebastian Pop  <s.pop@samsung.com>
14194
14195         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
14196         (cleanup_loop_iter_dom): Remove.
14197         (build_loop_iteration_domains): Remove.
14198         (build_scop_context): Remove.
14199         (build_scop_iteration_domain): Remove.
14200         (add_loop_constraints): New.
14201         (build_iteration_domains): New.
14202         (build_poly_scop): Call build_iteration_domains.
14203
14204 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14205             Sebastian Pop  <s.pop@samsung.com>
14206
14207         * graphite-scop-detection.c
14208         (scop_detection::harmful_loop_in_region): Free dom and loops.
14209         (scop_detection::loop_body_is_valid_scop): Free bbs.
14210
14211 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14212             Sebastian Pop  <s.pop@samsung.com>
14213
14214         * graphite-scop-detection.c (record_loop_in_sese): New.
14215         (gather_bbs::before_dom_children): Call record_loop_in_sese.
14216         (build_scops): Remove call to build_sese_loop_nests.
14217         * sese.c (sese_record_loop): Remove.
14218         (build_sese_loop_nests): Remove.
14219         (new_sese_info): Remove region->loops.
14220         (free_sese_info): Same.
14221         * sese.h (sese_contains_loop): Same.
14222         (build_sese_loop_nests): Remove.
14223         (sese_contains_loop): Remove.
14224
14225 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14226             Sebastian Pop  <s.pop@samsung.com>
14227
14228         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
14229         loop_is_valid_in_scop.
14230         (scop_detection::harmful_stmt_in_region): Renamed
14231         harmful_loop_in_region.
14232         Call loop_is_valid_in_scop.
14233
14234 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14235             Sebastian Pop  <s.pop@samsung.com>
14236
14237         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
14238         isl_ast_node_mark.
14239
14240 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14241             Sebastian Pop  <s.pop@samsung.com>
14242
14243         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
14244         * graphite.h (struct poly_bb): Remove field is_reduction.
14245         (PBB_IS_REDUCTION): Remove.
14246
14247 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14248             Sebastian Pop  <s.pop@samsung.com>
14249
14250         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
14251         (add_pdr_constraints): Same.
14252         (scop_get_reads): Same.
14253         (scop_get_must_writes): Same.
14254         (scop_get_may_writes): Same.
14255         (scop_get_original_schedule): Same.
14256         (extend_schedule): Same.
14257         (apply_schedule_on_deps): Same.
14258         (carries_deps): Same.
14259         (compute_deps): Same.
14260         (scop_get_dependences): Same.
14261         * graphite-isl-ast-to-gimple.c
14262         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
14263         * graphite-optimize-isl.c (get_schedule_for_band): Same.
14264         (get_schedule_for_band_list): Same.
14265         (get_schedule_map): Same.
14266         (apply_schedule_map_to_scop): Same.
14267         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
14268         (build_loop_iteration_domains): Same.
14269         (add_condition_to_pbb): Same.
14270         (add_param_constraints): Same.
14271         (pdr_add_memory_accesses): Same.
14272         (pdr_add_data_dimensions): Same.
14273
14274 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
14275
14276         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
14277         requirements.
14278
14279 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
14280
14281         * common.opt (feliminate-dwarf2-dups): Replace references to
14282         "DWARF 2" with just "DWARF".
14283         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
14284         * doc/extend.texi: Likewise.
14285         * doc/cpp.texi: Likewise.
14286         * doc/invoke.texi: Likewise.
14287         (Option Summary): Add -gdwarf to list of Debugging Options.
14288         (Debugging Options): Document -gdwarf.
14289         * doc/contrib.texi: Spell "DWARF" like that.
14290
14291 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
14292
14293         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
14294         warning.  Fix up formatting.
14295
14296         PR middle-end/67653
14297         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
14298         attempt to mark memory input operand addressable and
14299         call prepare_gimple_addressable in that case.  Don't adjust
14300         input_location for diagnostics, use error_at instead.
14301
14302 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
14303
14304         * config/rs6000/ppc-auxv.h: New file.
14305         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
14306         (cpu_is): Likewise.
14307         (cpu_supports): Likewise.
14308         * config/rs6000/rs6000.c: include "ppc-auxv.h".
14309         (cpu_is_info): New variable.
14310         (cpu_supports_info): Likewise.
14311         (tcb_verification_symbol): Likewise.
14312         (cpu_builtin_p): Likewise.
14313         (cpu_expand_builtin): New function.
14314         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
14315         (rs6000_init_builtins): Likewise.
14316         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
14317         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
14318         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
14319         * configure: Regenerate.
14320         * config.in: Likewise.
14321         * doc/extend.texi (PowerPC Built-in Functions): Document
14322         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
14323
14324 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
14325
14326         PR target/68609
14327         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
14328         domain check.
14329         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
14330         for V4SFmode.
14331
14332 2016-01-20  Richard Henderson  <rth@redhat.com>
14333
14334         PR bootstrap/69343
14335         PR bootstrap/69339
14336         PR tree-opt/68964
14337         Revert:
14338         * tree.c (tm_define_builtin): New.
14339         (find_tm_vector_type): New.
14340         (build_tm_vector_builtins): New.
14341         (build_common_builtin_nodes): Call it.
14342
14343 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
14344
14345         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
14346         (arm_fp_ok): Likewise.
14347         (arm_fp): Likewise.
14348         (arm_crypto): Likewise.
14349
14350 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
14351             Richard Biener  <rguenther@suse.de>
14352
14353         PR tree-optimization/69328
14354         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
14355         vectors have same number of elements.
14356         (vectorizable_condition): Fix masked version recognition.
14357
14358 2016-01-20  Richard Biener  <rguenther@suse.de>
14359
14360         PR tree-optimization/69345
14361         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
14362         (VN_INFO_PTR_INFO): Likewise.
14363         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
14364         info when it is equal between non-dominating SSA names.
14365         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14366         Make sure to look at original SSA infos.
14367
14368 2016-01-20  Jeff Law  <law@redhat.com>
14369
14370         PR target/25114
14371         * config/m68k/predicates.md (pow2_m1_operand): New predicate
14372         extracted from ...
14373         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
14374         (pc_or_label_operand): New predicate.
14375         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
14376         tests for small integers that are 2^n - 1.
14377
14378 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
14379
14380         * doc/invoke.texi (Options Summary): Add '.' after @xref.
14381
14382 2016-01-19  Jeff Law  <law@redhat.com>
14383
14384         PR middle-end/69347
14385         * tree-ssa-threadbackwards.c
14386         (fsm_find_control_statement_thread_paths): Do not try to lookup
14387         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
14388
14389 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
14390
14391         * doc/lto.texi: Remove text that says only Gold has linker plugin
14392         support.
14393
14394 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
14395
14396         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
14397         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
14398         the DIE accordingly.
14399         (modified_type_die): Add REVERSE parameter and pass it recursively,
14400         as well as to base_type_die.  Adjust presence check accordingly.
14401         (base_type_for_mode): Adjust call to modified_type_die.
14402         (add_type_attribute): Add REVERSE parameter and pass it to
14403         modified_type_die.
14404         (generic_parameter_die): Adjust call to add_type_attribute.
14405         (add_scalar_info): Likewise.
14406         (add_subscript_info): Likewise.
14407         (gen_array_type_die): Likewise.
14408         (gen_descr_array_type_die): Likewise.
14409         (gen_entry_point_die): Likewise.
14410         (gen_enumeration_type_die): Likewise.
14411         (gen_formal_parameter_die): Likewise.
14412         (gen_subprogram_die): Likewise.
14413         (gen_variable_die ): Likewise.
14414         (gen_const_die): Likewise.
14415         (gen_field_die): Likewise.
14416         (gen_pointer_type_die): Likewise.
14417         (gen_reference_type_die): Likewise.
14418         (gen_ptr_to_mbr_type_die): Likewise.
14419         (gen_inheritance_die): Likewise.
14420         (gen_subroutine_type_die): Likewise.
14421         (gen_typedef_die): Likewise.
14422         (force_type_die): Adjust call to modified_type_die.
14423
14424 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
14425
14426         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
14427         flow throughout the file.  Fix broken link to Objective-C 2.0
14428         documentation.
14429         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
14430         errors.
14431
14432 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14433
14434         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
14435
14436 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14437
14438         PR ipa/66223
14439         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
14440         (maybe_record_node): Record cxa_pure_virtual as the only possible
14441         target if there are not ohter candidates.
14442         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
14443
14444 2016-01-19  Richard Biener  <rguenther@suse.de>
14445
14446         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
14447         (get_memory_order): Likewise.
14448
14449 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
14450
14451         * tree-vect-stmts.c (vectorizable_store): Check
14452         rhs vectype.
14453
14454 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
14455
14456         PR jit/68446
14457         * gcc.c (driver::decode_argv): Add call to
14458         init_opts_obstack before init_options_struct.
14459         * opts.c (init_opts_obstack): Remove idempotency.
14460         (init_options_struct): Replace call to init_opts_obstack
14461         with a gcc_assert to verify that it has already been called.
14462         * toplev.c (toplev::main): Add call to init_opts_obstack before
14463         calls to init_options_struct.
14464         (toplev::finalize): Move cleanup of opts_obstack next to
14465         cleanup of save_decoded_options, clearing the latter, and
14466         save_decoded_options_count.
14467
14468 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14469
14470         PR target/69135
14471         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
14472         attribute to unconditional.  Remove %? from output template.
14473
14474 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14475             Jiong Wang  <jiong.wang@arm.com>
14476
14477         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
14478         generated from different expand order.
14479
14480 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14481
14482         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
14483         Add support for CCMP costing.
14484
14485 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14486
14487         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
14488         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
14489         (fccmpe<mode>): Likewise.
14490         (fcmp): Rename to fcmp and globalize pattern.
14491         (fcmpe): Likewise.
14492         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
14493         (aarch64_gen_ccmp_next): Add FP support.
14494
14495 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14496
14497         * target.def (gen_ccmp_first): Update documentation.
14498         (gen_ccmp_next): Likewise.
14499         * doc/tm.texi (gen_ccmp_first): Update documentation.
14500         (gen_ccmp_next): Likewise.
14501         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
14502         expand_ccmp_expr_1.  Improve comments.
14503         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
14504         (ccmp_ior<mode>): Remove pattern.
14505         (cmp<mode>): Remove expand.
14506         (cmp): Globalize pattern.
14507         (cstorecc4): Use cc_register.
14508         (mov<mode>cc): Remove ccmp_cc_register check.
14509         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
14510         Simplify after removal of CC_DNE/* modes.
14511         (aarch64_ccmp_mode_to_code): Remove.
14512         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
14513         In 'k' case use integer as condition.
14514         (aarch64_nzcv_codes): Remove inverted cases.
14515         (aarch64_code_to_ccmode): Remove.
14516         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
14517         comparison with CC register to be used in folowing CCMP/branch/CSEL.
14518         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
14519         pattern.  Return the comparison with CC register.  Invert conditions
14520         when bitcode is OR.
14521         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
14522         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
14523
14524 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14525
14526         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
14527         instrumented_version.
14528
14529 2016-01-19  Richard Biener  <rguenther@suse.de>
14530
14531         PR tree-optimization/69336
14532         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
14533         handled components with get_ref_base_and_extent.
14534         (equal_mem_array_ref_p): Adjust.
14535
14536 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
14537
14538         PR debug/65779
14539         * shrink-wrap.c: Include valtrack.h.
14540         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
14541         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
14542         in between insn and where it will be moved to.  Call
14543         dead_debug_insert_temp.
14544         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
14545         first and dead_debug_local_finish at the end.
14546         For uses and defs bitmap, handle all regs in between REGNO and
14547         END_REGNO, not just the first one.
14548
14549 2016-01-19  Richard Biener  <rguenther@suse.de>
14550
14551         PR tree-optimization/69352
14552         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
14553         (equal_mem_array_ref_p): Constrain size and max size properly.
14554         Compare the reverse flag.
14555
14556 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
14557
14558         * ira.c (ira): Update regstat data if we deleted insns.
14559
14560 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
14561
14562         PR rtl-optimization/68955
14563         PR rtl-optimization/64557
14564         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
14565         here.  Fix up formatting.
14566         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
14567
14568 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14569
14570         PR lto/69133
14571         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
14572         assume that the node has body.
14573         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
14574         check.
14575
14576 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14577
14578         * lto-streamer-out.c (lto_output): Do not stream instrumentation
14579         thunks.
14580
14581 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14582
14583         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
14584         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
14585
14586 2016-01-19  Martin Jambor  <mjambor@suse.cz>
14587             Martin Liska  <mliska@suse.cz>
14588             Michael Matz  <matz@suse.de>
14589
14590         * Makefile.in (OBJS): Add new source files.
14591         (GTFILES): Add hsa.c.
14592         * common.opt (disable_hsa): New variable.
14593         (-Whsa): New warning.
14594         * config.in (ENABLE_HSA): New.
14595         * configure.ac: Treat hsa differently from other accelerators.
14596         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
14597         $enable_offloading.
14598         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
14599         * doc/install.texi (Configuration): Document --with-hsa-runtime,
14600         --with-hsa-runtime-include, --with-hsa-runtime-lib and
14601         --with-hsa-kmt-lib.
14602         * doc/invoke.texi (-Whsa): Document.
14603         (hsa-gen-debug-stores): Likewise.
14604         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
14605         to invoke offload compiler for hsa acclerator.
14606         * opts.c (common_handle_option): Determine whether HSA offloading
14607         should be performed.
14608         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
14609         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
14610         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
14611         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
14612         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
14613         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
14614         GF_OMP_FOR_KIND_GRID_LOOP.
14615         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
14616         (pp_gimple_stmt_1): Likewise.
14617         * gimple-walk.c (walk_gimple_stmt): Likewise.
14618         * gimple.c (gimple_build_omp_grid_body): New function.
14619         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
14620         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
14621         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
14622         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
14623         GF_OMP_TEAMS_GRID_PHONY.
14624         (gimple_statement_omp_single_layout): Updated comments.
14625         (gimple_build_omp_grid_body): New function.
14626         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
14627         (gimple_omp_for_grid_phony): New function.
14628         (gimple_omp_for_set_grid_phony): Likewise.
14629         (gimple_omp_parallel_grid_phony): Likewise.
14630         (gimple_omp_parallel_set_grid_phony): Likewise.
14631         (gimple_omp_teams_grid_phony): Likewise.
14632         (gimple_omp_teams_set_grid_phony): Likewise.
14633         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
14634         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
14635         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
14636         (BUILT_IN_GOMP_TARGET): Updated type.
14637         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
14638         (adjust_for_condition): New function.
14639         (get_omp_for_step_from_incr): Likewise.
14640         (extract_omp_for_data): Moved parts to adjust_for_condition and
14641         get_omp_for_step_from_incr.
14642         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
14643         (fixup_child_record_type): Bail out if receiver_decl is NULL.
14644         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
14645         (scan_omp_parallel): Do not create child functions for phony
14646         constructs.
14647         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
14648         (scan_omp_1_op): Checking assert we are not remapping to
14649         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
14650         (parallel_needs_hsa_kernel_p): New function.
14651         (expand_parallel_call): Register apprpriate parallel child
14652         functions as HSA kernels.
14653         (grid_launch_attributes_trees): New type.
14654         (grid_attr_trees): New variable.
14655         (grid_create_kernel_launch_attr_types): New function.
14656         (grid_insert_store_range_dim): Likewise.
14657         (grid_get_kernel_launch_attributes): Likewise.
14658         (get_target_argument_identifier_1): Likewise.
14659         (get_target_argument_identifier): Likewise.
14660         (get_target_argument_value): Likewise.
14661         (push_target_argument_according_to_value): Likewise.
14662         (get_target_arguments): Likewise.
14663         (expand_omp_target): Call get_target_arguments instead of looking
14664         up for teams and thread limit.
14665         (grid_expand_omp_for_loop): New function.
14666         (grid_arg_decl_map): New type.
14667         (grid_remap_kernel_arg_accesses): New function.
14668         (grid_expand_target_kernel_body): New function.
14669         (expand_omp): Call it.
14670         (lower_omp_for): Do not emit phony constructs.
14671         (lower_omp_taskreg): Do not emit phony constructs but create for them
14672         a temporary variable receiver_decl.
14673         (lower_omp_taskreg): Do not emit phony constructs.
14674         (lower_omp_teams): Likewise.
14675         (lower_omp_grid_body): New function.
14676         (lower_omp_1): Call it.
14677         (grid_reg_assignment_to_local_var_p): New function.
14678         (grid_seq_only_contains_local_assignments): Likewise.
14679         (grid_find_single_omp_among_assignments_1): Likewise.
14680         (grid_find_single_omp_among_assignments): Likewise.
14681         (grid_find_ungridifiable_statement): Likewise.
14682         (grid_target_follows_gridifiable_pattern): Likewise.
14683         (grid_remap_prebody_decls): Likewise.
14684         (grid_copy_leading_local_assignments): Likewise.
14685         (grid_process_kernel_body_copy): Likewise.
14686         (grid_attempt_target_gridification): Likewise.
14687         (grid_gridify_all_targets_stmt): Likewise.
14688         (grid_gridify_all_targets): Likewise.
14689         (execute_lower_omp): Call grid_gridify_all_targets.
14690         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
14691         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
14692         (tree_omp_clause): Added union field dimension.
14693         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
14694         * tree.c (omp_clause_num_ops): Added number of arguments of
14695         OMP_CLAUSE__GRIDDIM_.
14696         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
14697         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
14698         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
14699         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
14700         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
14701         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
14702         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
14703         * tree-pass.h (make_pass_gen_hsail): Declare.
14704         (make_pass_ipa_hsa): Likewise.
14705         * ipa-hsa.c: New file.
14706         * lto-section-in.c (lto_section_name): Add hsa section name.
14707         * lto-streamer.h (lto_section_type): Add hsa section.
14708         * timevar.def (TV_IPA_HSA): New.
14709         * hsa-brig-format.h: New file.
14710         * hsa-brig.c: New file.
14711         * hsa-dump.c: Likewise.
14712         * hsa-gen.c: Likewise.
14713         * hsa.c: Likewise.
14714         * hsa.h: Likewise.
14715         * toplev.c (compile_file): Call hsa_output_brig.
14716         * hsa-regalloc.c: New file.
14717
14718 2016-01-18  Jeff Law  <law@redhat.com>
14719
14720         PR tree-optimization/69320
14721         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
14722         ranged object, do nothing if the RHS constant is not [0..1].
14723         (optimize_stmt): Comparing a boolean ranged object against a
14724         constant outside [0..1] results in a compile-time constant.
14725
14726         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
14727         test.
14728
14729 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
14730
14731         * doc/invoke.texi (Invoking GCC): Add new section to menu.
14732         (Option Summary): Update to reflect new section and moved options.
14733         (C++ Dialect Options): Move -fstats to new section.
14734         (Debugging Options): Move all dump, statistics, and other GCC
14735         developer options to new section.  Rewrite section introduction
14736         and re-order remaining options to put the more basic ones first.
14737         (Optimization Options): Move -fira-verbose and -flto-report* to
14738         new section.
14739         (Developer Options): New section incorporating moved options.
14740         * doc/cppopts.texi (-dM): Update cross-reference.
14741
14742 2016-01-18  Richard Henderson  <rth@redhat.com>
14743
14744         PR target/69176
14745         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
14746         operands to pseudo only if CSE is expected.  Split long immediate
14747         operands only after reload, and for the stack pointer.
14748         (*add<GPI>3_pluslong): Remove.
14749         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
14750         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
14751         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
14752         (*add<GPI>3 peepholes): New.
14753         (*add<GPI>3 splitters): New.
14754         * config/aarch64/constraints.md (Upl): New.
14755         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
14756
14757 2016-01-18  Richard Biener  <rguenther@suse.de>
14758
14759         PR tree-optimization/69297
14760         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
14761         stmt at most once.
14762         (vect_bb_vectorization_profitable_p): Clear visited flag again.
14763
14764 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
14765
14766         PR middle-end/68542
14767         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
14768         of mixind vector and scalar types.
14769         (fold_relational_const): Add handling of vector
14770         comparison with boolean result.
14771         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
14772         comparison of vector operands with boolean result for EQ/NE only.
14773         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
14774         (verify_gimple_cond): Likewise.
14775         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
14776         valid type of VAL.
14777
14778 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
14779
14780         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
14781         !TARGET_OCTEON.
14782
14783 2016-01-18  Richard Biener  <rguenther@suse.de>
14784
14785         PR middle-end/69308
14786         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
14787
14788 2016-01-18  Tom de Vries  <tom@codesourcery.com>
14789
14790         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
14791
14792 2016-01-18  Tom de Vries  <tom@codesourcery.com>
14793
14794         * omp-low.c (set_oacc_fn_attrib): Make extern.
14795         * omp-low.h (set_oacc_fn_attrib): Declare.
14796         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
14797         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
14798         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
14799         Add and handle function parameter oacc_kernels_p.
14800         (find_reduc_addr, get_omp_data_i_param): New function.
14801         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
14802         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
14803         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
14804         Calculate dominance info.  Skip loops that are not in a kernels region
14805         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
14806         (pass_parallelize_loops::execute): Call parallelize_loops with
14807         oacc_kernels_p argument.
14808         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
14809         New member function.
14810         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
14811         * passes.def: Add argument to pass_parallelize_loops instantation.
14812
14813 2016-01-18  Tom de Vries  <tom@codesourcery.com>
14814
14815         * tree-parloops.c (pass_parallelize_loops::execute): Allow
14816         pass_parallelize_loops to be run outside the loop pipeline.
14817
14818 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
14819
14820         * tree-scalar-evolution.c (follow_copies_to_constant): New.
14821         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
14822
14823 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
14824
14825         PR target/63679
14826         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
14827         using get_ref_base_and_extent.
14828         (equal_mem_array_ref_p): New.
14829         (hashable_expr_equal_p): Add call to previous.
14830
14831 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
14832
14833         PR target/63679
14834         * tree-sra.c (disqualified_constants, constant_decl_p): New.
14835         (sra_initialize): Allocate disqualified_constants.
14836         (sra_deinitialize): Free disqualified_constants.
14837         (disqualify_candidate): Update disqualified_constants when appropriate.
14838         (create_access): Scan for constant-pool entries as we go along.
14839         (scalarizable_type_p): Add check against type_contains_placeholder_p.
14840         (maybe_add_sra_candidate): Allow constant-pool entries.
14841         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
14842         (initialize_constant_pool_replacements): New.
14843         (sra_modify_assign): Avoid mangling assignments created by previous,
14844         and don't generate writes into constant pool.
14845         (sra_modify_function_body): Call initialize_constant_pool_replacements.
14846
14847 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
14848
14849         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
14850         andnot instruction.
14851         (scalar_chain::convert_op): Likewise.
14852         * config/i386/i386.md (*andndi3_doubleword): New.
14853
14854 2016-01-18  Richard Biener  <rguenther@suse.de>
14855
14856         PR tree-optimization/69170
14857         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
14858         building a vector from scalar results of a pattern stmt.
14859
14860 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
14861
14862         * haifa-sched.c (autopref_multipass_init): Work around
14863         -Wmaybe-uninitialized warning.
14864
14865 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14866
14867         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
14868         against the constant 0.
14869
14870 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14871
14872         PR tree-optimization/68799
14873         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
14874         look up phi candidates in the statement-candidate map.
14875         (phi_add_costs): Likewise.
14876         (record_phi_increments): Likewise.
14877         (phi_incr_cost): Likewise.
14878         (ncd_with_phi): Likewise.
14879         (all_phi_incrs_profitable): Likewise.
14880
14881 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
14882
14883         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
14884         -Wmaybe-uninitialized warning.
14885
14886 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
14887
14888         * doc/invoke.texi (Invoking GCC): Add new section to menu.
14889         (Option Summary): Update to reflect new section and moved options.
14890         (C++ Dialect Options): Move -fvtable-verify and related options.
14891         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
14892         and profiling-related options.
14893         (Optimization Options): Move profile generation options and
14894         -fstack-protector and related options.
14895         (Instrumentation Options): New section incorporating moved options.
14896         (Code Generation Options): Move -finstrument-functions and
14897         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
14898
14899 2016-01-16  Tom de Vries  <tom@codesourcery.com>
14900
14901         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
14902
14903 2016-01-16  Tom de Vries  <tom@codesourcery.com>
14904
14905         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
14906
14907 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
14908
14909         * hash-table.h (hash_table::empty): Turn into an inline wrapper
14910         that checks whether the table is already empty.  Rename the
14911         original implementation to...
14912         (hash_table::empty_slot): ...this new private function.
14913
14914 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
14915
14916         PR diagnostic/68899
14917         * diagnostic-show-locus.c (layout::print_source_line): Move x
14918         offset of line until after call to
14919         get_line_width_without_trailing_whitespace.
14920
14921 2016-01-15  Jeff Law  <law@redhat.com>
14922
14923         PR tree-optimization/69270
14924         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
14925         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
14926         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
14927         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
14928         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
14929         ssa_name_has_boolean_range and constant_boolean_node.
14930
14931 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
14932
14933         PR rtl-optimization/69030
14934         * lra-spills.c (remove_pseudos): Check nrefs and make the function
14935         returning bool.
14936         (spill_pseudos): Delete debug insn for dead pseudo.
14937         (lra_spill): Initiate spill_hard_reg and slots memory separately.
14938
14939 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
14940
14941         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
14942         New.
14943         (TYPES_UNOPUS): Likewise.
14944         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
14945         builtin type, from UNOP to UNOPUS.
14946         (lbtruncuv4sf): Likewise.
14947         (lbtruncuv2df): Likewise.
14948         (lrounduv2sf): Likewise.
14949         (lrounduv4sf): Likewise.
14950         (lrounduv2df): Likewise.
14951         (lroundusf): Likewise.
14952         (lroundusf): Likewise.
14953         (lceiluv2sf): Likewise.
14954         (lceiluv4sf): Likewise.
14955         (lceiluv2df): Likewise.
14956         (lceilusf): Likewise.
14957         (lceiludf): Likewise.
14958         (lflooruv2sf): Likewise.
14959         (lflooruv4sf): Likewise.
14960         (lflooruv2df): Likewise.
14961         (lfloorusf): Likewise.
14962         (lfloorudf): Likewise.
14963         (lfrintnuv2sf): Likewise.
14964         (lfrintnuv4sf): Likewise.
14965         (lfrintnuv2df): Likewise.
14966         (lfrintnusf): Likewise.
14967         (lfrintnudf): Likewise.
14968         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
14969         conversion.
14970         (vcvtq_u32_f32): Likewise.
14971         (vcvtq_u64_f64): Likewise.
14972         (vcvta_u32_f32): Likewise.
14973         (vcvtaq_u32_f32): Likewise.
14974         (vcvtaq_u64_f64): Likewise.
14975         (vcvtm_u32_f32): Likewise.
14976         (vcvtmq_u32_f32): Likewise.
14977         (vcvtmq_u64_f64): Likewise.
14978         (vcvtn_u32_f32): Likwise.
14979         (vcvtnq_u32_f32): Likewise.
14980         (vcvtnq_u64_f64): Likewise.
14981         (vcvtp_u32_f32): Likewise.
14982         (vcvtpq_u32_f32): Likewise.
14983         (vcvtpq_u64_f64): Likewise.
14984         (vcvtmd_u64_f64): Likewise.
14985         (vcvtms_u32_f32): Likewise.
14986         (vcvtad_u64_f64): Likewise.
14987         (vcvtas_u32_f32): Likewise.
14988         (vcvtnd_u64_f64): Likewise.
14989         (vcvtns_u32_f32): Likewise.
14990         (vcvtpd_u64_f64): Likewise.
14991         (vcvtps_u32_f32): Likewise.
14992
14993 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14994
14995         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
14996         CSEL of zero_extended registers.
14997
14998 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14999
15000         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
15001         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
15002
15003 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15004
15005         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
15006         false when argument string is not found in the attributes table
15007         at all.
15008
15009 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
15010
15011         PR target/68609
15012         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
15013         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
15014         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
15015         precision estimate.
15016
15017 2016-01-15  Richard Biener  <rguenther@suse.de>
15018
15019         PR tree-optimization/66856
15020         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
15021         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
15022         (vect_create_new_slp_node): Increment stmt reference count.
15023         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
15024         an SLP tree before swapping operands.
15025         (vect_build_slp_tree): Likewise.
15026         (destroy_bb_vec_info): Free stmt info after SLP instances.
15027         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
15028         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
15029         (STMT_VINFO_NUM_SLP_USES): New macro.
15030
15031 2016-01-15  Richard Biener  <rguenther@suse.de>
15032
15033         PR debug/69137
15034         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
15035         (add_linkage_name): ... here.
15036         (gen_typedef_die): Use add_linkage_name_raw instead of
15037         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
15038         if necessary.
15039
15040 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
15041
15042         * gimplify.c (oacc_default_clause): Decode reference and pointer
15043         types for both kernels and parallel regions.
15044
15045 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
15046
15047         PR middle-end/69246
15048         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
15049
15050 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
15051
15052         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
15053         (convert_scalars_to_vector): Likewise.
15054
15055 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
15056
15057         * doc/extend.texi (Type Traits): Fix grammar.
15058
15059 2016-01-15  Martin Jambor  <mjambor@suse.cz>
15060
15061         * tree-inline.c (remap_decl): Use existing dclarations if
15062         remapping a type and prevent_decl_creation_for_types.
15063         (replace_locals_stmt): Do an initial remapping of non-VLA typed
15064         decls first.  Do real remapping with
15065         prevent_decl_creation_for_types set.
15066         * tree-inline.h (copy_body_data): New field
15067         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
15068         padding.
15069
15070 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15071
15072         * config/s390/s390.opt (mmvcle): More verbose help text.
15073
15074 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15075
15076         * config/s390/s390.opt: Add period to -mzvector option text.
15077
15078 2016-01-15  Richard Biener  <rguenther@suse.de>
15079
15080         PR tree-optimization/68961
15081         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
15082         of invariants in stores again.
15083
15084 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15085
15086         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
15087
15088 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
15089
15090         * config/i386/i386.c (ix86_expand_branch): Don't split
15091         DI mode xor instruction to SI mode.
15092
15093 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
15094
15095         PR ipa/68148
15096         * ipa-icf.c (sem_function::merge): Virtual functions may become
15097         reachable even if they address is not taken and there are no
15098         idrect calls.
15099
15100 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
15101
15102         * lto-streamer-out.c (subtract_estimated_size): New function.
15103         (get_symbol_initial_value): Use it.
15104
15105 2016-01-15  Christian Bruel  <christian.bruel@st.com>
15106
15107         PR target/65837
15108         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
15109         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
15110         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
15111         use add_builtin_function_ext_scope instead of add_builtin_function.
15112         (neon_set_p, neon_crypto_set_p): Remove.
15113         (arm_init_builtins): Always call arm_init_neon_builtins and
15114         arm_init_crypto_builtins.
15115         (arm_expand_builtin): Check that builtins are allowed for the arch.
15116         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
15117         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
15118         arm_init_neon_builtins call.
15119
15120 2016-01-15  Richard Biener  <rguenther@suse.de>
15121
15122         PR tree-optimization/69117
15123         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
15124         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
15125         of the leader conservatively.
15126         (free_scc_vn): Restore original SSA name infos.
15127
15128 2016-01-14  Jeff Law  <law@redhat.com>
15129
15130         PR tree-optimization/69270
15131         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
15132         single bit of precision, verify it's also unsigned.
15133         (record_edge_info): Use constant_boolean_node rather than fold_convert
15134         to convert boolean_true/boolean_false to the right type.
15135
15136 2016-01-14  Richard Henderson  <rth@redhat.com>
15137
15138         PR rtl-opt/69014
15139         * loop-doloop.c (record_reg_sets): New.
15140         (doloop_optimize): Reject the transform if the sequence
15141         clobbers registers live at the end of the loop block.
15142         (doloop_optimize_loops): Enable df_live if needed.
15143
15144 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15145
15146         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
15147         * config/rs6000/rs6000.c: Likewise.
15148         * config/rs6000/rs6000.h: Likewise.
15149         * config/rs6000/rs6000.md: Likewise.
15150         * doc/extend.texi: Likewsie.
15151
15152 2016-01-14  Jeff Law  <law@redhat.com>
15153
15154         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
15155         typo.
15156
15157 2016-01-14  Richard Henderson  <rth@redhat.com>
15158
15159         PR c/69272
15160         PR tree-opt/68964
15161         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
15162         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
15163         instead of builtin_decl_declared_p to test for declaration.
15164
15165 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
15166
15167         * doc/loop.texi (Loop Analysis and Representation): Document
15168         loop_depth function.
15169
15170 2016-01-14  Tom de Vries  <tom@codesourcery.com>
15171
15172         PR tree-optimization/68773
15173         * omp-low.c (expand_omp_target): Don't set force_output.
15174         * varpool.c (varpool_node::get_create): Same.
15175         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
15176         offload_funcs with force_output.
15177
15178 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
15179
15180         PR debug/69244
15181         * lra-eliminations.c (move_plus_up): Don't change anything if either
15182         the outer or inner subreg mode is not MODE_INT.
15183         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
15184         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
15185
15186 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
15187
15188         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
15189         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
15190         reduc_uplus_@var{m}): Remove.
15191         * expr.c (expand_expr_real_2): Remove expansion path for
15192         reduc_[us](min|max|plus) optabs.
15193         * optabs-tree.c (scalar_reduc_to_vector): Remove.
15194         * optabs-tree.h (scalar_reduc_to_vector): Remove.
15195         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
15196         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
15197         * tree-vect-loop.c (vectorizable_reduction): Remove test for
15198         reduc_[us](min|max|plus) optabs.
15199
15200 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
15201
15202         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
15203         (reduc_plus_scal_v2sf): New.
15204         (reduc_smax_v2sf): Rename to...
15205         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
15206         (reduc_smin_v2sf): Rename to...
15207         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
15208
15209 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
15210
15211         * alias.c (compare_base_symbol_refs): New function.
15212         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
15213         it.
15214
15215 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
15216
15217         PR middle-end/68146
15218         PR tree-optimization/69155
15219         * tree-complex.c: Include cfganal.h.
15220         (phis_to_revisit): New variable.
15221         (extract_component): Add phiarg_p argument.  Assert that returned
15222         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
15223         (update_phi_components): Partly rewrite to use loop over real/imag
15224         components instead of code duplication.  If extract_component returns
15225         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
15226         create_tmp_reg into the PHI node instead, and mention the phi triplet
15227         in phis_to_revisit.
15228         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
15229         in phis_to_revisit at the end.
15230
15231 2016-01-14  Richard Biener  <rguenther@suse.de>
15232
15233         PR tree-optimization/68060
15234         * tree-vect-loop.c (vect_is_simple_reduction): Check the
15235         outer loop reduction is only used in the inner loop before
15236         detecting a double reduction.
15237
15238 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
15239
15240         PR target/68269
15241         * combine.c (expand_field_assignment): Punt if compute_mode is
15242         unsupported scalar mode.
15243
15244 2016-01-14  Richard Biener  <rguenther@suse.de>
15245
15246         PR tree-optimization/66856
15247         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
15248         SLP node only if it built successfully.
15249         (vect_analyze_slp_instance): Adjust.
15250
15251 2016-01-14  Jeff Law  <law@redhat.com>
15252
15253         PR tree-optimization/69270
15254         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
15255         (record_edge_info): Use it.  Convert boolean_{true,false}_node
15256         to the type of op0.
15257
15258 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
15259
15260         PR ipa/66487
15261         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
15262         use block_ultimate_origin
15263         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
15264
15265 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
15266
15267         * doc/invoke.texi (Submodel Options): Rename section to
15268         "Machine-Dependent Options" to better reflect its content.
15269         Rewrite introductory text to remove archaic CPU names.
15270         Update references.
15271
15272 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
15273
15274         * doc/invoke.texi (Code Gen Options): Move section up in file,
15275         before target-specific options.  Update menu and option summary
15276         to reflect the new section ordering.
15277
15278 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
15279
15280         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
15281         (C++ Dialect Options): Add cross-reference to -std option.
15282         * doc/standards.texi (C++ Language): Document C++14 support.
15283
15284 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15285
15286         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
15287         for pack/unpack functions for __ibm128.
15288         (PACK_IF): Likewise.
15289         (UNPACK_IF): Likewise.
15290
15291         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
15292         support for __ibm128 pack/unpack functions.
15293         (rs6000_invalid_builtin): Likewise.
15294         (rs6000_init_builtins): Likewise.
15295         (rs6000_opt_masks): Likewise.
15296
15297         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
15298         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
15299         functions
15300         (RS6000_BTM_COMMON): Likewise.
15301
15302         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
15303         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
15304         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
15305         128-bit floating point.  Add support for the double values to be
15306         in Altivec registers for TF/IF packing and unpacking, but restrict
15307         TD packing sub-fields to be FPR registers.  Don't allow overlapped
15308         register support for packing.  Allow pack inputs to be memory
15309         locations.  Don't build generator functions for unpack<mode>_dm
15310         and unpack<mode>_nodm.
15311         (unpack<mode>_dm): Likewise.
15312         (unpack<mode>_nodm): Likewise.
15313         (pack<mode>): Likewise.
15314
15315         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
15316         built-in functions to pack/unpack explicit __ibm128 values.
15317         (__builtin_unpack_ibm128): Likewise.
15318
15319         * doc/extend.texi (PowerPC Built-in Functions): Document
15320         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
15321
15322 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
15323
15324         PR c/66208
15325         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
15326         Add new arg loc and pass it down as context.
15327         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
15328         to the location to use for the warning.
15329         (check_function_arguments): New arg loc.  All callers changed.  Pass
15330         it to check_function_nonnull.
15331         * c-common.h (check_function_arguments): Adjust declaration.
15332
15333 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
15334
15335         PR tree-optimization/69156
15336         * gimple.c (validate_type): Removed.
15337         (gimple_builtin_call_types_compatible_p): Use
15338         useless_type_conversion_p instead of validate_type.
15339         * value-prof.c (gimple_stringop_fixed_value): Fold
15340         icall_size to correct type.
15341
15342 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
15343
15344         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
15345         effects.
15346
15347 2016-01-13  Richard Henderson  <rth@redhat.com>
15348
15349         PR tree-opt/68964
15350         * target.def (builtin_tm_load, builtin_tm_store): Remove.
15351         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
15352         (ix86_builtin_tm_store): Remove.
15353         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
15354         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
15355         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
15356         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
15357         * doc/tm.texi: Rebuild.
15358
15359         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
15360         (BUILT_IN_TM_MEMCPY_RTWN): New.
15361         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
15362         fallback from vector to integer helpers.
15363         (build_tm_load): Handle vector types directly, instead of
15364         via target hook.
15365         (build_tm_store): Likewise.
15366         (expand_assign_tm): Prepare for register types not handled by
15367         the above.  Copy them to memory and use memcpy.
15368         * tree.c (tm_define_builtin): New.
15369         (find_tm_vector_type): New.
15370         (build_tm_vector_builtins): New.
15371         (build_common_builtin_nodes): Call it.
15372
15373 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
15374
15375         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
15376         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
15377
15378 2016-01-13  Tom de Vries  <tom@codesourcery.com>
15379
15380         PR tree-optimization/69169
15381         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
15382         handled_struct_type param.
15383         (create_variable_info_for, intra_create_variable_infos): Call
15384         create_variable_info_for_1 with extra arg.
15385
15386 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
15387
15388         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
15389         and "armv8.1-a+crc" entries.
15390
15391 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
15392
15393         PR target/69228
15394         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
15395         Change first operand predicate from register_or_constm1_operand
15396         to register_operand.
15397         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
15398         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
15399         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
15400         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
15401         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
15402         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
15403         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
15404         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
15405         comparison with constm1_rtx from vec_prefetch_gen part.
15406
15407 2016-01-13  Richard Biener  <rguenther@suse.de>
15408
15409         PR tree-optimization/69013
15410         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
15411         Exchange assert for a test.
15412
15413 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15414
15415         PR target/69247
15416         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
15417
15418 2016-01-13  Richard Biener  <rguenther@suse.de>
15419
15420         PR tree-optimization/69242
15421         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
15422         assert with a check.
15423
15424 2016-01-13  Richard Biener  <rguenther@suse.de>
15425
15426         PR tree-optimization/69186
15427         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15428         Properly guard vect_update_misalignment_for_peel call.
15429
15430 2016-01-12  Jeff Law  <law@redhat.com>
15431
15432         PR tree-optimization/pr67755
15433         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
15434         "need_profile_correction".
15435         (thread_block_1): Initialize new field to false by default.  If we
15436         have multiple thread paths through a common joiner to different
15437         final targets, then set new field to true.
15438         (compute_path_counts): Only do count adjustment when it's really
15439         needed.
15440
15441 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
15442
15443         * doc/invoke.texi (Spec Files): Move section down in file, past
15444         all command-line option descriptions.
15445
15446 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15447
15448         PR middle-end/54809
15449         * doc/gty.texi: Remove documentation of mark_hook.
15450         * gengtype.c (struct write_types_data): Remove code to support
15451         mark_hook attribute.
15452         (walk_type): Likewise.
15453         (write_func_for_structure): Likewise.
15454
15455 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
15456
15457         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
15458         Directory Options, and -specs= to Overall Options.
15459         (Overall Options): Adjust similarly.  Reorder to group related
15460         options together.  Make -specs= cross-reference the spec file details.
15461         (Directory Options): Adjust similarly.
15462
15463 2016-01-12  Jeff Law  <law@redhat.com>
15464
15465         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
15466
15467 2016-01-12  Olivier Hainque  <hainque@adacore.com>
15468
15469         * gcc.c (spec_undefvar_allowed): New global.
15470         (process_command): Set to true when running for --version or --help,
15471         alone or together.
15472         (getenv_spec_function): When the variable is not defined, use the
15473         variable name as the variable value if we're allowed not to issue
15474         a fatal error.
15475
15476 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
15477
15478         PR tree-optimization/68911
15479         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
15480         information computed for expression "init + nit * step".
15481
15482 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
15483
15484         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
15485         about name of GCC executable.  Remove deleted node from menu.
15486         (Directory Options) <-B>: Remove cross-reference to deleted node.
15487         (Target Options): Delete section.
15488
15489 2016-01-12  Christian Bruel  <christian.bruel@st.com>
15490
15491         PR target/69180
15492         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
15493         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
15494
15495 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
15496
15497         PR target/69198
15498         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
15499         aligned_mem is properly set for AVX512-VL floating point masked
15500         stores.
15501
15502         PR target/69175
15503         * ifcvt.c (cond_exec_process_if_block): When removing the last
15504         insn from then_bb, remove also any possible barriers that follow it.
15505
15506 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
15507
15508         PR target/68456
15509         PR target/69226
15510         * config/i386/iamcu.h (SIZE_TYPE): New macro.
15511         (PTRDIFF_TYPE): Likewise.
15512         (WCHAR_TYPE): Likewise.
15513         (WCHAR_TYPE_SIZE): Likewise.
15514         (STDINT_LONG32): Likewise.
15515
15516 2016-01-12  Richard Biener  <rguenther@suse.de>
15517
15518         PR tree-optimization/69053
15519         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
15520         convert initial value for cond reductions.
15521
15522 2016-01-12  Richard Biener  <rguenther@suse.de>
15523
15524         PR tree-optimization/69007
15525         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
15526         widen_sum after dot_prod and sad.
15527
15528 2016-01-12  Richard Biener  <rguenther@suse.de>
15529
15530         PR tree-optimization/69168
15531         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
15532         pattern stmt SLP type.
15533         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
15534         end up unused so cope with that case.
15535
15536 2016-01-12  Richard Biener  <rguenther@suse.de>
15537
15538         PR tree-optimization/69157
15539         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
15540         stmts def type only during analyze phase.
15541         (vectorizable_call): Likewise.
15542         (vectorizable_simd_clone_call): Likewise.
15543         (vectorizable_conversion): Likewise.
15544         (vectorizable_assignment): Likewise.
15545         (vectorizable_shift): Likewise.
15546         (vectorizable_operation): Likewise.
15547         (vectorizable_store): Likewise.
15548         (vectorizable_load): Likewise.
15549
15550 2016-01-12  Richard Biener  <rguenther@suse.de>
15551
15552         PR tree-optimization/69174
15553         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
15554         space.
15555         (vectorizable_load): Properly compute the number of loads needed
15556         for permuted strided SLP loads and do not spuriously assign
15557         to SLP_TREE_VEC_STMTS.
15558
15559 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
15560
15561         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
15562         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
15563         (MD_EXEC_PREFIX): Remove.
15564         (MD_STARTFILE_PREFIX) Removee.
15565         (FILE_NAME_ABSOLUTE_P): Remove.
15566         (CPP_SPEC): Do not read macros from sys/version.h.
15567         (LINK_COMMAND_SPEC): Remove.
15568         (LOCAL_INCLUDE_DIR): Remove.
15569         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
15570         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
15571         (POST_LINK_SPEC): Define to invoke stubify after linker
15572         (LIBSTDCXX): Remove define
15573         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
15574         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
15575         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
15576         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
15577         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
15578         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
15579         (i386_djgpp_asm_named_section): Add propotype of new procedure
15580
15581         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
15582         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
15583         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
15584         in config/i386/djgpp.h).
15585         (STANDARD_STARTFILE_PREFIX_2): Define identical to
15586         STANDARD_STARTFILE_PREFIX_1.
15587         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
15588         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
15589         installation errors.
15590         (MAX_OFILE_ALIGNMENT): Define to 128.
15591         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
15592
15593         * config/i386/djgpp.c: New file. Add implementation of
15594         i386_djgpp_asm_named_section.
15595
15596         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
15597
15598         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
15599         Add rule for building djgpp.o.
15600
15601 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15602
15603         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
15604         (rtx_is_swappable_p): Reductions are swappable.
15605         (insn_is_swappable_p): V2DF reductions are swappable.
15606
15607 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
15608
15609         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
15610         reloads for other unsupported memory operands.
15611
15612 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
15613             Jim Wilson  <jim.wilson@linaro.org>
15614
15615         PR target/69194
15616         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
15617         copy_to_mode_reg instead of force_reg.
15618
15619 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
15620
15621         PR target/69225
15622         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
15623         TARGET_80387 is true.
15624
15625 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
15626
15627         PR target/69071
15628         * lra-eliminations.c (move_plus_up): Only move plus up
15629         if subreg of the constant can be simplified into constant
15630         and use the simplified subreg of the constant instead of
15631         the original constant.
15632
15633         * fold-const.c (fold_convertible_p): Don't return true
15634         for conversion of VECTOR_TYPE to same sized integral type.
15635         (fold_convert_loc): Fix up formatting.  Fold conversion of
15636         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
15637         instead of NOP_EXPR.
15638
15639         PR tree-optimization/69214
15640         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
15641         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
15642         Formatting fix.
15643
15644         PR tree-optimization/69207
15645         * tree-vect-slp.c (vect_get_constant_vectors): For
15646         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
15647         fold_convertible_p to vector_type's element type, and always
15648         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
15649
15650 2016-01-11  Richard Biener  <rguenther@suse.de>
15651
15652         PR tree-optimization/69173
15653         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
15654         fixup the cycle if all stmts are in a pattern.
15655
15656 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
15657
15658         PR middle-end/68999
15659         * alias.c (base_alias_check): Move check for addresses with
15660         alignment ANDs before the call for compare_base_decls.
15661         (memrefs_conflict_p): Return -1 for different decls
15662         that went through alignment adjustments.
15663
15664 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15665
15666         PR rtl-optimization/68796
15667         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
15668         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
15669         and QImode comparisons against zero with CC_NZmode.
15670         * config/aarch64/iterators.md (short_mask): New mode_attr.
15671
15672 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
15673
15674         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
15675         (<avx512>_store<mode>_mask): Likewise.
15676
15677 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
15678             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15679
15680         PR rtl-optimization/68841
15681         * ifcvt.c (struct noce_if_info): Add orig_x field.
15682         (bbs_ok_for_cmove_arith): Add to_rename parameter.
15683         Don't record conflicts on to_rename if it's present.
15684         Allow memory destinations in sets.
15685         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
15686         blocks, passing orig_x to the checks.
15687         (noce_process_if_block): Set if_info->orig_x appropriately.
15688
15689 2016-01-11  Tom de Vries  <tom@codesourcery.com>
15690
15691         PR tree-optimization/69069
15692         * tree-parloops.c (create_parallel_loop): Add missing phi args.
15693
15694 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
15695
15696         PR rtl-optimization/68920
15697         * config/i386/i386.c (ix86_option_override_internal): Restrict number
15698         of conditional moves for  RTL if-conversion to 1 for
15699         TARGET_ONE_IF_CONV_INSN.
15700         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
15701         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
15702         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
15703         parameter to restirct number of conditional moves for
15704         RTL if-conversion.
15705         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
15706         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
15707         conditionl moves.
15708
15709 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
15710
15711         PR bootstrap/69123
15712         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
15713         onepart vars.  Fix typo in comment.  Fix reversed condition in
15714         unshare test.
15715         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
15716
15717         PR bootstrap/69123
15718         * var-tracking.c (dump_onepart_variable_differences): New.
15719         (dataflow_set_different): If a detailed dump is requested,
15720         delay early returns and dump differences between onepart
15721         variables present before and after, and added variables.
15722
15723 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
15724
15725         PR target/69010
15726         * expr.c (expand_expr_real_1): For boolean vector constants
15727         with a scalar mode use const_scalar_mask_from_tree.
15728         (const_scalar_mask_from_tree): New.
15729         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
15730         assigned to a mask type to handle constants.
15731
15732 2016-01-11  Martin Jambor  <mjambor@suse.cz>
15733
15734         PR ipa/69044
15735         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
15736         useless parameters if we cannot change function signature.
15737
15738 2016-01-11  Martin Jambor  <mjambor@suse.cz>
15739
15740         PR ipa/66616
15741         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
15742         flag.
15743
15744 2016-01-11  Tom de Vries  <tom@codesourcery.com>
15745
15746         PR tree-optimization/69109
15747         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
15748         latch with phi.
15749
15750 2016-01-11  Tom de Vries  <tom@codesourcery.com>
15751
15752         PR tree-optimization/69108
15753         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
15754         res is not used in a phi.
15755
15756 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
15757
15758         PR 67425
15759         * common.opt (frandom-seed): Fix parameter name.
15760         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
15761
15762 2016-01-11  Tom de Vries  <tom@codesourcery.com>
15763
15764         PR tree-optimization/69058
15765         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
15766         not supported.
15767
15768 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
15769
15770         * config/arc/arc.opt (mdiv-rem): Add period to the end.
15771         (mcode-density): Likewise.
15772
15773 2016-01-10  Tom de Vries  <tom@codesourcery.com>
15774
15775         PR tree-optimization/69062
15776         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
15777         (parallelize_loops): Don't paralelize loop that has phi with address
15778         arg.
15779
15780 2016-01-10  Tom de Vries  <tom@codesourcery.com>
15781
15782         PR tree-optimization/69039
15783         * tree-parloops.c (try_create_reduction_list): Only allow single exit
15784         phi for reduction.
15785
15786 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
15787
15788         PR middle-end/68743
15789         * match.pd: Require target has function_c99_misc before doing
15790         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
15791
15792 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
15793
15794         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
15795         use GMPINC.
15796         * configure: Regenerate.
15797
15798 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
15799
15800         PR middle-end/50865
15801         PR tree-optimization/69097
15802         * fold-const.h (expr_not_equal_to): New prototype.
15803         * fold-const.c: Include stringpool.h and tree-ssanames.h.
15804         (expr_not_equal_to): New function.
15805         * match.pd (X % -Y is the same as X % Y): Don't optimize
15806         unless X is known not to be equal to minimum or Y is known
15807         not to be equal to -1.
15808         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
15809         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
15810         (simplify_stmt_using_ranges): Adjust caller.
15811         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
15812         substitute_and_fold.
15813
15814 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
15815
15816         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
15817         w/o DECL_NAME.
15818
15819 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
15820
15821         PR tree-optimization/69167
15822         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
15823         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
15824         ops[0] comparison.
15825         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
15826
15827 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
15828             Richard Biener  <rguenther@suse.de>
15829
15830         PR tree-optimization/68707
15831         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
15832         instances that can be handled via vect_load_lanes.
15833
15834 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
15835
15836         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
15837         if we can't determine address equivalence.
15838         * alias.c (compare_base_decl): Update for changed return value of
15839         symtab_node::equal_address_to.
15840
15841 2016-01-08  Jason Merrill  <jason@redhat.com>
15842
15843         PR c++/68983
15844         PR c++/67557
15845         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
15846         * expr.c (store_field): Not here.
15847         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
15848         call with TREE_ADDRESSABLE type.
15849         * tree-cfg.c (verify_gimple_call): Adjust.
15850
15851 2016-01-08  Olivier Hainque  <hainque@adacore.com>
15852
15853         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
15854         libc_internal.
15855
15856 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
15857
15858         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
15859         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
15860         (reduc_smin_v2sf): Rename to...
15861         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
15862         (reduc_splus_v2sf): Rename to...
15863         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
15864
15865 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
15866
15867         PR tree-optimization/69162
15868         * gimplify.c (gimplify_va_arg_expr): Encode original type of
15869         valist argument in another argument.
15870         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
15871         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
15872         to determine the va_list type, build a MEM_REF instead of
15873         build_fold_indirect_ref.
15874
15875         PR tree-optimization/69172
15876         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
15877         gimple_build.
15878
15879 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15880
15881         PR tree-optimization/67781
15882         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
15883         and cmpnop in two steps: first the ones not accessed in original
15884         gimple expression in a endian independent way and then the ones not
15885         accessed in the final result in an endian-specific way.
15886
15887 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
15888
15889         PR tree-optimization/69083
15890         * tree-vect-slp.c (vect_get_constant_vectors): For
15891         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
15892         element type.  If op is fold_convertible_p to vector_type's element
15893         type, use NOP_EXPR instead of VCE.
15894
15895 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
15896
15897         PR rtl-optimization/67778
15898         PR rtl-optimization/68634
15899         PR rtl-optimization/68909
15900         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
15901         block from the stack until done with it.  Remove a superfluous
15902         bitmap set.  Remove a superfluous bitmap test.
15903
15904 2016-01-07  Martin Sebor  <msebor@redhat.com>
15905
15906         PR c/68966
15907         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
15908         constraint on the type of arguments.
15909
15910 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
15911
15912         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
15913         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
15914         unaligned_access on the gcc_options set.
15915         * config/arm/arm.c (arm_option_override_internal): Use
15916         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
15917
15918 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
15919
15920         PR target/69140
15921         * config/i386/i386.c (ix86_frame_pointer_required): Enable
15922         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
15923
15924 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
15925
15926         Revert
15927         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
15928
15929         PR target/69140
15930         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
15931         depending on frame_pointer_needed before remaining integer and SSE
15932         registers are saved.
15933
15934 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
15935
15936         PR 1078
15937         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
15938
15939 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
15940
15941         PR target/69171
15942         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
15943         Use the "xBm" constraint.
15944         (float<sseintvecmodelower><mode>2<mask_name><round_name):
15945         Likewise.
15946         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
15947         (sse_cvtsi2ssq<round_name>): Likewise.
15948         (sse_cvtss2si<round_name>): Likewise.
15949         (sse_cvtss2siq<round_name>): Likewise.
15950         (sse2_cvtsi2sdq<round_name>): Likewise.
15951         (sse2_cvtsd2si<round_name>): Likewise.
15952         (sse2_cvtsd2siq<round_name>): Likewise.
15953         * config/i386/subst.md (round_nimm_scalar_predicate): New
15954         predicate.
15955
15956 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
15957
15958         PR middle-end/67639
15959         * varasm.c (make_decl_rtl): Mark invalid register vars as
15960         DECL_EXTERNAL.
15961
15962         PR rtl-optimization/66206
15963         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
15964         All callers changed.
15965
15966 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
15967
15968         PR tree-optimization/69141
15969         * tree-ssa-pre.c: Include langhooks.h.
15970         (eliminate_dom_walker::before_dom_children): Use
15971         lang_hooks.decl_printable_name instead of
15972         cgraph_node::get ()->name ().
15973
15974         PR middle-end/68960
15975         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
15976         it and DECL_ALIGN too.
15977
15978 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
15979
15980         * config/mips/mips-ftypes.def: Sort to lexicographical order.
15981
15982 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
15983
15984         PR target/69140
15985         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
15986         depending on frame_pointer_needed before remaining integer and SSE
15987         registers are saved.
15988
15989 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15990
15991         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
15992         mode iterator with VSX_M2.
15993         (*p9_vecstore_<mode>): Likewise.
15994         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
15995         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
15996         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
15997         (define_split for VSX_LE128 stores): Likewise.
15998         (define_peephole2 for TImode LE swaps): Likewise.
15999         (define_split for VSX_LE128 post-reload stores): Likewise.
16000
16001 2016-01-06  Marek Polacek  <polacek@redhat.com>
16002
16003         PR sanitizer/69099
16004         * convert.c (convert_to_integer_1): Adjust call to
16005         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
16006         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
16007         EXPR instead of ARG.
16008         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
16009
16010 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
16011
16012         PR 1078
16013         * doc/extend.texi (RL78 Variable Attributes): New section.
16014
16015 2016-01-05  Marek Polacek  <polacek@redhat.com>
16016
16017         PR c/69104
16018         * builtins.c (get_memmodel): Use expansion point location rather than
16019         the input location.  Call warning_at rather than warning.
16020         (expand_builtin_atomic_compare_exchange): Likewise.
16021         (expand_builtin_atomic_load): Likewise.
16022         (expand_builtin_atomic_store): Likewise.
16023         (expand_builtin_atomic_clear): Likewise.
16024
16025 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
16026
16027         PR target/68991
16028         * config/i386/i386.c (ix86_expand_vector_logical_operator):
16029         Replace nonimmediate_operand with vector_operand.
16030         * config/i386/predicates.md (vector_operand): New predicate.
16031         (general_vector_operand): Replace nonimmediate_operand with
16032         vector_operand.
16033         * config/i386/sse.md: Replace nonimmediate_operand with
16034         vector_operand and m constraint with Bm constraint on SSE
16035         patterns with 16-byte memory operand.
16036         * config/i386/subst.md (round_nimm_predicate): Replace
16037         nonimmediate_operand with vector_operand.
16038         (round_saeonly_nimm_predicate): Likewise.
16039         (round_saeonly_nimm_scalar_predicate): New.
16040
16041 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
16042
16043         PR target/68991
16044         * config/i386/constraints.md (Bm): New constraint.
16045         * config/i386/predicates.md (vector_memory_operand): New
16046         predicate.
16047         * config/i386/sse.md: Replace xm with xBm in plusminus and
16048         any_logic patterns.
16049
16050 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
16051
16052         PR 1078
16053         * doc/extend.texi (V850 Function Attributes): New section.
16054         (V850 Variable Attributes): New section.
16055
16056 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
16057
16058         PR 1078
16059         * doc/extend.texi (MicroBlaze Function Attributes): Document
16060         interrupt_handler and fast_interrupt attributes.
16061
16062 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
16063
16064         PR other/60465
16065         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
16066         for local symbolic operands.
16067         * config/ia64/predicates.md (local_symbolic_operand64): New
16068         predicate.
16069
16070 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16071
16072         PR rtl-optimization/68651
16073         * combine.c (combine_simplify_rtx): Canonicalize x + x into
16074         x << 1.
16075
16076 2016-01-05  Nathan Sidwell  <nathan@acm.org>
16077
16078         * alias.c (compare_base_decls): Use symtab_node::get.
16079
16080 2016-01-05  Nick Clifton  <nickc@redhat.com>
16081
16082         PR target/68770
16083         * ira-costs.c (copy_cost): Initialise the t_icode field of the
16084         secondary_reload_info structure.
16085
16086         PR target/66655
16087         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
16088         decls if weak support is available.
16089
16090 2016-01-04  Martin Sebor  <msebor@redhat.com>
16091
16092         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
16093
16094 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
16095
16096         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
16097         OPTION_MASK_P9_DFORM.
16098
16099         * config/rs6000/constraints.md (wo constraint): New constraint for
16100         ISA 3.0 (power9).
16101
16102         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
16103         for wo constraint.
16104         (rs6000_init_hard_regno_mode_ok): Likewise.
16105
16106         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
16107         wo constraint.
16108
16109         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
16110         expanders not to have constraints.  Add support for ISA 3.0 xxperm
16111         instruction.  Add support for fusing xxlor with xxperm.
16112         (altivec_vperm_<mode>_internal): Likewise.
16113         (altivec_vperm_v8hiv16qi): Likewise.
16114         (altivec_vperm_<mode>v16q): Likewise.
16115         (altivec_vperm_<mode>_uns): Likewise.
16116         (vperm_v8hiv4si): Likewise.
16117         (vperm_v16qiv8hi): Likewise.
16118
16119         * doc/md.texi (RS/6000 constraints): Document wo constraint.
16120
16121 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
16122
16123         Update copyright years.
16124
16125         * gcc.c (process_command): Update copyright notice dates.
16126         * gcov-dump.c (print_version): Ditto.
16127         * gcov.c (print_version): Ditto.
16128         * gcov-tool.c (print_version): Ditto.
16129         * gengtype.c (create_file): Ditto.
16130         * doc/cpp.texi: Bump @copying's copyright year.
16131         * doc/cppinternals.texi: Ditto.
16132         * doc/gcc.texi: Ditto.
16133         * doc/gccint.texi: Ditto.
16134         * doc/gcov.texi: Ditto.
16135         * doc/install.texi: Ditto.
16136         * doc/invoke.texi: Ditto.
16137
16138 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16139
16140         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
16141         modes larger than TImode as TImode if NEON is not enabled.
16142
16143 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16144
16145         PR target/69100
16146         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
16147         mode for %f0-%f31 only if TARGET_FPU.
16148
16149 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16150
16151         PR target/69072
16152         * config/sparc/sparc.c (scan_record_type): Take into account subfields
16153         to compute the PACKED_P predicate.
16154         (function_arg_record_value): Minor tweaks.
16155
16156 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16157
16158         * doc/install.texi (--with-multilib-list): Describe the meaning of the
16159         option for arm*-*-* targets.
16160
16161 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
16162
16163         * doc/extend.texi (Common Function Attributes): Move docs for
16164         MSP430-specific attributes to....
16165         (MSP430 Function Attributes): ...here.  Delete the redundant
16166         entries and copy-edit the remaining text.
16167         (MSP430 Variable Attributes): Use uniform format for index
16168         entries and add a cross-reference to the corresponding function
16169         attribute docs.
16170
16171 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
16172
16173         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
16174         -finite-math typo.
16175         (x86 Options): Likewise.
16176
16177 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
16178
16179         PR 1078
16180
16181         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
16182         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
16183         to corresponding attribute.
16184
16185 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
16186
16187         * doc/extend.texi (Common Function Attributes) <noplt>: Move
16188         to correct alphabetization of table.  Copy-edit and correct
16189         markup.
16190         <stack_protect>: Likewise.
16191         <target_clones>: Likewise.
16192         <simd>: Likewise.
16193         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
16194         Correct punctuation.
16195         (Code Gen Options) <-fno-plt>: Copy-edit.
16196
16197 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16198
16199         PR target/68917
16200         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
16201         SI values.  Explicitly convert SI to DI and vice-versa.
16202
16203 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
16204
16205         PR tree-optimization/69070
16206         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
16207         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
16208
16209         PR sanitizer/69055
16210         * ubsan.c (ubsan_instrument_float_cast): Call
16211         initialize_sanitizer_builtins.
16212
16213         PR target/69015
16214         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
16215 \f
16216 Copyright (C) 2016 Free Software Foundation, Inc.
16217
16218 Copying and distribution of this file, with or without modification,
16219 are permitted in any medium without royalty provided the copyright
16220 notice and this notice are preserved.