remove mep-* support
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2
3         * common/config/mep/mep-common.c: Remove.
4         * config.gcc: Remove mep-* support.
5         * config/mep/constraints.md: Remove.
6         * config/mep/default.h: Remove.
7         * config/mep/intrinsics.h: Remove.
8         * config/mep/intrinsics.md: Remove.
9         * config/mep/ivc2-template.h: Remove.
10         * config/mep/mep-c5.cpu: Remove.
11         * config/mep/mep-core.cpu: Remove.
12         * config/mep/mep-default.cpu: Remove.
13         * config/mep/mep-ext-cop.cpu: Remove.
14         * config/mep/mep-intrin.h: Remove.
15         * config/mep/mep-ivc2.cpu: Remove.
16         * config/mep/mep-pragma.c: Remove.
17         * config/mep/mep-protos.h: Remove.
18         * config/mep/mep.c: Remove.
19         * config/mep/mep.cpu: Remove.
20         * config/mep/mep.h: Remove.
21         * config/mep/mep.md: Remove.
22         * config/mep/mep.opt: Remove.
23         * config/mep/predicates.md: Remove.
24         * config/mep/t-mep: Remove.
25         * doc/install.texi: Remove mep-* documentation.
26         * doc/md.texi: Likewise.
27
28 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29
30         * config.gcc: Remove support for avr-rtems.
31         * config/avr/gen-avr-mmcu-specs.c: Likewise.
32         * config/avr/rtems.h: Remove.
33         * config/avr/t-rtems: Remove.
34
35 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
36
37         * config.gcc: Remove m32r-rtems support.
38         * config/m32r/rtems.h: Remove.
39
40 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
41
42         * config.gcc: Remove h8300-rtems support.
43         * config/h8300/rtems.h: Remove.
44         * config/h8300/t-rtems: Remove.
45
46 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
47
48         * config.gcc: Remove support for knetbsd.
49         * configure.ac: Likewise.
50         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
51         * config/knetbsd-gnu.h: Remove.
52         * configure: Regenerate.
53
54 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
55
56         * config.gcc: Remove support for openbsd 2 and 3.
57         * config/openbsd-oldgas.h: Remove.
58
59 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
60
61         * config.gcc: Remove interix support.
62         * config/i386/i386-interix.h: Remove.
63         * config/i386/interix.opt: Remove.
64         * config/i386/t-interix: Remove.
65         * configure: Regenerate.
66         * configure.ac: Remove interix support.
67         * doc/install.texi: Remove interix documentation.
68
69 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
70
71         * config/rs6000/rs6000.h: Add conditional preprocessing directives
72         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
73         not defined.
74
75 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
76
77         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
78         they are both PLACEHOLDER_EXPRs.
79
80 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
81
82         * stor-layout.c (layout_type): Move setting complex MODE to
83         layout_type, instead of setting it ahead of time by the caller.
84         * tree.c (build_complex_type): Likewise.
85
86 2016-06-21  Martin Liska  <mliska@suse.cz>
87
88         * predict.c (force_edge_cold): Replace imposisble with
89         impossible.
90
91 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
92
93         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
94         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
95
96 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
97
98         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
99
100 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
101             Ilya Enkovich  <ilya.enkovich@intel.com>
102
103         PR target/71549
104         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
105         New member function to convert V1TImode register to SUBREG
106         TImode in debug insn.
107         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
108         after changing register mode to V1TImode.
109
110 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
111
112         * config/aarch64/aarch64-cores.def (vulcan): New core.
113         * config/aarch64/aarch64-tune.md: Regenerate.
114         * doc/invoke.texi: Document vulcan as an available option.
115
116 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
117
118         * cse.c (canon_asm_operands): New function extracted from...
119         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
120         either standalone or member of a PARALLEL.
121
122 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
123
124         PR target/30417
125         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
126         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
127         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
128
129 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
130
131         PR target/71103
132         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
133         constant addresses if can_create_pseudo_p.
134
135 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
136
137         PR tree-optimization/71588
138         * tree-ssa-strlen.c (valid_builtin_call): New function.
139         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
140         it.
141
142 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
143
144         PR middle-end/71581
145         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
146         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
147         for conversion of scalar user var to complex type and use the
148         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
149         punt.
150
151         PR rtl-optimization/71591
152         * toplev.c (toplev::run_self_tests): If no_backend, complain and
153         don't run any tests.
154
155 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
156
157         PR target/71571
158         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
159         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
160         space for PIC with non-v32 and the common non-PIC "jump".
161
162 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
163
164         PR target/71559
165         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
166         returned values and add UN*/LTGT/*ORDERED cases with values matching
167         D operand modifier on vcmp for AVX.
168
169 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
170
171         * config/aarch64/aarch64.opt
172         (mpc-relative-literal-loads): Rename internal option name.
173         * config/aarch64/aarch64.c
174         (aarch64_nopcrelative_literal_loads): Rename to
175         aarch64_pcrelative_literal_loads.
176         (aarch64_expand_mov_immediate): Likewise.
177         (aarch64_secondary_reload): Likewise.
178         (aarch64_can_use_per_function_literal_pools_p): Likewise.
179         (aarch64_override_options_after_change_1): Rename and simplify logic.
180         (aarch64_classify_symbol): Merge large model checks into switch,
181         remove pc-relative load check.
182
183 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
184
185         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
186         costs relative to the cost of a register move.
187
188 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
189
190         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
191         (vcvt_n_f64_u64): Likewise.
192         (vcvt_n_s64_f64): Likewise.
193         (vcvt_n_u64_f64): Likewise.
194         (vcvt_f64_s64): Likewise.
195         (vrecpe_f64): Likewise.
196         (vcvt_f64_u64): Likewise.
197         (vrecps_f64): Likewise.
198
199 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
200
201         * config/aarch64/aarch64.md
202         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
203         iterators.
204         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
205         attributes.
206         * config/aarch64/aarch64-builtins.c
207         (aarch64_types_binop_uss_qualifiers): Delete.
208         (TYPES_BINOP_USS): Likewise.
209         (aarch64_types_binop_sus_qualifiers): Likewise.
210         (TYPES_BINOP_SUS): Likewise.
211         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
212         (TYPES_FCVTIMM_SUS): Likewise.
213         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
214         rather than BINOP.
215         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
216         (fcvtzs): Use SHIFTIMM rather than BINOP.
217         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
218
219 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
220
221         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
222         costs relative to the cost of a register move.
223
224 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
225
226         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
227         Allow scalar/single vector modes to be tieable.
228
229 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
230
231         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
232
233 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
234
235         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
236         "alignement".
237         * tree.h (TYPE_ALIGN): Likewise.
238
239 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
240
241         PR target/71103
242         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
243
244 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
245
246         * config/avr/avr.c (avr_print_operand): Fix "format not a string
247         literal" build warnings.
248         (avr_print_operand_address): Dito.
249
250 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
251
252         PR target/71375
253         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
254         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
255
256 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
257
258         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
259
260 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
261
262         PR bootstrap/71435
263         * reload1.c (reload): Pass 0 to finish_spills when called because
264         update_eliminables_and_spill returns true and remove did_spill.
265         (finish_spills): Adjust comment and document GLOBAL parameter.
266
267 2016-06-17  DJ Delorie  <dj@redhat.com>
268
269         PR target/71338
270         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
271         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
272         (umulqihi3_virt): Likewise.
273         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
274         (umulqihi3_real): Likewise.
275
276 2016-06-17  Martin Liska  <mliska@suse.cz>
277
278         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
279
280 2016-06-17  Martin Liska  <mliska@suse.cz>
281
282         * predict.def: PRED_LOOP_EXIT from 92 to 85.
283
284 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
285
286         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
287         __FAST_MATH__.
288         (vaddq_f32): Likewise.
289         (vmul_f32): Likewise.
290         (vmulq_f32): Likewise.
291         (vsub_f32): Likewise.
292         (vsubq_f32): Likewise.
293
294 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
295
296         PR tree-optimization/71347
297         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
298         cost for all uses in group.
299
300 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
301
302         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
303         insert gimple seq if it's not empty.
304
305 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
306
307         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
308         member OFFSET.
309         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
310         rather than OFFSET.
311         (comp_dr_with_seg_len_pair): Ditto.
312         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
313         struct dr_with_seg_len_pair against DR_OFFSET.
314         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
315         DR_OFFSET directly.
316
317 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
318
319         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
320
321 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
322
323         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
324         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
325         (pa_output_millicode_call): Likewise.
326         (pa_output_call): Likewise.
327         (pa_output_indirect_call): Likewise.
328         (pa_asm_output_mi_thunk): Likewise.
329
330 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
331
332         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
333
334 2016-06-16  Martin Liska  <mliska@suse.cz>
335
336         * predict.c (combine_predictions_for_insn): When we find a first
337         match predictor, we should consider just predictors with
338         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
339         DS theory predictor.
340         (combine_predictions_for_bb): Likewise.
341
342 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
343
344         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
345         with base of reference to struct.
346
347 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
348
349         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
350
351 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
352
353         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
354         progmem_swtable_section.
355         (progmem_swtable_section): Remove.
356         (avr_asm_function_rodata_section): Remove.
357         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
358         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
359
360 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
361
362         * config/i386/driver-i386.c (host_detect_local_cpu): Set
363         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
364         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
365         signature_CENTAUR_ebx.
366         * config/i386/i386.c (ix86_option_override_internal): Add
367         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
368         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
369         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
370
371 2016-06-16  Martin Liska  <mliska@suse.cz>
372
373         * predict.def: Add fortran loop preheader predictor.
374         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
375         fold IFN_BUILTIN_EXPECT with a known constant argument.
376
377 2016-06-16  Martin Liska  <mliska@suse.cz>
378
379         * predict.def: Add 'Fortran' to display text of all
380         PRED_FORTRAN_* predictors.
381
382 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
383
384         PR target/71242
385         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
386         [IA64_BUILTIN_NANSQ]: Ditto.
387         (ia64_fold_builtin): New function.
388         (TARGET_FOLD_BUILTIN): New define.
389         (ia64_init_builtins) Declare const_string_type node.
390         Add __builtin_nanq and __builtin_nansq builtin functions.
391         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
392
393 2016-06-16  Nick Clifton  <nickc@redhat.com>
394
395         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
396         MSP430_HWMULT_ prefix to enum values.
397         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
398         * config/msp430/msp430.c: Update use of enum values.
399         * config/msp430/msp430.md: Likewise.
400         * config/msp430/msp430.opt: Likewise.
401
402 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
403
404         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
405         of comparsions in the last iteration.
406
407 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
408             Joern Rennecke  <joern.rennecke@embecosm.com>
409
410         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
411         addresses.
412         (arc_needs_pcl_p): Add GOTOFFPC.
413         (arc_legitimate_pic_addr_p): Likewise.
414         (arc_output_pic_addr_const): Likewise.
415         (arc_legitimize_pic_address): Generate a pc-relative address using
416         GOTOFFPC.
417         (arc_output_libcall): Use @pcl syntax.
418         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
419         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
420         (*movsi_insn): Use @pcl syntax.
421         (doloop_begin_i): Likewise.
422
423 2016-06-16  Martin Liska  <mliska@suse.cz>
424
425         * predict.def: Define a new predictor.
426
427 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
428
429         * config/arc/arc.opt (mtp-regno): Update text.
430
431 2016-06-16  Renlin Li  <renlin.li@arm.com>
432
433         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
434
435 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
436
437         PR target/71554
438         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
439         (setcc + and peephole2): Likewise.
440
441         PR rtl-optimization/71532
442         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
443         memory slots.
444
445 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
446
447         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
448         DImode constants with XXSPLTIB in vector registers.
449         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
450         vsx_extract_<mode>_internal{1,2} into a single insn that handles
451         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
452         extraction of the element at the top of the register as a scalar
453         value.
454         (vsx_extract_<mode>_internal1): Likewise.
455         (vsx_extract_<mode>_internal2): Likewise.
456         * config/rs6000/constraints.md (wi constraint): Remove a comment
457         about DImode not being allowed in Altivec registers.
458         (wB constraint): New constraint for constants that can be
459         generated in Altivec registers with VSPLTISW/VUPKHSW.
460         * config/rs6000/predicates.md (xxspltib_constant_split): Update
461         comments.
462         (xxspltib_constant_nosplit): Likewise.
463         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
464         support for -mupper-regs-di to enable DImode to go into Altivec
465         registers.
466         (POWERPC_MASKS): Likewise.
467         (power7 cpu): Likewise.
468         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
469         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
470         for DImode being allowed in Altivec registers.  Update wi/wj
471         constraints.  Set scalar_in_vmx_p flag.
472         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
473         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
474         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
475         (rs6000_opt_masks): Add -mupper-regs-di.
476         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
477         direct move to use wi and not wj.
478         (lfiwzx): Likewise.
479         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
480         alternative.
481         (floatunssi<mode>2_lfiwzx_mem): Likewise.
482         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
483         any VSX register, instead of just Altivec registers, to allow
484         either operand to be an Altivec register or both.
485         (fixuns_trunc<mode>di2_fctiduz): Likewise.
486         (movdi_internal32): Add support for -mupper-regs-di.  Add support
487         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
488         the alternatives and attributes to be lined up to be easier to
489         read.
490         (movdi_internal64): Likewise.
491         (64-bit DImode splitters): Change predicates to only split loading
492         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
493         load constants in ISA 3.0 or ISA 2.07 respectively.
494         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
495         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
496         mention -mcpu=power9 sets these options.
497         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
498         wB constraint.
499
500 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
501
502         PR target/67353
503         * config/avr/avr.c (avr_set_current_function): Warn misspelled
504         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
505         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
506         by default to warn misspelled interrupt/ signal handler.
507         * doc/invoke.texi (AVR Options): Document it. Update description
508         for -nodevicelib option.
509
510 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
511
512         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
513         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
514         (aarch64_<sur>shll2_n<mode>): Likewise.
515
516 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
517
518         PR middle-end/71529
519         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
520         DECL_CONTEXT for copied arguments.
521
522 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
523
524         PR tree-optimization/71483
525         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
526         for slp
527
528 2016-06-15  Martin Liska  <mliska@suse.cz>
529
530         * predict.c (tree_predict_by_opcode): Call predict_edge_def
531         instead of predict_edge w/o a probability.
532
533 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
534
535         PR tree-optimization/71439
536         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
537         live PHIs.
538
539 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
540
541         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
542         register subregs in SET_SRC.
543
544 2016-06-15  Richard Biener  <rguenther@suse.de>
545
546         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
547         store restrictions.
548
549 2016-06-15  Richard Biener  <rguenther@suse.de>
550
551         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
552         not consider dependences between accesses that belong to the
553         same group.
554         (vect_analyze_data_ref_dependences): Do not analyze read-read
555         or self-dependences.
556
557 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
558
559         * spellcheck-tree.c: Include spellcheck-tree.h rather than
560         spellcheck.h.
561         (find_closest_identifier): Reimplement in terms of
562         best_match<tree,tree>.
563         * spellcheck-tree.h: New file.
564         * spellcheck.c (struct edit_distance_traits<const char *>): New
565         struct.
566         (find_closest_string): Reimplement in terms of
567         best_match<const char *, const char *>.
568         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
569         overload to spellcheck-tree.h.
570         (find_closest_identifier): Likewise.
571         (struct edit_distance_traits<T>): New template.
572         (class best_match): New class.
573
574 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
575
576         * selftest-run-tests.c (selftest::run_tests): Call
577         selftest::spellcheck_tree_c_tests.
578         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
579         * spellcheck-tree.c: Include selftest.h and stringpool.h.
580         (selftest::test_find_closest_identifier): New function.
581         (selftest::spellcheck_tree_c_tests): New function.
582         * spellcheck.c (selftest::test_find_closest_string): Verify that
583         the order of the vec does not affect the results for this case.
584         (selftest::test_data): New array.
585         (selftest::test_metric_conditions): New function.
586         (selftest::spellcheck_c_tests): Add a test of case-comparison.
587         Call selftest::test_metric_conditions.
588
589 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
590
591         * config/rs6000/rs6000-builtin.def (commentary): Typo.
592         (BU_P9_MISC_1): Likewise.
593         (BU_P9_64BIT_MISC_0): Likewise.
594         (BU_P9_MISC_0): Likewise.
595
596 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
597
598         * gcc-rich-location.c
599         (gcc_rich_location::add_fixit_misspelled_id): New method.
600         * gcc-rich-location.h
601         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
602
603 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
604
605         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
606         FreeBSD 11 and above.
607
608 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
609
610         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
611
612 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
613
614         * expmed.h: Close parenthesis in "at your option" in copyright
615         boilerplate.
616         * lower-subreg.h: Likewise.
617
618 2016-06-14  Richard Biener  <rguenther@suse.de>
619
620         PR middle-end/71526
621         * genmatch.c (expr::gen_transform): Use in_type for comparisons
622         if available.
623
624 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
625
626         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
627         New function.
628         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
629         mask+shift version.
630         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
631         New prototype.
632         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
633         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
634
635 2016-06-14  Richard Biener  <rguenther@suse.de>
636
637         PR tree-optimization/71522
638         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
639         copying into float copying.
640
641 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
642
643         PR tree-optimization/71520
644         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
645         (replace_block_by): Move user labels from bb1 to bb2.
646
647 2016-06-14  Richard Biener  <rguenther@suse.de>
648
649         PR middle-end/71310
650         PR bootstrap/71510
651         * expr.h (get_bit_range): Declare.
652         * expr.c (get_bit_range): Export.
653         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
654         word_mode again to constrain the bitfield access.
655
656 2016-06-14  Richard Biener  <rguenther@suse.de>
657
658         PR tree-optimization/71521
659         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
660         division int_const_binop against zero divisor.
661
662 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
663
664         * config/i386/i386.md (signbittf2): New expander.
665         * config/i386/sse.md (ptesttf2): New insn pattern.
666
667 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
668
669         PR bootstrap/71481
670         * input.c (selftest::test_reading_source_line): Avoid reading from
671         __FILE__ by creating a tempfile with known content and reading
672         from that instead.
673
674 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
675
676         * pretty-print.c (assert_pp_format_colored): Skip the test if
677         GCC_COLORS is set.
678         (test_pp_format): Remove comment about GCC_COLORS.
679
680 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
681
682         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
683         * pretty-print.c (assert_pp_format_va): Add location param and use
684         it with ASSERT_STREQ_AT.
685         (assert_pp_format): Add location param and pass it to
686         assert_pp_format_va.
687         (assert_pp_format_colored): Likewise.
688         (ASSERT_PP_FORMAT_1): New.
689         (ASSERT_PP_FORMAT_2): New.
690         (ASSERT_PP_FORMAT_3): New.
691         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
692         explicitly, or implicitly via the above macros.
693         * selftest.c (selftest::pass): Use a selftest::location rather
694         than file and line.
695         (selftest::fail): Likewise.  Print the function name.
696         (selftest::fail_formatted): Likewise.
697         (selftest::assert_streq): Use a selftest::location rather than
698         file and line.
699         * selftest.h (selftest::location): New struct.
700         (SELFTEST_LOCATION): New macro.
701         (selftest::pass): Accept a const location & rather than file
702         and line.
703         (selftest::fail): Likewise.
704         (selftest::fail_formatted): Likewise.
705         (selftest::assert_streq): Likewise.
706         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
707         (ASSERT_FALSE): Likewise.
708         (ASSERT_EQ): Likewise.
709         (ASSERT_NE): Likewise.
710         (ASSERT_STREQ): Likewise.
711         (ASSERT_PRED1): Likewise.
712         (ASSERT_STREQ_AT): New macro.
713
714 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
715
716         * selftest.c (selftest::fail_formatted): New function.
717         (selftest::assert_streq): New function.
718         * selftest.h (selftests::fail_formatted): New decl.
719         (selftest::assert_streq): New decl.
720         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
721
722 2016-06-13  Jeff Law  <law@redhat.com>
723
724         PR tree-optimization/71403
725         * tree-ssa-threadbackward.c
726         (convert_and_register_jump_thread_path): No longer accept reference
727         to path.  Do not pop items off the path anymore.
728         (fsm_find_control_statement_thread_paths): Do not allow threading
729         to a deeper loop nest.  Pop the last item off the path here rather
730         than in convert_and_register_jump_thread_path.
731
732 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
733             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
734
735         [AArch64] Emit division using the Newton series
736
737         * config/aarch64/aarch64-protos.h
738         (cpu_approx_modes): Add new member "division".
739         (aarch64_emit_approx_div): Declare new function.
740         * config/aarch64/aarch64.c
741         (generic_approx_modes): New member "division".
742         (exynosm1_approx_modes): Likewise.
743         (xgene1_approx_modes): Likewise.
744         (aarch64_emit_approx_div): Define new function.
745         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
746         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
747         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
748         * doc/invoke.texi (-mlow-precision-div): Describe new option.
749
750 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
751             Wilco Dijkstra  <wilco.dijkstra@arm.com>
752
753         [AArch64] Emit square root using the Newton series
754
755         * config/aarch64/aarch64-protos.h
756         (aarch64_emit_approx_rsqrt): Replace with new function
757         "aarch64_emit_approx_sqrt".
758         (cpu_approx_modes): New member "sqrt".
759         * config/aarch64/aarch64.c
760         (generic_approx_modes): New member "sqrt".
761         (exynosm1_approx_modes): Likewise.
762         (xgene1_approx_modes): Likewise.
763         (aarch64_emit_approx_rsqrt): Replace with new function
764         "aarch64_emit_approx_sqrt".
765         (aarch64_override_options_after_change_1): Handle new option.
766         * config/aarch64/aarch64-simd.md
767         (rsqrt<mode>2): Use new function instead.
768         (sqrt<mode>2): New expansion and insn definitions.
769         * config/aarch64/aarch64.md: Likewise.
770         * config/aarch64/aarch64.opt
771         (mlow-precision-sqrt): Add new option description.
772         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
773
774 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
775
776         [AArch64] Add more choices for the reciprocal square root approximation
777
778         Allow a target to prefer such operation depending on the operation mode.
779
780         * config/aarch64/aarch64-protos.h
781         (AARCH64_APPROX_MODE): New macro.
782         (AARCH64_APPROX_{NONE,ALL}): Likewise.
783         (cpu_approx_modes): New structure.
784         (tune_params): New member "approx_modes".
785         * config/aarch64/aarch64-tuning-flags.def
786         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
787         * config/aarch64/aarch64.c
788         (generic_approx_modes): New core "cpu_approx_modes" structure.
789         (exynosm1_approx_modes): Likewise.
790         (xgene1_approx_modes): Likewise.
791         (generic_tunings): New member "approx_modes".
792         (cortexa35_tunings): Likewise.
793         (cortexa53_tunings): Likewise.
794         (cortexa57_tunings): Likewise.
795         (cortexa72_tunings): Likewise.
796         (exynosm1_tunings): Likewise.
797         (thunderx_tunings): Likewise.
798         (xgene1_tunings): Likewise.
799         (use_rsqrt_p): New argument for the mode and use new member from
800         "tune_params".
801         (aarch64_builtin_reciprocal): Devise mode from builtin.
802         (aarch64_optab_supported_p): New argument for the mode.
803         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
804
805 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
806
807         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
808         RS6000_BTM_MODULO flag into the set of flags that are considered
809         to be part of the common configuration.
810
811 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
812
813         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
814         difference unsigned.
815         (vec_absdb): New macro for vector absolute difference unsigned
816         byte.
817         (vec_absdh): New macro for vector absolute difference unsigned
818         half-word.
819         (vec_absdw): New macro for vector absolute difference unsigned word.
820         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
821         (vadu<mode>3): New insn.
822         (*p9_vadu<mode>3): New insn.
823         * config/rs6000/rs6000-builtin.def (vadub): New built-in
824         definition.
825         (vaduh): New built-in definition.
826         (vaduw): New built-in definition.
827         (vadu): New overloaded built-in definition.
828         (vadub): New overloaded built-in definition.
829         (vaduh): New overloaded built-in definition.
830         (vaduw): New overloaded built-in definition.
831         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
832         overloaded vector absolute difference unsigned functions.
833         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
834         the ISA 3.0 vector absolute difference unsigned built-in functions.
835
836 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
837
838         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
839         update shared_lookup_references only once after changing operands.
840
841 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
842
843         PR middle-end/71373
844         * tree-nested.c (convert_nonlocal_omp_clauses)
845         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
846
847         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
848         * tree.def (CASE_LABEL_EXPR): Likewise.
849
850 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
851
852         PR bootstrap/71481
853         * input.c (test_builtins): Fix an assertion.
854
855 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
856
857         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
858         (paritysi2): Ditto.
859         (isinfxf2): Ditto.
860         (isinf<mode>2): Ditto.
861
862 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
863
864         * ggc-tests.c (test_finalization): Only test need_finalization_p
865         for GCC_VERSION >= 4003.
866
867 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
868
869         * config/s390/vecintrin.h: Fix file description in comment.
870
871 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
872
873         * config/s390/s390-builtin-types.def: Change builtin type naming
874         scheme to match builtin-types.def.
875
876 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
877
878         * fold-const.c (optimize_minmax_comparison): Remove.
879         (fold_comparison): Remove call to the above.
880         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
881         New transformations.
882
883 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
884
885         PR tree-optimization/71416
886         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
887         multiple entries
888
889 2016-06-13  Martin Liska  <mliska@suse.cz>
890
891         * predict.c (enum predictor_reason): Prefix enum with REASON_.
892         (combine_predictions_for_insn): Likewise.
893         (prune_predictions_for_bb): Likewise.
894         (combine_predictions_for_bb): Likewise.
895
896 2016-06-13  Richard Biener  <rguenther@suse.de>
897
898         PR tree-optimization/71505
899         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
900         assert match comment.
901
902 2016-06-13  Marek Polacek  <polacek@redhat.com>
903
904         PR middle-end/71476
905         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
906         gimplify_switch_expr.
907         (warn_switch_unreachable_r): New function.
908
909 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
910
911         PR target/71379
912         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
913         one.
914
915 2016-06-13  Richard Biener  <rguenther@suse.de>
916
917         PR middle-end/64516
918         * fold-const.c (fold_unary_loc): Preserve alignment when
919         folding a VIEW_CONVERT_EXPR into a MEM_REF.
920
921 2016-06-13  Martin Liska  <mliska@suse.cz>
922
923         PR sanitizer/71458
924         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
925         w/ -fsanitize=bounds.
926
927 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
928
929         * config/i386/i386.c (ix86_init_builtins): Calculate
930         FLOAT128_FTYPE_CONST_STRING function type only once.
931         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
932         built-in functions are available for x86-32 and x86-64 targets.
933
934 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
935
936         PR target/71241
937         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
938         New primitive type.
939         (FLOAT128_FTYPE_CONST_STRING): New function type.
940         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
941         [IX86_BUILTIN_NANSQ]: Ditto.
942         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
943         (ix86_init_builtin_types): Declare const_string_type_node.
944         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
945         builtin functions.
946         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
947         * doc/extend.texi (x86 Built-in Functions): Document
948         __builtin_nanq and __builtin_nansq.
949
950 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
951
952         PR target/71061
953         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
954         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
955         length for pop patterns.
956         (arm_attr_length_push_multi): Update comments.
957         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
958         attribute.
959         (*pop_multiple_with_writeback_and_return): Likewise.
960         (*pop_multiple_with_return): Likewise.
961
962 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
963
964         PR middle-end/71310
965         * fold-const.c (optimize_bit_field_compare): Don't try to use
966         word_mode unconditionally for reading the bit field, look at
967         DECL_BIT_FIELD_REPRESENTATIVE instead.
968
969 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
970
971         PR middle-end/71478
972         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
973         vector integer type.
974
975 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
976
977         PR middle-end/71494
978         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
979         without LABEL_DECL, set *handled_ops_p to false instead of true.
980
981 2016-06-10  Martin Sebor  <msebor@redhat.com>
982
983         PR c/71392
984         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
985         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
986         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
987         them.
988         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
989         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
990         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
991         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
992         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
993         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
994         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
995         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
996
997 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
998
999         * config/arm/arm.h (pool_vector_label,
1000         return_used_this_function): Remove.
1001
1002 2016-06-10  Jeff Law  <law@redhat.com>
1003
1004         PR tree-optimization/71335
1005         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
1006         zero length paths here.
1007         (convert_and_register_jump_thread_path): Remove hacks related to
1008         duplicated blocks in the jump thread path.
1009         (fsm_find_control_statement_thread_paths): Avoid putting the same
1010         block on the thread path twice, but ensure the thread path is
1011         unchanged from the caller's point of view.
1012
1013 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
1014
1015         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
1016         * predict.def (PRED_LOOP_BRANCH): Remove.
1017
1018 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
1019
1020         * Makefile.in (OBJS): Add ggc-tests.o.
1021         (GTFILES): Add ggc-tests.c.
1022         * ggc-tests.c: New file.
1023         * selftest-run-tests.c (selftest::run_tests): Call
1024         selftest::ggc_tests_c_tests.
1025         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
1026
1027 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
1028
1029         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
1030
1031 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
1032
1033         PR sanitizer/71480
1034         * varasm.c (place_block_symbol): Adjust alignment for asan protected
1035         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
1036
1037 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
1038
1039         * profile.c: Include cfgloop.h.
1040         (branch_prob): Compute estimated number of iterations.
1041         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
1042         recompute estimate number of iterations from profile.
1043
1044 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1045
1046         PR inline-asm/68843
1047         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
1048         must be grouped on top of stack.  Don't force early clobber
1049         on ordinary reg outputs.
1050
1051 2016-06-10  Richard Biener  <rguenther@suse.de>
1052
1053         * targhooks.c (default_builtin_vectorization_cost): Adjust
1054         vec_construct cost.
1055
1056 2016-06-10  Richard Biener  <rguenther@suse.de>
1057
1058         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
1059         to fold the RHS to a constant if possible.
1060
1061 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
1062
1063         PR middle-end/71373
1064         * tree-nested.c (convert_nonlocal_omp_clauses)
1065         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
1066         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
1067         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
1068
1069         * gimplify.c (gimplify_adjust_omp_clauses): Discard
1070         OMP_CLAUSE_TILE.
1071         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
1072
1073         * omp-low.c (scan_sharing_clauses): Don't expect
1074         OMP_CLAUSE__CACHE_.
1075
1076 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
1077
1078         PR tree-optimization/71407
1079         PR tree-optimization/71416
1080         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
1081         BIT_FIELD_REF type.
1082
1083 2016-06-10  Richard Biener  <rguenther@suse.de>
1084
1085         PR middle-end/71477
1086         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
1087
1088 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
1089
1090         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
1091
1092 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
1093             Jiong Wang  <jiong.wang@arm.com>
1094
1095         PR rtl-optimization/70751
1096         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
1097         spilled into memory.
1098
1099 2016-06-09  Jonathan Yong  <10walls@gmail.com>
1100
1101         Revert:
1102         2015-09-21  Jonathan Yong  <10walls@gmail.com>
1103
1104         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
1105         sysroot/usr/lib/32api for additional win32 libraries,
1106         fixes failing Cygwin bootstrapping.
1107
1108 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
1109
1110         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
1111         Delete.
1112
1113 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
1114
1115         PR bootstrap/71471
1116         * pretty-print.c (pp_indent): Specify that %p is printed in a
1117         host-dependent manner.
1118         (test_pp_format): Remove the test for %p.
1119
1120 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
1121
1122         * config/mips/mips.c (mips_output_jump): Fix formatting.
1123
1124 2016-06-09  Richard Biener  <rguenther@suse.de>
1125
1126         PR tree-optimization/71462
1127         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
1128         removed blocks.
1129
1130 2016-06-09  Martin Liska  <mliska@suse.cz>
1131
1132         * predict.c (dump_prediction): Add new argument.
1133         (enum predictor_reason): New enum.
1134         (struct predictor_hash): New struct.
1135         (predictor_hash::hash): New function.
1136         (predictor_hash::equal): Likewise.
1137         (not_removed_prediction_p): New function.
1138         (prune_predictions_for_bb): Likewise.
1139         (combine_predictions_for_bb): Prune predictions.
1140
1141 2016-06-09  Martin Liska  <mliska@suse.cz>
1142
1143         * predict.c (filter_predictions): New function.
1144         (remove_predictions_associated_with_edge): Use the filter
1145         function.
1146         (equal_edge_p): New function.
1147
1148 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
1149
1150         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
1151         Correct usage of @samp vs @option, add @samp where appropriate.
1152         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
1153         Add armv6s-m and document it, as it is no official ARM name.
1154
1155 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1156
1157         * ifcvt.c (struct noce_if_info): Add transform_name field.
1158         (noce_try_move): Set if_info->transform_name to the function name.
1159         (noce_try_ifelse_collapse): Likewise.
1160         (noce_try_store_flag): Likewise.
1161         (noce_try_inverse_constants): Likewise.
1162         (noce_try_store_flag_constants): Likewise.
1163         (noce_try_addcc): Likewise.
1164         (noce_try_store_flag_mask): Likewise.
1165         (noce_try_cmove): Likewise.
1166         (noce_try_cmove_arith): Likewise.
1167         (noce_try_minmax): Likewise.
1168         (noce_try_abs): Likewise.
1169         (noce_try_sign_mask): Likewise.
1170         (noce_try_bitop): Likewise.
1171         (noce_convert_multiple_sets): Likewise.
1172         (noce_process_if_block): Print if_info->transform_name to
1173         dump_file if transformation succeeded.
1174
1175 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1176
1177         * config/arm/cortex-a57.md (cortex_a57_alu):
1178         Handle csel type.
1179
1180 2016-06-08  Martin Sebor  <msebor@redhat.com>
1181             Jakub Jelinek  <jakub@redhat.com>
1182
1183         PR c++/70507
1184         PR c/68120
1185         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
1186         BUILT_IN_MUL_OVERFLOW_P): New builtins.
1187         * builtins.c: Include gimple-fold.h.
1188         (fold_builtin_arith_overflow): Handle
1189         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
1190         (fold_builtin_3): Likewise.
1191         * doc/extend.texi (Integer Overflow Builtins): Document
1192         __builtin_{add,sub,mul}_overflow_p.
1193
1194 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
1195
1196         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
1197         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
1198
1199 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
1200
1201         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
1202         Rewrite, looking one level down for records and arrays.
1203
1204 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
1205
1206         * pretty-print.c: Include "selftest.h".
1207         (pp_format): Fix comment.
1208         (identifier_to_locale): Likewise.
1209         (selftest::test_basic_printing): New function.
1210         (selftest::assert_pp_format): New function.
1211         (selftest::test_pp_format): New function.
1212         (selftest::pretty_print_c_tests): New function.
1213         * selftest-run-tests.c (selftest::run_tests): Call
1214         selftest::pretty_print_c_tests.
1215         * selftest.h (pretty_print_c_tests): New declaration.
1216
1217 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1218
1219         * invoke.texi (max-loop-headers-insns): Document.
1220         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
1221         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
1222         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
1223
1224 2016-06-08  Richard Biener  <rguenther@suse.de>
1225
1226         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
1227         on strided SLP loads and fall back to scalar loads in case
1228         we can't chunk them.
1229
1230 2016-06-08  Richard Biener  <rguenther@suse.de>
1231
1232         PR tree-optimization/71452
1233         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
1234         type used for the SSA rewrite has enough precision to cover
1235         the dynamic type of the location.
1236
1237 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
1238             Richard Biener  <rguenther@suse.de>
1239
1240         PR c++/71448
1241         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
1242         the same as DECL_P (base0) for indirect_base0.  Use equality_code
1243         in one further place.
1244
1245 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
1246
1247         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
1248         to one word if the field is known to overlap other words.
1249         (extract_bit_field_1): Likewise.
1250         (store_split_bit_field): Remove compensating code.
1251         (extract_split_bit_field): Likewise.
1252
1253 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
1254
1255         PR debug/71432
1256         PR ada/71413
1257         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
1258
1259 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1260
1261         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
1262         VDQF.
1263         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
1264         (arch64_addpv4sf): Delete.
1265         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
1266         "gen_aarch64_addpv4sf".
1267         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
1268         builtin.
1269         (vpadds_f32): Likewise.
1270         (vpaddq_f32): Likewise.
1271         (vpaddq_f64): Likewise.
1272
1273 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1274
1275         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
1276         VALLF.
1277         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
1278         to VALLF.  Rename to "fabd<mode>3".
1279         "*fabd_scalar<mode>3): Delete.
1280         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
1281         Use builtin.
1282         (vabdd_f64): Likewise.
1283         (vabd_f32): Likewise.
1284         (vabd_f64): Likewise.
1285         (vabdq_f32): Likewise.
1286         (vabdq_f64): Likewise.
1287
1288 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1289
1290         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
1291         VALLF.
1292         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
1293         "aarch64_rsqrts<mode>".
1294         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
1295         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
1296         builtin.
1297         (vrsqrtsd_f64): Likewise.
1298         (vrsqrts_f32): Likewise.
1299         (vrsqrts_f64): Likewise.
1300         (vrsqrtsq_f32): Likewise.
1301         (vrsqrtsq_f64): Likewise.
1302
1303 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1304
1305         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
1306         VALLF.
1307         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
1308         "aarch64_rsqrte<mode>".
1309         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
1310         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
1311         builtin.
1312         (vrsqrted_f64): Likewise.
1313         (vrsqrte_f32): Likewise.
1314         (vrsqrte_f64): Likewise.
1315         (vrsqrteq_f32): Likewise.
1316         (vrsqrteq_f64): Likewise.
1317
1318 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1319
1320         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
1321         (ucvtf): Likewise.
1322         (fcvtzs): Likewise.
1323         (fcvtzu): Likewise.
1324         * config/aarch64/aarch64-simd.md
1325         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
1326         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
1327         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
1328         Use builtin.
1329         (vcvt_n_f32_u32): Likewise.
1330         (vcvt_n_s32_f32): Likewise.
1331         (vcvt_n_u32_f32): Likewise.
1332         (vcvtq_n_f32_s32): Likewise.
1333         (vcvtq_n_f32_u32): Likewise.
1334         (vcvtq_n_f64_s64): Likewise.
1335         (vcvtq_n_f64_u64): Likewise.
1336         (vcvtq_n_s32_f32): Likewise.
1337         (vcvtq_n_s64_f64): Likewise.
1338         (vcvtq_n_u32_f32): Likewise.
1339         (vcvtq_n_u64_f64): Likewise.
1340         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
1341         (VSDQ_SDI): Likewise.
1342         (fcvt_target): Support V4DI, V4SI and V2SI.
1343         (FCVT_TARGET): Likewise.
1344
1345 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1346
1347         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
1348         (TYPES_BINOP_SUS): Likewise.
1349         (aarch64_simd_builtin_data): Update include file name.
1350         (aarch64_builtins): Likewise.
1351         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
1352         for conversion between scalar float-point and fixed-point.
1353         (ucvtf): Likewise.
1354         (fcvtzs): Likewise.
1355         (fcvtzu): Likewise.
1356         * config/aarch64/aarch64.md
1357         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
1358         pattern for conversion between scalar float to fixed-pointer.
1359         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
1360         (UNSPEC_FCVTZS): New UNSPEC enumeration.
1361         (UNSPEC_FCVTZU): Likewise.
1362         (UNSPEC_SCVTF): Likewise.
1363         (UNSPEC_UCVTF): Likewise.
1364         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
1365         Use builtin.
1366         (vcvtd_n_f64_u64): Likewise.
1367         (vcvtd_n_s64_f64): Likewise.
1368         (vcvtd_n_u64_f64): Likewise.
1369         (vcvtd_n_f32_s32): Likewise.
1370         (vcvts_n_f32_u32): Likewise.
1371         (vcvtd_n_s32_f32): Likewise.
1372         (vcvts_n_u32_f32): Likewise.
1373         * config/aarch64/iterators.md (fcvt_target): Support integer to float
1374         mapping.
1375         (FCVT_TARGET): Likewise.
1376         (FCVT_FIXED2F): New iterator.
1377         (FCVT_F2FIXED): Likewise.
1378         (fcvt_fixed_insn): New define_int_attr.
1379
1380 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1381
1382         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
1383         some statements was removed.
1384
1385 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
1386
1387         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
1388         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
1389         (vect_can_advance_ivs_p): likewise.
1390         (vect_update_ivs_after_vectorizer): likewise.
1391         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
1392         (vect_analyze_scalar_cycles_1): likewise.
1393         (vect_analyze_loop_operations): likewise.
1394         (report_vect_op): likewise.
1395         (vect_is_slp_reduction): likewise.
1396         (vect_is_simple_reduction): likewise.
1397         (get_initial_def_for_induction): likewise.
1398         (vect_transform_loop): likewise.
1399         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
1400         (vect_recog_sad_pattern): likewise.
1401         (vect_recog_widen_sum_pattern): likewise.
1402         (vect_recog_widening_pattern): likewise.
1403         (vect_recog_divmod_pattern): likewise.
1404         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
1405         (vect_analyze_slp_instance): likewise.
1406         (vect_transform_slp_perm_load): likewise.
1407         (vect_schedule_slp_instance): likewise.
1408
1409 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1410
1411         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
1412         (return_prediction): PRED_CONST_RETURN predict return as not taken.
1413         * predict.def (PRED_CONTINUE): Change hitrate 50->67
1414         (PRED_LOOP_BRANCH): Document predictor as broken.
1415         (PRED_LOOP_EXIT): Change hitrate 91->92.
1416         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
1417         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
1418         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
1419         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
1420         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
1421         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
1422         (PRED_CALL): Chane hitrate 71->67.
1423         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
1424         (PRED_GOTO): Document as unused right now.
1425         (PRED_CONST_RETURN): Change hitrate 67->69
1426         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
1427         (PRED_NULL_RETURN): Change hitrate 91->90.
1428         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
1429         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
1430         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
1431
1432 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
1433
1434         * config/rs6000/altivec.h: Add __builtin_vec_mul.
1435         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
1436         special case Altivec builtin.
1437         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
1438         VSX_BUILTIN_VEC_MUL (replaced with special case code).
1439         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
1440         code for ALTIVEC_BUILTIN_VEC_MUL.
1441         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
1442         for __builtin_vec_mul.
1443
1444 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
1445
1446         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
1447         -mno-htm.
1448
1449 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
1450
1451         * spellcheck.c (selftest::test_find_closest_string): New function.
1452         (spellcheck_c_tests): Call the above.
1453
1454 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1455
1456         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
1457
1458 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
1459
1460         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
1461         Yv=Yv,C alternatives.
1462
1463 2016-06-07  Richard Biener  <rguenther@suse.de>
1464
1465         PR c/61564
1466         * common.opt (ffast-math): Make Optimization.
1467
1468 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
1469             Prachi Godbole  <prachi.godbole@imgtec.com>
1470
1471         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
1472         `fabs' and `fneg' type attributes.
1473         (p5600_fpu_fabs): Add `fmove' to the comment.
1474
1475 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1476
1477         * gimple.c: Include builtins.h
1478         (gimple_inexpensive_call_p): New function.
1479         * gimple.h (gimple_inexpensive_call_p): Declare.
1480         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
1481         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
1482         fix formatting.
1483
1484 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
1485
1486         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
1487         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
1488         warning_at_rich_loc, warning_n, pedwarn, permerror,
1489         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
1490         sorry, fatal_error, internal_error, internal_error_no_backtrace):
1491         Use the above.
1492
1493 2016-06-07  Richard Biener  <rguenther@suse.de>
1494
1495         PR tree-optimization/71428
1496         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
1497         BIT_FIELD_REF op vs. load.
1498
1499 2016-06-07  Richard Biener  <rguenther@suse.de>
1500
1501         PR middle-end/71423
1502         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
1503         for signed ops.
1504
1505 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
1506
1507         * config/pa/pa.md (call): Generate indirect long calls to non-local
1508         functions on TARGET_64BIT.
1509         (call_value): Likewise.
1510
1511 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
1512
1513         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
1514         pattern and subsequent splitters.
1515         (call_val_reg_64bit_post_reload): Likewise.
1516
1517 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
1518
1519         PR middle-end/71408
1520         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
1521         propagate_op_to_single_use.
1522
1523 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
1524
1525         PR middle-end/71281
1526         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
1527
1528 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
1529
1530         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
1531         (enum x86_dirflag_state): New enum.
1532         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
1533         (machine_function): Remove needs_cld.
1534         (ix86_current_function_needs_cld): Remove.
1535         * config/i386/i386.c (ix86_set_func_type): Set
1536         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
1537         (ix86_expand_prologue): Do not emit CLD here.
1538         (ix86_dirflag_mode_needed): New function.
1539         (ix86_dirflag_mode_entry): Ditto.
1540         (ix86_mode_needed): Handle X86_DIRFLAG entity.
1541         (ix86_mode_after): Ditto.
1542         (ix86_mode_entry): Ditto.
1543         (ix86_mode_exit): Ditto.
1544         (ix86_emit_mode_set): Ditto.
1545         * config/i386/i386.md (strmov_singleop): Set
1546         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
1547         Do not set ix86_current_function_needs_cld.
1548         (rep_mov): Ditto.
1549         (strset_singleop): Ditto.
1550         (rep_stos): Ditto.
1551         (cmpstrnqi_nz_1): Ditto.
1552         (cmpstrnqi_1): Ditto.
1553         (strlenqi_1): Ditto.
1554
1555 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
1556
1557         PR tree-optimization/71259
1558         * tree-vect-slp.c (vect_get_constant_vectors): For
1559         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
1560         one for constant op, and use COND_EXPR for non-constant.
1561
1562 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
1563
1564         * Makefile.in (OBJS): Add function-tests.o,
1565         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
1566         selftest-run-tests.o.
1567         (OBJS-libcommon): Add selftest.o.
1568         (OBJS-libcommon-target): Add selftest.o.
1569         (all.internal): Add "selftest".
1570         (all.cross): Likewise.
1571         (selftest): New phony target.
1572         (s-selftest): New target.
1573         (selftest-gdb): New phony target.
1574         (COLLECT2_OBJS): Add selftest.o.
1575         * bitmap.c: Include "selftest.h".
1576         (selftest::test_gc_alloc): New function.
1577         (selftest::test_set_range): New function.
1578         (selftest::test_clear_bit_in_middle): New function.
1579         (selftest::test_copying): New function.
1580         (selftest::test_bitmap_single_bit_set_p): New function.
1581         (selftest::bitmap_c_tests): New function.
1582         * common.opt (fself-test): New.
1583         * diagnostic-show-locus.c: Include "selftest.h".
1584         (make_range): New function.
1585         (test_range_contains_point_for_single_point): New function.
1586         (test_range_contains_point_for_single_line): New function.
1587         (test_range_contains_point_for_multiple_lines): New function.
1588         (assert_eq): New function.
1589         (test_get_line_width_without_trailing_whitespace): New function.
1590         (selftest::diagnostic_show_locus_c_tests): New function.
1591         * et-forest.c: Include "selftest.h".
1592         (selftest::test_single_node): New function.
1593         (selftest::test_simple_tree): New function.
1594         (selftest::test_disconnected_nodes): New function.
1595         (selftest::et_forest_c_tests): New function.
1596         * fold-const.c: Include "selftest.h".
1597         (selftest::assert_binop_folds_to_const): New function.
1598         (selftest::assert_binop_folds_to_nonlvalue): New function.
1599         (selftest::test_arithmetic_folding): New function.
1600         (selftest::fold_const_c_tests): New function.
1601         * function-tests.c: New file.
1602         * gimple.c: Include "selftest.h".
1603         Include "gimple-pretty-print.h".
1604         (selftest::verify_gimple_pp): New function.
1605         (selftest::test_assign_single): New function.
1606         (selftest::test_assign_binop): New function.
1607         (selftest::test_nop_stmt): New function.
1608         (selftest::test_return_stmt): New function.
1609         (selftest::test_return_without_value): New function.
1610         (selftest::gimple_c_tests): New function.
1611         * hash-map-tests.c: New file.
1612         * hash-set-tests.c: New file.
1613         * input.c: Include "selftest.h".
1614         (selftest::assert_loceq): New function.
1615         (selftest::test_accessing_ordinary_linemaps): New function.
1616         (selftest::test_unknown_location): New function.
1617         (selftest::test_builtins): New function.
1618         (selftest::test_reading_source_line): New function.
1619         (selftest::input_c_tests): New function.
1620         * rtl-tests.c: New file.
1621         * selftest-run-tests.c: New file.
1622         * selftest.c: New file.
1623         * selftest.h: New file.
1624         * spellcheck.c: Include "selftest.h".
1625         (selftest::levenshtein_distance_unit_test_oneway): New function,
1626         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
1627         (selftest::levenshtein_distance_unit_test): Likewise.
1628         (selftest::spellcheck_c_tests): Likewise.
1629         * toplev.c: Include selftest.h.
1630         (toplev::run_self_tests): New.
1631         (toplev::main): Handle -fself-test.
1632         * toplev.h (toplev::run_self_tests): New.
1633         * tree.c: Include "selftest.h".
1634         (selftest::test_integer_constants): New function.
1635         (selftest::test_identifiers): New function.
1636         (selftest::test_labels): New function.
1637         (selftest::tree_c_tests): New function.
1638         * tree-cfg.c: Include "selftest.h".
1639         (selftest::push_fndecl): New function.
1640         (selftest::test_linear_chain): New function.
1641         (selftest::test_diamond): New function.
1642         (selftest::test_fully_connected): New function.
1643         (selftest::tree_cfg_c_tests): New function.
1644         * vec.c: Include "selftest.h".
1645         (selftest::safe_push_range): New function.
1646         (selftest::test_quick_push): New function.
1647         (selftest::test_safe_push): New function.
1648         (selftest::test_truncate): New function.
1649         (selftest::test_safe_grow_cleared): New function.
1650         (selftest::test_pop): New function.
1651         (selftest::test_safe_insert): New function.
1652         (selftest::test_ordered_remove): New function.
1653         (selftest::test_unordered_remove): New function.
1654         (selftest::test_block_remove): New function.
1655         (selftest::reverse_cmp): New function.
1656         (selftest::test_qsort): New function.
1657         (selftest::vec_c_tests): New function.c.
1658         * wide-int.cc: Include selftest.h and wide-int-print.h.
1659         (selftest::from_int <wide_int>): New function.
1660         (selftest::from_int <offset_int>): New function.
1661         (selftest::from_int <widest_int>): New function.
1662         (selftest::assert_deceq): New function.
1663         (selftest::assert_hexeq): New function.
1664         (selftest::test_printing <VALUE_TYPE>): New function template.
1665         (selftest::test_ops <VALUE_TYPE>): New function template.
1666         (selftest::test_comparisons <VALUE_TYPE>): New function template.
1667         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
1668         template.
1669         (selftest::wide_int_cc_tests): New function.
1670
1671 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1672
1673         PR middle-end/37780
1674         * ifcvt.c (noce_try_ifelse_collapse): New function.
1675         Declare prototype.
1676         (noce_process_if_block): Call noce_try_ifelse_collapse.
1677         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
1678         (simplify_ternary_operation): Use the above to simplify
1679         conditional CLZ/CTZ expressions.
1680
1681 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1682
1683         PR middle-end/37780
1684         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
1685         define_insn_and_split.
1686
1687 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1688
1689         PR middle-end/37780
1690         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
1691
1692 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1693
1694         PR c/24414
1695         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
1696         Implicitly clobber memory for basic asm with non-empty assembler
1697         string.  Use targetm.md_asm_adjust also here.
1698         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
1699         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
1700         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
1701         non-empty assembler string.
1702         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
1703         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
1704         (decode_asm_operands): Handle basic asm in PARALLEL block.
1705         (extract_insn): Handle basic asm in PARALLEL block.
1706         * doc/extend.texi: Mention new behavior of basic asm.
1707         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
1708         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
1709         branch_needs_nop_p): Use asm_noperands.
1710
1711 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
1712
1713         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
1714         Include the M7 SPARC DFA scheduler.
1715         New attribute v3pipe.
1716         Annotate insns with v3pipe where appropriate.
1717         Define cpu_feature vis4.
1718         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
1719         Add (V8QI "8") to vbits.
1720         Add insns {add,sub}v8qi3
1721         Add insns ss{add,sub}v8qi3
1722         Add insns us{add,sub}{v8qi,v4hi}3
1723         Add insns {min,max}{v8qi,v4hi,v2si}3
1724         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
1725         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
1726         * config/sparc/niagara4.md: Add a comment explaining the
1727         discrepancy between the documented latenty numbers and the
1728         implemented ones.
1729         * config/sparc/niagara7.md: New file.
1730         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
1731         supports SPARC5 and VIS 4.0 instructions.
1732         * configure: Regenerate.
1733         * config.in: Likewise.
1734         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
1735         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
1736         TARGET_CPU_niagara7.
1737         (ASM_CPU64_DEFAULT_SPEC): Likewise.
1738         (CPP_CPU_SPEC): Handle niagara7.
1739         (ASM_CPU_SPEC): Likewise.
1740         * config/sparc/sparc-opts.h (processor_type): Add
1741         PROCESSOR_NIAGARA7.
1742         (mvis4): New option.
1743         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
1744         (AS_NIAGARA7_FLAG): Define.
1745         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
1746         (CPP_CPU64_DEFAULT_SPEC): Likewise.
1747         (CPP_CPU_SPEC): Handle niagara7.
1748         (ASM_CPU_SPEC): Likewise.
1749         * config/sparc/sparc.c (niagara7_costs): Define.
1750         (sparc_option_override): Handle niagara7 and adjust cache-related
1751         parameters with better values for niagara cpus.  Also support VIS4.
1752         (sparc32_initialize_trampoline): Likewise.
1753         (sparc_use_sched_lookahead): Likewise.
1754         (sparc_issue_rate): Likewise.
1755         (sparc_register_move_cost): Likewise.
1756         (dump_target_flag_bits): Support VIS4.
1757         (sparc_vis_init_builtins): Likewise.
1758         (sparc_builtins): Likewise.
1759         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
1760         VIS4 4.0.
1761         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
1762         UltraSparc M7.
1763         * config/sparc/sparc.opt (sparc_processor_type): New value
1764         niagara7.
1765         * config/sparc/visintrin.h (__attribute__): Prototypes for the
1766         VIS4 builtins.
1767         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
1768         -mvis4.
1769         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
1770         VIS4 builtins.
1771
1772 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
1773
1774         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
1775
1776 2016-06-06  Richard Biener  <rguenther@suse.de>
1777
1778         PR tree-optimization/71398
1779         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
1780         remove edges.
1781
1782 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
1783
1784         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
1785         ft32_expand_prolog, ft32_expand_epilogue):
1786         Handle pretend_args.
1787         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
1788         * config/ft32/ft32.md: Add pretend_returner.
1789
1790 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
1791
1792         PR target/71389
1793         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
1794         Copy op1 RTX to avoid invalid sharing.
1795         (ix86_expand_vector_move_misalign): Ditto.
1796
1797 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
1798
1799         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
1800         ATTRIBUTE_UNUSED.
1801
1802 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
1803
1804         * predict.c (predicted_by_loop_heuristics_p): New function.
1805         (predict_iv_comparison): Use it.
1806         (predict_loops): Walk from innermost loops; do not predict edges
1807         leaving multiple loops multiple times; implement
1808         PRED_LOOP_ITERATIONS_MAX heuristics.
1809         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
1810
1811 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
1812
1813         * cfg.c (check_bb_profile): Do not report mismatched profiles when
1814         only edges out of BB are EH edges.
1815
1816 2016-06-04  Martin Sebor  <msebor@redhat.com>
1817             Marcin Baczyński  <marbacz@gmail.com>
1818
1819         PR c/48116
1820         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
1821         a void expression in a void function.
1822
1823 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
1824
1825         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
1826         aux; dump reasons of decisions.
1827         (should_duplicate_loop_header_p): Likewise.
1828         (do_while_loop_p): Likewise.
1829         (ch_base::copy_headers): Dump asi num insns duplicated.
1830
1831 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
1832
1833         PR tree-optimization/71405
1834         * tree-ssa.c (execute_update_addresses_taken): For clobber with
1835         incompatible type, build a new clobber with the right type instead
1836         of building a VIEW_CONVERT_EXPR around it.
1837
1838 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
1839
1840         PR tree-optimization/52171
1841         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
1842         by_pieces_ninsns instead of move_by_pieces_ninsns.
1843
1844 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
1845
1846         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
1847         for reg+reg addressing mode.
1848
1849 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1850
1851         * rs6000-c.c (c/c-tree.h): Add #include.
1852         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
1853         in C++ when found in the base position of vec_ld or vec_st.
1854
1855 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
1856
1857         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
1858         use of profile unless profile status is PROFILE_READ.
1859         * profile.c (compute_branch_probabilities): Set profile status
1860         only after reporting predictor hitrates.
1861
1862 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1863
1864         PR target/71276
1865         PR target/71277
1866         * common.opt (ffp-int-builtin-inexact): New option.
1867         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
1868         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
1869         (ceil@var{m}2): Document dependence on this option.
1870         * ipa-inline-transform.c (inline_call): Handle
1871         flag_fp_int_builtin_inexact.
1872         * ipa-inline.c (can_inline_edge_p): Likewise.
1873         * config/i386/i386.md (rintxf2): Do not test
1874         flag_unsafe_math_optimizations.
1875         (rint<mode>2_frndint): New define_insn.
1876         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
1877         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
1878         for 387 instead of extending and truncating.
1879         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
1880         !flag_trapping_math instead of flag_unsafe_math_optimizations.
1881         Change to frndint<mode>2_<rounding>.
1882         (frndintxf2_<rounding>_i387): Likewise.  Change to
1883         frndint<mode>2_<rounding>_i387.
1884         (<rounding_insn>xf2): Likewise.
1885         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
1886         !flag_trapping_math instead of flag_unsafe_math_optimizations for
1887         x87.  Test TARGET_ROUND || !flag_trapping_math ||
1888         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
1889         SSE.  Use ROUND_NO_EXC in constant operand of
1890         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
1891         for 387 instead of extending and truncating.
1892
1893 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
1894             Julia Koval  <julia.koval@intel.com>
1895
1896         PR target/66960
1897         PR target/67630
1898         PR target/67634
1899         PR target/67841
1900         PR target/68037
1901         PR target/68618
1902         PR target/68661
1903         PR target/69575
1904         PR target/69596
1905         PR target/69734
1906         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
1907         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
1908         all registers, except for function return registers if there are
1909         no caller-saved registers.
1910         (ix86_set_func_type): New function.
1911         (ix86_set_current_function): Call ix86_set_func_type to set
1912         no_caller_saved_registers and func_type.  Call reinit_regs if
1913         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
1914         nor x87 instructions in interrupt handler nor function with
1915         no_caller_saved_registers attribute.
1916         (ix86_function_ok_for_sibcall): Return false if there are no
1917         caller-saved registers.
1918         (type_natural_mode): Don't warn ABI change for MMX in interrupt
1919         handler.
1920         (ix86_function_arg_advance): Skip for callee in interrupt handler.
1921         (ix86_function_arg): Return special arguments in interrupt handler.
1922         (ix86_promote_function_mode): Promote pointer to word_mode only
1923         for normal functions.
1924         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
1925         interrupt handler.
1926         (ix86_epilogue_uses): New function.
1927         (ix86_hard_regno_scratch_ok): Likewise.
1928         (ix86_save_reg): Preserve all registers in interrupt handler
1929         after reload.  Preserve all registers, except for function return
1930         registers, if there are no caller-saved registers after reload.
1931         (find_drap_reg): Always use callee-saved register if there are
1932         no caller-saved registers.
1933         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
1934         for interrupt handler.
1935         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
1936         Emit cld instruction if stringops are used in interrupt handler
1937         or interrupt handler isn't a leaf function.
1938         (ix86_expand_epilogue): Generate interrupt return for interrupt
1939         handler and pop the 'ERROR_CODE' off the stack before interrupt
1940         return in exception handler.
1941         (ix86_expand_call): Disallow calling interrupt handler directly.
1942         If there are no caller-saved registers, mark all registers that
1943         are clobbered by the call which returns as clobbered.
1944         (ix86_handle_no_caller_saved_registers_attribute): New function.
1945         (ix86_handle_interrupt_attribute): Likewise.
1946         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
1947         attributes.
1948         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
1949         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
1950         accumulation in interrupt function if stack may be realigned to
1951         avoid DRAP.
1952         (EPILOGUE_USES): New.
1953         (function_type): New enum.
1954         (machine_function): Add func_type and no_caller_saved_registers.
1955         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
1956         (interrupt_return): New pattern.
1957         * doc/extend.texi: Document x86 interrupt and
1958         no_caller_saved_registers attributes.
1959
1960 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
1961
1962         PR tree-optimization/52171
1963         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
1964         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
1965         Look for constant strings.  Move some code to emit_block_cmp_hints
1966         and use it.
1967         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
1968         * defaults.h (COMPARE_MAX_PIECES): New macro.
1969         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
1970         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
1971         (clear_by_pieces_1): Don't declare.  Move definition before use.
1972         (can_do_by_pieces): New static function.
1973         (can_move_by_pieces): Use it.  Return bool.
1974         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
1975         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
1976         (class pieces_addr); New.
1977         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
1978         pieces_addr::adjust, pieces_addr::increment_address,
1979         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
1980         functions for it.
1981         (class op_by_pieces_d): New.
1982         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
1983         functions for it.
1984         (class move_by_pieces_d, class compare_by_pieces_d,
1985         class store_by_pieces_d): New subclasses of op_by_pieces_d.
1986         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
1987         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
1988         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
1989         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
1990         compare_by_pieces_d::finish_mode): New member functions.
1991         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
1992         functions.
1993         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
1994         (emit_block_cmp_hints): New function.
1995         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
1996         use the newly defined classes.
1997         * expr.h (by_pieces_constfn): New typedef.
1998         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
1999         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
2000         (move_by_pieces_ninsns): Don't declare.
2001         (can_move_by_pieces): Change return value to bool.
2002         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
2003         (compare_by_pieces_branch_ratio): New hook.
2004         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
2005         (by_pieces_ninsns): Declare.
2006         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
2007         COMPARE_BY_PIECES.
2008         (default_compare_by_pieces_branch_ratio): New function.
2009         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
2010         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
2011         * doc/tm.texi: Regenerate.
2012         * tree-ssa-strlen.c: Include "builtins.h".
2013         (handle_builtin_memcmp): New static function.
2014         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
2015         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
2016
2017 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
2018
2019         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
2020         relevant stmts which are simple and invariant.
2021         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
2022         instead of simple and invariant
2023
2024 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
2025
2026         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
2027         (vectorizable_reduction): Check for new relevant state.
2028         (vectorizable_live_operation): vectorize live stmts using
2029         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
2030         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
2031         (vect_stmt_relevant_p): Check for stmts which are only used live.
2032         (process_use): Use of a stmt does not inherit it's live value.
2033         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
2034         (vect_analyze_stmt): Check for new relevant state.
2035         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
2036         outside the loop, but not inside it.
2037
2038 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
2039
2040         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
2041         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
2042         (vect_get_vec_def_for_operand): Split out code.
2043
2044 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
2045
2046         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
2047
2048 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
2049
2050         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
2051
2052 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2053
2054         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
2055
2056 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
2057
2058         PR middle-end/71387
2059         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
2060         to noreturn e->callee->decl that has void return type and void
2061         arguments, adjust gimple_call_fntype and remove lhs even if it had
2062         previously addressable type.
2063
2064 2016-06-02  Jeff Law  <law@redhat.com>
2065
2066         PR tree-optimization/71328
2067         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
2068         error when checking for a jump back onto the copied path.
2069
2070 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
2071
2072         * config/microblaze/microblaze.c (get_branch_target): Add return
2073         NULL_RTX for the non-CALL_P case.
2074         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
2075         (insert_wic): Remove unused local "j".
2076
2077 2016-06-02  Martin Liska  <mliska@suse.cz>
2078
2079         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
2080
2081 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2082             Julia Koval  <julia.koval@intel.com>
2083
2084         * function.c (assign_parm_setup_stack): Force source into a
2085         register if needed.
2086         * target.def (function_incoming_arg): Update documentation to
2087         allow arbitrary address computation based on hard register.
2088         * doc/tm.texi: Regenerated.
2089
2090 2016-06-02  Martin Liska  <mliska@suse.cz>
2091
2092         * predict.c (combine_predictions_for_bb): Fix first match in
2093         cases where a first predictor contains more than one occurence
2094         in list of predictors.  Take the best value in such case.
2095
2096 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2097
2098         PR rtl-optimization/71295
2099         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
2100         offset would go over the size of the inner mode reject it.
2101
2102 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
2103
2104         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
2105         x=x,x and v=v,m instead of x=x,m.
2106
2107         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
2108         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
2109         alternative to v=rm,C.
2110
2111         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
2112         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
2113         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
2114         instead of vex for the last two above mentioned alternatives.
2115
2116 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2117
2118         PR target/70830
2119         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
2120
2121 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
2122
2123         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
2124
2125 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
2126
2127         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
2128         from int to unsigned.
2129
2130 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
2131
2132         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
2133         alternatives, eliminating preferred register class.  Add support
2134         for the MTVSRDD instruction in ISA 3.0.
2135         (vsx_splat_v4si_internal): Use splat_input_operand instead of
2136         reg_or_indexed_operand.
2137         (vsx_splat_v4sf_internal): Likewise.
2138
2139 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
2140
2141         PR target/71186
2142         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
2143         for loading up all 0's or all 1's.
2144
2145 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2146
2147         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
2148
2149 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
2150
2151         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
2152         extension.
2153         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
2154         * gcc.c (set_source_date_epoch_envvar): New function, sets
2155         the SOURCE_DATE_EPOCH environment variable to the current time.
2156
2157 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
2158
2159         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
2160         the factor for live Phi nodes.
2161
2162 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
2163
2164         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
2165         * tree-parloops.c (parallelize_loops): likewise.
2166         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
2167         tree_unswitch_outer_loop): likewise.
2168
2169 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
2170
2171         PR middle-end/71371
2172         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
2173         around creation of the temporary.
2174
2175 2016-06-01  Richard Biener  <rguenther@suse.de>
2176
2177         PR tree-optimization/71366
2178         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
2179         (unloop_loops): Move removing edges here ...
2180         (try_unroll_loop_completely): ... from here.
2181         (try_peel_loop): ... and here.
2182         (tree_unroll_loops_completely_1): Track parent loops via
2183         bitmap of header BBs.
2184         (tree_unroll_loops_completely): Adjust for that.
2185
2186 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2187
2188         * config/rs6000/altivec.h (vec_slv): New macro.
2189         (vec_srv): New macro.
2190         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
2191         (UNSPEC_VSRV): New value.
2192         (vslv): New insn.
2193         (vsrv): New insn.
2194         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
2195         (vsrv): New builtin definition.
2196         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
2197         define argument types for new builtin.
2198         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
2199         new builtin.
2200         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
2201         functions.
2202
2203 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
2204             Jocelyn Mayer  <l_indien@magic.fr>
2205
2206         PR target/67310
2207         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
2208         detect processor family for signature_CENTAUR_ebx.
2209         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
2210         signature_CENTAUR_ebx.
2211         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
2212         <default>: Pass x86-64 for has_longmode.
2213
2214 2016-06-01  Nathan Sidwell  <nathan@acm.org>
2215
2216         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
2217         undefined weak.
2218
2219 2016-06-01  Richard Biener  <rguenther@suse.de>
2220
2221         PR tree-optimization/71261
2222         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
2223         of stmts successfully put in the bool pattern.  Remove
2224         single-use restriction.
2225         (adjust_bool_pattern_cast): Add cast at the use site via the
2226         pattern def sequence.
2227         (adjust_bool_pattern): Remove recursion, maintain a hash-map
2228         of patterned defs.  Use the pattern def seqence instead of
2229         multiple independent patterns.
2230         (sort_after_uid): New qsort compare function.
2231         (adjust_bool_stmts): New function to process stmts in the bool
2232         pattern in IL order.
2233         (vect_recog_bool_pattern): Adjust.
2234         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
2235         (ifcvt_walk_pattern_tree): Likewise.
2236         (stmt_is_root_of_bool_pattern): Likewise.
2237         (ifcvt_repair_bool_pattern): Likewise.
2238         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
2239
2240 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
2241
2242         * loop-unroll.c (decide_unroll_constant_iterations,
2243         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
2244         likely upper bounds.
2245         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
2246
2247 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
2248
2249         * tree-core.h (enum omp_clause_code): Remove
2250         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
2251
2252 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2253
2254         * config/arm/sync.md (arm_store_exclusive<mode>):
2255         Use 'H' output modifier on operands[2] rather than creating a new
2256         entry in out-of-bounds memory of the operands array.
2257         (arm_store_release_exclusivedi): Likewise.
2258
2259 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2260
2261         * config/arm/arm.c (arm_fusion_enabled_p): New function.
2262         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
2263         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
2264         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
2265
2266 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
2267
2268         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
2269         into account live statements for mask producers.
2270
2271 2016-06-01  Richard Biener  <rguenther@suse.de>
2272
2273         PR tree-optimization/71311
2274         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
2275         restrict to non-INTEGER_CST @0.
2276
2277 2016-06-01  Richard Biener  <rguenther@suse.de>
2278
2279         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
2280         (relational patterns): Use :c to avoid pattern duplications.
2281
2282 2016-06-01  Richard Biener  <rguenther@suse.de>
2283
2284         * genmatch.c (comparison_code_p): New predicate.
2285         (swap_tree_comparison): New function.
2286         (commutate): Add for_vec parameter to append new for entries.
2287         Support commutating relational operators by swapping it alongside
2288         operands.
2289         (lower_commutative): Adjust.
2290         (dt_simplify::gen): Do not pass artificial operators to gen
2291         functions.
2292         (decision_tree::gen): Do not add artificial operators as parameters.
2293         (parser::parse_expr): Verify operator commutativity when :c is
2294         applied.  Allow :C to override this.
2295         * match.pd: Adjust patterns to use :C instead of :c where required.
2296
2297 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
2298
2299         PR tree-optimization/71077
2300         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
2301         the combining step, use boolean_false_node and boolean_true_node
2302         as the designated false/true return values.
2303
2304 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
2305
2306         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
2307         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
2308         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
2309         PRED_LOOP_EXIT.
2310
2311 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
2312
2313         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
2314         of flags impliying the register renaming.
2315         * toplev.c (process_options): Do not imply flag_rename_registers with
2316         loop peeling.
2317
2318 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2319
2320         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
2321         default implementation.
2322
2323 2016-05-31  Nathan Sidwell  <nathan@acm.org>
2324
2325         * dwarf2out.c (cur_line_info_table): Add GTY marker.
2326
2327 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2328
2329         * config/sh/constraints.md (b): Remove constraint.
2330         * config/sh/predicates.md (arith_reg_operand): Remove
2331         TARGET_REGISTER_P.
2332         * config/sh/sh-modes.def (PDI): Remove.
2333         * config/sh/sh.c (sh_target_reg_class,
2334         sh_optimize_target_register_callee_saved): Remove functions.
2335         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
2336         (sh_expand_epilogue): Update comment.
2337         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
2338         sh_secondary_reload): Remove TARGET_REGS related code.
2339         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
2340         TARGET_REGISTER_P): Remove macros.
2341         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
2342         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
2343         TR1_REG, TR2_REG): Remove constants.
2344         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
2345
2346 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2347
2348         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
2349         define_expand patterns.
2350         (adddi3_compact): Rename to adddi3.
2351         (subdi3_compact): Rename to subdi3.
2352         (*negdi2): Rename to negdi2.
2353         (*abs<mode>2): Rename to abs<mode>2.
2354
2355 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2356
2357         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
2358         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
2359         (atomic_sub_fetchsi): ... this new pattern.
2360         (mvtc): Add CC_REG clobber.
2361
2362 2016-05-31  Marek Polacek  <polacek@redhat.com>
2363
2364         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
2365
2366 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2367
2368         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
2369         aarch64_fusion_enabled_p to check for fusion capabilities.
2370
2371 2016-05-31  Richard Biener  <rguenther@suse.de>
2372
2373         PR tree-optimization/71352
2374         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
2375         minus one and a negate.
2376
2377 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2378
2379         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
2380         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
2381         Delete prototype.
2382         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
2383         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
2384         Remove use of aarch64_simd_attr_length_move, set length attribute
2385         directly.
2386         (*aarch64_be_movoi): Likewise.
2387         (*aarch64_be_movci): Likewise.
2388         (*aarch64_be_movxi): Likewise.
2389
2390 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
2391
2392         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
2393         It no longer does that.
2394         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
2395
2396 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
2397
2398         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
2399         attribute __unused__.
2400
2401 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2402
2403         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
2404         * config/arm/arm.c (arm_arch_thumb1): Define.
2405         (arm_option_override): Initialize arm_arch_thumb1.
2406         * config/arm/arm.h (arm_arch_thumb1): Declare.
2407         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
2408         support Thumb-1 ISA.
2409
2410 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
2411
2412         PR target/71346
2413         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
2414         `Yv' for scalar operand.
2415
2416 2016-05-31  Tom de Vries  <tom@codesourcery.com>
2417
2418         PR tree-optimization/69068
2419         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
2420         phis with more than two args.
2421
2422 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
2423
2424         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
2425         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
2426         target.
2427
2428 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
2429
2430         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
2431         tune_64.
2432         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
2433         support on SPARC.
2434         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
2435         cpu_32, cpu_64, tune_32 and tune_64.
2436         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
2437
2438 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
2439
2440         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
2441
2442 2016-05-30  Andi Kleen  <ak@linux.intel.com>
2443
2444         * auto-profile.c (read_profile): Replace asserts with errors
2445         when file does not exist.
2446         * gcov-io.c (gcov_read_words): Dito.
2447
2448 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2449
2450         * tree-cfg.c (print_loop): Print likely upper bounds.
2451
2452 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2453
2454         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
2455         * opts.c (default_options): Enable peel loops at -O3.
2456         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
2457         (try_peel_loop): Do not re-peel already peeled loops;
2458         use likely upper bounds; fix profile updating.
2459         (pass_complete_unroll::execute): Initialize peeled_loops.
2460
2461 2016-05-30  Martin Liska  <mliska@suse.cz>
2462
2463         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
2464         computed costs by frequency of BB they belong to.
2465         (get_scaled_computation_cost_at): New function.
2466
2467 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
2468             Marc Glisse  <marc.glisse@inria.fr>
2469
2470         PR tree-optimization/71289
2471         * match.pd (-1 / B < A, A > -1 / B): New transformations.
2472
2473 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2474
2475         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
2476
2477 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2478
2479         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
2480         for peeled copies; avoid underflow when updating estimates; correctly
2481         scale loop profile.
2482
2483 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
2484
2485         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
2486         r236875. Corrected oe3 to oe2 as obvious.
2487
2488 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
2489
2490         PR middle-end/71269
2491         PR middle-end/71252
2492         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
2493         that inserted stmt will not dominate stmts that defines its operand.
2494         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
2495         (rewrite_expr_tree_parallel): Likewise.
2496
2497 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
2498
2499         PR middle-end/71252
2500         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
2501         all fields including stmt_to_insert are swapped.
2502
2503 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2504
2505         * predict.h (force_edge_cold): Declare.
2506         * predict.c (force_edge_cold): New function.
2507         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
2508         updating.
2509         (canonicalize_loop_induction_variables): Fix formating.
2510
2511 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
2512
2513         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
2514         (visium_expand_copysign): Use gen_int_mode directly.
2515         (visium_compute_frame_size): Minor tweaks.
2516
2517 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2518
2519         * tree-vect-loop.c (vect_analyze_loop_2): Use
2520         likely_max_stmt_executions_int.
2521
2522 2016-05-30  Tom de Vries  <tom@codesourcery.com>
2523
2524         PR tree-optimization/69067
2525         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
2526
2527 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
2528
2529         PR target/71245
2530         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
2531         New peepholes to remove unneeded fild/fistp pairs.
2532         (define_peephole2 atomic_loaddi_fpu): Ditto.
2533
2534 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2535
2536         * predict.c (maybe_hot_frequency_p): Avoid division.
2537
2538 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
2539
2540         * doc/install.texi: Use https for shop.fsf.org.
2541
2542 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2543
2544         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
2545         likely_max_stmt_executions_int.
2546
2547 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2548
2549         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
2550         likely_max_stmt_executions_int.
2551
2552 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2553
2554         * profile.c (compute_branch_probabilities): Do not report hitrates
2555         here.
2556         (branch_prob): Report hitrates here.
2557         * predict.c (gimple_predict_edge): Do not assert profile status;
2558         fix formatting issues.
2559
2560 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2561
2562         * predict.c (edge_predicted_by_p): New function.
2563         (predict_paths_for_bb): Do not put multiple predictions of the same type
2564         on one edge.
2565
2566 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2567
2568         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
2569         commit.
2570
2571 2016-05-28  Alan Modra  <amodra@gmail.com>
2572
2573         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
2574
2575 2016-05-28  Alan Modra  <amodra@gmail.com>
2576
2577         PR rtl-optimization/71275
2578         * ira.c (ira): Free dominance info.
2579
2580 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
2581
2582         * doc/sourcebuild.texi: New address for upstream Go repository.
2583
2584 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2585
2586         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
2587         (TARGET_ARM_V7M): Likewise.
2588
2589 2016-05-26  Jeff Law  <law@redhat.com>
2590
2591         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
2592         (thread_across_edge): Remove calls to find_jump_threads_backwards.
2593         * passes.def: Add jump threading passes before DOM/VRP.
2594         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
2595         argument to a basic block from an edge.  Remove tests which are
2596         handled elsewhere.
2597         (pass_data_thread_jumps, class pass_thread_jumps): New.
2598         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
2599         (make_pass_thread_jumps): Likewise.
2600         * tree-pass.h (make_pass_thread_jumps): Declare.
2601
2602 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
2603
2604         * config/visium/visium-protos.h (split_double_move): Rename into...
2605         (visium_split_double_move): ...this.
2606         (visium_split_double_add): Declare.
2607         * config/visium/visium.c (split_double_move): Rename into...
2608         (visium_split_double_move): ...this.
2609         (visium_split_double_add): New function.
2610         (visium_expand_copysign): Renumber operands for consistency.
2611         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
2612         (DFmode move splitter): Likewise.
2613         (*addi3_insn): Split by means of visium_split_double_add.
2614         (*adddi3_insn_flags): Delete.
2615         (*plus_plus_sltu<subst_arith>): New insn.
2616         (*subdi3_insn): Split by means of visium_split_double_add.
2617         (subdi3_insn_flags): Delete.
2618         (*minus_minus_sltu<subst_arith>): New insn.
2619         (*negdi2_insn): Split by means of visium_split_double_add.
2620         (*negdi2_insn_flags): Delete.
2621
2622 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
2623
2624         * configure.ac: Treat a --with-headers option without argument
2625         the same as the default (i.e. consult sys-include directory).
2626         * configure: Regenerate.
2627
2628 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2629
2630         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
2631         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
2632         prototype.
2633         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
2634         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
2635
2636 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
2637
2638         PR target/63596
2639         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
2640         tree-stdarg analysis results.
2641         (aarch64_setup_incoming_varargs): Likewise.
2642
2643 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
2644
2645         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
2646         va_list_gpr_counter_field and va_list_fpr_counter_field.
2647
2648 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
2649
2650         PR67609
2651         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
2652         * config/aarch64/aarch64.c
2653         (aarch64_cannot_change_mode_class): Remove function.
2654         * config/aarch64/aarch64-protos.h
2655         (aarch64_cannot_change_mode_class): Remove.
2656
2657 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2658
2659         * cfgloop.c (record_niter_bound): Record likely upper bounds.
2660         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
2661         get_likely_max_loop_iterations_int): New.
2662         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
2663         any_likely_upper_bound.
2664         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
2665         Declare.
2666         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
2667         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
2668         upper bound.
2669         (unroll_loop_constant_iterations): Likewise.
2670         (unroll_loop_runtime_iterations): Likewise.
2671         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
2672         * lto-streamer-out.c (output_cfg): Likewise.
2673         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
2674         bounds.
2675         (canonicalize_loop_induction_variables): Dump likely upper bounds.
2676         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
2677         (likely_max_loop_iterations): New.
2678         (likely_max_loop_iterations_int): New.
2679         (likely_max_stmt_executions): New.
2680         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
2681         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
2682         likely_max_stmt_executions): Declare.
2683
2684 2016-05-27  Marek Polacek  <polacek@redhat.com>
2685
2686         PR middle-end/71308
2687         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
2688
2689 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2690
2691         * config/s390/s390.md (2x risbg splitters): Use
2692         reg_overlap_mentioned_p instead of rtx_equal_p.
2693
2694 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2695
2696         * combine.c (make_compound_operation): Take known zero bits into
2697         account when checking for possible zero_extend.
2698
2699 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2700
2701         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
2702         Use const_int_operand for operand 2 predicate.  Simplify expand code
2703         as a result.
2704
2705 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
2706
2707         PR middle-end/71279
2708         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
2709         into comparison.
2710
2711 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2712
2713         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
2714         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
2715         that returns CC_SESWPmode and CC_ZESWPmode.
2716         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
2717         and CC_SESWPmode.
2718         (aarch64_rtx_costs): Likewise.
2719
2720 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2721
2722         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
2723         for ISA 3.0 min/max support.
2724         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
2725         conditional move support.
2726         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
2727         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
2728         available.
2729         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
2730         conditional moves where the comparison type is different from move
2731         type.
2732         (fp_minmax): New code iterator for smin/smax.
2733         (minmax): New code attributes for min/max.
2734         (SMINMAX): Likewise.
2735         (smax<mode>3): Combine min, max insns into one insn using the
2736         fp_minmax code iterator.  Add support for ISA 3.0 min/max
2737         instructions that don't need -ffast-math.
2738         (s<minmax><mode>3): Likewise.
2739         (smax<mode>3_vsx): Likewise.
2740         (smin<mode>3): Likewise.
2741         (s<minmax><mode>3_vsx): Likewise.
2742         (smin<mode>3_vsx): Likewise.
2743         (pre-VSX min/max splitters): Likewise.
2744         (s<minmax><mode>3_fpr): Likewise.
2745         (movsfcc): Rewrite floating point conditional moves to combine
2746         SFmode/DFmode into a single insn.
2747         (mov<mode>cc): Likewise.
2748         (movdfcc): Likewise.
2749         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
2750         SFDF2 iterators to handle all combinations.
2751         (fseldfsf4): Likewise.
2752         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
2753         (fseldfdf4): Likewise.
2754         (fselsfdf4): Likewise.
2755         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
2756         comparison instructions that set a 0/-1 mask, and use it for
2757         floating point conditional move via XXSEL.
2758         (fpmask<mode>): Likewise.
2759         (xxsel<mode>): Likewise.
2760         * config/rs6000/predicates.md (min_max_operator): Delete, no
2761         longer used.
2762         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
2763         instructions that generate a 0/-1 mask for use with XXSEL.
2764         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
2765         say whether floating point min/max is available, either through
2766         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
2767         (TARGET_MINMAX_DF): Likewise.
2768
2769 2016-05-27  Alan Modra  <amodra@gmail.com>
2770
2771         PR rtl-optimization/71275
2772         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
2773         for update_equiv_regs and combine_and_move_insns.
2774
2775 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
2776
2777         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
2778         if_then_else or cond RTXes to calculate attribute value.
2779         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
2780         <attr "length_immediate>: Ditto.
2781         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
2782         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
2783         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
2784         <attr "type">: Ditto.
2785         <attr "prefix_data16">: Ditto.
2786         <attr "prefix_extra">: Ditto.
2787         <attr "length_immediate">: Ditto.
2788         <attr "prefix">: Ditto.
2789         (vec_set<mode>_0) <attr "isa">: Ditto.
2790         <attr "prefix_extra">: Ditto.
2791         <attr "length_immediate">: Ditto.
2792         <attr "prefix">: Ditto.
2793         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
2794         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
2795         (sse2_storelpd) <attr "prefix_data16">: Ditto.
2796         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
2797         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
2798         <attr "length_immediate">: Ditto.
2799         <attr "prefix">: Ditto.
2800         (sse2_movsd) <attr "length_immediate">: Ditto.
2801         <attr "prefix">: Ditto.
2802         (vec_concatv2df)  <attr "isa">: Ditto.
2803         <attr "prefix">: Ditto.
2804         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
2805         (*vec_extractv2di_1) <attr "isa">: Ditto.
2806         <attr "type">: Ditto.
2807         <attr "length_immediate">: Ditto.
2808         <attr "prefix_rex">: Ditto.
2809         <attr "prefix_extra">: Ditto.
2810         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
2811         <attr "prefix_extra">: Ditto.
2812         <attr "length_immediate">: Ditto.
2813         (vec_concatv2di) <attr "isa">: Ditto.
2814         <attr "prefix_extra">: Ditto.
2815         <attr "length_immediate">: Ditto.
2816         <attr "prefix">: Ditto.
2817
2818 2016-05-26  Martin Liska  <mliska@suse.cz>
2819
2820         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
2821         function.
2822         (operator+): Likewise.
2823         (operator-): Likewise.
2824         (comp_cost::operator+=): Likewise.
2825         (comp_cost::operator-=): Likewise.
2826         (comp_cost::operator/=): Likewise.
2827         (comp_cost::operator*=): Likewise.
2828         (operator<): Likewise.
2829         (operator==): Likewise.
2830         (operator<=): Likewise.
2831         (new_cost): Remove.
2832         (infinite_cost_p): Likewise.
2833         (add_costs): Likewise.
2834         (sub_costs): Likewise.
2835         (compare_costs): Likewise.
2836         (set_group_iv_cost): Use the newly introduced functions.
2837         (get_address_cost): Likewise.
2838         (get_shiftadd_cost): Likewise.
2839         (force_expr_to_var_cost): Likewise.
2840         (split_address_cost): Likewise.
2841         (ptr_difference_cost): Likewise.
2842         (difference_cost): Likewise.
2843         (get_computation_cost_at): Likewise.
2844         (determine_group_iv_cost_generic): Likewise.
2845         (determine_group_iv_cost_address): Likewise.
2846         (determine_group_iv_cost_cond): Likewise.
2847         (autoinc_possible_for_pair): Likewise.
2848         (determine_group_iv_costs): Likewise.
2849         (cheaper_cost_pair): Likewise.
2850         (iv_ca_recount_cost): Likewise.
2851         (iv_ca_set_no_cp): Likewise.
2852         (iv_ca_set_cp): Likewise.
2853         (iv_ca_cost): Likewise.
2854         (iv_ca_new): Likewise.
2855         (iv_ca_dump): Likewise.
2856         (iv_ca_narrow): Likewise.
2857         (iv_ca_prune): Likewise.
2858         (iv_ca_replace): Likewise.
2859         (try_add_cand_for): Likewise.
2860         (try_improve_iv_set): Likewise.
2861         (find_optimal_iv_set): Likewise.
2862
2863 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
2864
2865         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
2866         that internal functions will clobber all caller-saved registers.
2867
2868 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
2869
2870         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
2871         Return a better case_values_threshold when optimizing.
2872
2873 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
2874
2875         * config/aarch64/aarch64-simd.md (aarch64_combinez):
2876         Add ? to integer variant.
2877         (aarch64_combinez_be): Likewise.
2878
2879 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
2880
2881         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
2882         instead of x constraint.
2883         (vcvtps2ph256<mask_name>): Likewise.
2884
2885         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
2886         alternative.  Formatting fix.
2887
2888         * config/i386/sse.md
2889         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
2890         to ...
2891         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
2892         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
2893         maybe_evex prefix instead of vex.
2894         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
2895         EXT_REX_SSE_REG_P (op0) case in the splitter.
2896
2897 2016-05-25  Jeff Law  <law@redhat.com>
2898
2899         PR tree-optimization/71272
2900         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
2901         Update comments.  Add test for empty path.
2902
2903 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
2904
2905         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
2906         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
2907         special case builtin.
2908         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
2909         code for ALTIVEC_BUILTIN_VEC_CMPNE.
2910         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
2911         for __builtin_vec_cmpne.
2912
2913 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
2914
2915         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
2916         redundant test and bail out if the type of the new operand is not
2917         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
2918
2919 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
2920
2921         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
2922         (x_ix86_target_flags_explicit): Remove.
2923         * config/i386/i386.c (ix86_function_specific_save): Do not copy
2924         x_ix86_target_flags_explicit.
2925         (ix86_function_specific_restore): Ditto.
2926
2927 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
2928             H.J. Lu  <hongjiu.lu@intel.com>
2929
2930         PR target/70738
2931         * common/config/i386/i386-common.c
2932         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
2933         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
2934         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
2935         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
2936         (-mgeneral-regs-only): Add new option.
2937         * config/i386/i386.c (ix86_option_override_internal): Don't enable
2938         x87 instructions if only general registers are allowed.
2939         (ix86_target_string): Add ix86_flags argument. Handle additional
2940         flags options through ix86_flags argument.  Update all callers.
2941         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
2942
2943 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2944
2945         PR rtl-optimization/66940
2946         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
2947         decrementing desired_val will not overflow before performing these
2948         operations.
2949
2950 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
2951
2952         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
2953         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
2954         * config/i386/i386.c (enum ix86_builtins): Add
2955         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
2956         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
2957         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
2958         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
2959         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
2960         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
2961         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
2962         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
2963         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
2964         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
2965         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
2966         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
2967         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
2968         __builtin_ia32_cvtps2dq512_mask.
2969         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
2970         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
2971         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
2972         * config/i386/sse.md
2973         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
2974         Rename to ...
2975         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
2976         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
2977         to ...
2978         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
2979         (avx512f_vec_pack_sfix_v8df): New define_expand.
2980         (avx512f_roundpd512): Rename to ...
2981         (avx512f_round<castmode>512): ... this.  Change iterator.
2982         (avx512f_roundps512_sfix): New define_expand.
2983         (round<mode>2_sfix): Change iterator.
2984
2985 2016-05-25  Nick Clifton  <nickc@redhat.com>
2986
2987         * config/msp430/msp430.c (msp430_attr): Produce an error if a
2988         static interrupt handler is detected.
2989         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
2990         default linker script.
2991         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
2992         the low part of a symbolic pointer.
2993
2994 2016-05-25  Richard Biener  <rguenther@suse.de>
2995
2996         PR tree-optimization/71261
2997         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
2998         interesting stmt instead of immediate uses when looking
2999         for the use operand to replace.
3000
3001 2016-05-25  Martin Liska  <mliska@suse.cz>
3002
3003         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
3004
3005 2016-05-25  Richard Biener  <rguenther@suse.de>
3006
3007         PR tree-optimization/71264
3008         * tree-vect-stmts.c (vect_init_vector): Properly deal with
3009         vector type val.
3010
3011 2016-05-25  Martin Liska  <mliska@suse.cz>
3012
3013         PR tree-optimization/71239
3014         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
3015         if DECL_SIZE is NULL.
3016
3017 2016-05-25  Richard Biener  <rguenther@suse.de>
3018
3019         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
3020         * tree-if-conv.c (pass_data_if_conversion): Use it.
3021
3022 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3023
3024         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
3025         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
3026         * varpool.c (varpool_node::get_availability): Likewise.
3027
3028 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3029
3030         * config/rs6000/altivec.md (VNEG iterator): New iterator for
3031         VNEGW/VNEGD instructions.
3032         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
3033         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
3034         support for ISA 3.0 VNEGW/VNEGD instructions.
3035
3036 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
3037
3038         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
3039         pointers inside OACC_DATA regions.
3040         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
3041         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
3042         (gimplify_adjust_omp_clauses): Fix typo in comment.
3043
3044 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3045
3046         * config/rs6000/altivec.md (VParity): New mode iterator for vector
3047         parity built-in functions.
3048         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
3049         zeros.
3050         (p9v_parity<mode>2): Likewise.
3051         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
3052         parity.
3053         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
3054         (parity<mode>2): ISA 3.0 expander for vector parity.
3055         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
3056         power9 built-ins.
3057         (BU_P9_64BIT_MISC_0): Likewise.
3058         (BU_P9_MISC_0): Likewise.
3059         (BU_P9V_AV_1): Likewise.
3060         (BU_P9V_AV_2): Likewise.
3061         (BU_P9V_AV_3): Likewise.
3062         (BU_P9V_AV_P): Likewise.
3063         (BU_P9V_VSX_1): Likewise.
3064         (BU_P9V_OVERLOAD_1): Likewise.
3065         (BU_P9V_OVERLOAD_2): Likewise.
3066         (BU_P9V_OVERLOAD_3): Likewise.
3067         (VCTZB): Add vector count trailing zeros support.
3068         (VCTZH): Likewise.
3069         (VCTZW): Likewise.
3070         (VCTZD): Likewise.
3071         (VPRTYBD): Add vector parity support.
3072         (VPRTYBQ): Likewise.
3073         (VPRTYBW): Likewise.
3074         (VCTZ): Add overloaded vector count trailing zeros support.
3075         (VPRTYB): Add overloaded vector parity support.
3076         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3077         overloaded vector count trailing zeros and parity instructions.
3078         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
3079         vector parity support.
3080         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
3081         trailing zeros support.
3082         (vec_cntlz): Likewise.
3083         (vec_vctzb): Likewise.
3084         (vec_vctzd): Likewise.
3085         (vec_vctzh): Likewise.
3086         (vec_vctzw): Likewise.
3087         (vec_vprtyb): Add ISA 3.0 vector parity support.
3088         (vec_vprtybd): Likewise.
3089         (vec_vprtybw): Likewise.
3090         (vec_vprtybq): Likewise.
3091         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3092         the ISA 3.0 vector count trailing zeros and vector parity built-in
3093         functions.
3094
3095 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
3096
3097         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
3098         when there is stmt_to_insert.
3099
3100 2016-05-24  Martin Sebor  <msebor@redhat.com>
3101
3102         PR c++/71147
3103         * tree.h (complete_or_array_type_p): New inline function.
3104
3105 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
3106
3107         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
3108         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
3109         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
3110
3111         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
3112         Limit 1st alternative to noavx isa, split 2nd alternative into one
3113         noavx and one avx alternative, use *x and Bm in the former and
3114         x and m in the latter.
3115
3116         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
3117         of sse4 for the first alternative, drop %v from the template
3118         and d operand modifier.  Split second alternative into one sse4_noavx
3119         and one avx alternative, use *x instead of *v in the former and v
3120         instead of *v in the latter.
3121         (*sse4_1_extractps): Use noavx isa instead of * for the first
3122         alternative, drop %v from the template.  Split second alternative into
3123         one noavx and one avx alternative, use *x instead of *v in the
3124         former and v instead of *v in the latter.
3125         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
3126         with noavx and the last one with avx.
3127         (sse4_1_phminposuw): Guard first alternative with noavx isa,
3128         split the second one into one noavx and one avx alternative,
3129         use *x and Bm in the former and x and m in the latter one.
3130         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
3131         alternatives.
3132
3133         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
3134         first two alternatives to noavx, use *x instead of *v in the second
3135         one, add avx alternative without *.
3136         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
3137         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
3138         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
3139
3140 2016-05-24  Jeff Law  <law@redhat.com>
3141
3142         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
3143         New function, extracted from...
3144         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
3145         Allow simple copies and constant initializations in the SSA chain.
3146
3147 2016-05-24  Marek Polacek  <polacek@redhat.com>
3148
3149         PR c/71249
3150         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
3151         scope.
3152
3153 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
3154
3155         PR c++/71257
3156         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
3157         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
3158         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
3159         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
3160         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
3161
3162 2016-05-24  Richard Biener  <rguenther@suse.de>
3163
3164         PR tree-optimization/71240
3165         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
3166         has integral type.
3167
3168 2016-05-24  Richard Biener  <rguenther@suse.de>
3169
3170         PR tree-optimization/71230
3171         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
3172
3173 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
3174
3175         * tree-vectorizer.h (vectorizable_comparison): Delete.
3176         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
3177         PURE_SLP_STMT check.
3178         * tree-vect-stmts.c (vectorizable_call): Likewise.
3179         (vectorizable_simd_clone_call): Likewise.
3180         (vectorizable_conversion): Likewise.
3181         (vectorizable_assignment): Likewise.
3182         (vectorizable_shift): Likewise.
3183         (vectorizable_operation): Likewise.
3184         (vectorizable_load): Likewise.
3185         (vectorizable_condition): Likewise.
3186         (vectorizable_store): Likewise.  Assert that we don't have
3187         hybrid SLP.
3188         (vectorizable_comparison): Make static.  Remove redundant
3189         PURE_SLP_STMT check.
3190         (vect_transform_stmt): Assert that we always have an slp_node
3191         if PURE_SLP_STMT.
3192
3193 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3194
3195         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
3196         operands[2] against 1 with comparison against CONST1_RTX.
3197         (<shift>di3_neon): Likewise.
3198         * config/arm/predicates.md (const0_operand): Replace with comparison
3199         against CONST0_RTX.
3200
3201 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3202
3203         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
3204         operands[2] against 1 with comparison against CONST1_RTX.
3205         (ashrdi3): Likewise.
3206         (lshrdi3): Likewise.
3207         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
3208         UINTVAL.
3209         (ashrsi3): Likewise.
3210         (lshrsi3): Likewise.
3211         (rotrsi3): Likewise.
3212         (define_split above *compareqi_eq0): Likewise.
3213         (define_split above "prologue"): Likewise.
3214         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
3215         * config/arm/predicates.md (shift_operator): Likewise.
3216         (shift_nomul_operator): Likewise.
3217         (sat_shift_operator): Likewise.
3218         (thumb1_cmp_operand): Likewise.
3219         (const_neon_scalar_shift_amount_operand): Replace manual range
3220         check with IN_RANGE.
3221         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
3222         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
3223
3224 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3225
3226         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
3227         with HOST_WIDE_INT_1.
3228         (insv): Likewise.
3229         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
3230         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
3231         (arm_canonicalize_comparison): Likewise.
3232         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
3233         HOST_WIDE_INT_1.
3234         (thumb1_size_rtx_costs): Likewise.
3235         (vfp_const_double_index): Replace cast of 1 to unsigned
3236         HOST_WIDE_INT with HOST_WIDE_INT_1U.
3237         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
3238         HOST_WIDE_INT_1.
3239         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
3240         HOST_WIDE_INT with HOST_WIDE_INT_1U.
3241         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
3242         HOST_WIDE_INT with HOST_WIDE_INT_1.
3243
3244 2016-05-24  Marek Polacek  <polacek@redhat.com>
3245
3246         * tree-cfg.h (should_remove_lhs_p): New predicate.
3247         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
3248         * gimplify.c (gimplify_modify_expr): Likewise.
3249         * tree-cfg.c (verify_gimple_call): Likewise.
3250         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
3251         * gimple-fold.c: Include "tree-cfg.h".
3252         (gimple_fold_call): Use should_remove_lhs_p.
3253
3254 2016-05-24  Richard Biener  <rguenther@suse.de>
3255
3256         PR tree-optimization/71253
3257         * cfganal.h (control_dependences): Make robust against edge
3258         and BB removal.
3259         (control_dependences::control_dependences): Remove edge_list argument.
3260         (control_dependences::get_edge): Remove.
3261         (control_dependences::get_edge_src): Add.
3262         (control_dependences::get_edge_dest): Likewise.
3263         (control_dependences::m_el): Make a vector of edge src/dest index.
3264         * cfganal.c (control_dependences::find_control_dependence): Adjust.
3265         (control_dependences::control_dependences): Likewise.
3266         (control_dependences::~control_dependence): Likewise.
3267         (control_dependences::get_edge): Remove.
3268         (control_dependences::get_edge_src): Add.
3269         (control_dependences::get_edge_dest): Likewise.
3270         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
3271         get_edge_src.
3272         (perform_tree_ssa_dce): Adjust.
3273         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
3274         get_edge_src.
3275         (pass_loop_distribution::execute): Adjust.  Do loop destroying
3276         conditional on changed.
3277
3278 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3279
3280         PR target/69857
3281         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
3282         return.  Reindent transformation comment and mention the ARM state
3283         behavior.
3284
3285 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
3286
3287         PR middle-end/71252
3288         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
3289         after build_and_add_sum creates new use stmt.
3290
3291 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
3292
3293         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
3294         load_lanes/grouped_load classification comes first.  Don't check
3295         whether the vectorization factor is a multiple of the group size
3296         for load_lanes.
3297
3298 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
3299
3300         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
3301         GROUP_GAP for single-element interleaving.
3302         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
3303         variable.
3304
3305 2016-05-24  Richard Biener  <rguenther@suse.de>
3306
3307         PR middle-end/70434
3308         PR c/69504
3309         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
3310         bases which are accessed with non-invariant indices.
3311         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
3312         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
3313
3314 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
3315
3316         PR middle-end/71170
3317         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
3318         (add_to_ops_vec): Add stmt_to_insert.
3319         (add_repeat_to_ops_vec): Init stmt_to_insert.
3320         (insert_stmt_before_use): New.
3321         (transform_add_to_multiply): Remove mult_stmt insertion and add it
3322         to ops vector.
3323         (get_ops): Init stmt_to_insert.
3324         (maybe_optimize_range_tests): Likewise.
3325         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
3326         (rewrite_expr_tree_parallel): Likewise.
3327         (reassociate_bb): Likewise.
3328
3329 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3330
3331         PR target/71201
3332         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
3333         ISA 3.0 xxperm fusion alternative.
3334         (altivec_vperm_v8hiv16qi): Likewise.
3335         (altivec_vperm_<mode>_uns_internal): Likewise.
3336         (vperm_v8hiv4si): Likewise.
3337         (vperm_v16qiv8hi): Likewise.
3338
3339 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3340             Kelvin Nilsen  <kelvin@gcc.gnu.org>
3341
3342         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
3343         vpermr/xxpermr on ISA 3.0.
3344         (altivec_expand_vec_perm_le): Likewise.
3345         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
3346         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
3347         ISA 3.0.
3348
3349 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
3350
3351         * config/i386/i386.h (IS_STACK_MODE): Enable for
3352         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
3353         SSE_FLOAT_MODE_P macros.
3354         * config/i386/i386.c (ix86_preferred_reload_class): Use
3355         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
3356         Cleanup regclass processing for CONST_DOUBLE_P.
3357         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
3358         (ix86_rtx_costs): Remove redundant TARGET_80387 check
3359         with IS_STACK_MODE macro.
3360         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
3361         with TARGET_SSE2.
3362         (*movdf_internal): Use IS_STACK_MODE macro.
3363         (*movsf_internal): Ditto.
3364
3365 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
3366
3367         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
3368         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
3369
3370 2016-05-23  Jeff Law  <law@redhat.com>
3371
3372         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
3373         extracted from ...
3374         (fsm_find_control_statement_thread_paths): Call it.
3375
3376 2016-05-23  Martin Jambor  <mjambor@suse.cz>
3377
3378         PR ipa/71234
3379         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
3380         from_global_constant if t is not NULL.
3381
3382 2016-05-23  Marek Polacek  <polacek@redhat.com>
3383
3384         PR c/49859
3385         * common.opt (Wswitch-unreachable): New option.
3386         * doc/invoke.texi: Document -Wswitch-unreachable.
3387         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
3388         warning.
3389
3390 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
3391
3392         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
3393         TMR_INDEX is non-NULL.
3394
3395 2016-05-23  Richard Biener  <rguenther@suse.de>
3396
3397         PR tree-optimization/71230
3398         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
3399         (try_special_add_to_ops): ... here.  Always test for single-use.
3400
3401 2016-05-23  Martin Jambor  <mjambor@suse.cz>
3402
3403         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
3404         default block if a PHI node in the original one would be resized.
3405
3406 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3407
3408         PR tree-optimization/58135
3409         * tree-vect-slp.c: When group size is not multiple
3410         of vector size, allow splitting of store group at
3411         vector boundary.
3412
3413 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
3414
3415         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
3416
3417 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
3418
3419         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
3420         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
3421         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
3422         of 64x2.
3423
3424         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
3425         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
3426         v constraint instead of x and vinserti32x4 insn.
3427
3428         * config/i386/sse.md (i128vldq): New mode iterator.
3429         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
3430         avx512dq and avx512vl alternatives.
3431
3432         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
3433         constraint, use maybe_evex prefix instead of vex.
3434         (vec_dupv4sf): Use v constraint instead of x for output
3435         operand except for noavx alternative, use Yv constraint
3436         instead of x for input.  Use maybe_evex prefix instead of vex.
3437         (*vec_dupv4si): Likewise.
3438         (*vec_dupv2di): Likewise.
3439
3440 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
3441
3442         PR middle-end/40921
3443         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
3444         (linearize_expr_tree): Call try_special_add_to_ops.
3445         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
3446
3447 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3448
3449         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
3450         to computed stack_usage.
3451
3452 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3453
3454         PR target/71103
3455         * config/avr/avr.md (define_expand "mov<mode>"): If the source
3456         operand is subreg (symbol_ref) then move the symbol ref to register.
3457
3458 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
3459
3460         * tree.c (array_at_struct_end_p): Look through MEM_REF.
3461
3462 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
3463
3464         PR middle-end/71179
3465         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
3466         VECTOR type.
3467
3468 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
3469
3470         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
3471         ranges by calling get_single_symbol and tidy up.  Look more closely
3472         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
3473
3474 2016-05-20  Jeff Law  <law@redhat.com>
3475
3476         * bitmap.c (bitmap_find_bit): Remove useless test.
3477
3478 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
3479
3480         * function.c (thread_prologue_and_epilogue_insns): Commit the
3481         insertion of the epilogue.
3482
3483 2016-05-20  Martin Jambor  <mjambor@suse.cz>
3484
3485         PR tree-optimization/70884
3486         * tree-sra.c (initialize_constant_pool_replacements): Do not check
3487         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
3488         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
3489         of constant pool data as a reason for scalarization.
3490
3491 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
3492
3493         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
3494         for naked functions.
3495         (thumb1_expand_prologue): Likewise.
3496
3497 2016-05-20  Nathan Sidwell  <nathan@acm.org>
3498
3499         * config/nvptx/nptx.c (nvptx_option_override): Only set
3500         flag_toplevel_reorder, if not explicitly specified.  Set
3501         flag_no_common, unless explicitly specified.
3502
3503 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
3504
3505         * calls.c (can_implement_as_sibling_call_p): Mark param
3506         reg_parm_stack_space with ATTRIBUTE_UNUSED.
3507
3508 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
3509
3510         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
3511         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
3512         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
3513         constants.
3514         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
3515         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
3516         and CASE_CONST_ANY.
3517
3518 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
3519
3520         * config/nvptx/nvptx.md (sincossf3): New pattern.
3521
3522 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
3523
3524         * calls.c (maybe_complain_about_tail_call): New function.
3525         (initialize_argument_information): Call
3526         maybe_complain_about_tail_call when clearing *may_tailcall.
3527         (can_implement_as_sibling_call_p): Call
3528         maybe_complain_about_tail_call when returning false.
3529         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
3530         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
3531         if tail-call optimization fails.
3532         * cfgexpand.c (expand_call_stmt): Initialize
3533         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
3534         * gimple-pretty-print.c (dump_gimple_call): Dump
3535         gimple_call_must_tail_p.
3536         * gimple.c (gimple_build_call_from_tree): Call
3537         gimple_call_set_must_tail with the value of
3538         CALL_EXPR_MUST_TAIL_CALL.
3539         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
3540         (gimple_call_set_must_tail): New function.
3541         (gimple_call_must_tail_p): New function.
3542         * print-tree.c (print_node): Update printing of TREE_STATIC
3543         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
3544         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
3545         trailing comment listing applicable flags.
3546         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
3547
3548 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
3549
3550         * calls.c (expand_call): Move "Rest of purposes for tail call
3551         optimizations to fail" to...
3552         (can_implement_as_sibling_call_p): ...this new function, and
3553         split into multiple "if" statements.
3554
3555 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
3556
3557         * cfgloop.h (expected_loop_iterations_unbounded,
3558         expected_loop_iterations): Unconstify.
3559         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
3560         profile with known upper bound; return 3 when profile is absent.
3561         (expected_loop_iterations): Update.
3562
3563 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
3564
3565         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
3566         and get_max_loop_iterations_int.
3567
3568 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
3569
3570         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
3571         realistic upper bounds here.
3572
3573 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
3574
3575         PR c++/71210
3576         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
3577         calls if the LHS is variable length or has addressable type.
3578         If targets[0]->decl is a noreturn call with void return type and
3579         zero arguments, adjust fntype and remove lhs in that case.
3580
3581 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
3582
3583         PR tree-optimization/71079
3584         PR tree-optimization/71206
3585         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
3586
3587 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3588
3589         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
3590         (get_vec_alignment_for_array_decl): Likewise.
3591         (get_vec_alignment_for_record_decl): Likewise.
3592         (increase_alignment::execute): Move code to find alignment to
3593         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
3594         (type_align_map): New hash_map.
3595
3596 2016-05-20  Richard Guenther  <rguenther@suse.de>
3597
3598         PR tree-optimization/29756
3599         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
3600         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
3601         * fold-const.c (operand_equal_p): Likewise.
3602         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
3603         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
3604         * tree-inline.c (estimate_operator_cost): Likewise.
3605         * tree-pretty-print.c (dump_generic_node): Likewise.
3606         * tree-ssa-operands.c (get_expr_operands): Likewise.
3607         * cfgexpand.c (expand_debug_expr): Likewise.
3608         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
3609         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
3610         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
3611         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
3612         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
3613         (execute_update_addresses_taken): Do it.
3614
3615 2016-05-20  Richard Biener  <rguenther@suse.de>
3616
3617         PR tree-optimization/71185
3618         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
3619         register operations.
3620
3621 2016-05-20  Richard Biener  <rguenther@suse.de>
3622
3623         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
3624         gimple_seq_add_seq_without_update.
3625         (release_bb_predicate): Assert we have no operands to free.
3626         (if_convertible_loop_p_1): Calculate post dominators later.
3627         Do not free BB predicates here.
3628         (combine_blocks): Do not recompute BB predicates.
3629         (version_loop_for_if_conversion): Save BB predicates around
3630         loop versioning.
3631
3632 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
3633
3634         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
3635         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
3636         code.  Ignore sibcalls on EDGE_IGNORE edges.
3637         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
3638         on edges for sibcalls that run without prologue.  The rest of the
3639         function is combined from...
3640         (fix_fake_fallthrough_edge): ... this, and ...
3641         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
3642         function argument, make it a local variable.
3643
3644 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
3645
3646         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
3647         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
3648         for 32-bit mode and SEH for 64-bit.
3649         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
3650         TARGET_64BIT_DEFAULT.
3651
3652 2016-05-19  Ryan Burn  <contact@rnburn.com>
3653
3654         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
3655         * gengtype.c (open_base_files): Add cilk.h to ifiles.
3656
3657 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
3658
3659         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
3660         force pending loads from memory.
3661
3662 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3663
3664         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
3665         (UNSPEC_DARN_32): New unspec constant.
3666         (UNSPEC_DARN_RAW): New unspec constant.
3667         (darn_32): New instruction.
3668         (darn_raw): New instruction.
3669         (darn): New instruction.
3670         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
3671         support and documentation for this macro.
3672         (BU_P9_MISC_1): New macro definition.
3673         (BU_P9_64BIT_MISC_0): New macro definition.
3674         (BU_P9_MISC_0): New macro definition.
3675         (darn_32): New builtin definition.
3676         (darn_raw): New builtin definition.
3677         (darn): New builtin definition.
3678         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
3679         RS6000_BUILTIN_0 directives to surround each occurrence of
3680         #include "rs6000-builtin.def".
3681         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
3682         RS6000_BTM_64BIT flags to the returned mask, depending on
3683         configuration.
3684         (def_builtin): Correct an error in the assignments made to the
3685         debugging variable attr_string.
3686         (rs6000_expand_builtin): Add support for no-operand built-in
3687         functions.
3688         (builtin_function_type): Remove fatal_error assertion that is no
3689         longer valid.
3690         (rs6000_common_init_builtins): Add support for no-operand built-in
3691         functions.
3692         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
3693         definition.
3694         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
3695         definition.
3696         (RS6000_BTM_64BIT): New macro definition.
3697         * doc/extend.texi: Document __builtin_darn (void),
3698         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
3699         functions.
3700
3701 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
3702
3703         * tree-vect-loop.c (vect_analyze_loop_2): Use also
3704         max_loop_iterations_int.
3705
3706 2016-05-19  Marek Polacek  <polacek@redhat.com>
3707
3708         PR tree-optimization/71031
3709         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
3710         condition and adjust the code a bit.
3711
3712 2016-05-19  Martin Liska  <mliska@suse.cz>
3713
3714         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
3715         auto_vec instead of vec.
3716
3717 2016-05-19  Martin Liska  <mliska@suse.cz>
3718
3719         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
3720
3721 2016-05-19  Martin Liska  <mliska@suse.cz>
3722
3723         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
3724
3725 2016-05-19  Martin Liska  <mliska@suse.cz>
3726
3727         * ipa-pure-const.c (set_function_state): Remove an existing
3728         funct_state.
3729         (remove_node_data): Do not free it as it's released
3730         in set_function_state.
3731
3732 2016-05-19  Martin Liska  <mliska@suse.cz>
3733
3734         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
3735         bitmap.
3736
3737 2016-05-19  Martin Liska  <mliska@suse.cz>
3738
3739         * omp-simd-clone.c (simd_clone_adjust): Release vector.
3740
3741 2016-05-19  Martin Liska  <mliska@suse.cz>
3742
3743         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
3744         an auto_vec instead of re-creating it.
3745
3746 2016-05-19  Martin Liska  <mliska@suse.cz>
3747
3748         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
3749         auto_vec instead of vec.
3750
3751 2016-05-19  Martin Liska  <mliska@suse.cz>
3752
3753         * lto-section-in.c (lto_get_section_data): Call
3754         lto_check_version with additional argument.
3755         * lto-streamer.c (lto_check_version): Add new argument.
3756         * lto-streamer.h (lto_check_version): Likewise.
3757
3758 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3759
3760         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
3761         Don't add cost of inner memory when handling sign-extended loads.
3762
3763 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
3764
3765         PR rtl-optimization/71148
3766         * cse.c (cse_main): Free dominance info.
3767         (rest_of_handle_cse): Don't free dominance info.
3768         (rest_of_handle_cse2): Likewise.
3769         (rest_of_handle_cse_after_global_opts): Likewise.
3770
3771 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3772
3773         PR target/71056
3774         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
3775         NULL_TREE early if NEON is not available.  Remove now redundant check
3776         in ARM_CHECK_BUILTIN_MODE.
3777
3778 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
3779
3780         PR sanitizer/64354
3781         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
3782         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
3783         * doc/cpp.texi: Document new macros.
3784
3785 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
3786
3787         PR tree-optimization/69848
3788         * tree-vect-loop.c (vectorizable_reduction): Don't factor
3789         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
3790
3791 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
3792
3793         * function.c (thread_prologue_and_epilogue_insn): Move the
3794         "goto epilogue_done" one block later.
3795
3796 2016-05-19  Richard Biener  <rguenther@suse.de>
3797
3798         PR tree-optimization/70729
3799         * passes.def: Move LIM pass before PRE.  Remove no longer
3800         required copyprop and move first DCE out of the loop pipeline.
3801
3802 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
3803
3804         PR driver/69265
3805         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
3806         (OBJS-libcommon-target): ...here.
3807         * opts-common.c: Include spellcheck.h.
3808         (cmdline_handle_error): Build a vec of valid options and use it
3809         to suggest provide hints for misspelled arguments.
3810
3811 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
3812
3813         PR c++/71100
3814         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
3815         lhs if it has TREE_ADDRESSABLE type.
3816
3817 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
3818
3819         PR target/71145
3820         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
3821         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
3822
3823 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3824
3825         PR ipa/69708
3826         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
3827         input for NOP_EXPR pass-through functions.
3828         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
3829         aggregate global constant VAR_DECLs in constant jump functions.
3830
3831 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3832
3833         PR ipa/69708
3834         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
3835         from TREE_READONLY parameters.
3836
3837 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3838
3839         PR ipa/69708
3840         * cgraph.h (cgraph_indirect_call_info): New field
3841         guaranteed_unmodified.
3842         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
3843         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
3844         appropriate.
3845         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
3846         pass the parameter value to ipa_find_agg_cst_for_param.
3847         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
3848         guaranteed_unmodified, store AA results there instead of bailing out
3849         if present.
3850         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
3851         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
3852         (find_constructor_constant_at_offset): New function.
3853         (ipa_find_agg_cst_from_init): Likewise.
3854         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
3855         static initializers of contants, report back through a new paameter
3856         from_global_constant if that was the case.
3857         (try_make_edge_direct_simple_call): Also pass parameter value to
3858         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
3859         appropriate.
3860         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
3861         (ipa_read_indirect_edge_info): Likewise.
3862         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
3863         (ipa_load_from_parm_agg): Likewise.
3864
3865 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
3866
3867         PR rtl-optimization/71150
3868         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
3869         check.
3870
3871 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3872
3873         PR target/70915
3874         * config/rs6000/constraints.md (wE constraint): New constraint
3875         for a vector constant that can be loaded with XXSPLTIB.
3876         (wM constraint): New constraint for a vector constant of a 1's.
3877         (wS constraint): New constraint for a vector constant that can be
3878         loaded with XXSPLTIB and a vector sign extend instruction.
3879         * config/rs6000/predicates.md (xxspltib_constant_split): New
3880         predicates for wE/wS constraints.
3881         (xxspltib_constant_nosplit): Likewise.
3882         (easy_vector_constant): Add support for constants that can be
3883         loaded via XXSPLTIB.
3884         (all_ones_constant): New predicate for vector constant with all
3885         1's set.
3886         (splat_input_operand): Add support for ISA 3.0 word splat operations.
3887         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
3888         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
3889         instruction and possibly with a sign extension.
3890         (output_vec_const_move): Add support for XXSPLTIB. If we are
3891         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
3892         instead of XXLXOR/XXLORC.
3893         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
3894         operations.
3895         (rs6000_legitimize_reload_address): Likewise.
3896         (rs6000_output_move_128bit): Use output_vec_const_move to emit
3897         constants.
3898         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
3899         combine VSX_M and VSX_M2 into one iterator.
3900         (VSX_M2): Likewise.
3901         (VSINT_84): New iterators for loading constants with XXSPLTIB.
3902         (VSINT_842): Likewise.
3903         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
3904         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
3905         XXSPLTIB instruction.
3906         (xxspltib_<mode>_nosplit): Likewise.
3907         (xxspltib_<mode>_split): New insn to load up constants with
3908         XXSPLTIB and a sign extend instruction.
3909         (vsx_mov<mode>): Replace single move that handled all vector types
3910         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
3911         moves (when -mvsx-timode is in effect) into the main vector
3912         moves.  Eliminate separate moves for <VSr> <VSa>, where the
3913         preferred register class (<VSr>) is listed first, and the
3914         secondary register class (<VSa>) is listed second with a '?' to
3915         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
3916         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
3917         that if the register was involved in a slow operation, the
3918         clear/set operation does not wait for the slow operation to
3919         finish.  Adjust the length attributes for 32-bit mode.  Use
3920         rs6000_output_move_128bit and drop the use of the string
3921         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
3922         spacing so that the alternatives and attributes don't generate
3923         long lines, and put things in columns, so that it is easier to
3924         match up the operands and attributes with the insn alternatives.
3925         (vsx_mov<mode>_64bit): Likewise.
3926         (vsx_mov<mode>_32bit): Likewise.
3927         (vsx_movti_64bit): Fold movti into normal vector moves.
3928         (vsx_movti_32bit): Likewise.
3929         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
3930         splat instructions.
3931         (vsx_splat_v4si_internal): Likewise.
3932         (vsx_splat_v4sf_internal): Likewise.
3933         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
3934         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
3935         extend vector elements.
3936         (vsx_sign_extend_hi_<mode>): Likewise.
3937         (vsx_sign_extend_si_v2di): Likewise.
3938         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
3939         declaration.
3940         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
3941         constraints.  Add trailing period to wL documentation.
3942
3943 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
3944
3945         PR middle-end/71020
3946         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
3947         * tree-dfa.c (replace_abnormal_ssa_names): New function.
3948         * tree-call-cdce.c: Include tree-dfa.h.
3949         (can_guard_call_p): New function, extracted from...
3950         (can_use_internal_fn): ...here.
3951         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
3952         and return void.
3953         (shrink_wrap_one_built_in_call): Likewise.
3954         (use_internal_fn): Likewise.
3955         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
3956         and return void.  Call replace_abnormal_ssa_names.
3957         (pass_call_cdce::execute): Check can_guard_call_p during the
3958         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
3959         will always change something.
3960
3961 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3962
3963         PR ipa/70646
3964         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
3965         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
3966
3967 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3968
3969         PR ipa/70646
3970         * ipa-inline.h (condition): New field size.
3971         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
3972         for comaprison and store it into the new condition.
3973         (evaluate_conditions_for_known_args): Use condition size to check
3974         access sizes for all but CHANGED conditions.
3975         (unmodified_parm_1): New parameter size_p, store access size into it.
3976         (unmodified_parm): Likewise.
3977         (unmodified_parm_or_parm_agg_item): Likewise.
3978         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
3979         (set_cond_stmt_execution_predicate): Extract access sizes and store
3980         them to conditions.
3981         (set_switch_stmt_execution_predicate): Likewise.
3982         (will_be_nonconstant_expr_predicate): Likewise.
3983         (will_be_nonconstant_predicate): Likewise.
3984         (inline_read_section): Stream condition size.
3985         (inline_write_summary): Likewise.
3986
3987 2016-05-18  Richard Biener  <rguenther@suse.de>
3988
3989         * tree-ssa-loop-im.c (determine_max_movement): Properly add
3990         condition cost to PHI cost instead of total_cost.
3991
3992 2016-05-18  Martin Liska  <mliska@suse.cz>
3993
3994         PR fortran/70856
3995         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
3996         merged variables.
3997
3998 2016-05-18  Richard Biener  <rguenther@suse.de>
3999
4000         * lto-streamer.h (LTO_major_version): Bump to 6.
4001
4002 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
4003
4004         * function.c (make_split_prologue_seq, make_prologue_seq,
4005         make_epilogue_seq): New functions, factored out from...
4006         (thread_prologue_and_epilogue_insns): Here.
4007
4008 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
4009
4010         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
4011         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
4012         of before.  Add a comment.
4013
4014 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
4015
4016         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
4017         expression pointer, not pointer to the pointer.
4018
4019 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
4020
4021         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
4022         (avx2_pbroadcast<mode>): Add another alternative with v instead
4023         of x constraints in it, using <pbroadcast_evex_isa> isa.
4024         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
4025
4026         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
4027         constraint x instead of v in second alternative, add avx512bw
4028         alternative.
4029
4030         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
4031         constraint x instead of v in second alternative, add avx512bw
4032         alternative.
4033
4034         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
4035         constraint x instead of v in second alternative, add avx512bw
4036         alternative.
4037
4038         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
4039         avx512bw alternative.
4040
4041 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
4042
4043         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
4044         array to 128 chars.
4045         (define_insn "*andnottf3"): Ditto.
4046         (define_insn "*<code><mode>3"/any_logic): Ditto.
4047         (define_insn "*<code>tf3"/any_logic): Ditto.
4048         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
4049         operand to block AVX-512VL insn variant emit when it is not enabled.
4050
4051 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
4052
4053         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
4054         constraint fot SF mode.
4055
4056 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
4057             Kirill Yukhin  <kirill.yukhin@intel.com>
4058
4059         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
4060         modifiers.
4061         (define_insn "rsqrt14<mode>"): Ditto.
4062         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
4063         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
4064         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
4065         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4066         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
4067         Ditto.
4068         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
4069         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
4070         * config/i386/i386.c (ix86_print_operand): Expand check for size
4071         override codes for Intel syntax.
4072
4073 2016-05-18  Richard Biener  <rguenther@suse.de>
4074
4075         PR tree-optimization/71168
4076         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
4077         initialization earlier.
4078
4079 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
4080
4081         * config/aarch64/aarch64-simd.md
4082         (aarch64_reduc_plus_internal<mode>): Rename to...
4083         (reduc_plus_scal): ...This, and remove previous implementation.
4084
4085 2016-05-18  Richard Biener  <rguenther@suse.de>
4086
4087         * passes.def: Put late dse and cd_dce in canonical order.
4088
4089 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
4090
4091         * ipa-inline-transform.c (preserve_function_body_p): Look for
4092         first non-thunk clone.
4093         (save_function_body): Save into first non-thunk.
4094         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
4095         up call stmt id.
4096         (lto_output_node): Inline thunks don't need body in every
4097         partition.
4098         * lto-streamer-in.c: Do not fixup thunk clones.
4099         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
4100         thunks.
4101         * tree-inline.c (copy_bb): Be prepared for target node to be new after
4102         folding suceeds.
4103
4104 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
4105
4106         PR middle-end/63586
4107         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
4108         (reassociate_bb): Call transform_add_to_multiply.
4109
4110 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
4111
4112         * config/aarch64/aarch64.c (all_extensions): Removed unused
4113         static variable.
4114
4115 2016-05-17  Nathan Sidwell  <nathan@acm.org>
4116
4117         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
4118         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
4119
4120 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
4121
4122         PR tree-optimization/54579
4123         PR middle-end/55299
4124         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
4125
4126 2016-05-17  Marek Polacek  <polacek@redhat.com>
4127
4128         PR ipa/71146
4129         * tree-inline.c (expand_call_inline): Call
4130         maybe_remove_unused_call_args.
4131
4132 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
4133
4134         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
4135         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
4136         * doc/md.texi (fmin@var{m}3): Likewise.
4137
4138 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
4139
4140         * match.pd (X & C): New transformation.
4141
4142 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
4143
4144         * match.pd (~X & Y): New transformation.
4145
4146 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
4147
4148         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
4149         information for new SSA_NAME.
4150         (simplify_conversion_using_ranges): Get range through get_range_info
4151         instead of get_value_range.
4152
4153 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
4154
4155         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
4156         Remove inline assembly.
4157         (vmvn_s16): Likewise.
4158         (vmvn_s32): Likewise.
4159         (vmvn_u8): Likewise.
4160         (vmvn_u16): Likewise.
4161         (vmvn_u32): Likewise.
4162         (vmvnq_s8): Likewise.
4163         (vmvnq_s16): Likewise.
4164         (vmvnq_s32): Likewise.
4165         (vmvnq_u8): Likewise.
4166         (vmvnq_u16): Likewise.
4167         (vmvnq_u32): Likewise.
4168         (vmvn_p8): Likewise.
4169         (vmvnq_p16): Likewise.
4170
4171 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
4172
4173         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
4174         Use builtin.
4175         (vmul_n_s16): Likewise.
4176         (vmul_n_s32): Likewise.
4177         (vmul_n_u16): Likewise.
4178         (vmul_n_u32): Likewise.
4179         (vmulq_n_f32): Likewise.
4180         (vmulq_n_f64): Likewise.
4181         (vmulq_n_s16): Likewise.
4182         (vmulq_n_s32): Likewise.
4183         (vmulq_n_u16): Likewise.
4184         (vmulq_n_u32): Likewise.
4185
4186 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
4187
4188         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
4189         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
4190
4191 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
4192
4193         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
4194         to *aarch64_fma4_elt_from_dup<mode>.
4195         (*aarch64_fnma4_elt_to_128df): Rename to
4196         *aarch64_fnma4_elt_from_dup<mode>.
4197         * config/aarch64/arm_neon.h (vfma_n_f64): New.
4198         (vfms_n_f32): Likewise.
4199         (vfms_n_f64): Likewise.
4200         (vfmsq_n_f32): Likewise.
4201         (vfmsq_n_f64): Likewise.
4202
4203 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
4204
4205         * wide-int.h: Change fixed_wide_int_storage from class to struct.
4206
4207 2016-05-17  Richard Biener  <rguenther@suse.de>
4208
4209         PR tree-optimization/71132
4210         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
4211         Only add control dependences for blocks in the loop.
4212         (build_rdg): Adjust.
4213         (generate_code_for_partition): Return whether loop should
4214         be destroyed and delay that.
4215         (distribute_loop): Likewise.
4216         (pass_loop_distribution::execute): Record loops to be destroyed
4217         and perform delayed destroying of loops.
4218
4219 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4220
4221         PR target/70809
4222         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
4223
4224 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
4225
4226         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
4227
4228 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
4229
4230         PR target/71114
4231         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
4232         insertion point for instructions generated by validize_mem.
4233
4234 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
4235
4236         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
4237         in brackets.
4238
4239 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
4240
4241         * config/aarch64/aarch64.c
4242         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
4243         rather than a macro.
4244
4245 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
4246
4247         * doc/invoke.texi (AArch64 Options): Various updates.
4248
4249 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4250
4251         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
4252         into instrumentation thunks.
4253         * cif-code.def (CIF_CHKP): New.
4254
4255 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
4256
4257         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
4258
4259 2016-05-16  Martin Jambor  <mjambor@suse.cz>
4260
4261         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
4262         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
4263
4264 2016-05-16  Marek Polacek  <polacek@redhat.com>
4265
4266         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
4267         commentary.
4268
4269 2016-05-16  Martin Jambor  <mjambor@suse.cz>
4270
4271         PR hsa/70857
4272         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
4273         the outlined kernel function.
4274
4275 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
4276
4277         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
4278         (ISA_HAS_DLSA): Ditto.
4279
4280 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
4281
4282         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
4283
4284 2016-05-16  Nathan Sidwell  <nathan@acm.org>
4285
4286         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
4287         (nvptx_name_replacement): Restore.  Add comment.
4288         (write_fn_proto, write_fn_proto_from_insn,
4289         nvptx_output_call_insn): Restore
4290         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
4291
4292 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
4293
4294         * config/aarch64/aarch64.md
4295         (add<mode>3_compareC_cconly_imm): Remove use of %w.
4296         (add<mode>3_compareC_imm): Likewise.
4297         (<optab>si3_uxtw): Split into register and immediate variants.
4298         (andsi3_compare0_uxtw): Likewise.
4299         (and<mode>3_compare0): Likewise.
4300         (and<mode>3nr_compare0): Likewise.
4301         (stack_protect_test_<mode>): Don't use %x for memory operands.
4302
4303 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
4304
4305         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
4306
4307 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
4308
4309         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
4310         Split integer shifts into shift_reg and bfm.
4311         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4312         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4313         (ror<mode>3_insn): Likewise.
4314         (<optab>si3_insn_uxtw): Likewise.
4315         (<optab><mode>3_insn): Change to rotate_imm.
4316         (extr<mode>5_insn_alt): Likewise.
4317         (extrsi5_insn_uxtw): Likewise.
4318         (extrsi5_insn_uxtw_alt): Likewise.
4319
4320 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
4321
4322         * doc/tm.texi: Regenerate.
4323         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
4324         (TARGET_INVALID_RETURN_TYPE): Remove.
4325         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
4326         TARGET_INVALID_RETURN_TYPE.
4327         * target.def (invalid_parameter_type): Remove.
4328         (invalid_return_type): Remove.
4329
4330 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4331
4332         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
4333         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
4334         calls from thunk.
4335         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
4336         gimple body.
4337         (preserve_function_body_p): No need to preserve function body
4338         * cif-codes.def (CIF_THUNK): Remove.
4339         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
4340
4341 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4342
4343         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
4344
4345 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4346
4347         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
4348         for thunks.
4349
4350 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4351
4352         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
4353         (inline_small_functions): Do not look for function symbol when
4354         resetting caches.
4355
4356 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4357
4358         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
4359         of inline thunks
4360
4361 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
4362             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4363             Jiong Wang  <jiong.wang@arm.com>
4364
4365         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
4366         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
4367         Define __ARM_FP16_ARGS when appropriate.
4368         * config/arm/arm.c (arm_invalid_parameter_type): Remove
4369         declaration.
4370         (arm_invalid_return_type): Likewise.
4371         (TARGET_INVALID_PARAMETER_TYPE): Remove.
4372         (TARGET_INVALID_RETURN_TYPE): Remove.
4373         (aapcs_vfp_sub_candidate): Allow HFmode.
4374         (aapcs_vfp_allocate): Add comment.  Support HFmode.
4375         (aapcs_vfp_allocate_return_reg): Likewise.
4376         (struct aapcs_cp_arg_layout): Slightly reword comments for
4377         is_return_candidate and allocate_return_reg.
4378         (output_mov_vfp): Update assert.
4379         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
4380         condition.
4381         (arm_invalid_parameter_type): Remove.
4382         (amr_invalid_return_type): Remove.
4383         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
4384         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
4385         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
4386
4387 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
4388
4389         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
4390         * config/aarch64/arch64-protos.h
4391         (aarch64_legitimize_reload_address): Remove.
4392         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
4393         Remove.
4394
4395 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
4396
4397         * configure.ac: Add ACX_NONCANONICAL_HOST.
4398         * configure: Regenerate.
4399         * Makefile.in: Set host_noncanonical.
4400
4401 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
4402
4403         PR target/71097
4404         * config/i386/i386.md (*movtf_internal): Before register allocation,
4405         do not allow FP constants for CM_MEDIUM memory model, allow only
4406         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
4407         (*movxf_internal): Ditto.
4408         (*movdf_internal): Ditto.
4409         (*movsf_internal): Ditto.
4410
4411 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
4412
4413         PR rtl-optimization/67483
4414         * combine.c (make_compound_operation): Don't call extract_left_shift
4415         with negative shift amounts.
4416
4417 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
4418
4419         PR bootstrap/71071
4420         * fold-const.c (fold_checksum_tree): Allow modification
4421         of TYPE_ALIAS_SET during folding.
4422
4423         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
4424         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
4425         (ix86_split_to_parts): Likewise.  Fix up formatting.
4426
4427 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
4428
4429         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
4430         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
4431         printf format.
4432
4433 2016-05-13  Nathan Sidwell  <nathan@acm.org>
4434
4435         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
4436         (nvptx_name_replacement): Delete.
4437         (write_fn_proto, write_fn_proto_from_insn,
4438         nvptx_output_call_insn): Remove nvptx_name_replacement call.
4439         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
4440         * langhooks.c (add_builtin_funcction_common): Call
4441         targetm.mangle_decl_assembler_name.
4442
4443         * config/nvptx/nvptx.c (write_fn_proto): Handle
4444         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
4445
4446 2016-05-13  Martin Liska  <mliska@suse.cz>
4447
4448         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
4449         and PRIu64 in printf format.
4450
4451 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4452
4453         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
4454         comment.
4455
4456 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4457
4458         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
4459         Change --param max-completely-peeled-times to
4460         --param max-completely-peel-times in dump file printing.
4461
4462 2016-05-13  Richard Biener  <rguenther@suse.de>
4463
4464         PR tree-optimization/42587
4465         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
4466         (find_bswap_or_nop_1): Likewise.
4467         (bswap_replace): Likewise.
4468
4469 2016-05-13  Martin Liska  <mliska@suse.cz>
4470
4471         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
4472         Initialize a variable with default value.
4473
4474 2016-05-13  Martin Liska  <mliska@suse.cz>
4475
4476         * doc/invoke.texi: Enhance explanation of error recovery
4477         of sanitizers.
4478
4479 2016-05-13  Martin Liska  <mliska@suse.cz>
4480
4481         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
4482         (struct cost_pair): Change inv_expr_id (int) to inv_expr
4483         (iv_inv_expr_ent *).
4484         (struct iv_inv_expr_ent): Comment struct fields.
4485         (sort_iv_inv_expr_ent): New function.
4486         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
4487         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
4488         a hash_map between iv_inv_expr_ent and number of usages.
4489         (niter_for_exit): Fix coding style.
4490         (tree_ssa_iv_optimize_init): Use renamed variable.
4491         (determine_base_object): Fix coding style.
4492         (alloc_iv): Likewise.
4493         (find_interesting_uses_outside): Likewise.
4494         (add_candidate_1): Likewise.
4495         (add_standard_iv_candidates): Likewise.
4496         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
4497         (prepare_decl_rtl): Fix coding style.
4498         (get_address_cost): Likewise.
4499         (get_shiftadd_cost): Likewise.
4500         (force_expr_to_var_cost): Likewise.
4501         (compare_aff_trees): Likewise.
4502         (get_expr_id): Restructure the function.
4503         (get_loop_invariant_expr_id): Renamed to
4504         get_loop_invariant_expr.
4505         (get_computation_cost_at): Replace usage of inv_expr_id with
4506         inv_expr.
4507         (get_computation_cost): Likewise.
4508         (determine_group_iv_cost_generic): Likewise.
4509         (determine_group_iv_cost_address): Likewise.
4510         (iv_period): Fix coding style.
4511         (iv_elimination_compare_lt): Likewise.
4512         (may_eliminate_iv): Likewise.
4513         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
4514         inv_expr.
4515         (determine_group_iv_costs): Dump invariant expressions.
4516         (iv_ca_recount_cost): Use the newly added hash_map.
4517         (iv_ca_set_remove_invariants): Fix coding style.
4518         (iv_ca_set_add_invariants): Fix coding style.
4519         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
4520         invariants.
4521         (iv_ca_set_cp): Likewise.
4522         (iv_ca_new): Initialize the newly added hash_map and remove
4523         initialization of fields.
4524         (iv_ca_free): Delete the hash_map.
4525         (iv_ca_dump): Dump invariant expressions.
4526         (iv_ca_extend): Fix coding style.
4527         (try_add_cand_for): Likewise.
4528         (create_new_ivs): Dump information about # of avg iterations and
4529         # of used invariant expressions.
4530         (rewrite_use_compare): Fix coding style.
4531         (free_loop_data): Set default value for max_inv_expr_id.
4532
4533 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
4534
4535         * cse.c (rest_of_handle_cse): Use cleanup_cfg
4536         returned value cse_cfg_altered computation.
4537         (rest_of_handle_cse2): Likewise.
4538         (rest_of_handle_cse_after_global_opts): Likewise.
4539
4540 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4541
4542         PR target/53440
4543         * config/arm/arm.c (arm32_output_mi_thunk): New.
4544         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
4545         to split Thumb1 vs TARGET_32BIT functionality.
4546         (arm_thumb1_mi_thunk): New.
4547
4548 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4549
4550         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
4551         to true.
4552
4553 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4554
4555         PR target/71080
4556         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
4557
4558 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
4559
4560         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
4561         (expand_builtin_trap): Emit a regular call.
4562         (set_builtin_user_assembler_name): Remove obsolete cases.
4563         * dse.c (scan_insn): Adjust.
4564         * except.c: Include calls.h.
4565         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
4566         emit a regular call to setjmp.
4567         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
4568         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
4569         (emit_block_move_via_libcall): Delete.
4570         (block_move_fn): Delete.
4571         (init_block_move_fn): Likewise.
4572         (emit_block_move_libcall_fn): Likewise.
4573         (emit_block_op_via_libcall): New function.
4574         (set_storage_via_libcall): Tidy up and use memset builtin.
4575         (block_clear_fn): Delete.
4576         (init_block_clear_fn): Likewise.
4577         (clear_storage_libcall_fn): Likewise.
4578         (expand_assignment): Call emit_block_move_via_libcall.
4579         Do not include gt-expr.h.
4580         * expr.h (emit_block_op_via_libcall): Declare.
4581         (emit_block_copy_via_libcall): New inline function.
4582         (emit_block_move_via_libcall): Likewise.
4583         (emit_block_comp_via_libcall): Likewise.
4584         (block_clear_fn): Delete.
4585         (init_block_move_fn): Likewise.
4586         (init_block_clear_fn): Likewise.
4587         (emit_block_move_via_libcall): Likewise.
4588         (set_storage_via_libcall): Add default parameter value.
4589         * libfuncs.h (enum libfunc_index): Remove obsolete values.
4590         (abort_libfunc): Delete.
4591         (memcpy_libfunc): Likewise.
4592         (memmove_libfunc): Likewise.
4593         (memcmp_libfunc): Likewise.
4594         (memset_libfunc): Likewise.
4595         (setbits_libfunc): Likewise.
4596         (setjmp_libfunc): Likewise.
4597         (longjmp_libfunc): Likewise.
4598         (profile_function_entry_libfunc): Likewise.
4599         (profile_function_exit_libfunc): Likewise.
4600         (gcov_flush_libfunc): Likewise.
4601         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
4602         and DECL_VISIBILITY on the declaration.
4603         (init_optabs): Do not initialize obsolete libfuncs.
4604         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
4605         * tree-core.h (ECF_RET1): Define.
4606         (ECF_TM_PURE): Adjust.
4607         (ECF_TM_BUILTIN): Likewise.
4608         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
4609         (build_common_builtin_nodes): Initialize abort builtin.
4610         Add ECF_RET1 on memcpy, memmove and memset builtins.
4611         Pass final flags for alloca and alloca_with_align builtins.
4612         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
4613         obsolete builtins.
4614         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
4615         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
4616         set_storage_via_libcall and call emit_block_copy_via_libcall.
4617
4618 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
4619
4620         * config/i386/i386.md (*call_got_x32): Change operand 0 to
4621         DImode before it is passed to ix86_output_call_operand.
4622         (*call_value_got_x32): Ditto for operand 1.
4623
4624 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
4625
4626         PR rtl-optimization/70904
4627         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
4628         reload for wide mode.
4629
4630 2016-05-12  Marek Polacek  <polacek@redhat.com>
4631
4632         PR c/70756
4633         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
4634         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
4635         * langhooks.h (incomplete_type_error): Likewise.
4636         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
4637         parameter, pass it down to incomplete_type_error.
4638         * tree.h (size_in_bytes): New inline overload.
4639         (size_in_bytes_loc): Renamed from size_in_bytes.
4640
4641 2016-05-12  Richard Biener  <rguenther@suse.de>
4642
4643         PR tree-optimization/71059
4644         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
4645         nary before looking up or entering the expression into the VN
4646         hashes.
4647         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
4648         Make sure to re-use NARYs without result as inserted by
4649         phi-translation.
4650
4651 2016-05-12  Richard Biener  <rguenther@suse.de>
4652
4653         PR tree-optimization/71062
4654         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
4655         field.
4656         * tree-ssa-structalias.c (set_uids_in_ptset): Set
4657         vars_contains_restrict if the var is a restrict tag.
4658         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
4659         do not disambiguate pointers against it.
4660         (dump_points_to_solution): Re-structure and adjust for new
4661         vars_contains_restrict flag.
4662         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
4663
4664 2016-05-12  Martin Liska  <mliska@suse.cz>
4665
4666         * doc/invoke.texi: Explain connection between
4667         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
4668
4669 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
4670
4671         PR tree-optimization/71006
4672         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4673         consider COND_EXPR as a mask producer.
4674
4675 2016-05-12  Marek Polacek  <polacek@redhat.com>
4676
4677         PR driver/71063
4678         * opts.c (common_handle_option): Detect missing argument for --help^.
4679
4680 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4681
4682         PR target/70830
4683         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
4684         when popping the PC and within an interrupt handler routine.
4685         Add missing tab to output of "ldmfd".
4686         (output_return_instruction): Output LDMFD with SP update rather
4687         than POP when returning from interrupt handler.
4688
4689 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
4690
4691         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
4692         TARGET_64BIT && TARGET_AVX512DQ.
4693         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
4694         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
4695         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
4696         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
4697         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
4698         (*vec_extractv4si_zext): Add avx512dq alternative.
4699         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
4700         use v instead of x constraint in other alternatives where possible.
4701
4702         * config/i386/sse.md (sse2_loadld): Use v instead of x
4703         constraint in alternatives 0,1,4.
4704
4705         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
4706         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
4707         v constraints instead of x and <pinsr_evex_isa> isa attribute.
4708
4709         PR target/71019
4710         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
4711         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
4712         is not emitted unless TARGET_AVX512BW.
4713         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
4714         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
4715         for the result operand.
4716
4717         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
4718         constraint instead of x in avx alternatives.  Use maybe_evex instead
4719         of vex prefix.
4720
4721         * config/i386/constraints.md (Yv): New constraint.
4722         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
4723         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
4724         * config/i386/i386.md (avx512fvecmode): New mode attr.
4725         (*pushtf): Use v constraint instead of x.
4726         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
4727         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
4728         (*absneg<mode>2): Use Yv constraint instead of x constraint.
4729         (*absnegtf2_sse): Likewise.
4730         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
4731         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
4732         avx512f alternatives.
4733         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
4734
4735 2016-05-12  Richard Biener  <rguenther@suse.de>
4736
4737         PR tree-optimization/71060
4738         * tree-data-ref.c (initialize_data_dependence_relation): Do not
4739         require exact match of DR_BASE_OBJECT but only matching address and
4740         type.
4741
4742 2016-05-12  Richard Biener  <rguenther@suse.de>
4743
4744         PR tree-optimization/70986
4745         * cfganal.c: Include cfgloop.h.
4746         (dfs_find_deadend): Prefer to take edges exiting loops.
4747
4748 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4749
4750         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
4751         compile and run time.
4752
4753 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
4754
4755         PR c/43651
4756         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
4757
4758 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
4759
4760         * config/i386/i386.c (legitimize_pic_address): Use
4761         copy_to_suggested_reg instead of gen_movsi.
4762
4763 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
4764
4765         * config/rs6000/predicates.md (quad_memory_operand): Move most of
4766         the code into quad_address_p and call it to share code with
4767         vsx_quad_dform_memory_operand.
4768         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
4769         d-form support.
4770         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
4771         bit instead of being a separate word.  Split -mpower9-dform into
4772         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
4773         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
4774         for the register class supporting 128-bit quad word memory offsets.
4775         (mode_supports_vsx_dform_quad): Helper function to return if the
4776         register class uses quad word memory offsets.
4777         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
4778         (rs6000_debug_reg_global): Always print if we are using LRA or not.
4779         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
4780         instructions are enabled, set up the appropriate addr_masks for
4781         128-bit types.
4782         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
4783         -mpower9-dform-scalar, instead of -mpower9-dform.
4784         (rs6000_option_override_internal): Split -mpower9-dform into two
4785         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
4786         -mpower9-dform switch sets or clears both.  If we are not using
4787         the LRA register allocator, do not enable -mpower9-dform-vector by
4788         default.  If we are using LRA, enable -mpower9-dform-vector and
4789         -mvsx-timode if it is appropriate.  Issue a warning if either
4790         -mpower9-dform-vector or -mvsx-timode are explicitly used without
4791         enabling LRA.
4792         (quad_address_offset_p): New helper function to return if the
4793         offset is legal for quad word memory instructions.
4794         (quad_address_p): New function to determin if GPR or vector
4795         register quad word memory addresses are legal.
4796         (mem_operand_gpr): Validate quad word address offsets.
4797         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
4798         d-form (register + offset) instructions.
4799         (offsettable_ok_by_alignment): Likewise.
4800         (rs6000_legitimate_offset_address_p): Likewise.
4801         (legitimate_lo_sum_address_p): Likewise.
4802         (rs6000_legitimize_address): Likewise.
4803         (rs6000_legitimize_reload_address): Add more debug statements for
4804         -mdebug=addr.
4805         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
4806         d-form instructions.
4807         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
4808         d-form instructions.  Distinguish different cases in debug
4809         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
4810         d-form instructions.
4811         (rs6000_preferred_reload_class): Likewise.
4812         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
4813         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
4814         of the ISA 2.06 indexed memory instructions.
4815         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
4816         use them to save/restore the saved vector registers instead of
4817         using Altivec instructions.
4818         (rs6000_emit_epilogue): Likewise.
4819         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
4820         (rs6000_opt_masks): Split -mpower9-dform into
4821         -mpower9-dform-scalar and -mpower9-dform-vector.
4822         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
4823         was not selected.
4824         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
4825         ISA 3.0 vector indexed memory instructions, and fold the code into
4826         the normal mov<mode> patterns.
4827         (p9_vecstore_<mode>): Likewise.
4828         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
4829         instructions.
4830         (vsx_movti_64bit): Likewise.
4831         (vsx_movti_32bit): Likewise.
4832         * config/rs6000/constraints.md (wO constraint): New constraint for
4833         ISA 3.0 vector d-form support.
4834         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
4835         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
4836         include -mpower9-dform-vector until we switch over to LRA.
4837         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
4838         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
4839         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
4840         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
4841         for -mpower9-dform and -mlra.
4842         * doc/md.texi (wO constraint): Document wO constraint.
4843
4844 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
4845
4846         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
4847         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
4848         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
4849         Move handling of non-insn arguments inline into the sole user:
4850         (output_trans_func): ...here.
4851         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
4852         in emitted function prototype.
4853         (output_internal_insn_latency_func): Ditto.  Simplify.
4854         (output_internal_maximal_insn_latency_func): Ditto.  Delete
4855         always-unused argument.
4856         (output_insn_latency_func): Ditto.
4857         (output_maximal_insn_latency_func): Ditto.
4858
4859 2016-05-11  Richard Biener  <rguenther@suse.de>
4860
4861         PR tree-optimization/71055
4862         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
4863         sth with precision not equal to access size verify we don't chop
4864         off bits.
4865
4866 2016-05-11  Richard Biener  <rguenther@suse.de>
4867
4868         PR debug/71057
4869         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
4870         (dwarf2out_finish): Move retry_incomplete_types call ...
4871         (dwarf2out_early_finish): ... here.
4872
4873 2016-05-11  Richard Biener  <rguenther@suse.de>
4874
4875         PR middle-end/71002
4876         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
4877         if the langhook insists on it.
4878         * fold-const.c (make_bit_field_ref): Add arg for the original
4879         reference and preserve its alias-set.
4880         (decode_field_reference): Take exp by reference and adjust it
4881         to the original memory reference.
4882         (optimize_bit_field_compare): Adjust callers.
4883         (fold_truth_andor_1): Likewise.
4884         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
4885
4886 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
4887
4888         PR middle-end/70807
4889         * cfgrtl.h (delete_insn_and_edges): Now return bool.
4890         * cfgrtl.c (delete_insn_and_edges): Likewise.
4891         * config/i386/i386.c (convert_scalars_to_vector): Remove
4892         redundant code.
4893         * cse.c (cse_insn): Compute cse_cfg_altered.
4894         (delete_trivially_dead_insns): Likewise.
4895         (cse_cc_succs): Likewise.
4896         (rest_of_handle_cse): Free dominance info if required.
4897         (rest_of_handle_cse2): Likewise.
4898         (rest_of_handle_cse_after_global_opts): Likewise.
4899
4900 2016-05-11  Alan Modra  <amodra@gmail.com>
4901
4902         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
4903         abi_v4_pass_in_fpr): New functions.
4904         (rs6000_function_arg_boundary): Exclude complex IBM long double
4905         from 64-bit alignment when ABI_V4.
4906         (rs6000_function_arg, rs6000_function_arg_advance_1,
4907         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
4908
4909 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
4910
4911         PR rtl-optimization/71028
4912         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
4913         jump with just a return in the fallthrough block if the branch
4914         block contains just a return as well.
4915
4916 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
4917
4918         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
4919         * match.pd ((X & Y) ^ Y): ... this.
4920         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
4921         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
4922
4923 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
4924
4925         * read-md.c (require_char_ws): New function.
4926         (read_string): Simplify using require_char_ws.
4927         (handle_constants): Likewise.
4928         (handle_enum): Likewise.
4929         (handle_file): Likewise.
4930         * read-md.h (require_char_ws): New declaration.
4931         * read-rtl.c (read_conditions): Simplify using require_char_ws.
4932         (read_mapping): Likewise.
4933         (read_rtx_code): Likewise.
4934         (read_nested_rtx): Likewise.
4935
4936 2016-05-10  James Norris  <jnorris@codesourcery.com>
4937
4938         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
4939         if offloading is enabled and -fopenacc or -fopenmp is specified.
4940         (CRTOFFLOADEND): Likewise.
4941         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
4942         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
4943
4944 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
4945
4946         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
4947         gotoff_operand code paths.  Use copy_to_suggested_regs and
4948         expand_simple_binop where appropriate.  Cleanup.
4949
4950 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4951
4952         PR target/70799
4953         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
4954         integer constants.
4955         (dimode_scalar_chain::vector_const_cost): New.
4956         (dimode_scalar_chain::compute_convert_gain): Handle constants.
4957         (dimode_scalar_chain::convert_op): Likewise.
4958         (dimode_scalar_chain::convert_insn): Likewise.
4959
4960 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
4961
4962         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
4963         unary operation, not a binary one.
4964
4965 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4966
4967         PR middle-end/70877
4968         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
4969         calls with type casted fndecl.
4970
4971 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4972
4973         PR tree-optimization/70786
4974         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
4975         * calls.c (initialize_argument_information): Bind bounds
4976         with corresponding args passed by reference.
4977
4978 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
4979
4980         PR target/70927
4981         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
4982         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
4983         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
4984         accordingly.
4985
4986 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4987
4988         PR target/70963
4989         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
4990         code for a zero scale factor.
4991         (vsx_xvcvdpuxds_scale): Likewise.
4992
4993 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
4994
4995         * diagnostic-show-locus.c (layout::layout): Call show_ruler
4996         if show_ruler_p was set on the context.
4997         (layout::show_ruler): New method.
4998         * diagnostic.h (struct diagnostic_context): Add field
4999         "show_ruler_p".
5000
5001 2016-05-10  Richard Biener  <rguenther@suse.de>
5002
5003         PR tree-optimization/71039
5004         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
5005         (chk_uses): New function.
5006         (propagate_with_phi): Verify we can safely replicate the lhs of an
5007         aggregate assignment on all incoming edges.
5008
5009 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
5010
5011         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
5012         Forward declare.
5013         (rx_atomic_sequence): New class.
5014         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
5015         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
5016         non-inline.
5017         (rx_atomic_sequence::rx_atomic_sequence,
5018         rx_atomic_sequence::~rx_atomic_sequence): New functions.
5019         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
5020         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
5021         CTRLREG_INTB): New constants.
5022         (FETCHOP): New code iterator.
5023         (fethcop_name, fetchop_name2): New iterator code attributes.
5024         (QIHI): New mode iterator.
5025         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
5026         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
5027         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
5028
5029 2016-05-10  Martin Liska  <mliska@suse.cz>
5030
5031         * tree-inline.c (remap_dependence_clique): Do not remap
5032         debugging statements.
5033
5034 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5035
5036         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
5037         ("*fixuns_truncdfdi2_z13")
5038         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
5039         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
5040         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
5041
5042 2016-05-10  Richard Biener  <rguenther@suse.de>
5043
5044         PR tree-optimization/70497
5045         PR tree-optimization/28367
5046         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
5047         split out from ...
5048         (visit_reference_op_load): ... here.
5049         (vn_reference_lookup_3): Use it to handle subreg-like accesses
5050         with simplified BIT_FIELD_REFs.
5051         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
5052         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
5053         correctly.
5054
5055 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
5056
5057         * dwarf2out.c (add_abstract_origin_attribute): Adjust
5058         documentation comment.  For BLOCK nodes, add a
5059         DW_AT_abstract_origin attribute that points to the DIE generated
5060         for the origin BLOCK.
5061         (gen_lexical_block_die): Call add_abstract_origin_attribute for
5062         blocks from inlined functions.
5063
5064 2016-05-10  Alan Modra  <amodra@gmail.com>
5065
5066         PR target/70947
5067         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
5068         regrename modifying insns saving lr before __morestack call.
5069         * config/rs6000/rs6000.md (split_stack_return): Similarly for
5070         insns restoring lr after __morestack call.
5071
5072 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
5073
5074         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
5075         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
5076         expanders.
5077         * config/i386/sse.md (vec_interleave_high<mode>,
5078         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
5079         <avx512>_vpermt2var<mode>3_maskz): Likewise.
5080
5081 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
5082
5083         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
5084         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
5085         parallel reassociation for power8 and forward.
5086
5087 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
5088
5089         * config/i386/i386.md (absneg splitters with general regs): Use
5090         general_reg_operand predicate.
5091         (btsq peephole2): Use x86_64_immediate_operand to check if new
5092         value is suitable for immediate operand.  Generate emitted insn
5093         using RTL expressions.
5094         (btcq peephole2): Ditto.
5095         (btrq peephole2): Ditto.  Generate correct immediate operand
5096         for AND masking.
5097
5098 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
5099
5100         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
5101         bitpos.
5102
5103 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
5104
5105         * tree-affine.c (wide_int_constant_multiple_p): Add missing
5106         pointer dereference.
5107
5108 2016-05-09  Richard Biener  <rguenther@suse.de>
5109
5110         PR tree-optimization/70985
5111         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
5112         op0 isn't a gimple register.
5113
5114 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
5115
5116         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
5117         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
5118         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
5119         (i6400_fpu_mult): New cpu units.
5120         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
5121         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
5122         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
5123         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
5124         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
5125         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
5126         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
5127         (i6400_msa_long_float4, i6400_msa_long_float5)
5128         (i6400_msa_long_float8, i6400_msa_fdiv_df)
5129         (i6400_msa_fdiv_sf): New reservations.
5130         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
5131         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
5132         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
5133         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
5134         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
5135         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
5136         (msa_short_cmp, msa_short_float2, msa_short_logic3)
5137         (msa_short_store4, msa_long_load, msa_short_store)
5138         (msa_long_logic, msa_long_float2, msa_long_float4)
5139         (msa_long_float5, msa_long_float8, msa_long_mult)
5140         (msa_long_fdiv, msa_long_div): New reservations.
5141
5142 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
5143             Sameera Deshpande  <sameera.deshpande@imgtec.com>
5144             Matthew Fortune  <matthew.fortune@imgtec.com>
5145             Graham Stott  <graham.stott@imgtec.com>
5146             Chao-ying Fu  <chao-ying.fu@imgtec.com>
5147
5148         * config.gcc: Add MSA header file for mips*-*-* target.
5149         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
5150         (Ubv8i, Urv8):  New constraints.
5151         * config/mips/mips-ftypes.def: Add function types for MSA
5152         builtins.
5153         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
5154         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
5155         * config/mips/mips-msa.md: New file.
5156         * config/mips/mips-protos.h
5157         (mips_split_128bit_const_insns): New prototype.
5158         (mips_msa_idiv_insns): Likewise.
5159         (mips_split_128bit_move): Likewise.
5160         (mips_split_128bit_move_p): Likewise.
5161         (mips_split_msa_copy_d): Likewise.
5162         (mips_split_msa_insert_d): Likewise.
5163         (mips_split_msa_fill_d): Likewise.
5164         (mips_expand_msa_branch): Likewise.
5165         (mips_const_vector_same_val_p): Likewise.
5166         (mips_const_vector_same_bytes_p): Likewise.
5167         (mips_const_vector_same_int_p): Likewise.
5168         (mips_const_vector_shuffle_set_p): Likewise.
5169         (mips_const_vector_bitimm_set_p): Likewise.
5170         (mips_const_vector_bitimm_clr_p): Likewise.
5171         (mips_msa_vec_parallel_const_half): Likewise.
5172         (mips_msa_output_division): Likewise.
5173         (mips_ldst_scaled_shift): Likewise.
5174         (mips_expand_vec_cond_expr): Likewise.
5175         * config/mips/mips.c (enum mips_builtin_type): Add
5176         MIPS_BUILTIN_MSA_TEST_BRANCH.
5177         (mips_gen_const_int_vector_shuffle): New prototype.
5178         (mips_const_vector_bitimm_set_p): New function.
5179         (mips_const_vector_bitimm_clr_p): Likewise.
5180         (mips_const_vector_same_val_p): Likewise.
5181         (mips_const_vector_same_bytes_p): Likewise.
5182         (mips_const_vector_same_int_p): Likewise.
5183         (mips_const_vector_shuffle_set_p): Likewise.
5184         (mips_symbol_insns): Forbid loading symbols via immediate for
5185         MSA.
5186         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
5187         stores.
5188         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
5189         MSA.
5190         (mips_lx_address_p): Add support load indexed address for MSA.
5191         (mips_address_insns): Add calculation of instructions needed for
5192         stores and loads for MSA.
5193         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
5194         CONST_VECTOR for MSA and let it fall through.
5195         (mips_ldst_scaled_shift): New function.
5196         (mips_subword_at_byte): Likewise.
5197         (mips_msa_idiv_insns): Likewise.
5198         (mips_legitimize_move): Validate MSA moves.
5199         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
5200         calculation of costs for MSA division.
5201         (mips_split_move_p): Check if MSA moves need splitting.
5202         (mips_split_move): Split MSA moves if necessary.
5203         (mips_split_128bit_move_p): New function.
5204         (mips_split_128bit_move): Likewise.
5205         (mips_split_msa_copy_d): Likewise.
5206         (mips_split_msa_insert_d): Likewise.
5207         (mips_split_msa_fill_d): Likewise.
5208         (mips_output_move): Handle MSA moves.
5209         (mips_expand_msa_branch): New function.
5210         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
5211         Reinstate 'y' modifier.
5212         (mips_file_start): Add MSA .gnu_attribute.
5213         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
5214         FPRs.
5215         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
5216         (mips_class_max_nregs): Add register size for MSA supported mode.
5217         (mips_cannot_change_mode_class): Allow conversion between MSA
5218         vector modes and TImode.
5219         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
5220         instruction.
5221         (mips_secondary_reload_class): Force MSA loads/stores via memory.
5222         (mips_preferred_simd_mode): Add preffered modes for MSA.
5223         (mips_vector_mode_supported_p): Add MSA supported modes.
5224         (mips_autovectorize_vector_sizes): New function.
5225         (mips_msa_output_division): Likewise.
5226         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
5227         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
5228         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
5229         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
5230         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
5231         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
5232         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
5233         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
5234         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
5235         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
5236         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
5237         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
5238         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
5239         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
5240         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
5241         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
5242         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
5243         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
5244         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
5245         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
5246         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
5247         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
5248         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
5249         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
5250         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
5251         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
5252         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
5253         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
5254         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
5255         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
5256         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
5257         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
5258         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
5259         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
5260         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
5261         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
5262         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
5263         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
5264         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
5265         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
5266         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
5267         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
5268         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
5269         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
5270         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
5271         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
5272         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
5273         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
5274         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
5275         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
5276         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
5277         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
5278         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
5279         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
5280         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
5281         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
5282         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
5283         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
5284         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
5285         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
5286         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
5287         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
5288         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
5289         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
5290         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
5291         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
5292         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
5293         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
5294         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
5295         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
5296         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
5297         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
5298         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
5299         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
5300         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
5301         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
5302         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
5303         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
5304         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
5305         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
5306         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
5307         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
5308         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
5309         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
5310         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
5311         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
5312         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
5313         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
5314         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
5315         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
5316         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
5317         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
5318         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
5319         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
5320         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
5321         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
5322         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
5323         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
5324         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
5325         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
5326         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
5327         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
5328         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
5329         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
5330         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
5331         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
5332         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
5333         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
5334         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
5335         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
5336         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
5337         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
5338         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
5339         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
5340         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
5341         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
5342         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
5343         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
5344         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
5345         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
5346         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
5347         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
5348         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
5349         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
5350         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
5351         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
5352         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
5353         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
5354         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
5355         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
5356         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
5357         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
5358         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
5359         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
5360         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
5361         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
5362         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
5363         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
5364         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
5365         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
5366         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
5367         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
5368         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
5369         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
5370         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
5371         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
5372         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
5373         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
5374         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
5375         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
5376         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
5377         move_v builtins.
5378         (mips_get_builtin_decl_index): New array.
5379         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
5380         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
5381         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
5382         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
5383         (mips_init_builtins): Initialize mips_get_builtin_decl_index
5384         array.
5385         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
5386         hook.
5387         (mips_expand_builtin_insn): Prepare operands for
5388         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
5389         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
5390         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
5391         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
5392         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
5393         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
5394         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
5395         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
5396         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
5397         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
5398         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
5399         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
5400         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
5401         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
5402         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
5403         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
5404         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
5405         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
5406         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
5407         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
5408         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
5409         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
5410         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
5411         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
5412         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
5413         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
5414         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
5415         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
5416         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
5417         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
5418         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
5419         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
5420         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
5421         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
5422         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
5423         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
5424         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
5425         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
5426         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
5427         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
5428         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
5429         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
5430         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
5431         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
5432         These are set implicitly and an error is reported if overridden.
5433         (mips_expand_builtin_msa_test_branch): New function.
5434         (mips_expand_msa_shuffle): Likewise.
5435         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
5436         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
5437         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
5438         (mips_expand_vec_unpack): Add support for MSA.
5439         (mips_expand_vector_init): Likewise.
5440         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
5441         instead of const0_rtx.
5442         (mips_msa_vec_parallel_const_half): New function.
5443         (mips_gen_const_int_vector): Likewise.
5444         (mips_gen_const_int_vector_shuffle): Likewise.
5445         (mips_expand_msa_cmp): Likewise.
5446         (mips_expand_vec_cond_expr): Likewise.
5447         * config/mips/mips.h
5448         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
5449         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
5450         specified.
5451         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
5452         (ISA_HAS_MSA): New macro.
5453         (UNITS_PER_MSA_REG): Likewise.
5454         (BITS_PER_MSA_REG): Likewise.
5455         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
5456         (MSA_REG_FIRST): New macro.
5457         (MSA_REG_LAST): Likewise.
5458         (MSA_REG_NUM): Likewise.
5459         (MSA_REG_P): Likewise.
5460         (MSA_REG_RTX_P): Likewise.
5461         (MSA_SUPPORTED_MODE_P): Likewise.
5462         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
5463         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
5464         * config/mips/mips.md: Include mips-msa.md.
5465         (alu_type): Add simd_add.
5466         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
5467         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
5468         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
5469         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
5470         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
5471         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
5472         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
5473         simd_move, simd_load, simd_store.  Choose "multi" for moves
5474         for "qword_mode".
5475         (qword_mode): New attribute.
5476         (insn_count): Add instruction count for quad moves.
5477         Increase the count for MIPS SIMD division.
5478         (UNITMODE): Add UNITMODEs for vector types.
5479         (addsub): New code iterator.
5480         * config/mips/mips.opt (mmsa): New option.
5481         * config/mips/msa.h: New file.
5482         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
5483         specified.
5484         * config/mips/mti-linux.h: Likewise.
5485         * config/mips/predicates.md
5486         (const_msa_branch_operand): New constraint.
5487         (const_uimm3_operand): Likewise.
5488         (const_uimm4_operand): Likewise.
5489         (const_uimm5_operand): Likewise.
5490         (const_uimm8_operand): Likewise.
5491         (const_imm5_operand): Likewise.
5492         (aq10b_operand): Likewise.
5493         (aq10h_operand): Likewise.
5494         (aq10w_operand): Likewise.
5495         (aq10d_operand): Likewise.
5496         (const_m1_operand): Likewise.
5497         (reg_or_m1_operand): Likewise.
5498         (const_exp_2_operand): Likewise.
5499         (const_exp_4_operand): Likewise.
5500         (const_exp_8_operand): Likewise.
5501         (const_exp_16_operand): Likewise.
5502         (const_vector_same_val_operand): Likewise.
5503         (const_vector_same_simm5_operand): Likewise.
5504         (const_vector_same_uimm5_operand): Likewise.
5505         (const_vector_same_uimm6_operand): Likewise.
5506         (const_vector_same_uimm8_operand): Likewise.
5507         (par_const_vector_shf_set_operand): Likewise.
5508         (reg_or_vector_same_val_operand): Likewise.
5509         (reg_or_vector_same_simm5_operand): Likewise.
5510         (reg_or_vector_same_uimm6_operand): Likewise.
5511         * doc/extend.texi (MIPS SIMD Architecture Functions): New
5512         section.
5513         * doc/invoke.texi (-mmsa): Document new option.
5514
5515 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5516
5517         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
5518         * configure: Regenerate.
5519         * config.in: Regenerate.
5520         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
5521         on -fvtable-verify.
5522         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
5523         (ENDFILE_VTV_SPEC): Define.
5524
5525 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
5526
5527         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
5528         registers in all interrupt handlers if necessary.
5529         (rl78_option_override): Add warning.
5530         (MUST_SAVE_MDUC_REGISTERS): New macro.
5531         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
5532         * config/rl78/rl78.c (check_mduc_usage): New function.
5533         (mduc_regs): New structure to hold MDUC register data.
5534         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
5535         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
5536         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
5537         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
5538         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
5539         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
5540
5541 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
5542
5543         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
5544         (tree-ssa-loop-niter.h): Ditto.
5545         (idx_within_array_bound, ref_within_array_bound): New functions.
5546         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
5547         Factor out check on writable base object to ...
5548         (base_object_writable): ... here.
5549
5550 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5551
5552         * config/arm/arm.md (probe_stack): Add modes to set source
5553         and destination.
5554
5555 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
5556
5557         * regrename.c (base_reg_class_for_rename): New static function.
5558         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
5559
5560 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
5561
5562         * cgraph.c (thunk_adjust): Export.
5563         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
5564         * cgraphunit.c (thunk_adjust): Export.
5565         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
5566         thunks.
5567         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
5568         inlinable.
5569         * tree-inline.c (expand_call_inline): Expand thunks inline.
5570
5571 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
5572
5573         PR target/70998
5574         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
5575         (*sse2_vd_cvtss2sd): Ditto.
5576         * config/i386/i386.md
5577         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
5578         Generate *sse2_vd_cvtsd2ss pattern.
5579         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
5580         Generate *sse2_vd_cvtss2sd pattern.
5581
5582 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
5583
5584         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
5585         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
5586         users.
5587
5588 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
5589
5590         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
5591         * config/sh/sh.c: Define and declare variables on first use throughout
5592         the file.
5593         (current_function_interrupt): Change to bool type.
5594         (frame_insn): Rename to emit_frame_insn and update users.
5595         (push_regs): Use bool for 'interrupt_handler' argument.
5596         (save_schedule_s): Remove.
5597         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
5598         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
5599         targetm.asm_out.unaligned_op.di.
5600         (gen_far_branch): Remove redundant forward declaration.
5601         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
5602         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
5603         (sh_set_return_address, sh_function_ok_for_sibcall,
5604         scavenge_reg): Update comments.
5605         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
5606         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
5607         (sh_attr_renesas_p): Remove unnecessary parentheses.
5608         (branch_dest): Simplify.
5609         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
5610         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
5611         (CUMULATIVE_ARGS): Change macro to typedef.
5612         (current_function_interrupt): Change to bool type.
5613         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
5614         Surround with __cplusplus ifdef.
5615         (sh_compare_op0, sh_compare_op1): Remove.
5616         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
5617
5618 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
5619
5620         * config/arm/arm.md: (arch): Add neon.
5621         (arch_enabled): Return yes for arch neon when TARGET_NEON.
5622         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
5623         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
5624         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
5625         attributes for alt renumbering.  Mark alt 3 as non-predicable.
5626         (thumb2_movdf_vfp): Likewise.
5627
5628 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
5629
5630         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
5631         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
5632         (*andqi_1): Add preferred_for_speed attribute to disparage
5633         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
5634         (*<code>qi_1): Ditto.
5635         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
5636         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
5637         (*ashlqi3_1): Ditto.
5638         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
5639         Add preferred_for_size attribute to disparage alternative 0 and
5640         preferred_for_speed attribute to disparage alternative 1 for
5641         TARGET_PARTIAL_REG_STALL targets.
5642
5643 2016-05-07  Tom de Vries  <tom@codesourcery.com>
5644
5645         PR tree-optimization/70956
5646         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
5647         def.
5648
5649 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
5650
5651         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
5652         * config/sh/sh.c (sh_cbranch_distance): Implement it.
5653         * config/sh/sh.md (branch_zero): Remove define_attr.
5654         (define_delay): Disable delay slot if branch distance is one insn.
5655
5656 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
5657
5658         * config/i386/i386.md (LEAMODE): New mode attribute.
5659         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
5660         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
5661         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
5662         operand 2 predicate.
5663         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
5664         (*lea<mode>_general_3): Ditto.
5665         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
5666
5667 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
5668
5669         * genmddump.c (main): Convert argv from char ** to const char **.
5670
5671 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
5672
5673         * coretypes.h (OVERRIDE): New macro.
5674         (FINAL): New macro.
5675
5676 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
5677
5678         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
5679         allow coalescing if the types are compatible.
5680
5681 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
5682
5683         * pass_manager.h (pass_manager::register_pass_name): New method.
5684         (pass_manager::get_pass_by_name): New method.
5685         (pass_manager::create_pass_tab): New method.
5686         (pass_manager::m_name_to_pass_map): New field.
5687         * passes.c (name_to_pass_map): Delete global in favor of field
5688         "m_name_to_pass_map" of pass_manager.
5689         (register_pass_name): Rename from a function to...
5690         (pass_manager::register_pass_name): ...this method, updating
5691         for renaming of global "name_to_pass_map" to field
5692         "m_name_to_pass_map".
5693         (create_pass_tab): Rename from a function to...
5694         (pass_manager::create_pass_tab): ...this method, updating
5695         for renaming of global "name_to_pass_map" to field.
5696         (get_pass_by_name): Rename from a function to...
5697         (pass_manager::get_pass_by_name): ...this method.
5698         (enable_disable_pass): Convert use of get_pass_by_name to
5699         a method call, locating the pass_manager singleton.
5700
5701 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
5702
5703         * genattr-common.c (main): Convert argv from char ** to const char **.
5704         * genattr.c (main): Likewise.
5705         * genattrtab.c (main): Likewise.
5706         * genautomata.c (initiate_automaton_gen): Likewise.
5707         (main): Likewise.
5708         * gencodes.c (main): Likewise.
5709         * genconditions.c (main): Likewise.
5710         * genconfig.c (main): Likewise.
5711         * genconstants.c (main): Likewise.
5712         * genemit.c (main): Likewise.
5713         * genenums.c (main): Likewise.
5714         * genextract.c (main): Likewise.
5715         * genflags.c (main): Likewise.
5716         * genmddeps.c (main): Likewise.
5717         * genopinit.c (main): Likewise.
5718         * genoutput.c (main): Likewise.
5719         * genpeep.c (main): Likewise.
5720         * genpreds.c (main): Likewise.
5721         * genrecog.c (main): Likewise.
5722         * gensupport.c (init_rtx_reader_args_cb): Likewise.
5723         (init_rtx_reader_args): Likewise.
5724         * gensupport.h (init_rtx_reader_args_cb): Likewise.
5725         (init_rtx_reader_args): Likewise.
5726         * gentarget-def.c (main): Likewise.
5727         * read-md.c (read_md_files): Likewise.
5728         * read-md.h (read_md_files): Likewise.
5729
5730 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
5731
5732         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
5733         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
5734         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
5735         Remove unused predicate.
5736         (register_and_not_fp_reg_operand): Ditto.
5737
5738 2016-05-06  Martin Liska  <mliska@suse.cz>
5739
5740         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
5741         instead of vec as the vector is local to the function.
5742
5743 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
5744
5745         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
5746         avx512bw alternative.
5747
5748         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
5749         before the ashr<mode>3 pattern.
5750
5751         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
5752         v instead of x in vex or maybe_vex alternatives, use
5753         maybe_evex instead of vex in prefix.
5754
5755         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
5756         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
5757         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
5758         in vex or maybe_vex alternatives, use maybe_evex instead of vex
5759         in prefix.
5760
5761         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
5762         v instead of x in vex or maybe_vex alternatives, use
5763         maybe_evex instead of vex in prefix.
5764
5765         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
5766         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
5767         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
5768         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
5769         alternatives, use maybe_evex instead of vex in prefix.
5770
5771         * config/i386/sse.md (vec_interleave_lowv4sf,
5772         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
5773         v instead of x in vex or maybe_vex alternatives, use
5774         maybe_evex instead of vex in prefix.
5775
5776         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
5777         v instead of x in vex or maybe_vex alternatives, use
5778         maybe_evex instead of vex in prefix.
5779
5780         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
5781         v constraint instead of x.
5782
5783 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
5784
5785         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
5786         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
5787         equality first.
5788
5789 2016-05-06  Richard Biener  <rguenther@suse.de>
5790
5791         PR tree-optimization/70948
5792         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5793         Properly clobber all fields of va_list for __builtin_va_start.
5794
5795 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
5796
5797         PR debug/70935
5798         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
5799         loop latch destination.
5800
5801 2016-05-06  Martin Liska  <mliska@suse.cz>
5802
5803         * tree-ssa-uninit.c: Apply manual changes
5804         to the GNU coding style.
5805         (prune_uninit_phi_opnds): Rename from
5806         prune_uninit_phi_opnds_in_unrealizable_paths.
5807
5808 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5809
5810         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
5811         mspace): Remove deprecated options.
5812         * doc/invoke.texi (SH options): Remove -mspace.
5813
5814 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5815
5816         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
5817
5818 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5819
5820         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
5821         corresponding combine split pattern.
5822
5823 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5824
5825         PR target/58219
5826         * config/sh/predicates.md (long_displacement_mem_operand): New.
5827         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
5828         Add movi20, movi20s alternatives.  Adjust length attribute for
5829         alternatives.
5830         (movsi_ie): Allow for any FPU.  Adjust length attribute for
5831         alternatives.
5832         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
5833         attribute for alternatives.
5834         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
5835         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
5836         length attribute for alternatives.
5837
5838 2016-05-06  Richard Biener  <rguenther@suse.de>
5839
5840         PR tree-optimization/70960
5841         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
5842
5843 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5844
5845         PR target/52933
5846         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
5847         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
5848
5849 2016-05-06  Marek Polacek  <polacek@redhat.com>
5850
5851         PR sanitizer/70875
5852         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
5853
5854 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5855
5856         PR target/54089
5857         * config/sh/sh.md (*rotcr): Add another variant.
5858
5859 2016-05-06  Richard Biener  <rguenther@suse.de>
5860
5861         PR middle-end/70931
5862         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
5863
5864 2016-05-06  Richard Biener  <rguenther@suse.de>
5865
5866         PR middle-end/70941
5867         * fold-const.c (split_tree): Always convert to the original type
5868         before negating.
5869
5870 2016-05-06  Richard Biener  <rguenther@suse.de>
5871
5872         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
5873         (fwprop_addr): Likewise.
5874
5875 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
5876
5877         PR target/70873
5878         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
5879         New prototype.
5880         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
5881         * config/i386/i386.md (push mem splitter): Use find_constant_src in
5882         the splitter condition.
5883         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
5884         the splitter condition.
5885         (FP float_extend load splitter): Ditto.
5886
5887 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
5888
5889         * config/i386/i386.md (peehole2 patterns): Change true_regnum
5890         to REGNO in all peephole2 patterns.
5891         (post-reload splitters): Change true_regnum to REGNO in
5892         post-reload splitters.
5893         (zero_extend splitters): Use general_reg_operand and
5894         nonimmediate_gr_operand predicates.
5895
5896 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
5897
5898         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
5899         v constraint instead of x.
5900
5901 2016-05-05  Alan Modra  <amodra@gmail.com>
5902
5903         PR target/68662
5904         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
5905         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
5906         TARGET_NO_FP_IN_TOC for -mrelocatable.
5907         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
5908         TARGET_RELOCATABLE test.
5909         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
5910         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
5911         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5912         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
5913         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
5914         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5915         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
5916         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
5917         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
5918         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
5919         Likewise.
5920         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
5921         (rs6000_stack_info): Likewise.
5922         (rs6000_elf_asm_out_constructor): Likewise.
5923         (rs6000_elf_asm_out_destructor): Likewise.
5924         (rs6000_elf_declare_function_name): Likewise.
5925         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
5926         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
5927         Don't define.
5928
5929 2016-05-05  Alan Modra  <amodra@gmail.com>
5930
5931         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
5932
5933 2016-05-05  Alan Modra  <amodra@gmail.com>
5934
5935         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
5936         out-of-line gpr restore for one or two regs if that would add
5937         a save of lr.
5938
5939 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
5940
5941         PR target/70873
5942         * config/i386/i386.md
5943         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
5944         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
5945         as operand 0 predicate.
5946         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
5947         Ditto.
5948         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
5949         Ditto.  Emit the pattern using RTX.
5950
5951         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
5952         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
5953         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
5954         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
5955         Ditto.
5956         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
5957         sse_reg_operand as operand 0 predicate.
5958
5959         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
5960         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
5961         instead of gen_rtx_REG.
5962         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
5963         Ditto.
5964
5965 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
5966
5967         * function.c (emit_use_return_register_into_block): Delete.
5968         (gen_return_pattern): Delete.
5969         (emit_return_into_block): Delete.
5970         (active_insn_between): Delete.
5971         (convert_jumps_to_returns): Delete.
5972         (emit_return_for_exit): Delete.
5973         (thread_prologue_and_epilogue_insns): Delete all code dealing with
5974         simple_return for shrink-wrapped blocks.
5975         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
5976         end of blocks that need one.
5977         (get_unconverted_simple_return): Delete.
5978         (convert_to_simple_return): Delete.
5979         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
5980         (convert_to_simple_return): Ditto.
5981
5982 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
5983
5984         * cfgcleanup.c (bb_is_just_return): New function.
5985         (try_optimize_cfg): Simplify jumps to return, branches to return,
5986         and branches around return.
5987
5988 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
5989
5990         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
5991         branch to a return.
5992
5993 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
5994
5995         PR c++/70906
5996         PR c++/70933
5997         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
5998         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
5999         assert flags & OEP_HASH_CHECK, instead of asserting it
6000         never happens.  Handle TARGET_EXPR.
6001         * fold-const.c (operand_equal_p): For hash verification,
6002         or in OEP_HASH_CHECK into flags.
6003
6004 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
6005
6006         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
6007         comment.
6008         (compute_samebase_partition_bases): Fix typo.
6009
6010 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
6011
6012         * config/i386/sse.md (vec_interleave_highv8sf,
6013         vec_interleave_lowv8sf, vec_interleave_highv4df,
6014         vec_interleave_lowv4df): Remove constraints from expanders.
6015
6016         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
6017
6018 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
6019
6020         * tree-inline.c (expand_call_inline): Fix path dealing with
6021         making lhs of call statement undefined.
6022
6023 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
6024
6025         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
6026         Check availability on NODE, too.
6027         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
6028         (cgraph_node::call_for_symbol_and_aliases): Likewise.
6029         (varpool_node::call_for_symbol_and_aliase): Likewise.
6030         * ipa-pure-const.c (add_new_function): Analyze all bodies.
6031         (propagate_pure_const): Propagate across interposable functions, too.
6032         (skip_function_for_local_pure_const): Do not skip interposable bodies
6033         with aliases.
6034         (pass_local_pure_const::execute): Update.
6035
6036 2016-05-04  Marek Polacek  <polacek@redhat.com>
6037
6038         * doc/invoke.texi: Document -Wdangling-else.
6039
6040 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6041
6042         * config.gcc: Error out when conflicting multilib is detected.  Do not
6043         loop over multilibs since no combination is legal.
6044
6045 2016-05-04  Alan Modra  <amodra@gmail.com>
6046
6047         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
6048         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
6049         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
6050         Align .toc.
6051
6052 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
6053
6054         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
6055         Clean up p5600 comments.
6056
6057 2016-05-04  Richard Biener  <rguenther@suse.de>
6058
6059         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
6060         constructor simplifications.
6061         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
6062
6063 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
6064
6065         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
6066         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
6067         result.set_rtx is null instead of aborting.
6068         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
6069         Always enable.
6070         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
6071         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
6072         *mov<mode>_store_postinc): New patterns.
6073
6074 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
6075
6076         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
6077         as commutative.  Check both conversions are NOP.
6078         ((A & B) OP (C & B)): Remove.
6079
6080 2016-05-04  Alan Modra  <amodra@gmail.com>
6081
6082         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
6083
6084 2016-05-04  Alan Modra  <amodra@gmail.com>
6085
6086         PR target/70866
6087         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
6088         when cr2,3,4 are all fixed regs.
6089
6090 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
6091
6092         PR rtl-optimization/57193
6093         * opts.c (default_options_table): Revert OPT_frename_registers change.
6094         * doc/invoke.texi (-frename-registers, -O2): Likewise.
6095
6096 2016-05-03  Martin Sebor  <msebor@redhat.com>
6097
6098         PR c++/66561
6099         * builtins.c (fold_builtin_FILE): New function.
6100         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
6101         (fold_builtin_0): Call them.
6102         * gimplify.c (gimplify_call_expr): Remove the handling of
6103         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
6104
6105         PR c++/66561
6106         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
6107         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
6108         constants.
6109
6110         PR c++/66639
6111         * doc/extend.texi (Function Names as Strings): Update __func__,
6112         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
6113         constants.
6114
6115 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
6116             Richard Biener  <rguenther@suse.de>
6117
6118         PR tree-optimization/70916
6119         * tree-if-conv.c: Include cfganal.h.
6120         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
6121         and remove_fake_exit_edges around the optimization pass.
6122
6123 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
6124
6125         * cgraph.c (symbol_table::create_edge): Set inline_failed.
6126         (cgraph_edge::make_direct): Likewise.
6127         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
6128         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
6129         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
6130         (CIF_THUNK): New code.
6131         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
6132         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
6133         (compute_inline_parameters): Set inline_failed for thunks.
6134         (inline_analyze_function): Cleanup.
6135         * ipa-inline.c (can_inline_edge_p): Do not deal with
6136         call_stmt_cannot_inline_p.
6137         (can_early_inline_edge_p): Likewise.
6138         (early_inliner): Initialize inline_failed.
6139         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
6140
6141 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
6142
6143         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
6144         from nonimm_ssenomem_operand.
6145         (nonimm_ssenomem_operand): New predicate.
6146         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
6147         as operand 0 predicate.
6148         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
6149         Disable unsupported alternatives using "enabled" attribute.
6150         Use register_ssemem_operand as operand 0 predicate.
6151         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
6152
6153 2016-05-03  Marek Polacek  <polacek@redhat.com>
6154
6155         PR c/70859
6156         * input.c (expansion_point_location): New function.
6157         * input.h (expansion_point_location): Declare.
6158
6159 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
6160
6161         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
6162         occurence with frame_offset_ ones.
6163
6164 2016-05-03  Alan Modra  <amodra@gmail.com>
6165
6166         PR rtl-optimization/70890
6167         * ira.c (combine_and_move_insns): When moving def_insn, remove
6168         equivs on use_insn.
6169
6170 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6171
6172         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
6173         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
6174         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
6175         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
6176
6177 2016-05-03  Alan Modra  <amodra@gmail.com>
6178
6179         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
6180         for SAVE_MULTIPLE/STORE_MULTIPLE.
6181
6182 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
6183
6184         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
6185         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
6186
6187 2016-05-03  Richard Biener  <rguenther@suse.de>
6188
6189         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
6190         default true.
6191         (gimplify_arg): Likewise.
6192         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
6193         re-writing the result to a decl if required.
6194         (internal_get_tmp_var): Add allow_ssa parameter
6195         and override into_ssa with it.
6196         (get_formal_tmp_var): Adjust.
6197         (get_initialized_tmp_var): Add allow_ssa parameter.
6198         (gimplify_arg): Add allow_ssa parameter and avoid generating
6199         SSA names for the result false.
6200         (gimplify_call_expr): If the call may return twice do not
6201         gimplify parameters into SSA.
6202         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
6203         (gimplify_modify_expr): Adjust assert.  For noreturn calls
6204         with a SSA name LHS adjust its def.
6205         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
6206         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
6207         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
6208         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
6209         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
6210         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
6211         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
6212         (optimize_target_teams): Do not allow SSA names for clause operands.
6213         (gimplify_expr): Likewise for where we mark the result addressable.
6214         * passes.def (pass_init_datastructures): Remove.
6215         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
6216         (rewrite_stmt): Likewise.
6217         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
6218         (replace_locals_op): Replace SSA names.
6219         (copy_gimple_seq_and_replace_locals): Init src_cfun.
6220         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
6221         * cgraph.c (release_function_body): Free CFG annotations only
6222         when we have a CFG.  Simplify.
6223         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
6224         force_gimple_operand instead of get_initialized_tmp_var.
6225         * tree-pass.h (make_pass_init_datastructures): Remove.
6226         * tree-ssa.c (execute_init_datastructures): Remove.
6227         (pass_data_init_datastructures): Likewise.
6228         (class pass_init_datastructures): Likewise.
6229         (make_pass_init_datastructures): Likewise.
6230         * omp-low.c (create_omp_child_function): Init SSA data structures.
6231         (grid_expand_target_grid_body): Likewise.
6232         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
6233         name before adding it to names_to_release.
6234         (remove_bb): Always release SSA defs.
6235         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
6236         before dereferencing it.
6237         * cgraphunit.c (init_lowered_empty_function): Always
6238         int SSA data structures.
6239         * tree-ssanames.c (release_defs): Remove assert that we are in
6240         SSA form.
6241         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
6242
6243 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
6244             Uros Bizjak  <ubizjak@gmail.com>
6245
6246         PR rtl-optimization/70467
6247         * config/i386/predicates.md (x86_64_hilo_int_operand,
6248         x86_64_hilo_general_operand): New predicates.
6249         * config/i386/constraints.md (Wd): New constraint.
6250         * config/i386/i386.md (mode attr di): Use Wd instead of e.
6251         (general_hilo_operand): New mode attr.
6252         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
6253         instead of <general_operand>.
6254         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
6255         x86_64_hilo_general_operand instead of <general_operand>.
6256
6257 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
6258
6259         PR tree-optimization/70916
6260         * tree-if-conv.c (constant_or_ssa_name): Removed.
6261         (fold_build_cond_expr): Use is_gimple_val instead of
6262         constant_or_ssa_name.
6263
6264         PR tree-optimization/70916
6265         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
6266         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
6267
6268         PR target/49244
6269         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
6270         (optimize_atomic_bit_test_and): New function.
6271         (pass_fold_builtins::execute): Use it.
6272         * optabs.def (atomic_bit_test_and_set_optab,
6273         atomic_bit_test_and_complement_optab,
6274         atomic_bit_test_and_reset_optab): New optabs.
6275         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
6276         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
6277         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
6278         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
6279         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
6280         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
6281         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
6282         * doc/md.texi (atomic_bit_test_and_set@var{mode},
6283         atomic_bit_test_and_complement@var{mode},
6284         atomic_bit_test_and_reset@var{mode}): Document.
6285         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
6286         atomic_bit_test_and_complement<mode>,
6287         atomic_bit_test_and_reset<mode>): New expanders.
6288         (atomic_bit_test_and_set<mode>_1,
6289         atomic_bit_test_and_complement<mode>_1,
6290         atomic_bit_test_and_reset<mode>_1): New insns.
6291
6292 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
6293
6294         PR rtl-optimization/70687
6295         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
6296         instead of unsigned HOST_WIDE_INT.
6297
6298 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
6299
6300         PR rtl-optimization/44281
6301         * hard-reg-set.h (struct target_hard_regs): New field
6302         x_fixed_nonglobal_reg_set.
6303         (fixed_nonglobal_reg_set): New macro.
6304         * reginfo.c (init_reg_sets_1): Initialize it.
6305         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
6306         of fixed_reg_set.
6307         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
6308
6309 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
6310
6311         PR tree-optimization/56541
6312         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
6313         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
6314         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
6315         (any_complicated_phi): new static variable.
6316         (aggressive_if_conv): delete.
6317         (if_convertible_phi_p): support phis with more than two arguments.
6318         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
6319         critical pred edges.
6320         (ifcvt_split_critical_edges): support phis with more than two
6321         arguments by checking new parameter.  only split critical edges
6322         if needed.
6323         (tree_if_conversion): handle simd pragma marked loop using new
6324         local variable aggressive_if_conv.  check any_complicated_phi.
6325
6326 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
6327
6328         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
6329         before using it.
6330
6331 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
6332
6333         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
6334         cbase.
6335
6336 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
6337
6338         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
6339         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
6340         define_insn_and_split.
6341         (mulsi3_i): New define_insn_and_split.
6342         (mulsi3_call): Convert to define_insn.
6343         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
6344         Remove constraints.
6345
6346 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
6347
6348         * machmode.h (mode_complex): Add support to give the complex mode
6349         for a given mode.
6350         (GET_MODE_COMPLEX_MODE): Likewise.
6351         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
6352         stored by build_complex_type and gfc_build_complex_type instead of
6353         trying to figure out the appropriate mode based on the size. Raise
6354         an assertion error, if the type was not set.
6355         * genmodes.c (struct mode_data): Add field for the complex type of
6356         the given type.
6357         (blank_mode): Likewise.
6358         (make_complex_modes): Remember the complex mode created in the
6359         base type.
6360         (emit_mode_complex): Write out the mode_complex array to map a
6361         type mode to the complex version.
6362         (emit_insn_modes_c): Likewise.
6363         * tree.c (build_complex_type): Set the complex type to use before
6364         calling layout_type.
6365         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
6366         support for __float128 complex datatypes.
6367         (rs6000_hard_regno_mode_ok): Likewise.
6368         (rs6000_setup_reg_addr_masks): Likewise.
6369         (rs6000_complex_function_value): Likewise.
6370         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
6371         __float128 and __ibm128 complex.
6372         (FLOAT128_IBM_P): Likewise.
6373         (ALTIVEC_ARG_MAX_RETURN): Likewise.
6374         * doc/extend.texi (Additional Floating Types): Document that
6375         -mfloat128 must be used to enable __float128.  Document complex
6376         __float128 and __ibm128 support.
6377
6378 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
6379
6380         PR target/49244
6381         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
6382         char/short arguments promoted to int because of promote_prototypes.
6383
6384 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
6385
6386         * config/i386/predicates.md (register_ssemem_operand): New predicate.
6387         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
6388         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
6389         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
6390         alternatives using "enabled" attribute.  Use register_ssemem_operand
6391         as operand 1 predicate.
6392         (*cmpi<unord>xf_i387): Split XFmode pattern from
6393         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
6394         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
6395         *absneg<mode>2_i387.  Disable unsupported alternatives using
6396         "enabled" attribute.
6397         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
6398
6399 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
6400
6401         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
6402         marker.
6403         (oacc_loop_process): Check mask for loop termination.
6404
6405 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
6406
6407         * cif-code.def (CIF_THUNK): Add.
6408         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
6409         accidental change.
6410
6411 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
6412
6413         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
6414         (dump_inline_summary): Dump it.
6415         (fp_expression_p): New predicate.
6416         (estimate_function_body_sizes): Use it.
6417         (inline_merge_summary): Merge fp_expressions.
6418         (inline_read_section): Read fp_expressions.
6419         (inline_write_summary): Write fp_expressions.
6420         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
6421         codegen boundary if either caller or callee is !fp_expressions.
6422         * ipa-inline.h (inline_summary): Add fp_expressions.
6423         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
6424         to fp_expressions be sure the fp generation flags are updated.
6425
6426 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
6427
6428         PR rtl-optimization/70467
6429         * cse.c (cse_insn): Handle no-op MEM moves after folding.
6430
6431         PR rtl-optimization/70467
6432         * ipa-pure-const.c (check_call): Handle internal calls even in
6433         ipa mode like in local mode.
6434
6435 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6436
6437         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
6438
6439 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
6440
6441         * match.pd (X u< X, X u> X): New transformations.
6442
6443 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
6444
6445         * flag-types.h (enum warn_strict_overflow_code): Move ...
6446         * coretypes.h: ... here.
6447         * fold-const.h (fold_overflow_warning): Declare.
6448         * fold-const.c (fold_overflow_warning): Make non-static.
6449         (fold_comparison): Move the transformation of X +- C1 CMP C2
6450         into X CMP C2 -+ C1 ...
6451         * match.pd: ... here.
6452         * gimple-fold.c (fold_stmt_1): Protect with
6453         fold_defer_overflow_warnings.
6454
6455 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
6456
6457         * omp-low.c (struct oacc_loop): Add 'inner' field.
6458         (new_oacc_loop_raw): Initialize it to zero.
6459         (oacc_loop_fixed_partitions): Initialize it.
6460         (oacc_loop_auto_partitions): Partition outermost loop to outermost
6461         available partitioning.
6462
6463 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
6464
6465         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
6466         register_operand.
6467         (umulsidi3): Likewise.
6468         (indirect_jump): Fix jump instruction assembly patterns.
6469
6470 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
6471
6472         PR target/70860
6473         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
6474         (nvptx_function_value): Assert non-NULL cfun.
6475
6476 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
6477
6478         PR rtl-optimization/70886
6479         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
6480
6481         * cselib.h (rtx_equal_for_cselib_1): Declare.
6482         (rtx_equal_for_cselib_p: New inline function.
6483         * cselib.c (rtx_equal_for_cselib_p): Delete.
6484         (rtx_equal_for_cselib_1): Make public.
6485
6486 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
6487
6488         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
6489         (register_mixssei387nonimm_operand): Remove predicate.
6490         * config/i386/i386.md (*fop_<mode>_comm): Merge from
6491         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
6492         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
6493         for TARGET_MIX_SSE_I387 alternatives.
6494         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
6495         Disable unsupported alternatives using "enabled" attribute.  Use
6496         nonimm_ssenomem_operand as operand 1 predicate.  Also check
6497         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
6498
6499 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
6500
6501         * tree.c (cst_and_fits_in_hwi): Simplify.
6502
6503 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
6504
6505         * tree.h (wi::to_wide): New function.
6506         * expr.c (expand_expr_real_1): Use wi::to_wide.
6507         * fold-const.c (int_const_binop_1): Likewise.
6508         (extract_muldiv_1): Likewise.
6509
6510 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
6511
6512         * wide-int.h: Update offset_int and widest_int documentation.
6513         (WI_SIGNED_SHIFT_RESULT): New macro.
6514         (wi::binary_shift): Define signed_shift_result_type for
6515         shifts on offset_int- and widest_int-like types.
6516         (generic_wide_int): Support <<= and >>= if << and >> are supported.
6517         * tree.h (int_bit_position): Use shift operators instead of wi::
6518          shifts.
6519         * alias.c (adjust_offset_for_component_ref): Likewise.
6520         * expr.c (get_inner_reference): Likewise.
6521         * fold-const.c (fold_comparison): Likewise.
6522         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
6523         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
6524         * tree-dfa.c (get_ref_base_and_extent): Likewise.
6525         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6526         (stmt_kills_ref_p): Likewise.
6527         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
6528         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
6529         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6530         (ao_ref_init_from_vn_reference): Likewise.
6531
6532 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
6533
6534         * wide-int.h: Update offset_int and widest_int documentation.
6535         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
6536         (wi::binary_traits): Allow ordered comparisons between offset_int and
6537         offset_int, between widest_int and widest_int, and between either
6538         of these types and basic C types.
6539         (operator <, <=, >, >=): Define for the same combinations.
6540         * tree.h (tree_int_cst_lt): Use comparison operators instead
6541         of wi:: comparisons.
6542         (tree_int_cst_le): Likewise.
6543         * gimple-fold.c (fold_array_ctor_reference): Likewise.
6544         (fold_nonarray_ctor_reference): Likewise.
6545         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
6546         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
6547         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
6548         * tree-sra.c (completely_scalarize): Likewise.
6549         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
6550         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
6551         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
6552         (check_for_binary_op_overflow): Likewise.
6553         (search_for_addr_array): Likewise.
6554         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
6555
6556 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
6557
6558         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
6559         (arc_save_restore): Likewise.
6560         (arc_dwarf_register_span): Likewise.
6561         (arc_output_pic_addr_const): Initialize suffix variable.
6562
6563 2016-05-02  Martin Liska  <mliska@suse.cz>
6564
6565         * symbol-summary.h (function_summary::function_summary):
6566         Remove checking assert for all cgraph nodes.
6567         (function_summary::get): Check summary_uid.
6568         (symtab_insertion): Check summary_uid.
6569
6570 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
6571
6572         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
6573         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
6574         bmaskn instruction.
6575         (arc_dwarf_register_span): Remove enum keyword.
6576         (compact_memory_operand_p): New function.
6577         * config/arc/arc.h (reg_class): Add code density register classes.
6578         (REG_CLASS_NAMES): Likewise.
6579         (REG_CLASS_CONTENTS): Likewise.
6580         * config/arc/arc.md (*movqi_insn): Add code density instructions.
6581         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
6582         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
6583         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
6584         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
6585         constraints.
6586         (h, Rcd, Rsd, Rzd): New register constraints.
6587         (T): Use compact_memory_operand_p function.
6588         * config/arc/predicates.md (compact_load_memory_operand): Remove.
6589
6590 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
6591
6592         * config/sh/sh.md (*negnegt, *movtt): Remove.
6593
6594 2016-05-02  Marek Polacek  <polacek@redhat.com>
6595             Tom de Vries  <tom@codesourcery.com>
6596
6597         PR tree-optimization/70700
6598         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
6599         bigger than FIRST_REF_NODE.
6600
6601 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
6602
6603         PR target/52898
6604         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
6605         TARGET_CMPEQDI_T.
6606         (prepare_cbranch_operands): Don't use scratch register.  Assume that
6607         function is used when pseudos can be created.
6608         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
6609         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
6610         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
6611         define_expand.  Allow it only when pseudos can be created.
6612         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
6613
6614 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
6615
6616         * config/i386/constraints.md (BC): Only allow -1 operands.
6617         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
6618         Add "enabled" attribute.  Update XI mode attribute calculation.
6619         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
6620         (*movoi_internal_avx): Update XI mode attribute calculation.
6621         (*movti_internal): Ditto.
6622
6623 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
6624
6625         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
6626         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
6627
6628 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
6629
6630         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
6631         statement on instruction code.  Remove trailing spaces.
6632         (altivec_expand_stv_builtin): Likewise.
6633
6634 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
6635
6636         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
6637         (TARGET_FPU_DOUBLE): Simplify.
6638         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
6639         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
6640         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
6641         with 'TARGET_FPU_DOUBLE'.
6642         * config/sh/sh.md: Likewise.
6643
6644 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
6645
6646         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
6647         SH_DIV_STR_FOR_SIZE): Remove.
6648         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
6649         SH_DIV_STR_FOR_SIZE): Remove.
6650
6651 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
6652
6653         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
6654         logical_reg_operand): Delete.
6655         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
6656         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
6657         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
6658         match_operand and match_test.
6659         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
6660         variables on their first use.  Return bool values.
6661         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
6662         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
6663         arith_reg_operand for input operand.  Remove empty constraints.
6664         (xorsi3): Delete.
6665         (*xorsi3_compact): Rename to xorsi3.
6666         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
6667         (*zero_extend<mode>si2_disp_mem): Update comment.
6668         (mov_nop): Delete.
6669
6670 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
6671
6672         * config/sh/t-sh: Remove SH5 support.
6673         * config.gcc: Likewise.
6674         * configure: Likewise.
6675
6676 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6677
6678         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
6679
6680 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
6681
6682         * config/sh/sh.c (register_sh_passes, sh_option_override,
6683         sh_print_operand, prepare_move_operands,
6684         sh_can_follow_jump): Remove TARGET_SH1 checks.
6685         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
6686         PROMOTE_MODE): Likewise.
6687         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
6688         movdi): Likewise.
6689
6690 2016-04-30  Alan Modra  <amodra@gmail.com>
6691
6692         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
6693         restoring when fixed_reg_p, but allow out-of-line or stmw save.
6694         Check for user regs later to avoid unnecessary looping over regs.
6695         Merge user reg check with non-saved reg check.  Don't force
6696         inline VR restore when static chain used.
6697         (rs6000_frame_related): Omit eh_frame info for user regs when
6698         saving.
6699         (fixed_regs_p): Delete.
6700
6701 2016-04-30  Alan Modra  <amodra@gmail.com>
6702
6703         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
6704         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
6705         Update all uses.
6706
6707 2016-04-30  Alan Modra  <amodra@gmail.com>
6708
6709         PR target/69645
6710         * config/rs6000/rs6000.c (fixed_reg_p): New function.
6711         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
6712         Update all uses.
6713
6714 2016-04-30  Alan Modra  <amodra@gmail.com>
6715
6716         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
6717         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
6718         flag_pic test for Darwin.
6719
6720 2016-04-30  Alan Modra  <amodra@gmail.com>
6721
6722         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
6723         throw_calls_crossed.
6724         (REG_FREQ_CALLS_CROSSED): Delete.
6725         (REG_N_THROWING_CALLS_CROSSED): Delete.
6726         * regstat.c (regstat_bb_compute_ri): Don't calculate
6727         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
6728         (dump_reg_info): Don't print call cross frequency.
6729         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
6730         and REG_N_THROWING_CALLS_CROSSED.
6731
6732 2016-04-30  Alan Modra  <amodra@gmail.com>
6733
6734         * regs.h (struct reg_info_t): Delete live_length.
6735         (REG_LIVE_LENGTH): Delete macro.
6736         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
6737         local_live, local_processed and local_live_last_luid params.
6738         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
6739         Formatting fixes.
6740         (regstat_compute_ri): Adjust for above.  Don't set
6741         REG_LIVE_LENGTH.
6742         (dump_reg_info): Don't print live length.
6743         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
6744         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
6745         Localize loop_depth var.
6746
6747 2016-04-30  Alan Modra  <amodra@gmail.com>
6748
6749         * ira.c (enum valid_equiv): New.
6750         (validate_equiv_mem): Return enum.
6751         (update_equiv_mem): Create replacement in more cases.
6752         (add_store_equivs): Update validate_equiv_mem call.
6753
6754 2016-04-30  Alan Modra  <amodra@gmail.com>
6755
6756         * ira.c (combine_and_move_insns): Rather than scanning insns,
6757         use DF infrastucture to find use and def insns.
6758
6759 2016-04-30  Alan Modra  <amodra@gmail.com>
6760
6761         ira.c (combine_and_move_insns): Move invariant conditions..
6762         (ira.c): ..to here.  Call combine_and_move_insns before
6763         add_store_equivs.  Call grow_reg_equivs later.  Allocate
6764         req_equiv later using max_reg_num() rather than global max_regno.
6765         (contains_replace_regs): Delete.
6766         (add_store_equivs): Remove contains_replace_regs test.
6767
6768 2016-04-30  Alan Modra  <amodra@gmail.com>
6769
6770         * ira.c (struct equiv_mem_data): New.
6771         (equiv_mem, equiv_mem_modified): Delete static vars.
6772         (validate_equiv_mem_from_store): Use "data" param to communicate..
6773         (validate_equiv_mem): ..from here.
6774
6775 2016-04-30  Alan Modra  <amodra@gmail.com>
6776
6777         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
6778         split out from..
6779         (update_reg_equivs): ..here.  Move allocation and freeing of
6780         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
6781         end_alias_analysis to..
6782         (ira): ..here.
6783
6784 2016-04-30  Alan Modra  <amodra@gmail.com>
6785
6786         * ira.c (pdx_subregs): Delete.
6787         (struct equivalence): Add pdx_subregs field.
6788         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
6789         pdx_subregs access.
6790         (update_equiv_regs): Don't create or free pdx_subregs.  Update
6791         pdx_subregs access.
6792
6793 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6794
6795         * config/rs6000/altivec.h: Change definitions of vec_xl and
6796         vec_xst.
6797         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
6798         (LD_ELEMREV_V2DI): New.
6799         (LD_ELEMREV_V4SF): New.
6800         (LD_ELEMREV_V4SI): New.
6801         (LD_ELEMREV_V8HI): New.
6802         (LD_ELEMREV_V16QI): New.
6803         (ST_ELEMREV_V2DF): New.
6804         (ST_ELEMREV_V2DI): New.
6805         (ST_ELEMREV_V4SF): New.
6806         (ST_ELEMREV_V4SI): New.
6807         (ST_ELEMREV_V8HI): New.
6808         (ST_ELEMREV_V16QI): New.
6809         (XL): New.
6810         (XST): New.
6811         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6812         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
6813         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
6814         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
6815         (altivec_expand_builtin): Add handling for
6816         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
6817         (rs6000_invalid_builtin): Add error-checking for
6818         RS6000_BTM_P9_VECTOR.
6819         (altivec_init_builtins): Define builtins used to implement vec_xl
6820         and vec_xst.
6821         (rs6000_builtin_mask_names): Define power9-vector.
6822         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
6823         (RS6000_BTM_P9_VECTOR): Define.
6824         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
6825         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
6826         (vsx_ld_elemrev_v2df): Likewise.
6827         (vsx_ld_elemrev_v4sf): Likewise.
6828         (vsx_ld_elemrev_v4si): Likewise.
6829         (vsx_ld_elemrev_v8hi): Likewise.
6830         (vsx_ld_elemrev_v16qi): Likewise.
6831         (vsx_st_elemrev_v2df): Likewise.
6832         (vsx_st_elemrev_v2di): Likewise.
6833         (vsx_st_elemrev_v4sf): Likewise.
6834         (vsx_st_elemrev_v4si): Likewise.
6835         (vsx_st_elemrev_v8hi): Likewise.
6836         (vsx_st_elemrev_v16qi): Likewise.
6837         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
6838         grammar.
6839
6840 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
6841
6842         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
6843         out into ...
6844         (simplify_control_stmt_condition_1): ... here.  Recurse into
6845         BIT_AND_EXPRs and BIT_IOR_EXPRs.
6846
6847 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
6848
6849         PR target/69810
6850         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
6851         (zero_extendqi<mode>2_dot): Revert earlier conversion from
6852         define_insn_and_split to define_insn.
6853         (zero_extendqi<mode>2_dot2): Same.
6854         (extendqi<mode>2_dot): Same.
6855         (extendqi<mode>2_dot2): Same.
6856
6857 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
6858
6859         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
6860         (probe_stack): New expander.
6861         (probe_stack_<mode>): New insn pattern.
6862
6863 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
6864
6865         * config/i386/i386.md
6866         (operations with memory inputs setting flags peephole2):
6867         Remove uneeded REG_P checks.  Cleanup pattern generation.
6868
6869 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
6870
6871         * tree-vect-loop.c (vect_transform_loop): Fix
6872         nb_iterations_upper_bound computation for vectorized loop.
6873
6874 2016-04-29  Marek Polacek  <polacek@redhat.com>
6875             Jakub Jelinek  <jakub@redhat.com>
6876
6877         PR sanitizer/70342
6878         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
6879         TARGET_EXPR_SLOT as a base.
6880
6881 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
6882
6883         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
6884         with 'rCm2' constraints to limit possible immediate size.
6885         (*load_zeroextendqisi_update): Likewise.
6886         (*load_signextendqisi_update): Likewise.
6887         (*loadhi_update): Likewise.
6888         (*load_zeroextendhisi_update): Likewise.
6889         (*load_signextendhisi_update): Likewise.
6890         (*loadsi_update): Likewise.
6891         (*loadsf_update): Likewise.
6892
6893 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
6894
6895         * config/i386/predicates.md (constm1_operand): Fix comparison.
6896
6897 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
6898
6899         * testsuite/gcc.target/arc/ieee_eq.c: New test.
6900
6901 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
6902
6903         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
6904         remaining SH5 related settings.
6905         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
6906         shmedia_prepare_call_address): Delete.
6907         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
6908         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
6909         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
6910         UNSUPPORTED_SH2A): Remove m5 checks.
6911         (sh_divide_strategy_e): Remove SH5 division strategies.
6912         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
6913         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
6914
6915 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6916
6917         * config/s390/s390.c (s390_rtx_costs): Update documentation.
6918
6919 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6920
6921         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
6922         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
6923         Change lder to ldr.
6924         * config/s390/vector.md ("mov<mode>"): Likewise.
6925
6926 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
6927
6928         * config/s390/constraints.md ("U", "W"): Invoke
6929         s390_mem_constraint with "ZR" and "ZT".
6930         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
6931         addresses when using LRA.  Accept also short displacements for S
6932         and T constraints.  Do not check for long displacement target for
6933         S and T constraints.
6934         (s390_mem_constraint): Remove handling of U and W constraints.
6935         * config/s390/s390.md (various patterns): Remove the short
6936         displacement constraints (Q and R) if a long displacement
6937         constraint is present.  Add longdisp as required CPU capability.
6938         * config/s390/vector.md: Likewise.
6939         * config/s390/vx-builtins.md: Likewise.
6940
6941 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6942
6943         PR target/60040
6944         * reload1.c (reload): Call finish_spills before
6945         restarting reload loop. Skip select_reload_regs
6946         if update_eliminables_and_spill returns true.
6947
6948 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
6949
6950         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
6951         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
6952         (umulhisi3_imm): Update predicates and constraint letters.
6953         (umulhisi3_reg): Declare instruction as commutative.
6954         * config/arc/constraints.md (J12, J16): New constraints.
6955         * config/arc/predicates.md (short_unsigned_const_operand): New
6956         predicate.
6957         (arc_short_operand): Likewise.
6958         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
6959
6960 2016-04-29  Richard Biener  <rguenther@suse.de>
6961
6962         PR tree-optimization/13962
6963         PR tree-optimization/65686
6964         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
6965         * tree-ssa-alias.c (ptrs_compare_unequal): New function
6966         using PTA to compare pointers.
6967         * match.pd: Add pattern for pointer equality compare simplification
6968         using ptrs_compare_unequal.
6969
6970 2016-04-29  Richard Biener  <rguenther@suse.de>
6971
6972         * stor-layout.c (layout_type): Do not build a pointer-to-element
6973         type for arrays.
6974
6975 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
6976
6977         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
6978         Use SWI mode iterator.  Use general_reg_operand predicate.
6979         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
6980         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
6981         predicates.
6982
6983 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
6984
6985         PR middle-end/70843
6986         * fold-const.c (operand_equal_p): Don't verify hash value equality
6987         if arg0 == arg1.
6988         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
6989         and OMP_CLAUSE.
6990
6991 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
6992
6993         PR target/70858
6994         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
6995         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
6996         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
6997         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
6998         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
6999
7000 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
7001
7002         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
7003         to info.  Don't initialize separate fields to 0.  Clean up
7004         formatting a bit.
7005
7006 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
7007
7008         * config/i386/i386.md (peephole2s for operations with memory inputs):
7009         Use SWI mode iterator.
7010         (peephole2s for operations with memory outputs): Ditto.
7011         Do not check for stack checking probe.
7012
7013         (probe_stack): Remove expander.
7014
7015 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
7016             Andrew Burgess  <andrew.burgess@embecosm.com>
7017
7018         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
7019         operands as 32-bits.
7020
7021 2016-04-28  Jason Merrill  <jason@redhat.com>
7022
7023         * gdbinit.in: Skip line-map.h.
7024
7025 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
7026             Andrew Burgess  <andrew.burgess@embecosm.com>
7027
7028         * config/arc/arc.c (arc_conditional_register_usage): Take
7029         TARGET_RRQ_CLASS into account.
7030         (arc_print_operand): Support printing 'p' and 's' operands.
7031         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
7032         as 0.
7033         (TARGET_RRQ_CLASS): Define.
7034         (IS_POWEROF2_OR_0_P): Define.
7035         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
7036         alternatives.
7037         (*tst_movb): New define_insn.
7038         (*tst): Avoid recognition if it could prevent '*tst_movb'
7039         combination; replace c/CnL with c/Chs alternative.
7040         (*tst_bitfield_tst): New define_insn.
7041         (*tst_bitfield_asr): New define_insn.
7042         (*tst_bitfield): New define_insn.
7043         (andsi3_i): Add Rrq variant.
7044         (extzv): New define_expand.
7045         (insv): New define_expand.
7046         (*insv_i): New define_insn.
7047         (*movb): New define_insn.
7048         (*movb_signed): New define_insn.
7049         (*movb_high): New define_insn.
7050         (*movb_high_signed): New define_insn.
7051         (*movb_high_signed + 1): New define_split pattern.
7052         (*mrgb): New define_insn.
7053         (*mrgb + 1): New define_peephole2 pattern.
7054         (*mrgb + 2): New define_peephole2 pattern.
7055         * config/arc/arc.opt (mbitops): New option for nps400, uses
7056         TARGET_NPS_BITOPS_DEFAULT.
7057         * config/arc/constraints.md (q): Make register class conditional.
7058         (Rrq): New register constraint.
7059         (Chs): New constraint.
7060         (Clo): New constraint.
7061         (Chi): New constraint.
7062         (Cbf): New constraint.
7063         (Cbn): New constraint.
7064         (C18): New constraint.
7065         (Cbi): New constraint.
7066
7067 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
7068
7069         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
7070         dst->popcount.
7071         (bitmap_intersection_of_preds): Ditto.
7072         (bitmap_union_of_succs): Ditto.
7073         (bitmap_union_of_preds): Ditto.
7074         * sbitmap.c (do_popcount): Delete.
7075         (BITMAP_DEBUGGING): Delete.
7076         (sbitmap_verify_popcount): Delete.
7077         (sbitmap_alloc): Don't initialize the popcount field.
7078         (sbitmap_alloc_with_popcount): Delete.
7079         (sbitmap_resize): Don't resize the popcount array.
7080         (sbitmap_vector_alloc): Don't initialize the popcount field.
7081         (bitmap_copy): Don't copy the popcount array.
7082         (bitmap_clear): Don't clear the popcount array.
7083         (bitmap_clear): Delete the popcount array handling.
7084         (bitmap_ior_and_compl): Delete the popcount assert.
7085         (bitmap_not): Ditto.
7086         (bitmap_and_compl): Ditto.
7087         (bitmap_and): Delete the popcount array handling.
7088         (bitmap_xor): Ditto.
7089         (bitmap_ior): Ditto.
7090         (bitmap_or_and): Delete the popcount assert.
7091         (bitmap_and_or): Ditto.
7092         (popcount_table): Delete.
7093         (sbitmap_elt_popcount): Delete.
7094         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
7095         (bitmap_set_bit): Delete the popcount assert.
7096         (bitmap_clear_bit): Ditto.
7097         (sbitmap_free): Don't free the popcount array.
7098         (sbitmap_alloc_with_popcount): Delete declaration.
7099         (sbitmap_popcount): Ditto.
7100
7101 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
7102             Andrew Burgess  <andrew.burgess@embecosm.com>
7103
7104         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
7105         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
7106         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
7107         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
7108         * config/arc/arc.opt (mcmem): New option.
7109         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
7110         supply length for r/m alternative.
7111         (*extendqisi2_ac): Likewise.
7112         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
7113         r/Uex alternative.
7114         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
7115         (movhi_insn): Likewise.
7116         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
7117         (*zero_extendqihi2_i): Add r/Ucm alternative.
7118         (*zero_extendqisi2_ac): Likewise.
7119         (*zero_extendhisi2_i): Likewise.
7120         * config/arc/constraints.md (Uex): New memory constraint.
7121         (Ucm): New define_constraint.
7122         * config/arc/predicates.md (long_immediate_loadstore_operand):
7123         Return 0 for MEM with cmem_address address.
7124         (cmem_address_0): New predicates.
7125         (cmem_address_1): Likewise.
7126         (cmem_address_2): Likewise.
7127         (cmem_address): Likewise.
7128
7129 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
7130
7131         * config/rs6000/rs6000.c (machine_function): Rename
7132         insn_chain_scanned_p to spe_insn_chain_scanned_p.
7133         (rs6000_stack_info): Adjust.
7134
7135 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
7136             Andrew Burgess  <andrew.burgess@embecosm.com>
7137
7138         * config/arc/constraints.md (Usd): Convert to define_constraint.
7139         (Us<): Likewise.
7140         (Us>): Likewise.
7141
7142 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
7143
7144         PR target/70821
7145         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
7146         Add new peephole2 where the first insn is *mov<mode>_or instead of
7147         *mov<mode>_internal.
7148
7149 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
7150
7151         * tracer.c (bb_seen): Make static.
7152
7153 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
7154
7155         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
7156         support, setup defaults.
7157         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
7158         * config/arc/arc.c (arc_init): Add NPS400 support.
7159         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
7160         (TARGET_ARC700): NPS400 is also an ARC700.
7161         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
7162
7163 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
7164
7165         PR target/70668
7166         * config/nds32/nds32.md (casesi): Don't access the operands array
7167         out of bounds.
7168
7169 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
7170
7171         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
7172         (or $-1,reg peephole2): Ditto.
7173         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
7174
7175 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
7176
7177         * doc/extend.texi (Common Function Attributes) [optimize]:
7178         Discourage use of the optimize attribute.
7179
7180 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
7181
7182         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
7183         special case builtin.
7184         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
7185         ALTIVEC_BUILTIN_VEC_ADDE.
7186         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
7187         support for ALTIVEC_BUILTIN_VEC_ADDE.
7188         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
7189         for __builtin_vec_adde.
7190
7191 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
7192
7193         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
7194         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
7195
7196 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7197
7198         PR testsuite/70595
7199         * doc/sourcebuild.texi (Effective-Target Keywords, Other
7200         attributes): Document cilkplus_runtime.
7201
7202 2016-04-28  Martin Jambor  <mjambor@suse.cz>
7203
7204         * tree-cfg.c (verify_expr): Verify that local declarations belong to
7205         this function.  Call verify_expr on MEM_REFs and bases of other
7206         handled_components.
7207
7208 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7209
7210         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
7211         for WORD_REGISTER_OPERATIONS to runtime check.
7212
7213 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7214
7215         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
7216
7217 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7218
7219         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
7220         big-endian compilation.
7221         * config/arc/arc.md (addf3): Likewise.
7222         (subdf3): Likewise.
7223         (muldf3): Likewise.
7224
7225 2016-04-28  Richard Biener  <rguenther@suse.de>
7226
7227         PR tree-optimization/70840
7228         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
7229         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
7230         Mark x * pow(x,c) -> pow(x,c+1) commutative.
7231         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
7232
7233 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7234
7235         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
7236         and explain why in a comment.
7237
7238 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7239
7240         * config/arc/arc.md (cpu_facility): Add fpx variant.
7241         (subdf3): Prohibit use reverse sub when assist operations option
7242         is enabled.
7243         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
7244         instructions only when FPX is enabled.
7245         * testsuite/gcc.target/arc/trsub.c: New test.
7246
7247 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
7248
7249         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
7250         mult_operator when calculating "type" attribute.
7251         (*fop_<mode>_1_i387): Ditto.
7252         (*fop_xf_1_i387): Ditto.
7253         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
7254         Use std::swap to swap operands.  Use RTL expressions to generate
7255         converted pattern.
7256
7257 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7258             Joern Rennecke  <joern.rennecke@embecosm.com>
7259
7260         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
7261         declaration.
7262         (emit_pic_move): Remove.
7263         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
7264         * config/arc/arc.c (emit_pic_move): Removed.
7265         (TARGET_HAVE_TLS): Define.
7266         (arc_conditional_register_usage): Test for arc_tp_regno.
7267         (arc_print_operand, arc_print_operand_address): Handle TLS
7268         unspecs.
7269         (arc_needs_pcl_p): New function.
7270         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
7271         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
7272         (arc_raw_symbolic_reference_mentioned_p): Likewise.
7273         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
7274         (arc_legitimize_tls_address): Likewise.
7275         (DTPOFF_ZERO_SYM): Define.
7276         (arc_legitimize_pic_address): Make it static, handle TLS cases.
7277         (arc_output_pic_addr_const): Print TLS unspecs.
7278         (prepare_pic_move): New function, replaces emit_pic_move.
7279         (arc_legitimate_constant_p): Handle TLS unspecs.
7280         (arc_legitimate_address_p): Likewise.
7281         (arc_rewrite_small_data_p): Use assert for TLS constants.
7282         (prepare_move_operands): Use prepare_pic_move.
7283         (arc_legitimize_address): Legitimize tls addresses.
7284         (arc_epilogue_uses): Check for arc_tp_regno.
7285         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
7286         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
7287         Define.
7288         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
7289         Likewise.
7290         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
7291         %(arc_tls_extra_start_spec).
7292         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
7293         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
7294         (EH_USES): Define.
7295         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
7296         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
7297         (UNSPEC_TLS_OFF): Add.
7298         (R10_REG): Define.
7299         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
7300         (get_thread_pointersi): New patterns.
7301         * config/arc/arc.opt (mtp-regno): New option.
7302         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
7303         (move_dest_operand): Likewise.
7304         * configure: Regenerate.
7305         * configure.ac: Add arc*-*-* case to test for tls.
7306         * doc/invoke.texi (ARC options): Document mtp-regno.
7307
7308 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7309
7310         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
7311         the new ARC HS SIMD instructions.
7312         (arc_preferred_simd_mode): New function.
7313         (arc_autovectorize_vector_sizes): Likewise.
7314         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
7315         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7316         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
7317         (arc_init_builtins): Add new SIMD builtin types.
7318         (arc_split_move): Handle 64 bit vector moves.
7319         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
7320         (TARGET_PLUS_QMACW): Define.
7321         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
7322         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
7323         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
7324         (VSUBADD4H): New builtins.
7325         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
7326         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
7327
7328 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
7329             Matthias Klose  <doko@debian.org>
7330
7331         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
7332
7333 2016-04-28  Richard Biener  <rguenther@suse.de>
7334
7335         PR middle-end/70777
7336         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
7337         canonicalization.
7338
7339 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
7340
7341         * common/config/sh/sh-common.c: Remove SH5 support.
7342         * config/sh/constraints.md: Likewise.
7343         * config/sh/config/sh/elf.h: Likewise.
7344         * config/sh/linux.h: Likewise.
7345         * config/sh/netbsd-elf.h: Likewise.
7346         * config/sh/predicates.md: Likewise.
7347         * config/sh/sh-c.c: Likewise.
7348         * config/sh/sh-protos.h: Likewise.
7349         * config/sh/sh.c: Likewise.
7350         * config/sh/sh.h: Likewise.
7351         * config/sh/sh.md: Likewise.
7352         * config/sh/sh.opt: Likewise.
7353         * config/sh/sync.md: Likewise.
7354         * config/sh/sh64.h: Delete.
7355         * config/sh/shmedia.h: Likewise.
7356         * config/sh/shmedia.md: Likewise.
7357         * config/sh/sshmedia.h: Likewise.
7358         * config/sh/t-netbsd-sh5-64: Likewise.
7359         * config/sh/t-sh64: Likewise.
7360         * config/sh/ushmedia.h: Likewise.
7361
7362 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
7363
7364         * config/i386/i386.md (sign_extend to memory peephole2s): Use
7365         general_reg_operand instead of register_operand predicate.
7366
7367 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7368
7369         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
7370
7371 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
7372
7373         * match.pd (A - B > A, A + B < A): New transformations.
7374
7375 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
7376
7377         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
7378         which defaults to true.  Emit an outer pair of parentheses only if
7379         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
7380         don't emit parentheses for the right-hand operand.
7381
7382 2016-04-27  Jeff Law  <law@redhat.com>
7383
7384         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
7385
7386 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7387
7388         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
7389         (altivec_lvx_<mode>_internal): Document.
7390         (altivec_lvx_<mode>_2op): New define_insn.
7391         (altivec_lvx_<mode>_1op): Likewise.
7392         (altivec_lvx_<mode>_2op_si): Likewise.
7393         (altivec_lvx_<mode>_1op_si): Likewise.
7394         (altivec_stvx_<mode>): Remove.
7395         (altivec_stvx_<mode>_internal): Document.
7396         (altivec_stvx_<mode>_2op): New define_insn.
7397         (altivec_stvx_<mode>_1op): Likewise.
7398         (altivec_stvx_<mode>_2op_si): Likewise.
7399         (altivec_stvx_<mode>_1op_si): Likewise.
7400         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7401         Expand vec_ld and vec_st during parsing.
7402         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
7403         changes.
7404         (altivec_expand_stvx_be): Likewise.
7405         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
7406         address-masking behavior in RTL.
7407         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
7408         address-masking behavior in RTL.
7409         (altivec_expand_builtin): Change builtin code arguments for calls
7410         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
7411         (insn_is_swappable_p): Avoid incorrect swap optimization in the
7412         presence of lvx/stvx patterns.
7413         (alignment_with_canonical_addr): New function.
7414         (alignment_mask): Likewise.
7415         (find_alignment_op): Likewise.
7416         (recombine_lvx_pattern): Likewise.
7417         (recombine_stvx_pattern): Likewise.
7418         (recombine_lvx_stvx_patterns): Likewise.
7419         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
7420         stvx patterns from expand.
7421         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
7422         expansions.
7423         (vector_altivec_store_<mode>): Likewise.
7424
7425 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
7426
7427         * config/aarch64/aarch64.md
7428         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
7429         remove the "fp" attributes.
7430         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
7431         add the "simd" attributes.
7432         (*movdf_aarch64): Likewise.
7433         (*movtf_aarch64): Remove the "fp" attributes.
7434         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
7435         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
7436
7437 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7438
7439         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
7440         rtx to rtx_code_label *.
7441         * rtl.h (maybe_set_first_label_num): Likewise.
7442
7443 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7444
7445         * df-core.c (df_add_problem): Make the problem param be const.
7446         (df_remove_problem): Make local "problem" be const.
7447         * df-problems.c (problem_RD): Make const.
7448         (problem_LR): Likewise.
7449         (problem_LIVE): Likewise.
7450         (problem_MIR): Likewise.
7451         (problem_CHAIN): Likewise.
7452         (problem_WORD_LR): Likewise.
7453         (problem_NOTE): Likewise.
7454         (problem_MD): Likewise.
7455         * df-scan.c (problem_SCAN): Likewise.
7456         * df.h (struct df_problem): Make field "dependent_problem" be
7457         const.
7458         (struct dataflow): Likewise for field "problem".
7459         (df_add_problem): Make param const.
7460
7461 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
7462
7463         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
7464         inter-unit moves to/from vector registers are enabled.  Do not disable
7465         for TARGET_MMX.
7466
7467 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7468
7469         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
7470         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
7471         #define to...
7472         (enum df_problem_id): ...this new enum.
7473         (struct df_problem): Convert field "id" from "int" to
7474         enum df_problem_id.
7475
7476 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7477
7478         * rtl.def: Update comment for "things in the instruction chain" to
7479         reflect the removal of the leading "i" field for INSN_UID in
7480         r210360.  Fix bogus apostrophe.
7481
7482 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
7483
7484         * config/i386/i386.md
7485         (lea arith with mem operand + setcc peephole2): Set operator mode.
7486
7487 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
7488
7489         PR target/70155
7490         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
7491         (dimode_scalar_to_vector_candidate_p): This.
7492         (timode_scalar_to_vector_candidate_p): New function.
7493         (scalar_to_vector_candidate_p): Likewise.
7494         (timode_check_non_convertible_regs): Likewise.
7495         (timode_remove_non_convertible_regs): Likewise.
7496         (remove_non_convertible_regs): Likewise.
7497         (remove_non_convertible_regs): Renamed to ...
7498         (dimode_remove_non_convertible_regs): This.
7499         (scalar_chain::~scalar_chain): Make it virtual.
7500         (scalar_chain::compute_convert_gain): Make it pure virtual.
7501         (scalar_chain::mark_dual_mode_def): Likewise.
7502         (scalar_chain::convert_insn): Likewise.
7503         (scalar_chain::convert_registers): Likewise.
7504         (scalar_chain::add_to_queue): Make it protected.
7505         (scalar_chain::emit_conversion_insns): Likewise.
7506         (scalar_chain::replace_with_subreg): Likewise.
7507         (scalar_chain::replace_with_subreg_in_insn): Likewise.
7508         (scalar_chain::convert_op): Likewise.
7509         (scalar_chain::convert_reg): Likewise.
7510         (scalar_chain::make_vector_copies): Likewise.
7511         (scalar_chain::convert_registers): New pure virtual function.
7512         (class dimode_scalar_chain): New class.
7513         (class timode_scalar_chain): Likewise.
7514         (scalar_chain::mark_dual_mode_def): Renamed to ...
7515         (dimode_scalar_chain::mark_dual_mode_def): This.
7516         (timode_scalar_chain::mark_dual_mode_def): New function.
7517         (timode_scalar_chain::convert_insn): Likewise.
7518         (dimode_scalar_chain::convert_registers): Likewise.
7519         (scalar_chain::compute_convert_gain): Renamed to ...
7520         (dimode_scalar_chain::compute_convert_gain): This.
7521         (scalar_chain::replace_with_subreg): Renamed to ...
7522         (dimode_scalar_chain::replace_with_subreg): This.
7523         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
7524         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
7525         (scalar_chain::make_vector_copies): Renamed to ...
7526         (dimode_scalar_chain::make_vector_copies): This.
7527         (scalar_chain::convert_reg): Renamed to ...
7528         (dimode_scalar_chain::convert_reg ): This.
7529         (scalar_chain::convert_op): Renamed to ...
7530         (dimode_scalar_chain::convert_op): This.
7531         (scalar_chain::convert_insn): Renamed to ...
7532         (dimode_scalar_chain::convert_insn): This.
7533         (scalar_chain::convert): Call convert_registers.
7534         (convert_scalars_to_vector): Change to scalar_chain pointer to
7535         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
7536         in 32-bit mode.  Delete scalar_chain pointer.  Call
7537         free_dominance_info in 64-bit mode.
7538         (pass_stv::gate): Remove TARGET_64BIT check.
7539         (ix86_option_override): Put the 64-bit STV pass before the CSE
7540         pass.
7541
7542 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
7543
7544         * dwarf2out.h (struct dw_loc_descr_node): Remove the
7545         dw_loc_frame_offset field.
7546         * dwarf2out.c (new_loc_descr): Likewise.
7547         (resolve_args_picking_1): Turn the VISITED hash set into a
7548         FRAME_OFFSET hash map. Use it to associate a frame offset to
7549         visited nodes. Remove uses of the CHECKING_P macro.
7550         (resolve_args_picking): Update call to resolve_args_picking_1.
7551
7552 2016-04-27  Martin Liska  <mliska@suse.cz>
7553
7554         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
7555         (free_loop_data): Release vuses of groups.
7556
7557 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
7558
7559         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
7560         instead of redundant use_id and boolean have_use_for.
7561         (struct iv_use): Change sub_id into group_id.  Remove field next.
7562         Move fields: related_cands, n_map_members, cost_map and selected
7563         to ...
7564         (struct iv_group): ... here.  New structure.
7565         (struct iv_common_cand): Use structure declaration directly.
7566         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
7567         (MAX_CONSIDERED_USES): Rename macro to ...
7568         (MAX_CONSIDERED_GROUPS): ... here.
7569         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
7570         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
7571         (dump_uses): Rename to ...
7572         (dump_groups): ... here.  Update all uses.
7573         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
7574         (find_induction_variables): Refactor format of dump information.
7575         (record_sub_use): Delete.
7576         (record_use): Update all uses.
7577         (record_group): New function.
7578         (record_group_use, find_interesting_uses_op): Call above functions.
7579         Update all uses.
7580         (find_interesting_uses_cond): Ditto.
7581         (group_compare_offset): New function.
7582         (split_all_small_groups): Rename to ...
7583         (split_small_address_groups_p): ... here.  Update all uses.
7584         (split_address_groups):  Update all uses.
7585         (find_interesting_uses): Refactor format of dump information.
7586         (add_candidate_1): Update all uses.  Remove redundant check on iv,
7587         base and step.
7588         (add_candidate, record_common_cand): Remove redundant assert.
7589         (add_iv_candidate_for_biv): Update use.
7590         (add_iv_candidate_derived_from_uses): Update all uses.
7591         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
7592         (alloc_use_cost_map): Ditto.
7593         (set_use_iv_cost, get_use_iv_cost): Rename to ...
7594         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
7595         (determine_use_iv_cost_generic): Ditto.
7596         (determine_group_iv_cost_generic): Ditto.
7597         (determine_use_iv_cost_address): Ditto.
7598         (determine_group_iv_cost_address): Ditto.
7599         (determine_use_iv_cost_condition): Ditto.
7600         (determine_group_iv_cost_cond): Ditto.
7601         (determine_use_iv_cost): Ditto.
7602         (determine_group_iv_cost): Ditto.
7603         (set_autoinc_for_original_candidates): Update all uses.
7604         (find_iv_candidates): Update all uses.  Refactor dump information.
7605         (determine_use_iv_costs): Ditto.
7606         (determine_iv_costs): Ditto.
7607         (iv_ca_cand_for_use): Rename to ...
7608         (iv_ca_cand_for_group): ... here.  Update all uses.
7609         (iv_ca_add_use, iv_ca_add_group): Ditto.
7610         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
7611         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
7612         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
7613         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
7614         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
7615         (create_new_iv, adjust_iv_update_pos): Ditto.
7616         (rewrite_use_address): Delete.
7617         (rewrite_use_address_1): Rename to ...
7618         (rewrite_use_address): ... here.
7619         (rewrite_use_compare): Update all uses.
7620         (rewrite_use): Delete.
7621         (rewrite_uses): Rename to ...
7622         (rewrite_groups): ... here.  Update all uses.
7623         (remove_unused_ivs, free_loop_data): Update all uses.
7624         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
7625
7626 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7627
7628         * rtlanal.c (nonzero_bits1): Convert preprocessor check
7629         for WORD_REGISTER_OPERATIONS to runtime check.
7630
7631 2016-04-27  Richard Biener  <rguenther@suse.de>
7632
7633         PR ipa/70760
7634         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
7635         aggregate_value_p to determine if a function result is
7636         returned by reference.
7637         (ipa_pta_execute): Functions having their address taken are
7638         not automatically nonlocal.
7639
7640 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
7641
7642         PR sanitizer/70683
7643         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
7644         * fold-const.c (operand_equal_p): If flag_checking and
7645         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
7646         and if it returns non-zero, assert iterative_hash_expr on both
7647         args is the same.
7648
7649 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
7650
7651         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
7652
7653 2016-04-27  Nick Clifton  <nickc@redhat.com>
7654
7655         PR middle-end/49889
7656         * varasm.c (merge_weak): Generate an error if an attempt is made
7657         to convert a non-weak static function into a weak, public function.
7658
7659 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7660
7661         * params.def (MAX_PARTITION_SIZE): New param.
7662         * doc/invoke.texi: Document lto-max-partition.
7663
7664 2016-04-27  Richard Biener  <rguenther@suse.de>
7665
7666         PR ipa/70785
7667         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
7668         function cummulating used_from_other_partition, externally_visible
7669         and force_output from aliases.
7670         (refered_from_nonlocal_var): Likewise.
7671         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
7672         node flags properly.
7673
7674 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
7675
7676         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
7677         (-Wmemset-elt-size): New item.
7678
7679 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
7680
7681         PR ada/70759
7682         * stor-layout.h (internal_reference_types): Delete.
7683         * stor-layout.c (reference_types_internal): Likewise.
7684         (internal_reference_types): Likewise.
7685         (layout_type) <REFERENCE_TYPE>: Adjust.
7686
7687 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
7688
7689         PR sanitizer/70683
7690         * tree.h (inchash::add_expr): Add FLAGS argument.
7691         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
7692         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
7693         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
7694         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
7695         if swap_tree_comparison (code) is smaller than code, hash that
7696         and arguments in the other order.  Hash CONVERT_EXPR the same
7697         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
7698         of ADDR_EXPR of decl as the decl itself.  Add or remove
7699         OEP_ADDRESS_OF from recursive flags as needed.  For
7700         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
7701         operands commutatively and only the third one normally.
7702         For internal CALL_EXPR hash in CALL_EXPR_IFN.
7703
7704 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7705
7706         * config/rtems.h (LIB_SPEC): Add -latomic.
7707
7708 2016-04-27  Joel Sherrill  <joel@rtems.org>
7709
7710         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
7711         xilink.ld and flags not relevant to RTEMS.
7712
7713 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
7714
7715         * toplev.c (backend_init_target): Avoid calling init_reload when using
7716         LRA.
7717
7718 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
7719
7720         * reorg.c (try_merge_delay_insns): Declare i and j inside the
7721         for loops rather than one for the whole function.
7722
7723 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
7724
7725         * match.pd (X + CST CMP X): New transformation.
7726
7727 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
7728
7729         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
7730         * fold-const.c (fold_binary_loc): Remove 2 transformations
7731         superseded by match.pd.
7732         * match.pd (x+x -> x*2): Generalize to integers.
7733
7734 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
7735
7736         * config/i386/i386.md (operation on memory peephole): Duplicate an
7737         existing peephole and adapt it to match lea rather than an operation
7738         that clobbers CC.
7739
7740         PR rtl-optimization/57193
7741         * opts.c (default_options_table): Add OPT_frename_registers at -O2
7742         and above.
7743         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
7744
7745 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
7746
7747         * tree-if-conv.c (any_pred_load_store): New static variable.
7748         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
7749         any_pred_load_store instead of and_mask_load_store.
7750         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
7751         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
7752         (combine_blocks, tree_if_conversion): Ditto.
7753
7754 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
7755
7756         PR tree-optimization/70771
7757         PR tree-optimization/70775
7758         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
7759         virtual PHI nodes.  Delete parameter.
7760         (if_convertible_loop_p_1): Delete argument to above function.
7761         (predicate_all_scalar_phis): Delete code handling single-argument
7762         PHIs.
7763         (tree_if_conversion): Mark and update virtual SSA.
7764
7765 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7766
7767         PR target/61821
7768         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
7769         (x86_elf_aligned_common): Rename to ...
7770         (x86_elf_aligned_decl_common): ... this.
7771         Add decl arg.  Switch to .lbss for largecomm object.  Use
7772         LARGECOMM_SECTION_ASM_OP.
7773         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
7774         renaming.
7775         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
7776         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
7777         Pass new decl arg.
7778         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
7779         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
7780
7781 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7782
7783         PR target/59407
7784         * config/i386/i386.c (SECTION_LARGE): Define.
7785         (x86_64_elf_select_section): Set it for large data/bss sections.
7786         Only clear SECTION_WRITE for .lrodata.
7787         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
7788         data/bss sections.
7789         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
7790         * varasm.c (default_elf_asm_named_section): Grow flagchars.
7791         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
7792         SECTION_MACH_DEP.
7793         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
7794         * doc/tm.texi: Regenerate.
7795
7796 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
7797
7798         PR bootstrap/70704
7799         * configure.ac (--enable-checking): Document extra flag, for
7800         non-release builds default to --enable-checking=yes,extra.
7801         If misc checking and extra checking, define CHECKING_P to 2 instead
7802         of 1.
7803         * common.opt (fchecking=): Add.
7804         * doc/invoke.texi (-fchecking=): Document.
7805         * doc/install.texi: Document --enable-checking changes.
7806         * configure: Regenerated.
7807         * config.in: Regenerated.
7808
7809 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
7810
7811         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
7812         attribute instead of which_alternative.
7813         * config/i386/sse.md (*mov<mode>_internal): Ditto.
7814         Use EXT_REX_SSE_REG_P where appropriate.
7815
7816 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
7817
7818         * config/i386/predicates.md (const0_operand): Do not match
7819         const_wide_int code.
7820         (const1_operand): Ditto.
7821
7822 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
7823
7824         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
7825         for SSE constm1 operands and TARGET_AVX512VL.
7826         (*movti_internal): Ditto.
7827         (*mov<mode>_or): Use constm1_operand predicate.
7828         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
7829         for SSE vector_all_ones operands and TARGET_AVX512VL.
7830         * config/i386/predicates.md (constm1_operand): New predicate.
7831         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
7832         emission of constant -1 load.
7833
7834 2016-04-25  Jason Merrill  <jason@redhat.com>
7835
7836         * gdbinit.in: Skip is-a.h.
7837
7838         * attribs.c (register_scoped_attributes): Fix logic.
7839         * attribs.h: Declare register_scoped_attributes.
7840
7841 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7842
7843         * config/rs6000/rs6000-builtin.def: Correct pasto error for
7844         stxvd2x and stxvw4x built-in functions.
7845
7846 2016-04-25  DJ Delorie  <dj@redhat.com>
7847
7848         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
7849         (ashrhi3): Likewise.
7850         (lshrhi3): Likewise.
7851
7852 2016-04-25  Richard Biener  <rguenther@suse.de>
7853
7854         PR tree-optimization/70780
7855         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
7856         wasn't visited yet.
7857         (compute_antic): Mark blocks with abnormal preds as visited as
7858         they have a final empty antic-in solution already.
7859
7860 2016-04-25  Michael Collison  <michael.collison@linaro.org>
7861
7862         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
7863
7864 2016-04-25  Michael Collison  <michael.collison@linaro.org>
7865
7866         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
7867         mode is VQI to improve mixed mode vectorization.
7868         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
7869         define_insn to match low half of signed vaddw.
7870         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
7871         define_insn to match high half of signed vaddw.
7872         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
7873         define_insn to match low half of unsigned vaddw.
7874         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
7875         define_insn to match high half of unsigned vaddw.
7876         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
7877         (arm_simd_check_vect_par_cnst_half_p): Likewise.
7878         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
7879         for new function.
7880         (arm_simd_check_vect_par_cnst_half_p): Likewise.
7881         * config/arm/predicates.md (vect_par_constant_high): Support
7882         big endian and simplify by calling
7883         arm_simd_check_vect_par_cnst_half
7884         (vect_par_constant_low): Likewise.
7885
7886 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
7887
7888         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
7889         predicate for operand 2.
7890
7891 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
7892             H.J. Lu  <hongjiu.lu@intel.com>
7893
7894         * config/i386/i386-protos.h (standard_sse_constant_p): Add
7895         machine_mode argument.
7896         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
7897         constm1_rtx operands.  For VOIDmode constants, get mode from
7898         pred_mode.  Check mode size if the mode is supported by ABI.
7899         (standard_sse_constant_opcode): Do not use standard_constant_p.
7900         Strictly check ABI support for all-ones operands.
7901         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
7902         immediates. Update calls to standard_sse_constant_p.
7903         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
7904         (ix86_rtx_costs): Ditto.
7905         * config/i386/i386.md (*movxi_internal_avx512f): Use
7906         nonimmediate_or_sse_const_operand instead of vector_move_operand.
7907         Use (v,BC) alternative instead of (v,C). Use register_operand
7908         checks instead of MEM_P.
7909         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
7910         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
7911         isa attribute.  Use register_operand checks instead of MEM_P.
7912         (*movti_internal): Use nonimmediate_or_sse_const_operand for
7913         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
7914         alternative and corresponding sse2 isa attribute.
7915         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
7916         to standard_sse_constant_p.
7917         (FP constant splitters): Ditto.
7918         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
7919         (C): Ditto.
7920         * config/i386/predicates.md (constm1_operand): Remove.
7921         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
7922         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
7923         vector_all_ones_operand instead of constm1_operand.
7924
7925 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7926
7927         * print-rtl.c (print_rtx_insn_vec): New function.
7928         * print-rtl.h: New prototype.
7929         * store-motion.c (struct st_expr): Make avail_stores a vector.
7930         (st_expr_entry): Adjust.
7931         (free_st_expr_entry): Likewise.
7932         (print_store_motion_mems): Likewise.
7933         (find_moveable_store): Likewise.
7934         (compute_store_table): Likewise.
7935         (delete_store): Likewise.
7936         (build_store_vectors): Likewise.
7937
7938 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7939
7940         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
7941
7942 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7943
7944         * vec.h (vec_safe_contains): New function.
7945         (vec::contains): Likewise.
7946         (vec::begin): Likewise.
7947         (vec::end): Likewise.
7948
7949 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
7950
7951         PR sanitizer/70712
7952         * cfgexpand.c (expand_stack_vars): Fix typo.
7953
7954 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7955
7956         * system.h (list, map, set, vector): Include conditionally.
7957         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
7958         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
7959         * ipa-icf.c (INCLUDE_LIST): Define.
7960         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
7961         * config/sh/sh.c (INCLUDE_VECTOR): Define.
7962         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
7963         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
7964         * cp/logic.cc (INCLUDE_LIST): Define.
7965         * fortran/trans-common.c (INCLUDE_MAP): Define.
7966
7967 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7968
7969         * auto-profile.c: Remove <string.h> include.
7970         * ipa-icf-gimple.c: Remove <list> include.
7971         * diagnostic.c: Remove <new> include.
7972         * genmatch.c: Likewise.
7973         * pretty-print.c: Likewise.
7974         * toplev.c: Likewise
7975         * c/c-objc-common.c: Likewise.
7976         * cp/error.c: Likewise.
7977         * fortran/error.c: Likewise.
7978
7979 2016-04-22  Richard Biener  <rguenther@suse.de>
7980
7981         * lto-streamer-in.c (input_ssa_names): Do not allocate
7982         GIMPLE_NOP for all SSA names.
7983         * lto-streamer-out.c (output_ssa_names): Do not output
7984         SSA names that should have been released.
7985
7986 2016-04-22  Richard Biener  <rguenther@suse.de>
7987
7988         PR tree-optimization/70740
7989         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
7990         VDEF.
7991
7992 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
7993
7994         PR target/70750
7995         * config/i386/predicates.md (call_insn_operand): Replace
7996         sibcall_memory_operand with memory_operand.
7997
7998 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
7999
8000         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
8001         has_single_use() tests.
8002         (register_edge_assert_for_1): Likewise.
8003         (find_assert_locations_1): Check the liveness bitmap instead of
8004         checking has_single_use().
8005
8006 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
8007
8008         PR target/70728
8009         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
8010         Extract AVX-512BW constraint from AVX.
8011
8012 2016-04-21  Richard Biener  <rguenther@suse.de>
8013
8014         PR tree-optimization/70725
8015         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
8016         for phi_convertible_by_degenerating_args.
8017         (predicate_all_scalar_phis): Handle single-argument PHIs.
8018
8019 2016-04-21  Richard Biener  <rguenther@suse.de>
8020
8021         PR middle-end/70747
8022         * fold-const.c (fold_comparison): Return properly typed
8023         constant boolean.
8024
8025 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
8026
8027         PR tree-optimization/70715
8028         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
8029         after expanding BASE using expand_simple_operations.
8030
8031 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
8032
8033         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
8034         New transformations.
8035
8036 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
8037
8038         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
8039
8040 2016-04-20  Jan Hubicka  <jh@suse.cz>
8041
8042         * ipa-inline.c (can_inline_edge_p): Pass caller info to
8043         ultiimate_alias_target.
8044         (update_callee_keys): Likewise.
8045         (lookup_recursive_calls): Likewise.
8046         (speculation_useful_p): Likewise.
8047
8048 2016-04-20  Jan Hubicka  <jh@suse.cz>
8049
8050         PR ipa/70018
8051         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
8052         (set_nothrow_flag_1): ... this; handle interposition correctly;
8053         recurse on aliases and thunks.
8054         (cgraph_node::set_nothrow_flag): New.
8055         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
8056         functions compiled with non-call exceptions that binds to current
8057         def.
8058         (propagate_nothrow): Be safe WRT interposition.
8059         * cgraph.h (set_nothrow_flag): Update prototype.
8060
8061 2016-04-18  Jan Hubicka  <jh@suse.cz>
8062
8063         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
8064         max_loop_iterations_int.
8065         (tree_unswitch_outer_loop): Likewise.
8066
8067 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
8068
8069         PR tree-optimization/69489
8070         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
8071         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
8072         Revise dump message.
8073         (if_convertible_bb_p): Remove check on edge count of basic block's
8074         predecessors.
8075
8076 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
8077
8078         PR tree-optimization/56625
8079         PR tree-optimization/69489
8080         * tree-data-ref.h (DR_INNERMOST): New macro.
8081         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
8082         hashing struct innermost_loop_behavior.
8083         (ref_DR_map): Remove.
8084         (innermost_DR_map): New map.
8085         (baseref_DR_map): Revise comment.
8086         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
8087         to innermost_DR_map accroding to its innermost loop behavior.
8088         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
8089         to its innermost loop behavior.
8090         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
8091         Add initialization for innermost_DR_map.  Record memory reference
8092         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
8093         have innermost loop behavior.
8094         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
8095         innermost_DR_map.
8096
8097 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
8098
8099         * config/i386/i386.md (*lea<mode>_general_1): Rename from
8100         *lea_general_1.  Use explicit SWI12 mode interator.
8101         (*lea<mode>_general_2): Rename from *lea_general_2.
8102         Use explicit SWI12 mode interator.
8103         (*lea<mode>_general_3): Rename from *lea_general_3.
8104         Use explicit SWI12 mode interator.
8105         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
8106         Use explicit SWI12 mode interator.
8107         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
8108         Use explicit SWI48 mode interator.
8109
8110 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
8111
8112         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
8113         Short-cut unaligned load and store cases.  Handle all integer
8114         vector modes.
8115         (ix86_expand_vector_move_misalign): Short-cut unaligned load
8116         and store cases.  Call ix86_avx256_split_vector_move_misalign
8117         directly without checking mode class.
8118
8119 2016-04-20  Andrew Pinski  <apinski@cavium.com>
8120             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8121
8122         PR target/64971
8123         * config/aarch64/aarch64.md (sibcall): Force call
8124         address to be DImode for ILP32.
8125         (sibcall_value): Likewise.
8126
8127 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
8128
8129         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
8130
8131 2016-04-20  Richard Biener  <rguenther@suse.de>
8132
8133         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
8134         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
8135         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
8136         (maybe_push_res_to_seq): Adjust.
8137         * gimple-fold.c (maybe_build_generic_op): Likewise.
8138
8139 2016-04-20  Marek Polacek  <polacek@redhat.com>
8140
8141         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
8142         rather than true.
8143
8144 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
8145
8146         * config/i386/sse.md (vec_unpacks_lo_hi): Always
8147         use kmovw to support AVX512F target.
8148
8149 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
8150
8151         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
8152
8153 2016-04-20  Marek Polacek  <polacek@redhat.com>
8154
8155         PR tree-optimization/70725
8156         * tree-if-conv.c (is_false_predicate): New function.
8157         (predicate_mem_writes): Use it.
8158
8159 2016-04-20  Richard Biener  <rguenther@suse.de>
8160
8161         PR tree-optimization/70726
8162         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
8163         shift amounts from a pattern stmt operand.
8164
8165 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8166
8167         PR target/70674
8168         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
8169         stack_restore_from_fpr pattern when restoring r15.
8170         (s390_optimize_prologue): Strip away the memory barrier in the
8171         parallel when trying to get rid of restore insns.
8172         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
8173         definition for loading the stack pointer from an FPR.  Compared to
8174         the normal move insn this pattern includes a full memory barrier.
8175
8176 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
8177
8178         PR middle-end/70680
8179         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
8180         implicitly linear or lastprivate iterator on the outer context.
8181
8182 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
8183
8184         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
8185         alignment check.
8186         * config/i386/i386.md (ssememalign): Removed.
8187         * config/i386/sse.md: Remove ssememalign attribute from patterns.
8188
8189 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
8190
8191         PR target/69201
8192         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
8193         const short * to __builtin_ia32_loaddquhi512_mask.
8194         (_mm512_maskz_loadu_epi16): Likewise.
8195         (_mm512_mask_storeu_epi16): Pass short * to
8196         __builtin_ia32_storedquhi512_mask.
8197         (_mm512_mask_loadu_epi8): Pass const char * to
8198         __builtin_ia32_loaddquqi512_mask.
8199         (_mm512_maskz_loadu_epi8): Likewise.
8200         (_mm512_mask_storeu_epi8): Pass char * to
8201         __builtin_ia32_storedquqi512_mask.
8202         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
8203         const double * to __builtin_ia32_loadupd512_mask.
8204         (_mm512_mask_loadu_pd): Likewise.
8205         (_mm512_maskz_loadu_pd): Likewise.
8206         (_mm512_storeu_pd): Pass double * to
8207         __builtin_ia32_storeupd512_mask.
8208         (_mm512_mask_storeu_pd): Likewise.
8209         (_mm512_loadu_ps): Pass const float * to
8210         __builtin_ia32_loadups512_mask.
8211         (_mm512_mask_loadu_ps): Likewise.
8212         (_mm512_maskz_loadu_ps): Likewise.
8213         (_mm512_storeu_ps): Pass float * to
8214         __builtin_ia32_storeups512_mask.
8215         (_mm512_mask_storeu_ps): Likewise.
8216         (_mm512_mask_loadu_epi64): Pass const long long * to
8217         __builtin_ia32_loaddqudi512_mask.
8218         (_mm512_maskz_loadu_epi64): Likewise.
8219         (_mm512_mask_storeu_epi64): Pass long long *
8220         to __builtin_ia32_storedqudi512_mask.
8221         (_mm512_loadu_si512): Pass const int * to
8222         __builtin_ia32_loaddqusi512_mask.
8223         (_mm512_mask_loadu_epi32): Likewise.
8224         (_mm512_maskz_loadu_epi32): Likewise.
8225         (_mm512_storeu_si512): Pass int * to
8226         __builtin_ia32_storedqusi512_mask.
8227         (_mm512_mask_storeu_epi32): Likewise.
8228         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
8229         char * to __builtin_ia32_storedquqi256_mask.
8230         (_mm_mask_storeu_epi8): Likewise.
8231         (_mm256_mask_loadu_epi16): Pass const short * to
8232         __builtin_ia32_loaddquhi256_mask.
8233         (_mm256_maskz_loadu_epi16): Likewise.
8234         (_mm_mask_loadu_epi16): Pass const short * to
8235         __builtin_ia32_loaddquhi128_mask.
8236         (_mm_maskz_loadu_epi16): Likewise.
8237         (_mm256_mask_loadu_epi8): Pass const char * to
8238         __builtin_ia32_loaddquqi256_mask.
8239         (_mm256_maskz_loadu_epi8): Likewise.
8240         (_mm_mask_loadu_epi8): Pass const char * to
8241         __builtin_ia32_loaddquqi128_mask.
8242         (_mm_maskz_loadu_epi8): Likewise.
8243         (_mm256_mask_storeu_epi16): Pass short * to.
8244         __builtin_ia32_storedquhi256_mask.
8245         (_mm_mask_storeu_epi16): Pass short * to.
8246         __builtin_ia32_storedquhi128_mask.
8247         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
8248         const double * to __builtin_ia32_loadupd256_mask.
8249         (_mm256_maskz_loadu_pd): Likewise.
8250         (_mm_mask_loadu_pd): Pass onst double * to
8251         __builtin_ia32_loadupd128_mask.
8252         (_mm_maskz_loadu_pd): Likewise.
8253         (_mm256_mask_storeu_pd): Pass double * to
8254         __builtin_ia32_storeupd256_mask.
8255         (_mm_mask_storeu_pd): Pass double * to
8256         __builtin_ia32_storeupd128_mask.
8257         (_mm256_mask_loadu_ps): Pass const float * to
8258         __builtin_ia32_loadups256_mask.
8259         (_mm256_maskz_loadu_ps): Likewise.
8260         (_mm_mask_loadu_ps): Pass const float * to
8261         __builtin_ia32_loadups128_mask.
8262         (_mm_maskz_loadu_ps): Likewise.
8263         (_mm256_mask_storeu_ps): Pass float * to
8264         __builtin_ia32_storeups256_mask.
8265         (_mm_mask_storeu_ps): ass float * to
8266         __builtin_ia32_storeups128_mask.
8267         (_mm256_mask_loadu_epi64): Pass const long long * to
8268         __builtin_ia32_loaddqudi256_mask.
8269         (_mm256_maskz_loadu_epi64): Likewise.
8270         (_mm_mask_loadu_epi64): Pass const long long * to
8271         __builtin_ia32_loaddqudi128_mask.
8272         (_mm_maskz_loadu_epi64): Likewise.
8273         (_mm256_mask_storeu_epi64): Pass long long * to
8274         __builtin_ia32_storedqudi256_mask.
8275         (_mm_mask_storeu_epi64): Pass long long * to
8276         __builtin_ia32_storedqudi128_mask.
8277         (_mm256_mask_loadu_epi32): Pass const int * to
8278         __builtin_ia32_loaddqusi256_mask.
8279         (_mm256_maskz_loadu_epi32): Likewise.
8280         (_mm_mask_loadu_epi32): Pass const int * to
8281         __builtin_ia32_loaddqusi128_mask.
8282         (_mm_maskz_loadu_epi32): Likewise.
8283         (_mm256_mask_storeu_epi32): Pass int * to
8284         __builtin_ia32_storedqusi256_mask.
8285         (_mm_mask_storeu_epi32): Pass int * to
8286         __builtin_ia32_storedqusi128_mask.
8287         * config/i386/i386-builtin-types.def (PCSHORT): New.
8288         (PINT64): Likewise.
8289         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
8290         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
8291         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
8292         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
8293         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
8294         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
8295         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
8296         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
8297         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
8298         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
8299         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
8300         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
8301         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
8302         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
8303         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
8304         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
8305         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
8306         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
8307         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
8308         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
8309         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
8310         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
8311         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
8312         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
8313         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
8314         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
8315         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
8316         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
8317         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
8318         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
8319         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
8320         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
8321         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
8322         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
8323         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
8324         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
8325         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
8326         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
8327         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
8328         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
8329         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
8330         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
8331         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
8332         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
8333         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
8334         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
8335         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
8336         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
8337         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
8338         use UNSPEC_STOREU.
8339         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
8340         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
8341         load nor store.
8342         (ix86_expand_vector_move_misalign): Likewise.
8343         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
8344         to scalar function prototype for unaligned load/store builtins.
8345         (ix86_expand_special_args_builtin): Updated.
8346         * config/i386/sse.md (UNSPEC_LOADU): Removed.
8347         (UNSPEC_STOREU): Likewise.
8348         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
8349         (VI_ULOADSTORE_F_AVX512VL): Likewise.
8350         (ssescalarsize): Handle V4TI, V2TI and V1TI.
8351         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
8352         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
8353         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
8354         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
8355         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
8356         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
8357         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
8358         (<avx512>_storedqu<mode>_mask): Likewise.
8359         (*sse4_2_pcmpestr_unaligned): Likewise.
8360         (*sse4_2_pcmpistr_unaligned): Likewise.
8361         (*mov<mode>_internal): Renamed to ...
8362         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
8363         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
8364         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
8365         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
8366
8367 2016-04-19  Richard Biener  <rguenther@suse.de>
8368
8369         PR tree-optimization/70171
8370         * tree-ssa-phiprop.c: Include stor-layout.h.
8371         (phiprop_insert_phi): Handle the aggregate copy case.
8372         (propagate_with_phi): Likewise.
8373
8374 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
8375
8376         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
8377         instead of simplify_gen_subreg (... , 0).
8378         (ix86_delegitimize_address): Ditto.
8379         (ix86_split_divmod): Ditto.
8380         (ix86_split_copysign_const): Ditto.
8381         (ix86_split_copysign_var): Ditto.
8382         (ix86_expand_args_builtin): Ditto.
8383         (ix86_expand_round_builtin): Ditto.
8384         (ix86_expand_special_args_builtin): Ditto.
8385         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
8386         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
8387         (udivmodqi4): Ditto.
8388         (absneg splitters): Ditto.
8389         (*jcc_bt<mode>_1): Ditto.
8390
8391 2016-04-19  Richard Biener  <rguenther@suse.de>
8392
8393         PR tree-optimization/70724
8394         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
8395         restoring out from ...
8396         (free_scc_vn): ... here.
8397         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
8398         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
8399         tail merging.
8400         (pass_fre::execute): Restore SSA info.
8401
8402 2016-04-19  Richard Biener  <rguenther@suse.de>
8403
8404         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
8405         * gimple-walk.c (walk_gimple_op): Initialize it.
8406         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
8407         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
8408         remapping SSA names of defs.
8409         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
8410         adjustment.
8411
8412 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
8413
8414         PR middle-end/70689
8415         * lra-constraints.c (equiv_substition_p): New.
8416         (process_alt_operands): Use it.
8417         (swap_operands): Swap it.
8418         (curr_insn_transform): Update it.
8419
8420 2016-04-18  Michael Matz  <matz@suse.de>
8421
8422         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
8423         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
8424         * tree-core.h (tree_type_common.align): Use bit-field.
8425         (tree_type_common.spare): New.
8426         (tree_decl_common.off_align): Make smaller.
8427         (tree_decl_common.align): Use bit-field.
8428
8429         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
8430         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
8431         (scan_sharing_clauses): Ditto.
8432         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
8433         (omp_finish_file): Ditto.
8434         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
8435         (layout_decl): Ditto.
8436         (relayout_decl): Ditto.
8437         (finalize_record_size): Use SET_TYPE_ALIGN.
8438         (finalize_type_size): Ditto.
8439         (finish_builtin_struct): Ditto.
8440         (layout_type): Ditto.
8441         (initialize_sizetypes): Ditto.
8442         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
8443         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
8444         (lookup_field_for_decl): Use SET_DECL_ALIGN.
8445         (get_chain_field): Ditto.
8446         (get_trampoline_type): Ditto.
8447         (get_nl_goto_field): Ditto.
8448         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
8449         SET_DECL_ALIGN.
8450         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
8451         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
8452         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
8453         (build_qualified_type): Use SET_TYPE_ALIGN.
8454         (build_aligned_type, build_range_type_1): Ditto.
8455         (build_atomic_base): Ditto.
8456         (build_common_tree_nodes): Ditto.
8457         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
8458         (expand_one_stack_var_at): Ditto.
8459         * coverage.c (build_var): Use SET_DECL_ALIGN.
8460         * except.c (init_eh): Ditto.
8461         * function.c (assign_parm_setup_block): Ditto.
8462         * symtab.c (increase_alignment_1): Ditto.
8463         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
8464         * tree-vect-stmts.c (ensure_base_align): Ditto.
8465         * varasm.c (align_variable): Ditto.
8466         (assemble_variable): Ditto.
8467         (build_constant_desc): Ditto.
8468         (output_constant_def_contents): Ditto.
8469
8470         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
8471         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
8472         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
8473         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
8474         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
8475
8476 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
8477
8478         PR target/70708
8479         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
8480         replace %vmovsd with "%vmovq".
8481         (vec_concatv2df): Likewise.
8482
8483 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
8484
8485         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
8486         (*vec_extractv2si_0): Ditto.
8487         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
8488         (zero_extended_scalar_load_operand splitters): Ditto.
8489         (vec_extract splitters): Ditto.
8490         (*vec_extractv4si_0_zext): Ditto.
8491         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
8492         and lowpart_subreg.
8493         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
8494         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
8495         (*sse4_1_extractps): Use lowpart_subreg.
8496         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
8497
8498 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8499
8500         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
8501         gld requirements.
8502         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
8503         Mention Solaris 11 packaging changes.
8504         Update gas and gld requirements.
8505         Remove reference to pre-Solaris 10 bug.
8506         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
8507         systems and bugs.
8508         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
8509         with cc.
8510
8511 2016-04-17  Jan Hubicka  <jh@suse.cz>
8512
8513         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
8514         max_loop_iterations_int.
8515
8516 2016-04-18  Richard Biener  <rguenther@suse.de>
8517
8518         PR tree-optimization/43434
8519         * tree-ssa-structalias.c (struct vls_data): New.
8520         (visit_loadstore): Handle all pointer-based accesses.
8521         (compute_dependence_clique): Compute a bitmap of restrict tags
8522         assigned bases and pass it to visit_loadstore.
8523
8524 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
8525
8526         PR target/70711
8527         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
8528         armv8.1-a and armv8.1-a+crc.
8529
8530 2016-04-18  Richard Biener  <rguenther@suse.de>
8531
8532         PR tree-optimization/70701
8533         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
8534         references after translating through a memcpy.
8535
8536 2016-04-18  Richard Biener  <rguenther@suse.de>
8537
8538         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
8539         (compute_antic): ... here.  For partial antic use regular
8540         postorder and scrap iteration.
8541         (compute_partial_antic_aux): Remove unused return value.
8542         (init_pre): Do not allocate postorder.
8543         (fini_pre): Do not free postorder.
8544
8545 2016-04-18  Richard Biener  <rguenther@suse.de>
8546
8547         PR middle-end/37870
8548         * expmed.c (extract_bit_field_1): Remove broken case
8549         using a wider MODE_INT mode.
8550
8551 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
8552
8553         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
8554         unless compiling with at least GCC-4.8.
8555
8556 2016-04-17  Jan Hubicka  <jh@suse.cz>
8557
8558         PR bootstrap/70706
8559         * graphite.c (graphite_finalize): Update call to
8560         tree_estimate_probability.
8561         * predict.h (tree_estimate_probability): Update prototype.
8562
8563 2016-04-17  Jan Hubicka  <jh@suse.cz>
8564
8565         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
8566         (tree_estimate_probability): Likewise.
8567         (pass_profile::execute): Update.
8568         (report_predictor_hitrates): New function.
8569         * profile.c (compute_branch_probabilities): Use it.
8570         * predict.h (report_predictor_hitrates): Declare.
8571
8572 2016-04-17  Jan Hubicka  <jh@suse.cz>
8573
8574         PR ipa/70018
8575         * cgraph.h (cgraph_node::set_const_flag,
8576         cgraph_node::set_pure_flag): Update prototype to return bool;
8577         update comment.
8578         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
8579         of interposable symbol are interposable, too.
8580         (cgraph_set_const_flag_1): Rename to ...
8581         (set_const_flag_1): ... this one; change to self recursive function
8582         instead of call_for_symbol_thunks_and_aliases. Handle correctly
8583         clearnig the flag in all variants and also virtual thunks of const
8584         functions are pure; track if any change was done.
8585         (cgraph_node::set_const_flag): Update.
8586         (struct set_pure_flag_info): New struct.
8587         (cgraph_set_pure_flag_1): Rename to ...
8588         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
8589         rather than pointer encoded flags; track if any changes was done;
8590         handle correctly clearning flag and setting flag of aliases already
8591         declared const.
8592         (cgraph_node::set_pure_flag): Update.
8593         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
8594
8595 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8596
8597         PR other/70433
8598         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
8599         backslash in label.
8600
8601 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8602
8603         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
8604         '{}<> ' as escape-for-record.
8605
8606 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8607
8608         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
8609         structure.
8610
8611 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8612
8613         PR other/70185
8614         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
8615         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
8616         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
8617         * passes.c (finish_optimization_passes): Only call
8618         finish_graph_dump_file if dfi->graph_dump_initialized.
8619         (execute_function_dump, pass_init_dump_file): Use
8620         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
8621
8622 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8623
8624         PR tree-optimization/70256
8625         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
8626         (debug_varmap): New function.
8627
8628 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8629
8630         PR other/70183
8631         * passes.c (pass_manager::register_pass): Propagate pflags.
8632
8633 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8634
8635         PR other/68875
8636         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
8637         * passes.c (pass_manager::pass_manager): Declare and init p_start in
8638         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
8639         check if it's equal to p_start.
8640         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
8641
8642 2016-04-15  Jan Hubicka  <jh@suse.cz>
8643
8644         PR ipa/70018
8645         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
8646         function does not bind to current def.
8647         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
8648         handle conservatively calls to functions that does not need to bind
8649         to current def.
8650         (check_call): Update call of worse_state.
8651         (ignore_edge_for_nothrow): Update.
8652         (ignore_edge_for_pure_const): Likewise.
8653         (propagate_pure_const): Update calls to worse_state.
8654         (skip_function_for_local_pure_const): Reformat comments.
8655
8656 2016-04-15  Jan Hubicka  <jh@suse.cz>
8657
8658         PR ipa/70018
8659         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
8660         (cgraph_node::function_symbol): Likewise.
8661         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
8662         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
8663         (symtab_node::ultimate_alias_target): Add REF parameter.
8664         (symtab_node::binds_to_current_def_p): Declare.
8665         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
8666         (cgraph_node::function_symbol): Likewise.
8667         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
8668         (cgraph_node::get_availability): Likewise.
8669         (cgraph_edge::binds_to_current_def_p): New inline function.
8670         (varpool_node::get_availability): Add REF parameter.
8671         (varpool_node::ultimate_alias_target): Likewise.
8672         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
8673         (symtab_node::binds_to_current_def_p): Likewise.
8674         * varpool.c (varpool_node::get_availability): Likewise.
8675
8676 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
8677
8678         PR target/70662
8679         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
8680         Fix mode size check.
8681
8682 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
8683
8684         * BASE-VER: Set to 7.0.0.
8685
8686 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
8687
8688         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
8689
8690 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8691
8692         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
8693         architecture revisions.
8694
8695 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
8696
8697         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
8698         * config/i386/i386.c (ix86_using_red_zone): No longer static.
8699         * config/i386/i386.md (stack decrement to push peepholes): Guard
8700         with !x86_using_red_zone ().
8701
8702 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
8703
8704         PR c++/70675
8705         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
8706         to dump_generic_node.
8707         (NIY): Pass also flags to do_niy.
8708
8709 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
8710
8711         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
8712         (simd_clone_vector_of_formal_parm_types)
8713         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
8714         (simd_clone_mangle, simd_clone_create)
8715         (simd_clone_adjust_return_type, create_tmp_simd_array)
8716         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
8717         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
8718         (ipa_simd_modify_function_body, simd_clone_linear_addend)
8719         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
8720         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
8721         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
8722         * omp-simd-clone.c: ... this new file.
8723         (simd_clone_vector_of_formal_parm_types): Make it static.
8724         * Makefile.in (OBJS): Add omp-simd-clone.o.
8725
8726 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
8727
8728         PR target/70662
8729         * config/i386/sse.md: Use proper memory operand modifiers.
8730
8731
8732 2016-04-15  Richard Biener  <rguenther@suse.de>
8733         Alan Modra  <amodra@gmail.com>
8734
8735         PR tree-optimization/70130
8736         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
8737         when alignment stays not the same and no not use the realign
8738         scheme then.
8739
8740 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8741
8742         PR target/70669
8743         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
8744         direct move handlers for KFmode. Change TFmode handlers test from
8745         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
8746
8747 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
8748
8749         PR c++/70594
8750         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
8751         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
8752         (inlined_polymorphic_ctor_dtor_block_p): Use it.
8753         * tree-ssa-live.c (remove_unused_scope_block_p): When
8754         in_ctor_dtor_block, avoid discarding not just BLOCKs with
8755         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
8756         block_ultimate_origin is FUNCTION_DECL.
8757         (remove_unused_locals): If current_function_decl is
8758         polymorphic_ctor_dtor_p, pass initial true to
8759         remove_unused_scope_block_p' is_ctor_dtor_block.
8760
8761 2016-04-14  Martin Sebor  <msebor@redhat.com>
8762
8763         PR c++/69517
8764         PR c++/70019
8765         PR c++/70588
8766         * doc/extend.texi (Variable Length): Revert.
8767
8768 2016-04-14  Marek Polacek  <polacek@redhat.com>
8769             Jan Hubicka  <hubicka@ucw.cz>
8770
8771         PR c++/70029
8772         * tree.c (verify_type): Disable the canonical type of main variant
8773         check.
8774
8775 2016-04-14  Jason Merrill  <jason@redhat.com>
8776
8777         * cfgexpand.c, expr.c: Revert previous change.
8778
8779 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
8780
8781         PR middle-end/70643
8782         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
8783         when building a mem ref for the incoming reduction variable.
8784
8785 2016-04-14  Richard Biener  <rguenther@suse.de>
8786
8787         PR tree-optimization/70614
8788         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
8789         loop if the evolution dropped to chrec_dont_know.
8790         (interpret_condition_phi): Likewise.
8791
8792 2016-04-14  Richard Biener  <rguenther@suse.de>
8793
8794         PR tree-optimization/70623
8795         * tree-ssa-pre.c (changed_blocks): Make global ...
8796         (compute_antic): ... local here.  Move and fix worklist
8797         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
8798         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
8799         worklist handling, dump when ANTIC_IN changed.
8800         (compute_partial_antic_aux): Remove worklist handling.
8801         (init_pre): Do not compute post dominators.  Add a comment about
8802         the CFG order chosen.
8803         (fini_pre): Do not free post dominators.
8804
8805 2016-04-13  Martin Sebor  <msebor@redhat.com>
8806
8807         PR c++/69517
8808         PR c++/70019
8809         PR c++/70588
8810         * doc/extend.texi (Variable Length): Document C++ specifics.
8811
8812 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
8813
8814         PR c++/70641
8815         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
8816         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
8817         eh edges have been purged.
8818
8819         PR c++/70594
8820         * tree-sra.c (create_access_replacement,
8821         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
8822         gets fancy name.
8823         * tree-pretty-print.c (dump_fancy_name): New function.
8824         (dump_decl_name, dump_generic_node): Use it.
8825
8826 2016-04-13  Jason Merrill  <jason@redhat.com>
8827
8828         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
8829         * expr.c (expand_expr_real_1): Likewise.
8830
8831 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
8832
8833         * config/i386/i386.md (kunpckhi): Swap operands.
8834         (kunpcksi): Likewise.
8835         (kunpckdi): Likewise.
8836         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
8837         (vec_pack_trunc_<mode>): Likewise.
8838
8839 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
8840
8841         PR debug/70628
8842         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
8843
8844         PR middle-end/70633
8845         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
8846         gimplification turns some element into non-constant.
8847
8848         PR debug/70628
8849         * rtl.h (convert_memory_address_addr_space_1): New prototype.
8850         * explow.c (convert_memory_address_addr_space_1): No longer static,
8851         add NO_EMIT argument and don't call convert_modes if true, pass
8852         it down recursively, remove break after return.
8853         (convert_memory_address_addr_space): Adjust caller.
8854         * simplify-rtx.c (simplify_unary_operation_1): Call
8855         convert_memory_address_addr_space_1 instead of convert_memory_address,
8856         if it returns NULL, don't simplify.
8857
8858 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
8859
8860         PR target/70630
8861         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
8862
8863 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8864
8865         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8866         Bump the upper SIMDLEN limits, so that if the return type or
8867         characteristic type if the return type is void can be passed in
8868         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
8869         allowed.
8870
8871 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8872
8873         PR target/70640
8874         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
8875         Do not use "=" constraint on an input constraint.
8876         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
8877         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
8878         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
8879         generates (neg (abs ...)) instead of (abs ...).
8880
8881 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8882
8883         PR rtl-optimization/70596
8884         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
8885         just invalidate LRA data and reset them.  Adjust dump wording.
8886
8887 2016-04-12  Martin Liska  <mliska@suse.cz>
8888
8889         Revert
8890         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
8891
8892         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
8893         estimates here.
8894         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
8895         max_loop_iterations_int.
8896         (tree_unswitch_outer_loop): Likewise.
8897         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
8898         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8899
8900 2016-04-12  Tom de Vries  <tom@codesourcery.com>
8901
8902         PR tree-optimization/68756
8903         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
8904         instead of new_name.
8905
8906 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8907
8908         PR tree-optimization/70602
8909         * tree-sra.c (generate_subtree_copies): Don't write anything into
8910         constant pool decls.
8911
8912         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
8913         regardless whether there are depend clauses or not.
8914
8915 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
8916
8917         PR target/70381
8918         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
8919         target attribute and pragma from changing the -mfloat128
8920         and -mfloat128-hardware options.
8921
8922         * doc/extend.texi (Additional Floating Types): Document PowerPC
8923         __float128 restrictions.
8924
8925 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
8926
8927         PR target/70133
8928         * config/aarch64/driver-aarch64.c
8929         (aarch64_get_extension_string_for_isa_flags): New.
8930         (arch_extension): Rename to...
8931         (aarch64_arch_extension): ...This.
8932         (ext_to_feat_string): Rename to...
8933         (aarch64_extensions): ...This.
8934         (aarch64_core_data): Keep track of architecture extension flags.
8935         (cpu_data): Rename to...
8936         (aarch64_cpu_data): ...This.
8937         (aarch64_arch_driver_info): Keep track of architecture extension
8938         flags.
8939         (get_arch_name_from_id): Rename to...
8940         (get_arch_from_id): ...This, change return type.
8941         (host_detect_local_cpu): Update and reformat for renames, handle
8942         extensions through common infrastructure.
8943
8944 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
8945
8946         PR target/70133
8947         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
8948         track of a canonical flag name.
8949         (all_extensions): Likewise.
8950         (arch_to_arch_name): Also track extension flags enabled by the arch.
8951         (all_architectures): Likewise.
8952         (aarch64_parse_extension): Move to here.
8953         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
8954         rework.
8955         (aarch64_rewrite_selected_cpu): Update for above change.
8956         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
8957         are handled, such that the single explicit value enabled by an
8958         extension is kept seperate from the implicit values it also enables.
8959         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
8960         to here.
8961         (aarch64_parse_extension): New.
8962         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
8963         here to config/aarch64/aarch64-protos.h.
8964         (aarch64_parse_extension): Move from here to
8965         common/config/aarch64/aarch64-common.c.
8966         (aarch64_option_print): Update.
8967         (aarch64_declare_function_name): Likewise.
8968         (aarch64_start_file): Likewise.
8969         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
8970         the canonical flag for extensions.
8971         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
8972         flags.
8973
8974 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
8975
8976         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
8977         AARCH64_FL_CRC.
8978
8979 2016-04-09  Tom de Vries  <tom@codesourcery.com>
8980
8981         PR tree-optimization/68953
8982         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
8983         first to last subscript.
8984
8985 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
8986
8987         PR tree-optimization/70586
8988         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
8989         for any calls.
8990
8991 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
8992
8993         PR lto/70289
8994         PR ipa/70348
8995         PR tree-optimization/70373
8996         PR middle-end/70533
8997         PR middle-end/70534
8998         PR middle-end/70535
8999         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
9000         clauses for acc parallel reductions as necessary.  Error on those
9001         that are private.
9002         * omp-low.c (scan_sharing_clauses): Don't install variables which
9003         are used in acc parallel reductions.
9004         (lower_rec_input_clauses): Remove dead code.
9005         (lower_oacc_reductions): Add support for reference reductions.
9006         (lower_reduction_clauses): Remove dead code.
9007         (lower_omp_target): Don't remap variables appearing in acc parallel
9008         reductions.
9009         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
9010
9011 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
9012
9013         PR middle-end/70593
9014         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
9015         with multiple SSA_NAME defs, force the outputs other than first
9016         to be live before calling live_track_process_def on each output.
9017
9018         PR rtl-optimization/70574
9019         * fwprop.c (forward_propagate_and_simplify): Don't add
9020         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
9021         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
9022         paradoxical subregs within *loc.
9023
9024 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
9025
9026         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
9027         -ftree-parallelize-loops={0,1}.
9028         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
9029         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
9030         * config/ia64/hpux.h (LIB_SPEC): Likewise.
9031         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9032         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
9033
9034 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
9035
9036         PR sanitizer/70541
9037         * asan.c (instrument_derefs): If we get unknown location, extract it
9038         with EXPR_LOCATION.
9039         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
9040
9041 2016-04-08  Tom de Vries  <tom@codesourcery.com>
9042
9043         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
9044         implicit firstprivate clause.
9045
9046 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9047
9048         PR target/70566
9049         * config/arm/thumb2.md (tst + branch-> lsls + branch
9050         peephole below *orsi_not_shiftsi_si): Require that condition
9051         register is dead after the peephole.
9052         (second peephole after the above): Likewise.
9053
9054 2016-04-08  Alan Modra  <amodra@gmail.com>
9055
9056         PR target/70117
9057         * builtins.c (fold_builtin_classify): For IBM extended precision,
9058         look at just the high-order double to test for NaN.
9059         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
9060         test just the high double for Inf but both doubles for subnormal
9061         limit.
9062
9063 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
9064
9065         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
9066         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
9067         node->simdclone->mask_mode != VOIDmode masks.
9068         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
9069         earlier, use it instead of node->simdclone.
9070         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
9071         Set clonei->mask_mode.
9072
9073 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
9074
9075         PR c/70436
9076         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
9077         Pass it through to cp_parser_already_scoped_statement.
9078         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
9079         it through to cp_parser_statement.
9080         (cp_parser_statement): Pass IF_P through to
9081         cp_parser_iteration_statement.
9082         (cp_parser_pragma): Adjust call to
9083         cp_parser_iteration_statement.
9084
9085 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
9086
9087         PR c/70436
9088         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
9089         resolve a future -Wparentheses warning.
9090         * omp-low.c (scan_sharing_clauses): Likewise.
9091         * tree-parloops.c (eliminate_local_variables): Likewise.
9092
9093 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
9094
9095         PR rtl-optimization/70398
9096         * lra-constraints.c (process_address_1): Check zero scale and code
9097         for reloading with zero scale.
9098
9099 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
9100
9101         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
9102         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
9103
9104 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
9105
9106         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
9107         Add support for AVX512F clones, include them by default for
9108         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
9109         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
9110         up to 128.
9111
9112         PR middle-end/70550
9113         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
9114         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
9115         firstprivate clauses.
9116         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
9117         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
9118         (lower_omp_target): Set TREE_NO_WARNING for
9119         non-addressable possibly uninitialized vars which are copied into
9120         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
9121
9122 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
9123
9124         * config/pa/predicates.md (integer_store_memory_operand): Accept
9125         REG+D operands with a large offset when reload_in_progress is true.
9126         (floating_point_store_memory_operand): Likewise.
9127
9128 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
9129
9130         PR c++/70336
9131         * match.pd (nested int casts): Limit to GIMPLE.
9132
9133 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
9134
9135         PR ipa/66223
9136         * ipa-devirt.c (maybe_record_node): Fix comment; use
9137         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
9138
9139 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
9140
9141         PR rtl-optimization/70542
9142         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
9143         if there are any uses other than insn or debug insns.
9144
9145 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
9146             Jakub Jelinek  <jakub@redhat.com>
9147
9148         PR tree-optimization/70509
9149         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
9150         Shift HOST_WIDE_INT_1U instead of 1.
9151
9152 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
9153
9154         PR tree-optimization/70509
9155         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
9156         of the vector base type for index.
9157
9158 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
9159
9160         PR target/70510
9161         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
9162
9163 2016-04-05  Richard Biener  <rguenther@suse.de>
9164
9165         PR tree-optimization/70526
9166         * tree-sra.c (build_ref_for_offset): Use prev_base to
9167         extract the alias pointer type.
9168
9169 2016-04-05  Richard Biener  <rguenther@suse.de>
9170
9171         * dse.c (struct store_info): Remove alias_set member.
9172         (struct read_info_type): Likewise.
9173         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
9174         spill_deleted, clear_alias_set_lookup): Remove.
9175         (get_group_info): Remove dead base == NULL_RTX case.
9176         (dse_step0): Remove initialization of removed variables.
9177         (delete_dead_store_insn): Reomve alias set dumping.
9178         (free_read_records): Remove alias_set handling.
9179         (canon_address): Remove alias_set_out parameter.
9180         (record_store): Remove spill_alias_set, it's always zero.
9181         (check_mem_read_rtx): Likewise.
9182         (dse_step2): Rename from ...
9183         (dse_step2_nospill): ... this.  Adjust.
9184         (scan_stores): Rename from ...
9185         (scan_stores_nospill): ... this.
9186         (scan_reads): Rename from ...
9187         (scan_reads_nospill): ... this.
9188         (scan_stores_spill, scan_reads_spill): Remove.
9189         (dse_step3_scan): Remove for_spills argument which is always false.
9190         (dse_step3): Likewise.
9191         (dse_step5): Rename from ...
9192         (dse_step5_nospill): ... this.  Remove alias_set handling.
9193         (rest_of_handle_dse): Adjust.
9194
9195 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
9196
9197         PR target/70525
9198         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
9199         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
9200         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
9201         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
9202
9203 2016-04-05  Richard Biener  <rguenther@suse.de>
9204
9205         PR middle-end/70499
9206         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
9207         non-register type temporaries into SSA.
9208
9209 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
9210
9211         PR ipa/66223
9212         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
9213         calls when sanitizing.
9214         (possible_polymorphic_call_target_p): Fix formatting.
9215
9216 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9217             Jakub Jelinek <jakub@redhat.com>
9218
9219         PR middle-end/70457
9220         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
9221         to ensure a call statement is compatible with a built-in's
9222         prototype.
9223         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
9224         Likewise.
9225
9226 2016-04-04  Richard Biener  <rguenther@suse.de>
9227
9228         PR rtl-optimization/70484
9229         * rtl.h (canon_output_dependence): Declare.
9230         * alias.c (canon_output_dependence): New function.
9231         * dse.c (record_store): Use canon_output_dependence rather
9232         than canon_true_dependence.
9233
9234 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
9235
9236         PR ipa/68881
9237         * cgraph.h (symtab_node::copy_visibility_from): New function.
9238         * symtab.c (symtab_node::copy_visibility_from): New function.
9239         * ipa-visibility.c (optimize_weakref): New function.
9240         (function_and_variable_visibility): Use it.
9241
9242 2016-04-04  Martin Liska  <mliska@suse.cz>
9243
9244         PR hsa/70402
9245         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
9246         value that is really in range handled by SBR instruction.
9247         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
9248         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
9249         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
9250
9251 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
9252
9253         PR target/70416
9254         PR target/67391
9255         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
9256         set, but not for SP_REG operands.
9257
9258 2016-04-02  Martin Sebor  <msebor@redhat.com>
9259
9260         PR c++/67376
9261         * fold-const.c (maybe_nonzero_address): New function.
9262         (fold_comparison): Call it.  Fold equality and relational
9263         expressions involving null pointers.
9264         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
9265
9266 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
9267
9268         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
9269         the "Y" constraint (scalar FP 0.0 immediate).
9270
9271         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
9272         Add the "const_double" to the list of operand constraints.
9273
9274 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
9275
9276         PR rtl-optimization/70467
9277         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
9278         If low word of the last operand is 0, just emit addition/subtraction
9279         for the high word.
9280
9281 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9282
9283         PR target/70404
9284         * config/s390/s390.c (s390_expand_insv): Check for everything
9285         constant instead of just VOIDmode stuff.
9286
9287 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9288
9289         PR target/70496
9290         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
9291
9292 2016-04-01  Nathan Sidwell  <nathan@acm.org>
9293
9294         * tree.def (TRY_CATCH_EXPR): Correct documentation.
9295
9296 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
9297
9298         PR rtl-optimization/70461
9299         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
9300         is necessary.
9301
9302 2016-03-31  Martin Liska  <mliska@suse.cz>
9303
9304         PR hsa/70399
9305         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
9306         a tree value or an immediate integer value to a buffer
9307         that is eventually copied to a BRIG section.
9308         (emit_immediate_operand): Call the function here.
9309         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
9310         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
9311         of class' fields that are removed.
9312         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
9313         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
9314         m_brig_repr_size fields.
9315
9316 2016-03-31  Martin Liska  <mliska@suse.cz>
9317
9318         PR hsa/70391
9319         * hsa-gen.c (hsa_function_representation::update_dominance): New
9320         function.
9321         (convert_addr_to_flat_segment): Likewise.
9322         (gen_hsa_memory_set): New alignment argument.
9323         (gen_hsa_ctor_assignment): Likewise.
9324         (gen_hsa_insns_for_single_assignment): Provide alignment
9325         to gen_hsa_ctor_assignment.
9326         (gen_hsa_insns_for_direct_call): Add new argument.
9327         (expand_lhs_of_string_op): New function.
9328         (expand_string_operation_builtin): Likewise.
9329         (expand_memory_copy): New function.
9330         (expand_memory_set): New function.
9331         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
9332         (convert_switch_statements): Change signature.
9333         (generate_hsa): Use a return value of the function.
9334         (pass_gen_hsail::execute): Do not call
9335         convert_switch_statements here.
9336         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
9337         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
9338         (hsa_function_representation::update_dominance): New function.
9339
9340 2016-03-31  Martin Liska  <mliska@suse.cz>
9341
9342         PR hsa/70391
9343         * hsa-brig.c (emit_directive_variable): Emit alignment
9344         according to hsa_symbol::m_align.
9345         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
9346         (dump_hsa_symbol): Dump alignment of HSA symbols.
9347         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
9348         (gen_hsa_addr_with_align): New function.
9349         (hsa_bitmemref_alignment): Use newly added function.
9350         (gen_hsa_insns_for_load): Likewise.
9351         (gen_hsa_insns_for_store): Likewise.
9352         (gen_hsa_memory_copy): New argument added.
9353         (gen_hsa_insns_for_single_assignment): Respect
9354         alignment for assignments processed via gen_hsa_memory_copy.
9355         (gen_hsa_insns_for_direct_call): Likewise.
9356         (gen_hsa_insns_for_return): Likewise.
9357         (gen_function_def_parameters): Set default alignment.
9358         * hsa.c (hsa_object_alignment): New function.
9359         (hsa_byte_alignment): Pasted function.
9360         * hsa.h (hsa_symbol::m_align): New field.
9361
9362 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
9363
9364         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
9365         scratch field for goto case.
9366
9367 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
9368
9369         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
9370
9371 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
9372
9373         PR target/70442
9374         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
9375         (scalar_chain::convert_insn): Call convert_op for reg
9376         moves to handle undefined registers.
9377
9378 2016-03-31  Nathan Sidwell  <nathan@acm.org>
9379
9380         PR c++/70393
9381         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
9382         Assert we don't want to move backwards.
9383
9384 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
9385
9386         PR target/70453
9387         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
9388
9389 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
9390
9391         PR rtl-optimization/70460
9392         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
9393         with operand from REG_LABEL_OPERAND, instead substitute
9394         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
9395         Don't do anything for REG_NON_LOCAL_GOTO jumps.
9396
9397 2016-03-31  Martin Liska  <mliska@suse.cz>
9398
9399         * passes.c (execute_one_pass): Do not call
9400         todo_after for a discarded function.
9401
9402 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
9403
9404         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
9405         (no_cost, infinite_cost): Initialize the new field.
9406         (get_computation_cost_at): Record setup cost.
9407         (determine_use_iv_cost_address): Skip cost computation for sub
9408         uses if we can estimate it without losing accuracy.
9409
9410 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
9411
9412         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
9413         estimates here.
9414         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
9415         max_loop_iterations_int.
9416         (tree_unswitch_outer_loop): Likewise.
9417         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
9418         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9419
9420 2016-03-30  Richard Biener  <rguenther@suse.de>
9421
9422         PR middle-end/70450
9423         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
9424
9425 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
9426
9427         PR target/70421
9428         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
9429         in gen_blendm expander.
9430
9431 2016-03-30  Nick Clifton  <nickc@redhat.com>
9432
9433         PR target/62254
9434         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
9435         case where we are already provided with an SImode SUBREG.
9436
9437 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
9438
9439         PR target/70439
9440         * config/i386/i386.c (ix86_expand_epilogue): Properly check
9441         conflict between DRAP register and __builtin_eh_return.
9442
9443 2016-03-30  Michael Matz  <matz@suse.de>
9444             Richard Biener  <rguenther@suse.de>
9445
9446         PR ipa/12392
9447         * ipa-polymorphic-call.c (struct type_change_info): Change
9448         speculative to an unsigned allowing to limit the work we do.
9449         (csftc_abort_walking_p): New inline function..
9450         (check_stmt_for_type_change): Limit the number of may-defs
9451         skipped for speculative devirtualization to
9452         max-speculative-devirt-maydefs.
9453         * params.def (max-speculative-devirt-maydefs): New param.
9454         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
9455
9456 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
9457
9458         PR target/63890
9459         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
9460         and TARGET_MACHO.
9461
9462 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
9463
9464         PR tree-optimization/59124
9465         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
9466         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
9467
9468 2016-03-29  Jeff Law  <law@redhat.com>
9469
9470         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
9471
9472 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
9473
9474         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
9475         to HOST_WIDE_INT.
9476
9477 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
9478
9479         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
9480         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
9481         gcrt0.o if linking dynamically.
9482
9483 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
9484
9485         PR ipa/70283
9486         * ipa-devirt.c (methods_equal_p): New function.
9487         (compare_virtual_tables): Use it.
9488         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
9489         * cgraphclones.c (clone_function_name_1): Use
9490         symbol_table::symbol_suffix_separator.
9491         * coverage.c (build_var): Likewise.
9492         * symtab.c (symbol_table::symbol_suffix_separator): New.
9493
9494 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
9495
9496         PR rtl-optimization/70429
9497         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
9498         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
9499         mode != result_mode.
9500
9501         PR c++/70353
9502         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
9503
9504         PR tree-optimization/70405
9505         * ssa-iterators.h (num_imm_uses): Add missing braces.
9506
9507 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
9508
9509         PR rtl-optimization/68695
9510         * ira-color.c (allocno_copy_cost_saving): New.
9511         (improve_allocation): Use it.
9512
9513 2016-03-29  Richard Henderson  <rth@redhat.com>
9514
9515         PR middle-end/70355
9516         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
9517
9518 2016-03-29  Richard Biener  <rguenther@suse.de>
9519
9520         PR middle-end/70424
9521         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
9522         use alignment returned by get_pointer_alignment_1 if it is
9523         bigger than BITS_PER_UNIT.
9524         * builtins.c (get_pointer_alignment_1): Do not return true
9525         for alignment extracted from SSA info.
9526
9527 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
9528
9529         * config/ft32/ft32.opt (mnodiv): New.
9530         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
9531         * doc/invoke.texi (FT32 Options -mnodiv): New.
9532
9533 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
9534
9535         PR target/70406
9536         * config/i386/i386.md (define_split, andn): Fix modes.
9537
9538 2016-03-26  Richard Biener  <rguenther@suse.de>
9539             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9540
9541         PR ipa/70366
9542         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
9543         instead of
9544         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
9545         as 2nd argument to cl_optimization_restore().
9546
9547 2016-03-25  Richard Henderson  <rth@redhat.com>
9548
9549         PR target/70120
9550         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
9551         * config/aarch64/aarch64-protos.h: Declare it.
9552         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
9553
9554 2016-03-25  Alan Modra  <amodra@gmail.com>
9555
9556         PR target/70052
9557         * config/rs6000/constraints.md (j): Simplify.
9558         * config/rs6000/predicates.md (easy_fp_constant): Exclude
9559         decimal float 0.D.
9560         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
9561         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
9562          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
9563         in all constraint alternatives.
9564         (movtd_64bit_nodm): Delete "j" constraint alternative.
9565
9566 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
9567
9568         * tree-ssa-propagate.c: Enhance docs for
9569         SSA_PROP_NOT_INTERESTING.
9570
9571 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
9572
9573         * doc/extend.texi: Fix typo in documentation to pure attribute.
9574
9575 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
9576
9577         PR target/70319
9578         * config/pa/pa.md (bswapdi2): Use a scratch register.
9579
9580 2016-03-24  Richard Henderson  <rth@redhat.com>
9581
9582         PR middle-end/69845
9583         * fold-const.c (extract_muldiv_1): Correct test for multiplication
9584         overflow.
9585
9586 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
9587
9588         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
9589         using ix86_expand_binary_operator instead of gen_andsi3.
9590
9591 2016-03-24  Richard Biener  <rguenther@suse.de>
9592
9593         PR tree-optimization/70396
9594         * tree-vect-stmts.c (vectorizable_comparison): Use
9595         get_vectype_for_scalar_type.
9596
9597 2016-03-24  Richard Biener  <rguenther@suse.de>
9598
9599         PR middle-end/70370
9600         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
9601         with register bases.
9602
9603 2016-03-24  Richard Biener  <rguenther@suse.de>
9604
9605         PR tree-optimization/70372
9606         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
9607         build_all_ones_cst to also handle vector types correctly.
9608
9609 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
9610
9611         PR target/70381
9612         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
9613         -mfloat128 here.
9614
9615 2016-03-23  Marek Polacek  <polacek@redhat.com>
9616
9617         PR c++/69884
9618         * doc/invoke.texi: Document -Wignored-attributes.
9619
9620 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
9621
9622         PR tree-optimization/69042
9623         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
9624         parameter from 30 to 40.
9625
9626 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
9627
9628         PR tree-optimization/69042
9629         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
9630         for use with constant offset stripped in base.
9631
9632 2016-03-23  Richard Biener  <rguenther@suse.de>
9633
9634         PR middle-end/70251
9635         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
9636         mode compatibility check.
9637         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
9638
9639 2016-03-23  Jeff Law  <law@redhat.com>
9640
9641         PR tree-optimization/64058
9642         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
9643         CONFLICT_COUNT.
9644         (struct ssa_conflicts): Move up earlier in the file.
9645         (conflicts_, var_map_): New static variables.
9646         (initialize_conflict_count): New function to initialize the
9647         CONFLICT_COUNT field for each conflict pair.
9648         (compare_pairs): Lazily initialize the conflict count and use it
9649         as the first tie-breaker.
9650         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
9651         and wipe conflicts_ and map_ around the call to qsort.  Remove
9652         special case for 2 coalesce pairs.
9653         * bitmap.c (bitmap_count_unique_bits): New function.
9654         (bitmap_count_bits_in_word): New function, extracted from
9655         bitmap_count_bits.
9656         (bitmap_count_bits): Use bitmap_count_bits_in_word.
9657         * bitmap.h (bitmap_count_unique_bits): Declare it.
9658
9659 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
9660
9661         PR target/69917
9662         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
9663         transparent alias chain for decl assembler name.
9664         * config/sol2.c (solaris_assemble_visibility): Likewise.
9665
9666 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9667
9668         * config/arm/arm1020e.md (1020call_op): Reduce reservation
9669         duration.
9670         (v10_fdivs): Likewise.
9671         (v10_fdivd): Likewise.
9672
9673 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9674
9675         PR driver/70132
9676         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
9677         to not call fclose twice on file.
9678
9679 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
9680
9681         PR tree-optimization/70354
9682         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
9683         oprnd0 is wider than oprnd1 and there is a cast from the wider
9684         type to oprnd1, mask it with the mask of the narrower type.
9685
9686         PR target/70321
9687         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
9688         Optimize TARGET_STV splitters, if high or low word of last argument
9689         is 0 or -1.
9690
9691 2016-03-22  Jeff Law  <law@redhat.com>
9692
9693         PR target/70232
9694         tree-ssa-threadbackward.c
9695         (fsm_find_control_statement_thread_paths): Correctly distinguish
9696         between old style jump threads vs FSM jump threads.
9697
9698 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
9699
9700         PR target/70302
9701         * config/i386/i386.c (scalar_chain::convert_op): Support
9702         uninitialized register usage case.
9703
9704 2016-03-22  Richard Biener  <rguenther@suse.de>
9705
9706         PR middle-end/70251
9707         * genmatch.c (gen_transform): Adjust last parameter to a three-state
9708         int...
9709         (capture::gen_transform): ... to change behavior when substituting
9710         a condition into cond or not-cond expr context.
9711         (dt_simplify::gen_1): Adjust.
9712         * gimple-match-head.c: Include gimplify.h for unshare_expr.
9713         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
9714         last change and instead change to
9715         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
9716         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
9717
9718 2016-03-22  Anthony Green  <green@moxielogic.com>
9719
9720         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
9721         issue for moxiebox targets.
9722         (CC1PLUS_SPEC): Ditto.
9723
9724 2016-03-22  Richard Biener  <rguenther@suse.de>
9725
9726         PR middle-end/70333
9727         * fold-const.c (extract_muldiv_1): Properly perform multiplication
9728         in the wide type.
9729
9730 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9731
9732         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
9733
9734 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9735
9736         PR target/70325
9737         * config/i386/i386.c (def_builtin): Handle
9738         OPTION_MASK_ISA_AVX512VL to be and-ed with other
9739         bits.
9740         (const struct builtin_description bdesc_special_args[]):
9741         Remove duplicate ISA bits.
9742
9743 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
9744
9745         PR target/70329
9746         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
9747         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
9748         in a way that works also for AVX512BW.
9749
9750         PR target/70300
9751         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
9752         instead of source if operands[1] is xmm16 and above and
9753         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
9754         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
9755
9756         PR c++/70295
9757         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
9758         on assign if (*from_p) is a comparison, set it to
9759         TREE_NO_WARNING (*from_p).
9760
9761 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
9762
9763         PR middle-end/70326
9764         * lra.c (restore_scratches): Ignore deleted insns.
9765
9766 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
9767             Jakub Jelinek  <jakub@redhat.com>
9768
9769         PR tree-optimization/70317
9770         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
9771         to HONOR_NANS.
9772
9773 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
9774
9775         PR target/70327
9776         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
9777         of ix86_expand_move.
9778         (movoi): Ditto.
9779         (movti): Use general_operand for operand 1 predicate.
9780
9781 2016-03-21  Martin Liska  <mliska@suse.cz>
9782
9783         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
9784         insns.
9785         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
9786
9787 2016-03-21  Martin Liska  <mliska@suse.cz>
9788
9789         PR ipa/70306
9790         * ipa-icf.c (sem_function::parse): Skip static
9791         constructors and destructors.
9792
9793 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
9794
9795         PR target/70296
9796         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
9797         function-like macro, peek following token(s) if it is followed
9798         by CPP_OPEN_PAREN token with optional padding in between, and
9799         if not, don't treat it like a macro.
9800
9801 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9802             Alexander Monakov  <amonakov@ispras.ru>
9803
9804         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
9805         for the stabs debug format.
9806
9807 2016-03-21  Richard Biener  <rguenther@suse.de>
9808
9809         PR tree-optimization/70310
9810         * tree-vect-generic.c (expand_vector_condition): Fold the built
9811         condition.
9812
9813 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
9814
9815         PR target/70293
9816         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
9817         Block third alternative for AVX-512VL target,
9818
9819 2016-03-21  Martin Liska  <mliska@suse.cz>
9820
9821         PR hsa/70234
9822         * hsa-brig.c (emit_function_directives): Mark unemitted
9823         global variables for emission.
9824         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
9825         (get_symbol_for_decl): Likewise.
9826         * hsa.h (struct hsa_symbol): New flag.
9827
9828 2016-03-21  Richard Biener  <rguenther@suse.de>
9829
9830         PR tree-optimization/70288
9831         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
9832         we do not estimate unsimplified all-constant conditionals or
9833         switches as optimized away.
9834
9835 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
9836
9837         PR rtl-optimization/69102
9838         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
9839         when we have a readonly dependency context.
9840
9841 2016-03-18  Jeff Law  <law@redhat.com>
9842
9843         PR rtl-optimization/70263
9844         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
9845         (update_equiv_regs): When trying to move a store to after the insn
9846         that sets the source of the store, make sure the store occurs after
9847         the insn that sets the source of the store.  When successful note
9848         the REG_EQUIV note created in the dump file.
9849
9850 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
9851             Bernd Schmidt  <bschmidt@redhat.com>
9852
9853         * doc/extend.texi: Document more potential problems with basic asms.
9854
9855 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
9856
9857         PR rtl-optimization/70278
9858         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
9859         VOIDmode.
9860
9861 2016-03-18  Jason Merrill  <jason@redhat.com>
9862
9863         * calls.c (load_register_parameters): Fix zero size sibcall logic.
9864
9865 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
9866
9867         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
9868         values to 128b regs.
9869
9870 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9871
9872         PR tree-optimization/70252
9873         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
9874         boolean vector has a proper number of elements.
9875         (supportable_narrowing_operation): Likewise.
9876
9877 2016-03-18  Tom de Vries  <tom@codesourcery.com>
9878
9879         PR ipa/70269
9880         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
9881
9882 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
9883
9884         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
9885         instead of replace_rtx for DEBUG_INSNs.
9886
9887 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9888
9889         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
9890         load type reservations.
9891
9892 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
9893
9894         PR target/70188
9895         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
9896         define_constraint for "Q" and "T" constraints.
9897
9898 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
9899
9900         Tweak the pipeline model for Exynos M1
9901
9902         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
9903         model.
9904
9905 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
9906
9907         PR c/70264
9908         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
9909         where one or both locations aren't within a line_map.
9910
9911 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9912
9913         PR driver/70192
9914         * opts.c (finish_options): Don't set flag_pie to the default if
9915         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
9916         if it is -1.
9917
9918 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
9919
9920         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
9921         true as ALL_REGS argument to replace_rtx.
9922
9923 2016-03-17  Richard Biener  <rguenther@suse.de>
9924
9925         PR debug/70271
9926         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
9927         last.
9928
9929 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
9930
9931         PR target/70245
9932         * rtl.h (replace_rtx): Add ALL_REGS argument.
9933         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
9934         equality and assert mode is the same, instead of just rtx pointer
9935         equality.
9936         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
9937         true as ALL_REGS argument to replace_rtx.
9938
9939 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
9940
9941         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
9942         for boolean vector with vector mode only.
9943         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
9944
9945 2016-03-17  Nick Clifton  <nickc@redhat.com>
9946
9947         PR target/70162
9948         * config/rx/rx.c (rx_print_integer): Print negative constants in
9949         decimal.
9950
9951 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
9952
9953         PR target/70261
9954         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
9955
9956 2016-03-16  Richard Henderson  <rth@redhat.com>
9957             Richard Biener  <rguenth@suse.de>
9958
9959         PR middle-end/70240
9960         PR middle-end/68215
9961         PR tree-opt/68714
9962         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
9963         first operand as is_gimple_condexpr.
9964
9965         PR middle-end/70240
9966         PR middle-end/68215
9967         Revert r231575
9968         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
9969         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
9970         Do not gimplify the result.
9971         (do_unop): Adjust call to tree_vec_extract.
9972         (do_binop): Likewise.
9973         (do_compare): Likewise.
9974         (do_plus_minus): Likewise.
9975         (do_negate): Likewise.
9976         (expand_vector_condition): Likewise.
9977         (do_cond): Likewise.
9978
9979 2016-03-16  Richard Henderson  <rth@redhat.com>
9980
9981         PR target/70048
9982         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
9983         (aarch64_classify_address): Use it.
9984         (aarch64_legitimize_address): Force all subexpressions of PLUS
9985         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
9986
9987 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
9988             Richard Biener  <rguenth@suse.de>
9989
9990         PR target/70245
9991         * rtlanal.c (replace_rtx): For REG, if from is a REG,
9992         return to even if only REGNO is equal, and assert
9993         mode is the same.
9994
9995 2016-03-11  Jeff Law  <law@redhat.com>
9996
9997         PR rtl-optimization/70224
9998         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
9999
10000 2016-03-16  Richard Henderson  <rth@redhat.com>
10001
10002         PR middle-end/70199
10003         * function.h (struct function): Add has_forced_label_in_static.
10004         * gimplify.c (force_labels_r): Set it.
10005         * lto-streamer-in.c (input_struct_function_base): Read it.
10006         * lto-streamer-out.c (output_struct_function_base): Write it.
10007         * tree-inline.c (has_label_address_in_static_1): Remove.
10008         (copy_forbidden): Remove fndecl parameter; test
10009         has_forced_label_in_static.
10010         (inline_forbidden_p): Update call to copy_forbidden.
10011         (tree_versionable_function_p): Likewise.
10012         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
10013         (chkp_versioning): Likewise.
10014         * tree-inline.h (copy_forbidden): Update decl.
10015
10016 2016-03-16  Marek Polacek  <polacek@redhat.com>
10017
10018         PR c/70093
10019         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
10020         function being thunked if the result type doesn't have fixed size.
10021         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
10022         doesn't have fixed size.
10023
10024 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
10025
10026         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
10027         reporting malformed loop nest.
10028
10029 2016-03-16  Tom de Vries  <tom@codesourcery.com>
10030
10031         PR lto/70187
10032         * ipa-devirt.c (possible_polymorphic_call_targets): Move
10033         nodes.length () == 1 test to before first nodes[0] access.
10034
10035 2016-03-16  Tom de Vries  <tom@codesourcery.com>
10036
10037         PR tree-optimization/68715
10038         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
10039         single_pred_p test.
10040
10041 2016-03-16  Tom de Vries  <tom@codesourcery.com>
10042
10043         PR tree-optimization/68809
10044         * graphite-scop-detection.c (same_close_phi_node): Test if result types
10045         are the same.
10046
10047 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
10048             Sandra Loosemore  <sandra@codesourcery.com>
10049
10050         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
10051         on leaf attribute. Mention ELF interposition problems.
10052
10053 2016-03-16  Alan Modra  <amodra@gmail.com>
10054
10055         PR rtl-optimization/69195
10056         PR rtl-optimization/47992
10057         * ira.c (indirect_jump_optimize): Ignore artificial defs.
10058         Add comments.
10059
10060 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
10061
10062         PR bootstrap/69513
10063         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
10064
10065 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10066
10067         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
10068
10069 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
10070
10071         PR rtl-optimization/70222
10072         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
10073         optimization if mode is different from result_mode, queue up masking
10074         of the result in outer_op.  Formatting fix.
10075
10076         PR middle-end/70239
10077         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
10078         of safe_grow.
10079
10080 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
10081
10082         PR rtl-optimization/69032
10083         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
10084         looping backwards over basic block insns.
10085
10086 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
10087
10088         PR target/66660
10089         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
10090         to non-speculative when propagating trap bits.
10091
10092 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
10093
10094         PR rtl-optimization/63384
10095         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
10096         DEBUG_INSN_P insns.
10097
10098 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
10099
10100         PR target/64411
10101         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
10102         factored out from ...
10103         (sched_analyze_insn): ... here.
10104         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
10105         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
10106         get_implicit_reg_pending_clobbers in it.
10107         (setup_id_reg_sets): Use setup_id_implicit_regs.
10108         (deps_init_id): Ditto.
10109
10110 2016-03-15  Tom de Vries  <tom@codesourcery.com>
10111
10112         PR ipa/70161
10113         * cgraph.c (cgraph_node::get_body): Save, reset and restore
10114         dump_file_name.
10115         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
10116         execute_function_dump.
10117         (execute_one_pass): Don't dump function if it will be dumped after ipa
10118         transform.
10119
10120 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
10121
10122         * genrecog.c (match_pattern_2): If pred is NULL don't call
10123         safe_predicate_mode on it.
10124
10125 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
10126
10127         PR middle-end/70219
10128         * lra-constraints.c (delete_move_and_clobber): Change assertion
10129         to also allow dregno == 0.
10130
10131 2016-03-14  Richard Henderson  <rth@redhat.com>
10132
10133         PR tree-opt/68714
10134         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
10135         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
10136         (reassociate_bb): Use optimize_vec_cond_expr; avoid
10137         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
10138         on vectors.
10139
10140 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
10141
10142         PR target/70083
10143         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
10144         regs.
10145         (lra_create_live_ranges_1): initialize hard register biggest_mode to
10146         VOIDmode.
10147         * lra-constraints.c (split_reg): For hard regs, try to find the
10148         biggest single-register mode used in the function.
10149
10150 2016-03-14  Richard Biener  <rguenther@suse.de>
10151
10152         PR tree-optimization/56365
10153         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
10154         constants to compare against.
10155
10156 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
10157
10158         PR target/70098
10159         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
10160         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
10161         (define_split for the GPR case): Use int_reg_operand instead of
10162         gpc_reg_operand for the output.
10163
10164 2016-03-14  Tom de Vries  <tom@codesourcery.com>
10165
10166         PR tree-optimization/70045
10167         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
10168         create_empty_if_region_on_edge argument.
10169
10170 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
10171
10172         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
10173         (STACK_CHECK_PROTECT): Likewise.
10174         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
10175         (STACK_CHECK_PROTECT): Likewise.
10176         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
10177         (STACK_CHECK_PROTECT): Likewise.
10178         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
10179         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10180         (STACK_CHECK_PROTECT): Likewise.
10181
10182 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
10183
10184         PR rtl-optimization/69307
10185         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
10186         registers in modes that span more than one register.
10187
10188 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
10189
10190         PR target/69614
10191         * lra-constraints.c (delete_move_and_clobber): New.
10192         (remove_inheritance_pseudos): Use it.
10193
10194 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
10195
10196         PR ada/70017
10197         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
10198         the libcall is LCT_THROW.
10199         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
10200         for the checking routine.
10201
10202 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
10203
10204         PR target/70131
10205         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
10206         optimization if we have direct move.
10207         (roundu32<mode>2_fprs): Likewise.
10208
10209 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
10210
10211         PR target/70123
10212         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
10213         be rematerialized.
10214         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
10215         Arguments swapped.  All callers changed.  Take reg_renumber into
10216         account, and Calculate and compare register ranges for hard regs.
10217
10218 2016-03-11  Jeff Law  <law@redhat.com>
10219
10220         PR tree-optimization/70190
10221         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10222         Handle cases where we can not extract the taken edge, even though we
10223         found a constant value.
10224
10225         PR tree-optimization/64058
10226         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
10227         (num_coalesce_pairs): Move up earlier in file.
10228         (find_coalesce_pair): Initialize the INDEX field for each pair
10229         discovered.
10230         (compare_pairs): No longer sort on the elements in each pair.
10231         Instead break ties with the index of the coalesce pair.
10232
10233 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10234
10235         PR target/70002
10236         * config/aarch64/aarch64-protos.h
10237         (aarch64_save_restore_target_globals): New prototype.
10238         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
10239         Call the above when popping pragma.
10240         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
10241         New function.
10242         (aarch64_set_current_function): Rewrite using the above.
10243
10244 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
10245
10246         PR tree-optimization/70177
10247         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
10248         (extract_ops_from_tree): ... this.  In the 2 argument
10249         overload remove _1 suffix.
10250         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
10251         (extract_ops_from_tree): ... this.
10252         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
10253         Adjust callers.
10254         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
10255         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
10256         extract_ops_from_tree instead of 2 operand one.
10257
10258 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
10259
10260         PR tree-optimization/70013
10261         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
10262         for constant-pool entries.
10263
10264 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
10265
10266         PR rtl-optimization/70174
10267         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
10268         followed by gen_lowpart on force_reg instead of just gen_lowpart.
10269
10270         PR tree-optimization/70169
10271         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
10272         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
10273         for unknown codes.
10274
10275 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
10276             Jakub Jelinek  <jakub@redhat.com>
10277
10278         PR target/70160
10279         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
10280         of uninitialized values.
10281
10282 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10283
10284         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
10285         define_expand.
10286         ("*trunctddd2"): New pattern definition.
10287         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
10288         TD->DD truncation.
10289
10290 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10291
10292         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
10293         definitions for BFP and DFP rounding modes.
10294         ("fixuns_truncdddi2", "fixuns_trunctddi2")
10295         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
10296         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
10297         ("fix_trunctf<mode>2"): Use the new constants instead of magic
10298         numbers.
10299
10300 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10301
10302         * config/s390/constraints.md: Adjust comment.
10303         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
10304         s390_decompose_addrstyle_without_index.
10305         * config/s390/predicates.md (shift_count_or_setmem_operand):
10306         Rename to setmem_operand.
10307         * config/s390/s390-protos.h
10308         (s390_decompose_shift_count): Rename to
10309         s390_decompose_addrstyle_without_index.
10310         * config/s390/s390.c (s390_decompose_shift_count)
10311         (s390_mem_constraint, print_shift_count_operand)
10312         (print_operand_address, print_operand): Rename
10313         s390_decompose_shift_count to
10314         s390_decompose_addrstyle_without_index and rename
10315         print_shift_count_operand to print_addrstyle_operand troughout the
10316         file.
10317         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
10318         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
10319         Rename shift_count_or_setmem_operand to setmem_operand.
10320         * config/s390/vx-builtins.md ("vec_insert<mode>")
10321         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
10322         nonmemory_operand.
10323
10324 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10325
10326         PR target/70168
10327         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
10328         Handle overlapping retval and newval.
10329
10330 2016-03-10  Nick Clifton  <nickc@redhat.com>
10331
10332         PR target/7044
10333         * config/aarch64/aarch64.c
10334         (aarch64_override_options_after_change_1): When forcing
10335         flag_omit_frame_pointer to be true, use a special value that can
10336         be detected if this function is called again, thus preventing
10337         flag_omit_leaf_frame_pointer from being forced to be false.
10338
10339 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10340
10341         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
10342         Set x_flag_omit_leaf_frame_pointer when handling
10343         -momit-leaf-frame-pointer.
10344
10345 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10346
10347         PR lto/69589
10348         * cgraph.c (cgraph_node::dump): Dump split_part and
10349         indirect_call_target.
10350         * cgraph.h (cgraph_node): Add indirect_call_target flag.
10351         * ipa.c (has_addr_references_p): Cleanup.
10352         (is_indirect_call_target_p): New.
10353         (walk_polymorphic_call_targets): Do not mark virtuals that may be
10354         called indirectly as local.
10355         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
10356
10357 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10358
10359         PR ipa/69630
10360         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
10361         on cxa_pure_virtual.
10362
10363 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10364
10365         PR lto/69589
10366         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
10367
10368 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10369
10370         PR lto/69589
10371         * tree.c (need_assembler_name_p): Only record main variant type names.
10372
10373 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
10374
10375         PR target/70113.
10376         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
10377         Always define to 0 or 1.
10378         (TARGET_FIX_ERR_A53_843419): New macro.
10379         * config/aarch64/aarch64-elf-raw.h
10380         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
10381         * config/aarch64/aarch64-linux.h: Likewise.
10382         * config/aarch64/aarch64.c
10383         (aarch64_override_options_after_change_1): Do not default
10384         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
10385         843419 is on.
10386         (aarch64_attributes): Handle fix-cortex-a53-843419.
10387         (aarch64_can_inline_p): Likewise.
10388         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
10389
10390 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
10391         Jakub Jelinek <jakub@redhat.com>
10392
10393         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
10394         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
10395         DECL_COMMONS if flag_unconstrained_commons is set.
10396         * tree-dfa.c (get_ref_base_and_extent): Likewise.
10397         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
10398         (funconstrained-commons): Document.
10399
10400 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
10401
10402         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
10403         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
10404
10405 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
10406
10407         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
10408         has a proper number of elements.
10409
10410 2016-03-10  Alan Modra  <amodra@gmail.com>
10411
10412         PR rtl-optimization/69195
10413         PR rtl-optimization/47992
10414         * ira.c (recorded_label_ref): Delete.
10415         (update_equiv_regs): Return void.
10416         (indirect_jump_optimize): New function.
10417         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
10418         before regstat_compute_ri.  Don't rebuild_jump_labels here.
10419         Delete update_regstat.
10420
10421 2016-03-10  Richard Biener  <rguenther@suse.de>
10422
10423         PR tree-optimization/70128
10424         * tree-ssa-structalias.c (set_uids_in_ptset): Set
10425         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
10426
10427 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
10428
10429         PR tree-optimization/70152
10430         * tree-sra.c (replace_removed_params_ssa_names): Copy over
10431         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
10432
10433         PR target/70086
10434         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
10435         instead of gen_sse2_loadlpd.
10436         * config/i386/sse.md (*vec_concatv2df): Rename to...
10437         (vec_concatv2df): ... this.
10438
10439         PR tree-optimization/70127
10440         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
10441
10442 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
10443
10444         PR c/68473
10445         PR c++/70105
10446         * diagnostic-show-locus.c (compatible_locations_p): New function.
10447         (layout::layout): Sanitize ranges using compatible_locations_p.
10448
10449 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
10450
10451         PR c/68473
10452         PR c++/70105
10453         * diagnostic-show-locus.c (layout_range::layout_range): Replace
10454         location_range param with three const expanded_locations * and a
10455         bool.
10456         (layout::layout): Replace call to
10457         rich_location::lazily_expand_location with get_expanded_location.
10458         Extract the range and perform location expansion here, passing
10459         the results to the layout_range ctor.
10460         * diagnostic.c (source_range::debug): Delete.
10461         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
10462         of rich_location::get_expanded_location.
10463         * gcc-rich-location.c (get_range_for_expr): Delete.
10464         (gcc_rich_location::add_expr): Reimplement to avoid the
10465         rich_location::add_range overload that took a location_range,
10466         passing a location_t instead.
10467
10468 2016-03-09  Richard Biener  <rguenther@suse.de>
10469         Jakub Jelinek  <jakub@redhat.com>
10470
10471         PR tree-optimization/70138
10472         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
10473         Also skip vect_double_reduction_def.
10474
10475 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
10476
10477         PR target/70049
10478         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
10479         if the operand is "m".
10480
10481 2016-03-09  Nathan Sidwell  <nathan@acm.org>
10482
10483         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
10484
10485 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10486
10487         * config/i386/i386.c (processor_target_table): Fix cost table
10488         intialization order for znver1.
10489
10490 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
10491
10492         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
10493         - becuase -> because.
10494         * ipa-reference.c (ignore_module_statics): Likewise.
10495         * cgraph.c (cgraph_node::get_body): Likewise.
10496         * ipa-inline.c (early_inliner): Likewise.
10497         * ipa-devirt.c (types_same_for_odr): Likewise.
10498         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
10499         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
10500
10501 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10502
10503         * tree-ssa-math-opts.c: Fix typo in comment.
10504
10505 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
10506
10507         PR target/70110
10508         * config/i386/i386.c (scalar_chain::make_vector_copies,
10509         scalar_chain::convert_reg): Call end_sequence in between
10510         get_insns and emit_conversion_insns rather than after both
10511         calls.
10512
10513 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
10514
10515         PR target/70064
10516         * config/i386/i386.h (machine_function): Add
10517         pc_thunk_call_expanded flag.
10518         (ix86_pc_thunk_call_expanded): New define.
10519         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
10520         (*set_got): Rename insn pattern from set_got.
10521         (*set_got_labelled): Rename inst pattern from set_got_labelled.
10522         * config/i386/i386.c (ix86_compute_frame_layout): Use
10523         ix86_pc_thunk_call_expanded to prevent red-zone.
10524
10525 2016-03-07  Martin Jambor  <mjambor@suse.cz>
10526
10527         * hsa.h (hsa_get_ctor_statements): Declare.
10528         (hsa_get_dtor_statements): Likewise.
10529         (hsa_get_kernel_dispatch_type): Likewise.
10530         * hsa.c (hsa_get_ctor_statements): New function.
10531         (hsa_get_dtor_statements): Likewise.
10532         (hsa_get_kernel_dispatch_type): Likewise.
10533         * hsa-brig.c (hsa_cdtor_statements): Removed.
10534         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
10535         hsa_get_dtor_statements.
10536         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
10537         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
10538
10539 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10540
10541         * config/arm/arm-cores.def (cortex-r8): New.
10542         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
10543         * config/arm/arm-tune.md: Likewise.
10544         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
10545
10546 2016-03-07  Martin Sebor  <msebor@redhat.com>
10547
10548         PR rtl-optimization/19705
10549         * doc/invoke.texi (Options That Control Optimization): Clarify
10550         -fno-branch-count-reg.
10551
10552 2016-02-26  Richard Biener  <rguenther@suse.de>
10553             Jeff Law  <law@redhat.com>
10554
10555         PR tree-optimization/69740
10556         * cfghooks.c (remove_edge): Request loop fixups if we delete
10557         an edge that might turn an irreducible loop into a natural
10558         loop.
10559         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
10560         Move after definition of loops_state_clear.
10561
10562 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
10563
10564         PR rtl-optimization/69052
10565         * rtlanal.c (commutative_operand_precedence): Set higher precedence
10566         to CONST_WIDE_INT.
10567
10568 2016-03-07  Tom de Vries  <tom@codesourcery.com>
10569
10570         PR tree-optimization/70116
10571         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
10572         is_tm_ending stmts and ubsan/asan internal functions.
10573         (find_duplicate): Use it.  Don't test is_tm_ending here.
10574
10575 2016-03-07  Richard Biener  <rguenther@suse.de>
10576
10577         PR tree-optimization/70115
10578         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
10579         (propagate_constants_for_unrolling): Use replace_uses_by.
10580
10581 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
10582
10583         PR middle-end/69916
10584         * omp-low.c (struct oacc_loop): Add ifns.
10585         (new_oacc_loop_raw): Initialize it.
10586         (finish_oacc_loop): Clear mask & flags if no ifns.
10587         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
10588         (oacc_loop_xform_loop): Add ifns arg & adjust.
10589         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
10590
10591 2016-03-07  Richard Henderson  <rth@redhat.com>
10592
10593         PR rtl-opt/70061
10594         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
10595         (insert_value_copy_on_edge): Likewise.
10596
10597 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10598
10599         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
10600
10601 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10602
10603         PR target/62281
10604         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
10605
10606 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
10607
10608         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
10609
10610 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
10611
10612         Fix sseimul type attribute.
10613         * config/i386/znver1.md
10614         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
10615         znver1_sseimul_avx256_load) : Fix the type attribute.
10616         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
10617         pipe usage and latency.
10618
10619 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
10620
10621         PR c++/70084
10622         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
10623         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
10624         to the right type.
10625
10626 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
10627
10628         PR c/69973
10629         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
10630
10631         PR rtl-optimization/69941
10632         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
10633         the reg share its mode.
10634
10635 2016-03-04  Jeff Law  <law@redhat.com>
10636
10637         PR tree-optimization/69196
10638         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10639         If the both SSA_NAMEs are anonymous, then consider them unassociated
10640         and include the PHI in the statement count.
10641
10642 2016-03-05  Tom de Vries  <tom@codesourcery.com>
10643
10644         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
10645         construct in oacc routine.  Check for oacc region in oacc routine.
10646
10647 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
10648
10649         PR target/70062
10650         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
10651         2016-02-22 changes, instead don't recurse if RECUR is already true.
10652         Don't change *dynamic_check if RECUR.  Adjust recursive caller
10653         to pass true to the new argument.
10654         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
10655
10656         PR target/70059
10657         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
10658         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
10659         fixes.
10660         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
10661
10662 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
10663
10664         PR rtl-optimization/57676
10665         * lra-assigns.c (lra_assign): Guard test for maximum iterations
10666         with flag_checking.
10667
10668 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
10669
10670         * tree-vect-patterns.c (search_type_for_mask): Handle
10671         comparison of booleans.
10672
10673 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
10674
10675         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
10676         Fix @xref usage.
10677
10678         PR debug/69947
10679         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
10680         all other ops that have dw_val_class_die_ref operands,
10681         and DW_OP_GNU_entry_value.
10682
10683 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10684
10685         PR rtl-optimization/69904
10686         * config/arm/arm.c (arm_cannot_copy_insn_p):
10687         Return true for load-exclusive instructions.
10688
10689 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
10690
10691         PR target/70021
10692         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
10693         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
10694         the pattern no matter if it is used just by non-pattern, pattern
10695         or mix thereof.
10696         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
10697         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
10698         oprnd1 def_stmt is in pattern, don't look through it.
10699
10700 2016-03-03  Marek Polacek  <polacek@redhat.com>
10701
10702         PR middle-end/70050
10703         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
10704
10705 2016-03-03  Martin Liska  <mliska@suse.cz>
10706
10707         PR tree-optimization/70043
10708         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
10709         previous statement if we see a debug statement.
10710
10711 2016-03-03  Richard Biener  <rguenther@suse.de>
10712
10713         PR tree-optimization/55936
10714         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
10715         parameter and guard unsafe equivalence use.
10716         (vrp_evaluate_conditional_warnv_with_ops): Always use
10717         safe equivalences but not via the quadratic compare_names
10718         helper.
10719
10720 2016-03-03  Michael Collison  <michael.collison@linaro.org>
10721
10722         PR target/70014
10723         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
10724         for operand 1 to s_register_operand. Change predicate for operand
10725         2 to arm_not_immediate_operand.
10726
10727 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
10728
10729         * doc/tm.texi: Regenerated.
10730
10731 2016-03-02  Richard Henderson  <rth@redhat.com>
10732
10733         PR rtl-opt/67145
10734         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
10735         simplification when all args are positive non-fixed registers.
10736
10737 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10738
10739         * target.def (lra_p): Specify that new ports should use LRA.
10740
10741 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
10742
10743         PR libgomp/69555
10744         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
10745         gimplify_type_sizes the type they refer to.
10746         (omp_notice_variable): Handle reference vars to VLAs.
10747         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
10748         reference to VLA decls in the second pass instead of first pass.
10749
10750 2016-03-02  Tom de Vries  <tom@codesourcery.com>
10751
10752         PR tree-optimization/68659
10753         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
10754         new_expr == NULL_TREE.
10755         (get_new_name): Handle ADDR_EXPR.
10756
10757 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
10758
10759         PR rtl-optimization/69052
10760         * loop-invariant.c (canonicalize_address): New function.
10761         (inv_can_prop_to_addr_use): Check validity of address expression
10762         which is canonicalized by above function.
10763
10764 2016-03-02  Alan Modra  <amodra@gmail.com>
10765
10766         PR ipa/69990
10767         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
10768         larger alignment.
10769
10770 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
10771
10772         PR target/70028
10773         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
10774         (*movhi_internal): Put mask moves from and to memory separately
10775         from moves from/to GPRs.
10776
10777 2016-03-02  Richard Biener  <rguenther@suse.de>
10778
10779         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
10780         GENERIC expressions in GIMPLE.
10781
10782 2016-03-02  Richard Biener  <rguenther@suse.de>
10783
10784         * config/i386/i386.c (type_natural_mode): Fix typo.
10785
10786 2016-03-02  Nick Clifton  <nickc@redhat.com>
10787
10788         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
10789
10790 2016-03-02  Richard Biener  <rguenther@suse.de>
10791             Uros Bizjak  <ubizjak@gmail.com>
10792
10793         PR target/67278
10794         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
10795
10796 2016-03-02  Richard Biener  <rguenther@suse.de>
10797
10798         PR middle-end/67278
10799         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
10800
10801 2016-03-02  Marek Polacek  <polacek@redhat.com>
10802
10803         PR c/67854
10804         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
10805         "is promoted to" warning.
10806
10807 2016-03-01  DJ Delorie  <dj@redhat.com>
10808
10809         * config.gcc: Deprecate mep-*.
10810
10811 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
10812
10813         PR middle-end/70025
10814         * lra-constraints.c (regno_val_use_in): New.
10815         (match_reload): Use it instead of regno_use_in.
10816
10817 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
10818
10819         PR rtl-optimization/70007
10820         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
10821         references present in REG_EQUAL notes attached to non-SET patterns.
10822
10823 2016-03-01  Jeff Law  <law@redhat.com>
10824
10825         PR tree-optimization/69196
10826         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10827         Appropriately clamp the number of statements to copy when the
10828         thread path does not traverse a loop backedge.
10829
10830         PR tree-optimization/69196
10831         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10832         Do count some PHIs in the thread path against the insn count.  Decrease
10833         final statement count by one as the control statement in the last
10834         block will get removed.  Remove special cased code for handling PHIs
10835         in the last block.
10836
10837 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
10838
10839         PR target/70027
10840         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
10841         asm dialect alternatives to explicit GOTPCREL calls.
10842
10843 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
10844
10845         PR ada/70017
10846         * ira.c (do_reload): Issue warning for generic stack checking here...
10847         * reload1.c (reload): ...instead of here and streamline it.
10848
10849 2016-03-01  Nick Clifton  <nickc@redhat.com>
10850
10851         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
10852
10853 2016-03-01  Richard Biener  <rguenther@suse.de>
10854
10855         PR tree-optimization/69983
10856         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
10857         types and fall back to operand_equal_p.
10858
10859 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10860
10861         Revert
10862         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10863
10864         * config/s390/constraints.md ("jm8"): New constraint.
10865         * config/s390/predicates.md ("const_int_8bitset_operand"): New
10866         predicate.
10867         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
10868         into ...
10869         ("*setmem_long<setmem_and>"): New pattern.
10870         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
10871         into ...
10872         ("*setmem_long_31z<setmem_and>"): New pattern.
10873         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
10874         New substitution rules with the required attributes.
10875
10876
10877 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10878
10879         Revert
10880         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10881
10882         * gensupport.c (process_substs_on_one_elem): Split loop to
10883         complete mark_operands_used_in_match_dup on all expressions in the
10884         vector first.
10885         (adjust_operands_numbers): Inline into process_substs_on_one_elem
10886         and remove function.
10887
10888 2016-03-01  Richard Biener  <rguenther@suse.de>
10889
10890         PR middle-end/70022
10891         * fold-const.c (fold_indirect_ref_1): Fix range checking for
10892         vector BIT_FIELD_REF extract.
10893
10894 2016-03-01  Richard Biener  <rguenther@suse.de>
10895
10896         PR tree-optimization/69994
10897         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
10898
10899 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
10900
10901         PR tree-optimization/69956
10902         * tree-vect-stmts.c (supportable_widening_operation): Support
10903         multi-step conversion of boolean vectors.
10904         (supportable_narrowing_operation): Likewise.
10905
10906 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10907
10908         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
10909         anymore.
10910
10911 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10912
10913         * config/s390/subst.md (DSI_VI): New mode iterator.
10914         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
10915         * config/s390/vector.md ("vec_set<mode>"): Move expander before
10916         the insn definition.
10917         ("*vec_set<mode>"): Change predicate and add alternative to
10918         support only either register or const_int operands as element
10919         selector.
10920         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
10921         operands.
10922         ("vec_extract<mode>"): New expander.
10923         ("*vec_extract<mode>"): New insn definition supporting reg and
10924         const_int element selectors.
10925         ("*vec_extract<mode>_plus"): New insn definition supporting
10926         reg+const_int element selectors.
10927         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
10928         following expander+insn definition.
10929         ("<vec_shifts_name><mode>3"): New expander.
10930         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
10931
10932 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10933
10934         * config/s390/s390.md ("*tabort_1"): Change predicate to
10935         nonmemory_operand.  Add a second alternative to cover
10936         register as well as const int operands.
10937         ("*tabort_1_plus"): New pattern definition.
10938
10939 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10940
10941         * config/s390/s390.md ("*ashrdi3_cc_31")
10942         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
10943         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
10944         Merge insn definitions into ...
10945         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
10946         New pattern definition.
10947         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
10948         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
10949         ("*ashr<mode>3_and"): Merge insn definitions into ...
10950         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
10951         New pattern definition.
10952         * config/s390/subst.md ("addr_style_op_cc_subst")
10953         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
10954         substitutions patterns plus attributes.
10955         Add ashiftrt to SUBST iterator.
10956
10957 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10958
10959         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
10960         op2 to nonmemory_operand.
10961         ("*<shift>di3_31", "*<shift>di3_31_and"):
10962         Merge into single pattern definition ...
10963         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
10964         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
10965         pattern definition ...
10966         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
10967         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
10968         iterator.
10969
10970 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10971
10972         * config/s390/predicates.md (const_int_6bitset_operand): New
10973         predicate.
10974         * config/s390/s390.md: Include subst.md.
10975         ("rotl<mode>3"): New expander.
10976         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
10977         ...
10978         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
10979         * config/s390/subst.md: New file.
10980
10981 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10982
10983         * config/s390/s390.md ("op_type", "atype", "length" attributes):
10984         Remove RRR type.  It doesn't really exist.
10985         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
10986         attributes.
10987         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
10988         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
10989         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
10990         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
10991         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
10992         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
10993         `enabled' attribute.
10994
10995 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10996
10997         * gensupport.c (process_substs_on_one_elem): Split loop to
10998         complete mark_operands_used_in_match_dup on all expressions in the
10999         vector first.
11000         (adjust_operands_numbers): Inline into process_substs_on_one_elem
11001         and remove function.
11002
11003 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
11004
11005         PR target/69706
11006         * config/sparc/sparc.c (NWORDS_UP): Rename to...
11007         (CEIL_NWORDS): ...this.  Use CEIL macro.
11008         (compute_fp_layout): Adjust to above renaming.
11009         (function_arg_union_value): Likewise.
11010         (sparc_arg_partial_bytes): Likewise.
11011         (sparc_function_arg_advance): Likewise.
11012
11013 2016-02-29  Jeff Law  <law@redhat.com>
11014
11015         PR tree-optimization/70005
11016         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
11017         where an object with a boolean range is compared against a value
11018         outside [0..1].
11019
11020         PR tree-optimization/69999
11021         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
11022         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
11023         loop cleanups.
11024
11025 2016-02-29  Richard Biener  <rguenther@suse.de>
11026
11027         PR tree-optimization/69994
11028         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
11029         (get_unary_op): Look through nop conversions.
11030         (ops_equal_values_p): New function, look for equality diregarding
11031         nop conversions.
11032         (eliminate_plus_minus_pair): Use ops_equal_values_p
11033         (repropagate_negates): Do not use get_unary_op here.
11034
11035 2016-02-29  Martin Liska  <mliska@suse.cz>
11036
11037         * system.h: Poison ENABLE_CHECKING macro.
11038
11039 2016-02-29  Martin Liska  <mliska@suse.cz>
11040
11041         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
11042         is presented in dump flags.
11043         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
11044         (hsa_regalloc): Likewise.
11045
11046 2016-02-19  Richard Biener  <rguenther@suse.de>
11047
11048         PR tree-optimization/69980
11049         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
11050         permutation of those we need to keep.
11051
11052 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
11053
11054         PR target/69706
11055         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
11056         (NWORDS_UP): ...this
11057         (init_cumulative_args): Minor tweaks.
11058         (sparc_promote_function_mode): Likewise.
11059         (scan_record_type): Delete.
11060         (traverse_record_type): New function template.
11061         (classify_data_t): New structure type.
11062         (classify_registers): New inline function.
11063         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
11064         exhausted.  Instantiate traverse_record_type on classify_registers and
11065         deal with the case of a structure passed in slot #15 with no FP field
11066         in the first word.
11067         (assign_data_t): New structure type.
11068         (compute_int_layout): New static function.
11069         (compute_fp_layout): Likewise.
11070         (count_registers): New inline function.
11071         (assign_int_registers): New static function.
11072         (assign_fp_registers): Likewise.
11073         (assign_registers): New inline function.
11074         (function_arg_record_value_1): Delete.
11075         (function_arg_record_value_2): Likewise.
11076         (function_arg_record_value_3): Likewise.
11077         (function_arg_record_value): Adjust to above changes.  Instantiate
11078         traverse_record_type on count_registers to first count the number of
11079         registers to be used and then on assign_registers to assign them.
11080         (function_arg_union_value): Adjust to above renaming.
11081         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
11082         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
11083         case of a structure passed in slot #15
11084         (sparc_function_arg_advance): Likewise.
11085         (function_arg_padding): Minor tweak.
11086
11087 2016-02-29  Richard Biener  <rguenther@suse.de>
11088
11089         PR tree-optimization/69720
11090         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
11091         the adjustment_def path for possibly vectorized defs.
11092         (vect_create_epilog_for_reduction): Handle vectorized initial
11093         defs properly.
11094
11095 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
11096
11097         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
11098
11099 2016-02-27  Jeff Law  <law@redhat.com>
11100
11101         Revert
11102         2016-02-26  Richard Biener  <rguenther@suse.de>
11103                     Jeff Law  <law@redhat.com>
11104
11105         PR tree-optimization/69740
11106         * cfghooks.c (remove_edge): Request loop fixups if we delete
11107         an edge that might turn an irreducible loop into a natural
11108         loop.
11109
11110 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
11111
11112         PR rtl-optimization/69896
11113         * tree-vect-generic.c (get_compute_type): Avoid single element
11114         vector types.
11115
11116 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
11117
11118         Rename the AArch64 tuning option and related functions to enable the
11119         Newton series for the reciprocal square root to reflect its
11120         approximative characteristic.
11121
11122         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
11123         function to "aarch64_emit_approx_rsqrt".
11124         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
11125         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
11126         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
11127         (xgene1_tunings): Likewise.
11128         (use_rsqrt_p): Likewise.
11129         (aarch64_emit_swrsqrt): Use new function name.
11130         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
11131         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
11132         text explaining this option.
11133         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
11134
11135 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
11136
11137         PR target/69969
11138         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11139         complain about -mallow-movmisalign without -mvsx if
11140         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
11141
11142 2016-02-26  Joel Sherrill  <joel@rtems.org>
11143
11144         * config.gcc: Add x86_64-*-rtems*.
11145         * config/i386/rtems-64.h: New file.
11146
11147 2016-02-26  Joel Sherrill  <joel@rtems.org>
11148
11149         * config.gcc: Add aarch64-*-rtems*.
11150         * config/aarch64/rtems.h: New file.
11151
11152 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
11153
11154         PR target/69946
11155         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
11156         shift amount using %h.  Add comment.
11157
11158 2016-02-26  Richard Biener  <rguenther@suse.de>
11159             Jeff Law  <law@redhat.com>
11160
11161         PR tree-optimization/69740
11162         * cfghooks.c (remove_edge): Request loop fixups if we delete
11163         an edge that might turn an irreducible loop into a natural
11164         loop.
11165
11166 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11167
11168         PR middle-end/69920
11169         * tree-sra.c (sra_modify_assign): Do not remove loads of
11170         uninitialized aggregates to SSA_NAMEs.
11171
11172 2016-02-26  Richard Henderson  <rth@redhat.com>
11173
11174         PR target/69709
11175         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
11176         pseudo in case the target rtx matches the source of the left
11177         shift.
11178
11179 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11180
11181         PR hsa/69568
11182         * hsa.h (hsa_type_packed_p): Declare.
11183         * hsa.c (hsa_type_packed_p): New function.
11184         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
11185         loads.
11186         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
11187         * hsa-brig.c (emit_basic_insn): Likewise.
11188
11189 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11190
11191         pr hsa/69674
11192         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
11193         pointers.
11194         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
11195
11196 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11197
11198         * hsa.h (is_a_helper): New overload for hsa_op_immed for
11199         hsa_op_with_type operands.
11200         (hsa_unsigned_type_for_type): Declare.
11201         * hsa.c (hsa_unsigned_type_for_type): New function.
11202         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
11203         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
11204         the finalizer.  Do not emit extra move.
11205
11206 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11207
11208         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
11209         atomic operations in private segment.
11210
11211 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11212
11213         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
11214         statements to wi->info.  Also disallow omp simd constructs.
11215         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
11216         for not gridifying.  Dump special string for omp_for.
11217
11218 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11219
11220         PR target/69245
11221         * config/aarch64/aarch64.c (aarch64_set_current_function):
11222         Save/restore target globals when switching to
11223         target_option_default_node.
11224
11225 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11226
11227         PR target/69613
11228         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
11229         Return 0 if !SHIFT_COUNT_TRUNCATED.
11230
11231 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
11232             Eric Botcazou  <ebotcazou@adacore.com>
11233
11234         PR rtl-optimization/69891
11235         * dse.c (scan_insn): If we can't figure out memset arguments
11236         or they are non-constant, call clear_rhs_from_active_local_stores.
11237
11238 2016-02-26  Martin Liska  <mliska@suse.cz>
11239
11240         * doc/extend.texi: Mention clog10, clog10f an clog10l
11241         in Builtins section.
11242
11243 2016-02-26  Martin Liska  <mliska@suse.cz>
11244
11245         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
11246         CHECKING_P.
11247         (resolve_args_picking_1): Likewise.
11248         * dwarf2out.h (struct GTY): Likewise.
11249
11250 2016-02-26  Martin Liska  <mliska@suse.cz>
11251
11252         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
11253         with flag_checking.
11254         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
11255
11256 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
11257             Martin Liska  <mliska@suse.cz>
11258
11259         * doc/install.texi: Mention --enable-valgrind-annotations.
11260
11261 2016-02-26  Richard Biener  <rguenther@suse.de>
11262
11263         PR tree-optimization/69551
11264         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
11265         looking through aliases adjust DECL_PT_UID to refer to the
11266         ultimate alias target.
11267
11268 2016-02-25  Martin Liska  <mliska@suse.cz>
11269
11270         PR middle-end/69919
11271         * alloc-pool.c (after_memory_report): New variable.
11272         * alloc-pool.h (base_pool_allocator ::release): Do not use
11273         the infrastructure if after_memory_report.
11274         * toplev.c (toplev::main): Mark after memory report.
11275
11276 2016-02-25  Richard Biener  <rguenther@suse.de>
11277
11278         PR tree-optimization/48795
11279         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
11280
11281 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
11282
11283         PR driver/68463
11284         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
11285         offloading is enabled and -fopenacc or -fopenmp is specified.
11286         (CRTOFFLOADEND): Likewise.
11287         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
11288         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
11289         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
11290         (offload_objects_file_name): New static var.
11291         (tool_cleanup): Remove offload_objects_file_name file.
11292         (find_offloadbeginend): Replace with ...
11293         (find_crtoffloadtable): ... this.
11294         (run_gcc): Remove offload_argc and offload_argv.
11295         Get offload_objects_file_name from -foffload-objects=... option.
11296         Read names of object files with offload from this file, pass them to
11297         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
11298         don't pass offloadbegin and offloadend to the linker.  Don't pass
11299         offload non-LTO files to the linker, because now they're not claimed.
11300
11301 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
11302
11303         PR ipa/69630
11304         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
11305         on builtin_unreachable.
11306
11307 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
11308
11309         PR rtl-optimization/69896
11310         * regcprop.c: Include cfgrtl.h.
11311         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
11312         than remembered mode, either delete it (if noop_move_p), or
11313         treat like copy_p but not noop_p instruction.
11314
11315 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11316
11317         PR debug/69705
11318         * dwarf2out.c (gen_variable_die): Work around buggy LTO
11319         - allow NULL decl for Fortran DW_TAG_common_block variables.
11320
11321 2016-02-24  Jason Merrill  <jason@redhat.com>
11322
11323         * common.opt (flifetime-dse): Add -flifetime-dse=1.
11324
11325 2016-02-24  Richard Biener  <rguenther@suse.de>
11326             Jakub Jelinek  <jakub@redhat.com>
11327
11328         PR middle-end/69760
11329         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
11330         conditionally executed ops to well-defined overflow behavior.
11331
11332 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11333
11334         PR middle-end/69915
11335         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
11336         elements.
11337
11338 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11339
11340         PR rtl-optimization/69886
11341         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
11342         argument.  Use it when checking validity of set instructions.
11343         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
11344         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
11345         callsite.
11346         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
11347         * store-motion.c (find_moveable_store): Update
11348         can_assign_to_reg_without_clobbers_p callsite.
11349
11350 2016-02-24  Richard Biener  <rguenther@suse.de>
11351
11352         PR middle-end/68963
11353         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
11354         bogus check.
11355         (record_nonwrapping_iv): Do not fall back to the low/high bound
11356         for non-constant IV bases if the stmt is not always executed.
11357
11358 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11359
11360         * config/arm/arm-cores.def (cortex-a32): New entry.
11361         * config/arm/arm-tables.opt: Regenerate.
11362         * config/arm/arm-tune.md: Regenerate.
11363         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
11364         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
11365         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
11366         for -mcpu and -mtune.
11367
11368 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11369
11370         PR target/69875
11371         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
11372         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
11373         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
11374         (atomic_loaddi_1): Delete.
11375         (atomic_loaddi): Rewrite expander using the above changes.
11376
11377 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11378
11379         PR c/69918
11380         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
11381         2 to 3.
11382
11383 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11384             Richard Biener  <rguenth@suse.de>
11385
11386         PR middle-end/69909
11387         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
11388         set_mem_attributes if tem is SSA_NAME which got expanded
11389         as a MEM.
11390
11391 2016-02-24  Richard Biener  <rguenther@suse.de>
11392
11393         PR tree-optimization/69907
11394         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
11395         end of permutations for BB vectorization.
11396
11397 2016-02-24  Christian Bruel  <christian.bruel@st.com>
11398
11399         * config/arm/arm-c.c (arm_option_override): Initialize
11400         target_option_current_node.
11401         * config/arm/arm.c (arm_pragma_target_parse): Replace
11402         build_target_option_node call by target_option_current_node.
11403         Set target_option_current_node.
11404         Fix comments.
11405
11406 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
11407
11408         PR target/69810
11409         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
11410         define_insn_and_split to define_insn.
11411         (zero_extendqi<mode>2_dot2): Same.
11412         (extendqi<mode>2_dot): Same.
11413         (extendqi<mode>2_dot2): Same.
11414
11415 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
11416
11417         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
11418         and add bypass for AES{D,E} and AESMC pairs.
11419         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
11420         and AESMC pairs.
11421
11422 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
11423
11424         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
11425         series for reciprocal square root in Exynos M1.
11426
11427 2016-02-23  Martin Sebor  <msebor@redhat.com>
11428
11429         PR c/69759
11430         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
11431         __builtin_alloca_with_align.
11432
11433 2016-02-23  Richard Henderson  <rth@redhat.com>
11434
11435         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
11436         (ix86_register_pragmas): Remove __seg_tls.
11437         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
11438         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
11439         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
11440         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
11441         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
11442         * doc/extend.texi (__seg_tls): Remove item.
11443
11444 2016-02-23  Richard Biener  <rguenther@suse.de>
11445
11446         * alloc-pool.h (struct allocation_object): Make id member
11447         conditional on CHECKING_P again.
11448         (get_instance): Adjust.
11449         (base_pool_allocator): Likewise.
11450
11451 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
11452
11453         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
11454         (parallelize_loops): In OpenACC kernels mode, set n_threads to
11455         zero.
11456         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
11457         flag_openacc.
11458         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
11459
11460 2016-02-23  Richard Biener  <rguenther@suse.de>
11461
11462         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
11463         * bitmap.h (struct bitmap_usage): Likewise.
11464         (bitmap_move): Declare.
11465         * bitmap.c (register_overhead): Take size_t argument.
11466         (bitmap_move): New function.
11467         * df-problems.c (df_rd_transfer_function): Use bitmap_move
11468         to properly account overhead.
11469         * tree.c (free_node): Use tree_size.
11470
11471 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
11472
11473         PR c++/69902
11474         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
11475         when inverting comparison.
11476
11477         PR c/69900
11478         * common.opt (Wunreachable-code): Add Warning flag.
11479
11480 2016-02-23  Mark Wielaard  <mjw@redhat.com>
11481             Jakub Jelinek  <jakub@redhat.com>
11482
11483         PR c/69911
11484         * cgraphunit.c (check_global_declaration): Check main_input_filename
11485         and DECL_SOURCE_FILE are not NULL.
11486
11487 2016-02-23  Martin Jambor  <mjambor@suse.cz>
11488
11489         PR tree-optimization/69666
11490         * tree-sra.c (sra_modify_assign): Do not attempt to create
11491         default_def replacements for unscalarizable regions.
11492
11493 2016-02-20  Mark Wielaard  <mjw@redhat.com>
11494
11495         PR c/28901
11496         * cgraphunit.c (check_global_declaration): Check level of
11497         warn_unused_const_variable and main_input_filename.
11498         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
11499         (-Wunused-variable): For C implies -Wunused-const-variable=1.
11500         (-Wunused-const-variable): Explain levels 1 and 2.
11501
11502 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
11503
11504         PR target/69888
11505         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
11506         identical arguments.  Formatting and spelling fixes.
11507
11508         PR target/69885
11509         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
11510         be specified.
11511
11512         PR target/69894
11513         PR target/69895
11514         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
11515         and m68k-devices.def.
11516         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
11517         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
11518
11519 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
11520
11521         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
11522         and HImode registers.
11523
11524 2016-02-22  Richard Biener  <rguenther@suse.de>
11525
11526         PR tree-optimization/69882
11527         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
11528         preserve permutations present because of gaps.
11529         (vect_supported_load_permutation_p): Always continue checking
11530         permutations after vect_attempt_slp_rearrange_stmts.
11531
11532 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
11533
11534         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
11535         min_profitable_estimate, rather than min_profitable_iters.
11536
11537 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
11538
11539         PR target/69885
11540         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
11541         SImode for last match_operand.
11542
11543 2016-02-22  Martin Liska  <mliska@suse.cz>
11544
11545         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
11546         return bitsize - 1 as the return value.
11547
11548 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
11549
11550         PR target/69806
11551         PR target/54089
11552         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
11553         Handle negative shift counts.
11554         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
11555         force_reg on the shift constant.
11556         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
11557         (lshrsi3_d): Handle negative shift counts.
11558
11559 2016-02-22  Richard Biener  <rguenther@suse.de>
11560             Tom de Vries  <tom@codesourcery.com>
11561
11562         * graph.c: Include dumpfile.h.
11563         (print_graph_cfg): Split into three overloads.
11564         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
11565
11566 2016-02-22  Tom de Vries  <tom@codesourcery.com>
11567
11568         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
11569         dump-fn.
11570
11571 2016-02-22  Richard Biener  <rguenther@suse.de>
11572
11573         PR ipa/37448
11574         * ipa-inline-transform.c (inline_call): When not updating
11575         overall summaries adjust self size by the growth estimate.
11576         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
11577         hash-set, do not update overall summaries here.  Renamed from ...
11578         (inline_to_all_callers): ... this which is now wrapping the
11579         above and performing delayed overall summary update.
11580         (early_inline_small_functions): Delay updating of the overall
11581         summary.
11582
11583 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
11584
11585         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
11586         variable.
11587
11588 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
11589
11590         PR driver/69805
11591         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
11592         :%* in %:gt() argument.
11593         (greater_than_spec_func): Adjust for expecting only numbers,
11594         if there are more than two numbers, compare the last two.
11595
11596 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
11597
11598         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
11599         -Wnarrowing with -std.
11600
11601 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
11602
11603         PR c++/69851
11604         * expr.c (store_field): Don't use bit-field path if exp is
11605         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
11606         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
11607         and the assignment can be performed by bitwise copy.  Formatting
11608         fix.
11609
11610         PR middle-end/69838
11611         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
11612         call copy_reg_eh_region_note_forward on before and/or after sequences
11613         and remove note from insn if it no longer can throw.
11614
11615         PR target/69820
11616         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
11617         if TARGET_AVX512BW.
11618
11619 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11620
11621         * config/s390/vector.md: Add missing commutative operand markers
11622         to the patterns which qualify for one.
11623         * config/s390/vx-builtins.md: Likewise.
11624
11625 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11626
11627         * config/s390/vector.md (VI, VI_QHS): Add single element vector
11628         types to mode iterators.
11629         (vec_double): ... and mode attribute.
11630         * config/s390/vx-builtins.md (non_vec_int): Likewise.
11631
11632 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11633
11634         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
11635         Change the predicate of op2 from nonimmediate to general and let
11636         reload fix it if necessary.
11637
11638 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11639
11640         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
11641
11642 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11643
11644         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
11645         mode.
11646
11647 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11648
11649         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
11650         * config/s390/s390.c (s390_expand_vec_movstr): New function.
11651         * config/s390/s390.md ("movstr<P:mode>"): Call
11652         s390_expand_vec_movstr.
11653
11654 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11655
11656         * config/s390/s390.md: Add missing output modifier for operand 1
11657         to print it as address properly.
11658
11659 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11660
11661         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
11662         * config/s390/2964.md: New file.
11663         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
11664         of insn grouping attributes depending on the CPU level.
11665         (s390_get_unit_mask): New function.
11666         (s390_sched_score): Remove the OOO from the scheduling macros.
11667         Add loop to calculate a score for the instruction mix.
11668         (s390_sched_reorder): Likewise plus improve debug output.
11669         (s390_sched_variable_issue): Rename macros as above.  Calculate
11670         the unit distances after actually scheduling an insn.  Improve
11671         debug output.
11672         (s390_sched_init): Clear last_scheduled_unit_distance array.
11673         * config/s390/s390.md: Include 2964.md.
11674
11675 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
11676
11677         PR target/69671
11678         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
11679         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
11680         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
11681         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
11682         *avx512f_<code>v8div16qi2_mask_1): New insns.
11683
11684 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
11685
11686         PR target/68404
11687         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
11688         2016-02-09 change.
11689
11690         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
11691         earlyclobber from target.  Use wF constraint for fused memory
11692         address.
11693         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
11694
11695 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
11696             Martin Liska  <mliska@suse.cz>
11697
11698         PR sanitizer/69863
11699         * cfgexpand.c (asan_sanitize_stack_p): New function.
11700         (partition_stack_vars): Use the function.
11701         (expand_stack_vars): Likewise.
11702         (defer_stack_allocation): Likewise.
11703         (expand_used_vars): Likewise.
11704
11705 2016-02-18  Richard Biener  <rguenther@suse.de>
11706
11707         PR middle-end/69553
11708         * fold-const.c (operand_equal_p): Properly compare offsets for
11709         IMAGPART_EXPR and ARRAY_REF.
11710
11711 2016-02-18  Nick Clifton  <nickc@redhat.com>
11712
11713         PR target/62254
11714         PR target/69610
11715         * config/arm/arm.c (arm_option_override_internal): Disable
11716         interworking if the target does not support thumb instructions.
11717         (arm_reload_in_hi): Handle the case where a register to register
11718         move needs reloading because there is no simple pattern to handle
11719         it.
11720         (arm_reload_out_hi): Likewise.
11721
11722 2016-02-18  Richard Biener  <rguenther@suse.de>
11723
11724         PR middle-end/69854
11725         * match.pd: Don't use fold_binary or fold_unary for folding
11726         constants.
11727
11728 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
11729
11730         PR c++/69850
11731         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
11732         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
11733         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
11734         warn on gimple_no_warning_p statements.
11735
11736 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
11737
11738         * doc/extend.texi (C++ Attributes): Correct description of
11739         warn_unused type attribute.
11740
11741 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11742
11743         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
11744         correct instruction.
11745
11746 2016-02-17  Richard Biener  <rguenther@suse.de>
11747
11748         PR rtl-optimization/69609
11749         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
11750         (find_traces_1_round): When ending a trace update cached priority
11751         of successors.
11752         (bb_to_key): Use cached priority when available.
11753         (copy_bb): Initialize cached priority.
11754         (reorder_basic_blocks_software_trace_cache): Likewise.
11755
11756 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11757
11758         PR target/69161
11759         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
11760         New predicate.
11761         (aarch64_comparison_operator): Break overly long line into two.
11762         (aarch64_comparison_operation): Likewise.
11763         * config/aarch64/aarch64.md (cstorecc4): Use
11764         aarch64_comparison_operator_mode instead of
11765         aarch64_comparison_operator.
11766         (cstore<mode>4): Likewise.
11767         (aarch64_cstore<mode>): Likewise.
11768         (*cstoresi_insn_uxtw): Likewise.
11769         (cstore<mode>_neg): Likewise.
11770         (*cstoresi_neg_uxtw): Likewise.
11771
11772 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11773
11774         PR target/69161
11775         * config/arm/predicates.md (arm_comparison_operator_mode):
11776         New predicate.
11777         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
11778         instead of arm_comparison_operator.
11779         (*mov_negscc): Likewise.
11780         (*mov_notscc): Likewise.
11781         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
11782         (*thumb2_mov_negscc): Likewise.
11783         (*thumb2_mov_negscc_strict_it): Likewise.
11784         (*thumb2_mov_notscc): Likewise.
11785         (*thumb2_mov_notscc_strict_it): Likewise.
11786
11787 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
11788
11789         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
11790         Add missing return.
11791
11792 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
11793
11794         * config/visium/visium.c (machine_libfunc_index): New enum.
11795         (machine_libfuncs): New structure.
11796         (visium_libfuncs): New static variable.
11797         (TARGET_INIT_LIBFUNCS): Define to...
11798         (visium_init_libfuncs): ...this.  New function.
11799         (expand_block_move_4): Use the appropriate libfunc.
11800         (expand_block_move_2): Likewise.
11801         (expand_block_move_1): Likewise.
11802         (expand_block_set_4): Likewise.
11803         (expand_block_set_2): Likewise.
11804         (expand_block_set_1): Likewise.
11805         (visium_trampoline_init): Likewise.
11806
11807 2016-02-17  Nick Clifton  <nickc@redhat.com>
11808
11809         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
11810         TI's devices.csv file as of March 2016.
11811
11812 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11813
11814         PR Target/48344
11815         * opts-global.c (handle_common_deferred_options): Introduce and
11816         initialize two global variables to remember command-line options
11817         specifying a stack-limiting register.
11818         * opts.h: Add extern declarations of the two new global variables.
11819         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
11820         variable based on the values of the two new global variables.
11821
11822 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
11823
11824         PR c/69835
11825         * common.opt (Wnonnull-compare): New warning.
11826         * doc/invoke.texi (-Wnonnull): Remove text about comparison
11827         of arguments against NULL.
11828         (-Wnonnull-compare): Document.
11829         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
11830         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
11831         * passes.def (pass_warn_nonnull_compare): Add.
11832         * gimple-ssa-nonnull-compare.c: New file.
11833
11834 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
11835
11836         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
11837         AARCH64_EXTRA_TUNE_RECIP_SQRT.
11838
11839 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
11840
11841         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
11842         reciprocal sqrt for -mlow-precision-recip-sqrt.
11843
11844 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
11845             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11846
11847         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
11848         always use lane loads to construct non-constant vectors.
11849
11850 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
11851
11852         * config/aarch64/aarch64.md
11853         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
11854         constraints for operand 3.
11855         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
11856
11857 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
11858             Richard Biener  <rguenther@suse.de>
11859
11860         PR tree-optimization/69820
11861         * tree-vect-patterns.c (type_conversion_p): Return false if
11862         *orig_type is unsigned single precision or boolean.
11863         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
11864         Formatting fix.
11865
11866 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
11867
11868         PR rtl-optimization/69764
11869         PR rtl-optimization/69771
11870         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
11871         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
11872
11873 2016-02-16  Richard Biener  <rguenther@suse.de>
11874
11875         PR tree-optimization/69776
11876         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
11877         sets from caller.
11878         (indirect_refs_may_alias_p): Likewise.
11879         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
11880         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
11881         according to tbaa_p.
11882         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
11883         (optimize_stmt): For redundant store discovery do not allow tbaa.
11884
11885 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
11886
11887         PR tree-optimization/69714
11888         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
11889         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
11890
11891 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
11892
11893         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
11894         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
11895         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
11896         * config/arc/arc.c (arc_init): Check FPU options.
11897         (get_arc_condition_code): Handle new CC_FPU* modes.
11898         (arc_select_cc_mode): Likewise.
11899         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
11900         register pair only. Allow access for ARCv2 accumulator.
11901         (gen_compare_reg): Whenever we have FPU support use FPU compare
11902         instructions.
11903         (arc_reorg): Don't generate brcc insns when FPU compare
11904         instructions are involved.
11905         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
11906         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
11907         floating point emulation.
11908         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
11909         (REVERSE_CONDITION): Add new CC_FPU* modes.
11910         (TARGET_FP_SP_BASE): Define.
11911         (TARGET_FP_DP_BASE): Likewise.
11912         (TARGET_FP_SP_FUSED): Likewise.
11913         (TARGET_FP_DP_FUSED): Likewise.
11914         (TARGET_FP_SP_CONV): Likewise.
11915         (TARGET_FP_DP_CONV): Likewise.
11916         (TARGET_FP_SP_SQRT): Likewise.
11917         (TARGET_FP_DP_SQRT): Likewise.
11918         (TARGET_FP_DP_AX): Likewise.
11919         * config/arc/arc.md (ARCV2_ACC): New constant.
11920         (type): New fpu type attribute.
11921         (SDF): Conditional iterator.
11922         (cstore<mode>, cbranch<mode>): Change expand condition.
11923         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
11924         handles FPU/FPX cases as well.
11925         * config/arc/arc.opt (mfpu): New option.
11926         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
11927         Renamed.
11928         (adddf3, muldf3, subdf3): Removed.
11929         * config/arc/predicates.md (proper_comparison_operator): Recognize
11930         CC_FPU* modes.
11931         * config/arc/fpu.md: New file.
11932         * doc/invoke.texi (ARC Options): Document mfpu option.
11933
11934 2016-02-16  Richard Biener  <rguenther@suse.de>
11935
11936         PR rtl-optimization/69291
11937         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
11938         noce_operand_ok check.
11939
11940 2016-02-16  Tom de Vries  <tom@codesourcery.com>
11941
11942         PR lto/67709
11943         * omp-low.c (simd_clone_create): Remove call to
11944         symtab->call_cgraph_insertion_hooks.
11945
11946 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
11947
11948         PR tree-optimization/69802
11949         * tree-ssa-reassoc.c (update_range_test): If op is
11950         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
11951         op == 1 test of precision 1 integral op, otherwise handle
11952         that case as op itself.  Fix up formatting.
11953         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
11954         up formatting.
11955
11956 2016-02-16  Richard Biener  <rguenther@suse.de>
11957
11958         PR tree-optimization/69586
11959         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
11960         types for conversion sources.
11961
11962 2016-02-16  Richard Biener  <rguenther@suse.de>
11963
11964         PR middle-end/69801
11965         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
11966         mask OEP_ADDRESS_OF.
11967
11968 2016-02-16  Alan Modra  <amodra@gmail.com>
11969
11970         PR target/68973
11971         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
11972         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
11973         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
11974         (p8_mtvsrwz): New.
11975         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
11976         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
11977         (p8_fmrgow_<mode>): Likewise.
11978         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
11979         changes.
11980         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
11981         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
11982         to use movdi_internal64.  Remove op0_di.
11983         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
11984
11985 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
11986
11987         Add support for the FCCMP insn types
11988
11989         * config/aarch64/aarch64.md (fccmp): Change insn type.
11990         (fccmpe): Likewise.
11991         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
11992         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
11993         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
11994         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
11995         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
11996         * config/arm/types.md (fccmps): Add new insn type.
11997         (fccmpd): Likewise.
11998
11999 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12000
12001         * alias.c (get_alias_set): Fix a typo in comment.
12002
12003 2016-02-15  Richard Biener  <rguenther@suse.de>
12004
12005         PR tree-optimization/69595
12006         * match.pd: Complete range test simplification to true.
12007
12008 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
12009
12010         PR rtl-optimization/69648
12011         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
12012         pic_offset_table_rtx.
12013
12014         PR rtl-optimization/69752
12015         * ira.c (update_equiv_regs): When looking for more than a single SET,
12016         also take other side effects into account.
12017
12018 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
12019
12020         * config/s390/s390.c (s390_function_profiler): Add a new sequence
12021         for z900+ CPUs in 31-bit mode.
12022
12023 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
12024
12025         * common/config/s390/s390-common.c (s390_supports_split_stack):
12026         New function.
12027         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
12028         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
12029         * config/s390/s390.c (struct machine_function): New field
12030         split_stack_varargs_pointer.
12031         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
12032         in s390_emit_prologue.
12033         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
12034         vararg pointer.
12035         (morestack_ref): New global.
12036         (SPLIT_STACK_AVAILABLE): New macro.
12037         (s390_expand_split_stack_prologue): New function.
12038         (s390_live_on_entry): New function.
12039         (s390_va_start): Use split-stack vararg pointer if appropriate.
12040         (s390_asm_file_end): Emit the split-stack note sections.
12041         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
12042         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
12043         (UNSPECV_SPLIT_STACK_CALL): New unspec.
12044         (UNSPECV_SPLIT_STACK_DATA): New unspec.
12045         (split_stack_prologue): New expand.
12046         (split_stack_space_check): New expand.
12047         (split_stack_data): New insn.
12048         (split_stack_call): New expand.
12049         (split_stack_call_*): New insn.
12050         (split_stack_cond_call): New expand.
12051         (split_stack_cond_call_*): New insn.
12052
12053 2016-02-15  Richard Biener  <rguenther@suse.de>
12054
12055         PR tree-optimization/69783
12056         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12057         Add trivially correct cases.
12058
12059 2016-02-15  Tom de Vries  <tom@codesourcery.com>
12060
12061         PR lto/69655
12062         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
12063         do_force_output.
12064         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
12065
12066 2016-02-15  Richard Biener  <rguenther@suse.de>
12067
12068         PR tree-optimization/69776
12069         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
12070         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
12071         indicate whether we can use TBAA to disambiguate against stores.
12072         Use alias-set zero if not.
12073         (visit_reference_op_store): Do not use TBAA when looking up
12074         redundant stores.
12075         * tree-ssa-pre.c (compute_avail): Use TBAA here.
12076         (eliminate_dom_walker::before_dom_children): But not when looking
12077         up redundant stores.
12078
12079 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
12080
12081         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
12082
12083 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12084
12085         *  config/i386/znver1.md
12086         (znver1_pop, znver1_pop_mem,
12087         znver1_load_imov_double_store,
12088         znver1_load_imov_direct_store,
12089         znver1_load_imov_direct_load,
12090         znver1_load_imov_double_load): Add new.
12091         (znver1_insn, znver1_insn_load): Add icmov type.
12092         (znver1_sseavx_fma,
12093         znver1_sseavx_fma_load,
12094         znver1_avx256_fma,
12095         znver1_avx256_fma_load): Fix pipe usage.
12096
12097 2016-02-14  Alan Modra  <amodra@gmail.com>
12098
12099         PR target/68973
12100         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
12101         with an invalid hard reg, reload just the reg not the entire
12102         pre/post-inc/dec address expression.
12103
12104 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
12105
12106         PR target/67260
12107         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
12108         fixed R1_REG scratch reg.
12109         (sibcall_value_pcrel_fdpic): Likewise.
12110
12111 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
12112
12113         PR target/67636
12114         PR target/64345
12115         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
12116
12117 2016-02-12  Walter Lee  <walt@tilera.com>
12118
12119         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
12120         * config/tilegx/t-tilegx: Likewise.
12121
12122 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
12123
12124         PR other/69554
12125         * diagnostic-show-locus.c (struct line_span): New struct.
12126         (layout::get_first_line): Delete.
12127         (layout::get_last_line): Delete.
12128         (layout::get_num_line_spans): New member function.
12129         (layout::get_line_span): Likewise.
12130         (layout::print_heading_for_line_span_index_p): Likewise.
12131         (layout::get_expanded_location): Likewise.
12132         (layout::calculate_line_spans): Likewise.
12133         (layout::m_first_line): Delete.
12134         (layout::m_last_line): Delete.
12135         (layout::m_line_spans): New field.
12136         (layout::layout): Update comment.  Replace m_first_line and
12137         m_last_line with m_line_spans, replacing their initialization
12138         with a call to calculate_line_spans.
12139         (diagnostic_show_locus): When printing source lines and
12140         annotations, rather than looping over a single span
12141         of lines, instead loop over each line_span within
12142         the layout, with an inner loop over the lines within them.
12143         Call the context's start_span callback when changing line spans.
12144         * diagnostic.c (diagnostic_initialize): Initialize start_span.
12145         (diagnostic_build_prefix): Break out the building of the location
12146         part of the string into...
12147         (diagnostic_get_location_text): ...this new function, rewriting
12148         it from nested ternary expressions to a sequence of "if"
12149         statements.
12150         (default_diagnostic_start_span_fn): New function.
12151         * diagnostic.h (diagnostic_start_span_fn): New typedef.
12152         (diagnostic_context::start_span): New field.
12153         (default_diagnostic_start_span_fn): New prototype.
12154
12155 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
12156
12157         PR driver/69779
12158         * gcc.c (driver::finalize): Fix cleanup of "specs".
12159
12160 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
12161
12162         PR driver/69265
12163         PR driver/69453
12164         * gcc.c (driver::driver): Initialize m_option_suggestions.
12165         (driver::~driver): Clean up m_option_suggestions.
12166         (suggest_option): Convert to...
12167         (driver::suggest_option): ...this, and split out into
12168         driver::build_option_suggestions and find_closest_string.
12169         (driver::build_option_suggestions): New function, from
12170         first half of suggest_option.  Special-case
12171         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
12172         the sanitizer_opts array.  For options of enum types, add the
12173         various enum values to the candidate strings.
12174         (driver::handle_unrecognized_options): Remove "const".
12175         * gcc.h (driver::handle_unrecognized_options): Likewise.
12176         (driver::build_option_suggestions): New decl.
12177         (driver::suggest_option): New decl.
12178         (driver::m_option_suggestions): New field.
12179         * opts-common.c (add_misspelling_candidates): New function.
12180         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
12181         and make non-static.
12182         * opts.h (sanitizer_opts): New array decl.
12183         (add_misspelling_candidates): New function decl.
12184         * spellcheck.c (find_closest_string): New function.
12185         * spellcheck.h (find_closest_string): New function decl.
12186
12187 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
12188
12189         PR rtl-optimization/69764
12190         PR rtl-optimization/69771
12191         * optabs.c (expand_binop_directly): For shift_optab_p, force
12192         convert_modes with VOIDmode if xop1 has VOIDmode.
12193
12194 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
12195
12196         PR target/69729
12197         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
12198         to correctly determine instrumentation thunks.
12199
12200 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
12201
12202         PR ipa/69241
12203         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
12204         type by reference, force lhs on the call.
12205
12206         PR ipa/68672
12207         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
12208         Compute retval and retbnd early in all cases if split_part_return_p
12209         and return_bb is not EXIT.  Remove all clobber stmts and reset
12210         all debug stmts that refer to SSA_NAMEs defined in split part,
12211         except if it is retval, in that case replace the old retval with the
12212         lhs of the call to the split part.
12213
12214 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12215
12216         revert:
12217         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12218
12219         PR middle-end/66726
12220         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
12221         whose result is used in PHI.
12222         (maybe_optimize_range_tests): Likewise.
12223         (final_range_test_p): Likweise.
12224
12225 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12226
12227         PR middle-end/66726
12228         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
12229         whose result is used in PHI.
12230         (maybe_optimize_range_tests): Likewise.
12231         (final_range_test_p): Likweise.
12232
12233 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
12234
12235         * cgraph.c: Spelling fixes - behaviour -> behavior and
12236         neighbour -> neighbor.
12237         * target.def: Likewise.
12238         * sel-sched.c: Likewise.
12239         * config/mips/mips.c: Likewise.
12240         * config/arc/arc.md: Likewise.
12241         * config/arm/cortex-a57.md: Likewise.
12242         * config/arm/arm.c: Likewise.
12243         * config/arm/neon.md: Likewise.
12244         * config/arm/arm-c.c: Likewise.
12245         * config/vms/vms-c.c: Likewise.
12246         * config/s390/s390.c: Likewise.
12247         * config/i386/znver1.md: Likewise.
12248         * config/i386/i386.c: Likewise.
12249         * config/ia64/hpux-unix2003.h: Likewise.
12250         * config/msp430/msp430.md: Likewise.
12251         * config/rx/rx.c: Likewise.
12252         * config/rx/rx.md: Likewise.
12253         * config/aarch64/aarch64-simd.md: Likewise.
12254         * config/aarch64/aarch64.c: Likewise.
12255         * config/nvptx/nvptx.c: Likewise.
12256         * config/bfin/bfin.c: Likewise.
12257         * config/cris/cris.opt: Likewise.
12258         * config/rs6000/rs6000.c: Likewise.
12259         * target.h: Likewise.
12260         * spellcheck.c: Likewise.
12261         * ira-build.c: Likewise.
12262         * tree-inline.c: Likewise.
12263         * builtins.c: Likewise.
12264         * lra-constraints.c: Likewise.
12265         * explow.c: Likewise.
12266         * hwint.h: Likewise.
12267         * targhooks.c: Likewise.
12268         * tree-vect-data-refs.c: Likewise.
12269         * expr.c: Likewise.
12270         * doc/tm.texi: Likewise.
12271         * doc/extend.texi: Likewise.
12272         * doc/install.texi: Likewise.
12273         * doc/md.texi: Likewise.
12274         * tree-ssa-tail-merge.c: Likewise.
12275         * sched-int.h: Likewise.
12276         * match.pd: Likewise.
12277         * sched-ebb.c: Likewise.
12278         * target.def (omit_struct_return_reg): Likewise.
12279         * gimple-ssa-isolate-paths.c: Likewise.
12280         (find_implicit_erroneous_behaviour): Renamed to...
12281         (find_implicit_erroneous_behavior): ... this.
12282         (find_explicit_erroneous_behaviour): Renamed to...
12283         (find_explicit_erroneous_behavior): ... this.
12284         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
12285
12286 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
12287
12288         PR rtl-optimization/64682
12289         PR rtl-optimization/69567
12290         PR rtl-optimization/69737
12291         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
12292         in I2 as well, just lose it.
12293
12294 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12295
12296         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
12297         New variable.
12298         (aarch64_last_printed_tune_string): Likewise.
12299         (aarch64_declare_function_name): Only output .arch assembler
12300         directive if it will be different from the previously output
12301         directive.  Same for .tune comment but only if -dA is set.
12302         (aarch64_start_file): New function.
12303         (TARGET_ASM_FILE_START): Define.
12304
12305 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
12306
12307         PR plugins/69758
12308         * Makefile.in (PLUGIN_HEADERS): Add params.list.
12309
12310 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
12311
12312         PR target/65313
12313         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
12314         -Wmaybe-uninitialized warning.
12315
12316 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
12317
12318         PR target/69713
12319         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
12320
12321 2016-02-11  Richard Biener  <rguenther@suse.de>
12322
12323         PR rtl-optimization/69291
12324         * ifcvt.c (noce_try_store_flag_constants): Do not allow
12325         subexpressions affected by changing the result.
12326
12327 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
12328
12329         PR target/69148
12330         * lra-constraints.c (curr_insn_transform): Find in/out operands
12331         for secondary memory moves.  Update dups.
12332
12333 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
12334
12335         PR tree-optimization/69652
12336         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
12337         to nested loop, did source re-formatting, skip debug statements,
12338         add check on statement with volatile operand, remove dead scalar
12339         statements.
12340
12341 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
12342             Patrick Palka  <ppalka@gcc.gnu.org>
12343
12344         PR ipa/69241
12345         PR c++/69649
12346         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
12347         calls if the return type is TREE_ADDRESSABLE.
12348         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
12349         * ipa-split.c (split_function): Fix doubled "we" in comment.
12350         Use void return type for the split part even if
12351         !split_point->split_part_set_retval.
12352
12353 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
12354
12355         PR tree-optimization/68021
12356         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
12357         when computing the value of biv cand by itself.
12358
12359 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
12360
12361         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
12362         (cortexa57_tunings): Likewise.
12363         (cortexa72_tunings): Likewise.
12364         (arch_macro_fusion_pair_p): Add support for AES fusion.
12365         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
12366         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
12367         Allow virtual registers before reload so early scheduling works.
12368         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
12369         correct latency and pipeline.
12370         (cortex_a57_crypto_complex): Likewise.
12371         (cortex_a57_crypto_xor): Likewise.
12372         (define_bypass): Add AES bypass.
12373
12374 2016-02-10  Richard Biener  <rguenther@suse.de>
12375
12376         PR tree-optimization/69726
12377         * passes.def: Add DCE pass before late uninit.
12378         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
12379         really fixup if-conversions job.
12380
12381 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
12382
12383         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
12384         (arm_cortex_a57_tune): Likewise.
12385         (aarch_macro_fusion_pair_p): Add support for AES fusion.
12386         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
12387
12388 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
12389
12390         * timevar.def (TV_PHASE_DBGINFO): Delete.
12391         (TV_PHASE_CHECK_DBGINFO): Likewise.
12392         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
12393
12394 2016-02-10  Richard Biener  <rguenther@suse.de>
12395
12396         PR tree-optimization/69719
12397         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12398         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
12399
12400 2016-02-09  Andrew Pinski  <apinski@cavium.com>
12401
12402         PR tree-opt/69282
12403         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
12404         get_vcond_mask_icode returns false.
12405
12406 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
12407
12408         PR target/68404
12409         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
12410         an ADDIS that adds a pointer to a large constant that sets the
12411         upper16 bits with a load operation.
12412
12413 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
12414
12415         PR target/68532
12416         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
12417         order.
12418         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
12419         endian.
12420         (vzipq_s16): Likewise.
12421         (vzipq_s32): Likewise.
12422         (vzipq_f32): Likewise.
12423         (vzipq_u8): Likewise.
12424         (vzipq_u16): Likewise.
12425         (vzipq_u32): Likewise.
12426         (vzipq_p8): Likewise.
12427         (vzipq_p16): Likewise.
12428
12429 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
12430
12431         PR target/68532
12432         * config/arm/arm.c (neon_endian_lane_map): New function.
12433         (neon_vector_pair_endian_lane_map): New function.
12434         (arm_evpc_neon_vuzp): Allow for big endian lane order.
12435         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
12436         endian.
12437         (vuzpq_s16): Likewise.
12438         (vuzpq_s32): Likewise.
12439         (vuzpq_f32): Likewise.
12440         (vuzpq_u8): Likewise.
12441         (vuzpq_u16): Likewise.
12442         (vuzpq_u32): Likewise.
12443         (vuzpq_p8): Likewise.
12444         (vuzpq_p16): Likewise.
12445
12446 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
12447
12448         PR target/69634
12449         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
12450         debug insns.
12451
12452 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
12453
12454         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
12455         truncate const_int operand 1 to QImode.
12456
12457 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
12458
12459         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
12460         corresponding to an abnormal edge.
12461
12462 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12463
12464         PR tree-optimization/69599
12465         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
12466         function.
12467         (find_func_aliases_for_builtin_call, find_func_clobbers)
12468         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
12469         partition.
12470
12471 2016-02-09  Richard Biener  <rguenther@suse.de>
12472
12473         PR tree-optimization/69715
12474         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
12475         LHS on calls as non-rewritable.
12476
12477 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12478
12479         PR lto/69707
12480         * lto-wrapper.c (append_diag_options): New function.
12481         (compile_offload_image): Call append_diag_options.
12482
12483 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
12484
12485         PR other/69722
12486         * doc/extend.texi (Flag Output Operands): Correct sectioning.
12487         Minor copy-edit to fix verb tenses.
12488
12489 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
12490
12491         PR tree-optimization/69209
12492         * ipa-split.c (split_function): If split part is not
12493         returning retval, retval has gimple type but is not
12494         gimple value, force it into a SSA_NAME first.
12495
12496 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
12497
12498         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
12499         outdated section.
12500
12501 2016-02-08  Jason Merrill  <jason@redhat.com>
12502
12503         PR c++/69631
12504         * convert.c (convert_to_integer_1): Check dofold on truncation
12505         distribution.
12506         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
12507         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
12508         Rename from *_nofold.
12509         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
12510         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
12511
12512 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
12513
12514         PR target/60410
12515         * tree.c (build_common_tree_nodes): Remove short_double argument.
12516         All callers changed.
12517         * tree.h (build_common_tree_nodes): Adjust declaration.
12518         * doc/invoke.texi (-fshort-double): Remove documentation.
12519         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12520         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
12521         * lto-wrapper.c (merge_and_complain, append_compiler_options)
12522         (append_linker_options): Don't handle OPT_fshort_double.
12523
12524         PR rtl-optimization/68730
12525         * lra-remat.c (insn_to_cand_activation): New static variable.
12526         (lra_remat): Allocate and free it.
12527         (create_cand): New arg activation. Initialize a field in
12528         insn_to_cand_activation if it is nonnull.
12529         (create_cands): Pass the activation insn to create_cand when making
12530         a candidate involving an output reload.  Reorganize code a little.
12531         (do_remat): Keep track of active status of candidates in a separate
12532         bitmap.
12533
12534 2016-02-08  Richard Biener  <rguenther@suse.de>
12535
12536         PR tree-optimization/69719
12537         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12538         Properly use absolute of the difference of the two offsets to
12539         compare or adjust the segment length.
12540
12541 2016-02-08  Richard Biener  <rguenther@suse.de>
12542             Jeff Law  <law@redhat.com>
12543
12544         PR target/68273
12545         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
12546         types for anonymous SSA names.
12547
12548 2016-02-08   Richard Biener  <rguenther@suse.de>
12549
12550         PR rtl-optimization/69274
12551         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
12552
12553 2016-02-08  Jeff Law  <law@redhat.com>
12554
12555         PR tree-optimization/65917
12556         * tree-ssa-dom.c (record_temporary_equivalences): Record both
12557         equivalences from if (x == y) style conditionals.
12558         (loop_depth_of_name): Remove.
12559         (record_equality): Remove loop depth check.
12560         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
12561         (const_and_copies::record_const_or_copy_raw): New member function.
12562         * tree-ssa-scopedtables.c
12563         (const_and_copies::record_const_or_copy_raw): New, factored out of
12564         (const_and_copies::record_const_or_copy): Call new member function.
12565
12566 2016-02-05  Jeff Law  <law@redhat.com>
12567
12568         PR tree-optimization/68541
12569         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
12570         (count_stmts_in_block): New function.
12571         (poor_ifcvt_candidate_code): Likewise.
12572         (is_feasible_trace): Add some heuristics to determine when path
12573         splitting is profitable.
12574         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
12575         is a diamond with a single exit.
12576
12577 2016-02-05  Martin Sebor  <msebor@redhat.com>
12578
12579         PR c++/69662
12580         * doc/invoke.texi: Update -Wplacement-new to take an optional
12581         argument.
12582
12583 2016-02-06  Richard Henderson  <rth@redhat.com>
12584
12585         PR c/69643
12586         * tree.c (tree_nop_conversion_p): Do not strip casts into or
12587         out of non-standard address spaces.
12588
12589 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
12590
12591         PR rtl-optimization/69691
12592         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
12593
12594 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
12595
12596         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
12597         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
12598         (*ieee128_mfvsrd_64bit): Likewise.
12599         (*ieee128_mfvsrd_32bit): Likewise.
12600
12601 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
12602
12603         PR target/69369
12604         Revert r232560:
12605         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
12606
12607         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
12608         instrumented_version.
12609
12610 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
12611
12612         * doc/invoke.texi (Optimize Options): In table of --param options
12613         rename second occurrence of tracer-min-branch-ratio to
12614         tracer-min-branch-probability, rename
12615         tracer-min-branch-ratio-feedback to
12616         tracer-min-branch-probability-feedback and clarify description,
12617         rename sched-spec-state-edge-prob-cutoff to
12618         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
12619         to selsched-insns-to-rename, rename lto-minpartition to
12620         lto-min-partition, delete reorder-blocks-duplicate and
12621         reorder-blocks-duplicate-feedback.
12622
12623 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12624
12625         * config/s390/s390.c (s390_register_info_set_ranges): Remove
12626         superfluous loops.
12627
12628 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12629
12630         * doc/extend.texi: S/390: Correct some typos.
12631
12632 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12633
12634         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
12635
12636 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12637
12638         PR target/69625
12639         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
12640         (s390_register_info_gprtofpr): Use new macros above.
12641         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
12642         its name.
12643         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
12644         its name.  Adjust restore and save gpr ranges.
12645         (s390_register_info_set_ranges): New function.
12646         (s390_register_info): Use new macros above.  Call
12647         s390_register_info_set_ranges.
12648         (s390_optimize_register_info): Likewise.
12649         (s390_hard_regno_rename_ok): Use new macros.
12650         (s390_hard_regno_scratch_ok): Likewise.
12651         (s390_emit_epilogue): Likewise.
12652         (s390_can_use_return_insn): Likewise.
12653         (s390_optimize_prologue): Likewise.
12654         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
12655
12656 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
12657
12658         PR bootstrap/69677
12659         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
12660         alignment fixes.
12661         (ix86_option_override_internal): Disable TARGET_STV even for
12662         -m{incoming,preferred}-stack-boundary=3.
12663
12664 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12665
12666         * config.gcc: Mark deprecated rtems targets as obsolete.
12667
12668 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
12669
12670         PR rtl-optimization/64682
12671         PR rtl-optimization/69567
12672         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
12673         before I2 only if the register is both used and set in I2.
12674
12675 2016-02-04  DJ Delorie  <dj@redhat.com>
12676
12677         * config/msp430/msp430.c (msp430_start_function): Add function type.
12678
12679 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
12680
12681         PR fortran/69368
12682         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
12683
12684 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
12685
12686         PR rtl-optimization/69577
12687         Revert:
12688         2015-10-29  Richard Henderson  <rth@redhat.com>
12689
12690         PR target/68124
12691         PR rtl-opt/67609
12692         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
12693         sse check to the exact conditions of PR 67609.
12694
12695 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
12696
12697         PR target/69667
12698         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
12699         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
12700         not allowed into the traditional Altivec registers.
12701         (movtd_64bit_nodm): Likewise.
12702         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
12703
12704 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
12705
12706         * config/aarch64/cortex-a57-fma-steering.c
12707         (aarch64_register_fma_steering): Remove "static" from arguments
12708         to register_pass.
12709
12710 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
12711
12712         PR target/69619
12713         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
12714         twice when complex.
12715
12716 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
12717
12718         * doc/invoke.texi: Delete -mno-fma4.
12719
12720 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
12721
12722         PR rtl-optimization/69577
12723         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
12724         (find_subregs_of_mode): Update accordingly.  Iterate over partial
12725         definitions.
12726
12727 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
12728
12729         * config/arm/arm-protos.h (neon_reinterpret): Remove.
12730         * config/arm/arm.c (neon_reinterpret): Remove.
12731         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
12732         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
12733         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
12734         vreinterpretti): Remove.
12735         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
12736         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
12737         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
12738         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
12739         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
12740         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
12741         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
12742         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
12743         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
12744         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
12745         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
12746         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
12747         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
12748         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
12749         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
12750         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
12751         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
12752         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
12753         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
12754         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
12755         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
12756         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
12757         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
12758         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
12759         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
12760         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
12761         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
12762         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
12763         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
12764         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
12765         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
12766         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
12767         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
12768         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
12769         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
12770         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
12771         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
12772         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
12773         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
12774         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
12775         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
12776         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
12777         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
12778         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
12779         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
12780         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
12781         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
12782         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
12783         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
12784         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
12785         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
12786         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
12787         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
12788         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
12789         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
12790         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
12791         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
12792         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
12793         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
12794         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
12795         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
12796         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
12797         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
12798         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
12799         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
12800         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
12801         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
12802         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
12803         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
12804         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
12805         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
12806         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
12807         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
12808         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
12809         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
12810         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
12811         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
12812         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
12813         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
12814         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
12815         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
12816         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
12817         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
12818         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
12819         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
12820         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
12821         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
12822         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
12823         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
12824         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
12825         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
12826         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
12827         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
12828         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
12829         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
12830         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
12831         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
12832         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
12833         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
12834         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
12835         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
12836         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
12837         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
12838
12839 2016-02-04  Martin Liska  <mliska@suse.cz>
12840
12841         PR sanitizer/69276
12842         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
12843         that are gimple_store_p.
12844         (maybe_instrument_call): Likewise.
12845
12846 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
12847
12848         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
12849         register scaling out of memory reference and comment why.
12850
12851 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12852
12853         PR target/65932
12854         PR target/67714
12855         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
12856         folding the source of a SET.
12857
12858 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12859
12860         PR target/65932
12861         PR target/67714
12862         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
12863         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
12864
12865 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
12866
12867         PR target/65932
12868         PR target/67714
12869         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
12870         HImode.
12871
12872 2016-02-04  Christian Bruel  <christian.bruel@st.com>
12873
12874         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
12875         * config/arm/arm.c (arm_set_current_function): Likewise.
12876
12877 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
12878             Ilya Enkovich  <enkovich.gnu@gmail.com>
12879             H.J. Lu  <hongjiu.lu@intel.com>
12880
12881         PR target/69454
12882         * config/i386/i386.c (convert_scalars_to_vector): Remove
12883         stack alignment fixes.
12884         (ix86_option_override_internal): Disable TARGET_STV if stack
12885         might not be aligned enough.
12886         (ix86_minimum_alignment): Assert that TARGET_STV is false.
12887
12888 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
12889
12890         * config/i386/x86-tune.def: Disable default prefetching
12891         for -march=znver1.
12892
12893 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12894             Vladimir Makarov  <vmakarov@redhat.com>
12895
12896         PR target/69461
12897         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
12898         in validating fused toc addresses.
12899
12900 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
12901
12902         PR c/69627
12903         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
12904         range->m_caret fields if range->m_show_caret_p is false.
12905
12906         PR target/69644
12907         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
12908         Force oldval into register if it does not satisfy reg_or_short_operand
12909         predicate.  Fix up formatting.
12910
12911 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
12912             Alexandre Oliva  <aoliva@redhat.com>
12913
12914         PR target/69461
12915         * lra-constraints.c (simplify_operand_subreg): Check additionally
12916         address validity after potential reloading.
12917         (process_address_1): Check insns validity.  In case of failure do
12918         nothing.
12919
12920 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
12921
12922         PR target/69118
12923         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
12924         Fix target.
12925
12926 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
12927
12928         * wide-int.cc (canonize_uhwi): New function.
12929         (wi::divmod_internal): Use it.
12930
12931 2016-02-02  James Norris  <jnorris@codesourcery.com
12932
12933         * gimplify.c (omp_notice_variable): Add usage check.
12934
12935 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
12936
12937         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
12938         like LE, GE, LT, GT when emitting relational operator.
12939
12940 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
12941
12942         * ira-costs.c (find_costs_and_classes): Add extra argument.
12943         * target.def (ira_change_pseudo_allocno_class): Add parameter.
12944         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
12945         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
12946         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
12947         Add best_class parameter, and return it if not ALL_REGS.
12948         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
12949         Add parameter.
12950         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
12951         Update target hook.
12952
12953 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
12954
12955         * config/aarch64/aarch64.c
12956         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
12957         (aarch64_ira_change_pseudo_allocno_class): New function.
12958
12959 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
12960
12961         PR target/67032
12962         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
12963
12964 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12965
12966         * config/avr/avr.c (avr_option_override): Set
12967         PARAM_ALLOW_STORE_DATA_RACES to 1.
12968
12969 2016-02-02  Richard Biener  <rguenther@suse.de>
12970
12971         PR tree-optimization/69595
12972         * match.pd: Add range test simplifications to true/false.
12973
12974 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
12975
12976         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
12977         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
12978         instead.
12979
12980 2016-02-02  Richard Biener  <rguenther@suse.de>
12981
12982         PR tree-optimization/69606
12983         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
12984         info on the result before moving a stmt.
12985
12986 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
12987
12988         PR middle-end/68542
12989         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
12990         branch with vector comparison.
12991         * config/i386/sse.md (VI48_AVX): New mode iterator.
12992         (define_expand "cbranch<mode>4): Add support for conditional branch
12993         with vector comparison.
12994         * tree-vect-loop.c (optimize_mask_stores): New function.
12995         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
12996         has_mask_store field of vect_info.
12997         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
12998         vectorized loops having masked stores after vec_info destroy.
12999         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
13000         correspondent macros.
13001         (optimize_mask_stores): Add prototype.
13002
13003 2016-02-02  Alan Modra  <amodra@gmail.com>
13004
13005         PR target/69548
13006         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
13007         allow subregs.
13008
13009 2016-02-02  Alan Modra  <amodra@gmail.com>
13010
13011         PR target/68662
13012         * config/rs6000/rs6000.c (need_toc_init): New var, set it
13013         whenever toc_label_name used.
13014         (rs6000_file_start): Don't set up toc section here,
13015         (rs6000_output_function_epilogue): do so here instead,
13016         (rs6000_xcoff_file_start): and here.
13017         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
13018         (load_toc_aix_di): Likewise.
13019
13020 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
13021
13022         PR rtl-optimization/69592
13023         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
13024         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
13025         (num_sign_bit_copies_binary_arith_p): New inline function.
13026         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
13027
13028 2016-02-01  Jeff Law  <law@redhat.com>
13029
13030         PR tree-optimization/69580
13031         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
13032         * tree-ssa-threadbackward.c
13033         (fsm_find_control_statement_thread_paths): Do not try to walk
13034         through large PHI nodes.
13035
13036 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
13037
13038         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
13039         when count is incremented above limit, don't analyze further
13040         insns afterwards.
13041
13042         * omp-low.c (oacc_parse_default_dims): Avoid
13043         -Wsign-compare warning, make sure value fits into int
13044         rather than just unsigned int.
13045
13046 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
13047
13048         PR tree-optimization/67921
13049         * fold-const.c (split_tree): New parameters.  Convert pointer
13050         type variable part to proper type before negating.
13051         (fold_binary_loc): Pass new arguments to split_tree.
13052
13053 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
13054
13055         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
13056         (nvptx_goacc_validate_dims): Extend to handle global defaults.
13057         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
13058         * doc/tm.texti: Rebuilt.
13059         * doc/invoke.texi (fopenacc-dim): Document.
13060         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
13061         (append_compiler_options): Likewise.
13062         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
13063         (oacc_parse_default_dims): New.
13064         (oacc_validate_dims): Add USED arg.  Select non-unity default when
13065         possible.
13066         (oacc_loop_fixed_partitions): Return mask of used partitions.
13067         (oacc_loop_auto_partitions): Emit dump info.
13068         (oacc_loop_partition): Return mask of used partitions.
13069         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
13070         loop partitioning and validation calls.
13071
13072 2016-02-01  Richard Biener  <rguenther@suse.de>
13073
13074         PR middle-end/69556
13075         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
13076
13077 2016-02-01  Richard Biener  <rguenther@suse.de>
13078
13079         PR tree-optimization/69574
13080         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
13081         of asserting return chrec_dont_know.
13082
13083 2016-02-01  Martin Liska  <mliska@suse.cz>
13084
13085         * mem-stats-traits.h: Add copyright header.
13086         * mem-stats.h: Likewise.
13087
13088 2016-02-01  Richard Biener  <rguenther@suse.de>
13089
13090         PR tree-optimization/69579
13091         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
13092         Do not propagate through abnormal PHI results.
13093
13094 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
13095
13096         * postreload.c (reload_cse_simplify): Remove dead code.
13097
13098 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
13099
13100         PR rtl-optimization/69570
13101         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
13102         if there is more than one set, not if there is a single set.
13103
13104 2016-02-01  Richard Henderson  <rth@redhat.com>
13105
13106         PR rtl-opt/69535
13107         * combine.c (make_compound_operation): When looking through a
13108         subreg, make sure to re-extend to the width of the outer mode.
13109
13110 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
13111
13112         PR tree-optimization/69546
13113         * wide-int.cc (wi::divmod_internal): For unsigned division
13114         where both operands fit into uhwi, if o1 is 1 and o0 has
13115         msb set, if divident_prec is larger than bits per hwi,
13116         clear another quotient word and return 2 instead of 1.
13117         Similarly for remainder with msb in HWI set, if dividend_prec
13118         is larger than bits per hwi.
13119
13120 2016-01-29  Martin Jambor  <mjambor@suse.cz>
13121
13122         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
13123         Use short lowercase names.
13124         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
13125         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
13126         acq_rel one.  Protect warning agains segfaults if
13127         get_memory_order_name returns NULL.
13128         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
13129         with release semantics.  Do not warn if get_memory_order already did.
13130         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
13131         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
13132         if get_memory_order already did.
13133
13134 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
13135
13136         * doc/install.texi: Document that isl-0.16 is supported.
13137
13138 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
13139
13140         PR target/69299
13141         * config/i386/constraints.md (Bm): Describe as special memory
13142         constraint.
13143         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
13144         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
13145         * genpreds.c (struct constraint_data): Add is_special_memory.
13146         (have_special_memory_constraints, special_memory_start): New
13147         static vars.
13148         (special_memory_end): Ditto.
13149         (add_constraint): Add new arg is_special_memory.  Add code to
13150         process its true value.  Update have_special_memory_constraints.
13151         (process_define_constraint): Pass the new arg.
13152         (process_define_register_constraint): Ditto.
13153         (choose_enum_order): Process special memory.
13154         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
13155         function insn_extra_special_memory_constraint.
13156         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
13157         * gensupport.c (process_rtx): Process
13158         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
13159         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
13160         * ira-lives.c (single_reg_class): Use
13161         insn_extra_special_memory_constraint.
13162         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
13163         * lra-constraints.c (process_alt_operands): Ditto.
13164         (curr_insn_transform): Use insn_extra_special_memory_constraint.
13165         * recog.c (asm_operand_ok, preprocess_constraints): Process
13166         CT_SPECIAL_MEMORY.
13167         * reload.c (find_reloads): Ditto.
13168         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
13169         * stmt.c (parse_input_constraint): Use
13170         insn_extra_special_memory_constraint.
13171
13172 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
13173
13174         PR target/69530
13175         * lra-splill.c (lra_final_code_change): Revert r229087 by
13176         removing all sub-registers.
13177
13178 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
13179
13180         PR target/65604
13181         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
13182
13183 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
13184
13185         PR target/69551
13186         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
13187         SSE1, copy target into the temporary reg first before recursing
13188         on it.
13189
13190 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
13191
13192         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
13193         with vm.
13194
13195 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
13196
13197         * ginclude/stdarg.h: Test __cplusplus instead of
13198         __GXX_EXPERIMENTAL_CXX0X__.
13199
13200 2016-01-29  Richard Biener  <rguenther@suse.de>
13201
13202         PR tree-optimization/69547
13203         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
13204         Do not mark clobbers necessary.
13205         (mark_all_reaching_defs_necessary_1): Likewise.
13206
13207 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13208
13209         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
13210         declaration name with %qs and print it in both error messages.
13211         Also fix indentation.
13212
13213 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13214
13215         PR other/69006
13216         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
13217         trailing blank line from error message.
13218
13219 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
13220
13221         PR c++/69462
13222         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
13223         for C++-11.
13224
13225 2016-01-29  Richard Biener  <rguenther@suse.de>
13226
13227         PR middle-end/69537
13228         * match.pd: Allow all integral types when simplifying a
13229         widening or sign-changing conversion.
13230
13231 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13232
13233         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
13234         back to setting codegen_error to fail codegen.
13235
13236 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
13237
13238         PR target/69459
13239         * config/i386/constraints.md (C): Only accept constant zero operand.
13240         (BC): New constraint.
13241         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
13242         instead of C constraint.
13243         * doc/md.texi (Machine Constraints): Update description
13244         of C constraint.
13245
13246 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
13247
13248         PR target/68400
13249         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
13250
13251 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
13252
13253         PR middle-end/69542
13254         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
13255         non-debug insns.
13256
13257 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
13258
13259         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
13260         branches if using guessed profile.
13261
13262 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
13263
13264         * graphite-optimize-isl.c (optimize_isl): Fix dump.
13265
13266 2016-01-28  Richard Henderson  <rth@redhat.com>
13267
13268         PR target/69305
13269         * config/aarch64/aarch64-modes.def (CC_Cmode): New
13270         * config/aarch64/aarch64-protos.h: Update.
13271         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
13272         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
13273         (aarch64_get_condition_code_1): Handle CC_Cmode.
13274         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
13275         (*add<mode>3_compareC_cconly_imm): New.
13276         (*add<mode>3_compareC_cconly): New.
13277         (*add<mode>3_compareC_imm): New.
13278         (add<mode>3_compareC): New.
13279         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
13280         to be first.  Use aarch64_carry_operation.
13281         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
13282         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
13283         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
13284         (subti3): Use subdi3_compare1.
13285         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
13286         (sub<mode>3_compare1): New.
13287         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
13288         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
13289         (*subsi3_carryin_uxtw): Likewise.
13290         (*ngc<mode>, *ngcsi_uxtw): Likewise.
13291         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
13292         * config/aarch64/iterators.md (DWI): New.
13293         * config/aarch64/predicates.md (aarch64_carry_operation): New.
13294         (aarch64_borrow_operation): New.
13295
13296 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
13297
13298         * graphite-optimize-isl.c (optimize_isl): Print a different debug
13299         message when isl does not return a valid schedule.
13300
13301 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13302
13303         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
13304         Remove comments from class declarations: they are already in the code
13305         close by the defs.
13306
13307 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13308
13309         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
13310         codegen_error_p.
13311         (ternary_op_to_tree): Same.
13312         (unary_op_to_tree): Same.
13313         (nary_op_to_tree): Same.
13314         (gcc_expression_from_isl_expr_op): Same.
13315         (gcc_expression_from_isl_expression): Same.
13316         (graphite_create_new_loop): Same.
13317         (graphite_create_new_loop_guard): Same.
13318         (build_iv_mapping): Same.
13319         (graphite_create_new_guard): Same.
13320         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
13321         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
13322
13323 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13324
13325         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
13326         instead of setting codegen_error to fail codegen.
13327
13328 2016-01-28  Jason Merrill  <jason@redhat.com>
13329
13330         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
13331
13332 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
13333
13334         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
13335         Remove CONST_INT_P check in CCMP cost calculation.
13336
13337 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
13338
13339         * config/aarch64/aarch64.c (generic_vector_cost):
13340         Set vec_permute_cost.
13341         (cortexa57_vector_cost): Likewise.
13342         (exynosm1_vector_cost): Likewise.
13343         (xgene1_vector_cost): Likewise.
13344         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
13345         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
13346         Add vec_permute_cost entry.
13347
13348 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
13349
13350         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
13351         immediate as %1.
13352         (add<mode>3_compare0): Likewise.
13353         (addsi3_compare0_uxtw): Likewise.
13354         (add<mode>3nr_compare0): Likewise.
13355         (compare_neg<mode>): Likewise.
13356         (<optab><mode>3): Likewise.
13357
13358 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
13359
13360         * tree-vect-stmts.c (vectorizable_comparison): Add
13361         NULL check for vectype.
13362
13363 2016-01-28  Richard Biener  <rguenther@suse.de>
13364
13365         PR tree-optimization/69466
13366         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
13367         Account for PHIs we couldn't duplicate.
13368
13369 2016-01-28  Martin Liska  <mliska@suse.cz>
13370
13371         PR pch/68758
13372         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
13373         instead of ENABLE_VALGRIND_CHECKING.
13374
13375 2016-01-27  Richard Henderson  <rth@redhat.com>
13376
13377         PR rtl-opt/69447
13378         * lra-remat.c (subreg_regs): New.
13379         (dump_candidates_and_remat_bb_data): Dump it.
13380         (operand_to_remat): Reject if operand in subreg_regs.
13381         (set_bb_regs): Collect subreg_regs.
13382         (lra_remat): Init and free subreg_regs.  Compute
13383         calculate_local_reg_remat_bb_data before create_cands.
13384
13385 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
13386
13387         PR target/68986
13388         * config/i386/i386.c (ix86_update_stack_boundary): Don't
13389         change stack_alignment_needed for __tls_get_addr call.
13390
13391 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
13392
13393         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
13394
13395 2016-01-27  Jeff Law  <law@redhat.com>
13396
13397         PR tree-optimization/68398
13398         PR tree-optimization/69196
13399         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
13400         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
13401         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13402         Only count PHIs in the last block in the path.  The others will
13403         const/copy propagate away.  Add heuristic to allow more irreducible
13404         subloops to be created when it is likely profitable to do so.
13405
13406         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13407         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
13408         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
13409
13410 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
13411
13412         PR lto/69254
13413         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
13414         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
13415         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
13416         * tree-streamer-in.c: Include asan.h.
13417         (streamer_get_builtin_tree): For builtins in sanitizer
13418         range call initialize_sanitizer_builtins and retry.
13419
13420 2016-01-27  Ian Lance Taylor  <iant@google.com>
13421
13422         * common.opt (fkeep-gc-roots-live): New undocumented option.
13423         * tree-ssa-loop-ivopts.c (add_candidate_1): If
13424         -fkeep-gc-roots-live, skip pointers.
13425         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
13426         NULL.
13427
13428 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
13429
13430         PR target/69512
13431         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
13432         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
13433
13434 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
13435
13436         PR target/68380
13437         * configure.ac: NetBSD provides SSP in its C library.
13438         * configure: Updated.
13439
13440 2016-01-27  Richard Biener  <rguenther@suse.de>
13441
13442         PR tree-optimization/69166
13443         * tree-vect-loop.c (vect_is_simple_reduction): Always check
13444         reduction code for commutativity / associativity.
13445
13446 2016-01-27  Martin Jambor  <mjambor@suse.cz>
13447
13448         PR tree-optimization/69355
13449         * tree-sra.c (analyze_access_subtree): Correct hole detection when
13450         total_scalarization fails.
13451
13452 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
13453
13454         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
13455         power9.
13456
13457 2016-01-27  Christian Bruel  <christian.bruel@st.com>
13458
13459         PR target/69245
13460         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
13461         Move arm_reset_previous_fndecl and set_target_option_current_node in
13462         the conditional part.  Call save_restore_target_globals.
13463         * config/arm/arm.c (arm_set_current_function):
13464         Refactor to better support #pragma target and attribute mix.
13465         Call save_restore_target_globals.
13466         * config/arm/arm-protos.h (save_restore_target_globals): New function.
13467
13468 2016-01-27  Martin Liska  <mliska@suse.cz>
13469
13470         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
13471         reference for an HSA kernel and its host function.
13472
13473 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
13474
13475         PR tree-optimization/69399
13476         * wide-int.h (wi::lrshift): For larger precisions, only
13477         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
13478
13479 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
13480
13481         * config/arc/predicates.md (proper_comparison_operator): Reject
13482         constant-constant comparison.
13483
13484 2016-01-26  Tom de Vries  <tom@codesourcery.com>
13485
13486         PR tree-optimization/69110
13487         * tree-data-ref.c (initialize_data_dependence_relation): Handle
13488         DR_NUM_DIMENSIONS == 0.
13489
13490 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
13491             Sebastian Pop  <s.pop@samsung.com>
13492
13493         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
13494         isl_ast_op_cond and isl_ast_op_select.
13495         (gcc_expression_from_isl_expr_op): Same.
13496
13497 2016-01-26  Jason Merrill  <jason@redhat.com>
13498
13499         PR c++/68782
13500         * tree.c (recompute_constructor_flags): Split out from
13501         build_constructor.
13502         (verify_constructor_flags): New.
13503         * tree.h: Declare them.
13504
13505 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
13506
13507         PR rtl-optimization/69217
13508         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
13509         are no TYPE_FIELDS set for the record type.
13510
13511 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13512
13513         PR target/68662
13514         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
13515         toc_label_name unconditionally.
13516         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
13517         SYMBOL_REF string.  Use toc_label_name instead of constructing
13518         LCTOC1.
13519         (rs6000_elf_declare_function_name): Use toc_label_name instead of
13520         constructing LCTOC1.
13521
13522 2016-01-26  Martin Sebor  <msebor@redhat.com>
13523
13524         PR other/69477
13525         * doc/extend.texi (Common Type Attributes): Move text that talks about
13526         attribute packed from attribute aligned to the section discussing
13527         the former attribute for clarity.
13528
13529 2016-01-26  Richard Henderson  <rth@redhat.com>
13530
13531         PR middle-end/60908
13532         * trans-mem.c (tm_region_init): Mark entry block as visited.
13533
13534 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
13535
13536         PR other/69006
13537         * diagnostic-show-locus.c (layout::print_source_line): Replace
13538         call to pp_newline with call to layout::print_newline.
13539         (layout::print_annotation_line): Likewise.
13540         (layout::move_to_column): Likewise.
13541         (layout::print_any_fixits): After printing any fixits, print a
13542         trailing newline, if necessary.
13543         (layout::print_newline): New method, resetting any colorization
13544         before a newline.
13545         (diagnostic_show_locus): Move the pp_newline to before the
13546         early bailout.  Remove dummy block enclosing the layout instance.
13547         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
13548         of pp_newline_and_flush with pp_flush.
13549         (diagnostic_append_note): Delete use of pp_newline.
13550         (diagnostic_append_note_at_rich_loc): Delete.
13551         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
13552         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
13553         when newline characters are added to the buffer.
13554
13555 2016-01-26  Michael Matz  <matz@suse.de>
13556
13557         * configure.ac (ac_cv_std_swap_in_utility): New test.
13558         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
13559         * configure: Regenerate.
13560         * config.in: Regenerate.
13561
13562 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
13563
13564         * config/arc/arc.md (cstoresi4): Force operand into register.
13565         (arcset<code>): Fix predicate.
13566         (arcsetltu): Likewise.
13567         (arcsetgeu): Likewise.
13568         (arcsethi): Likewise.
13569         (arcsetls): Likewise.
13570
13571 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13572
13573         PR tree-optimization/69483
13574         * gimple-fold.c (canonicalize_constructor_val): Return NULL
13575         if base has error_mark_node type.
13576
13577 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
13578
13579         PR target/68620
13580         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
13581         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
13582         New helper macros.
13583         (vget_lane_f16): Handle big-endian.
13584         (vgetq_lane_f16): Likewise.
13585         (vset_lane_f16): Likewise.
13586         (vsetq_lane_f16): Likewise.
13587         * config/arm/iterators.md (VQXMOV): Add V8HF.
13588         (VDQ): Add V4HF and V8HF.
13589         (V_reg): Handle V4HF and V8HF.
13590         (Is_float_mode): Likewise.
13591         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
13592         neon_vdup_nv8hf): New patterns.
13593         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
13594         Use VD_LANE iterator.
13595         (neon_vld1_dup<mode>): Use VQ2 iterator.
13596
13597 2016-01-26  Nathan Sidwell  <nathan@acm.org>
13598
13599         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
13600         (set_oacc_fn_attrib): Add IS_KERNEL arg.
13601         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
13602         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
13603         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
13604         (oacc_validate_dims): Add LEVEL arg, don't return level.
13605         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
13606         oacc_validate_dims.
13607         (execute_oacc_device_lower): Adjust, add more dump output.
13608         * tree-ssa-loop.c (gate_oacc_kernels): Use
13609         oacc_fn_attrib_kernels_p.
13610         * tree-parloops.c (create_parallel_loop): Adjust
13611         set_oacc_fn_attrib call.
13612
13613 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13614
13615         PR lto/69254
13616         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
13617         (append_compiler_options): Handle -fcilkplus.
13618         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
13619
13620 2016-01-26  Nick Clifton  <nickc@redhat.com>
13621
13622         PR target/66655
13623         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
13624         been marked as DECL_ONE_ONLY but we do not the means to make it
13625         so, then do not allow it to bind locally.
13626
13627 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13628
13629         PR lto/69254
13630         * opts.h (parse_sanitizer_options): New prototype.
13631         * opts.c (sanitizer_opts): New array.
13632         (parse_sanitizer_options): New function.
13633         (common_handle_option): Use parse_sanitizer_options.
13634
13635 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
13636
13637         PR target/68986
13638         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
13639         alignment adjustment to ...
13640         (ix86_update_stack_boundary): Here.  Don't over-align stack for
13641         __tls_get_addr.
13642         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
13643         if __tls_get_addr is called.
13644
13645 2016-01-26  Christian Bruel  <christian.bruel@st.com>
13646
13647         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
13648
13649 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
13650
13651         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
13652
13653 2016-01-26  Richard Biener  <rguenther@suse.de>
13654
13655         PR middle-end/69467
13656         * match.pd: Guard X * CST CMP 0 pattern with single_use.
13657
13658 2016-01-26  Richard Biener  <rguenther@suse.de>
13659
13660         PR tree-optimization/69452
13661         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
13662         (move_computations_dom_walker::before_dom_children): Rename
13663         to ...
13664         (move_computations_worker): This.
13665         (move_computations): Perform an RPO rather than a DOM walk.
13666
13667 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13668
13669         PR target/69442
13670         * combine.c (combine_instructions): For REG_EQUAL note with
13671         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
13672         to the underlying register.
13673         * doc/rtl.texi (REG_EQUAL): Document the behavior of
13674         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
13675
13676 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
13677
13678         PR target/67896
13679         * config/aarch64/aarch64-builtins.c
13680         (aarch64_init_simd_builtin_types): Do not set structural
13681         equality to __Poly{8,16,64,128}_t types.
13682
13683 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
13684
13685         PR tree-optimization/69400
13686         * wide-int.cc (wi_pack): Take the precision as argument and
13687         perform canonicalization here rather than in the callers.
13688         Use the main loop to handle all full-width HWIs.  Add a
13689         zero HWI if in_len isn't a full result.
13690         (wi::divmod_internal): Update accordingly.
13691         (wi::mul_internal): Likewise.  Simplify.
13692
13693 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
13694             Sebastian Pop  <s.pop@samsung.com>
13695
13696         * graphite-poly.c (apply_poly_transforms): Simplify.
13697         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
13698         (print_isl_map): Same.
13699         (print_isl_union_map): Same.
13700         (print_isl_schedule): New.
13701         (debug_isl_schedule): New.
13702         * graphite-dependences.c (scop_get_reads): Do not call
13703         isl_union_map_add_map that is undocumented isl functionality.
13704         (scop_get_must_writes): Same.
13705         (scop_get_may_writes): Same.
13706         (scop_get_original_schedule): Remove.
13707         (scop_get_dependences): Do not call isl_union_map_compute_flow that
13708         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
13709         (compute_deps): Remove.
13710         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
13711         (debug_schedule_ast): New.
13712         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
13713         set_separate_option.
13714         (graphite_regenerate_ast_isl): Add dump.
13715         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
13716         from scop->transformed_schedule.
13717         (graphite_regenerate_ast_isl): Add more dump.
13718         * graphite-optimize-isl.c (optimize_isl): Set
13719         scop->transformed_schedule.  Check whether schedules are equal.
13720         (apply_poly_transforms): Move here.
13721         * graphite-poly.c (apply_poly_transforms): ... from here.
13722         (free_poly_bb): Static.
13723         (free_scop): Static.
13724         (pbb_number_of_iterations_at_time): Remove.
13725         (print_isl_ast): New.
13726         (debug_isl_ast): New.
13727         (debug_scop_pbb): New.
13728         * graphite-scop-detection.c (print_edge): Move.
13729         (print_sese): Move.
13730         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
13731         (build_scop_scattering): Remove.
13732         (create_pw_aff_from_tree): Assert instead of bailing out.
13733         (add_condition_to_pbb): Remove unused code, do not fail.
13734         (add_conditions_to_domain): Same.
13735         (add_conditions_to_constraints): Remove.
13736         (build_scop_context): New.
13737         (add_iter_domain_dimension): New.
13738         (build_iteration_domains): Initialize pbb->iterators.
13739         Call add_conditions_to_domain.
13740         (nested_in): New.
13741         (loop_at): New.
13742         (index_outermost_in_loop): New.
13743         (index_pbb_in_loop): New.
13744         (outermost_pbb_in): New.
13745         (add_in_sequence): New.
13746         (add_outer_projection): New.
13747         (outer_projection_mupa): New.
13748         (add_loop_schedule): New.
13749         (build_schedule_pbb): New.
13750         (build_schedule_loop): New.
13751         (embed_in_surrounding_loops): New.
13752         (build_schedule_loop_nest): New.
13753         (build_original_schedule): New.
13754         (build_poly_scop): Call build_original_schedule.
13755         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
13756         (free_poly_dr): Remove.
13757         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
13758         (free_poly_bb): Remove.
13759         (debug_loop_vec): Remove.
13760         (print_isl_ast): Declare.
13761         (debug_isl_ast): Declare.
13762         (scop_do_interchange): Remove.
13763         (scop_do_strip_mine): Remove.
13764         (scop_do_block): Remove.
13765         (flatten_all_loops): Remove.
13766         (optimize_isl): Remove.
13767         (pbb_number_of_iterations_at_time): Remove.
13768         (debug_scop_pbb): Declare.
13769         (print_schedule_ast): Declare.
13770         (debug_schedule_ast): Declare.
13771         (struct scop): Remove schedule.  Add original_schedule,
13772         transformed_schedule.
13773         (free_gimple_poly_bb): Remove.
13774         (print_generated_program): Remove.
13775         (debug_generated_program): Remove.
13776         (unify_scattering_dimensions): Remove.
13777         * sese.c (print_edge): ... here.
13778         (print_sese): ... here.
13779         (debug_edge): ... here.
13780         (debug_sese): ... here.
13781         * sese.h (print_edge): Declare.
13782         (print_sese): Declare.
13783         (dump_edge): Declare.
13784         (dump_sese): Declare.
13785
13786 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
13787             Sebastian Pop  <s.pop@samsung.com>
13788
13789         * Makefile.in: Set ISLVER in site.exp.
13790
13791 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
13792
13793         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
13794         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
13795         through DECL_VALUE_EXPR for expansion.
13796
13797 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13798
13799         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
13800         the frame info after reload completed.
13801
13802 2016-01-25  Jeff Law  <law@redhat.com>
13803
13804         PR tree-optimization/69196
13805         PR tree-optimization/68398
13806         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
13807         tree-ssa-threadupdate.c.
13808         (determine_bb_domination_status): Prototype
13809         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
13810         (determine_bb_domination_status): No longer static.
13811         (valid_jump_thread_path): Remove code to detect characteristics
13812         of the jump thread path not associated with correctness.
13813         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
13814         Correct test for thread path length.  Count PHIs for real operands as
13815         statements that need to be copied.  Do not count ASSERT_EXPRs.
13816         Look at all the blocks in the thread path.  Compute and selectively
13817         filter thread paths based on threading through the latch, threading
13818         a multiway branch or crossing a multiway branch.
13819
13820 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13821
13822         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
13823         decl with __attribute__ ((unused)) annotation.
13824
13825 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
13826
13827         PR target/69421
13828         * tree-vect-stmts.c (vectorizable_condition): Check vectype
13829         of operands is compatible with a statement vectype.
13830
13831 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
13832
13833         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
13834         improve wording for mixed storage order support.
13835
13836 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
13837
13838         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
13839         (vcvt_u64_f64): Likewise.
13840         (vcvta_s64_f64): Likewise.
13841         (vcvta_u64_f64): Likewise.
13842         (vcvtm_s64_f64): Likewise.
13843         (vcvtm_u64_f64): Likewise.
13844         (vcvtn_s64_f64): Likewise.
13845         (vcvtn_u64_f64): Likewise.
13846         (vcvtp_s64_f64): Likewise.
13847         (vcvtp_u64_f64): Likewise.
13848
13849 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
13850
13851         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
13852         (arc_init): Check validity mll64 option.
13853         (arc_save_restore): Use double load/store instruction.
13854         (arc_expand_movmem): Likewise.
13855         (arc_split_move): Don't split if we have double load/store
13856         instructions. Returns a boolean.
13857         (arc_process_double_reg_moves): Change function to return boolean
13858         instead of a sequence of instructions.
13859         (arc_dwarf_register_span): New function.
13860         * config/arc/arc-protos.h (arc_split_move): Change prototype.
13861         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
13862         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
13863         (*movdf_insn): Likewise.
13864         * config/arc/arc.opt (mll64): New option.
13865         * config/arc/predicates.md (even_register_operand): New predicate.
13866         * doc/invoke.texi (ARC Options): Add mll64 documentation.
13867
13868 2016-01-25  Richard Biener  <rguenther@suse.de>
13869
13870         PR lto/69393
13871         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
13872         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
13873         DECL_NAMELESS.
13874         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
13875
13876 2016-01-25  Richard Biener  <rguenther@suse.de>
13877
13878         PR tree-optimization/69376
13879         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
13880         flag.
13881         (VN_INFO_ANTI_RANGE_P): New inline.
13882         (VN_INFO_RANGE_TYPE): Likewise.
13883         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
13884         SSA_NAME_ANTI_RANGE_P.
13885         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
13886         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13887         Properly query VN_INFO_RANGE_TYPE.
13888
13889 2016-01-25  Nick Clifton  <nickc@redhat.com>
13890
13891         PR target/66655
13892         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
13893
13894 2016-01-23  Tom de Vries  <tom@codesourcery.com>
13895
13896         PR tree-optimization/69426
13897         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
13898         removed clobber.
13899
13900 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
13901
13902         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
13903         "the the" with "the" in the comments.
13904         * ipa-devirt.c (build_type_inheritance_graph,
13905         update_type_inheritance_graph): Likewise.
13906         * tree.c (build_function_type_list_1): Likewise.
13907         * cfgloopmanip.c (scale_loop_profile): Likewise.
13908         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
13909         * gimple-ssa-split-paths.c
13910         (find_block_to_duplicate_for_splitting_paths): Likewise.
13911         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
13912         * expr.c (convert_move): Likewise.
13913         * var-tracking.c (vt_stack_adjustments): Likewise.
13914         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
13915         * tree-vrp.c (test_for_singularity): Likewise.
13916
13917         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
13918         directly instead of building a temporary tree.
13919
13920         PR bootstrap/69434
13921         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
13922         remove <algorithm> include.
13923
13924 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
13925
13926         PR target/69432
13927         * config/i386/i386.c: Include dojump.h.
13928         (expand_small_movmem_or_setmem,
13929         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
13930         fixes.
13931         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
13932         if dynamic_check != -1.
13933
13934 2016-01-21  Jeff Law  <law@redhat.com>
13935
13936         PR middle-end/69347
13937         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
13938         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
13939         into dominated_by_p.
13940         (cprop_into_successor_phis): Avoid unnecessary tests.
13941
13942 2016-01-22  Richard Henderson  <rth@redhat.com>
13943
13944         PR target/69416
13945         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
13946         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
13947
13948 2016-01-22  Michael Matz  <matz@suse.de>
13949
13950         * system.h (string, algorithm): Include only conditionally.
13951         (new): Include always under C++.
13952         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
13953         * final.c (toplevel): Ditto.
13954         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
13955         * genconditions.c (write_header): Make gencondmd.c define
13956         INCLUDE_STRING.
13957         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
13958
13959         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
13960         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
13961
13962 2016-01-22  Christian Bruel  <christian.bruel@st.com>
13963
13964         PR target/68674
13965         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
13966
13967 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13968
13969         PR target/69403
13970         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
13971         define_insn_and_split.  Ensure operands[1] and operands[0] do not
13972         get assigned the same register.
13973
13974 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
13975
13976         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
13977
13978 2016-01-22  Christian Bruel  <christian.bruel@st.com>
13979
13980         * config/arm/arm-c.c (arm_pragma_target_parse):
13981         Remove warn_builtin_macro_redefined overwrite.
13982
13983 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
13984
13985         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
13986         flag_non_call_exceptions compatibility.
13987
13988 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
13989
13990         PR debug/66668
13991         * dwarf2out.c (add_child_die_after): New function.
13992         (dwarf_qual_info_t): New type.
13993         (dwarf_qual_info): New variable.
13994         (qualified_die_p): New function.
13995         (modified_type_die): For -fdebug-types-section, ensure
13996         canonical order of qualifiers.  Put qualified DIEs adjacent
13997         to the corresponding non-qualified type DIE and search there
13998         for existing qualified DIEs.
13999
14000 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
14001
14002         * doc/extend.texi (scalar_storage_order type attribute): Document
14003         restriction on type punning and aliasing, and remove future tense.
14004
14005 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
14006
14007         PR target/69252
14008         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
14009         first stage.
14010
14011 2016-01-21  Jeff Law  <law@redhat.com>
14012
14013         PR middle-end/69347
14014         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
14015         useless call to record_temporary_equivalences.
14016         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
14017         allocate 10 slots in the bb_path vector and let it grow as needed.
14018         (fsm_find_control_statement_thread_paths): Similarly for the next_path
14019         vector.
14020
14021 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
14022
14023         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
14024         Detangle.
14025         * configure: Regenerate.
14026
14027 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
14028
14029         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
14030         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
14031
14032 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
14033
14034         PR middle-end/66178
14035         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
14036         drop EXPAND_INITIALIZER.
14037         * rtl.h (contains_symbolic_reference_p): Declare.
14038         * rtlanal.c (contains_symbolic_reference_p): New function.
14039         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
14040         a subtraction into a NOT if symbolic constants are involved.
14041
14042 2016-01-21  Anton Blanchard  <anton@samba.org>
14043             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14044
14045         PR target/63354
14046         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
14047         #define.
14048         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
14049         function.
14050
14051 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
14052
14053         * config/microblaze/microblaze.c
14054         (get_branch_target): New.
14055         (insert_wic_for_ilb_runout): New.
14056         (insert_wic): New.
14057         (microblaze_machine_dependent_reorg): New.
14058         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
14059         * config/microblaze/microblaze.md
14060         (UNSPEC_IPREFETCH): Define.
14061         (iprefetch): New pattern
14062         * config/microblaze/microblaze.opt
14063         (mxl-prefetch): New flag.
14064
14065 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
14066
14067         * config/microblaze/microblaze.h
14068         (FIXED_REGISTERS): Update in macro.
14069         (CALL_USED_REGISTERS): Update in macro.
14070
14071 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
14072
14073         PR rtl-optimization/68920
14074         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
14075         moves.
14076
14077 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
14078
14079         PR rtl-optimization/68990
14080         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
14081         pseudo instead of inheritance ones.
14082
14083 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14084             Nick Clifton  <nickc@redhat.com>
14085
14086         PR target/69129
14087         PR target/69012
14088         * config/mips/mips.c (mips_compute_frame_info): Initialise
14089         args_size and hard_frame_pointer_offset fields of the frame
14090         structure before calling mips_global_pointer.
14091
14092 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
14093
14094         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
14095         label reference.
14096         * configure: Regenerate.
14097
14098 2016-01-21  Richard Biener  <rguenther@suse.de>
14099
14100         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
14101
14102 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
14103
14104         * config/s390/s390.c (s390_asm_declare_function_size): Add code
14105         to actually emit the .size directive.
14106
14107 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
14108              Jakub Jelinek  <jakub@redhat.com>
14109
14110         PR target/69187
14111         PR target/65624
14112         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
14113         args array size by one to avoid buffer overflow.
14114
14115 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
14116
14117         * config/s390/s390.md (pool_section_start): Use switch_to_section
14118         to select proper read-only data section instead of hardcoding
14119         .rodata.
14120         (pool_section_end): Use switch_to_section to match the above.
14121
14122 2016-01-21  Richard Biener  <rguenther@suse.de>
14123
14124         PR tree-optimization/69378
14125         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
14126         (set_ssa_val_to): Use it for dominance checks taking into
14127         account not executable edges.
14128
14129 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
14130
14131         PR c++/69355
14132         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
14133         for bitsize instead of GET_MODE_PRECISION (mode).
14134
14135 2016-01-20  Martin Sebor  <msebor@redhat.com>
14136
14137         PR c/52291
14138         * extend.texi (__sync Builtins): Clarify the semantics of
14139         __sync_fetch_and_OP built-ins on pointers.
14140         (__atomic Builtins): Same.
14141
14142 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14143             Sebastian Pop  <s.pop@samsung.com>
14144
14145         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
14146         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
14147         (is_valid_rename): Same.
14148         (translate_isl_ast_to_gimple::get_rename): Same.
14149         (translate_isl_ast_to_gimple::rename_all_uses): Same.
14150         (translate_isl_ast_to_gimple::rename_uses): Same.
14151         (get_new_name): Check for close_phi nodes.
14152         (copy_loop_phi_args): Use phi_node_kind.
14153         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
14154         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
14155
14156 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14157             Sebastian Pop  <s.pop@samsung.com>
14158
14159         Revert commit r229783.
14160         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
14161         Remove use of parameter_rename_map.
14162         (copy_def): Remove.
14163         (copy_internal_parameters): Remove.
14164         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
14165         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
14166         (free_sese_info): Do not free parameter_rename_map.
14167         (set_rename): Do not use parameter_rename_map.
14168         (rename_uses): Update call to set_rename.
14169         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
14170         * sese.h (parameter_rename_map_t): Remove.
14171         (struct sese_info_t): Remove field parameter_rename_map.
14172
14173 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14174             Sebastian Pop  <s.pop@samsung.com>
14175
14176         * graphite-isl-ast-to-gimple.c: Fix comment.
14177         * graphite-scop-detection.c (defined_in_loop_p): New.
14178         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
14179         names defined in loop.
14180
14181 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14182             Sebastian Pop  <s.pop@samsung.com>
14183
14184         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
14185         Discard unstructured if-then-else regions.
14186
14187 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14188             Sebastian Pop  <s.pop@samsung.com>
14189
14190         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
14191         (cleanup_loop_iter_dom): Remove.
14192         (build_loop_iteration_domains): Remove.
14193         (build_scop_context): Remove.
14194         (build_scop_iteration_domain): Remove.
14195         (add_loop_constraints): New.
14196         (build_iteration_domains): New.
14197         (build_poly_scop): Call build_iteration_domains.
14198
14199 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14200             Sebastian Pop  <s.pop@samsung.com>
14201
14202         * graphite-scop-detection.c
14203         (scop_detection::harmful_loop_in_region): Free dom and loops.
14204         (scop_detection::loop_body_is_valid_scop): Free bbs.
14205
14206 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14207             Sebastian Pop  <s.pop@samsung.com>
14208
14209         * graphite-scop-detection.c (record_loop_in_sese): New.
14210         (gather_bbs::before_dom_children): Call record_loop_in_sese.
14211         (build_scops): Remove call to build_sese_loop_nests.
14212         * sese.c (sese_record_loop): Remove.
14213         (build_sese_loop_nests): Remove.
14214         (new_sese_info): Remove region->loops.
14215         (free_sese_info): Same.
14216         * sese.h (sese_contains_loop): Same.
14217         (build_sese_loop_nests): Remove.
14218         (sese_contains_loop): Remove.
14219
14220 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14221             Sebastian Pop  <s.pop@samsung.com>
14222
14223         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
14224         loop_is_valid_in_scop.
14225         (scop_detection::harmful_stmt_in_region): Renamed
14226         harmful_loop_in_region.
14227         Call loop_is_valid_in_scop.
14228
14229 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14230             Sebastian Pop  <s.pop@samsung.com>
14231
14232         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
14233         isl_ast_node_mark.
14234
14235 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14236             Sebastian Pop  <s.pop@samsung.com>
14237
14238         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
14239         * graphite.h (struct poly_bb): Remove field is_reduction.
14240         (PBB_IS_REDUCTION): Remove.
14241
14242 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14243             Sebastian Pop  <s.pop@samsung.com>
14244
14245         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
14246         (add_pdr_constraints): Same.
14247         (scop_get_reads): Same.
14248         (scop_get_must_writes): Same.
14249         (scop_get_may_writes): Same.
14250         (scop_get_original_schedule): Same.
14251         (extend_schedule): Same.
14252         (apply_schedule_on_deps): Same.
14253         (carries_deps): Same.
14254         (compute_deps): Same.
14255         (scop_get_dependences): Same.
14256         * graphite-isl-ast-to-gimple.c
14257         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
14258         * graphite-optimize-isl.c (get_schedule_for_band): Same.
14259         (get_schedule_for_band_list): Same.
14260         (get_schedule_map): Same.
14261         (apply_schedule_map_to_scop): Same.
14262         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
14263         (build_loop_iteration_domains): Same.
14264         (add_condition_to_pbb): Same.
14265         (add_param_constraints): Same.
14266         (pdr_add_memory_accesses): Same.
14267         (pdr_add_data_dimensions): Same.
14268
14269 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
14270
14271         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
14272         requirements.
14273
14274 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
14275
14276         * common.opt (feliminate-dwarf2-dups): Replace references to
14277         "DWARF 2" with just "DWARF".
14278         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
14279         * doc/extend.texi: Likewise.
14280         * doc/cpp.texi: Likewise.
14281         * doc/invoke.texi: Likewise.
14282         (Option Summary): Add -gdwarf to list of Debugging Options.
14283         (Debugging Options): Document -gdwarf.
14284         * doc/contrib.texi: Spell "DWARF" like that.
14285
14286 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
14287
14288         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
14289         warning.  Fix up formatting.
14290
14291         PR middle-end/67653
14292         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
14293         attempt to mark memory input operand addressable and
14294         call prepare_gimple_addressable in that case.  Don't adjust
14295         input_location for diagnostics, use error_at instead.
14296
14297 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
14298
14299         * config/rs6000/ppc-auxv.h: New file.
14300         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
14301         (cpu_is): Likewise.
14302         (cpu_supports): Likewise.
14303         * config/rs6000/rs6000.c: include "ppc-auxv.h".
14304         (cpu_is_info): New variable.
14305         (cpu_supports_info): Likewise.
14306         (tcb_verification_symbol): Likewise.
14307         (cpu_builtin_p): Likewise.
14308         (cpu_expand_builtin): New function.
14309         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
14310         (rs6000_init_builtins): Likewise.
14311         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
14312         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
14313         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
14314         * configure: Regenerate.
14315         * config.in: Likewise.
14316         * doc/extend.texi (PowerPC Built-in Functions): Document
14317         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
14318
14319 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
14320
14321         PR target/68609
14322         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
14323         domain check.
14324         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
14325         for V4SFmode.
14326
14327 2016-01-20  Richard Henderson  <rth@redhat.com>
14328
14329         PR bootstrap/69343
14330         PR bootstrap/69339
14331         PR tree-opt/68964
14332         Revert:
14333         * tree.c (tm_define_builtin): New.
14334         (find_tm_vector_type): New.
14335         (build_tm_vector_builtins): New.
14336         (build_common_builtin_nodes): Call it.
14337
14338 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
14339
14340         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
14341         (arm_fp_ok): Likewise.
14342         (arm_fp): Likewise.
14343         (arm_crypto): Likewise.
14344
14345 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
14346             Richard Biener  <rguenther@suse.de>
14347
14348         PR tree-optimization/69328
14349         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
14350         vectors have same number of elements.
14351         (vectorizable_condition): Fix masked version recognition.
14352
14353 2016-01-20  Richard Biener  <rguenther@suse.de>
14354
14355         PR tree-optimization/69345
14356         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
14357         (VN_INFO_PTR_INFO): Likewise.
14358         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
14359         info when it is equal between non-dominating SSA names.
14360         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14361         Make sure to look at original SSA infos.
14362
14363 2016-01-20  Jeff Law  <law@redhat.com>
14364
14365         PR target/25114
14366         * config/m68k/predicates.md (pow2_m1_operand): New predicate
14367         extracted from ...
14368         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
14369         (pc_or_label_operand): New predicate.
14370         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
14371         tests for small integers that are 2^n - 1.
14372
14373 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
14374
14375         * doc/invoke.texi (Options Summary): Add '.' after @xref.
14376
14377 2016-01-19  Jeff Law  <law@redhat.com>
14378
14379         PR middle-end/69347
14380         * tree-ssa-threadbackwards.c
14381         (fsm_find_control_statement_thread_paths): Do not try to lookup
14382         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
14383
14384 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
14385
14386         * doc/lto.texi: Remove text that says only Gold has linker plugin
14387         support.
14388
14389 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
14390
14391         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
14392         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
14393         the DIE accordingly.
14394         (modified_type_die): Add REVERSE parameter and pass it recursively,
14395         as well as to base_type_die.  Adjust presence check accordingly.
14396         (base_type_for_mode): Adjust call to modified_type_die.
14397         (add_type_attribute): Add REVERSE parameter and pass it to
14398         modified_type_die.
14399         (generic_parameter_die): Adjust call to add_type_attribute.
14400         (add_scalar_info): Likewise.
14401         (add_subscript_info): Likewise.
14402         (gen_array_type_die): Likewise.
14403         (gen_descr_array_type_die): Likewise.
14404         (gen_entry_point_die): Likewise.
14405         (gen_enumeration_type_die): Likewise.
14406         (gen_formal_parameter_die): Likewise.
14407         (gen_subprogram_die): Likewise.
14408         (gen_variable_die ): Likewise.
14409         (gen_const_die): Likewise.
14410         (gen_field_die): Likewise.
14411         (gen_pointer_type_die): Likewise.
14412         (gen_reference_type_die): Likewise.
14413         (gen_ptr_to_mbr_type_die): Likewise.
14414         (gen_inheritance_die): Likewise.
14415         (gen_subroutine_type_die): Likewise.
14416         (gen_typedef_die): Likewise.
14417         (force_type_die): Adjust call to modified_type_die.
14418
14419 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
14420
14421         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
14422         flow throughout the file.  Fix broken link to Objective-C 2.0
14423         documentation.
14424         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
14425         errors.
14426
14427 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14428
14429         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
14430
14431 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14432
14433         PR ipa/66223
14434         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
14435         (maybe_record_node): Record cxa_pure_virtual as the only possible
14436         target if there are not ohter candidates.
14437         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
14438
14439 2016-01-19  Richard Biener  <rguenther@suse.de>
14440
14441         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
14442         (get_memory_order): Likewise.
14443
14444 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
14445
14446         * tree-vect-stmts.c (vectorizable_store): Check
14447         rhs vectype.
14448
14449 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
14450
14451         PR jit/68446
14452         * gcc.c (driver::decode_argv): Add call to
14453         init_opts_obstack before init_options_struct.
14454         * opts.c (init_opts_obstack): Remove idempotency.
14455         (init_options_struct): Replace call to init_opts_obstack
14456         with a gcc_assert to verify that it has already been called.
14457         * toplev.c (toplev::main): Add call to init_opts_obstack before
14458         calls to init_options_struct.
14459         (toplev::finalize): Move cleanup of opts_obstack next to
14460         cleanup of save_decoded_options, clearing the latter, and
14461         save_decoded_options_count.
14462
14463 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14464
14465         PR target/69135
14466         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
14467         attribute to unconditional.  Remove %? from output template.
14468
14469 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14470             Jiong Wang  <jiong.wang@arm.com>
14471
14472         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
14473         generated from different expand order.
14474
14475 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14476
14477         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
14478         Add support for CCMP costing.
14479
14480 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14481
14482         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
14483         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
14484         (fccmpe<mode>): Likewise.
14485         (fcmp): Rename to fcmp and globalize pattern.
14486         (fcmpe): Likewise.
14487         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
14488         (aarch64_gen_ccmp_next): Add FP support.
14489
14490 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14491
14492         * target.def (gen_ccmp_first): Update documentation.
14493         (gen_ccmp_next): Likewise.
14494         * doc/tm.texi (gen_ccmp_first): Update documentation.
14495         (gen_ccmp_next): Likewise.
14496         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
14497         expand_ccmp_expr_1.  Improve comments.
14498         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
14499         (ccmp_ior<mode>): Remove pattern.
14500         (cmp<mode>): Remove expand.
14501         (cmp): Globalize pattern.
14502         (cstorecc4): Use cc_register.
14503         (mov<mode>cc): Remove ccmp_cc_register check.
14504         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
14505         Simplify after removal of CC_DNE/* modes.
14506         (aarch64_ccmp_mode_to_code): Remove.
14507         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
14508         In 'k' case use integer as condition.
14509         (aarch64_nzcv_codes): Remove inverted cases.
14510         (aarch64_code_to_ccmode): Remove.
14511         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
14512         comparison with CC register to be used in folowing CCMP/branch/CSEL.
14513         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
14514         pattern.  Return the comparison with CC register.  Invert conditions
14515         when bitcode is OR.
14516         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
14517         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
14518
14519 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14520
14521         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
14522         instrumented_version.
14523
14524 2016-01-19  Richard Biener  <rguenther@suse.de>
14525
14526         PR tree-optimization/69336
14527         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
14528         handled components with get_ref_base_and_extent.
14529         (equal_mem_array_ref_p): Adjust.
14530
14531 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
14532
14533         PR debug/65779
14534         * shrink-wrap.c: Include valtrack.h.
14535         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
14536         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
14537         in between insn and where it will be moved to.  Call
14538         dead_debug_insert_temp.
14539         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
14540         first and dead_debug_local_finish at the end.
14541         For uses and defs bitmap, handle all regs in between REGNO and
14542         END_REGNO, not just the first one.
14543
14544 2016-01-19  Richard Biener  <rguenther@suse.de>
14545
14546         PR tree-optimization/69352
14547         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
14548         (equal_mem_array_ref_p): Constrain size and max size properly.
14549         Compare the reverse flag.
14550
14551 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
14552
14553         * ira.c (ira): Update regstat data if we deleted insns.
14554
14555 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
14556
14557         PR rtl-optimization/68955
14558         PR rtl-optimization/64557
14559         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
14560         here.  Fix up formatting.
14561         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
14562
14563 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14564
14565         PR lto/69133
14566         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
14567         assume that the node has body.
14568         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
14569         check.
14570
14571 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14572
14573         * lto-streamer-out.c (lto_output): Do not stream instrumentation
14574         thunks.
14575
14576 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14577
14578         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
14579         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
14580
14581 2016-01-19  Martin Jambor  <mjambor@suse.cz>
14582             Martin Liska  <mliska@suse.cz>
14583             Michael Matz  <matz@suse.de>
14584
14585         * Makefile.in (OBJS): Add new source files.
14586         (GTFILES): Add hsa.c.
14587         * common.opt (disable_hsa): New variable.
14588         (-Whsa): New warning.
14589         * config.in (ENABLE_HSA): New.
14590         * configure.ac: Treat hsa differently from other accelerators.
14591         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
14592         $enable_offloading.
14593         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
14594         * doc/install.texi (Configuration): Document --with-hsa-runtime,
14595         --with-hsa-runtime-include, --with-hsa-runtime-lib and
14596         --with-hsa-kmt-lib.
14597         * doc/invoke.texi (-Whsa): Document.
14598         (hsa-gen-debug-stores): Likewise.
14599         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
14600         to invoke offload compiler for hsa acclerator.
14601         * opts.c (common_handle_option): Determine whether HSA offloading
14602         should be performed.
14603         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
14604         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
14605         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
14606         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
14607         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
14608         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
14609         GF_OMP_FOR_KIND_GRID_LOOP.
14610         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
14611         (pp_gimple_stmt_1): Likewise.
14612         * gimple-walk.c (walk_gimple_stmt): Likewise.
14613         * gimple.c (gimple_build_omp_grid_body): New function.
14614         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
14615         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
14616         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
14617         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
14618         GF_OMP_TEAMS_GRID_PHONY.
14619         (gimple_statement_omp_single_layout): Updated comments.
14620         (gimple_build_omp_grid_body): New function.
14621         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
14622         (gimple_omp_for_grid_phony): New function.
14623         (gimple_omp_for_set_grid_phony): Likewise.
14624         (gimple_omp_parallel_grid_phony): Likewise.
14625         (gimple_omp_parallel_set_grid_phony): Likewise.
14626         (gimple_omp_teams_grid_phony): Likewise.
14627         (gimple_omp_teams_set_grid_phony): Likewise.
14628         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
14629         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
14630         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
14631         (BUILT_IN_GOMP_TARGET): Updated type.
14632         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
14633         (adjust_for_condition): New function.
14634         (get_omp_for_step_from_incr): Likewise.
14635         (extract_omp_for_data): Moved parts to adjust_for_condition and
14636         get_omp_for_step_from_incr.
14637         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
14638         (fixup_child_record_type): Bail out if receiver_decl is NULL.
14639         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
14640         (scan_omp_parallel): Do not create child functions for phony
14641         constructs.
14642         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
14643         (scan_omp_1_op): Checking assert we are not remapping to
14644         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
14645         (parallel_needs_hsa_kernel_p): New function.
14646         (expand_parallel_call): Register apprpriate parallel child
14647         functions as HSA kernels.
14648         (grid_launch_attributes_trees): New type.
14649         (grid_attr_trees): New variable.
14650         (grid_create_kernel_launch_attr_types): New function.
14651         (grid_insert_store_range_dim): Likewise.
14652         (grid_get_kernel_launch_attributes): Likewise.
14653         (get_target_argument_identifier_1): Likewise.
14654         (get_target_argument_identifier): Likewise.
14655         (get_target_argument_value): Likewise.
14656         (push_target_argument_according_to_value): Likewise.
14657         (get_target_arguments): Likewise.
14658         (expand_omp_target): Call get_target_arguments instead of looking
14659         up for teams and thread limit.
14660         (grid_expand_omp_for_loop): New function.
14661         (grid_arg_decl_map): New type.
14662         (grid_remap_kernel_arg_accesses): New function.
14663         (grid_expand_target_kernel_body): New function.
14664         (expand_omp): Call it.
14665         (lower_omp_for): Do not emit phony constructs.
14666         (lower_omp_taskreg): Do not emit phony constructs but create for them
14667         a temporary variable receiver_decl.
14668         (lower_omp_taskreg): Do not emit phony constructs.
14669         (lower_omp_teams): Likewise.
14670         (lower_omp_grid_body): New function.
14671         (lower_omp_1): Call it.
14672         (grid_reg_assignment_to_local_var_p): New function.
14673         (grid_seq_only_contains_local_assignments): Likewise.
14674         (grid_find_single_omp_among_assignments_1): Likewise.
14675         (grid_find_single_omp_among_assignments): Likewise.
14676         (grid_find_ungridifiable_statement): Likewise.
14677         (grid_target_follows_gridifiable_pattern): Likewise.
14678         (grid_remap_prebody_decls): Likewise.
14679         (grid_copy_leading_local_assignments): Likewise.
14680         (grid_process_kernel_body_copy): Likewise.
14681         (grid_attempt_target_gridification): Likewise.
14682         (grid_gridify_all_targets_stmt): Likewise.
14683         (grid_gridify_all_targets): Likewise.
14684         (execute_lower_omp): Call grid_gridify_all_targets.
14685         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
14686         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
14687         (tree_omp_clause): Added union field dimension.
14688         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
14689         * tree.c (omp_clause_num_ops): Added number of arguments of
14690         OMP_CLAUSE__GRIDDIM_.
14691         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
14692         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
14693         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
14694         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
14695         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
14696         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
14697         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
14698         * tree-pass.h (make_pass_gen_hsail): Declare.
14699         (make_pass_ipa_hsa): Likewise.
14700         * ipa-hsa.c: New file.
14701         * lto-section-in.c (lto_section_name): Add hsa section name.
14702         * lto-streamer.h (lto_section_type): Add hsa section.
14703         * timevar.def (TV_IPA_HSA): New.
14704         * hsa-brig-format.h: New file.
14705         * hsa-brig.c: New file.
14706         * hsa-dump.c: Likewise.
14707         * hsa-gen.c: Likewise.
14708         * hsa.c: Likewise.
14709         * hsa.h: Likewise.
14710         * toplev.c (compile_file): Call hsa_output_brig.
14711         * hsa-regalloc.c: New file.
14712
14713 2016-01-18  Jeff Law  <law@redhat.com>
14714
14715         PR tree-optimization/69320
14716         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
14717         ranged object, do nothing if the RHS constant is not [0..1].
14718         (optimize_stmt): Comparing a boolean ranged object against a
14719         constant outside [0..1] results in a compile-time constant.
14720
14721         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
14722         test.
14723
14724 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
14725
14726         * doc/invoke.texi (Invoking GCC): Add new section to menu.
14727         (Option Summary): Update to reflect new section and moved options.
14728         (C++ Dialect Options): Move -fstats to new section.
14729         (Debugging Options): Move all dump, statistics, and other GCC
14730         developer options to new section.  Rewrite section introduction
14731         and re-order remaining options to put the more basic ones first.
14732         (Optimization Options): Move -fira-verbose and -flto-report* to
14733         new section.
14734         (Developer Options): New section incorporating moved options.
14735         * doc/cppopts.texi (-dM): Update cross-reference.
14736
14737 2016-01-18  Richard Henderson  <rth@redhat.com>
14738
14739         PR target/69176
14740         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
14741         operands to pseudo only if CSE is expected.  Split long immediate
14742         operands only after reload, and for the stack pointer.
14743         (*add<GPI>3_pluslong): Remove.
14744         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
14745         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
14746         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
14747         (*add<GPI>3 peepholes): New.
14748         (*add<GPI>3 splitters): New.
14749         * config/aarch64/constraints.md (Upl): New.
14750         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
14751
14752 2016-01-18  Richard Biener  <rguenther@suse.de>
14753
14754         PR tree-optimization/69297
14755         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
14756         stmt at most once.
14757         (vect_bb_vectorization_profitable_p): Clear visited flag again.
14758
14759 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
14760
14761         PR middle-end/68542
14762         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
14763         of mixind vector and scalar types.
14764         (fold_relational_const): Add handling of vector
14765         comparison with boolean result.
14766         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
14767         comparison of vector operands with boolean result for EQ/NE only.
14768         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
14769         (verify_gimple_cond): Likewise.
14770         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
14771         valid type of VAL.
14772
14773 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
14774
14775         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
14776         !TARGET_OCTEON.
14777
14778 2016-01-18  Richard Biener  <rguenther@suse.de>
14779
14780         PR middle-end/69308
14781         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
14782
14783 2016-01-18  Tom de Vries  <tom@codesourcery.com>
14784
14785         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
14786
14787 2016-01-18  Tom de Vries  <tom@codesourcery.com>
14788
14789         * omp-low.c (set_oacc_fn_attrib): Make extern.
14790         * omp-low.h (set_oacc_fn_attrib): Declare.
14791         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
14792         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
14793         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
14794         Add and handle function parameter oacc_kernels_p.
14795         (find_reduc_addr, get_omp_data_i_param): New function.
14796         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
14797         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
14798         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
14799         Calculate dominance info.  Skip loops that are not in a kernels region
14800         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
14801         (pass_parallelize_loops::execute): Call parallelize_loops with
14802         oacc_kernels_p argument.
14803         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
14804         New member function.
14805         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
14806         * passes.def: Add argument to pass_parallelize_loops instantation.
14807
14808 2016-01-18  Tom de Vries  <tom@codesourcery.com>
14809
14810         * tree-parloops.c (pass_parallelize_loops::execute): Allow
14811         pass_parallelize_loops to be run outside the loop pipeline.
14812
14813 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
14814
14815         * tree-scalar-evolution.c (follow_copies_to_constant): New.
14816         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
14817
14818 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
14819
14820         PR target/63679
14821         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
14822         using get_ref_base_and_extent.
14823         (equal_mem_array_ref_p): New.
14824         (hashable_expr_equal_p): Add call to previous.
14825
14826 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
14827
14828         PR target/63679
14829         * tree-sra.c (disqualified_constants, constant_decl_p): New.
14830         (sra_initialize): Allocate disqualified_constants.
14831         (sra_deinitialize): Free disqualified_constants.
14832         (disqualify_candidate): Update disqualified_constants when appropriate.
14833         (create_access): Scan for constant-pool entries as we go along.
14834         (scalarizable_type_p): Add check against type_contains_placeholder_p.
14835         (maybe_add_sra_candidate): Allow constant-pool entries.
14836         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
14837         (initialize_constant_pool_replacements): New.
14838         (sra_modify_assign): Avoid mangling assignments created by previous,
14839         and don't generate writes into constant pool.
14840         (sra_modify_function_body): Call initialize_constant_pool_replacements.
14841
14842 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
14843
14844         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
14845         andnot instruction.
14846         (scalar_chain::convert_op): Likewise.
14847         * config/i386/i386.md (*andndi3_doubleword): New.
14848
14849 2016-01-18  Richard Biener  <rguenther@suse.de>
14850
14851         PR tree-optimization/69170
14852         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
14853         building a vector from scalar results of a pattern stmt.
14854
14855 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
14856
14857         * haifa-sched.c (autopref_multipass_init): Work around
14858         -Wmaybe-uninitialized warning.
14859
14860 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14861
14862         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
14863         against the constant 0.
14864
14865 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14866
14867         PR tree-optimization/68799
14868         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
14869         look up phi candidates in the statement-candidate map.
14870         (phi_add_costs): Likewise.
14871         (record_phi_increments): Likewise.
14872         (phi_incr_cost): Likewise.
14873         (ncd_with_phi): Likewise.
14874         (all_phi_incrs_profitable): Likewise.
14875
14876 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
14877
14878         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
14879         -Wmaybe-uninitialized warning.
14880
14881 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
14882
14883         * doc/invoke.texi (Invoking GCC): Add new section to menu.
14884         (Option Summary): Update to reflect new section and moved options.
14885         (C++ Dialect Options): Move -fvtable-verify and related options.
14886         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
14887         and profiling-related options.
14888         (Optimization Options): Move profile generation options and
14889         -fstack-protector and related options.
14890         (Instrumentation Options): New section incorporating moved options.
14891         (Code Generation Options): Move -finstrument-functions and
14892         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
14893
14894 2016-01-16  Tom de Vries  <tom@codesourcery.com>
14895
14896         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
14897
14898 2016-01-16  Tom de Vries  <tom@codesourcery.com>
14899
14900         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
14901
14902 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
14903
14904         * hash-table.h (hash_table::empty): Turn into an inline wrapper
14905         that checks whether the table is already empty.  Rename the
14906         original implementation to...
14907         (hash_table::empty_slot): ...this new private function.
14908
14909 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
14910
14911         PR diagnostic/68899
14912         * diagnostic-show-locus.c (layout::print_source_line): Move x
14913         offset of line until after call to
14914         get_line_width_without_trailing_whitespace.
14915
14916 2016-01-15  Jeff Law  <law@redhat.com>
14917
14918         PR tree-optimization/69270
14919         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
14920         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
14921         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
14922         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
14923         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
14924         ssa_name_has_boolean_range and constant_boolean_node.
14925
14926 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
14927
14928         PR rtl-optimization/69030
14929         * lra-spills.c (remove_pseudos): Check nrefs and make the function
14930         returning bool.
14931         (spill_pseudos): Delete debug insn for dead pseudo.
14932         (lra_spill): Initiate spill_hard_reg and slots memory separately.
14933
14934 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
14935
14936         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
14937         New.
14938         (TYPES_UNOPUS): Likewise.
14939         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
14940         builtin type, from UNOP to UNOPUS.
14941         (lbtruncuv4sf): Likewise.
14942         (lbtruncuv2df): Likewise.
14943         (lrounduv2sf): Likewise.
14944         (lrounduv4sf): Likewise.
14945         (lrounduv2df): Likewise.
14946         (lroundusf): Likewise.
14947         (lroundusf): Likewise.
14948         (lceiluv2sf): Likewise.
14949         (lceiluv4sf): Likewise.
14950         (lceiluv2df): Likewise.
14951         (lceilusf): Likewise.
14952         (lceiludf): Likewise.
14953         (lflooruv2sf): Likewise.
14954         (lflooruv4sf): Likewise.
14955         (lflooruv2df): Likewise.
14956         (lfloorusf): Likewise.
14957         (lfloorudf): Likewise.
14958         (lfrintnuv2sf): Likewise.
14959         (lfrintnuv4sf): Likewise.
14960         (lfrintnuv2df): Likewise.
14961         (lfrintnusf): Likewise.
14962         (lfrintnudf): Likewise.
14963         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
14964         conversion.
14965         (vcvtq_u32_f32): Likewise.
14966         (vcvtq_u64_f64): Likewise.
14967         (vcvta_u32_f32): Likewise.
14968         (vcvtaq_u32_f32): Likewise.
14969         (vcvtaq_u64_f64): Likewise.
14970         (vcvtm_u32_f32): Likewise.
14971         (vcvtmq_u32_f32): Likewise.
14972         (vcvtmq_u64_f64): Likewise.
14973         (vcvtn_u32_f32): Likwise.
14974         (vcvtnq_u32_f32): Likewise.
14975         (vcvtnq_u64_f64): Likewise.
14976         (vcvtp_u32_f32): Likewise.
14977         (vcvtpq_u32_f32): Likewise.
14978         (vcvtpq_u64_f64): Likewise.
14979         (vcvtmd_u64_f64): Likewise.
14980         (vcvtms_u32_f32): Likewise.
14981         (vcvtad_u64_f64): Likewise.
14982         (vcvtas_u32_f32): Likewise.
14983         (vcvtnd_u64_f64): Likewise.
14984         (vcvtns_u32_f32): Likewise.
14985         (vcvtpd_u64_f64): Likewise.
14986         (vcvtps_u32_f32): Likewise.
14987
14988 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14989
14990         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
14991         CSEL of zero_extended registers.
14992
14993 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14994
14995         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
14996         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
14997
14998 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14999
15000         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
15001         false when argument string is not found in the attributes table
15002         at all.
15003
15004 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
15005
15006         PR target/68609
15007         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
15008         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
15009         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
15010         precision estimate.
15011
15012 2016-01-15  Richard Biener  <rguenther@suse.de>
15013
15014         PR tree-optimization/66856
15015         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
15016         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
15017         (vect_create_new_slp_node): Increment stmt reference count.
15018         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
15019         an SLP tree before swapping operands.
15020         (vect_build_slp_tree): Likewise.
15021         (destroy_bb_vec_info): Free stmt info after SLP instances.
15022         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
15023         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
15024         (STMT_VINFO_NUM_SLP_USES): New macro.
15025
15026 2016-01-15  Richard Biener  <rguenther@suse.de>
15027
15028         PR debug/69137
15029         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
15030         (add_linkage_name): ... here.
15031         (gen_typedef_die): Use add_linkage_name_raw instead of
15032         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
15033         if necessary.
15034
15035 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
15036
15037         * gimplify.c (oacc_default_clause): Decode reference and pointer
15038         types for both kernels and parallel regions.
15039
15040 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
15041
15042         PR middle-end/69246
15043         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
15044
15045 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
15046
15047         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
15048         (convert_scalars_to_vector): Likewise.
15049
15050 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
15051
15052         * doc/extend.texi (Type Traits): Fix grammar.
15053
15054 2016-01-15  Martin Jambor  <mjambor@suse.cz>
15055
15056         * tree-inline.c (remap_decl): Use existing dclarations if
15057         remapping a type and prevent_decl_creation_for_types.
15058         (replace_locals_stmt): Do an initial remapping of non-VLA typed
15059         decls first.  Do real remapping with
15060         prevent_decl_creation_for_types set.
15061         * tree-inline.h (copy_body_data): New field
15062         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
15063         padding.
15064
15065 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15066
15067         * config/s390/s390.opt (mmvcle): More verbose help text.
15068
15069 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15070
15071         * config/s390/s390.opt: Add period to -mzvector option text.
15072
15073 2016-01-15  Richard Biener  <rguenther@suse.de>
15074
15075         PR tree-optimization/68961
15076         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
15077         of invariants in stores again.
15078
15079 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15080
15081         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
15082
15083 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
15084
15085         * config/i386/i386.c (ix86_expand_branch): Don't split
15086         DI mode xor instruction to SI mode.
15087
15088 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
15089
15090         PR ipa/68148
15091         * ipa-icf.c (sem_function::merge): Virtual functions may become
15092         reachable even if they address is not taken and there are no
15093         idrect calls.
15094
15095 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
15096
15097         * lto-streamer-out.c (subtract_estimated_size): New function.
15098         (get_symbol_initial_value): Use it.
15099
15100 2016-01-15  Christian Bruel  <christian.bruel@st.com>
15101
15102         PR target/65837
15103         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
15104         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
15105         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
15106         use add_builtin_function_ext_scope instead of add_builtin_function.
15107         (neon_set_p, neon_crypto_set_p): Remove.
15108         (arm_init_builtins): Always call arm_init_neon_builtins and
15109         arm_init_crypto_builtins.
15110         (arm_expand_builtin): Check that builtins are allowed for the arch.
15111         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
15112         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
15113         arm_init_neon_builtins call.
15114
15115 2016-01-15  Richard Biener  <rguenther@suse.de>
15116
15117         PR tree-optimization/69117
15118         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
15119         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
15120         of the leader conservatively.
15121         (free_scc_vn): Restore original SSA name infos.
15122
15123 2016-01-14  Jeff Law  <law@redhat.com>
15124
15125         PR tree-optimization/69270
15126         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
15127         single bit of precision, verify it's also unsigned.
15128         (record_edge_info): Use constant_boolean_node rather than fold_convert
15129         to convert boolean_true/boolean_false to the right type.
15130
15131 2016-01-14  Richard Henderson  <rth@redhat.com>
15132
15133         PR rtl-opt/69014
15134         * loop-doloop.c (record_reg_sets): New.
15135         (doloop_optimize): Reject the transform if the sequence
15136         clobbers registers live at the end of the loop block.
15137         (doloop_optimize_loops): Enable df_live if needed.
15138
15139 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15140
15141         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
15142         * config/rs6000/rs6000.c: Likewise.
15143         * config/rs6000/rs6000.h: Likewise.
15144         * config/rs6000/rs6000.md: Likewise.
15145         * doc/extend.texi: Likewsie.
15146
15147 2016-01-14  Jeff Law  <law@redhat.com>
15148
15149         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
15150         typo.
15151
15152 2016-01-14  Richard Henderson  <rth@redhat.com>
15153
15154         PR c/69272
15155         PR tree-opt/68964
15156         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
15157         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
15158         instead of builtin_decl_declared_p to test for declaration.
15159
15160 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
15161
15162         * doc/loop.texi (Loop Analysis and Representation): Document
15163         loop_depth function.
15164
15165 2016-01-14  Tom de Vries  <tom@codesourcery.com>
15166
15167         PR tree-optimization/68773
15168         * omp-low.c (expand_omp_target): Don't set force_output.
15169         * varpool.c (varpool_node::get_create): Same.
15170         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
15171         offload_funcs with force_output.
15172
15173 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
15174
15175         PR debug/69244
15176         * lra-eliminations.c (move_plus_up): Don't change anything if either
15177         the outer or inner subreg mode is not MODE_INT.
15178         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
15179         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
15180
15181 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
15182
15183         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
15184         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
15185         reduc_uplus_@var{m}): Remove.
15186         * expr.c (expand_expr_real_2): Remove expansion path for
15187         reduc_[us](min|max|plus) optabs.
15188         * optabs-tree.c (scalar_reduc_to_vector): Remove.
15189         * optabs-tree.h (scalar_reduc_to_vector): Remove.
15190         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
15191         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
15192         * tree-vect-loop.c (vectorizable_reduction): Remove test for
15193         reduc_[us](min|max|plus) optabs.
15194
15195 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
15196
15197         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
15198         (reduc_plus_scal_v2sf): New.
15199         (reduc_smax_v2sf): Rename to...
15200         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
15201         (reduc_smin_v2sf): Rename to...
15202         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
15203
15204 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
15205
15206         * alias.c (compare_base_symbol_refs): New function.
15207         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
15208         it.
15209
15210 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
15211
15212         PR middle-end/68146
15213         PR tree-optimization/69155
15214         * tree-complex.c: Include cfganal.h.
15215         (phis_to_revisit): New variable.
15216         (extract_component): Add phiarg_p argument.  Assert that returned
15217         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
15218         (update_phi_components): Partly rewrite to use loop over real/imag
15219         components instead of code duplication.  If extract_component returns
15220         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
15221         create_tmp_reg into the PHI node instead, and mention the phi triplet
15222         in phis_to_revisit.
15223         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
15224         in phis_to_revisit at the end.
15225
15226 2016-01-14  Richard Biener  <rguenther@suse.de>
15227
15228         PR tree-optimization/68060
15229         * tree-vect-loop.c (vect_is_simple_reduction): Check the
15230         outer loop reduction is only used in the inner loop before
15231         detecting a double reduction.
15232
15233 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
15234
15235         PR target/68269
15236         * combine.c (expand_field_assignment): Punt if compute_mode is
15237         unsupported scalar mode.
15238
15239 2016-01-14  Richard Biener  <rguenther@suse.de>
15240
15241         PR tree-optimization/66856
15242         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
15243         SLP node only if it built successfully.
15244         (vect_analyze_slp_instance): Adjust.
15245
15246 2016-01-14  Jeff Law  <law@redhat.com>
15247
15248         PR tree-optimization/69270
15249         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
15250         (record_edge_info): Use it.  Convert boolean_{true,false}_node
15251         to the type of op0.
15252
15253 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
15254
15255         PR ipa/66487
15256         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
15257         use block_ultimate_origin
15258         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
15259
15260 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
15261
15262         * doc/invoke.texi (Submodel Options): Rename section to
15263         "Machine-Dependent Options" to better reflect its content.
15264         Rewrite introductory text to remove archaic CPU names.
15265         Update references.
15266
15267 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
15268
15269         * doc/invoke.texi (Code Gen Options): Move section up in file,
15270         before target-specific options.  Update menu and option summary
15271         to reflect the new section ordering.
15272
15273 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
15274
15275         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
15276         (C++ Dialect Options): Add cross-reference to -std option.
15277         * doc/standards.texi (C++ Language): Document C++14 support.
15278
15279 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15280
15281         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
15282         for pack/unpack functions for __ibm128.
15283         (PACK_IF): Likewise.
15284         (UNPACK_IF): Likewise.
15285
15286         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
15287         support for __ibm128 pack/unpack functions.
15288         (rs6000_invalid_builtin): Likewise.
15289         (rs6000_init_builtins): Likewise.
15290         (rs6000_opt_masks): Likewise.
15291
15292         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
15293         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
15294         functions
15295         (RS6000_BTM_COMMON): Likewise.
15296
15297         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
15298         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
15299         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
15300         128-bit floating point.  Add support for the double values to be
15301         in Altivec registers for TF/IF packing and unpacking, but restrict
15302         TD packing sub-fields to be FPR registers.  Don't allow overlapped
15303         register support for packing.  Allow pack inputs to be memory
15304         locations.  Don't build generator functions for unpack<mode>_dm
15305         and unpack<mode>_nodm.
15306         (unpack<mode>_dm): Likewise.
15307         (unpack<mode>_nodm): Likewise.
15308         (pack<mode>): Likewise.
15309
15310         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
15311         built-in functions to pack/unpack explicit __ibm128 values.
15312         (__builtin_unpack_ibm128): Likewise.
15313
15314         * doc/extend.texi (PowerPC Built-in Functions): Document
15315         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
15316
15317 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
15318
15319         PR c/66208
15320         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
15321         Add new arg loc and pass it down as context.
15322         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
15323         to the location to use for the warning.
15324         (check_function_arguments): New arg loc.  All callers changed.  Pass
15325         it to check_function_nonnull.
15326         * c-common.h (check_function_arguments): Adjust declaration.
15327
15328 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
15329
15330         PR tree-optimization/69156
15331         * gimple.c (validate_type): Removed.
15332         (gimple_builtin_call_types_compatible_p): Use
15333         useless_type_conversion_p instead of validate_type.
15334         * value-prof.c (gimple_stringop_fixed_value): Fold
15335         icall_size to correct type.
15336
15337 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
15338
15339         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
15340         effects.
15341
15342 2016-01-13  Richard Henderson  <rth@redhat.com>
15343
15344         PR tree-opt/68964
15345         * target.def (builtin_tm_load, builtin_tm_store): Remove.
15346         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
15347         (ix86_builtin_tm_store): Remove.
15348         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
15349         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
15350         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
15351         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
15352         * doc/tm.texi: Rebuild.
15353
15354         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
15355         (BUILT_IN_TM_MEMCPY_RTWN): New.
15356         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
15357         fallback from vector to integer helpers.
15358         (build_tm_load): Handle vector types directly, instead of
15359         via target hook.
15360         (build_tm_store): Likewise.
15361         (expand_assign_tm): Prepare for register types not handled by
15362         the above.  Copy them to memory and use memcpy.
15363         * tree.c (tm_define_builtin): New.
15364         (find_tm_vector_type): New.
15365         (build_tm_vector_builtins): New.
15366         (build_common_builtin_nodes): Call it.
15367
15368 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
15369
15370         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
15371         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
15372
15373 2016-01-13  Tom de Vries  <tom@codesourcery.com>
15374
15375         PR tree-optimization/69169
15376         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
15377         handled_struct_type param.
15378         (create_variable_info_for, intra_create_variable_infos): Call
15379         create_variable_info_for_1 with extra arg.
15380
15381 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
15382
15383         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
15384         and "armv8.1-a+crc" entries.
15385
15386 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
15387
15388         PR target/69228
15389         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
15390         Change first operand predicate from register_or_constm1_operand
15391         to register_operand.
15392         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
15393         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
15394         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
15395         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
15396         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
15397         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
15398         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
15399         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
15400         comparison with constm1_rtx from vec_prefetch_gen part.
15401
15402 2016-01-13  Richard Biener  <rguenther@suse.de>
15403
15404         PR tree-optimization/69013
15405         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
15406         Exchange assert for a test.
15407
15408 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15409
15410         PR target/69247
15411         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
15412
15413 2016-01-13  Richard Biener  <rguenther@suse.de>
15414
15415         PR tree-optimization/69242
15416         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
15417         assert with a check.
15418
15419 2016-01-13  Richard Biener  <rguenther@suse.de>
15420
15421         PR tree-optimization/69186
15422         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15423         Properly guard vect_update_misalignment_for_peel call.
15424
15425 2016-01-12  Jeff Law  <law@redhat.com>
15426
15427         PR tree-optimization/pr67755
15428         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
15429         "need_profile_correction".
15430         (thread_block_1): Initialize new field to false by default.  If we
15431         have multiple thread paths through a common joiner to different
15432         final targets, then set new field to true.
15433         (compute_path_counts): Only do count adjustment when it's really
15434         needed.
15435
15436 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
15437
15438         * doc/invoke.texi (Spec Files): Move section down in file, past
15439         all command-line option descriptions.
15440
15441 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15442
15443         PR middle-end/54809
15444         * doc/gty.texi: Remove documentation of mark_hook.
15445         * gengtype.c (struct write_types_data): Remove code to support
15446         mark_hook attribute.
15447         (walk_type): Likewise.
15448         (write_func_for_structure): Likewise.
15449
15450 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
15451
15452         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
15453         Directory Options, and -specs= to Overall Options.
15454         (Overall Options): Adjust similarly.  Reorder to group related
15455         options together.  Make -specs= cross-reference the spec file details.
15456         (Directory Options): Adjust similarly.
15457
15458 2016-01-12  Jeff Law  <law@redhat.com>
15459
15460         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
15461
15462 2016-01-12  Olivier Hainque  <hainque@adacore.com>
15463
15464         * gcc.c (spec_undefvar_allowed): New global.
15465         (process_command): Set to true when running for --version or --help,
15466         alone or together.
15467         (getenv_spec_function): When the variable is not defined, use the
15468         variable name as the variable value if we're allowed not to issue
15469         a fatal error.
15470
15471 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
15472
15473         PR tree-optimization/68911
15474         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
15475         information computed for expression "init + nit * step".
15476
15477 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
15478
15479         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
15480         about name of GCC executable.  Remove deleted node from menu.
15481         (Directory Options) <-B>: Remove cross-reference to deleted node.
15482         (Target Options): Delete section.
15483
15484 2016-01-12  Christian Bruel  <christian.bruel@st.com>
15485
15486         PR target/69180
15487         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
15488         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
15489
15490 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
15491
15492         PR target/69198
15493         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
15494         aligned_mem is properly set for AVX512-VL floating point masked
15495         stores.
15496
15497         PR target/69175
15498         * ifcvt.c (cond_exec_process_if_block): When removing the last
15499         insn from then_bb, remove also any possible barriers that follow it.
15500
15501 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
15502
15503         PR target/68456
15504         PR target/69226
15505         * config/i386/iamcu.h (SIZE_TYPE): New macro.
15506         (PTRDIFF_TYPE): Likewise.
15507         (WCHAR_TYPE): Likewise.
15508         (WCHAR_TYPE_SIZE): Likewise.
15509         (STDINT_LONG32): Likewise.
15510
15511 2016-01-12  Richard Biener  <rguenther@suse.de>
15512
15513         PR tree-optimization/69053
15514         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
15515         convert initial value for cond reductions.
15516
15517 2016-01-12  Richard Biener  <rguenther@suse.de>
15518
15519         PR tree-optimization/69007
15520         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
15521         widen_sum after dot_prod and sad.
15522
15523 2016-01-12  Richard Biener  <rguenther@suse.de>
15524
15525         PR tree-optimization/69168
15526         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
15527         pattern stmt SLP type.
15528         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
15529         end up unused so cope with that case.
15530
15531 2016-01-12  Richard Biener  <rguenther@suse.de>
15532
15533         PR tree-optimization/69157
15534         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
15535         stmts def type only during analyze phase.
15536         (vectorizable_call): Likewise.
15537         (vectorizable_simd_clone_call): Likewise.
15538         (vectorizable_conversion): Likewise.
15539         (vectorizable_assignment): Likewise.
15540         (vectorizable_shift): Likewise.
15541         (vectorizable_operation): Likewise.
15542         (vectorizable_store): Likewise.
15543         (vectorizable_load): Likewise.
15544
15545 2016-01-12  Richard Biener  <rguenther@suse.de>
15546
15547         PR tree-optimization/69174
15548         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
15549         space.
15550         (vectorizable_load): Properly compute the number of loads needed
15551         for permuted strided SLP loads and do not spuriously assign
15552         to SLP_TREE_VEC_STMTS.
15553
15554 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
15555
15556         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
15557         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
15558         (MD_EXEC_PREFIX): Remove.
15559         (MD_STARTFILE_PREFIX) Removee.
15560         (FILE_NAME_ABSOLUTE_P): Remove.
15561         (CPP_SPEC): Do not read macros from sys/version.h.
15562         (LINK_COMMAND_SPEC): Remove.
15563         (LOCAL_INCLUDE_DIR): Remove.
15564         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
15565         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
15566         (POST_LINK_SPEC): Define to invoke stubify after linker
15567         (LIBSTDCXX): Remove define
15568         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
15569         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
15570         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
15571         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
15572         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
15573         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
15574         (i386_djgpp_asm_named_section): Add propotype of new procedure
15575
15576         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
15577         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
15578         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
15579         in config/i386/djgpp.h).
15580         (STANDARD_STARTFILE_PREFIX_2): Define identical to
15581         STANDARD_STARTFILE_PREFIX_1.
15582         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
15583         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
15584         installation errors.
15585         (MAX_OFILE_ALIGNMENT): Define to 128.
15586         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
15587
15588         * config/i386/djgpp.c: New file. Add implementation of
15589         i386_djgpp_asm_named_section.
15590
15591         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
15592
15593         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
15594         Add rule for building djgpp.o.
15595
15596 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15597
15598         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
15599         (rtx_is_swappable_p): Reductions are swappable.
15600         (insn_is_swappable_p): V2DF reductions are swappable.
15601
15602 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
15603
15604         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
15605         reloads for other unsupported memory operands.
15606
15607 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
15608             Jim Wilson  <jim.wilson@linaro.org>
15609
15610         PR target/69194
15611         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
15612         copy_to_mode_reg instead of force_reg.
15613
15614 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
15615
15616         PR target/69225
15617         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
15618         TARGET_80387 is true.
15619
15620 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
15621
15622         PR target/69071
15623         * lra-eliminations.c (move_plus_up): Only move plus up
15624         if subreg of the constant can be simplified into constant
15625         and use the simplified subreg of the constant instead of
15626         the original constant.
15627
15628         * fold-const.c (fold_convertible_p): Don't return true
15629         for conversion of VECTOR_TYPE to same sized integral type.
15630         (fold_convert_loc): Fix up formatting.  Fold conversion of
15631         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
15632         instead of NOP_EXPR.
15633
15634         PR tree-optimization/69214
15635         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
15636         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
15637         Formatting fix.
15638
15639         PR tree-optimization/69207
15640         * tree-vect-slp.c (vect_get_constant_vectors): For
15641         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
15642         fold_convertible_p to vector_type's element type, and always
15643         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
15644
15645 2016-01-11  Richard Biener  <rguenther@suse.de>
15646
15647         PR tree-optimization/69173
15648         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
15649         fixup the cycle if all stmts are in a pattern.
15650
15651 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
15652
15653         PR middle-end/68999
15654         * alias.c (base_alias_check): Move check for addresses with
15655         alignment ANDs before the call for compare_base_decls.
15656         (memrefs_conflict_p): Return -1 for different decls
15657         that went through alignment adjustments.
15658
15659 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15660
15661         PR rtl-optimization/68796
15662         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
15663         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
15664         and QImode comparisons against zero with CC_NZmode.
15665         * config/aarch64/iterators.md (short_mask): New mode_attr.
15666
15667 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
15668
15669         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
15670         (<avx512>_store<mode>_mask): Likewise.
15671
15672 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
15673             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15674
15675         PR rtl-optimization/68841
15676         * ifcvt.c (struct noce_if_info): Add orig_x field.
15677         (bbs_ok_for_cmove_arith): Add to_rename parameter.
15678         Don't record conflicts on to_rename if it's present.
15679         Allow memory destinations in sets.
15680         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
15681         blocks, passing orig_x to the checks.
15682         (noce_process_if_block): Set if_info->orig_x appropriately.
15683
15684 2016-01-11  Tom de Vries  <tom@codesourcery.com>
15685
15686         PR tree-optimization/69069
15687         * tree-parloops.c (create_parallel_loop): Add missing phi args.
15688
15689 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
15690
15691         PR rtl-optimization/68920
15692         * config/i386/i386.c (ix86_option_override_internal): Restrict number
15693         of conditional moves for  RTL if-conversion to 1 for
15694         TARGET_ONE_IF_CONV_INSN.
15695         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
15696         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
15697         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
15698         parameter to restirct number of conditional moves for
15699         RTL if-conversion.
15700         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
15701         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
15702         conditionl moves.
15703
15704 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
15705
15706         PR bootstrap/69123
15707         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
15708         onepart vars.  Fix typo in comment.  Fix reversed condition in
15709         unshare test.
15710         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
15711
15712         PR bootstrap/69123
15713         * var-tracking.c (dump_onepart_variable_differences): New.
15714         (dataflow_set_different): If a detailed dump is requested,
15715         delay early returns and dump differences between onepart
15716         variables present before and after, and added variables.
15717
15718 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
15719
15720         PR target/69010
15721         * expr.c (expand_expr_real_1): For boolean vector constants
15722         with a scalar mode use const_scalar_mask_from_tree.
15723         (const_scalar_mask_from_tree): New.
15724         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
15725         assigned to a mask type to handle constants.
15726
15727 2016-01-11  Martin Jambor  <mjambor@suse.cz>
15728
15729         PR ipa/69044
15730         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
15731         useless parameters if we cannot change function signature.
15732
15733 2016-01-11  Martin Jambor  <mjambor@suse.cz>
15734
15735         PR ipa/66616
15736         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
15737         flag.
15738
15739 2016-01-11  Tom de Vries  <tom@codesourcery.com>
15740
15741         PR tree-optimization/69109
15742         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
15743         latch with phi.
15744
15745 2016-01-11  Tom de Vries  <tom@codesourcery.com>
15746
15747         PR tree-optimization/69108
15748         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
15749         res is not used in a phi.
15750
15751 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
15752
15753         PR 67425
15754         * common.opt (frandom-seed): Fix parameter name.
15755         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
15756
15757 2016-01-11  Tom de Vries  <tom@codesourcery.com>
15758
15759         PR tree-optimization/69058
15760         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
15761         not supported.
15762
15763 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
15764
15765         * config/arc/arc.opt (mdiv-rem): Add period to the end.
15766         (mcode-density): Likewise.
15767
15768 2016-01-10  Tom de Vries  <tom@codesourcery.com>
15769
15770         PR tree-optimization/69062
15771         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
15772         (parallelize_loops): Don't paralelize loop that has phi with address
15773         arg.
15774
15775 2016-01-10  Tom de Vries  <tom@codesourcery.com>
15776
15777         PR tree-optimization/69039
15778         * tree-parloops.c (try_create_reduction_list): Only allow single exit
15779         phi for reduction.
15780
15781 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
15782
15783         PR middle-end/68743
15784         * match.pd: Require target has function_c99_misc before doing
15785         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
15786
15787 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
15788
15789         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
15790         use GMPINC.
15791         * configure: Regenerate.
15792
15793 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
15794
15795         PR middle-end/50865
15796         PR tree-optimization/69097
15797         * fold-const.h (expr_not_equal_to): New prototype.
15798         * fold-const.c: Include stringpool.h and tree-ssanames.h.
15799         (expr_not_equal_to): New function.
15800         * match.pd (X % -Y is the same as X % Y): Don't optimize
15801         unless X is known not to be equal to minimum or Y is known
15802         not to be equal to -1.
15803         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
15804         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
15805         (simplify_stmt_using_ranges): Adjust caller.
15806         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
15807         substitute_and_fold.
15808
15809 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
15810
15811         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
15812         w/o DECL_NAME.
15813
15814 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
15815
15816         PR tree-optimization/69167
15817         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
15818         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
15819         ops[0] comparison.
15820         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
15821
15822 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
15823             Richard Biener  <rguenther@suse.de>
15824
15825         PR tree-optimization/68707
15826         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
15827         instances that can be handled via vect_load_lanes.
15828
15829 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
15830
15831         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
15832         if we can't determine address equivalence.
15833         * alias.c (compare_base_decl): Update for changed return value of
15834         symtab_node::equal_address_to.
15835
15836 2016-01-08  Jason Merrill  <jason@redhat.com>
15837
15838         PR c++/68983
15839         PR c++/67557
15840         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
15841         * expr.c (store_field): Not here.
15842         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
15843         call with TREE_ADDRESSABLE type.
15844         * tree-cfg.c (verify_gimple_call): Adjust.
15845
15846 2016-01-08  Olivier Hainque  <hainque@adacore.com>
15847
15848         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
15849         libc_internal.
15850
15851 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
15852
15853         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
15854         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
15855         (reduc_smin_v2sf): Rename to...
15856         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
15857         (reduc_splus_v2sf): Rename to...
15858         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
15859
15860 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
15861
15862         PR tree-optimization/69162
15863         * gimplify.c (gimplify_va_arg_expr): Encode original type of
15864         valist argument in another argument.
15865         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
15866         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
15867         to determine the va_list type, build a MEM_REF instead of
15868         build_fold_indirect_ref.
15869
15870         PR tree-optimization/69172
15871         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
15872         gimple_build.
15873
15874 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15875
15876         PR tree-optimization/67781
15877         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
15878         and cmpnop in two steps: first the ones not accessed in original
15879         gimple expression in a endian independent way and then the ones not
15880         accessed in the final result in an endian-specific way.
15881
15882 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
15883
15884         PR tree-optimization/69083
15885         * tree-vect-slp.c (vect_get_constant_vectors): For
15886         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
15887         element type.  If op is fold_convertible_p to vector_type's element
15888         type, use NOP_EXPR instead of VCE.
15889
15890 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
15891
15892         PR rtl-optimization/67778
15893         PR rtl-optimization/68634
15894         PR rtl-optimization/68909
15895         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
15896         block from the stack until done with it.  Remove a superfluous
15897         bitmap set.  Remove a superfluous bitmap test.
15898
15899 2016-01-07  Martin Sebor  <msebor@redhat.com>
15900
15901         PR c/68966
15902         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
15903         constraint on the type of arguments.
15904
15905 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
15906
15907         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
15908         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
15909         unaligned_access on the gcc_options set.
15910         * config/arm/arm.c (arm_option_override_internal): Use
15911         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
15912
15913 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
15914
15915         PR target/69140
15916         * config/i386/i386.c (ix86_frame_pointer_required): Enable
15917         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
15918
15919 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
15920
15921         Revert
15922         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
15923
15924         PR target/69140
15925         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
15926         depending on frame_pointer_needed before remaining integer and SSE
15927         registers are saved.
15928
15929 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
15930
15931         PR 1078
15932         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
15933
15934 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
15935
15936         PR target/69171
15937         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
15938         Use the "xBm" constraint.
15939         (float<sseintvecmodelower><mode>2<mask_name><round_name):
15940         Likewise.
15941         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
15942         (sse_cvtsi2ssq<round_name>): Likewise.
15943         (sse_cvtss2si<round_name>): Likewise.
15944         (sse_cvtss2siq<round_name>): Likewise.
15945         (sse2_cvtsi2sdq<round_name>): Likewise.
15946         (sse2_cvtsd2si<round_name>): Likewise.
15947         (sse2_cvtsd2siq<round_name>): Likewise.
15948         * config/i386/subst.md (round_nimm_scalar_predicate): New
15949         predicate.
15950
15951 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
15952
15953         PR middle-end/67639
15954         * varasm.c (make_decl_rtl): Mark invalid register vars as
15955         DECL_EXTERNAL.
15956
15957         PR rtl-optimization/66206
15958         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
15959         All callers changed.
15960
15961 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
15962
15963         PR tree-optimization/69141
15964         * tree-ssa-pre.c: Include langhooks.h.
15965         (eliminate_dom_walker::before_dom_children): Use
15966         lang_hooks.decl_printable_name instead of
15967         cgraph_node::get ()->name ().
15968
15969         PR middle-end/68960
15970         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
15971         it and DECL_ALIGN too.
15972
15973 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
15974
15975         * config/mips/mips-ftypes.def: Sort to lexicographical order.
15976
15977 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
15978
15979         PR target/69140
15980         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
15981         depending on frame_pointer_needed before remaining integer and SSE
15982         registers are saved.
15983
15984 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15985
15986         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
15987         mode iterator with VSX_M2.
15988         (*p9_vecstore_<mode>): Likewise.
15989         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
15990         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
15991         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
15992         (define_split for VSX_LE128 stores): Likewise.
15993         (define_peephole2 for TImode LE swaps): Likewise.
15994         (define_split for VSX_LE128 post-reload stores): Likewise.
15995
15996 2016-01-06  Marek Polacek  <polacek@redhat.com>
15997
15998         PR sanitizer/69099
15999         * convert.c (convert_to_integer_1): Adjust call to
16000         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
16001         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
16002         EXPR instead of ARG.
16003         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
16004
16005 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
16006
16007         PR 1078
16008         * doc/extend.texi (RL78 Variable Attributes): New section.
16009
16010 2016-01-05  Marek Polacek  <polacek@redhat.com>
16011
16012         PR c/69104
16013         * builtins.c (get_memmodel): Use expansion point location rather than
16014         the input location.  Call warning_at rather than warning.
16015         (expand_builtin_atomic_compare_exchange): Likewise.
16016         (expand_builtin_atomic_load): Likewise.
16017         (expand_builtin_atomic_store): Likewise.
16018         (expand_builtin_atomic_clear): Likewise.
16019
16020 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
16021
16022         PR target/68991
16023         * config/i386/i386.c (ix86_expand_vector_logical_operator):
16024         Replace nonimmediate_operand with vector_operand.
16025         * config/i386/predicates.md (vector_operand): New predicate.
16026         (general_vector_operand): Replace nonimmediate_operand with
16027         vector_operand.
16028         * config/i386/sse.md: Replace nonimmediate_operand with
16029         vector_operand and m constraint with Bm constraint on SSE
16030         patterns with 16-byte memory operand.
16031         * config/i386/subst.md (round_nimm_predicate): Replace
16032         nonimmediate_operand with vector_operand.
16033         (round_saeonly_nimm_predicate): Likewise.
16034         (round_saeonly_nimm_scalar_predicate): New.
16035
16036 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
16037
16038         PR target/68991
16039         * config/i386/constraints.md (Bm): New constraint.
16040         * config/i386/predicates.md (vector_memory_operand): New
16041         predicate.
16042         * config/i386/sse.md: Replace xm with xBm in plusminus and
16043         any_logic patterns.
16044
16045 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
16046
16047         PR 1078
16048         * doc/extend.texi (V850 Function Attributes): New section.
16049         (V850 Variable Attributes): New section.
16050
16051 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
16052
16053         PR 1078
16054         * doc/extend.texi (MicroBlaze Function Attributes): Document
16055         interrupt_handler and fast_interrupt attributes.
16056
16057 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
16058
16059         PR other/60465
16060         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
16061         for local symbolic operands.
16062         * config/ia64/predicates.md (local_symbolic_operand64): New
16063         predicate.
16064
16065 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16066
16067         PR rtl-optimization/68651
16068         * combine.c (combine_simplify_rtx): Canonicalize x + x into
16069         x << 1.
16070
16071 2016-01-05  Nathan Sidwell  <nathan@acm.org>
16072
16073         * alias.c (compare_base_decls): Use symtab_node::get.
16074
16075 2016-01-05  Nick Clifton  <nickc@redhat.com>
16076
16077         PR target/68770
16078         * ira-costs.c (copy_cost): Initialise the t_icode field of the
16079         secondary_reload_info structure.
16080
16081         PR target/66655
16082         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
16083         decls if weak support is available.
16084
16085 2016-01-04  Martin Sebor  <msebor@redhat.com>
16086
16087         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
16088
16089 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
16090
16091         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
16092         OPTION_MASK_P9_DFORM.
16093
16094         * config/rs6000/constraints.md (wo constraint): New constraint for
16095         ISA 3.0 (power9).
16096
16097         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
16098         for wo constraint.
16099         (rs6000_init_hard_regno_mode_ok): Likewise.
16100
16101         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
16102         wo constraint.
16103
16104         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
16105         expanders not to have constraints.  Add support for ISA 3.0 xxperm
16106         instruction.  Add support for fusing xxlor with xxperm.
16107         (altivec_vperm_<mode>_internal): Likewise.
16108         (altivec_vperm_v8hiv16qi): Likewise.
16109         (altivec_vperm_<mode>v16q): Likewise.
16110         (altivec_vperm_<mode>_uns): Likewise.
16111         (vperm_v8hiv4si): Likewise.
16112         (vperm_v16qiv8hi): Likewise.
16113
16114         * doc/md.texi (RS/6000 constraints): Document wo constraint.
16115
16116 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
16117
16118         Update copyright years.
16119
16120         * gcc.c (process_command): Update copyright notice dates.
16121         * gcov-dump.c (print_version): Ditto.
16122         * gcov.c (print_version): Ditto.
16123         * gcov-tool.c (print_version): Ditto.
16124         * gengtype.c (create_file): Ditto.
16125         * doc/cpp.texi: Bump @copying's copyright year.
16126         * doc/cppinternals.texi: Ditto.
16127         * doc/gcc.texi: Ditto.
16128         * doc/gccint.texi: Ditto.
16129         * doc/gcov.texi: Ditto.
16130         * doc/install.texi: Ditto.
16131         * doc/invoke.texi: Ditto.
16132
16133 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16134
16135         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
16136         modes larger than TImode as TImode if NEON is not enabled.
16137
16138 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16139
16140         PR target/69100
16141         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
16142         mode for %f0-%f31 only if TARGET_FPU.
16143
16144 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16145
16146         PR target/69072
16147         * config/sparc/sparc.c (scan_record_type): Take into account subfields
16148         to compute the PACKED_P predicate.
16149         (function_arg_record_value): Minor tweaks.
16150
16151 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16152
16153         * doc/install.texi (--with-multilib-list): Describe the meaning of the
16154         option for arm*-*-* targets.
16155
16156 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
16157
16158         * doc/extend.texi (Common Function Attributes): Move docs for
16159         MSP430-specific attributes to....
16160         (MSP430 Function Attributes): ...here.  Delete the redundant
16161         entries and copy-edit the remaining text.
16162         (MSP430 Variable Attributes): Use uniform format for index
16163         entries and add a cross-reference to the corresponding function
16164         attribute docs.
16165
16166 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
16167
16168         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
16169         -finite-math typo.
16170         (x86 Options): Likewise.
16171
16172 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
16173
16174         PR 1078
16175
16176         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
16177         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
16178         to corresponding attribute.
16179
16180 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
16181
16182         * doc/extend.texi (Common Function Attributes) <noplt>: Move
16183         to correct alphabetization of table.  Copy-edit and correct
16184         markup.
16185         <stack_protect>: Likewise.
16186         <target_clones>: Likewise.
16187         <simd>: Likewise.
16188         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
16189         Correct punctuation.
16190         (Code Gen Options) <-fno-plt>: Copy-edit.
16191
16192 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16193
16194         PR target/68917
16195         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
16196         SI values.  Explicitly convert SI to DI and vice-versa.
16197
16198 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
16199
16200         PR tree-optimization/69070
16201         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
16202         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
16203
16204         PR sanitizer/69055
16205         * ubsan.c (ubsan_instrument_float_cast): Call
16206         initialize_sanitizer_builtins.
16207
16208         PR target/69015
16209         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
16210 \f
16211 Copyright (C) 2016 Free Software Foundation, Inc.
16212
16213 Copying and distribution of this file, with or without modification,
16214 are permitted in any medium without royalty provided the copyright
16215 notice and this notice are preserved.