PR middle-end/71581
[official-gcc.git] / gcc / ChangeLog
blob1f47a9d9bef9e60819963aa6cc23420004656ce6
1 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
3         PR middle-end/71581
4         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
5         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
6         for conversion of scalar user var to complex type and use the
7         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
8         punt.
10         PR rtl-optimization/71591
11         * toplev.c (toplev::run_self_tests): If no_backend, complain and
12         don't run any tests.
14 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
16         PR target/71571
17         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
18         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
19         space for PIC with non-v32 and the common non-PIC "jump".
21 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
23         PR target/71559
24         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
25         returned values and add UN*/LTGT/*ORDERED cases with values matching
26         D operand modifier on vcmp for AVX.
28 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
30         * config/aarch64/aarch64.opt
31         (mpc-relative-literal-loads): Rename internal option name.
32         * config/aarch64/aarch64.c
33         (aarch64_nopcrelative_literal_loads): Rename to
34         aarch64_pcrelative_literal_loads.
35         (aarch64_expand_mov_immediate): Likewise.
36         (aarch64_secondary_reload): Likewise.
37         (aarch64_can_use_per_function_literal_pools_p): Likewise.
38         (aarch64_override_options_after_change_1): Rename and simplify logic.
39         (aarch64_classify_symbol): Merge large model checks into switch,
40         remove pc-relative load check.
42 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
44         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
45         costs relative to the cost of a register move.
47 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
49         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
50         (vcvt_n_f64_u64): Likewise.
51         (vcvt_n_s64_f64): Likewise.
52         (vcvt_n_u64_f64): Likewise.
53         (vcvt_f64_s64): Likewise.
54         (vrecpe_f64): Likewise.
55         (vcvt_f64_u64): Likewise.
56         (vrecps_f64): Likewise.
58 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
60         * config/aarch64/aarch64.md
61         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
62         iterators.
63         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
64         attributes.
65         * config/aarch64/aarch64-builtins.c
66         (aarch64_types_binop_uss_qualifiers): Delete.
67         (TYPES_BINOP_USS): Likewise.
68         (aarch64_types_binop_sus_qualifiers): Likewise.
69         (TYPES_BINOP_SUS): Likewise.
70         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
71         (TYPES_FCVTIMM_SUS): Likewise.
72         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
73         rather than BINOP.
74         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
75         (fcvtzs): Use SHIFTIMM rather than BINOP.
76         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
78 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
80         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
81         costs relative to the cost of a register move.
83 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
85         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
86         Allow scalar/single vector modes to be tieable.
88 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
90         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
92 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
94         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
95         "alignement".
96         * tree.h (TYPE_ALIGN): Likewise.
98 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
100         PR target/71103
101         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
103 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
105         * config/avr/avr.c (avr_print_operand): Fix "format not a string
106         literal" build warnings.
107         (avr_print_operand_address): Dito.
109 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
111         PR target/71375
112         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
113         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
115 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
117         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
119 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
121         PR bootstrap/71435
122         * reload1.c (reload): Pass 0 to finish_spills when called because
123         update_eliminables_and_spill returns true and remove did_spill.
124         (finish_spills): Adjust comment and document GLOBAL parameter.
126 2016-06-17  DJ Delorie  <dj@redhat.com>
128         PR target/71338
129         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
130         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
131         (umulqihi3_virt): Likewise.
132         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
133         (umulqihi3_real): Likewise.
135 2016-06-17  Martin Liska  <mliska@suse.cz>
137         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
139 2016-06-17  Martin Liska  <mliska@suse.cz>
141         * predict.def: PRED_LOOP_EXIT from 92 to 85.
143 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
145         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
146         __FAST_MATH__.
147         (vaddq_f32): Likewise.
148         (vmul_f32): Likewise.
149         (vmulq_f32): Likewise.
150         (vsub_f32): Likewise.
151         (vsubq_f32): Likewise.
153 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
155         PR tree-optimization/71347
156         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
157         cost for all uses in group.
159 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
161         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
162         insert gimple seq if it's not empty.
164 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
166         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
167         member OFFSET.
168         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
169         rather than OFFSET.
170         (comp_dr_with_seg_len_pair): Ditto.
171         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
172         struct dr_with_seg_len_pair against DR_OFFSET.
173         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
174         DR_OFFSET directly.
176 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
178         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
180 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
182         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
183         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
184         (pa_output_millicode_call): Likewise.
185         (pa_output_call): Likewise.
186         (pa_output_indirect_call): Likewise.
187         (pa_asm_output_mi_thunk): Likewise.
189 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
191         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
193 2016-06-16  Martin Liska  <mliska@suse.cz>
195         * predict.c (combine_predictions_for_insn): When we find a first
196         match predictor, we should consider just predictors with
197         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
198         DS theory predictor.
199         (combine_predictions_for_bb): Likewise.
201 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
203         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
204         with base of reference to struct.
206 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
208         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
210 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
212         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
213         progmem_swtable_section.
214         (progmem_swtable_section): Remove.
215         (avr_asm_function_rodata_section): Remove.
216         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
217         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
219 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
221         * config/i386/driver-i386.c (host_detect_local_cpu): Set
222         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
223         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
224         signature_CENTAUR_ebx.
225         * config/i386/i386.c (ix86_option_override_internal): Add
226         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
227         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
228         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
230 2016-06-16  Martin Liska  <mliska@suse.cz>
232         * predict.def: Add fortran loop preheader predictor.
233         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
234         fold IFN_BUILTIN_EXPECT with a known constant argument.
236 2016-06-16  Martin Liska  <mliska@suse.cz>
238         * predict.def: Add 'Fortran' to display text of all
239         PRED_FORTRAN_* predictors.
241 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
243         PR target/71242
244         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
245         [IA64_BUILTIN_NANSQ]: Ditto.
246         (ia64_fold_builtin): New function.
247         (TARGET_FOLD_BUILTIN): New define.
248         (ia64_init_builtins) Declare const_string_type node.
249         Add __builtin_nanq and __builtin_nansq builtin functions.
250         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
252 2016-06-16  Nick Clifton  <nickc@redhat.com>
254         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
255         MSP430_HWMULT_ prefix to enum values.
256         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
257         * config/msp430/msp430.c: Update use of enum values.
258         * config/msp430/msp430.md: Likewise.
259         * config/msp430/msp430.opt: Likewise.
261 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
263         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
264         of comparsions in the last iteration.
266 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
267             Joern Rennecke  <joern.rennecke@embecosm.com>
269         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
270         addresses.
271         (arc_needs_pcl_p): Add GOTOFFPC.
272         (arc_legitimate_pic_addr_p): Likewise.
273         (arc_output_pic_addr_const): Likewise.
274         (arc_legitimize_pic_address): Generate a pc-relative address using
275         GOTOFFPC.
276         (arc_output_libcall): Use @pcl syntax.
277         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
278         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
279         (*movsi_insn): Use @pcl syntax.
280         (doloop_begin_i): Likewise.
282 2016-06-16  Martin Liska  <mliska@suse.cz>
284         * predict.def: Define a new predictor.
286 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
288         * config/arc/arc.opt (mtp-regno): Update text.
290 2016-06-16  Renlin Li  <renlin.li@arm.com>
292         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
294 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
296         PR target/71554
297         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
298         (setcc + and peephole2): Likewise.
300         PR rtl-optimization/71532
301         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
302         memory slots.
304 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
306         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
307         DImode constants with XXSPLTIB in vector registers.
308         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
309         vsx_extract_<mode>_internal{1,2} into a single insn that handles
310         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
311         extraction of the element at the top of the register as a scalar
312         value.
313         (vsx_extract_<mode>_internal1): Likewise.
314         (vsx_extract_<mode>_internal2): Likewise.
315         * config/rs6000/constraints.md (wi constraint): Remove a comment
316         about DImode not being allowed in Altivec registers.
317         (wB constraint): New constraint for constants that can be
318         generated in Altivec registers with VSPLTISW/VUPKHSW.
319         * config/rs6000/predicates.md (xxspltib_constant_split): Update
320         comments.
321         (xxspltib_constant_nosplit): Likewise.
322         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
323         support for -mupper-regs-di to enable DImode to go into Altivec
324         registers.
325         (POWERPC_MASKS): Likewise.
326         (power7 cpu): Likewise.
327         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
328         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
329         for DImode being allowed in Altivec registers.  Update wi/wj
330         constraints.  Set scalar_in_vmx_p flag.
331         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
332         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
333         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
334         (rs6000_opt_masks): Add -mupper-regs-di.
335         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
336         direct move to use wi and not wj.
337         (lfiwzx): Likewise.
338         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
339         alternative.
340         (floatunssi<mode>2_lfiwzx_mem): Likewise.
341         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
342         any VSX register, instead of just Altivec registers, to allow
343         either operand to be an Altivec register or both.
344         (fixuns_trunc<mode>di2_fctiduz): Likewise.
345         (movdi_internal32): Add support for -mupper-regs-di.  Add support
346         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
347         the alternatives and attributes to be lined up to be easier to
348         read.
349         (movdi_internal64): Likewise.
350         (64-bit DImode splitters): Change predicates to only split loading
351         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
352         load constants in ISA 3.0 or ISA 2.07 respectively.
353         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
354         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
355         mention -mcpu=power9 sets these options.
356         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
357         wB constraint.
359 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
361         PR target/67353
362         * config/avr/avr.c (avr_set_current_function): Warn misspelled
363         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
364         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
365         by default to warn misspelled interrupt/ signal handler.
366         * doc/invoke.texi (AVR Options): Document it. Update description
367         for -nodevicelib option.
369 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
371         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
372         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
373         (aarch64_<sur>shll2_n<mode>): Likewise.
375 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
377         PR middle-end/71529
378         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
379         DECL_CONTEXT for copied arguments.
381 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
383         PR tree-optimization/71483
384         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
385         for slp
387 2016-06-15  Martin Liska  <mliska@suse.cz>
389         * predict.c (tree_predict_by_opcode): Call predict_edge_def
390         instead of predict_edge w/o a probability.
392 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
394         PR tree-optimization/71439
395         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
396         live PHIs.
398 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
400         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
401         register subregs in SET_SRC.
403 2016-06-15  Richard Biener  <rguenther@suse.de>
405         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
406         store restrictions.
408 2016-06-15  Richard Biener  <rguenther@suse.de>
410         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
411         not consider dependences between accesses that belong to the
412         same group.
413         (vect_analyze_data_ref_dependences): Do not analyze read-read
414         or self-dependences.
416 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
418         * spellcheck-tree.c: Include spellcheck-tree.h rather than
419         spellcheck.h.
420         (find_closest_identifier): Reimplement in terms of
421         best_match<tree,tree>.
422         * spellcheck-tree.h: New file.
423         * spellcheck.c (struct edit_distance_traits<const char *>): New
424         struct.
425         (find_closest_string): Reimplement in terms of
426         best_match<const char *, const char *>.
427         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
428         overload to spellcheck-tree.h.
429         (find_closest_identifier): Likewise.
430         (struct edit_distance_traits<T>): New template.
431         (class best_match): New class.
433 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
435         * selftest-run-tests.c (selftest::run_tests): Call
436         selftest::spellcheck_tree_c_tests.
437         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
438         * spellcheck-tree.c: Include selftest.h and stringpool.h.
439         (selftest::test_find_closest_identifier): New function.
440         (selftest::spellcheck_tree_c_tests): New function.
441         * spellcheck.c (selftest::test_find_closest_string): Verify that
442         the order of the vec does not affect the results for this case.
443         (selftest::test_data): New array.
444         (selftest::test_metric_conditions): New function.
445         (selftest::spellcheck_c_tests): Add a test of case-comparison.
446         Call selftest::test_metric_conditions.
448 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
450         * config/rs6000/rs6000-builtin.def (commentary): Typo.
451         (BU_P9_MISC_1): Likewise.
452         (BU_P9_64BIT_MISC_0): Likewise.
453         (BU_P9_MISC_0): Likewise.
455 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
457         * gcc-rich-location.c
458         (gcc_rich_location::add_fixit_misspelled_id): New method.
459         * gcc-rich-location.h
460         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
462 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
464         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
465         FreeBSD 11 and above.
467 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
469         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
471 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
473         * expmed.h: Close parenthesis in "at your option" in copyright
474         boilerplate.
475         * lower-subreg.h: Likewise.
477 2016-06-14  Richard Biener  <rguenther@suse.de>
479         PR middle-end/71526
480         * genmatch.c (expr::gen_transform): Use in_type for comparisons
481         if available.
483 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
485         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
486         New function.
487         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
488         mask+shift version.
489         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
490         New prototype.
491         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
492         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
494 2016-06-14  Richard Biener  <rguenther@suse.de>
496         PR tree-optimization/71522
497         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
498         copying into float copying.
500 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
502         PR tree-optimization/71520
503         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
504         (replace_block_by): Move user labels from bb1 to bb2.
506 2016-06-14  Richard Biener  <rguenther@suse.de>
508         PR middle-end/71310
509         PR bootstrap/71510
510         * expr.h (get_bit_range): Declare.
511         * expr.c (get_bit_range): Export.
512         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
513         word_mode again to constrain the bitfield access.
515 2016-06-14  Richard Biener  <rguenther@suse.de>
517         PR tree-optimization/71521
518         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
519         division int_const_binop against zero divisor.
521 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
523         * config/i386/i386.md (signbittf2): New expander.
524         * config/i386/sse.md (ptesttf2): New insn pattern.
526 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
528         PR bootstrap/71481
529         * input.c (selftest::test_reading_source_line): Avoid reading from
530         __FILE__ by creating a tempfile with known content and reading
531         from that instead.
533 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
535         * pretty-print.c (assert_pp_format_colored): Skip the test if
536         GCC_COLORS is set.
537         (test_pp_format): Remove comment about GCC_COLORS.
539 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
541         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
542         * pretty-print.c (assert_pp_format_va): Add location param and use
543         it with ASSERT_STREQ_AT.
544         (assert_pp_format): Add location param and pass it to
545         assert_pp_format_va.
546         (assert_pp_format_colored): Likewise.
547         (ASSERT_PP_FORMAT_1): New.
548         (ASSERT_PP_FORMAT_2): New.
549         (ASSERT_PP_FORMAT_3): New.
550         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
551         explicitly, or implicitly via the above macros.
552         * selftest.c (selftest::pass): Use a selftest::location rather
553         than file and line.
554         (selftest::fail): Likewise.  Print the function name.
555         (selftest::fail_formatted): Likewise.
556         (selftest::assert_streq): Use a selftest::location rather than
557         file and line.
558         * selftest.h (selftest::location): New struct.
559         (SELFTEST_LOCATION): New macro.
560         (selftest::pass): Accept a const location & rather than file
561         and line.
562         (selftest::fail): Likewise.
563         (selftest::fail_formatted): Likewise.
564         (selftest::assert_streq): Likewise.
565         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
566         (ASSERT_FALSE): Likewise.
567         (ASSERT_EQ): Likewise.
568         (ASSERT_NE): Likewise.
569         (ASSERT_STREQ): Likewise.
570         (ASSERT_PRED1): Likewise.
571         (ASSERT_STREQ_AT): New macro.
573 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
575         * selftest.c (selftest::fail_formatted): New function.
576         (selftest::assert_streq): New function.
577         * selftest.h (selftests::fail_formatted): New decl.
578         (selftest::assert_streq): New decl.
579         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
581 2016-06-13  Jeff Law  <law@redhat.com>
583         PR tree-optimization/71403
584         * tree-ssa-threadbackward.c
585         (convert_and_register_jump_thread_path): No longer accept reference
586         to path.  Do not pop items off the path anymore.
587         (fsm_find_control_statement_thread_paths): Do not allow threading
588         to a deeper loop nest.  Pop the last item off the path here rather
589         than in convert_and_register_jump_thread_path.
591 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
592             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
594         [AArch64] Emit division using the Newton series
596         * config/aarch64/aarch64-protos.h
597         (cpu_approx_modes): Add new member "division".
598         (aarch64_emit_approx_div): Declare new function.
599         * config/aarch64/aarch64.c
600         (generic_approx_modes): New member "division".
601         (exynosm1_approx_modes): Likewise.
602         (xgene1_approx_modes): Likewise.
603         (aarch64_emit_approx_div): Define new function.
604         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
605         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
606         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
607         * doc/invoke.texi (-mlow-precision-div): Describe new option.
609 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
610             Wilco Dijkstra  <wilco.dijkstra@arm.com>
612         [AArch64] Emit square root using the Newton series
614         * config/aarch64/aarch64-protos.h
615         (aarch64_emit_approx_rsqrt): Replace with new function
616         "aarch64_emit_approx_sqrt".
617         (cpu_approx_modes): New member "sqrt".
618         * config/aarch64/aarch64.c
619         (generic_approx_modes): New member "sqrt".
620         (exynosm1_approx_modes): Likewise.
621         (xgene1_approx_modes): Likewise.
622         (aarch64_emit_approx_rsqrt): Replace with new function
623         "aarch64_emit_approx_sqrt".
624         (aarch64_override_options_after_change_1): Handle new option.
625         * config/aarch64/aarch64-simd.md
626         (rsqrt<mode>2): Use new function instead.
627         (sqrt<mode>2): New expansion and insn definitions.
628         * config/aarch64/aarch64.md: Likewise.
629         * config/aarch64/aarch64.opt
630         (mlow-precision-sqrt): Add new option description.
631         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
633 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
635         [AArch64] Add more choices for the reciprocal square root approximation
637         Allow a target to prefer such operation depending on the operation mode.
639         * config/aarch64/aarch64-protos.h
640         (AARCH64_APPROX_MODE): New macro.
641         (AARCH64_APPROX_{NONE,ALL}): Likewise.
642         (cpu_approx_modes): New structure.
643         (tune_params): New member "approx_modes".
644         * config/aarch64/aarch64-tuning-flags.def
645         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
646         * config/aarch64/aarch64.c
647         (generic_approx_modes): New core "cpu_approx_modes" structure.
648         (exynosm1_approx_modes): Likewise.
649         (xgene1_approx_modes): Likewise.
650         (generic_tunings): New member "approx_modes".
651         (cortexa35_tunings): Likewise.
652         (cortexa53_tunings): Likewise.
653         (cortexa57_tunings): Likewise.
654         (cortexa72_tunings): Likewise.
655         (exynosm1_tunings): Likewise.
656         (thunderx_tunings): Likewise.
657         (xgene1_tunings): Likewise.
658         (use_rsqrt_p): New argument for the mode and use new member from
659         "tune_params".
660         (aarch64_builtin_reciprocal): Devise mode from builtin.
661         (aarch64_optab_supported_p): New argument for the mode.
662         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
664 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
666         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
667         RS6000_BTM_MODULO flag into the set of flags that are considered
668         to be part of the common configuration.
670 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
672         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
673         difference unsigned.
674         (vec_absdb): New macro for vector absolute difference unsigned
675         byte.
676         (vec_absdh): New macro for vector absolute difference unsigned
677         half-word.
678         (vec_absdw): New macro for vector absolute difference unsigned word.
679         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
680         (vadu<mode>3): New insn.
681         (*p9_vadu<mode>3): New insn.
682         * config/rs6000/rs6000-builtin.def (vadub): New built-in
683         definition.
684         (vaduh): New built-in definition.
685         (vaduw): New built-in definition.
686         (vadu): New overloaded built-in definition.
687         (vadub): New overloaded built-in definition.
688         (vaduh): New overloaded built-in definition.
689         (vaduw): New overloaded built-in definition.
690         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
691         overloaded vector absolute difference unsigned functions.
692         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
693         the ISA 3.0 vector absolute difference unsigned built-in functions.
695 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
697         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
698         update shared_lookup_references only once after changing operands.
700 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
702         PR middle-end/71373
703         * tree-nested.c (convert_nonlocal_omp_clauses)
704         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
706         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
707         * tree.def (CASE_LABEL_EXPR): Likewise.
709 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
711         PR bootstrap/71481
712         * input.c (test_builtins): Fix an assertion.
714 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
716         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
717         (paritysi2): Ditto.
718         (isinfxf2): Ditto.
719         (isinf<mode>2): Ditto.
721 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
723         * ggc-tests.c (test_finalization): Only test need_finalization_p
724         for GCC_VERSION >= 4003.
726 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
728         * config/s390/vecintrin.h: Fix file description in comment.
730 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
732         * config/s390/s390-builtin-types.def: Change builtin type naming
733         scheme to match builtin-types.def.
735 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
737         * fold-const.c (optimize_minmax_comparison): Remove.
738         (fold_comparison): Remove call to the above.
739         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
740         New transformations.
742 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
744         PR tree-optimization/71416
745         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
746         multiple entries
748 2016-06-13  Martin Liska  <mliska@suse.cz>
750         * predict.c (enum predictor_reason): Prefix enum with REASON_.
751         (combine_predictions_for_insn): Likewise.
752         (prune_predictions_for_bb): Likewise.
753         (combine_predictions_for_bb): Likewise.
755 2016-06-13  Richard Biener  <rguenther@suse.de>
757         PR tree-optimization/71505
758         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
759         assert match comment.
761 2016-06-13  Marek Polacek  <polacek@redhat.com>
763         PR middle-end/71476
764         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
765         gimplify_switch_expr.
766         (warn_switch_unreachable_r): New function.
768 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
770         PR target/71379
771         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
772         one.
774 2016-06-13  Richard Biener  <rguenther@suse.de>
776         PR middle-end/64516
777         * fold-const.c (fold_unary_loc): Preserve alignment when
778         folding a VIEW_CONVERT_EXPR into a MEM_REF.
780 2016-06-13  Martin Liska  <mliska@suse.cz>
782         PR sanitizer/71458
783         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
784         w/ -fsanitize=bounds.
786 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
788         * config/i386/i386.c (ix86_init_builtins): Calculate
789         FLOAT128_FTYPE_CONST_STRING function type only once.
790         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
791         built-in functions are available for x86-32 and x86-64 targets.
793 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
795         PR target/71241
796         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
797         New primitive type.
798         (FLOAT128_FTYPE_CONST_STRING): New function type.
799         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
800         [IX86_BUILTIN_NANSQ]: Ditto.
801         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
802         (ix86_init_builtin_types): Declare const_string_type_node.
803         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
804         builtin functions.
805         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
806         * doc/extend.texi (x86 Built-in Functions): Document
807         __builtin_nanq and __builtin_nansq.
809 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
811         PR target/71061
812         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
813         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
814         length for pop patterns.
815         (arm_attr_length_push_multi): Update comments.
816         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
817         attribute.
818         (*pop_multiple_with_writeback_and_return): Likewise.
819         (*pop_multiple_with_return): Likewise.
821 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
823         PR middle-end/71310
824         * fold-const.c (optimize_bit_field_compare): Don't try to use
825         word_mode unconditionally for reading the bit field, look at
826         DECL_BIT_FIELD_REPRESENTATIVE instead.
828 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
830         PR middle-end/71478
831         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
832         vector integer type.
834 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
836         PR middle-end/71494
837         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
838         without LABEL_DECL, set *handled_ops_p to false instead of true.
840 2016-06-10  Martin Sebor  <msebor@redhat.com>
842         PR c/71392
843         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
844         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
845         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
846         them.
847         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
848         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
849         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
850         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
851         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
852         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
853         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
854         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
856 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
858         * config/arm/arm.h (pool_vector_label,
859         return_used_this_function): Remove.
861 2016-06-10  Jeff Law  <law@redhat.com>
863         PR tree-optimization/71335
864         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
865         zero length paths here.
866         (convert_and_register_jump_thread_path): Remove hacks related to
867         duplicated blocks in the jump thread path.
868         (fsm_find_control_statement_thread_paths): Avoid putting the same
869         block on the thread path twice, but ensure the thread path is
870         unchanged from the caller's point of view.
872 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
874         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
875         * predict.def (PRED_LOOP_BRANCH): Remove.
877 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
879         * Makefile.in (OBJS): Add ggc-tests.o.
880         (GTFILES): Add ggc-tests.c.
881         * ggc-tests.c: New file.
882         * selftest-run-tests.c (selftest::run_tests): Call
883         selftest::ggc_tests_c_tests.
884         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
886 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
888         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
890 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
892         PR sanitizer/71480
893         * varasm.c (place_block_symbol): Adjust alignment for asan protected
894         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
896 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
898         * profile.c: Include cfgloop.h.
899         (branch_prob): Compute estimated number of iterations.
900         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
901         recompute estimate number of iterations from profile.
903 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
905         PR inline-asm/68843
906         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
907         must be grouped on top of stack.  Don't force early clobber
908         on ordinary reg outputs.
910 2016-06-10  Richard Biener  <rguenther@suse.de>
912         * targhooks.c (default_builtin_vectorization_cost): Adjust
913         vec_construct cost.
915 2016-06-10  Richard Biener  <rguenther@suse.de>
917         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
918         to fold the RHS to a constant if possible.
920 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
922         PR middle-end/71373
923         * tree-nested.c (convert_nonlocal_omp_clauses)
924         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
925         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
926         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
928         * gimplify.c (gimplify_adjust_omp_clauses): Discard
929         OMP_CLAUSE_TILE.
930         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
932         * omp-low.c (scan_sharing_clauses): Don't expect
933         OMP_CLAUSE__CACHE_.
935 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
937         PR tree-optimization/71407
938         PR tree-optimization/71416
939         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
940         BIT_FIELD_REF type.
942 2016-06-10  Richard Biener  <rguenther@suse.de>
944         PR middle-end/71477
945         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
947 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
949         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
951 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
952             Jiong Wang  <jiong.wang@arm.com>
954         PR rtl-optimization/70751
955         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
956         spilled into memory.
958 2016-06-09  Jonathan Yong  <10walls@gmail.com>
960         Revert:
961         2015-09-21  Jonathan Yong  <10walls@gmail.com>
963         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
964         sysroot/usr/lib/32api for additional win32 libraries,
965         fixes failing Cygwin bootstrapping.
967 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
969         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
970         Delete.
972 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
974         PR bootstrap/71471
975         * pretty-print.c (pp_indent): Specify that %p is printed in a
976         host-dependent manner.
977         (test_pp_format): Remove the test for %p.
979 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
981         * config/mips/mips.c (mips_output_jump): Fix formatting.
983 2016-06-09  Richard Biener  <rguenther@suse.de>
985         PR tree-optimization/71462
986         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
987         removed blocks.
989 2016-06-09  Martin Liska  <mliska@suse.cz>
991         * predict.c (dump_prediction): Add new argument.
992         (enum predictor_reason): New enum.
993         (struct predictor_hash): New struct.
994         (predictor_hash::hash): New function.
995         (predictor_hash::equal): Likewise.
996         (not_removed_prediction_p): New function.
997         (prune_predictions_for_bb): Likewise.
998         (combine_predictions_for_bb): Prune predictions.
1000 2016-06-09  Martin Liska  <mliska@suse.cz>
1002         * predict.c (filter_predictions): New function.
1003         (remove_predictions_associated_with_edge): Use the filter
1004         function.
1005         (equal_edge_p): New function.
1007 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
1009         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
1010         Correct usage of @samp vs @option, add @samp where appropriate.
1011         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
1012         Add armv6s-m and document it, as it is no official ARM name.
1014 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1016         * ifcvt.c (struct noce_if_info): Add transform_name field.
1017         (noce_try_move): Set if_info->transform_name to the function name.
1018         (noce_try_ifelse_collapse): Likewise.
1019         (noce_try_store_flag): Likewise.
1020         (noce_try_inverse_constants): Likewise.
1021         (noce_try_store_flag_constants): Likewise.
1022         (noce_try_addcc): Likewise.
1023         (noce_try_store_flag_mask): Likewise.
1024         (noce_try_cmove): Likewise.
1025         (noce_try_cmove_arith): Likewise.
1026         (noce_try_minmax): Likewise.
1027         (noce_try_abs): Likewise.
1028         (noce_try_sign_mask): Likewise.
1029         (noce_try_bitop): Likewise.
1030         (noce_convert_multiple_sets): Likewise.
1031         (noce_process_if_block): Print if_info->transform_name to
1032         dump_file if transformation succeeded.
1034 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1036         * config/arm/cortex-a57.md (cortex_a57_alu):
1037         Handle csel type.
1039 2016-06-08  Martin Sebor  <msebor@redhat.com>
1040             Jakub Jelinek  <jakub@redhat.com>
1042         PR c++/70507
1043         PR c/68120
1044         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
1045         BUILT_IN_MUL_OVERFLOW_P): New builtins.
1046         * builtins.c: Include gimple-fold.h.
1047         (fold_builtin_arith_overflow): Handle
1048         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
1049         (fold_builtin_3): Likewise.
1050         * doc/extend.texi (Integer Overflow Builtins): Document
1051         __builtin_{add,sub,mul}_overflow_p.
1053 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
1055         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
1056         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
1058 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
1060         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
1061         Rewrite, looking one level down for records and arrays.
1063 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
1065         * pretty-print.c: Include "selftest.h".
1066         (pp_format): Fix comment.
1067         (identifier_to_locale): Likewise.
1068         (selftest::test_basic_printing): New function.
1069         (selftest::assert_pp_format): New function.
1070         (selftest::test_pp_format): New function.
1071         (selftest::pretty_print_c_tests): New function.
1072         * selftest-run-tests.c (selftest::run_tests): Call
1073         selftest::pretty_print_c_tests.
1074         * selftest.h (pretty_print_c_tests): New declaration.
1076 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1078         * invoke.texi (max-loop-headers-insns): Document.
1079         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
1080         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
1081         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
1083 2016-06-08  Richard Biener  <rguenther@suse.de>
1085         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
1086         on strided SLP loads and fall back to scalar loads in case
1087         we can't chunk them.
1089 2016-06-08  Richard Biener  <rguenther@suse.de>
1091         PR tree-optimization/71452
1092         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
1093         type used for the SSA rewrite has enough precision to cover
1094         the dynamic type of the location.
1096 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
1097             Richard Biener  <rguenther@suse.de>
1099         PR c++/71448
1100         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
1101         the same as DECL_P (base0) for indirect_base0.  Use equality_code
1102         in one further place.
1104 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
1106         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
1107         to one word if the field is known to overlap other words.
1108         (extract_bit_field_1): Likewise.
1109         (store_split_bit_field): Remove compensating code.
1110         (extract_split_bit_field): Likewise.
1112 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
1114         PR debug/71432
1115         PR ada/71413
1116         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
1118 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1120         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
1121         VDQF.
1122         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
1123         (arch64_addpv4sf): Delete.
1124         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
1125         "gen_aarch64_addpv4sf".
1126         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
1127         builtin.
1128         (vpadds_f32): Likewise.
1129         (vpaddq_f32): Likewise.
1130         (vpaddq_f64): Likewise.
1132 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1134         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
1135         VALLF.
1136         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
1137         to VALLF.  Rename to "fabd<mode>3".
1138         "*fabd_scalar<mode>3): Delete.
1139         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
1140         Use builtin.
1141         (vabdd_f64): Likewise.
1142         (vabd_f32): Likewise.
1143         (vabd_f64): Likewise.
1144         (vabdq_f32): Likewise.
1145         (vabdq_f64): Likewise.
1147 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1149         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
1150         VALLF.
1151         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
1152         "aarch64_rsqrts<mode>".
1153         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
1154         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
1155         builtin.
1156         (vrsqrtsd_f64): Likewise.
1157         (vrsqrts_f32): Likewise.
1158         (vrsqrts_f64): Likewise.
1159         (vrsqrtsq_f32): Likewise.
1160         (vrsqrtsq_f64): Likewise.
1162 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1164         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
1165         VALLF.
1166         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
1167         "aarch64_rsqrte<mode>".
1168         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
1169         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
1170         builtin.
1171         (vrsqrted_f64): Likewise.
1172         (vrsqrte_f32): Likewise.
1173         (vrsqrte_f64): Likewise.
1174         (vrsqrteq_f32): Likewise.
1175         (vrsqrteq_f64): Likewise.
1177 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1179         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
1180         (ucvtf): Likewise.
1181         (fcvtzs): Likewise.
1182         (fcvtzu): Likewise.
1183         * config/aarch64/aarch64-simd.md
1184         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
1185         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
1186         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
1187         Use builtin.
1188         (vcvt_n_f32_u32): Likewise.
1189         (vcvt_n_s32_f32): Likewise.
1190         (vcvt_n_u32_f32): Likewise.
1191         (vcvtq_n_f32_s32): Likewise.
1192         (vcvtq_n_f32_u32): Likewise.
1193         (vcvtq_n_f64_s64): Likewise.
1194         (vcvtq_n_f64_u64): Likewise.
1195         (vcvtq_n_s32_f32): Likewise.
1196         (vcvtq_n_s64_f64): Likewise.
1197         (vcvtq_n_u32_f32): Likewise.
1198         (vcvtq_n_u64_f64): Likewise.
1199         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
1200         (VSDQ_SDI): Likewise.
1201         (fcvt_target): Support V4DI, V4SI and V2SI.
1202         (FCVT_TARGET): Likewise.
1204 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1206         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
1207         (TYPES_BINOP_SUS): Likewise.
1208         (aarch64_simd_builtin_data): Update include file name.
1209         (aarch64_builtins): Likewise.
1210         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
1211         for conversion between scalar float-point and fixed-point.
1212         (ucvtf): Likewise.
1213         (fcvtzs): Likewise.
1214         (fcvtzu): Likewise.
1215         * config/aarch64/aarch64.md
1216         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
1217         pattern for conversion between scalar float to fixed-pointer.
1218         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
1219         (UNSPEC_FCVTZS): New UNSPEC enumeration.
1220         (UNSPEC_FCVTZU): Likewise.
1221         (UNSPEC_SCVTF): Likewise.
1222         (UNSPEC_UCVTF): Likewise.
1223         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
1224         Use builtin.
1225         (vcvtd_n_f64_u64): Likewise.
1226         (vcvtd_n_s64_f64): Likewise.
1227         (vcvtd_n_u64_f64): Likewise.
1228         (vcvtd_n_f32_s32): Likewise.
1229         (vcvts_n_f32_u32): Likewise.
1230         (vcvtd_n_s32_f32): Likewise.
1231         (vcvts_n_u32_f32): Likewise.
1232         * config/aarch64/iterators.md (fcvt_target): Support integer to float
1233         mapping.
1234         (FCVT_TARGET): Likewise.
1235         (FCVT_FIXED2F): New iterator.
1236         (FCVT_F2FIXED): Likewise.
1237         (fcvt_fixed_insn): New define_int_attr.
1239 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1241         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
1242         some statements was removed.
1244 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
1246         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
1247         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
1248         (vect_can_advance_ivs_p): likewise.
1249         (vect_update_ivs_after_vectorizer): likewise.
1250         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
1251         (vect_analyze_scalar_cycles_1): likewise.
1252         (vect_analyze_loop_operations): likewise.
1253         (report_vect_op): likewise.
1254         (vect_is_slp_reduction): likewise.
1255         (vect_is_simple_reduction): likewise.
1256         (get_initial_def_for_induction): likewise.
1257         (vect_transform_loop): likewise.
1258         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
1259         (vect_recog_sad_pattern): likewise.
1260         (vect_recog_widen_sum_pattern): likewise.
1261         (vect_recog_widening_pattern): likewise.
1262         (vect_recog_divmod_pattern): likewise.
1263         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
1264         (vect_analyze_slp_instance): likewise.
1265         (vect_transform_slp_perm_load): likewise.
1266         (vect_schedule_slp_instance): likewise.
1268 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1270         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
1271         (return_prediction): PRED_CONST_RETURN predict return as not taken.
1272         * predict.def (PRED_CONTINUE): Change hitrate 50->67
1273         (PRED_LOOP_BRANCH): Document predictor as broken.
1274         (PRED_LOOP_EXIT): Change hitrate 91->92.
1275         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
1276         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
1277         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
1278         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
1279         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
1280         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
1281         (PRED_CALL): Chane hitrate 71->67.
1282         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
1283         (PRED_GOTO): Document as unused right now.
1284         (PRED_CONST_RETURN): Change hitrate 67->69
1285         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
1286         (PRED_NULL_RETURN): Change hitrate 91->90.
1287         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
1288         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
1289         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
1291 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
1293         * config/rs6000/altivec.h: Add __builtin_vec_mul.
1294         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
1295         special case Altivec builtin.
1296         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
1297         VSX_BUILTIN_VEC_MUL (replaced with special case code).
1298         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
1299         code for ALTIVEC_BUILTIN_VEC_MUL.
1300         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
1301         for __builtin_vec_mul.
1303 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
1305         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
1306         -mno-htm.
1308 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
1310         * spellcheck.c (selftest::test_find_closest_string): New function.
1311         (spellcheck_c_tests): Call the above.
1313 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1315         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
1317 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
1319         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
1320         Yv=Yv,C alternatives.
1322 2016-06-07  Richard Biener  <rguenther@suse.de>
1324         PR c/61564
1325         * common.opt (ffast-math): Make Optimization.
1327 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
1328             Prachi Godbole  <prachi.godbole@imgtec.com>
1330         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
1331         `fabs' and `fneg' type attributes.
1332         (p5600_fpu_fabs): Add `fmove' to the comment.
1334 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1336         * gimple.c: Include builtins.h
1337         (gimple_inexpensive_call_p): New function.
1338         * gimple.h (gimple_inexpensive_call_p): Declare.
1339         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
1340         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
1341         fix formatting.
1343 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
1345         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
1346         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
1347         warning_at_rich_loc, warning_n, pedwarn, permerror,
1348         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
1349         sorry, fatal_error, internal_error, internal_error_no_backtrace):
1350         Use the above.
1352 2016-06-07  Richard Biener  <rguenther@suse.de>
1354         PR tree-optimization/71428
1355         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
1356         BIT_FIELD_REF op vs. load.
1358 2016-06-07  Richard Biener  <rguenther@suse.de>
1360         PR middle-end/71423
1361         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
1362         for signed ops.
1364 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
1366         * config/pa/pa.md (call): Generate indirect long calls to non-local
1367         functions on TARGET_64BIT.
1368         (call_value): Likewise.
1370 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
1372         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
1373         pattern and subsequent splitters.
1374         (call_val_reg_64bit_post_reload): Likewise.
1376 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
1378         PR middle-end/71408
1379         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
1380         propagate_op_to_single_use.
1382 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
1384         PR middle-end/71281
1385         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
1387 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
1389         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
1390         (enum x86_dirflag_state): New enum.
1391         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
1392         (machine_function): Remove needs_cld.
1393         (ix86_current_function_needs_cld): Remove.
1394         * config/i386/i386.c (ix86_set_func_type): Set
1395         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
1396         (ix86_expand_prologue): Do not emit CLD here.
1397         (ix86_dirflag_mode_needed): New function.
1398         (ix86_dirflag_mode_entry): Ditto.
1399         (ix86_mode_needed): Handle X86_DIRFLAG entity.
1400         (ix86_mode_after): Ditto.
1401         (ix86_mode_entry): Ditto.
1402         (ix86_mode_exit): Ditto.
1403         (ix86_emit_mode_set): Ditto.
1404         * config/i386/i386.md (strmov_singleop): Set
1405         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
1406         Do not set ix86_current_function_needs_cld.
1407         (rep_mov): Ditto.
1408         (strset_singleop): Ditto.
1409         (rep_stos): Ditto.
1410         (cmpstrnqi_nz_1): Ditto.
1411         (cmpstrnqi_1): Ditto.
1412         (strlenqi_1): Ditto.
1414 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
1416         PR tree-optimization/71259
1417         * tree-vect-slp.c (vect_get_constant_vectors): For
1418         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
1419         one for constant op, and use COND_EXPR for non-constant.
1421 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
1423         * Makefile.in (OBJS): Add function-tests.o,
1424         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
1425         selftest-run-tests.o.
1426         (OBJS-libcommon): Add selftest.o.
1427         (OBJS-libcommon-target): Add selftest.o.
1428         (all.internal): Add "selftest".
1429         (all.cross): Likewise.
1430         (selftest): New phony target.
1431         (s-selftest): New target.
1432         (selftest-gdb): New phony target.
1433         (COLLECT2_OBJS): Add selftest.o.
1434         * bitmap.c: Include "selftest.h".
1435         (selftest::test_gc_alloc): New function.
1436         (selftest::test_set_range): New function.
1437         (selftest::test_clear_bit_in_middle): New function.
1438         (selftest::test_copying): New function.
1439         (selftest::test_bitmap_single_bit_set_p): New function.
1440         (selftest::bitmap_c_tests): New function.
1441         * common.opt (fself-test): New.
1442         * diagnostic-show-locus.c: Include "selftest.h".
1443         (make_range): New function.
1444         (test_range_contains_point_for_single_point): New function.
1445         (test_range_contains_point_for_single_line): New function.
1446         (test_range_contains_point_for_multiple_lines): New function.
1447         (assert_eq): New function.
1448         (test_get_line_width_without_trailing_whitespace): New function.
1449         (selftest::diagnostic_show_locus_c_tests): New function.
1450         * et-forest.c: Include "selftest.h".
1451         (selftest::test_single_node): New function.
1452         (selftest::test_simple_tree): New function.
1453         (selftest::test_disconnected_nodes): New function.
1454         (selftest::et_forest_c_tests): New function.
1455         * fold-const.c: Include "selftest.h".
1456         (selftest::assert_binop_folds_to_const): New function.
1457         (selftest::assert_binop_folds_to_nonlvalue): New function.
1458         (selftest::test_arithmetic_folding): New function.
1459         (selftest::fold_const_c_tests): New function.
1460         * function-tests.c: New file.
1461         * gimple.c: Include "selftest.h".
1462         Include "gimple-pretty-print.h".
1463         (selftest::verify_gimple_pp): New function.
1464         (selftest::test_assign_single): New function.
1465         (selftest::test_assign_binop): New function.
1466         (selftest::test_nop_stmt): New function.
1467         (selftest::test_return_stmt): New function.
1468         (selftest::test_return_without_value): New function.
1469         (selftest::gimple_c_tests): New function.
1470         * hash-map-tests.c: New file.
1471         * hash-set-tests.c: New file.
1472         * input.c: Include "selftest.h".
1473         (selftest::assert_loceq): New function.
1474         (selftest::test_accessing_ordinary_linemaps): New function.
1475         (selftest::test_unknown_location): New function.
1476         (selftest::test_builtins): New function.
1477         (selftest::test_reading_source_line): New function.
1478         (selftest::input_c_tests): New function.
1479         * rtl-tests.c: New file.
1480         * selftest-run-tests.c: New file.
1481         * selftest.c: New file.
1482         * selftest.h: New file.
1483         * spellcheck.c: Include "selftest.h".
1484         (selftest::levenshtein_distance_unit_test_oneway): New function,
1485         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
1486         (selftest::levenshtein_distance_unit_test): Likewise.
1487         (selftest::spellcheck_c_tests): Likewise.
1488         * toplev.c: Include selftest.h.
1489         (toplev::run_self_tests): New.
1490         (toplev::main): Handle -fself-test.
1491         * toplev.h (toplev::run_self_tests): New.
1492         * tree.c: Include "selftest.h".
1493         (selftest::test_integer_constants): New function.
1494         (selftest::test_identifiers): New function.
1495         (selftest::test_labels): New function.
1496         (selftest::tree_c_tests): New function.
1497         * tree-cfg.c: Include "selftest.h".
1498         (selftest::push_fndecl): New function.
1499         (selftest::test_linear_chain): New function.
1500         (selftest::test_diamond): New function.
1501         (selftest::test_fully_connected): New function.
1502         (selftest::tree_cfg_c_tests): New function.
1503         * vec.c: Include "selftest.h".
1504         (selftest::safe_push_range): New function.
1505         (selftest::test_quick_push): New function.
1506         (selftest::test_safe_push): New function.
1507         (selftest::test_truncate): New function.
1508         (selftest::test_safe_grow_cleared): New function.
1509         (selftest::test_pop): New function.
1510         (selftest::test_safe_insert): New function.
1511         (selftest::test_ordered_remove): New function.
1512         (selftest::test_unordered_remove): New function.
1513         (selftest::test_block_remove): New function.
1514         (selftest::reverse_cmp): New function.
1515         (selftest::test_qsort): New function.
1516         (selftest::vec_c_tests): New function.c.
1517         * wide-int.cc: Include selftest.h and wide-int-print.h.
1518         (selftest::from_int <wide_int>): New function.
1519         (selftest::from_int <offset_int>): New function.
1520         (selftest::from_int <widest_int>): New function.
1521         (selftest::assert_deceq): New function.
1522         (selftest::assert_hexeq): New function.
1523         (selftest::test_printing <VALUE_TYPE>): New function template.
1524         (selftest::test_ops <VALUE_TYPE>): New function template.
1525         (selftest::test_comparisons <VALUE_TYPE>): New function template.
1526         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
1527         template.
1528         (selftest::wide_int_cc_tests): New function.
1530 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1532         PR middle-end/37780
1533         * ifcvt.c (noce_try_ifelse_collapse): New function.
1534         Declare prototype.
1535         (noce_process_if_block): Call noce_try_ifelse_collapse.
1536         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
1537         (simplify_ternary_operation): Use the above to simplify
1538         conditional CLZ/CTZ expressions.
1540 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1542         PR middle-end/37780
1543         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
1544         define_insn_and_split.
1546 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1548         PR middle-end/37780
1549         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
1551 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1553         PR c/24414
1554         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
1555         Implicitly clobber memory for basic asm with non-empty assembler
1556         string.  Use targetm.md_asm_adjust also here.
1557         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
1558         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
1559         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
1560         non-empty assembler string.
1561         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
1562         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
1563         (decode_asm_operands): Handle basic asm in PARALLEL block.
1564         (extract_insn): Handle basic asm in PARALLEL block.
1565         * doc/extend.texi: Mention new behavior of basic asm.
1566         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
1567         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
1568         branch_needs_nop_p): Use asm_noperands.
1570 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
1572         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
1573         Include the M7 SPARC DFA scheduler.
1574         New attribute v3pipe.
1575         Annotate insns with v3pipe where appropriate.
1576         Define cpu_feature vis4.
1577         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
1578         Add (V8QI "8") to vbits.
1579         Add insns {add,sub}v8qi3
1580         Add insns ss{add,sub}v8qi3
1581         Add insns us{add,sub}{v8qi,v4hi}3
1582         Add insns {min,max}{v8qi,v4hi,v2si}3
1583         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
1584         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
1585         * config/sparc/niagara4.md: Add a comment explaining the
1586         discrepancy between the documented latenty numbers and the
1587         implemented ones.
1588         * config/sparc/niagara7.md: New file.
1589         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
1590         supports SPARC5 and VIS 4.0 instructions.
1591         * configure: Regenerate.
1592         * config.in: Likewise.
1593         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
1594         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
1595         TARGET_CPU_niagara7.
1596         (ASM_CPU64_DEFAULT_SPEC): Likewise.
1597         (CPP_CPU_SPEC): Handle niagara7.
1598         (ASM_CPU_SPEC): Likewise.
1599         * config/sparc/sparc-opts.h (processor_type): Add
1600         PROCESSOR_NIAGARA7.
1601         (mvis4): New option.
1602         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
1603         (AS_NIAGARA7_FLAG): Define.
1604         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
1605         (CPP_CPU64_DEFAULT_SPEC): Likewise.
1606         (CPP_CPU_SPEC): Handle niagara7.
1607         (ASM_CPU_SPEC): Likewise.
1608         * config/sparc/sparc.c (niagara7_costs): Define.
1609         (sparc_option_override): Handle niagara7 and adjust cache-related
1610         parameters with better values for niagara cpus.  Also support VIS4.
1611         (sparc32_initialize_trampoline): Likewise.
1612         (sparc_use_sched_lookahead): Likewise.
1613         (sparc_issue_rate): Likewise.
1614         (sparc_register_move_cost): Likewise.
1615         (dump_target_flag_bits): Support VIS4.
1616         (sparc_vis_init_builtins): Likewise.
1617         (sparc_builtins): Likewise.
1618         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
1619         VIS4 4.0.
1620         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
1621         UltraSparc M7.
1622         * config/sparc/sparc.opt (sparc_processor_type): New value
1623         niagara7.
1624         * config/sparc/visintrin.h (__attribute__): Prototypes for the
1625         VIS4 builtins.
1626         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
1627         -mvis4.
1628         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
1629         VIS4 builtins.
1631 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
1633         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
1635 2016-06-06  Richard Biener  <rguenther@suse.de>
1637         PR tree-optimization/71398
1638         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
1639         remove edges.
1641 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
1643         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
1644         ft32_expand_prolog, ft32_expand_epilogue):
1645         Handle pretend_args.
1646         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
1647         * config/ft32/ft32.md: Add pretend_returner.
1649 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
1651         PR target/71389
1652         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
1653         Copy op1 RTX to avoid invalid sharing.
1654         (ix86_expand_vector_move_misalign): Ditto.
1656 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
1658         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
1659         ATTRIBUTE_UNUSED.
1661 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
1663         * predict.c (predicted_by_loop_heuristics_p): New function.
1664         (predict_iv_comparison): Use it.
1665         (predict_loops): Walk from innermost loops; do not predict edges
1666         leaving multiple loops multiple times; implement
1667         PRED_LOOP_ITERATIONS_MAX heuristics.
1668         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
1670 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
1672         * cfg.c (check_bb_profile): Do not report mismatched profiles when
1673         only edges out of BB are EH edges.
1675 2016-06-04  Martin Sebor  <msebor@redhat.com>
1676             Marcin Baczyński  <marbacz@gmail.com>
1678         PR c/48116
1679         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
1680         a void expression in a void function.
1682 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
1684         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
1685         aux; dump reasons of decisions.
1686         (should_duplicate_loop_header_p): Likewise.
1687         (do_while_loop_p): Likewise.
1688         (ch_base::copy_headers): Dump asi num insns duplicated.
1690 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
1692         PR tree-optimization/71405
1693         * tree-ssa.c (execute_update_addresses_taken): For clobber with
1694         incompatible type, build a new clobber with the right type instead
1695         of building a VIEW_CONVERT_EXPR around it.
1697 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
1699         PR tree-optimization/52171
1700         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
1701         by_pieces_ninsns instead of move_by_pieces_ninsns.
1703 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
1705         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
1706         for reg+reg addressing mode.
1708 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1710         * rs6000-c.c (c/c-tree.h): Add #include.
1711         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
1712         in C++ when found in the base position of vec_ld or vec_st.
1714 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
1716         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
1717         use of profile unless profile status is PROFILE_READ.
1718         * profile.c (compute_branch_probabilities): Set profile status
1719         only after reporting predictor hitrates.
1721 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1723         PR target/71276
1724         PR target/71277
1725         * common.opt (ffp-int-builtin-inexact): New option.
1726         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
1727         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
1728         (ceil@var{m}2): Document dependence on this option.
1729         * ipa-inline-transform.c (inline_call): Handle
1730         flag_fp_int_builtin_inexact.
1731         * ipa-inline.c (can_inline_edge_p): Likewise.
1732         * config/i386/i386.md (rintxf2): Do not test
1733         flag_unsafe_math_optimizations.
1734         (rint<mode>2_frndint): New define_insn.
1735         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
1736         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
1737         for 387 instead of extending and truncating.
1738         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
1739         !flag_trapping_math instead of flag_unsafe_math_optimizations.
1740         Change to frndint<mode>2_<rounding>.
1741         (frndintxf2_<rounding>_i387): Likewise.  Change to
1742         frndint<mode>2_<rounding>_i387.
1743         (<rounding_insn>xf2): Likewise.
1744         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
1745         !flag_trapping_math instead of flag_unsafe_math_optimizations for
1746         x87.  Test TARGET_ROUND || !flag_trapping_math ||
1747         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
1748         SSE.  Use ROUND_NO_EXC in constant operand of
1749         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
1750         for 387 instead of extending and truncating.
1752 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
1753             Julia Koval  <julia.koval@intel.com>
1755         PR target/66960
1756         PR target/67630
1757         PR target/67634
1758         PR target/67841
1759         PR target/68037
1760         PR target/68618
1761         PR target/68661
1762         PR target/69575
1763         PR target/69596
1764         PR target/69734
1765         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
1766         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
1767         all registers, except for function return registers if there are
1768         no caller-saved registers.
1769         (ix86_set_func_type): New function.
1770         (ix86_set_current_function): Call ix86_set_func_type to set
1771         no_caller_saved_registers and func_type.  Call reinit_regs if
1772         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
1773         nor x87 instructions in interrupt handler nor function with
1774         no_caller_saved_registers attribute.
1775         (ix86_function_ok_for_sibcall): Return false if there are no
1776         caller-saved registers.
1777         (type_natural_mode): Don't warn ABI change for MMX in interrupt
1778         handler.
1779         (ix86_function_arg_advance): Skip for callee in interrupt handler.
1780         (ix86_function_arg): Return special arguments in interrupt handler.
1781         (ix86_promote_function_mode): Promote pointer to word_mode only
1782         for normal functions.
1783         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
1784         interrupt handler.
1785         (ix86_epilogue_uses): New function.
1786         (ix86_hard_regno_scratch_ok): Likewise.
1787         (ix86_save_reg): Preserve all registers in interrupt handler
1788         after reload.  Preserve all registers, except for function return
1789         registers, if there are no caller-saved registers after reload.
1790         (find_drap_reg): Always use callee-saved register if there are
1791         no caller-saved registers.
1792         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
1793         for interrupt handler.
1794         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
1795         Emit cld instruction if stringops are used in interrupt handler
1796         or interrupt handler isn't a leaf function.
1797         (ix86_expand_epilogue): Generate interrupt return for interrupt
1798         handler and pop the 'ERROR_CODE' off the stack before interrupt
1799         return in exception handler.
1800         (ix86_expand_call): Disallow calling interrupt handler directly.
1801         If there are no caller-saved registers, mark all registers that
1802         are clobbered by the call which returns as clobbered.
1803         (ix86_handle_no_caller_saved_registers_attribute): New function.
1804         (ix86_handle_interrupt_attribute): Likewise.
1805         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
1806         attributes.
1807         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
1808         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
1809         accumulation in interrupt function if stack may be realigned to
1810         avoid DRAP.
1811         (EPILOGUE_USES): New.
1812         (function_type): New enum.
1813         (machine_function): Add func_type and no_caller_saved_registers.
1814         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
1815         (interrupt_return): New pattern.
1816         * doc/extend.texi: Document x86 interrupt and
1817         no_caller_saved_registers attributes.
1819 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
1821         PR tree-optimization/52171
1822         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
1823         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
1824         Look for constant strings.  Move some code to emit_block_cmp_hints
1825         and use it.
1826         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
1827         * defaults.h (COMPARE_MAX_PIECES): New macro.
1828         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
1829         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
1830         (clear_by_pieces_1): Don't declare.  Move definition before use.
1831         (can_do_by_pieces): New static function.
1832         (can_move_by_pieces): Use it.  Return bool.
1833         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
1834         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
1835         (class pieces_addr); New.
1836         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
1837         pieces_addr::adjust, pieces_addr::increment_address,
1838         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
1839         functions for it.
1840         (class op_by_pieces_d): New.
1841         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
1842         functions for it.
1843         (class move_by_pieces_d, class compare_by_pieces_d,
1844         class store_by_pieces_d): New subclasses of op_by_pieces_d.
1845         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
1846         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
1847         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
1848         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
1849         compare_by_pieces_d::finish_mode): New member functions.
1850         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
1851         functions.
1852         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
1853         (emit_block_cmp_hints): New function.
1854         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
1855         use the newly defined classes.
1856         * expr.h (by_pieces_constfn): New typedef.
1857         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
1858         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
1859         (move_by_pieces_ninsns): Don't declare.
1860         (can_move_by_pieces): Change return value to bool.
1861         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
1862         (compare_by_pieces_branch_ratio): New hook.
1863         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
1864         (by_pieces_ninsns): Declare.
1865         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
1866         COMPARE_BY_PIECES.
1867         (default_compare_by_pieces_branch_ratio): New function.
1868         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
1869         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
1870         * doc/tm.texi: Regenerate.
1871         * tree-ssa-strlen.c: Include "builtins.h".
1872         (handle_builtin_memcmp): New static function.
1873         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
1874         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
1876 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
1878         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
1879         relevant stmts which are simple and invariant.
1880         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
1881         instead of simple and invariant
1883 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
1885         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
1886         (vectorizable_reduction): Check for new relevant state.
1887         (vectorizable_live_operation): vectorize live stmts using
1888         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
1889         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
1890         (vect_stmt_relevant_p): Check for stmts which are only used live.
1891         (process_use): Use of a stmt does not inherit it's live value.
1892         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
1893         (vect_analyze_stmt): Check for new relevant state.
1894         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
1895         outside the loop, but not inside it.
1897 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
1899         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
1900         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
1901         (vect_get_vec_def_for_operand): Split out code.
1903 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
1905         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
1907 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
1909         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
1911 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1913         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
1915 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
1917         PR middle-end/71387
1918         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
1919         to noreturn e->callee->decl that has void return type and void
1920         arguments, adjust gimple_call_fntype and remove lhs even if it had
1921         previously addressable type.
1923 2016-06-02  Jeff Law  <law@redhat.com>
1925         PR tree-optimization/71328
1926         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
1927         error when checking for a jump back onto the copied path.
1929 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
1931         * config/microblaze/microblaze.c (get_branch_target): Add return
1932         NULL_RTX for the non-CALL_P case.
1933         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
1934         (insert_wic): Remove unused local "j".
1936 2016-06-02  Martin Liska  <mliska@suse.cz>
1938         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
1940 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1941             Julia Koval  <julia.koval@intel.com>
1943         * function.c (assign_parm_setup_stack): Force source into a
1944         register if needed.
1945         * target.def (function_incoming_arg): Update documentation to
1946         allow arbitrary address computation based on hard register.
1947         * doc/tm.texi: Regenerated.
1949 2016-06-02  Martin Liska  <mliska@suse.cz>
1951         * predict.c (combine_predictions_for_bb): Fix first match in
1952         cases where a first predictor contains more than one occurence
1953         in list of predictors.  Take the best value in such case.
1955 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1957         PR rtl-optimization/71295
1958         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
1959         offset would go over the size of the inner mode reject it.
1961 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
1963         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
1964         x=x,x and v=v,m instead of x=x,m.
1966         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
1967         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
1968         alternative to v=rm,C.
1970         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
1971         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
1972         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
1973         instead of vex for the last two above mentioned alternatives.
1975 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1977         PR target/70830
1978         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
1980 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
1982         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
1984 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
1986         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
1987         from int to unsigned.
1989 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
1991         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
1992         alternatives, eliminating preferred register class.  Add support
1993         for the MTVSRDD instruction in ISA 3.0.
1994         (vsx_splat_v4si_internal): Use splat_input_operand instead of
1995         reg_or_indexed_operand.
1996         (vsx_splat_v4sf_internal): Likewise.
1998 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
2000         PR target/71186
2001         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
2002         for loading up all 0's or all 1's.
2004 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2006         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
2008 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
2010         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
2011         extension.
2012         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
2013         * gcc.c (set_source_date_epoch_envvar): New function, sets
2014         the SOURCE_DATE_EPOCH environment variable to the current time.
2016 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
2018         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
2019         the factor for live Phi nodes.
2021 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
2023         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
2024         * tree-parloops.c (parallelize_loops): likewise.
2025         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
2026         tree_unswitch_outer_loop): likewise.
2028 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
2030         PR middle-end/71371
2031         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
2032         around creation of the temporary.
2034 2016-06-01  Richard Biener  <rguenther@suse.de>
2036         PR tree-optimization/71366
2037         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
2038         (unloop_loops): Move removing edges here ...
2039         (try_unroll_loop_completely): ... from here.
2040         (try_peel_loop): ... and here.
2041         (tree_unroll_loops_completely_1): Track parent loops via
2042         bitmap of header BBs.
2043         (tree_unroll_loops_completely): Adjust for that.
2045 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2047         * config/rs6000/altivec.h (vec_slv): New macro.
2048         (vec_srv): New macro.
2049         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
2050         (UNSPEC_VSRV): New value.
2051         (vslv): New insn.
2052         (vsrv): New insn.
2053         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
2054         (vsrv): New builtin definition.
2055         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
2056         define argument types for new builtin.
2057         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
2058         new builtin.
2059         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
2060         functions.
2062 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
2063             Jocelyn Mayer  <l_indien@magic.fr>
2065         PR target/67310
2066         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
2067         detect processor family for signature_CENTAUR_ebx.
2068         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
2069         signature_CENTAUR_ebx.
2070         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
2071         <default>: Pass x86-64 for has_longmode.
2073 2016-06-01  Nathan Sidwell  <nathan@acm.org>
2075         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
2076         undefined weak.
2078 2016-06-01  Richard Biener  <rguenther@suse.de>
2080         PR tree-optimization/71261
2081         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
2082         of stmts successfully put in the bool pattern.  Remove
2083         single-use restriction.
2084         (adjust_bool_pattern_cast): Add cast at the use site via the
2085         pattern def sequence.
2086         (adjust_bool_pattern): Remove recursion, maintain a hash-map
2087         of patterned defs.  Use the pattern def seqence instead of
2088         multiple independent patterns.
2089         (sort_after_uid): New qsort compare function.
2090         (adjust_bool_stmts): New function to process stmts in the bool
2091         pattern in IL order.
2092         (vect_recog_bool_pattern): Adjust.
2093         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
2094         (ifcvt_walk_pattern_tree): Likewise.
2095         (stmt_is_root_of_bool_pattern): Likewise.
2096         (ifcvt_repair_bool_pattern): Likewise.
2097         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
2099 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
2101         * loop-unroll.c (decide_unroll_constant_iterations,
2102         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
2103         likely upper bounds.
2104         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
2106 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
2108         * tree-core.h (enum omp_clause_code): Remove
2109         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
2111 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2113         * config/arm/sync.md (arm_store_exclusive<mode>):
2114         Use 'H' output modifier on operands[2] rather than creating a new
2115         entry in out-of-bounds memory of the operands array.
2116         (arm_store_release_exclusivedi): Likewise.
2118 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2120         * config/arm/arm.c (arm_fusion_enabled_p): New function.
2121         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
2122         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
2123         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
2125 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
2127         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
2128         into account live statements for mask producers.
2130 2016-06-01  Richard Biener  <rguenther@suse.de>
2132         PR tree-optimization/71311
2133         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
2134         restrict to non-INTEGER_CST @0.
2136 2016-06-01  Richard Biener  <rguenther@suse.de>
2138         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
2139         (relational patterns): Use :c to avoid pattern duplications.
2141 2016-06-01  Richard Biener  <rguenther@suse.de>
2143         * genmatch.c (comparison_code_p): New predicate.
2144         (swap_tree_comparison): New function.
2145         (commutate): Add for_vec parameter to append new for entries.
2146         Support commutating relational operators by swapping it alongside
2147         operands.
2148         (lower_commutative): Adjust.
2149         (dt_simplify::gen): Do not pass artificial operators to gen
2150         functions.
2151         (decision_tree::gen): Do not add artificial operators as parameters.
2152         (parser::parse_expr): Verify operator commutativity when :c is
2153         applied.  Allow :C to override this.
2154         * match.pd: Adjust patterns to use :C instead of :c where required.
2156 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
2158         PR tree-optimization/71077
2159         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
2160         the combining step, use boolean_false_node and boolean_true_node
2161         as the designated false/true return values.
2163 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
2165         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
2166         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
2167         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
2168         PRED_LOOP_EXIT.
2170 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
2172         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
2173         of flags impliying the register renaming.
2174         * toplev.c (process_options): Do not imply flag_rename_registers with
2175         loop peeling.
2177 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2179         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
2180         default implementation.
2182 2016-05-31  Nathan Sidwell  <nathan@acm.org>
2184         * dwarf2out.c (cur_line_info_table): Add GTY marker.
2186 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2188         * config/sh/constraints.md (b): Remove constraint.
2189         * config/sh/predicates.md (arith_reg_operand): Remove
2190         TARGET_REGISTER_P.
2191         * config/sh/sh-modes.def (PDI): Remove.
2192         * config/sh/sh.c (sh_target_reg_class,
2193         sh_optimize_target_register_callee_saved): Remove functions.
2194         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
2195         (sh_expand_epilogue): Update comment.
2196         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
2197         sh_secondary_reload): Remove TARGET_REGS related code.
2198         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
2199         TARGET_REGISTER_P): Remove macros.
2200         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
2201         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
2202         TR1_REG, TR2_REG): Remove constants.
2203         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
2205 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2207         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
2208         define_expand patterns.
2209         (adddi3_compact): Rename to adddi3.
2210         (subdi3_compact): Rename to subdi3.
2211         (*negdi2): Rename to negdi2.
2212         (*abs<mode>2): Rename to abs<mode>2.
2214 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2216         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
2217         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
2218         (atomic_sub_fetchsi): ... this new pattern.
2219         (mvtc): Add CC_REG clobber.
2221 2016-05-31  Marek Polacek  <polacek@redhat.com>
2223         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
2225 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2227         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
2228         aarch64_fusion_enabled_p to check for fusion capabilities.
2230 2016-05-31  Richard Biener  <rguenther@suse.de>
2232         PR tree-optimization/71352
2233         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
2234         minus one and a negate.
2236 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2238         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
2239         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
2240         Delete prototype.
2241         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
2242         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
2243         Remove use of aarch64_simd_attr_length_move, set length attribute
2244         directly.
2245         (*aarch64_be_movoi): Likewise.
2246         (*aarch64_be_movci): Likewise.
2247         (*aarch64_be_movxi): Likewise.
2249 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
2251         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
2252         It no longer does that.
2253         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
2255 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
2257         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
2258         attribute __unused__.
2260 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2262         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
2263         * config/arm/arm.c (arm_arch_thumb1): Define.
2264         (arm_option_override): Initialize arm_arch_thumb1.
2265         * config/arm/arm.h (arm_arch_thumb1): Declare.
2266         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
2267         support Thumb-1 ISA.
2269 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
2271         PR target/71346
2272         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
2273         `Yv' for scalar operand.
2275 2016-05-31  Tom de Vries  <tom@codesourcery.com>
2277         PR tree-optimization/69068
2278         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
2279         phis with more than two args.
2281 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
2283         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
2284         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
2285         target.
2287 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
2289         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
2290         tune_64.
2291         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
2292         support on SPARC.
2293         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
2294         cpu_32, cpu_64, tune_32 and tune_64.
2295         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
2297 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
2299         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
2301 2016-05-30  Andi Kleen  <ak@linux.intel.com>
2303         * auto-profile.c (read_profile): Replace asserts with errors
2304         when file does not exist.
2305         * gcov-io.c (gcov_read_words): Dito.
2307 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2309         * tree-cfg.c (print_loop): Print likely upper bounds.
2311 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2313         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
2314         * opts.c (default_options): Enable peel loops at -O3.
2315         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
2316         (try_peel_loop): Do not re-peel already peeled loops;
2317         use likely upper bounds; fix profile updating.
2318         (pass_complete_unroll::execute): Initialize peeled_loops.
2320 2016-05-30  Martin Liska  <mliska@suse.cz>
2322         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
2323         computed costs by frequency of BB they belong to.
2324         (get_scaled_computation_cost_at): New function.
2326 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
2327             Marc Glisse  <marc.glisse@inria.fr>
2329         PR tree-optimization/71289
2330         * match.pd (-1 / B < A, A > -1 / B): New transformations.
2332 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2334         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
2336 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2338         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
2339         for peeled copies; avoid underflow when updating estimates; correctly
2340         scale loop profile.
2342 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
2344         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
2345         r236875. Corrected oe3 to oe2 as obvious.
2347 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
2349         PR middle-end/71269
2350         PR middle-end/71252
2351         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
2352         that inserted stmt will not dominate stmts that defines its operand.
2353         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
2354         (rewrite_expr_tree_parallel): Likewise.
2356 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
2358         PR middle-end/71252
2359         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
2360         all fields including stmt_to_insert are swapped.
2362 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2364         * predict.h (force_edge_cold): Declare.
2365         * predict.c (force_edge_cold): New function.
2366         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
2367         updating.
2368         (canonicalize_loop_induction_variables): Fix formating.
2370 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
2372         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
2373         (visium_expand_copysign): Use gen_int_mode directly.
2374         (visium_compute_frame_size): Minor tweaks.
2376 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2378         * tree-vect-loop.c (vect_analyze_loop_2): Use
2379         likely_max_stmt_executions_int.
2381 2016-05-30  Tom de Vries  <tom@codesourcery.com>
2383         PR tree-optimization/69067
2384         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
2386 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
2388         PR target/71245
2389         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
2390         New peepholes to remove unneeded fild/fistp pairs.
2391         (define_peephole2 atomic_loaddi_fpu): Ditto.
2393 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2395         * predict.c (maybe_hot_frequency_p): Avoid division.
2397 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
2399         * doc/install.texi: Use https for shop.fsf.org.
2401 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2403         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
2404         likely_max_stmt_executions_int.
2406 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2408         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
2409         likely_max_stmt_executions_int.
2411 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2413         * profile.c (compute_branch_probabilities): Do not report hitrates
2414         here.
2415         (branch_prob): Report hitrates here.
2416         * predict.c (gimple_predict_edge): Do not assert profile status;
2417         fix formatting issues.
2419 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2421         * predict.c (edge_predicted_by_p): New function.
2422         (predict_paths_for_bb): Do not put multiple predictions of the same type
2423         on one edge.
2425 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2427         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
2428         commit.
2430 2016-05-28  Alan Modra  <amodra@gmail.com>
2432         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
2434 2016-05-28  Alan Modra  <amodra@gmail.com>
2436         PR rtl-optimization/71275
2437         * ira.c (ira): Free dominance info.
2439 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
2441         * doc/sourcebuild.texi: New address for upstream Go repository.
2443 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2445         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
2446         (TARGET_ARM_V7M): Likewise.
2448 2016-05-26  Jeff Law  <law@redhat.com>
2450         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
2451         (thread_across_edge): Remove calls to find_jump_threads_backwards.
2452         * passes.def: Add jump threading passes before DOM/VRP.
2453         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
2454         argument to a basic block from an edge.  Remove tests which are
2455         handled elsewhere.
2456         (pass_data_thread_jumps, class pass_thread_jumps): New.
2457         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
2458         (make_pass_thread_jumps): Likewise.
2459         * tree-pass.h (make_pass_thread_jumps): Declare.
2461 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
2463         * config/visium/visium-protos.h (split_double_move): Rename into...
2464         (visium_split_double_move): ...this.
2465         (visium_split_double_add): Declare.
2466         * config/visium/visium.c (split_double_move): Rename into...
2467         (visium_split_double_move): ...this.
2468         (visium_split_double_add): New function.
2469         (visium_expand_copysign): Renumber operands for consistency.
2470         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
2471         (DFmode move splitter): Likewise.
2472         (*addi3_insn): Split by means of visium_split_double_add.
2473         (*adddi3_insn_flags): Delete.
2474         (*plus_plus_sltu<subst_arith>): New insn.
2475         (*subdi3_insn): Split by means of visium_split_double_add.
2476         (subdi3_insn_flags): Delete.
2477         (*minus_minus_sltu<subst_arith>): New insn.
2478         (*negdi2_insn): Split by means of visium_split_double_add.
2479         (*negdi2_insn_flags): Delete.
2481 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
2483         * configure.ac: Treat a --with-headers option without argument
2484         the same as the default (i.e. consult sys-include directory).
2485         * configure: Regenerate.
2487 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2489         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
2490         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
2491         prototype.
2492         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
2493         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
2495 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
2497         PR target/63596
2498         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
2499         tree-stdarg analysis results.
2500         (aarch64_setup_incoming_varargs): Likewise.
2502 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
2504         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
2505         va_list_gpr_counter_field and va_list_fpr_counter_field.
2507 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
2509         PR67609
2510         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
2511         * config/aarch64/aarch64.c
2512         (aarch64_cannot_change_mode_class): Remove function.
2513         * config/aarch64/aarch64-protos.h
2514         (aarch64_cannot_change_mode_class): Remove.
2516 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2518         * cfgloop.c (record_niter_bound): Record likely upper bounds.
2519         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
2520         get_likely_max_loop_iterations_int): New.
2521         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
2522         any_likely_upper_bound.
2523         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
2524         Declare.
2525         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
2526         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
2527         upper bound.
2528         (unroll_loop_constant_iterations): Likewise.
2529         (unroll_loop_runtime_iterations): Likewise.
2530         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
2531         * lto-streamer-out.c (output_cfg): Likewise.
2532         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
2533         bounds.
2534         (canonicalize_loop_induction_variables): Dump likely upper bounds.
2535         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
2536         (likely_max_loop_iterations): New.
2537         (likely_max_loop_iterations_int): New.
2538         (likely_max_stmt_executions): New.
2539         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
2540         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
2541         likely_max_stmt_executions): Declare.
2543 2016-05-27  Marek Polacek  <polacek@redhat.com>
2545         PR middle-end/71308
2546         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
2548 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2550         * config/s390/s390.md (2x risbg splitters): Use
2551         reg_overlap_mentioned_p instead of rtx_equal_p.
2553 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2555         * combine.c (make_compound_operation): Take known zero bits into
2556         account when checking for possible zero_extend.
2558 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2560         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
2561         Use const_int_operand for operand 2 predicate.  Simplify expand code
2562         as a result.
2564 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
2566         PR middle-end/71279
2567         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
2568         into comparison.
2570 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2572         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
2573         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
2574         that returns CC_SESWPmode and CC_ZESWPmode.
2575         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
2576         and CC_SESWPmode.
2577         (aarch64_rtx_costs): Likewise.
2579 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2581         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
2582         for ISA 3.0 min/max support.
2583         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
2584         conditional move support.
2585         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
2586         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
2587         available.
2588         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
2589         conditional moves where the comparison type is different from move
2590         type.
2591         (fp_minmax): New code iterator for smin/smax.
2592         (minmax): New code attributes for min/max.
2593         (SMINMAX): Likewise.
2594         (smax<mode>3): Combine min, max insns into one insn using the
2595         fp_minmax code iterator.  Add support for ISA 3.0 min/max
2596         instructions that don't need -ffast-math.
2597         (s<minmax><mode>3): Likewise.
2598         (smax<mode>3_vsx): Likewise.
2599         (smin<mode>3): Likewise.
2600         (s<minmax><mode>3_vsx): Likewise.
2601         (smin<mode>3_vsx): Likewise.
2602         (pre-VSX min/max splitters): Likewise.
2603         (s<minmax><mode>3_fpr): Likewise.
2604         (movsfcc): Rewrite floating point conditional moves to combine
2605         SFmode/DFmode into a single insn.
2606         (mov<mode>cc): Likewise.
2607         (movdfcc): Likewise.
2608         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
2609         SFDF2 iterators to handle all combinations.
2610         (fseldfsf4): Likewise.
2611         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
2612         (fseldfdf4): Likewise.
2613         (fselsfdf4): Likewise.
2614         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
2615         comparison instructions that set a 0/-1 mask, and use it for
2616         floating point conditional move via XXSEL.
2617         (fpmask<mode>): Likewise.
2618         (xxsel<mode>): Likewise.
2619         * config/rs6000/predicates.md (min_max_operator): Delete, no
2620         longer used.
2621         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
2622         instructions that generate a 0/-1 mask for use with XXSEL.
2623         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
2624         say whether floating point min/max is available, either through
2625         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
2626         (TARGET_MINMAX_DF): Likewise.
2628 2016-05-27  Alan Modra  <amodra@gmail.com>
2630         PR rtl-optimization/71275
2631         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
2632         for update_equiv_regs and combine_and_move_insns.
2634 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
2636         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
2637         if_then_else or cond RTXes to calculate attribute value.
2638         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
2639         <attr "length_immediate>: Ditto.
2640         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
2641         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
2642         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
2643         <attr "type">: Ditto.
2644         <attr "prefix_data16">: Ditto.
2645         <attr "prefix_extra">: Ditto.
2646         <attr "length_immediate">: Ditto.
2647         <attr "prefix">: Ditto.
2648         (vec_set<mode>_0) <attr "isa">: Ditto.
2649         <attr "prefix_extra">: Ditto.
2650         <attr "length_immediate">: Ditto.
2651         <attr "prefix">: Ditto.
2652         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
2653         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
2654         (sse2_storelpd) <attr "prefix_data16">: Ditto.
2655         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
2656         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
2657         <attr "length_immediate">: Ditto.
2658         <attr "prefix">: Ditto.
2659         (sse2_movsd) <attr "length_immediate">: Ditto.
2660         <attr "prefix">: Ditto.
2661         (vec_concatv2df)  <attr "isa">: Ditto.
2662         <attr "prefix">: Ditto.
2663         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
2664         (*vec_extractv2di_1) <attr "isa">: Ditto.
2665         <attr "type">: Ditto.
2666         <attr "length_immediate">: Ditto.
2667         <attr "prefix_rex">: Ditto.
2668         <attr "prefix_extra">: Ditto.
2669         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
2670         <attr "prefix_extra">: Ditto.
2671         <attr "length_immediate">: Ditto.
2672         (vec_concatv2di) <attr "isa">: Ditto.
2673         <attr "prefix_extra">: Ditto.
2674         <attr "length_immediate">: Ditto.
2675         <attr "prefix">: Ditto.
2677 2016-05-26  Martin Liska  <mliska@suse.cz>
2679         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
2680         function.
2681         (operator+): Likewise.
2682         (operator-): Likewise.
2683         (comp_cost::operator+=): Likewise.
2684         (comp_cost::operator-=): Likewise.
2685         (comp_cost::operator/=): Likewise.
2686         (comp_cost::operator*=): Likewise.
2687         (operator<): Likewise.
2688         (operator==): Likewise.
2689         (operator<=): Likewise.
2690         (new_cost): Remove.
2691         (infinite_cost_p): Likewise.
2692         (add_costs): Likewise.
2693         (sub_costs): Likewise.
2694         (compare_costs): Likewise.
2695         (set_group_iv_cost): Use the newly introduced functions.
2696         (get_address_cost): Likewise.
2697         (get_shiftadd_cost): Likewise.
2698         (force_expr_to_var_cost): Likewise.
2699         (split_address_cost): Likewise.
2700         (ptr_difference_cost): Likewise.
2701         (difference_cost): Likewise.
2702         (get_computation_cost_at): Likewise.
2703         (determine_group_iv_cost_generic): Likewise.
2704         (determine_group_iv_cost_address): Likewise.
2705         (determine_group_iv_cost_cond): Likewise.
2706         (autoinc_possible_for_pair): Likewise.
2707         (determine_group_iv_costs): Likewise.
2708         (cheaper_cost_pair): Likewise.
2709         (iv_ca_recount_cost): Likewise.
2710         (iv_ca_set_no_cp): Likewise.
2711         (iv_ca_set_cp): Likewise.
2712         (iv_ca_cost): Likewise.
2713         (iv_ca_new): Likewise.
2714         (iv_ca_dump): Likewise.
2715         (iv_ca_narrow): Likewise.
2716         (iv_ca_prune): Likewise.
2717         (iv_ca_replace): Likewise.
2718         (try_add_cand_for): Likewise.
2719         (try_improve_iv_set): Likewise.
2720         (find_optimal_iv_set): Likewise.
2722 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
2724         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
2725         that internal functions will clobber all caller-saved registers.
2727 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
2729         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
2730         Return a better case_values_threshold when optimizing.
2732 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
2734         * config/aarch64/aarch64-simd.md (aarch64_combinez):
2735         Add ? to integer variant.
2736         (aarch64_combinez_be): Likewise.
2738 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
2740         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
2741         instead of x constraint.
2742         (vcvtps2ph256<mask_name>): Likewise.
2744         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
2745         alternative.  Formatting fix.
2747         * config/i386/sse.md
2748         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
2749         to ...
2750         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
2751         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
2752         maybe_evex prefix instead of vex.
2753         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
2754         EXT_REX_SSE_REG_P (op0) case in the splitter.
2756 2016-05-25  Jeff Law  <law@redhat.com>
2758         PR tree-optimization/71272
2759         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
2760         Update comments.  Add test for empty path.
2762 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
2764         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
2765         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
2766         special case builtin.
2767         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
2768         code for ALTIVEC_BUILTIN_VEC_CMPNE.
2769         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
2770         for __builtin_vec_cmpne.
2772 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
2774         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
2775         redundant test and bail out if the type of the new operand is not
2776         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
2778 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
2780         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
2781         (x_ix86_target_flags_explicit): Remove.
2782         * config/i386/i386.c (ix86_function_specific_save): Do not copy
2783         x_ix86_target_flags_explicit.
2784         (ix86_function_specific_restore): Ditto.
2786 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
2787             H.J. Lu  <hongjiu.lu@intel.com>
2789         PR target/70738
2790         * common/config/i386/i386-common.c
2791         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
2792         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
2793         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
2794         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
2795         (-mgeneral-regs-only): Add new option.
2796         * config/i386/i386.c (ix86_option_override_internal): Don't enable
2797         x87 instructions if only general registers are allowed.
2798         (ix86_target_string): Add ix86_flags argument. Handle additional
2799         flags options through ix86_flags argument.  Update all callers.
2800         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
2802 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2804         PR rtl-optimization/66940
2805         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
2806         decrementing desired_val will not overflow before performing these
2807         operations.
2809 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
2811         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
2812         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
2813         * config/i386/i386.c (enum ix86_builtins): Add
2814         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
2815         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
2816         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
2817         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
2818         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
2819         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
2820         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
2821         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
2822         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
2823         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
2824         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
2825         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
2826         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
2827         __builtin_ia32_cvtps2dq512_mask.
2828         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
2829         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
2830         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
2831         * config/i386/sse.md
2832         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
2833         Rename to ...
2834         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
2835         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
2836         to ...
2837         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
2838         (avx512f_vec_pack_sfix_v8df): New define_expand.
2839         (avx512f_roundpd512): Rename to ...
2840         (avx512f_round<castmode>512): ... this.  Change iterator.
2841         (avx512f_roundps512_sfix): New define_expand.
2842         (round<mode>2_sfix): Change iterator.
2844 2016-05-25  Nick Clifton  <nickc@redhat.com>
2846         * config/msp430/msp430.c (msp430_attr): Produce an error if a
2847         static interrupt handler is detected.
2848         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
2849         default linker script.
2850         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
2851         the low part of a symbolic pointer.
2853 2016-05-25  Richard Biener  <rguenther@suse.de>
2855         PR tree-optimization/71261
2856         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
2857         interesting stmt instead of immediate uses when looking
2858         for the use operand to replace.
2860 2016-05-25  Martin Liska  <mliska@suse.cz>
2862         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
2864 2016-05-25  Richard Biener  <rguenther@suse.de>
2866         PR tree-optimization/71264
2867         * tree-vect-stmts.c (vect_init_vector): Properly deal with
2868         vector type val.
2870 2016-05-25  Martin Liska  <mliska@suse.cz>
2872         PR tree-optimization/71239
2873         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
2874         if DECL_SIZE is NULL.
2876 2016-05-25  Richard Biener  <rguenther@suse.de>
2878         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
2879         * tree-if-conv.c (pass_data_if_conversion): Use it.
2881 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2883         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
2884         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
2885         * varpool.c (varpool_node::get_availability): Likewise.
2887 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2889         * config/rs6000/altivec.md (VNEG iterator): New iterator for
2890         VNEGW/VNEGD instructions.
2891         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
2892         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
2893         support for ISA 3.0 VNEGW/VNEGD instructions.
2895 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
2897         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
2898         pointers inside OACC_DATA regions.
2899         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
2900         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
2901         (gimplify_adjust_omp_clauses): Fix typo in comment.
2903 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2905         * config/rs6000/altivec.md (VParity): New mode iterator for vector
2906         parity built-in functions.
2907         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
2908         zeros.
2909         (p9v_parity<mode>2): Likewise.
2910         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
2911         parity.
2912         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
2913         (parity<mode>2): ISA 3.0 expander for vector parity.
2914         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
2915         power9 built-ins.
2916         (BU_P9_64BIT_MISC_0): Likewise.
2917         (BU_P9_MISC_0): Likewise.
2918         (BU_P9V_AV_1): Likewise.
2919         (BU_P9V_AV_2): Likewise.
2920         (BU_P9V_AV_3): Likewise.
2921         (BU_P9V_AV_P): Likewise.
2922         (BU_P9V_VSX_1): Likewise.
2923         (BU_P9V_OVERLOAD_1): Likewise.
2924         (BU_P9V_OVERLOAD_2): Likewise.
2925         (BU_P9V_OVERLOAD_3): Likewise.
2926         (VCTZB): Add vector count trailing zeros support.
2927         (VCTZH): Likewise.
2928         (VCTZW): Likewise.
2929         (VCTZD): Likewise.
2930         (VPRTYBD): Add vector parity support.
2931         (VPRTYBQ): Likewise.
2932         (VPRTYBW): Likewise.
2933         (VCTZ): Add overloaded vector count trailing zeros support.
2934         (VPRTYB): Add overloaded vector parity support.
2935         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2936         overloaded vector count trailing zeros and parity instructions.
2937         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
2938         vector parity support.
2939         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
2940         trailing zeros support.
2941         (vec_cntlz): Likewise.
2942         (vec_vctzb): Likewise.
2943         (vec_vctzd): Likewise.
2944         (vec_vctzh): Likewise.
2945         (vec_vctzw): Likewise.
2946         (vec_vprtyb): Add ISA 3.0 vector parity support.
2947         (vec_vprtybd): Likewise.
2948         (vec_vprtybw): Likewise.
2949         (vec_vprtybq): Likewise.
2950         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2951         the ISA 3.0 vector count trailing zeros and vector parity built-in
2952         functions.
2954 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
2956         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
2957         when there is stmt_to_insert.
2959 2016-05-24  Martin Sebor  <msebor@redhat.com>
2961         PR c++/71147
2962         * tree.h (complete_or_array_type_p): New inline function.
2964 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
2966         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
2967         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
2968         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
2970         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
2971         Limit 1st alternative to noavx isa, split 2nd alternative into one
2972         noavx and one avx alternative, use *x and Bm in the former and
2973         x and m in the latter.
2975         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
2976         of sse4 for the first alternative, drop %v from the template
2977         and d operand modifier.  Split second alternative into one sse4_noavx
2978         and one avx alternative, use *x instead of *v in the former and v
2979         instead of *v in the latter.
2980         (*sse4_1_extractps): Use noavx isa instead of * for the first
2981         alternative, drop %v from the template.  Split second alternative into
2982         one noavx and one avx alternative, use *x instead of *v in the
2983         former and v instead of *v in the latter.
2984         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
2985         with noavx and the last one with avx.
2986         (sse4_1_phminposuw): Guard first alternative with noavx isa,
2987         split the second one into one noavx and one avx alternative,
2988         use *x and Bm in the former and x and m in the latter one.
2989         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
2990         alternatives.
2992         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
2993         first two alternatives to noavx, use *x instead of *v in the second
2994         one, add avx alternative without *.
2995         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
2996         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
2997         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
2999 2016-05-24  Jeff Law  <law@redhat.com>
3001         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
3002         New function, extracted from...
3003         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
3004         Allow simple copies and constant initializations in the SSA chain.
3006 2016-05-24  Marek Polacek  <polacek@redhat.com>
3008         PR c/71249
3009         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
3010         scope.
3012 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
3014         PR c++/71257
3015         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
3016         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
3017         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
3018         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
3019         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
3021 2016-05-24  Richard Biener  <rguenther@suse.de>
3023         PR tree-optimization/71240
3024         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
3025         has integral type.
3027 2016-05-24  Richard Biener  <rguenther@suse.de>
3029         PR tree-optimization/71230
3030         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
3032 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
3034         * tree-vectorizer.h (vectorizable_comparison): Delete.
3035         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
3036         PURE_SLP_STMT check.
3037         * tree-vect-stmts.c (vectorizable_call): Likewise.
3038         (vectorizable_simd_clone_call): Likewise.
3039         (vectorizable_conversion): Likewise.
3040         (vectorizable_assignment): Likewise.
3041         (vectorizable_shift): Likewise.
3042         (vectorizable_operation): Likewise.
3043         (vectorizable_load): Likewise.
3044         (vectorizable_condition): Likewise.
3045         (vectorizable_store): Likewise.  Assert that we don't have
3046         hybrid SLP.
3047         (vectorizable_comparison): Make static.  Remove redundant
3048         PURE_SLP_STMT check.
3049         (vect_transform_stmt): Assert that we always have an slp_node
3050         if PURE_SLP_STMT.
3052 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3054         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
3055         operands[2] against 1 with comparison against CONST1_RTX.
3056         (<shift>di3_neon): Likewise.
3057         * config/arm/predicates.md (const0_operand): Replace with comparison
3058         against CONST0_RTX.
3060 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3062         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
3063         operands[2] against 1 with comparison against CONST1_RTX.
3064         (ashrdi3): Likewise.
3065         (lshrdi3): Likewise.
3066         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
3067         UINTVAL.
3068         (ashrsi3): Likewise.
3069         (lshrsi3): Likewise.
3070         (rotrsi3): Likewise.
3071         (define_split above *compareqi_eq0): Likewise.
3072         (define_split above "prologue"): Likewise.
3073         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
3074         * config/arm/predicates.md (shift_operator): Likewise.
3075         (shift_nomul_operator): Likewise.
3076         (sat_shift_operator): Likewise.
3077         (thumb1_cmp_operand): Likewise.
3078         (const_neon_scalar_shift_amount_operand): Replace manual range
3079         check with IN_RANGE.
3080         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
3081         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
3083 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3085         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
3086         with HOST_WIDE_INT_1.
3087         (insv): Likewise.
3088         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
3089         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
3090         (arm_canonicalize_comparison): Likewise.
3091         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
3092         HOST_WIDE_INT_1.
3093         (thumb1_size_rtx_costs): Likewise.
3094         (vfp_const_double_index): Replace cast of 1 to unsigned
3095         HOST_WIDE_INT with HOST_WIDE_INT_1U.
3096         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
3097         HOST_WIDE_INT_1.
3098         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
3099         HOST_WIDE_INT with HOST_WIDE_INT_1U.
3100         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
3101         HOST_WIDE_INT with HOST_WIDE_INT_1.
3103 2016-05-24  Marek Polacek  <polacek@redhat.com>
3105         * tree-cfg.h (should_remove_lhs_p): New predicate.
3106         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
3107         * gimplify.c (gimplify_modify_expr): Likewise.
3108         * tree-cfg.c (verify_gimple_call): Likewise.
3109         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
3110         * gimple-fold.c: Include "tree-cfg.h".
3111         (gimple_fold_call): Use should_remove_lhs_p.
3113 2016-05-24  Richard Biener  <rguenther@suse.de>
3115         PR tree-optimization/71253
3116         * cfganal.h (control_dependences): Make robust against edge
3117         and BB removal.
3118         (control_dependences::control_dependences): Remove edge_list argument.
3119         (control_dependences::get_edge): Remove.
3120         (control_dependences::get_edge_src): Add.
3121         (control_dependences::get_edge_dest): Likewise.
3122         (control_dependences::m_el): Make a vector of edge src/dest index.
3123         * cfganal.c (control_dependences::find_control_dependence): Adjust.
3124         (control_dependences::control_dependences): Likewise.
3125         (control_dependences::~control_dependence): Likewise.
3126         (control_dependences::get_edge): Remove.
3127         (control_dependences::get_edge_src): Add.
3128         (control_dependences::get_edge_dest): Likewise.
3129         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
3130         get_edge_src.
3131         (perform_tree_ssa_dce): Adjust.
3132         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
3133         get_edge_src.
3134         (pass_loop_distribution::execute): Adjust.  Do loop destroying
3135         conditional on changed.
3137 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3139         PR target/69857
3140         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
3141         return.  Reindent transformation comment and mention the ARM state
3142         behavior.
3144 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
3146         PR middle-end/71252
3147         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
3148         after build_and_add_sum creates new use stmt.
3150 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
3152         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
3153         load_lanes/grouped_load classification comes first.  Don't check
3154         whether the vectorization factor is a multiple of the group size
3155         for load_lanes.
3157 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
3159         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
3160         GROUP_GAP for single-element interleaving.
3161         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
3162         variable.
3164 2016-05-24  Richard Biener  <rguenther@suse.de>
3166         PR middle-end/70434
3167         PR c/69504
3168         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
3169         bases which are accessed with non-invariant indices.
3170         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
3171         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
3173 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
3175         PR middle-end/71170
3176         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
3177         (add_to_ops_vec): Add stmt_to_insert.
3178         (add_repeat_to_ops_vec): Init stmt_to_insert.
3179         (insert_stmt_before_use): New.
3180         (transform_add_to_multiply): Remove mult_stmt insertion and add it
3181         to ops vector.
3182         (get_ops): Init stmt_to_insert.
3183         (maybe_optimize_range_tests): Likewise.
3184         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
3185         (rewrite_expr_tree_parallel): Likewise.
3186         (reassociate_bb): Likewise.
3188 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3190         PR target/71201
3191         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
3192         ISA 3.0 xxperm fusion alternative.
3193         (altivec_vperm_v8hiv16qi): Likewise.
3194         (altivec_vperm_<mode>_uns_internal): Likewise.
3195         (vperm_v8hiv4si): Likewise.
3196         (vperm_v16qiv8hi): Likewise.
3198 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3199             Kelvin Nilsen  <kelvin@gcc.gnu.org>
3201         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
3202         vpermr/xxpermr on ISA 3.0.
3203         (altivec_expand_vec_perm_le): Likewise.
3204         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
3205         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
3206         ISA 3.0.
3208 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
3210         * config/i386/i386.h (IS_STACK_MODE): Enable for
3211         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
3212         SSE_FLOAT_MODE_P macros.
3213         * config/i386/i386.c (ix86_preferred_reload_class): Use
3214         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
3215         Cleanup regclass processing for CONST_DOUBLE_P.
3216         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
3217         (ix86_rtx_costs): Remove redundant TARGET_80387 check
3218         with IS_STACK_MODE macro.
3219         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
3220         with TARGET_SSE2.
3221         (*movdf_internal): Use IS_STACK_MODE macro.
3222         (*movsf_internal): Ditto.
3224 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
3226         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
3227         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
3229 2016-05-23  Jeff Law  <law@redhat.com>
3231         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
3232         extracted from ...
3233         (fsm_find_control_statement_thread_paths): Call it.
3235 2016-05-23  Martin Jambor  <mjambor@suse.cz>
3237         PR ipa/71234
3238         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
3239         from_global_constant if t is not NULL.
3241 2016-05-23  Marek Polacek  <polacek@redhat.com>
3243         PR c/49859
3244         * common.opt (Wswitch-unreachable): New option.
3245         * doc/invoke.texi: Document -Wswitch-unreachable.
3246         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
3247         warning.
3249 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
3251         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
3252         TMR_INDEX is non-NULL.
3254 2016-05-23  Richard Biener  <rguenther@suse.de>
3256         PR tree-optimization/71230
3257         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
3258         (try_special_add_to_ops): ... here.  Always test for single-use.
3260 2016-05-23  Martin Jambor  <mjambor@suse.cz>
3262         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
3263         default block if a PHI node in the original one would be resized.
3265 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3267         PR tree-optimization/58135
3268         * tree-vect-slp.c: When group size is not multiple
3269         of vector size, allow splitting of store group at
3270         vector boundary.
3272 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
3274         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
3276 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
3278         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
3279         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
3280         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
3281         of 64x2.
3283         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
3284         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
3285         v constraint instead of x and vinserti32x4 insn.
3287         * config/i386/sse.md (i128vldq): New mode iterator.
3288         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
3289         avx512dq and avx512vl alternatives.
3291         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
3292         constraint, use maybe_evex prefix instead of vex.
3293         (vec_dupv4sf): Use v constraint instead of x for output
3294         operand except for noavx alternative, use Yv constraint
3295         instead of x for input.  Use maybe_evex prefix instead of vex.
3296         (*vec_dupv4si): Likewise.
3297         (*vec_dupv2di): Likewise.
3299 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
3301         PR middle-end/40921
3302         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
3303         (linearize_expr_tree): Call try_special_add_to_ops.
3304         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
3306 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3308         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
3309         to computed stack_usage.
3311 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3313         PR target/71103
3314         * config/avr/avr.md (define_expand "mov<mode>"): If the source
3315         operand is subreg (symbol_ref) then move the symbol ref to register.
3317 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
3319         * tree.c (array_at_struct_end_p): Look through MEM_REF.
3321 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
3323         PR middle-end/71179
3324         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
3325         VECTOR type.
3327 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
3329         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
3330         ranges by calling get_single_symbol and tidy up.  Look more closely
3331         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
3333 2016-05-20  Jeff Law  <law@redhat.com>
3335         * bitmap.c (bitmap_find_bit): Remove useless test.
3337 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
3339         * function.c (thread_prologue_and_epilogue_insns): Commit the
3340         insertion of the epilogue.
3342 2016-05-20  Martin Jambor  <mjambor@suse.cz>
3344         PR tree-optimization/70884
3345         * tree-sra.c (initialize_constant_pool_replacements): Do not check
3346         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
3347         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
3348         of constant pool data as a reason for scalarization.
3350 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
3352         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
3353         for naked functions.
3354         (thumb1_expand_prologue): Likewise.
3356 2016-05-20  Nathan Sidwell  <nathan@acm.org>
3358         * config/nvptx/nptx.c (nvptx_option_override): Only set
3359         flag_toplevel_reorder, if not explicitly specified.  Set
3360         flag_no_common, unless explicitly specified.
3362 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
3364         * calls.c (can_implement_as_sibling_call_p): Mark param
3365         reg_parm_stack_space with ATTRIBUTE_UNUSED.
3367 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
3369         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
3370         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
3371         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
3372         constants.
3373         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
3374         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
3375         and CASE_CONST_ANY.
3377 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
3379         * config/nvptx/nvptx.md (sincossf3): New pattern.
3381 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
3383         * calls.c (maybe_complain_about_tail_call): New function.
3384         (initialize_argument_information): Call
3385         maybe_complain_about_tail_call when clearing *may_tailcall.
3386         (can_implement_as_sibling_call_p): Call
3387         maybe_complain_about_tail_call when returning false.
3388         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
3389         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
3390         if tail-call optimization fails.
3391         * cfgexpand.c (expand_call_stmt): Initialize
3392         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
3393         * gimple-pretty-print.c (dump_gimple_call): Dump
3394         gimple_call_must_tail_p.
3395         * gimple.c (gimple_build_call_from_tree): Call
3396         gimple_call_set_must_tail with the value of
3397         CALL_EXPR_MUST_TAIL_CALL.
3398         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
3399         (gimple_call_set_must_tail): New function.
3400         (gimple_call_must_tail_p): New function.
3401         * print-tree.c (print_node): Update printing of TREE_STATIC
3402         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
3403         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
3404         trailing comment listing applicable flags.
3405         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
3407 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
3409         * calls.c (expand_call): Move "Rest of purposes for tail call
3410         optimizations to fail" to...
3411         (can_implement_as_sibling_call_p): ...this new function, and
3412         split into multiple "if" statements.
3414 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
3416         * cfgloop.h (expected_loop_iterations_unbounded,
3417         expected_loop_iterations): Unconstify.
3418         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
3419         profile with known upper bound; return 3 when profile is absent.
3420         (expected_loop_iterations): Update.
3422 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
3424         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
3425         and get_max_loop_iterations_int.
3427 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
3429         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
3430         realistic upper bounds here.
3432 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
3434         PR c++/71210
3435         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
3436         calls if the LHS is variable length or has addressable type.
3437         If targets[0]->decl is a noreturn call with void return type and
3438         zero arguments, adjust fntype and remove lhs in that case.
3440 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
3442         PR tree-optimization/71079
3443         PR tree-optimization/71206
3444         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
3446 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3448         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
3449         (get_vec_alignment_for_array_decl): Likewise.
3450         (get_vec_alignment_for_record_decl): Likewise.
3451         (increase_alignment::execute): Move code to find alignment to
3452         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
3453         (type_align_map): New hash_map.
3455 2016-05-20  Richard Guenther  <rguenther@suse.de>
3457         PR tree-optimization/29756
3458         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
3459         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
3460         * fold-const.c (operand_equal_p): Likewise.
3461         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
3462         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
3463         * tree-inline.c (estimate_operator_cost): Likewise.
3464         * tree-pretty-print.c (dump_generic_node): Likewise.
3465         * tree-ssa-operands.c (get_expr_operands): Likewise.
3466         * cfgexpand.c (expand_debug_expr): Likewise.
3467         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
3468         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
3469         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
3470         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
3471         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
3472         (execute_update_addresses_taken): Do it.
3474 2016-05-20  Richard Biener  <rguenther@suse.de>
3476         PR tree-optimization/71185
3477         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
3478         register operations.
3480 2016-05-20  Richard Biener  <rguenther@suse.de>
3482         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
3483         gimple_seq_add_seq_without_update.
3484         (release_bb_predicate): Assert we have no operands to free.
3485         (if_convertible_loop_p_1): Calculate post dominators later.
3486         Do not free BB predicates here.
3487         (combine_blocks): Do not recompute BB predicates.
3488         (version_loop_for_if_conversion): Save BB predicates around
3489         loop versioning.
3491 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
3493         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
3494         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
3495         code.  Ignore sibcalls on EDGE_IGNORE edges.
3496         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
3497         on edges for sibcalls that run without prologue.  The rest of the
3498         function is combined from...
3499         (fix_fake_fallthrough_edge): ... this, and ...
3500         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
3501         function argument, make it a local variable.
3503 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
3505         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
3506         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
3507         for 32-bit mode and SEH for 64-bit.
3508         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
3509         TARGET_64BIT_DEFAULT.
3511 2016-05-19  Ryan Burn  <contact@rnburn.com>
3513         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
3514         * gengtype.c (open_base_files): Add cilk.h to ifiles.
3516 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
3518         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
3519         force pending loads from memory.
3521 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3523         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
3524         (UNSPEC_DARN_32): New unspec constant.
3525         (UNSPEC_DARN_RAW): New unspec constant.
3526         (darn_32): New instruction.
3527         (darn_raw): New instruction.
3528         (darn): New instruction.
3529         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
3530         support and documentation for this macro.
3531         (BU_P9_MISC_1): New macro definition.
3532         (BU_P9_64BIT_MISC_0): New macro definition.
3533         (BU_P9_MISC_0): New macro definition.
3534         (darn_32): New builtin definition.
3535         (darn_raw): New builtin definition.
3536         (darn): New builtin definition.
3537         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
3538         RS6000_BUILTIN_0 directives to surround each occurrence of
3539         #include "rs6000-builtin.def".
3540         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
3541         RS6000_BTM_64BIT flags to the returned mask, depending on
3542         configuration.
3543         (def_builtin): Correct an error in the assignments made to the
3544         debugging variable attr_string.
3545         (rs6000_expand_builtin): Add support for no-operand built-in
3546         functions.
3547         (builtin_function_type): Remove fatal_error assertion that is no
3548         longer valid.
3549         (rs6000_common_init_builtins): Add support for no-operand built-in
3550         functions.
3551         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
3552         definition.
3553         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
3554         definition.
3555         (RS6000_BTM_64BIT): New macro definition.
3556         * doc/extend.texi: Document __builtin_darn (void),
3557         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
3558         functions.
3560 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
3562         * tree-vect-loop.c (vect_analyze_loop_2): Use also
3563         max_loop_iterations_int.
3565 2016-05-19  Marek Polacek  <polacek@redhat.com>
3567         PR tree-optimization/71031
3568         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
3569         condition and adjust the code a bit.
3571 2016-05-19  Martin Liska  <mliska@suse.cz>
3573         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
3574         auto_vec instead of vec.
3576 2016-05-19  Martin Liska  <mliska@suse.cz>
3578         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
3580 2016-05-19  Martin Liska  <mliska@suse.cz>
3582         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
3584 2016-05-19  Martin Liska  <mliska@suse.cz>
3586         * ipa-pure-const.c (set_function_state): Remove an existing
3587         funct_state.
3588         (remove_node_data): Do not free it as it's released
3589         in set_function_state.
3591 2016-05-19  Martin Liska  <mliska@suse.cz>
3593         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
3594         bitmap.
3596 2016-05-19  Martin Liska  <mliska@suse.cz>
3598         * omp-simd-clone.c (simd_clone_adjust): Release vector.
3600 2016-05-19  Martin Liska  <mliska@suse.cz>
3602         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
3603         an auto_vec instead of re-creating it.
3605 2016-05-19  Martin Liska  <mliska@suse.cz>
3607         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
3608         auto_vec instead of vec.
3610 2016-05-19  Martin Liska  <mliska@suse.cz>
3612         * lto-section-in.c (lto_get_section_data): Call
3613         lto_check_version with additional argument.
3614         * lto-streamer.c (lto_check_version): Add new argument.
3615         * lto-streamer.h (lto_check_version): Likewise.
3617 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3619         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
3620         Don't add cost of inner memory when handling sign-extended loads.
3622 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
3624         PR rtl-optimization/71148
3625         * cse.c (cse_main): Free dominance info.
3626         (rest_of_handle_cse): Don't free dominance info.
3627         (rest_of_handle_cse2): Likewise.
3628         (rest_of_handle_cse_after_global_opts): Likewise.
3630 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3632         PR target/71056
3633         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
3634         NULL_TREE early if NEON is not available.  Remove now redundant check
3635         in ARM_CHECK_BUILTIN_MODE.
3637 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
3639         PR sanitizer/64354
3640         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
3641         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
3642         * doc/cpp.texi: Document new macros.
3644 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
3646         PR tree-optimization/69848
3647         * tree-vect-loop.c (vectorizable_reduction): Don't factor
3648         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
3650 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
3652         * function.c (thread_prologue_and_epilogue_insn): Move the
3653         "goto epilogue_done" one block later.
3655 2016-05-19  Richard Biener  <rguenther@suse.de>
3657         PR tree-optimization/70729
3658         * passes.def: Move LIM pass before PRE.  Remove no longer
3659         required copyprop and move first DCE out of the loop pipeline.
3661 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
3663         PR driver/69265
3664         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
3665         (OBJS-libcommon-target): ...here.
3666         * opts-common.c: Include spellcheck.h.
3667         (cmdline_handle_error): Build a vec of valid options and use it
3668         to suggest provide hints for misspelled arguments.
3670 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
3672         PR c++/71100
3673         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
3674         lhs if it has TREE_ADDRESSABLE type.
3676 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
3678         PR target/71145
3679         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
3680         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
3682 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3684         PR ipa/69708
3685         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
3686         input for NOP_EXPR pass-through functions.
3687         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
3688         aggregate global constant VAR_DECLs in constant jump functions.
3690 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3692         PR ipa/69708
3693         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
3694         from TREE_READONLY parameters.
3696 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3698         PR ipa/69708
3699         * cgraph.h (cgraph_indirect_call_info): New field
3700         guaranteed_unmodified.
3701         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
3702         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
3703         appropriate.
3704         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
3705         pass the parameter value to ipa_find_agg_cst_for_param.
3706         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
3707         guaranteed_unmodified, store AA results there instead of bailing out
3708         if present.
3709         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
3710         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
3711         (find_constructor_constant_at_offset): New function.
3712         (ipa_find_agg_cst_from_init): Likewise.
3713         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
3714         static initializers of contants, report back through a new paameter
3715         from_global_constant if that was the case.
3716         (try_make_edge_direct_simple_call): Also pass parameter value to
3717         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
3718         appropriate.
3719         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
3720         (ipa_read_indirect_edge_info): Likewise.
3721         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
3722         (ipa_load_from_parm_agg): Likewise.
3724 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
3726         PR rtl-optimization/71150
3727         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
3728         check.
3730 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3732         PR target/70915
3733         * config/rs6000/constraints.md (wE constraint): New constraint
3734         for a vector constant that can be loaded with XXSPLTIB.
3735         (wM constraint): New constraint for a vector constant of a 1's.
3736         (wS constraint): New constraint for a vector constant that can be
3737         loaded with XXSPLTIB and a vector sign extend instruction.
3738         * config/rs6000/predicates.md (xxspltib_constant_split): New
3739         predicates for wE/wS constraints.
3740         (xxspltib_constant_nosplit): Likewise.
3741         (easy_vector_constant): Add support for constants that can be
3742         loaded via XXSPLTIB.
3743         (all_ones_constant): New predicate for vector constant with all
3744         1's set.
3745         (splat_input_operand): Add support for ISA 3.0 word splat operations.
3746         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
3747         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
3748         instruction and possibly with a sign extension.
3749         (output_vec_const_move): Add support for XXSPLTIB. If we are
3750         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
3751         instead of XXLXOR/XXLORC.
3752         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
3753         operations.
3754         (rs6000_legitimize_reload_address): Likewise.
3755         (rs6000_output_move_128bit): Use output_vec_const_move to emit
3756         constants.
3757         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
3758         combine VSX_M and VSX_M2 into one iterator.
3759         (VSX_M2): Likewise.
3760         (VSINT_84): New iterators for loading constants with XXSPLTIB.
3761         (VSINT_842): Likewise.
3762         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
3763         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
3764         XXSPLTIB instruction.
3765         (xxspltib_<mode>_nosplit): Likewise.
3766         (xxspltib_<mode>_split): New insn to load up constants with
3767         XXSPLTIB and a sign extend instruction.
3768         (vsx_mov<mode>): Replace single move that handled all vector types
3769         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
3770         moves (when -mvsx-timode is in effect) into the main vector
3771         moves.  Eliminate separate moves for <VSr> <VSa>, where the
3772         preferred register class (<VSr>) is listed first, and the
3773         secondary register class (<VSa>) is listed second with a '?' to
3774         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
3775         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
3776         that if the register was involved in a slow operation, the
3777         clear/set operation does not wait for the slow operation to
3778         finish.  Adjust the length attributes for 32-bit mode.  Use
3779         rs6000_output_move_128bit and drop the use of the string
3780         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
3781         spacing so that the alternatives and attributes don't generate
3782         long lines, and put things in columns, so that it is easier to
3783         match up the operands and attributes with the insn alternatives.
3784         (vsx_mov<mode>_64bit): Likewise.
3785         (vsx_mov<mode>_32bit): Likewise.
3786         (vsx_movti_64bit): Fold movti into normal vector moves.
3787         (vsx_movti_32bit): Likewise.
3788         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
3789         splat instructions.
3790         (vsx_splat_v4si_internal): Likewise.
3791         (vsx_splat_v4sf_internal): Likewise.
3792         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
3793         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
3794         extend vector elements.
3795         (vsx_sign_extend_hi_<mode>): Likewise.
3796         (vsx_sign_extend_si_v2di): Likewise.
3797         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
3798         declaration.
3799         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
3800         constraints.  Add trailing period to wL documentation.
3802 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
3804         PR middle-end/71020
3805         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
3806         * tree-dfa.c (replace_abnormal_ssa_names): New function.
3807         * tree-call-cdce.c: Include tree-dfa.h.
3808         (can_guard_call_p): New function, extracted from...
3809         (can_use_internal_fn): ...here.
3810         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
3811         and return void.
3812         (shrink_wrap_one_built_in_call): Likewise.
3813         (use_internal_fn): Likewise.
3814         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
3815         and return void.  Call replace_abnormal_ssa_names.
3816         (pass_call_cdce::execute): Check can_guard_call_p during the
3817         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
3818         will always change something.
3820 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3822         PR ipa/70646
3823         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
3824         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
3826 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3828         PR ipa/70646
3829         * ipa-inline.h (condition): New field size.
3830         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
3831         for comaprison and store it into the new condition.
3832         (evaluate_conditions_for_known_args): Use condition size to check
3833         access sizes for all but CHANGED conditions.
3834         (unmodified_parm_1): New parameter size_p, store access size into it.
3835         (unmodified_parm): Likewise.
3836         (unmodified_parm_or_parm_agg_item): Likewise.
3837         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
3838         (set_cond_stmt_execution_predicate): Extract access sizes and store
3839         them to conditions.
3840         (set_switch_stmt_execution_predicate): Likewise.
3841         (will_be_nonconstant_expr_predicate): Likewise.
3842         (will_be_nonconstant_predicate): Likewise.
3843         (inline_read_section): Stream condition size.
3844         (inline_write_summary): Likewise.
3846 2016-05-18  Richard Biener  <rguenther@suse.de>
3848         * tree-ssa-loop-im.c (determine_max_movement): Properly add
3849         condition cost to PHI cost instead of total_cost.
3851 2016-05-18  Martin Liska  <mliska@suse.cz>
3853         PR fortran/70856
3854         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
3855         merged variables.
3857 2016-05-18  Richard Biener  <rguenther@suse.de>
3859         * lto-streamer.h (LTO_major_version): Bump to 6.
3861 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
3863         * function.c (make_split_prologue_seq, make_prologue_seq,
3864         make_epilogue_seq): New functions, factored out from...
3865         (thread_prologue_and_epilogue_insns): Here.
3867 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
3869         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
3870         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
3871         of before.  Add a comment.
3873 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
3875         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
3876         expression pointer, not pointer to the pointer.
3878 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
3880         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
3881         (avx2_pbroadcast<mode>): Add another alternative with v instead
3882         of x constraints in it, using <pbroadcast_evex_isa> isa.
3883         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
3885         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
3886         constraint x instead of v in second alternative, add avx512bw
3887         alternative.
3889         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
3890         constraint x instead of v in second alternative, add avx512bw
3891         alternative.
3893         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
3894         constraint x instead of v in second alternative, add avx512bw
3895         alternative.
3897         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
3898         avx512bw alternative.
3900 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3902         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
3903         array to 128 chars.
3904         (define_insn "*andnottf3"): Ditto.
3905         (define_insn "*<code><mode>3"/any_logic): Ditto.
3906         (define_insn "*<code>tf3"/any_logic): Ditto.
3907         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
3908         operand to block AVX-512VL insn variant emit when it is not enabled.
3910 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3912         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
3913         constraint fot SF mode.
3915 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
3916             Kirill Yukhin  <kirill.yukhin@intel.com>
3918         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
3919         modifiers.
3920         (define_insn "rsqrt14<mode>"): Ditto.
3921         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3922         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3923         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
3924         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3925         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
3926         Ditto.
3927         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
3928         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
3929         * config/i386/i386.c (ix86_print_operand): Expand check for size
3930         override codes for Intel syntax.
3932 2016-05-18  Richard Biener  <rguenther@suse.de>
3934         PR tree-optimization/71168
3935         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
3936         initialization earlier.
3938 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
3940         * config/aarch64/aarch64-simd.md
3941         (aarch64_reduc_plus_internal<mode>): Rename to...
3942         (reduc_plus_scal): ...This, and remove previous implementation.
3944 2016-05-18  Richard Biener  <rguenther@suse.de>
3946         * passes.def: Put late dse and cd_dce in canonical order.
3948 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
3950         * ipa-inline-transform.c (preserve_function_body_p): Look for
3951         first non-thunk clone.
3952         (save_function_body): Save into first non-thunk.
3953         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
3954         up call stmt id.
3955         (lto_output_node): Inline thunks don't need body in every
3956         partition.
3957         * lto-streamer-in.c: Do not fixup thunk clones.
3958         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
3959         thunks.
3960         * tree-inline.c (copy_bb): Be prepared for target node to be new after
3961         folding suceeds.
3963 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
3965         PR middle-end/63586
3966         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
3967         (reassociate_bb): Call transform_add_to_multiply.
3969 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
3971         * config/aarch64/aarch64.c (all_extensions): Removed unused
3972         static variable.
3974 2016-05-17  Nathan Sidwell  <nathan@acm.org>
3976         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
3977         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
3979 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
3981         PR tree-optimization/54579
3982         PR middle-end/55299
3983         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
3985 2016-05-17  Marek Polacek  <polacek@redhat.com>
3987         PR ipa/71146
3988         * tree-inline.c (expand_call_inline): Call
3989         maybe_remove_unused_call_args.
3991 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
3993         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
3994         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
3995         * doc/md.texi (fmin@var{m}3): Likewise.
3997 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
3999         * match.pd (X & C): New transformation.
4001 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
4003         * match.pd (~X & Y): New transformation.
4005 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
4007         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
4008         information for new SSA_NAME.
4009         (simplify_conversion_using_ranges): Get range through get_range_info
4010         instead of get_value_range.
4012 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
4014         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
4015         Remove inline assembly.
4016         (vmvn_s16): Likewise.
4017         (vmvn_s32): Likewise.
4018         (vmvn_u8): Likewise.
4019         (vmvn_u16): Likewise.
4020         (vmvn_u32): Likewise.
4021         (vmvnq_s8): Likewise.
4022         (vmvnq_s16): Likewise.
4023         (vmvnq_s32): Likewise.
4024         (vmvnq_u8): Likewise.
4025         (vmvnq_u16): Likewise.
4026         (vmvnq_u32): Likewise.
4027         (vmvn_p8): Likewise.
4028         (vmvnq_p16): Likewise.
4030 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
4032         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
4033         Use builtin.
4034         (vmul_n_s16): Likewise.
4035         (vmul_n_s32): Likewise.
4036         (vmul_n_u16): Likewise.
4037         (vmul_n_u32): Likewise.
4038         (vmulq_n_f32): Likewise.
4039         (vmulq_n_f64): Likewise.
4040         (vmulq_n_s16): Likewise.
4041         (vmulq_n_s32): Likewise.
4042         (vmulq_n_u16): Likewise.
4043         (vmulq_n_u32): Likewise.
4045 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
4047         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
4048         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
4050 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
4052         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
4053         to *aarch64_fma4_elt_from_dup<mode>.
4054         (*aarch64_fnma4_elt_to_128df): Rename to
4055         *aarch64_fnma4_elt_from_dup<mode>.
4056         * config/aarch64/arm_neon.h (vfma_n_f64): New.
4057         (vfms_n_f32): Likewise.
4058         (vfms_n_f64): Likewise.
4059         (vfmsq_n_f32): Likewise.
4060         (vfmsq_n_f64): Likewise.
4062 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
4064         * wide-int.h: Change fixed_wide_int_storage from class to struct.
4066 2016-05-17  Richard Biener  <rguenther@suse.de>
4068         PR tree-optimization/71132
4069         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
4070         Only add control dependences for blocks in the loop.
4071         (build_rdg): Adjust.
4072         (generate_code_for_partition): Return whether loop should
4073         be destroyed and delay that.
4074         (distribute_loop): Likewise.
4075         (pass_loop_distribution::execute): Record loops to be destroyed
4076         and perform delayed destroying of loops.
4078 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4080         PR target/70809
4081         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
4083 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
4085         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
4087 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
4089         PR target/71114
4090         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
4091         insertion point for instructions generated by validize_mem.
4093 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
4095         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
4096         in brackets.
4098 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
4100         * config/aarch64/aarch64.c
4101         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
4102         rather than a macro.
4104 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
4106         * doc/invoke.texi (AArch64 Options): Various updates.
4108 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4110         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
4111         into instrumentation thunks.
4112         * cif-code.def (CIF_CHKP): New.
4114 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
4116         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
4118 2016-05-16  Martin Jambor  <mjambor@suse.cz>
4120         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
4121         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
4123 2016-05-16  Marek Polacek  <polacek@redhat.com>
4125         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
4126         commentary.
4128 2016-05-16  Martin Jambor  <mjambor@suse.cz>
4130         PR hsa/70857
4131         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
4132         the outlined kernel function.
4134 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
4136         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
4137         (ISA_HAS_DLSA): Ditto.
4139 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
4141         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
4143 2016-05-16  Nathan Sidwell  <nathan@acm.org>
4145         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
4146         (nvptx_name_replacement): Restore.  Add comment.
4147         (write_fn_proto, write_fn_proto_from_insn,
4148         nvptx_output_call_insn): Restore
4149         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
4151 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
4153         * config/aarch64/aarch64.md
4154         (add<mode>3_compareC_cconly_imm): Remove use of %w.
4155         (add<mode>3_compareC_imm): Likewise.
4156         (<optab>si3_uxtw): Split into register and immediate variants.
4157         (andsi3_compare0_uxtw): Likewise.
4158         (and<mode>3_compare0): Likewise.
4159         (and<mode>3nr_compare0): Likewise.
4160         (stack_protect_test_<mode>): Don't use %x for memory operands.
4162 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
4164         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
4166 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
4168         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
4169         Split integer shifts into shift_reg and bfm.
4170         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4171         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4172         (ror<mode>3_insn): Likewise.
4173         (<optab>si3_insn_uxtw): Likewise.
4174         (<optab><mode>3_insn): Change to rotate_imm.
4175         (extr<mode>5_insn_alt): Likewise.
4176         (extrsi5_insn_uxtw): Likewise.
4177         (extrsi5_insn_uxtw_alt): Likewise.
4179 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
4181         * doc/tm.texi: Regenerate.
4182         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
4183         (TARGET_INVALID_RETURN_TYPE): Remove.
4184         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
4185         TARGET_INVALID_RETURN_TYPE.
4186         * target.def (invalid_parameter_type): Remove.
4187         (invalid_return_type): Remove.
4189 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4191         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
4192         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
4193         calls from thunk.
4194         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
4195         gimple body.
4196         (preserve_function_body_p): No need to preserve function body
4197         * cif-codes.def (CIF_THUNK): Remove.
4198         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
4200 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4202         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
4204 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4206         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
4207         for thunks.
4209 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4211         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
4212         (inline_small_functions): Do not look for function symbol when
4213         resetting caches.
4215 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4217         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
4218         of inline thunks
4220 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
4221             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4222             Jiong Wang  <jiong.wang@arm.com>
4224         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
4225         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
4226         Define __ARM_FP16_ARGS when appropriate.
4227         * config/arm/arm.c (arm_invalid_parameter_type): Remove
4228         declaration.
4229         (arm_invalid_return_type): Likewise.
4230         (TARGET_INVALID_PARAMETER_TYPE): Remove.
4231         (TARGET_INVALID_RETURN_TYPE): Remove.
4232         (aapcs_vfp_sub_candidate): Allow HFmode.
4233         (aapcs_vfp_allocate): Add comment.  Support HFmode.
4234         (aapcs_vfp_allocate_return_reg): Likewise.
4235         (struct aapcs_cp_arg_layout): Slightly reword comments for
4236         is_return_candidate and allocate_return_reg.
4237         (output_mov_vfp): Update assert.
4238         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
4239         condition.
4240         (arm_invalid_parameter_type): Remove.
4241         (amr_invalid_return_type): Remove.
4242         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
4243         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
4244         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
4246 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
4248         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
4249         * config/aarch64/arch64-protos.h
4250         (aarch64_legitimize_reload_address): Remove.
4251         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
4252         Remove.
4254 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
4256         * configure.ac: Add ACX_NONCANONICAL_HOST.
4257         * configure: Regenerate.
4258         * Makefile.in: Set host_noncanonical.
4260 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
4262         PR target/71097
4263         * config/i386/i386.md (*movtf_internal): Before register allocation,
4264         do not allow FP constants for CM_MEDIUM memory model, allow only
4265         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
4266         (*movxf_internal): Ditto.
4267         (*movdf_internal): Ditto.
4268         (*movsf_internal): Ditto.
4270 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
4272         PR rtl-optimization/67483
4273         * combine.c (make_compound_operation): Don't call extract_left_shift
4274         with negative shift amounts.
4276 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
4278         PR bootstrap/71071
4279         * fold-const.c (fold_checksum_tree): Allow modification
4280         of TYPE_ALIAS_SET during folding.
4282         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
4283         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
4284         (ix86_split_to_parts): Likewise.  Fix up formatting.
4286 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
4288         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
4289         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
4290         printf format.
4292 2016-05-13  Nathan Sidwell  <nathan@acm.org>
4294         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
4295         (nvptx_name_replacement): Delete.
4296         (write_fn_proto, write_fn_proto_from_insn,
4297         nvptx_output_call_insn): Remove nvptx_name_replacement call.
4298         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
4299         * langhooks.c (add_builtin_funcction_common): Call
4300         targetm.mangle_decl_assembler_name.
4302         * config/nvptx/nvptx.c (write_fn_proto): Handle
4303         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
4305 2016-05-13  Martin Liska  <mliska@suse.cz>
4307         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
4308         and PRIu64 in printf format.
4310 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4312         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
4313         comment.
4315 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4317         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
4318         Change --param max-completely-peeled-times to
4319         --param max-completely-peel-times in dump file printing.
4321 2016-05-13  Richard Biener  <rguenther@suse.de>
4323         PR tree-optimization/42587
4324         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
4325         (find_bswap_or_nop_1): Likewise.
4326         (bswap_replace): Likewise.
4328 2016-05-13  Martin Liska  <mliska@suse.cz>
4330         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
4331         Initialize a variable with default value.
4333 2016-05-13  Martin Liska  <mliska@suse.cz>
4335         * doc/invoke.texi: Enhance explanation of error recovery
4336         of sanitizers.
4338 2016-05-13  Martin Liska  <mliska@suse.cz>
4340         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
4341         (struct cost_pair): Change inv_expr_id (int) to inv_expr
4342         (iv_inv_expr_ent *).
4343         (struct iv_inv_expr_ent): Comment struct fields.
4344         (sort_iv_inv_expr_ent): New function.
4345         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
4346         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
4347         a hash_map between iv_inv_expr_ent and number of usages.
4348         (niter_for_exit): Fix coding style.
4349         (tree_ssa_iv_optimize_init): Use renamed variable.
4350         (determine_base_object): Fix coding style.
4351         (alloc_iv): Likewise.
4352         (find_interesting_uses_outside): Likewise.
4353         (add_candidate_1): Likewise.
4354         (add_standard_iv_candidates): Likewise.
4355         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
4356         (prepare_decl_rtl): Fix coding style.
4357         (get_address_cost): Likewise.
4358         (get_shiftadd_cost): Likewise.
4359         (force_expr_to_var_cost): Likewise.
4360         (compare_aff_trees): Likewise.
4361         (get_expr_id): Restructure the function.
4362         (get_loop_invariant_expr_id): Renamed to
4363         get_loop_invariant_expr.
4364         (get_computation_cost_at): Replace usage of inv_expr_id with
4365         inv_expr.
4366         (get_computation_cost): Likewise.
4367         (determine_group_iv_cost_generic): Likewise.
4368         (determine_group_iv_cost_address): Likewise.
4369         (iv_period): Fix coding style.
4370         (iv_elimination_compare_lt): Likewise.
4371         (may_eliminate_iv): Likewise.
4372         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
4373         inv_expr.
4374         (determine_group_iv_costs): Dump invariant expressions.
4375         (iv_ca_recount_cost): Use the newly added hash_map.
4376         (iv_ca_set_remove_invariants): Fix coding style.
4377         (iv_ca_set_add_invariants): Fix coding style.
4378         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
4379         invariants.
4380         (iv_ca_set_cp): Likewise.
4381         (iv_ca_new): Initialize the newly added hash_map and remove
4382         initialization of fields.
4383         (iv_ca_free): Delete the hash_map.
4384         (iv_ca_dump): Dump invariant expressions.
4385         (iv_ca_extend): Fix coding style.
4386         (try_add_cand_for): Likewise.
4387         (create_new_ivs): Dump information about # of avg iterations and
4388         # of used invariant expressions.
4389         (rewrite_use_compare): Fix coding style.
4390         (free_loop_data): Set default value for max_inv_expr_id.
4392 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
4394         * cse.c (rest_of_handle_cse): Use cleanup_cfg
4395         returned value cse_cfg_altered computation.
4396         (rest_of_handle_cse2): Likewise.
4397         (rest_of_handle_cse_after_global_opts): Likewise.
4399 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4401         PR target/53440
4402         * config/arm/arm.c (arm32_output_mi_thunk): New.
4403         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
4404         to split Thumb1 vs TARGET_32BIT functionality.
4405         (arm_thumb1_mi_thunk): New.
4407 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4409         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
4410         to true.
4412 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4414         PR target/71080
4415         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
4417 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
4419         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
4420         (expand_builtin_trap): Emit a regular call.
4421         (set_builtin_user_assembler_name): Remove obsolete cases.
4422         * dse.c (scan_insn): Adjust.
4423         * except.c: Include calls.h.
4424         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
4425         emit a regular call to setjmp.
4426         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
4427         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
4428         (emit_block_move_via_libcall): Delete.
4429         (block_move_fn): Delete.
4430         (init_block_move_fn): Likewise.
4431         (emit_block_move_libcall_fn): Likewise.
4432         (emit_block_op_via_libcall): New function.
4433         (set_storage_via_libcall): Tidy up and use memset builtin.
4434         (block_clear_fn): Delete.
4435         (init_block_clear_fn): Likewise.
4436         (clear_storage_libcall_fn): Likewise.
4437         (expand_assignment): Call emit_block_move_via_libcall.
4438         Do not include gt-expr.h.
4439         * expr.h (emit_block_op_via_libcall): Declare.
4440         (emit_block_copy_via_libcall): New inline function.
4441         (emit_block_move_via_libcall): Likewise.
4442         (emit_block_comp_via_libcall): Likewise.
4443         (block_clear_fn): Delete.
4444         (init_block_move_fn): Likewise.
4445         (init_block_clear_fn): Likewise.
4446         (emit_block_move_via_libcall): Likewise.
4447         (set_storage_via_libcall): Add default parameter value.
4448         * libfuncs.h (enum libfunc_index): Remove obsolete values.
4449         (abort_libfunc): Delete.
4450         (memcpy_libfunc): Likewise.
4451         (memmove_libfunc): Likewise.
4452         (memcmp_libfunc): Likewise.
4453         (memset_libfunc): Likewise.
4454         (setbits_libfunc): Likewise.
4455         (setjmp_libfunc): Likewise.
4456         (longjmp_libfunc): Likewise.
4457         (profile_function_entry_libfunc): Likewise.
4458         (profile_function_exit_libfunc): Likewise.
4459         (gcov_flush_libfunc): Likewise.
4460         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
4461         and DECL_VISIBILITY on the declaration.
4462         (init_optabs): Do not initialize obsolete libfuncs.
4463         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
4464         * tree-core.h (ECF_RET1): Define.
4465         (ECF_TM_PURE): Adjust.
4466         (ECF_TM_BUILTIN): Likewise.
4467         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
4468         (build_common_builtin_nodes): Initialize abort builtin.
4469         Add ECF_RET1 on memcpy, memmove and memset builtins.
4470         Pass final flags for alloca and alloca_with_align builtins.
4471         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
4472         obsolete builtins.
4473         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
4474         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
4475         set_storage_via_libcall and call emit_block_copy_via_libcall.
4477 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
4479         * config/i386/i386.md (*call_got_x32): Change operand 0 to
4480         DImode before it is passed to ix86_output_call_operand.
4481         (*call_value_got_x32): Ditto for operand 1.
4483 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
4485         PR rtl-optimization/70904
4486         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
4487         reload for wide mode.
4489 2016-05-12  Marek Polacek  <polacek@redhat.com>
4491         PR c/70756
4492         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
4493         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
4494         * langhooks.h (incomplete_type_error): Likewise.
4495         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
4496         parameter, pass it down to incomplete_type_error.
4497         * tree.h (size_in_bytes): New inline overload.
4498         (size_in_bytes_loc): Renamed from size_in_bytes.
4500 2016-05-12  Richard Biener  <rguenther@suse.de>
4502         PR tree-optimization/71059
4503         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
4504         nary before looking up or entering the expression into the VN
4505         hashes.
4506         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
4507         Make sure to re-use NARYs without result as inserted by
4508         phi-translation.
4510 2016-05-12  Richard Biener  <rguenther@suse.de>
4512         PR tree-optimization/71062
4513         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
4514         field.
4515         * tree-ssa-structalias.c (set_uids_in_ptset): Set
4516         vars_contains_restrict if the var is a restrict tag.
4517         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
4518         do not disambiguate pointers against it.
4519         (dump_points_to_solution): Re-structure and adjust for new
4520         vars_contains_restrict flag.
4521         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
4523 2016-05-12  Martin Liska  <mliska@suse.cz>
4525         * doc/invoke.texi: Explain connection between
4526         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
4528 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
4530         PR tree-optimization/71006
4531         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4532         consider COND_EXPR as a mask producer.
4534 2016-05-12  Marek Polacek  <polacek@redhat.com>
4536         PR driver/71063
4537         * opts.c (common_handle_option): Detect missing argument for --help^.
4539 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4541         PR target/70830
4542         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
4543         when popping the PC and within an interrupt handler routine.
4544         Add missing tab to output of "ldmfd".
4545         (output_return_instruction): Output LDMFD with SP update rather
4546         than POP when returning from interrupt handler.
4548 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
4550         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
4551         TARGET_64BIT && TARGET_AVX512DQ.
4552         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
4553         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
4554         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
4555         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
4556         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
4557         (*vec_extractv4si_zext): Add avx512dq alternative.
4558         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
4559         use v instead of x constraint in other alternatives where possible.
4561         * config/i386/sse.md (sse2_loadld): Use v instead of x
4562         constraint in alternatives 0,1,4.
4564         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
4565         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
4566         v constraints instead of x and <pinsr_evex_isa> isa attribute.
4568         PR target/71019
4569         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
4570         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
4571         is not emitted unless TARGET_AVX512BW.
4572         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
4573         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
4574         for the result operand.
4576         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
4577         constraint instead of x in avx alternatives.  Use maybe_evex instead
4578         of vex prefix.
4580         * config/i386/constraints.md (Yv): New constraint.
4581         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
4582         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
4583         * config/i386/i386.md (avx512fvecmode): New mode attr.
4584         (*pushtf): Use v constraint instead of x.
4585         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
4586         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
4587         (*absneg<mode>2): Use Yv constraint instead of x constraint.
4588         (*absnegtf2_sse): Likewise.
4589         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
4590         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
4591         avx512f alternatives.
4592         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
4594 2016-05-12  Richard Biener  <rguenther@suse.de>
4596         PR tree-optimization/71060
4597         * tree-data-ref.c (initialize_data_dependence_relation): Do not
4598         require exact match of DR_BASE_OBJECT but only matching address and
4599         type.
4601 2016-05-12  Richard Biener  <rguenther@suse.de>
4603         PR tree-optimization/70986
4604         * cfganal.c: Include cfgloop.h.
4605         (dfs_find_deadend): Prefer to take edges exiting loops.
4607 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4609         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
4610         compile and run time.
4612 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
4614         PR c/43651
4615         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
4617 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
4619         * config/i386/i386.c (legitimize_pic_address): Use
4620         copy_to_suggested_reg instead of gen_movsi.
4622 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
4624         * config/rs6000/predicates.md (quad_memory_operand): Move most of
4625         the code into quad_address_p and call it to share code with
4626         vsx_quad_dform_memory_operand.
4627         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
4628         d-form support.
4629         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
4630         bit instead of being a separate word.  Split -mpower9-dform into
4631         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
4632         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
4633         for the register class supporting 128-bit quad word memory offsets.
4634         (mode_supports_vsx_dform_quad): Helper function to return if the
4635         register class uses quad word memory offsets.
4636         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
4637         (rs6000_debug_reg_global): Always print if we are using LRA or not.
4638         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
4639         instructions are enabled, set up the appropriate addr_masks for
4640         128-bit types.
4641         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
4642         -mpower9-dform-scalar, instead of -mpower9-dform.
4643         (rs6000_option_override_internal): Split -mpower9-dform into two
4644         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
4645         -mpower9-dform switch sets or clears both.  If we are not using
4646         the LRA register allocator, do not enable -mpower9-dform-vector by
4647         default.  If we are using LRA, enable -mpower9-dform-vector and
4648         -mvsx-timode if it is appropriate.  Issue a warning if either
4649         -mpower9-dform-vector or -mvsx-timode are explicitly used without
4650         enabling LRA.
4651         (quad_address_offset_p): New helper function to return if the
4652         offset is legal for quad word memory instructions.
4653         (quad_address_p): New function to determin if GPR or vector
4654         register quad word memory addresses are legal.
4655         (mem_operand_gpr): Validate quad word address offsets.
4656         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
4657         d-form (register + offset) instructions.
4658         (offsettable_ok_by_alignment): Likewise.
4659         (rs6000_legitimate_offset_address_p): Likewise.
4660         (legitimate_lo_sum_address_p): Likewise.
4661         (rs6000_legitimize_address): Likewise.
4662         (rs6000_legitimize_reload_address): Add more debug statements for
4663         -mdebug=addr.
4664         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
4665         d-form instructions.
4666         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
4667         d-form instructions.  Distinguish different cases in debug
4668         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
4669         d-form instructions.
4670         (rs6000_preferred_reload_class): Likewise.
4671         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
4672         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
4673         of the ISA 2.06 indexed memory instructions.
4674         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
4675         use them to save/restore the saved vector registers instead of
4676         using Altivec instructions.
4677         (rs6000_emit_epilogue): Likewise.
4678         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
4679         (rs6000_opt_masks): Split -mpower9-dform into
4680         -mpower9-dform-scalar and -mpower9-dform-vector.
4681         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
4682         was not selected.
4683         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
4684         ISA 3.0 vector indexed memory instructions, and fold the code into
4685         the normal mov<mode> patterns.
4686         (p9_vecstore_<mode>): Likewise.
4687         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
4688         instructions.
4689         (vsx_movti_64bit): Likewise.
4690         (vsx_movti_32bit): Likewise.
4691         * config/rs6000/constraints.md (wO constraint): New constraint for
4692         ISA 3.0 vector d-form support.
4693         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
4694         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
4695         include -mpower9-dform-vector until we switch over to LRA.
4696         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
4697         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
4698         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
4699         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
4700         for -mpower9-dform and -mlra.
4701         * doc/md.texi (wO constraint): Document wO constraint.
4703 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
4705         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
4706         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
4707         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
4708         Move handling of non-insn arguments inline into the sole user:
4709         (output_trans_func): ...here.
4710         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
4711         in emitted function prototype.
4712         (output_internal_insn_latency_func): Ditto.  Simplify.
4713         (output_internal_maximal_insn_latency_func): Ditto.  Delete
4714         always-unused argument.
4715         (output_insn_latency_func): Ditto.
4716         (output_maximal_insn_latency_func): Ditto.
4718 2016-05-11  Richard Biener  <rguenther@suse.de>
4720         PR tree-optimization/71055
4721         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
4722         sth with precision not equal to access size verify we don't chop
4723         off bits.
4725 2016-05-11  Richard Biener  <rguenther@suse.de>
4727         PR debug/71057
4728         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
4729         (dwarf2out_finish): Move retry_incomplete_types call ...
4730         (dwarf2out_early_finish): ... here.
4732 2016-05-11  Richard Biener  <rguenther@suse.de>
4734         PR middle-end/71002
4735         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
4736         if the langhook insists on it.
4737         * fold-const.c (make_bit_field_ref): Add arg for the original
4738         reference and preserve its alias-set.
4739         (decode_field_reference): Take exp by reference and adjust it
4740         to the original memory reference.
4741         (optimize_bit_field_compare): Adjust callers.
4742         (fold_truth_andor_1): Likewise.
4743         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
4745 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
4747         PR middle-end/70807
4748         * cfgrtl.h (delete_insn_and_edges): Now return bool.
4749         * cfgrtl.c (delete_insn_and_edges): Likewise.
4750         * config/i386/i386.c (convert_scalars_to_vector): Remove
4751         redundant code.
4752         * cse.c (cse_insn): Compute cse_cfg_altered.
4753         (delete_trivially_dead_insns): Likewise.
4754         (cse_cc_succs): Likewise.
4755         (rest_of_handle_cse): Free dominance info if required.
4756         (rest_of_handle_cse2): Likewise.
4757         (rest_of_handle_cse_after_global_opts): Likewise.
4759 2016-05-11  Alan Modra  <amodra@gmail.com>
4761         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
4762         abi_v4_pass_in_fpr): New functions.
4763         (rs6000_function_arg_boundary): Exclude complex IBM long double
4764         from 64-bit alignment when ABI_V4.
4765         (rs6000_function_arg, rs6000_function_arg_advance_1,
4766         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
4768 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
4770         PR rtl-optimization/71028
4771         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
4772         jump with just a return in the fallthrough block if the branch
4773         block contains just a return as well.
4775 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
4777         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
4778         * match.pd ((X & Y) ^ Y): ... this.
4779         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
4780         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
4782 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
4784         * read-md.c (require_char_ws): New function.
4785         (read_string): Simplify using require_char_ws.
4786         (handle_constants): Likewise.
4787         (handle_enum): Likewise.
4788         (handle_file): Likewise.
4789         * read-md.h (require_char_ws): New declaration.
4790         * read-rtl.c (read_conditions): Simplify using require_char_ws.
4791         (read_mapping): Likewise.
4792         (read_rtx_code): Likewise.
4793         (read_nested_rtx): Likewise.
4795 2016-05-10  James Norris  <jnorris@codesourcery.com>
4797         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
4798         if offloading is enabled and -fopenacc or -fopenmp is specified.
4799         (CRTOFFLOADEND): Likewise.
4800         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
4801         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
4803 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
4805         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
4806         gotoff_operand code paths.  Use copy_to_suggested_regs and
4807         expand_simple_binop where appropriate.  Cleanup.
4809 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4811         PR target/70799
4812         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
4813         integer constants.
4814         (dimode_scalar_chain::vector_const_cost): New.
4815         (dimode_scalar_chain::compute_convert_gain): Handle constants.
4816         (dimode_scalar_chain::convert_op): Likewise.
4817         (dimode_scalar_chain::convert_insn): Likewise.
4819 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
4821         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
4822         unary operation, not a binary one.
4824 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4826         PR middle-end/70877
4827         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
4828         calls with type casted fndecl.
4830 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4832         PR tree-optimization/70786
4833         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
4834         * calls.c (initialize_argument_information): Bind bounds
4835         with corresponding args passed by reference.
4837 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
4839         PR target/70927
4840         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
4841         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
4842         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
4843         accordingly.
4845 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4847         PR target/70963
4848         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
4849         code for a zero scale factor.
4850         (vsx_xvcvdpuxds_scale): Likewise.
4852 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
4854         * diagnostic-show-locus.c (layout::layout): Call show_ruler
4855         if show_ruler_p was set on the context.
4856         (layout::show_ruler): New method.
4857         * diagnostic.h (struct diagnostic_context): Add field
4858         "show_ruler_p".
4860 2016-05-10  Richard Biener  <rguenther@suse.de>
4862         PR tree-optimization/71039
4863         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
4864         (chk_uses): New function.
4865         (propagate_with_phi): Verify we can safely replicate the lhs of an
4866         aggregate assignment on all incoming edges.
4868 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
4870         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
4871         Forward declare.
4872         (rx_atomic_sequence): New class.
4873         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
4874         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
4875         non-inline.
4876         (rx_atomic_sequence::rx_atomic_sequence,
4877         rx_atomic_sequence::~rx_atomic_sequence): New functions.
4878         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
4879         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
4880         CTRLREG_INTB): New constants.
4881         (FETCHOP): New code iterator.
4882         (fethcop_name, fetchop_name2): New iterator code attributes.
4883         (QIHI): New mode iterator.
4884         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
4885         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
4886         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
4888 2016-05-10  Martin Liska  <mliska@suse.cz>
4890         * tree-inline.c (remap_dependence_clique): Do not remap
4891         debugging statements.
4893 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4895         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
4896         ("*fixuns_truncdfdi2_z13")
4897         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
4898         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
4899         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
4901 2016-05-10  Richard Biener  <rguenther@suse.de>
4903         PR tree-optimization/70497
4904         PR tree-optimization/28367
4905         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
4906         split out from ...
4907         (visit_reference_op_load): ... here.
4908         (vn_reference_lookup_3): Use it to handle subreg-like accesses
4909         with simplified BIT_FIELD_REFs.
4910         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
4911         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
4912         correctly.
4914 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
4916         * dwarf2out.c (add_abstract_origin_attribute): Adjust
4917         documentation comment.  For BLOCK nodes, add a
4918         DW_AT_abstract_origin attribute that points to the DIE generated
4919         for the origin BLOCK.
4920         (gen_lexical_block_die): Call add_abstract_origin_attribute for
4921         blocks from inlined functions.
4923 2016-05-10  Alan Modra  <amodra@gmail.com>
4925         PR target/70947
4926         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
4927         regrename modifying insns saving lr before __morestack call.
4928         * config/rs6000/rs6000.md (split_stack_return): Similarly for
4929         insns restoring lr after __morestack call.
4931 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
4933         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
4934         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
4935         expanders.
4936         * config/i386/sse.md (vec_interleave_high<mode>,
4937         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
4938         <avx512>_vpermt2var<mode>3_maskz): Likewise.
4940 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
4942         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
4943         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
4944         parallel reassociation for power8 and forward.
4946 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
4948         * config/i386/i386.md (absneg splitters with general regs): Use
4949         general_reg_operand predicate.
4950         (btsq peephole2): Use x86_64_immediate_operand to check if new
4951         value is suitable for immediate operand.  Generate emitted insn
4952         using RTL expressions.
4953         (btcq peephole2): Ditto.
4954         (btrq peephole2): Ditto.  Generate correct immediate operand
4955         for AND masking.
4957 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
4959         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
4960         bitpos.
4962 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
4964         * tree-affine.c (wide_int_constant_multiple_p): Add missing
4965         pointer dereference.
4967 2016-05-09  Richard Biener  <rguenther@suse.de>
4969         PR tree-optimization/70985
4970         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
4971         op0 isn't a gimple register.
4973 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
4975         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
4976         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
4977         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
4978         (i6400_fpu_mult): New cpu units.
4979         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
4980         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
4981         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
4982         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
4983         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
4984         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
4985         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
4986         (i6400_msa_long_float4, i6400_msa_long_float5)
4987         (i6400_msa_long_float8, i6400_msa_fdiv_df)
4988         (i6400_msa_fdiv_sf): New reservations.
4989         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
4990         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
4991         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
4992         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
4993         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
4994         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
4995         (msa_short_cmp, msa_short_float2, msa_short_logic3)
4996         (msa_short_store4, msa_long_load, msa_short_store)
4997         (msa_long_logic, msa_long_float2, msa_long_float4)
4998         (msa_long_float5, msa_long_float8, msa_long_mult)
4999         (msa_long_fdiv, msa_long_div): New reservations.
5001 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
5002             Sameera Deshpande  <sameera.deshpande@imgtec.com>
5003             Matthew Fortune  <matthew.fortune@imgtec.com>
5004             Graham Stott  <graham.stott@imgtec.com>
5005             Chao-ying Fu  <chao-ying.fu@imgtec.com>
5007         * config.gcc: Add MSA header file for mips*-*-* target.
5008         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
5009         (Ubv8i, Urv8):  New constraints.
5010         * config/mips/mips-ftypes.def: Add function types for MSA
5011         builtins.
5012         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
5013         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
5014         * config/mips/mips-msa.md: New file.
5015         * config/mips/mips-protos.h
5016         (mips_split_128bit_const_insns): New prototype.
5017         (mips_msa_idiv_insns): Likewise.
5018         (mips_split_128bit_move): Likewise.
5019         (mips_split_128bit_move_p): Likewise.
5020         (mips_split_msa_copy_d): Likewise.
5021         (mips_split_msa_insert_d): Likewise.
5022         (mips_split_msa_fill_d): Likewise.
5023         (mips_expand_msa_branch): Likewise.
5024         (mips_const_vector_same_val_p): Likewise.
5025         (mips_const_vector_same_bytes_p): Likewise.
5026         (mips_const_vector_same_int_p): Likewise.
5027         (mips_const_vector_shuffle_set_p): Likewise.
5028         (mips_const_vector_bitimm_set_p): Likewise.
5029         (mips_const_vector_bitimm_clr_p): Likewise.
5030         (mips_msa_vec_parallel_const_half): Likewise.
5031         (mips_msa_output_division): Likewise.
5032         (mips_ldst_scaled_shift): Likewise.
5033         (mips_expand_vec_cond_expr): Likewise.
5034         * config/mips/mips.c (enum mips_builtin_type): Add
5035         MIPS_BUILTIN_MSA_TEST_BRANCH.
5036         (mips_gen_const_int_vector_shuffle): New prototype.
5037         (mips_const_vector_bitimm_set_p): New function.
5038         (mips_const_vector_bitimm_clr_p): Likewise.
5039         (mips_const_vector_same_val_p): Likewise.
5040         (mips_const_vector_same_bytes_p): Likewise.
5041         (mips_const_vector_same_int_p): Likewise.
5042         (mips_const_vector_shuffle_set_p): Likewise.
5043         (mips_symbol_insns): Forbid loading symbols via immediate for
5044         MSA.
5045         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
5046         stores.
5047         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
5048         MSA.
5049         (mips_lx_address_p): Add support load indexed address for MSA.
5050         (mips_address_insns): Add calculation of instructions needed for
5051         stores and loads for MSA.
5052         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
5053         CONST_VECTOR for MSA and let it fall through.
5054         (mips_ldst_scaled_shift): New function.
5055         (mips_subword_at_byte): Likewise.
5056         (mips_msa_idiv_insns): Likewise.
5057         (mips_legitimize_move): Validate MSA moves.
5058         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
5059         calculation of costs for MSA division.
5060         (mips_split_move_p): Check if MSA moves need splitting.
5061         (mips_split_move): Split MSA moves if necessary.
5062         (mips_split_128bit_move_p): New function.
5063         (mips_split_128bit_move): Likewise.
5064         (mips_split_msa_copy_d): Likewise.
5065         (mips_split_msa_insert_d): Likewise.
5066         (mips_split_msa_fill_d): Likewise.
5067         (mips_output_move): Handle MSA moves.
5068         (mips_expand_msa_branch): New function.
5069         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
5070         Reinstate 'y' modifier.
5071         (mips_file_start): Add MSA .gnu_attribute.
5072         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
5073         FPRs.
5074         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
5075         (mips_class_max_nregs): Add register size for MSA supported mode.
5076         (mips_cannot_change_mode_class): Allow conversion between MSA
5077         vector modes and TImode.
5078         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
5079         instruction.
5080         (mips_secondary_reload_class): Force MSA loads/stores via memory.
5081         (mips_preferred_simd_mode): Add preffered modes for MSA.
5082         (mips_vector_mode_supported_p): Add MSA supported modes.
5083         (mips_autovectorize_vector_sizes): New function.
5084         (mips_msa_output_division): Likewise.
5085         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
5086         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
5087         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
5088         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
5089         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
5090         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
5091         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
5092         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
5093         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
5094         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
5095         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
5096         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
5097         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
5098         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
5099         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
5100         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
5101         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
5102         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
5103         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
5104         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
5105         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
5106         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
5107         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
5108         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
5109         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
5110         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
5111         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
5112         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
5113         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
5114         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
5115         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
5116         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
5117         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
5118         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
5119         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
5120         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
5121         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
5122         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
5123         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
5124         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
5125         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
5126         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
5127         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
5128         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
5129         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
5130         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
5131         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
5132         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
5133         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
5134         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
5135         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
5136         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
5137         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
5138         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
5139         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
5140         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
5141         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
5142         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
5143         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
5144         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
5145         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
5146         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
5147         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
5148         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
5149         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
5150         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
5151         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
5152         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
5153         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
5154         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
5155         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
5156         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
5157         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
5158         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
5159         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
5160         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
5161         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
5162         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
5163         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
5164         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
5165         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
5166         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
5167         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
5168         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
5169         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
5170         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
5171         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
5172         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
5173         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
5174         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
5175         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
5176         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
5177         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
5178         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
5179         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
5180         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
5181         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
5182         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
5183         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
5184         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
5185         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
5186         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
5187         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
5188         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
5189         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
5190         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
5191         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
5192         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
5193         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
5194         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
5195         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
5196         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
5197         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
5198         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
5199         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
5200         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
5201         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
5202         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
5203         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
5204         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
5205         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
5206         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
5207         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
5208         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
5209         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
5210         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
5211         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
5212         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
5213         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
5214         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
5215         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
5216         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
5217         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
5218         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
5219         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
5220         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
5221         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
5222         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
5223         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
5224         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
5225         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
5226         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
5227         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
5228         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
5229         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
5230         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
5231         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
5232         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
5233         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
5234         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
5235         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
5236         move_v builtins.
5237         (mips_get_builtin_decl_index): New array.
5238         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
5239         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
5240         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
5241         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
5242         (mips_init_builtins): Initialize mips_get_builtin_decl_index
5243         array.
5244         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
5245         hook.
5246         (mips_expand_builtin_insn): Prepare operands for
5247         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
5248         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
5249         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
5250         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
5251         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
5252         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
5253         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
5254         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
5255         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
5256         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
5257         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
5258         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
5259         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
5260         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
5261         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
5262         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
5263         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
5264         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
5265         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
5266         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
5267         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
5268         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
5269         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
5270         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
5271         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
5272         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
5273         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
5274         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
5275         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
5276         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
5277         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
5278         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
5279         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
5280         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
5281         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
5282         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
5283         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
5284         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
5285         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
5286         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
5287         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
5288         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
5289         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
5290         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
5291         These are set implicitly and an error is reported if overridden.
5292         (mips_expand_builtin_msa_test_branch): New function.
5293         (mips_expand_msa_shuffle): Likewise.
5294         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
5295         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
5296         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
5297         (mips_expand_vec_unpack): Add support for MSA.
5298         (mips_expand_vector_init): Likewise.
5299         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
5300         instead of const0_rtx.
5301         (mips_msa_vec_parallel_const_half): New function.
5302         (mips_gen_const_int_vector): Likewise.
5303         (mips_gen_const_int_vector_shuffle): Likewise.
5304         (mips_expand_msa_cmp): Likewise.
5305         (mips_expand_vec_cond_expr): Likewise.
5306         * config/mips/mips.h
5307         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
5308         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
5309         specified.
5310         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
5311         (ISA_HAS_MSA): New macro.
5312         (UNITS_PER_MSA_REG): Likewise.
5313         (BITS_PER_MSA_REG): Likewise.
5314         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
5315         (MSA_REG_FIRST): New macro.
5316         (MSA_REG_LAST): Likewise.
5317         (MSA_REG_NUM): Likewise.
5318         (MSA_REG_P): Likewise.
5319         (MSA_REG_RTX_P): Likewise.
5320         (MSA_SUPPORTED_MODE_P): Likewise.
5321         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
5322         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
5323         * config/mips/mips.md: Include mips-msa.md.
5324         (alu_type): Add simd_add.
5325         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
5326         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
5327         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
5328         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
5329         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
5330         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
5331         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
5332         simd_move, simd_load, simd_store.  Choose "multi" for moves
5333         for "qword_mode".
5334         (qword_mode): New attribute.
5335         (insn_count): Add instruction count for quad moves.
5336         Increase the count for MIPS SIMD division.
5337         (UNITMODE): Add UNITMODEs for vector types.
5338         (addsub): New code iterator.
5339         * config/mips/mips.opt (mmsa): New option.
5340         * config/mips/msa.h: New file.
5341         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
5342         specified.
5343         * config/mips/mti-linux.h: Likewise.
5344         * config/mips/predicates.md
5345         (const_msa_branch_operand): New constraint.
5346         (const_uimm3_operand): Likewise.
5347         (const_uimm4_operand): Likewise.
5348         (const_uimm5_operand): Likewise.
5349         (const_uimm8_operand): Likewise.
5350         (const_imm5_operand): Likewise.
5351         (aq10b_operand): Likewise.
5352         (aq10h_operand): Likewise.
5353         (aq10w_operand): Likewise.
5354         (aq10d_operand): Likewise.
5355         (const_m1_operand): Likewise.
5356         (reg_or_m1_operand): Likewise.
5357         (const_exp_2_operand): Likewise.
5358         (const_exp_4_operand): Likewise.
5359         (const_exp_8_operand): Likewise.
5360         (const_exp_16_operand): Likewise.
5361         (const_vector_same_val_operand): Likewise.
5362         (const_vector_same_simm5_operand): Likewise.
5363         (const_vector_same_uimm5_operand): Likewise.
5364         (const_vector_same_uimm6_operand): Likewise.
5365         (const_vector_same_uimm8_operand): Likewise.
5366         (par_const_vector_shf_set_operand): Likewise.
5367         (reg_or_vector_same_val_operand): Likewise.
5368         (reg_or_vector_same_simm5_operand): Likewise.
5369         (reg_or_vector_same_uimm6_operand): Likewise.
5370         * doc/extend.texi (MIPS SIMD Architecture Functions): New
5371         section.
5372         * doc/invoke.texi (-mmsa): Document new option.
5374 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5376         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
5377         * configure: Regenerate.
5378         * config.in: Regenerate.
5379         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
5380         on -fvtable-verify.
5381         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
5382         (ENDFILE_VTV_SPEC): Define.
5384 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
5386         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
5387         registers in all interrupt handlers if necessary.
5388         (rl78_option_override): Add warning.
5389         (MUST_SAVE_MDUC_REGISTERS): New macro.
5390         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
5391         * config/rl78/rl78.c (check_mduc_usage): New function.
5392         (mduc_regs): New structure to hold MDUC register data.
5393         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
5394         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
5395         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
5396         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
5397         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
5398         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
5400 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
5402         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
5403         (tree-ssa-loop-niter.h): Ditto.
5404         (idx_within_array_bound, ref_within_array_bound): New functions.
5405         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
5406         Factor out check on writable base object to ...
5407         (base_object_writable): ... here.
5409 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5411         * config/arm/arm.md (probe_stack): Add modes to set source
5412         and destination.
5414 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
5416         * regrename.c (base_reg_class_for_rename): New static function.
5417         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
5419 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
5421         * cgraph.c (thunk_adjust): Export.
5422         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
5423         * cgraphunit.c (thunk_adjust): Export.
5424         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
5425         thunks.
5426         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
5427         inlinable.
5428         * tree-inline.c (expand_call_inline): Expand thunks inline.
5430 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
5432         PR target/70998
5433         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
5434         (*sse2_vd_cvtss2sd): Ditto.
5435         * config/i386/i386.md
5436         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
5437         Generate *sse2_vd_cvtsd2ss pattern.
5438         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
5439         Generate *sse2_vd_cvtss2sd pattern.
5441 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
5443         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
5444         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
5445         users.
5447 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
5449         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
5450         * config/sh/sh.c: Define and declare variables on first use throughout
5451         the file.
5452         (current_function_interrupt): Change to bool type.
5453         (frame_insn): Rename to emit_frame_insn and update users.
5454         (push_regs): Use bool for 'interrupt_handler' argument.
5455         (save_schedule_s): Remove.
5456         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
5457         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
5458         targetm.asm_out.unaligned_op.di.
5459         (gen_far_branch): Remove redundant forward declaration.
5460         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
5461         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
5462         (sh_set_return_address, sh_function_ok_for_sibcall,
5463         scavenge_reg): Update comments.
5464         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
5465         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
5466         (sh_attr_renesas_p): Remove unnecessary parentheses.
5467         (branch_dest): Simplify.
5468         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
5469         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
5470         (CUMULATIVE_ARGS): Change macro to typedef.
5471         (current_function_interrupt): Change to bool type.
5472         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
5473         Surround with __cplusplus ifdef.
5474         (sh_compare_op0, sh_compare_op1): Remove.
5475         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
5477 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
5479         * config/arm/arm.md: (arch): Add neon.
5480         (arch_enabled): Return yes for arch neon when TARGET_NEON.
5481         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
5482         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
5483         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
5484         attributes for alt renumbering.  Mark alt 3 as non-predicable.
5485         (thumb2_movdf_vfp): Likewise.
5487 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
5489         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
5490         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
5491         (*andqi_1): Add preferred_for_speed attribute to disparage
5492         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
5493         (*<code>qi_1): Ditto.
5494         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
5495         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
5496         (*ashlqi3_1): Ditto.
5497         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
5498         Add preferred_for_size attribute to disparage alternative 0 and
5499         preferred_for_speed attribute to disparage alternative 1 for
5500         TARGET_PARTIAL_REG_STALL targets.
5502 2016-05-07  Tom de Vries  <tom@codesourcery.com>
5504         PR tree-optimization/70956
5505         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
5506         def.
5508 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
5510         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
5511         * config/sh/sh.c (sh_cbranch_distance): Implement it.
5512         * config/sh/sh.md (branch_zero): Remove define_attr.
5513         (define_delay): Disable delay slot if branch distance is one insn.
5515 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
5517         * config/i386/i386.md (LEAMODE): New mode attribute.
5518         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
5519         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
5520         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
5521         operand 2 predicate.
5522         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
5523         (*lea<mode>_general_3): Ditto.
5524         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
5526 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
5528         * genmddump.c (main): Convert argv from char ** to const char **.
5530 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
5532         * coretypes.h (OVERRIDE): New macro.
5533         (FINAL): New macro.
5535 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
5537         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
5538         allow coalescing if the types are compatible.
5540 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
5542         * pass_manager.h (pass_manager::register_pass_name): New method.
5543         (pass_manager::get_pass_by_name): New method.
5544         (pass_manager::create_pass_tab): New method.
5545         (pass_manager::m_name_to_pass_map): New field.
5546         * passes.c (name_to_pass_map): Delete global in favor of field
5547         "m_name_to_pass_map" of pass_manager.
5548         (register_pass_name): Rename from a function to...
5549         (pass_manager::register_pass_name): ...this method, updating
5550         for renaming of global "name_to_pass_map" to field
5551         "m_name_to_pass_map".
5552         (create_pass_tab): Rename from a function to...
5553         (pass_manager::create_pass_tab): ...this method, updating
5554         for renaming of global "name_to_pass_map" to field.
5555         (get_pass_by_name): Rename from a function to...
5556         (pass_manager::get_pass_by_name): ...this method.
5557         (enable_disable_pass): Convert use of get_pass_by_name to
5558         a method call, locating the pass_manager singleton.
5560 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
5562         * genattr-common.c (main): Convert argv from char ** to const char **.
5563         * genattr.c (main): Likewise.
5564         * genattrtab.c (main): Likewise.
5565         * genautomata.c (initiate_automaton_gen): Likewise.
5566         (main): Likewise.
5567         * gencodes.c (main): Likewise.
5568         * genconditions.c (main): Likewise.
5569         * genconfig.c (main): Likewise.
5570         * genconstants.c (main): Likewise.
5571         * genemit.c (main): Likewise.
5572         * genenums.c (main): Likewise.
5573         * genextract.c (main): Likewise.
5574         * genflags.c (main): Likewise.
5575         * genmddeps.c (main): Likewise.
5576         * genopinit.c (main): Likewise.
5577         * genoutput.c (main): Likewise.
5578         * genpeep.c (main): Likewise.
5579         * genpreds.c (main): Likewise.
5580         * genrecog.c (main): Likewise.
5581         * gensupport.c (init_rtx_reader_args_cb): Likewise.
5582         (init_rtx_reader_args): Likewise.
5583         * gensupport.h (init_rtx_reader_args_cb): Likewise.
5584         (init_rtx_reader_args): Likewise.
5585         * gentarget-def.c (main): Likewise.
5586         * read-md.c (read_md_files): Likewise.
5587         * read-md.h (read_md_files): Likewise.
5589 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
5591         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
5592         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
5593         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
5594         Remove unused predicate.
5595         (register_and_not_fp_reg_operand): Ditto.
5597 2016-05-06  Martin Liska  <mliska@suse.cz>
5599         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
5600         instead of vec as the vector is local to the function.
5602 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
5604         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
5605         avx512bw alternative.
5607         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
5608         before the ashr<mode>3 pattern.
5610         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
5611         v instead of x in vex or maybe_vex alternatives, use
5612         maybe_evex instead of vex in prefix.
5614         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
5615         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
5616         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
5617         in vex or maybe_vex alternatives, use maybe_evex instead of vex
5618         in prefix.
5620         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
5621         v instead of x in vex or maybe_vex alternatives, use
5622         maybe_evex instead of vex in prefix.
5624         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
5625         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
5626         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
5627         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
5628         alternatives, use maybe_evex instead of vex in prefix.
5630         * config/i386/sse.md (vec_interleave_lowv4sf,
5631         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
5632         v instead of x in vex or maybe_vex alternatives, use
5633         maybe_evex instead of vex in prefix.
5635         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
5636         v instead of x in vex or maybe_vex alternatives, use
5637         maybe_evex instead of vex in prefix.
5639         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
5640         v constraint instead of x.
5642 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
5644         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
5645         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
5646         equality first.
5648 2016-05-06  Richard Biener  <rguenther@suse.de>
5650         PR tree-optimization/70948
5651         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5652         Properly clobber all fields of va_list for __builtin_va_start.
5654 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
5656         PR debug/70935
5657         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
5658         loop latch destination.
5660 2016-05-06  Martin Liska  <mliska@suse.cz>
5662         * tree-ssa-uninit.c: Apply manual changes
5663         to the GNU coding style.
5664         (prune_uninit_phi_opnds): Rename from
5665         prune_uninit_phi_opnds_in_unrealizable_paths.
5667 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5669         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
5670         mspace): Remove deprecated options.
5671         * doc/invoke.texi (SH options): Remove -mspace.
5673 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5675         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
5677 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5679         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
5680         corresponding combine split pattern.
5682 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5684         PR target/58219
5685         * config/sh/predicates.md (long_displacement_mem_operand): New.
5686         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
5687         Add movi20, movi20s alternatives.  Adjust length attribute for
5688         alternatives.
5689         (movsi_ie): Allow for any FPU.  Adjust length attribute for
5690         alternatives.
5691         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
5692         attribute for alternatives.
5693         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
5694         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
5695         length attribute for alternatives.
5697 2016-05-06  Richard Biener  <rguenther@suse.de>
5699         PR tree-optimization/70960
5700         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
5702 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5704         PR target/52933
5705         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
5706         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
5708 2016-05-06  Marek Polacek  <polacek@redhat.com>
5710         PR sanitizer/70875
5711         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
5713 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5715         PR target/54089
5716         * config/sh/sh.md (*rotcr): Add another variant.
5718 2016-05-06  Richard Biener  <rguenther@suse.de>
5720         PR middle-end/70931
5721         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
5723 2016-05-06  Richard Biener  <rguenther@suse.de>
5725         PR middle-end/70941
5726         * fold-const.c (split_tree): Always convert to the original type
5727         before negating.
5729 2016-05-06  Richard Biener  <rguenther@suse.de>
5731         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
5732         (fwprop_addr): Likewise.
5734 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
5736         PR target/70873
5737         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
5738         New prototype.
5739         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
5740         * config/i386/i386.md (push mem splitter): Use find_constant_src in
5741         the splitter condition.
5742         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
5743         the splitter condition.
5744         (FP float_extend load splitter): Ditto.
5746 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
5748         * config/i386/i386.md (peehole2 patterns): Change true_regnum
5749         to REGNO in all peephole2 patterns.
5750         (post-reload splitters): Change true_regnum to REGNO in
5751         post-reload splitters.
5752         (zero_extend splitters): Use general_reg_operand and
5753         nonimmediate_gr_operand predicates.
5755 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
5757         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
5758         v constraint instead of x.
5760 2016-05-05  Alan Modra  <amodra@gmail.com>
5762         PR target/68662
5763         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
5764         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
5765         TARGET_NO_FP_IN_TOC for -mrelocatable.
5766         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
5767         TARGET_RELOCATABLE test.
5768         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
5769         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
5770         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5771         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
5772         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
5773         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5774         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
5775         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
5776         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
5777         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
5778         Likewise.
5779         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
5780         (rs6000_stack_info): Likewise.
5781         (rs6000_elf_asm_out_constructor): Likewise.
5782         (rs6000_elf_asm_out_destructor): Likewise.
5783         (rs6000_elf_declare_function_name): Likewise.
5784         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
5785         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
5786         Don't define.
5788 2016-05-05  Alan Modra  <amodra@gmail.com>
5790         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
5792 2016-05-05  Alan Modra  <amodra@gmail.com>
5794         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
5795         out-of-line gpr restore for one or two regs if that would add
5796         a save of lr.
5798 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
5800         PR target/70873
5801         * config/i386/i386.md
5802         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
5803         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
5804         as operand 0 predicate.
5805         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
5806         Ditto.
5807         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
5808         Ditto.  Emit the pattern using RTX.
5810         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
5811         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
5812         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
5813         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
5814         Ditto.
5815         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
5816         sse_reg_operand as operand 0 predicate.
5818         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
5819         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
5820         instead of gen_rtx_REG.
5821         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
5822         Ditto.
5824 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
5826         * function.c (emit_use_return_register_into_block): Delete.
5827         (gen_return_pattern): Delete.
5828         (emit_return_into_block): Delete.
5829         (active_insn_between): Delete.
5830         (convert_jumps_to_returns): Delete.
5831         (emit_return_for_exit): Delete.
5832         (thread_prologue_and_epilogue_insns): Delete all code dealing with
5833         simple_return for shrink-wrapped blocks.
5834         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
5835         end of blocks that need one.
5836         (get_unconverted_simple_return): Delete.
5837         (convert_to_simple_return): Delete.
5838         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
5839         (convert_to_simple_return): Ditto.
5841 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
5843         * cfgcleanup.c (bb_is_just_return): New function.
5844         (try_optimize_cfg): Simplify jumps to return, branches to return,
5845         and branches around return.
5847 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
5849         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
5850         branch to a return.
5852 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
5854         PR c++/70906
5855         PR c++/70933
5856         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
5857         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
5858         assert flags & OEP_HASH_CHECK, instead of asserting it
5859         never happens.  Handle TARGET_EXPR.
5860         * fold-const.c (operand_equal_p): For hash verification,
5861         or in OEP_HASH_CHECK into flags.
5863 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
5865         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
5866         comment.
5867         (compute_samebase_partition_bases): Fix typo.
5869 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
5871         * config/i386/sse.md (vec_interleave_highv8sf,
5872         vec_interleave_lowv8sf, vec_interleave_highv4df,
5873         vec_interleave_lowv4df): Remove constraints from expanders.
5875         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
5877 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
5879         * tree-inline.c (expand_call_inline): Fix path dealing with
5880         making lhs of call statement undefined.
5882 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
5884         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
5885         Check availability on NODE, too.
5886         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
5887         (cgraph_node::call_for_symbol_and_aliases): Likewise.
5888         (varpool_node::call_for_symbol_and_aliase): Likewise.
5889         * ipa-pure-const.c (add_new_function): Analyze all bodies.
5890         (propagate_pure_const): Propagate across interposable functions, too.
5891         (skip_function_for_local_pure_const): Do not skip interposable bodies
5892         with aliases.
5893         (pass_local_pure_const::execute): Update.
5895 2016-05-04  Marek Polacek  <polacek@redhat.com>
5897         * doc/invoke.texi: Document -Wdangling-else.
5899 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5901         * config.gcc: Error out when conflicting multilib is detected.  Do not
5902         loop over multilibs since no combination is legal.
5904 2016-05-04  Alan Modra  <amodra@gmail.com>
5906         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
5907         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
5908         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
5909         Align .toc.
5911 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
5913         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
5914         Clean up p5600 comments.
5916 2016-05-04  Richard Biener  <rguenther@suse.de>
5918         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
5919         constructor simplifications.
5920         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
5922 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
5924         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
5925         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
5926         result.set_rtx is null instead of aborting.
5927         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
5928         Always enable.
5929         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
5930         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
5931         *mov<mode>_store_postinc): New patterns.
5933 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
5935         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
5936         as commutative.  Check both conversions are NOP.
5937         ((A & B) OP (C & B)): Remove.
5939 2016-05-04  Alan Modra  <amodra@gmail.com>
5941         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
5943 2016-05-04  Alan Modra  <amodra@gmail.com>
5945         PR target/70866
5946         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
5947         when cr2,3,4 are all fixed regs.
5949 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
5951         PR rtl-optimization/57193
5952         * opts.c (default_options_table): Revert OPT_frename_registers change.
5953         * doc/invoke.texi (-frename-registers, -O2): Likewise.
5955 2016-05-03  Martin Sebor  <msebor@redhat.com>
5957         PR c++/66561
5958         * builtins.c (fold_builtin_FILE): New function.
5959         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
5960         (fold_builtin_0): Call them.
5961         * gimplify.c (gimplify_call_expr): Remove the handling of
5962         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
5964         PR c++/66561
5965         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
5966         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
5967         constants.
5969         PR c++/66639
5970         * doc/extend.texi (Function Names as Strings): Update __func__,
5971         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
5972         constants.
5974 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
5975             Richard Biener  <rguenther@suse.de>
5977         PR tree-optimization/70916
5978         * tree-if-conv.c: Include cfganal.h.
5979         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
5980         and remove_fake_exit_edges around the optimization pass.
5982 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
5984         * cgraph.c (symbol_table::create_edge): Set inline_failed.
5985         (cgraph_edge::make_direct): Likewise.
5986         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
5987         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
5988         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
5989         (CIF_THUNK): New code.
5990         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
5991         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
5992         (compute_inline_parameters): Set inline_failed for thunks.
5993         (inline_analyze_function): Cleanup.
5994         * ipa-inline.c (can_inline_edge_p): Do not deal with
5995         call_stmt_cannot_inline_p.
5996         (can_early_inline_edge_p): Likewise.
5997         (early_inliner): Initialize inline_failed.
5998         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
6000 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
6002         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
6003         from nonimm_ssenomem_operand.
6004         (nonimm_ssenomem_operand): New predicate.
6005         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
6006         as operand 0 predicate.
6007         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
6008         Disable unsupported alternatives using "enabled" attribute.
6009         Use register_ssemem_operand as operand 0 predicate.
6010         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
6012 2016-05-03  Marek Polacek  <polacek@redhat.com>
6014         PR c/70859
6015         * input.c (expansion_point_location): New function.
6016         * input.h (expansion_point_location): Declare.
6018 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
6020         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
6021         occurence with frame_offset_ ones.
6023 2016-05-03  Alan Modra  <amodra@gmail.com>
6025         PR rtl-optimization/70890
6026         * ira.c (combine_and_move_insns): When moving def_insn, remove
6027         equivs on use_insn.
6029 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6031         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
6032         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
6033         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
6034         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
6036 2016-05-03  Alan Modra  <amodra@gmail.com>
6038         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
6039         for SAVE_MULTIPLE/STORE_MULTIPLE.
6041 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
6043         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
6044         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
6046 2016-05-03  Richard Biener  <rguenther@suse.de>
6048         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
6049         default true.
6050         (gimplify_arg): Likewise.
6051         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
6052         re-writing the result to a decl if required.
6053         (internal_get_tmp_var): Add allow_ssa parameter
6054         and override into_ssa with it.
6055         (get_formal_tmp_var): Adjust.
6056         (get_initialized_tmp_var): Add allow_ssa parameter.
6057         (gimplify_arg): Add allow_ssa parameter and avoid generating
6058         SSA names for the result false.
6059         (gimplify_call_expr): If the call may return twice do not
6060         gimplify parameters into SSA.
6061         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
6062         (gimplify_modify_expr): Adjust assert.  For noreturn calls
6063         with a SSA name LHS adjust its def.
6064         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
6065         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
6066         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
6067         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
6068         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
6069         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
6070         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
6071         (optimize_target_teams): Do not allow SSA names for clause operands.
6072         (gimplify_expr): Likewise for where we mark the result addressable.
6073         * passes.def (pass_init_datastructures): Remove.
6074         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
6075         (rewrite_stmt): Likewise.
6076         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
6077         (replace_locals_op): Replace SSA names.
6078         (copy_gimple_seq_and_replace_locals): Init src_cfun.
6079         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
6080         * cgraph.c (release_function_body): Free CFG annotations only
6081         when we have a CFG.  Simplify.
6082         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
6083         force_gimple_operand instead of get_initialized_tmp_var.
6084         * tree-pass.h (make_pass_init_datastructures): Remove.
6085         * tree-ssa.c (execute_init_datastructures): Remove.
6086         (pass_data_init_datastructures): Likewise.
6087         (class pass_init_datastructures): Likewise.
6088         (make_pass_init_datastructures): Likewise.
6089         * omp-low.c (create_omp_child_function): Init SSA data structures.
6090         (grid_expand_target_grid_body): Likewise.
6091         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
6092         name before adding it to names_to_release.
6093         (remove_bb): Always release SSA defs.
6094         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
6095         before dereferencing it.
6096         * cgraphunit.c (init_lowered_empty_function): Always
6097         int SSA data structures.
6098         * tree-ssanames.c (release_defs): Remove assert that we are in
6099         SSA form.
6100         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
6102 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
6103             Uros Bizjak  <ubizjak@gmail.com>
6105         PR rtl-optimization/70467
6106         * config/i386/predicates.md (x86_64_hilo_int_operand,
6107         x86_64_hilo_general_operand): New predicates.
6108         * config/i386/constraints.md (Wd): New constraint.
6109         * config/i386/i386.md (mode attr di): Use Wd instead of e.
6110         (general_hilo_operand): New mode attr.
6111         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
6112         instead of <general_operand>.
6113         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
6114         x86_64_hilo_general_operand instead of <general_operand>.
6116 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
6118         PR tree-optimization/70916
6119         * tree-if-conv.c (constant_or_ssa_name): Removed.
6120         (fold_build_cond_expr): Use is_gimple_val instead of
6121         constant_or_ssa_name.
6123         PR tree-optimization/70916
6124         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
6125         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
6127         PR target/49244
6128         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
6129         (optimize_atomic_bit_test_and): New function.
6130         (pass_fold_builtins::execute): Use it.
6131         * optabs.def (atomic_bit_test_and_set_optab,
6132         atomic_bit_test_and_complement_optab,
6133         atomic_bit_test_and_reset_optab): New optabs.
6134         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
6135         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
6136         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
6137         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
6138         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
6139         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
6140         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
6141         * doc/md.texi (atomic_bit_test_and_set@var{mode},
6142         atomic_bit_test_and_complement@var{mode},
6143         atomic_bit_test_and_reset@var{mode}): Document.
6144         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
6145         atomic_bit_test_and_complement<mode>,
6146         atomic_bit_test_and_reset<mode>): New expanders.
6147         (atomic_bit_test_and_set<mode>_1,
6148         atomic_bit_test_and_complement<mode>_1,
6149         atomic_bit_test_and_reset<mode>_1): New insns.
6151 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
6153         PR rtl-optimization/70687
6154         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
6155         instead of unsigned HOST_WIDE_INT.
6157 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
6159         PR rtl-optimization/44281
6160         * hard-reg-set.h (struct target_hard_regs): New field
6161         x_fixed_nonglobal_reg_set.
6162         (fixed_nonglobal_reg_set): New macro.
6163         * reginfo.c (init_reg_sets_1): Initialize it.
6164         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
6165         of fixed_reg_set.
6166         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
6168 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
6170         PR tree-optimization/56541
6171         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
6172         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
6173         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
6174         (any_complicated_phi): new static variable.
6175         (aggressive_if_conv): delete.
6176         (if_convertible_phi_p): support phis with more than two arguments.
6177         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
6178         critical pred edges.
6179         (ifcvt_split_critical_edges): support phis with more than two
6180         arguments by checking new parameter.  only split critical edges
6181         if needed.
6182         (tree_if_conversion): handle simd pragma marked loop using new
6183         local variable aggressive_if_conv.  check any_complicated_phi.
6185 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
6187         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
6188         before using it.
6190 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
6192         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
6193         cbase.
6195 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
6197         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
6198         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
6199         define_insn_and_split.
6200         (mulsi3_i): New define_insn_and_split.
6201         (mulsi3_call): Convert to define_insn.
6202         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
6203         Remove constraints.
6205 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
6207         * machmode.h (mode_complex): Add support to give the complex mode
6208         for a given mode.
6209         (GET_MODE_COMPLEX_MODE): Likewise.
6210         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
6211         stored by build_complex_type and gfc_build_complex_type instead of
6212         trying to figure out the appropriate mode based on the size. Raise
6213         an assertion error, if the type was not set.
6214         * genmodes.c (struct mode_data): Add field for the complex type of
6215         the given type.
6216         (blank_mode): Likewise.
6217         (make_complex_modes): Remember the complex mode created in the
6218         base type.
6219         (emit_mode_complex): Write out the mode_complex array to map a
6220         type mode to the complex version.
6221         (emit_insn_modes_c): Likewise.
6222         * tree.c (build_complex_type): Set the complex type to use before
6223         calling layout_type.
6224         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
6225         support for __float128 complex datatypes.
6226         (rs6000_hard_regno_mode_ok): Likewise.
6227         (rs6000_setup_reg_addr_masks): Likewise.
6228         (rs6000_complex_function_value): Likewise.
6229         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
6230         __float128 and __ibm128 complex.
6231         (FLOAT128_IBM_P): Likewise.
6232         (ALTIVEC_ARG_MAX_RETURN): Likewise.
6233         * doc/extend.texi (Additional Floating Types): Document that
6234         -mfloat128 must be used to enable __float128.  Document complex
6235         __float128 and __ibm128 support.
6237 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
6239         PR target/49244
6240         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
6241         char/short arguments promoted to int because of promote_prototypes.
6243 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
6245         * config/i386/predicates.md (register_ssemem_operand): New predicate.
6246         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
6247         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
6248         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
6249         alternatives using "enabled" attribute.  Use register_ssemem_operand
6250         as operand 1 predicate.
6251         (*cmpi<unord>xf_i387): Split XFmode pattern from
6252         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
6253         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
6254         *absneg<mode>2_i387.  Disable unsupported alternatives using
6255         "enabled" attribute.
6256         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
6258 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
6260         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
6261         marker.
6262         (oacc_loop_process): Check mask for loop termination.
6264 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
6266         * cif-code.def (CIF_THUNK): Add.
6267         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
6268         accidental change.
6270 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
6272         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
6273         (dump_inline_summary): Dump it.
6274         (fp_expression_p): New predicate.
6275         (estimate_function_body_sizes): Use it.
6276         (inline_merge_summary): Merge fp_expressions.
6277         (inline_read_section): Read fp_expressions.
6278         (inline_write_summary): Write fp_expressions.
6279         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
6280         codegen boundary if either caller or callee is !fp_expressions.
6281         * ipa-inline.h (inline_summary): Add fp_expressions.
6282         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
6283         to fp_expressions be sure the fp generation flags are updated.
6285 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
6287         PR rtl-optimization/70467
6288         * cse.c (cse_insn): Handle no-op MEM moves after folding.
6290         PR rtl-optimization/70467
6291         * ipa-pure-const.c (check_call): Handle internal calls even in
6292         ipa mode like in local mode.
6294 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6296         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
6298 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
6300         * match.pd (X u< X, X u> X): New transformations.
6302 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
6304         * flag-types.h (enum warn_strict_overflow_code): Move ...
6305         * coretypes.h: ... here.
6306         * fold-const.h (fold_overflow_warning): Declare.
6307         * fold-const.c (fold_overflow_warning): Make non-static.
6308         (fold_comparison): Move the transformation of X +- C1 CMP C2
6309         into X CMP C2 -+ C1 ...
6310         * match.pd: ... here.
6311         * gimple-fold.c (fold_stmt_1): Protect with
6312         fold_defer_overflow_warnings.
6314 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
6316         * omp-low.c (struct oacc_loop): Add 'inner' field.
6317         (new_oacc_loop_raw): Initialize it to zero.
6318         (oacc_loop_fixed_partitions): Initialize it.
6319         (oacc_loop_auto_partitions): Partition outermost loop to outermost
6320         available partitioning.
6322 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
6324         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
6325         register_operand.
6326         (umulsidi3): Likewise.
6327         (indirect_jump): Fix jump instruction assembly patterns.
6329 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
6331         PR target/70860
6332         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
6333         (nvptx_function_value): Assert non-NULL cfun.
6335 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
6337         PR rtl-optimization/70886
6338         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
6340         * cselib.h (rtx_equal_for_cselib_1): Declare.
6341         (rtx_equal_for_cselib_p: New inline function.
6342         * cselib.c (rtx_equal_for_cselib_p): Delete.
6343         (rtx_equal_for_cselib_1): Make public.
6345 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
6347         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
6348         (register_mixssei387nonimm_operand): Remove predicate.
6349         * config/i386/i386.md (*fop_<mode>_comm): Merge from
6350         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
6351         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
6352         for TARGET_MIX_SSE_I387 alternatives.
6353         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
6354         Disable unsupported alternatives using "enabled" attribute.  Use
6355         nonimm_ssenomem_operand as operand 1 predicate.  Also check
6356         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
6358 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
6360         * tree.c (cst_and_fits_in_hwi): Simplify.
6362 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
6364         * tree.h (wi::to_wide): New function.
6365         * expr.c (expand_expr_real_1): Use wi::to_wide.
6366         * fold-const.c (int_const_binop_1): Likewise.
6367         (extract_muldiv_1): Likewise.
6369 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
6371         * wide-int.h: Update offset_int and widest_int documentation.
6372         (WI_SIGNED_SHIFT_RESULT): New macro.
6373         (wi::binary_shift): Define signed_shift_result_type for
6374         shifts on offset_int- and widest_int-like types.
6375         (generic_wide_int): Support <<= and >>= if << and >> are supported.
6376         * tree.h (int_bit_position): Use shift operators instead of wi::
6377          shifts.
6378         * alias.c (adjust_offset_for_component_ref): Likewise.
6379         * expr.c (get_inner_reference): Likewise.
6380         * fold-const.c (fold_comparison): Likewise.
6381         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
6382         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
6383         * tree-dfa.c (get_ref_base_and_extent): Likewise.
6384         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6385         (stmt_kills_ref_p): Likewise.
6386         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
6387         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
6388         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6389         (ao_ref_init_from_vn_reference): Likewise.
6391 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
6393         * wide-int.h: Update offset_int and widest_int documentation.
6394         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
6395         (wi::binary_traits): Allow ordered comparisons between offset_int and
6396         offset_int, between widest_int and widest_int, and between either
6397         of these types and basic C types.
6398         (operator <, <=, >, >=): Define for the same combinations.
6399         * tree.h (tree_int_cst_lt): Use comparison operators instead
6400         of wi:: comparisons.
6401         (tree_int_cst_le): Likewise.
6402         * gimple-fold.c (fold_array_ctor_reference): Likewise.
6403         (fold_nonarray_ctor_reference): Likewise.
6404         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
6405         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
6406         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
6407         * tree-sra.c (completely_scalarize): Likewise.
6408         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
6409         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
6410         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
6411         (check_for_binary_op_overflow): Likewise.
6412         (search_for_addr_array): Likewise.
6413         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
6415 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
6417         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
6418         (arc_save_restore): Likewise.
6419         (arc_dwarf_register_span): Likewise.
6420         (arc_output_pic_addr_const): Initialize suffix variable.
6422 2016-05-02  Martin Liska  <mliska@suse.cz>
6424         * symbol-summary.h (function_summary::function_summary):
6425         Remove checking assert for all cgraph nodes.
6426         (function_summary::get): Check summary_uid.
6427         (symtab_insertion): Check summary_uid.
6429 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
6431         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
6432         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
6433         bmaskn instruction.
6434         (arc_dwarf_register_span): Remove enum keyword.
6435         (compact_memory_operand_p): New function.
6436         * config/arc/arc.h (reg_class): Add code density register classes.
6437         (REG_CLASS_NAMES): Likewise.
6438         (REG_CLASS_CONTENTS): Likewise.
6439         * config/arc/arc.md (*movqi_insn): Add code density instructions.
6440         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
6441         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
6442         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
6443         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
6444         constraints.
6445         (h, Rcd, Rsd, Rzd): New register constraints.
6446         (T): Use compact_memory_operand_p function.
6447         * config/arc/predicates.md (compact_load_memory_operand): Remove.
6449 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
6451         * config/sh/sh.md (*negnegt, *movtt): Remove.
6453 2016-05-02  Marek Polacek  <polacek@redhat.com>
6454             Tom de Vries  <tom@codesourcery.com>
6456         PR tree-optimization/70700
6457         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
6458         bigger than FIRST_REF_NODE.
6460 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
6462         PR target/52898
6463         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
6464         TARGET_CMPEQDI_T.
6465         (prepare_cbranch_operands): Don't use scratch register.  Assume that
6466         function is used when pseudos can be created.
6467         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
6468         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
6469         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
6470         define_expand.  Allow it only when pseudos can be created.
6471         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
6473 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
6475         * config/i386/constraints.md (BC): Only allow -1 operands.
6476         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
6477         Add "enabled" attribute.  Update XI mode attribute calculation.
6478         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
6479         (*movoi_internal_avx): Update XI mode attribute calculation.
6480         (*movti_internal): Ditto.
6482 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
6484         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
6485         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
6487 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
6489         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
6490         statement on instruction code.  Remove trailing spaces.
6491         (altivec_expand_stv_builtin): Likewise.
6493 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
6495         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
6496         (TARGET_FPU_DOUBLE): Simplify.
6497         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
6498         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
6499         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
6500         with 'TARGET_FPU_DOUBLE'.
6501         * config/sh/sh.md: Likewise.
6503 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
6505         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
6506         SH_DIV_STR_FOR_SIZE): Remove.
6507         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
6508         SH_DIV_STR_FOR_SIZE): Remove.
6510 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
6512         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
6513         logical_reg_operand): Delete.
6514         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
6515         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
6516         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
6517         match_operand and match_test.
6518         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
6519         variables on their first use.  Return bool values.
6520         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
6521         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
6522         arith_reg_operand for input operand.  Remove empty constraints.
6523         (xorsi3): Delete.
6524         (*xorsi3_compact): Rename to xorsi3.
6525         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
6526         (*zero_extend<mode>si2_disp_mem): Update comment.
6527         (mov_nop): Delete.
6529 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
6531         * config/sh/t-sh: Remove SH5 support.
6532         * config.gcc: Likewise.
6533         * configure: Likewise.
6535 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6537         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
6539 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
6541         * config/sh/sh.c (register_sh_passes, sh_option_override,
6542         sh_print_operand, prepare_move_operands,
6543         sh_can_follow_jump): Remove TARGET_SH1 checks.
6544         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
6545         PROMOTE_MODE): Likewise.
6546         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
6547         movdi): Likewise.
6549 2016-04-30  Alan Modra  <amodra@gmail.com>
6551         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
6552         restoring when fixed_reg_p, but allow out-of-line or stmw save.
6553         Check for user regs later to avoid unnecessary looping over regs.
6554         Merge user reg check with non-saved reg check.  Don't force
6555         inline VR restore when static chain used.
6556         (rs6000_frame_related): Omit eh_frame info for user regs when
6557         saving.
6558         (fixed_regs_p): Delete.
6560 2016-04-30  Alan Modra  <amodra@gmail.com>
6562         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
6563         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
6564         Update all uses.
6566 2016-04-30  Alan Modra  <amodra@gmail.com>
6568         PR target/69645
6569         * config/rs6000/rs6000.c (fixed_reg_p): New function.
6570         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
6571         Update all uses.
6573 2016-04-30  Alan Modra  <amodra@gmail.com>
6575         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
6576         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
6577         flag_pic test for Darwin.
6579 2016-04-30  Alan Modra  <amodra@gmail.com>
6581         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
6582         throw_calls_crossed.
6583         (REG_FREQ_CALLS_CROSSED): Delete.
6584         (REG_N_THROWING_CALLS_CROSSED): Delete.
6585         * regstat.c (regstat_bb_compute_ri): Don't calculate
6586         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
6587         (dump_reg_info): Don't print call cross frequency.
6588         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
6589         and REG_N_THROWING_CALLS_CROSSED.
6591 2016-04-30  Alan Modra  <amodra@gmail.com>
6593         * regs.h (struct reg_info_t): Delete live_length.
6594         (REG_LIVE_LENGTH): Delete macro.
6595         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
6596         local_live, local_processed and local_live_last_luid params.
6597         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
6598         Formatting fixes.
6599         (regstat_compute_ri): Adjust for above.  Don't set
6600         REG_LIVE_LENGTH.
6601         (dump_reg_info): Don't print live length.
6602         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
6603         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
6604         Localize loop_depth var.
6606 2016-04-30  Alan Modra  <amodra@gmail.com>
6608         * ira.c (enum valid_equiv): New.
6609         (validate_equiv_mem): Return enum.
6610         (update_equiv_mem): Create replacement in more cases.
6611         (add_store_equivs): Update validate_equiv_mem call.
6613 2016-04-30  Alan Modra  <amodra@gmail.com>
6615         * ira.c (combine_and_move_insns): Rather than scanning insns,
6616         use DF infrastucture to find use and def insns.
6618 2016-04-30  Alan Modra  <amodra@gmail.com>
6620         ira.c (combine_and_move_insns): Move invariant conditions..
6621         (ira.c): ..to here.  Call combine_and_move_insns before
6622         add_store_equivs.  Call grow_reg_equivs later.  Allocate
6623         req_equiv later using max_reg_num() rather than global max_regno.
6624         (contains_replace_regs): Delete.
6625         (add_store_equivs): Remove contains_replace_regs test.
6627 2016-04-30  Alan Modra  <amodra@gmail.com>
6629         * ira.c (struct equiv_mem_data): New.
6630         (equiv_mem, equiv_mem_modified): Delete static vars.
6631         (validate_equiv_mem_from_store): Use "data" param to communicate..
6632         (validate_equiv_mem): ..from here.
6634 2016-04-30  Alan Modra  <amodra@gmail.com>
6636         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
6637         split out from..
6638         (update_reg_equivs): ..here.  Move allocation and freeing of
6639         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
6640         end_alias_analysis to..
6641         (ira): ..here.
6643 2016-04-30  Alan Modra  <amodra@gmail.com>
6645         * ira.c (pdx_subregs): Delete.
6646         (struct equivalence): Add pdx_subregs field.
6647         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
6648         pdx_subregs access.
6649         (update_equiv_regs): Don't create or free pdx_subregs.  Update
6650         pdx_subregs access.
6652 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6654         * config/rs6000/altivec.h: Change definitions of vec_xl and
6655         vec_xst.
6656         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
6657         (LD_ELEMREV_V2DI): New.
6658         (LD_ELEMREV_V4SF): New.
6659         (LD_ELEMREV_V4SI): New.
6660         (LD_ELEMREV_V8HI): New.
6661         (LD_ELEMREV_V16QI): New.
6662         (ST_ELEMREV_V2DF): New.
6663         (ST_ELEMREV_V2DI): New.
6664         (ST_ELEMREV_V4SF): New.
6665         (ST_ELEMREV_V4SI): New.
6666         (ST_ELEMREV_V8HI): New.
6667         (ST_ELEMREV_V16QI): New.
6668         (XL): New.
6669         (XST): New.
6670         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6671         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
6672         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
6673         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
6674         (altivec_expand_builtin): Add handling for
6675         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
6676         (rs6000_invalid_builtin): Add error-checking for
6677         RS6000_BTM_P9_VECTOR.
6678         (altivec_init_builtins): Define builtins used to implement vec_xl
6679         and vec_xst.
6680         (rs6000_builtin_mask_names): Define power9-vector.
6681         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
6682         (RS6000_BTM_P9_VECTOR): Define.
6683         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
6684         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
6685         (vsx_ld_elemrev_v2df): Likewise.
6686         (vsx_ld_elemrev_v4sf): Likewise.
6687         (vsx_ld_elemrev_v4si): Likewise.
6688         (vsx_ld_elemrev_v8hi): Likewise.
6689         (vsx_ld_elemrev_v16qi): Likewise.
6690         (vsx_st_elemrev_v2df): Likewise.
6691         (vsx_st_elemrev_v2di): Likewise.
6692         (vsx_st_elemrev_v4sf): Likewise.
6693         (vsx_st_elemrev_v4si): Likewise.
6694         (vsx_st_elemrev_v8hi): Likewise.
6695         (vsx_st_elemrev_v16qi): Likewise.
6696         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
6697         grammar.
6699 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
6701         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
6702         out into ...
6703         (simplify_control_stmt_condition_1): ... here.  Recurse into
6704         BIT_AND_EXPRs and BIT_IOR_EXPRs.
6706 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
6708         PR target/69810
6709         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
6710         (zero_extendqi<mode>2_dot): Revert earlier conversion from
6711         define_insn_and_split to define_insn.
6712         (zero_extendqi<mode>2_dot2): Same.
6713         (extendqi<mode>2_dot): Same.
6714         (extendqi<mode>2_dot2): Same.
6716 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
6718         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
6719         (probe_stack): New expander.
6720         (probe_stack_<mode>): New insn pattern.
6722 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
6724         * config/i386/i386.md
6725         (operations with memory inputs setting flags peephole2):
6726         Remove uneeded REG_P checks.  Cleanup pattern generation.
6728 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
6730         * tree-vect-loop.c (vect_transform_loop): Fix
6731         nb_iterations_upper_bound computation for vectorized loop.
6733 2016-04-29  Marek Polacek  <polacek@redhat.com>
6734             Jakub Jelinek  <jakub@redhat.com>
6736         PR sanitizer/70342
6737         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
6738         TARGET_EXPR_SLOT as a base.
6740 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
6742         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
6743         with 'rCm2' constraints to limit possible immediate size.
6744         (*load_zeroextendqisi_update): Likewise.
6745         (*load_signextendqisi_update): Likewise.
6746         (*loadhi_update): Likewise.
6747         (*load_zeroextendhisi_update): Likewise.
6748         (*load_signextendhisi_update): Likewise.
6749         (*loadsi_update): Likewise.
6750         (*loadsf_update): Likewise.
6752 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
6754         * config/i386/predicates.md (constm1_operand): Fix comparison.
6756 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
6758         * testsuite/gcc.target/arc/ieee_eq.c: New test.
6760 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
6762         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
6763         remaining SH5 related settings.
6764         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
6765         shmedia_prepare_call_address): Delete.
6766         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
6767         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
6768         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
6769         UNSUPPORTED_SH2A): Remove m5 checks.
6770         (sh_divide_strategy_e): Remove SH5 division strategies.
6771         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
6772         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
6774 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6776         * config/s390/s390.c (s390_rtx_costs): Update documentation.
6778 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6780         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
6781         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
6782         Change lder to ldr.
6783         * config/s390/vector.md ("mov<mode>"): Likewise.
6785 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
6787         * config/s390/constraints.md ("U", "W"): Invoke
6788         s390_mem_constraint with "ZR" and "ZT".
6789         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
6790         addresses when using LRA.  Accept also short displacements for S
6791         and T constraints.  Do not check for long displacement target for
6792         S and T constraints.
6793         (s390_mem_constraint): Remove handling of U and W constraints.
6794         * config/s390/s390.md (various patterns): Remove the short
6795         displacement constraints (Q and R) if a long displacement
6796         constraint is present.  Add longdisp as required CPU capability.
6797         * config/s390/vector.md: Likewise.
6798         * config/s390/vx-builtins.md: Likewise.
6800 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6802         PR target/60040
6803         * reload1.c (reload): Call finish_spills before
6804         restarting reload loop. Skip select_reload_regs
6805         if update_eliminables_and_spill returns true.
6807 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
6809         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
6810         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
6811         (umulhisi3_imm): Update predicates and constraint letters.
6812         (umulhisi3_reg): Declare instruction as commutative.
6813         * config/arc/constraints.md (J12, J16): New constraints.
6814         * config/arc/predicates.md (short_unsigned_const_operand): New
6815         predicate.
6816         (arc_short_operand): Likewise.
6817         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
6819 2016-04-29  Richard Biener  <rguenther@suse.de>
6821         PR tree-optimization/13962
6822         PR tree-optimization/65686
6823         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
6824         * tree-ssa-alias.c (ptrs_compare_unequal): New function
6825         using PTA to compare pointers.
6826         * match.pd: Add pattern for pointer equality compare simplification
6827         using ptrs_compare_unequal.
6829 2016-04-29  Richard Biener  <rguenther@suse.de>
6831         * stor-layout.c (layout_type): Do not build a pointer-to-element
6832         type for arrays.
6834 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
6836         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
6837         Use SWI mode iterator.  Use general_reg_operand predicate.
6838         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
6839         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
6840         predicates.
6842 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
6844         PR middle-end/70843
6845         * fold-const.c (operand_equal_p): Don't verify hash value equality
6846         if arg0 == arg1.
6847         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
6848         and OMP_CLAUSE.
6850 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
6852         PR target/70858
6853         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
6854         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
6855         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
6856         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
6857         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
6859 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
6861         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
6862         to info.  Don't initialize separate fields to 0.  Clean up
6863         formatting a bit.
6865 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
6867         * config/i386/i386.md (peephole2s for operations with memory inputs):
6868         Use SWI mode iterator.
6869         (peephole2s for operations with memory outputs): Ditto.
6870         Do not check for stack checking probe.
6872         (probe_stack): Remove expander.
6874 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
6875             Andrew Burgess  <andrew.burgess@embecosm.com>
6877         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
6878         operands as 32-bits.
6880 2016-04-28  Jason Merrill  <jason@redhat.com>
6882         * gdbinit.in: Skip line-map.h.
6884 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
6885             Andrew Burgess  <andrew.burgess@embecosm.com>
6887         * config/arc/arc.c (arc_conditional_register_usage): Take
6888         TARGET_RRQ_CLASS into account.
6889         (arc_print_operand): Support printing 'p' and 's' operands.
6890         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
6891         as 0.
6892         (TARGET_RRQ_CLASS): Define.
6893         (IS_POWEROF2_OR_0_P): Define.
6894         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
6895         alternatives.
6896         (*tst_movb): New define_insn.
6897         (*tst): Avoid recognition if it could prevent '*tst_movb'
6898         combination; replace c/CnL with c/Chs alternative.
6899         (*tst_bitfield_tst): New define_insn.
6900         (*tst_bitfield_asr): New define_insn.
6901         (*tst_bitfield): New define_insn.
6902         (andsi3_i): Add Rrq variant.
6903         (extzv): New define_expand.
6904         (insv): New define_expand.
6905         (*insv_i): New define_insn.
6906         (*movb): New define_insn.
6907         (*movb_signed): New define_insn.
6908         (*movb_high): New define_insn.
6909         (*movb_high_signed): New define_insn.
6910         (*movb_high_signed + 1): New define_split pattern.
6911         (*mrgb): New define_insn.
6912         (*mrgb + 1): New define_peephole2 pattern.
6913         (*mrgb + 2): New define_peephole2 pattern.
6914         * config/arc/arc.opt (mbitops): New option for nps400, uses
6915         TARGET_NPS_BITOPS_DEFAULT.
6916         * config/arc/constraints.md (q): Make register class conditional.
6917         (Rrq): New register constraint.
6918         (Chs): New constraint.
6919         (Clo): New constraint.
6920         (Chi): New constraint.
6921         (Cbf): New constraint.
6922         (Cbn): New constraint.
6923         (C18): New constraint.
6924         (Cbi): New constraint.
6926 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
6928         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
6929         dst->popcount.
6930         (bitmap_intersection_of_preds): Ditto.
6931         (bitmap_union_of_succs): Ditto.
6932         (bitmap_union_of_preds): Ditto.
6933         * sbitmap.c (do_popcount): Delete.
6934         (BITMAP_DEBUGGING): Delete.
6935         (sbitmap_verify_popcount): Delete.
6936         (sbitmap_alloc): Don't initialize the popcount field.
6937         (sbitmap_alloc_with_popcount): Delete.
6938         (sbitmap_resize): Don't resize the popcount array.
6939         (sbitmap_vector_alloc): Don't initialize the popcount field.
6940         (bitmap_copy): Don't copy the popcount array.
6941         (bitmap_clear): Don't clear the popcount array.
6942         (bitmap_clear): Delete the popcount array handling.
6943         (bitmap_ior_and_compl): Delete the popcount assert.
6944         (bitmap_not): Ditto.
6945         (bitmap_and_compl): Ditto.
6946         (bitmap_and): Delete the popcount array handling.
6947         (bitmap_xor): Ditto.
6948         (bitmap_ior): Ditto.
6949         (bitmap_or_and): Delete the popcount assert.
6950         (bitmap_and_or): Ditto.
6951         (popcount_table): Delete.
6952         (sbitmap_elt_popcount): Delete.
6953         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
6954         (bitmap_set_bit): Delete the popcount assert.
6955         (bitmap_clear_bit): Ditto.
6956         (sbitmap_free): Don't free the popcount array.
6957         (sbitmap_alloc_with_popcount): Delete declaration.
6958         (sbitmap_popcount): Ditto.
6960 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
6961             Andrew Burgess  <andrew.burgess@embecosm.com>
6963         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
6964         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
6965         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
6966         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
6967         * config/arc/arc.opt (mcmem): New option.
6968         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
6969         supply length for r/m alternative.
6970         (*extendqisi2_ac): Likewise.
6971         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
6972         r/Uex alternative.
6973         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
6974         (movhi_insn): Likewise.
6975         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
6976         (*zero_extendqihi2_i): Add r/Ucm alternative.
6977         (*zero_extendqisi2_ac): Likewise.
6978         (*zero_extendhisi2_i): Likewise.
6979         * config/arc/constraints.md (Uex): New memory constraint.
6980         (Ucm): New define_constraint.
6981         * config/arc/predicates.md (long_immediate_loadstore_operand):
6982         Return 0 for MEM with cmem_address address.
6983         (cmem_address_0): New predicates.
6984         (cmem_address_1): Likewise.
6985         (cmem_address_2): Likewise.
6986         (cmem_address): Likewise.
6988 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
6990         * config/rs6000/rs6000.c (machine_function): Rename
6991         insn_chain_scanned_p to spe_insn_chain_scanned_p.
6992         (rs6000_stack_info): Adjust.
6994 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
6995             Andrew Burgess  <andrew.burgess@embecosm.com>
6997         * config/arc/constraints.md (Usd): Convert to define_constraint.
6998         (Us<): Likewise.
6999         (Us>): Likewise.
7001 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
7003         PR target/70821
7004         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
7005         Add new peephole2 where the first insn is *mov<mode>_or instead of
7006         *mov<mode>_internal.
7008 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
7010         * tracer.c (bb_seen): Make static.
7012 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
7014         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
7015         support, setup defaults.
7016         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
7017         * config/arc/arc.c (arc_init): Add NPS400 support.
7018         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
7019         (TARGET_ARC700): NPS400 is also an ARC700.
7020         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
7022 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
7024         PR target/70668
7025         * config/nds32/nds32.md (casesi): Don't access the operands array
7026         out of bounds.
7028 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
7030         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
7031         (or $-1,reg peephole2): Ditto.
7032         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
7034 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
7036         * doc/extend.texi (Common Function Attributes) [optimize]:
7037         Discourage use of the optimize attribute.
7039 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
7041         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
7042         special case builtin.
7043         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
7044         ALTIVEC_BUILTIN_VEC_ADDE.
7045         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
7046         support for ALTIVEC_BUILTIN_VEC_ADDE.
7047         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
7048         for __builtin_vec_adde.
7050 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
7052         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
7053         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
7055 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7057         PR testsuite/70595
7058         * doc/sourcebuild.texi (Effective-Target Keywords, Other
7059         attributes): Document cilkplus_runtime.
7061 2016-04-28  Martin Jambor  <mjambor@suse.cz>
7063         * tree-cfg.c (verify_expr): Verify that local declarations belong to
7064         this function.  Call verify_expr on MEM_REFs and bases of other
7065         handled_components.
7067 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7069         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
7070         for WORD_REGISTER_OPERATIONS to runtime check.
7072 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7074         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
7076 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7078         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
7079         big-endian compilation.
7080         * config/arc/arc.md (addf3): Likewise.
7081         (subdf3): Likewise.
7082         (muldf3): Likewise.
7084 2016-04-28  Richard Biener  <rguenther@suse.de>
7086         PR tree-optimization/70840
7087         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
7088         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
7089         Mark x * pow(x,c) -> pow(x,c+1) commutative.
7090         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
7092 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7094         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
7095         and explain why in a comment.
7097 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7099         * config/arc/arc.md (cpu_facility): Add fpx variant.
7100         (subdf3): Prohibit use reverse sub when assist operations option
7101         is enabled.
7102         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
7103         instructions only when FPX is enabled.
7104         * testsuite/gcc.target/arc/trsub.c: New test.
7106 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
7108         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
7109         mult_operator when calculating "type" attribute.
7110         (*fop_<mode>_1_i387): Ditto.
7111         (*fop_xf_1_i387): Ditto.
7112         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
7113         Use std::swap to swap operands.  Use RTL expressions to generate
7114         converted pattern.
7116 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7117             Joern Rennecke  <joern.rennecke@embecosm.com>
7119         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
7120         declaration.
7121         (emit_pic_move): Remove.
7122         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
7123         * config/arc/arc.c (emit_pic_move): Removed.
7124         (TARGET_HAVE_TLS): Define.
7125         (arc_conditional_register_usage): Test for arc_tp_regno.
7126         (arc_print_operand, arc_print_operand_address): Handle TLS
7127         unspecs.
7128         (arc_needs_pcl_p): New function.
7129         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
7130         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
7131         (arc_raw_symbolic_reference_mentioned_p): Likewise.
7132         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
7133         (arc_legitimize_tls_address): Likewise.
7134         (DTPOFF_ZERO_SYM): Define.
7135         (arc_legitimize_pic_address): Make it static, handle TLS cases.
7136         (arc_output_pic_addr_const): Print TLS unspecs.
7137         (prepare_pic_move): New function, replaces emit_pic_move.
7138         (arc_legitimate_constant_p): Handle TLS unspecs.
7139         (arc_legitimate_address_p): Likewise.
7140         (arc_rewrite_small_data_p): Use assert for TLS constants.
7141         (prepare_move_operands): Use prepare_pic_move.
7142         (arc_legitimize_address): Legitimize tls addresses.
7143         (arc_epilogue_uses): Check for arc_tp_regno.
7144         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
7145         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
7146         Define.
7147         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
7148         Likewise.
7149         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
7150         %(arc_tls_extra_start_spec).
7151         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
7152         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
7153         (EH_USES): Define.
7154         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
7155         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
7156         (UNSPEC_TLS_OFF): Add.
7157         (R10_REG): Define.
7158         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
7159         (get_thread_pointersi): New patterns.
7160         * config/arc/arc.opt (mtp-regno): New option.
7161         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
7162         (move_dest_operand): Likewise.
7163         * configure: Regenerate.
7164         * configure.ac: Add arc*-*-* case to test for tls.
7165         * doc/invoke.texi (ARC options): Document mtp-regno.
7167 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7169         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
7170         the new ARC HS SIMD instructions.
7171         (arc_preferred_simd_mode): New function.
7172         (arc_autovectorize_vector_sizes): Likewise.
7173         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
7174         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7175         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
7176         (arc_init_builtins): Add new SIMD builtin types.
7177         (arc_split_move): Handle 64 bit vector moves.
7178         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
7179         (TARGET_PLUS_QMACW): Define.
7180         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
7181         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
7182         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
7183         (VSUBADD4H): New builtins.
7184         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
7185         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
7187 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
7188             Matthias Klose  <doko@debian.org>
7190         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
7192 2016-04-28  Richard Biener  <rguenther@suse.de>
7194         PR middle-end/70777
7195         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
7196         canonicalization.
7198 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
7200         * common/config/sh/sh-common.c: Remove SH5 support.
7201         * config/sh/constraints.md: Likewise.
7202         * config/sh/config/sh/elf.h: Likewise.
7203         * config/sh/linux.h: Likewise.
7204         * config/sh/netbsd-elf.h: Likewise.
7205         * config/sh/predicates.md: Likewise.
7206         * config/sh/sh-c.c: Likewise.
7207         * config/sh/sh-protos.h: Likewise.
7208         * config/sh/sh.c: Likewise.
7209         * config/sh/sh.h: Likewise.
7210         * config/sh/sh.md: Likewise.
7211         * config/sh/sh.opt: Likewise.
7212         * config/sh/sync.md: Likewise.
7213         * config/sh/sh64.h: Delete.
7214         * config/sh/shmedia.h: Likewise.
7215         * config/sh/shmedia.md: Likewise.
7216         * config/sh/sshmedia.h: Likewise.
7217         * config/sh/t-netbsd-sh5-64: Likewise.
7218         * config/sh/t-sh64: Likewise.
7219         * config/sh/ushmedia.h: Likewise.
7221 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
7223         * config/i386/i386.md (sign_extend to memory peephole2s): Use
7224         general_reg_operand instead of register_operand predicate.
7226 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7228         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
7230 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
7232         * match.pd (A - B > A, A + B < A): New transformations.
7234 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
7236         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
7237         which defaults to true.  Emit an outer pair of parentheses only if
7238         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
7239         don't emit parentheses for the right-hand operand.
7241 2016-04-27  Jeff Law  <law@redhat.com>
7243         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
7245 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7247         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
7248         (altivec_lvx_<mode>_internal): Document.
7249         (altivec_lvx_<mode>_2op): New define_insn.
7250         (altivec_lvx_<mode>_1op): Likewise.
7251         (altivec_lvx_<mode>_2op_si): Likewise.
7252         (altivec_lvx_<mode>_1op_si): Likewise.
7253         (altivec_stvx_<mode>): Remove.
7254         (altivec_stvx_<mode>_internal): Document.
7255         (altivec_stvx_<mode>_2op): New define_insn.
7256         (altivec_stvx_<mode>_1op): Likewise.
7257         (altivec_stvx_<mode>_2op_si): Likewise.
7258         (altivec_stvx_<mode>_1op_si): Likewise.
7259         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7260         Expand vec_ld and vec_st during parsing.
7261         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
7262         changes.
7263         (altivec_expand_stvx_be): Likewise.
7264         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
7265         address-masking behavior in RTL.
7266         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
7267         address-masking behavior in RTL.
7268         (altivec_expand_builtin): Change builtin code arguments for calls
7269         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
7270         (insn_is_swappable_p): Avoid incorrect swap optimization in the
7271         presence of lvx/stvx patterns.
7272         (alignment_with_canonical_addr): New function.
7273         (alignment_mask): Likewise.
7274         (find_alignment_op): Likewise.
7275         (recombine_lvx_pattern): Likewise.
7276         (recombine_stvx_pattern): Likewise.
7277         (recombine_lvx_stvx_patterns): Likewise.
7278         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
7279         stvx patterns from expand.
7280         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
7281         expansions.
7282         (vector_altivec_store_<mode>): Likewise.
7284 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
7286         * config/aarch64/aarch64.md
7287         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
7288         remove the "fp" attributes.
7289         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
7290         add the "simd" attributes.
7291         (*movdf_aarch64): Likewise.
7292         (*movtf_aarch64): Remove the "fp" attributes.
7293         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
7294         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
7296 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7298         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
7299         rtx to rtx_code_label *.
7300         * rtl.h (maybe_set_first_label_num): Likewise.
7302 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7304         * df-core.c (df_add_problem): Make the problem param be const.
7305         (df_remove_problem): Make local "problem" be const.
7306         * df-problems.c (problem_RD): Make const.
7307         (problem_LR): Likewise.
7308         (problem_LIVE): Likewise.
7309         (problem_MIR): Likewise.
7310         (problem_CHAIN): Likewise.
7311         (problem_WORD_LR): Likewise.
7312         (problem_NOTE): Likewise.
7313         (problem_MD): Likewise.
7314         * df-scan.c (problem_SCAN): Likewise.
7315         * df.h (struct df_problem): Make field "dependent_problem" be
7316         const.
7317         (struct dataflow): Likewise for field "problem".
7318         (df_add_problem): Make param const.
7320 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
7322         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
7323         inter-unit moves to/from vector registers are enabled.  Do not disable
7324         for TARGET_MMX.
7326 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7328         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
7329         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
7330         #define to...
7331         (enum df_problem_id): ...this new enum.
7332         (struct df_problem): Convert field "id" from "int" to
7333         enum df_problem_id.
7335 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7337         * rtl.def: Update comment for "things in the instruction chain" to
7338         reflect the removal of the leading "i" field for INSN_UID in
7339         r210360.  Fix bogus apostrophe.
7341 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
7343         * config/i386/i386.md
7344         (lea arith with mem operand + setcc peephole2): Set operator mode.
7346 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
7348         PR target/70155
7349         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
7350         (dimode_scalar_to_vector_candidate_p): This.
7351         (timode_scalar_to_vector_candidate_p): New function.
7352         (scalar_to_vector_candidate_p): Likewise.
7353         (timode_check_non_convertible_regs): Likewise.
7354         (timode_remove_non_convertible_regs): Likewise.
7355         (remove_non_convertible_regs): Likewise.
7356         (remove_non_convertible_regs): Renamed to ...
7357         (dimode_remove_non_convertible_regs): This.
7358         (scalar_chain::~scalar_chain): Make it virtual.
7359         (scalar_chain::compute_convert_gain): Make it pure virtual.
7360         (scalar_chain::mark_dual_mode_def): Likewise.
7361         (scalar_chain::convert_insn): Likewise.
7362         (scalar_chain::convert_registers): Likewise.
7363         (scalar_chain::add_to_queue): Make it protected.
7364         (scalar_chain::emit_conversion_insns): Likewise.
7365         (scalar_chain::replace_with_subreg): Likewise.
7366         (scalar_chain::replace_with_subreg_in_insn): Likewise.
7367         (scalar_chain::convert_op): Likewise.
7368         (scalar_chain::convert_reg): Likewise.
7369         (scalar_chain::make_vector_copies): Likewise.
7370         (scalar_chain::convert_registers): New pure virtual function.
7371         (class dimode_scalar_chain): New class.
7372         (class timode_scalar_chain): Likewise.
7373         (scalar_chain::mark_dual_mode_def): Renamed to ...
7374         (dimode_scalar_chain::mark_dual_mode_def): This.
7375         (timode_scalar_chain::mark_dual_mode_def): New function.
7376         (timode_scalar_chain::convert_insn): Likewise.
7377         (dimode_scalar_chain::convert_registers): Likewise.
7378         (scalar_chain::compute_convert_gain): Renamed to ...
7379         (dimode_scalar_chain::compute_convert_gain): This.
7380         (scalar_chain::replace_with_subreg): Renamed to ...
7381         (dimode_scalar_chain::replace_with_subreg): This.
7382         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
7383         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
7384         (scalar_chain::make_vector_copies): Renamed to ...
7385         (dimode_scalar_chain::make_vector_copies): This.
7386         (scalar_chain::convert_reg): Renamed to ...
7387         (dimode_scalar_chain::convert_reg ): This.
7388         (scalar_chain::convert_op): Renamed to ...
7389         (dimode_scalar_chain::convert_op): This.
7390         (scalar_chain::convert_insn): Renamed to ...
7391         (dimode_scalar_chain::convert_insn): This.
7392         (scalar_chain::convert): Call convert_registers.
7393         (convert_scalars_to_vector): Change to scalar_chain pointer to
7394         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
7395         in 32-bit mode.  Delete scalar_chain pointer.  Call
7396         free_dominance_info in 64-bit mode.
7397         (pass_stv::gate): Remove TARGET_64BIT check.
7398         (ix86_option_override): Put the 64-bit STV pass before the CSE
7399         pass.
7401 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
7403         * dwarf2out.h (struct dw_loc_descr_node): Remove the
7404         dw_loc_frame_offset field.
7405         * dwarf2out.c (new_loc_descr): Likewise.
7406         (resolve_args_picking_1): Turn the VISITED hash set into a
7407         FRAME_OFFSET hash map. Use it to associate a frame offset to
7408         visited nodes. Remove uses of the CHECKING_P macro.
7409         (resolve_args_picking): Update call to resolve_args_picking_1.
7411 2016-04-27  Martin Liska  <mliska@suse.cz>
7413         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
7414         (free_loop_data): Release vuses of groups.
7416 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
7418         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
7419         instead of redundant use_id and boolean have_use_for.
7420         (struct iv_use): Change sub_id into group_id.  Remove field next.
7421         Move fields: related_cands, n_map_members, cost_map and selected
7422         to ...
7423         (struct iv_group): ... here.  New structure.
7424         (struct iv_common_cand): Use structure declaration directly.
7425         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
7426         (MAX_CONSIDERED_USES): Rename macro to ...
7427         (MAX_CONSIDERED_GROUPS): ... here.
7428         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
7429         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
7430         (dump_uses): Rename to ...
7431         (dump_groups): ... here.  Update all uses.
7432         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
7433         (find_induction_variables): Refactor format of dump information.
7434         (record_sub_use): Delete.
7435         (record_use): Update all uses.
7436         (record_group): New function.
7437         (record_group_use, find_interesting_uses_op): Call above functions.
7438         Update all uses.
7439         (find_interesting_uses_cond): Ditto.
7440         (group_compare_offset): New function.
7441         (split_all_small_groups): Rename to ...
7442         (split_small_address_groups_p): ... here.  Update all uses.
7443         (split_address_groups):  Update all uses.
7444         (find_interesting_uses): Refactor format of dump information.
7445         (add_candidate_1): Update all uses.  Remove redundant check on iv,
7446         base and step.
7447         (add_candidate, record_common_cand): Remove redundant assert.
7448         (add_iv_candidate_for_biv): Update use.
7449         (add_iv_candidate_derived_from_uses): Update all uses.
7450         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
7451         (alloc_use_cost_map): Ditto.
7452         (set_use_iv_cost, get_use_iv_cost): Rename to ...
7453         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
7454         (determine_use_iv_cost_generic): Ditto.
7455         (determine_group_iv_cost_generic): Ditto.
7456         (determine_use_iv_cost_address): Ditto.
7457         (determine_group_iv_cost_address): Ditto.
7458         (determine_use_iv_cost_condition): Ditto.
7459         (determine_group_iv_cost_cond): Ditto.
7460         (determine_use_iv_cost): Ditto.
7461         (determine_group_iv_cost): Ditto.
7462         (set_autoinc_for_original_candidates): Update all uses.
7463         (find_iv_candidates): Update all uses.  Refactor dump information.
7464         (determine_use_iv_costs): Ditto.
7465         (determine_iv_costs): Ditto.
7466         (iv_ca_cand_for_use): Rename to ...
7467         (iv_ca_cand_for_group): ... here.  Update all uses.
7468         (iv_ca_add_use, iv_ca_add_group): Ditto.
7469         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
7470         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
7471         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
7472         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
7473         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
7474         (create_new_iv, adjust_iv_update_pos): Ditto.
7475         (rewrite_use_address): Delete.
7476         (rewrite_use_address_1): Rename to ...
7477         (rewrite_use_address): ... here.
7478         (rewrite_use_compare): Update all uses.
7479         (rewrite_use): Delete.
7480         (rewrite_uses): Rename to ...
7481         (rewrite_groups): ... here.  Update all uses.
7482         (remove_unused_ivs, free_loop_data): Update all uses.
7483         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
7485 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7487         * rtlanal.c (nonzero_bits1): Convert preprocessor check
7488         for WORD_REGISTER_OPERATIONS to runtime check.
7490 2016-04-27  Richard Biener  <rguenther@suse.de>
7492         PR ipa/70760
7493         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
7494         aggregate_value_p to determine if a function result is
7495         returned by reference.
7496         (ipa_pta_execute): Functions having their address taken are
7497         not automatically nonlocal.
7499 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
7501         PR sanitizer/70683
7502         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
7503         * fold-const.c (operand_equal_p): If flag_checking and
7504         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
7505         and if it returns non-zero, assert iterative_hash_expr on both
7506         args is the same.
7508 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
7510         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
7512 2016-04-27  Nick Clifton  <nickc@redhat.com>
7514         PR middle-end/49889
7515         * varasm.c (merge_weak): Generate an error if an attempt is made
7516         to convert a non-weak static function into a weak, public function.
7518 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7520         * params.def (MAX_PARTITION_SIZE): New param.
7521         * doc/invoke.texi: Document lto-max-partition.
7523 2016-04-27  Richard Biener  <rguenther@suse.de>
7525         PR ipa/70785
7526         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
7527         function cummulating used_from_other_partition, externally_visible
7528         and force_output from aliases.
7529         (refered_from_nonlocal_var): Likewise.
7530         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
7531         node flags properly.
7533 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
7535         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
7536         (-Wmemset-elt-size): New item.
7538 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
7540         PR ada/70759
7541         * stor-layout.h (internal_reference_types): Delete.
7542         * stor-layout.c (reference_types_internal): Likewise.
7543         (internal_reference_types): Likewise.
7544         (layout_type) <REFERENCE_TYPE>: Adjust.
7546 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
7548         PR sanitizer/70683
7549         * tree.h (inchash::add_expr): Add FLAGS argument.
7550         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
7551         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
7552         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
7553         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
7554         if swap_tree_comparison (code) is smaller than code, hash that
7555         and arguments in the other order.  Hash CONVERT_EXPR the same
7556         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
7557         of ADDR_EXPR of decl as the decl itself.  Add or remove
7558         OEP_ADDRESS_OF from recursive flags as needed.  For
7559         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
7560         operands commutatively and only the third one normally.
7561         For internal CALL_EXPR hash in CALL_EXPR_IFN.
7563 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7565         * config/rtems.h (LIB_SPEC): Add -latomic.
7567 2016-04-27  Joel Sherrill  <joel@rtems.org>
7569         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
7570         xilink.ld and flags not relevant to RTEMS.
7572 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
7574         * toplev.c (backend_init_target): Avoid calling init_reload when using
7575         LRA.
7577 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
7579         * reorg.c (try_merge_delay_insns): Declare i and j inside the
7580         for loops rather than one for the whole function.
7582 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
7584         * match.pd (X + CST CMP X): New transformation.
7586 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
7588         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
7589         * fold-const.c (fold_binary_loc): Remove 2 transformations
7590         superseded by match.pd.
7591         * match.pd (x+x -> x*2): Generalize to integers.
7593 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
7595         * config/i386/i386.md (operation on memory peephole): Duplicate an
7596         existing peephole and adapt it to match lea rather than an operation
7597         that clobbers CC.
7599         PR rtl-optimization/57193
7600         * opts.c (default_options_table): Add OPT_frename_registers at -O2
7601         and above.
7602         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
7604 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
7606         * tree-if-conv.c (any_pred_load_store): New static variable.
7607         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
7608         any_pred_load_store instead of and_mask_load_store.
7609         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
7610         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
7611         (combine_blocks, tree_if_conversion): Ditto.
7613 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
7615         PR tree-optimization/70771
7616         PR tree-optimization/70775
7617         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
7618         virtual PHI nodes.  Delete parameter.
7619         (if_convertible_loop_p_1): Delete argument to above function.
7620         (predicate_all_scalar_phis): Delete code handling single-argument
7621         PHIs.
7622         (tree_if_conversion): Mark and update virtual SSA.
7624 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7626         PR target/61821
7627         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
7628         (x86_elf_aligned_common): Rename to ...
7629         (x86_elf_aligned_decl_common): ... this.
7630         Add decl arg.  Switch to .lbss for largecomm object.  Use
7631         LARGECOMM_SECTION_ASM_OP.
7632         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
7633         renaming.
7634         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
7635         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
7636         Pass new decl arg.
7637         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
7638         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
7640 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7642         PR target/59407
7643         * config/i386/i386.c (SECTION_LARGE): Define.
7644         (x86_64_elf_select_section): Set it for large data/bss sections.
7645         Only clear SECTION_WRITE for .lrodata.
7646         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
7647         data/bss sections.
7648         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
7649         * varasm.c (default_elf_asm_named_section): Grow flagchars.
7650         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
7651         SECTION_MACH_DEP.
7652         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
7653         * doc/tm.texi: Regenerate.
7655 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
7657         PR bootstrap/70704
7658         * configure.ac (--enable-checking): Document extra flag, for
7659         non-release builds default to --enable-checking=yes,extra.
7660         If misc checking and extra checking, define CHECKING_P to 2 instead
7661         of 1.
7662         * common.opt (fchecking=): Add.
7663         * doc/invoke.texi (-fchecking=): Document.
7664         * doc/install.texi: Document --enable-checking changes.
7665         * configure: Regenerated.
7666         * config.in: Regenerated.
7668 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
7670         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
7671         attribute instead of which_alternative.
7672         * config/i386/sse.md (*mov<mode>_internal): Ditto.
7673         Use EXT_REX_SSE_REG_P where appropriate.
7675 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
7677         * config/i386/predicates.md (const0_operand): Do not match
7678         const_wide_int code.
7679         (const1_operand): Ditto.
7681 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
7683         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
7684         for SSE constm1 operands and TARGET_AVX512VL.
7685         (*movti_internal): Ditto.
7686         (*mov<mode>_or): Use constm1_operand predicate.
7687         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
7688         for SSE vector_all_ones operands and TARGET_AVX512VL.
7689         * config/i386/predicates.md (constm1_operand): New predicate.
7690         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
7691         emission of constant -1 load.
7693 2016-04-25  Jason Merrill  <jason@redhat.com>
7695         * gdbinit.in: Skip is-a.h.
7697         * attribs.c (register_scoped_attributes): Fix logic.
7698         * attribs.h: Declare register_scoped_attributes.
7700 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7702         * config/rs6000/rs6000-builtin.def: Correct pasto error for
7703         stxvd2x and stxvw4x built-in functions.
7705 2016-04-25  DJ Delorie  <dj@redhat.com>
7707         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
7708         (ashrhi3): Likewise.
7709         (lshrhi3): Likewise.
7711 2016-04-25  Richard Biener  <rguenther@suse.de>
7713         PR tree-optimization/70780
7714         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
7715         wasn't visited yet.
7716         (compute_antic): Mark blocks with abnormal preds as visited as
7717         they have a final empty antic-in solution already.
7719 2016-04-25  Michael Collison  <michael.collison@linaro.org>
7721         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
7723 2016-04-25  Michael Collison  <michael.collison@linaro.org>
7725         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
7726         mode is VQI to improve mixed mode vectorization.
7727         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
7728         define_insn to match low half of signed vaddw.
7729         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
7730         define_insn to match high half of signed vaddw.
7731         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
7732         define_insn to match low half of unsigned vaddw.
7733         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
7734         define_insn to match high half of unsigned vaddw.
7735         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
7736         (arm_simd_check_vect_par_cnst_half_p): Likewise.
7737         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
7738         for new function.
7739         (arm_simd_check_vect_par_cnst_half_p): Likewise.
7740         * config/arm/predicates.md (vect_par_constant_high): Support
7741         big endian and simplify by calling
7742         arm_simd_check_vect_par_cnst_half
7743         (vect_par_constant_low): Likewise.
7745 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
7747         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
7748         predicate for operand 2.
7750 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
7751             H.J. Lu  <hongjiu.lu@intel.com>
7753         * config/i386/i386-protos.h (standard_sse_constant_p): Add
7754         machine_mode argument.
7755         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
7756         constm1_rtx operands.  For VOIDmode constants, get mode from
7757         pred_mode.  Check mode size if the mode is supported by ABI.
7758         (standard_sse_constant_opcode): Do not use standard_constant_p.
7759         Strictly check ABI support for all-ones operands.
7760         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
7761         immediates. Update calls to standard_sse_constant_p.
7762         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
7763         (ix86_rtx_costs): Ditto.
7764         * config/i386/i386.md (*movxi_internal_avx512f): Use
7765         nonimmediate_or_sse_const_operand instead of vector_move_operand.
7766         Use (v,BC) alternative instead of (v,C). Use register_operand
7767         checks instead of MEM_P.
7768         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
7769         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
7770         isa attribute.  Use register_operand checks instead of MEM_P.
7771         (*movti_internal): Use nonimmediate_or_sse_const_operand for
7772         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
7773         alternative and corresponding sse2 isa attribute.
7774         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
7775         to standard_sse_constant_p.
7776         (FP constant splitters): Ditto.
7777         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
7778         (C): Ditto.
7779         * config/i386/predicates.md (constm1_operand): Remove.
7780         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
7781         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
7782         vector_all_ones_operand instead of constm1_operand.
7784 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7786         * print-rtl.c (print_rtx_insn_vec): New function.
7787         * print-rtl.h: New prototype.
7788         * store-motion.c (struct st_expr): Make avail_stores a vector.
7789         (st_expr_entry): Adjust.
7790         (free_st_expr_entry): Likewise.
7791         (print_store_motion_mems): Likewise.
7792         (find_moveable_store): Likewise.
7793         (compute_store_table): Likewise.
7794         (delete_store): Likewise.
7795         (build_store_vectors): Likewise.
7797 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7799         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
7801 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7803         * vec.h (vec_safe_contains): New function.
7804         (vec::contains): Likewise.
7805         (vec::begin): Likewise.
7806         (vec::end): Likewise.
7808 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
7810         PR sanitizer/70712
7811         * cfgexpand.c (expand_stack_vars): Fix typo.
7813 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7815         * system.h (list, map, set, vector): Include conditionally.
7816         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
7817         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
7818         * ipa-icf.c (INCLUDE_LIST): Define.
7819         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
7820         * config/sh/sh.c (INCLUDE_VECTOR): Define.
7821         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
7822         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
7823         * cp/logic.cc (INCLUDE_LIST): Define.
7824         * fortran/trans-common.c (INCLUDE_MAP): Define.
7826 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7828         * auto-profile.c: Remove <string.h> include.
7829         * ipa-icf-gimple.c: Remove <list> include.
7830         * diagnostic.c: Remove <new> include.
7831         * genmatch.c: Likewise.
7832         * pretty-print.c: Likewise.
7833         * toplev.c: Likewise
7834         * c/c-objc-common.c: Likewise.
7835         * cp/error.c: Likewise.
7836         * fortran/error.c: Likewise.
7838 2016-04-22  Richard Biener  <rguenther@suse.de>
7840         * lto-streamer-in.c (input_ssa_names): Do not allocate
7841         GIMPLE_NOP for all SSA names.
7842         * lto-streamer-out.c (output_ssa_names): Do not output
7843         SSA names that should have been released.
7845 2016-04-22  Richard Biener  <rguenther@suse.de>
7847         PR tree-optimization/70740
7848         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
7849         VDEF.
7851 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
7853         PR target/70750
7854         * config/i386/predicates.md (call_insn_operand): Replace
7855         sibcall_memory_operand with memory_operand.
7857 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
7859         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
7860         has_single_use() tests.
7861         (register_edge_assert_for_1): Likewise.
7862         (find_assert_locations_1): Check the liveness bitmap instead of
7863         checking has_single_use().
7865 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
7867         PR target/70728
7868         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
7869         Extract AVX-512BW constraint from AVX.
7871 2016-04-21  Richard Biener  <rguenther@suse.de>
7873         PR tree-optimization/70725
7874         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
7875         for phi_convertible_by_degenerating_args.
7876         (predicate_all_scalar_phis): Handle single-argument PHIs.
7878 2016-04-21  Richard Biener  <rguenther@suse.de>
7880         PR middle-end/70747
7881         * fold-const.c (fold_comparison): Return properly typed
7882         constant boolean.
7884 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
7886         PR tree-optimization/70715
7887         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
7888         after expanding BASE using expand_simple_operations.
7890 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
7892         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
7893         New transformations.
7895 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
7897         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
7899 2016-04-20  Jan Hubicka  <jh@suse.cz>
7901         * ipa-inline.c (can_inline_edge_p): Pass caller info to
7902         ultiimate_alias_target.
7903         (update_callee_keys): Likewise.
7904         (lookup_recursive_calls): Likewise.
7905         (speculation_useful_p): Likewise.
7907 2016-04-20  Jan Hubicka  <jh@suse.cz>
7909         PR ipa/70018
7910         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
7911         (set_nothrow_flag_1): ... this; handle interposition correctly;
7912         recurse on aliases and thunks.
7913         (cgraph_node::set_nothrow_flag): New.
7914         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
7915         functions compiled with non-call exceptions that binds to current
7916         def.
7917         (propagate_nothrow): Be safe WRT interposition.
7918         * cgraph.h (set_nothrow_flag): Update prototype.
7920 2016-04-18  Jan Hubicka  <jh@suse.cz>
7922         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
7923         max_loop_iterations_int.
7924         (tree_unswitch_outer_loop): Likewise.
7926 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
7928         PR tree-optimization/69489
7929         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
7930         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
7931         Revise dump message.
7932         (if_convertible_bb_p): Remove check on edge count of basic block's
7933         predecessors.
7935 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
7937         PR tree-optimization/56625
7938         PR tree-optimization/69489
7939         * tree-data-ref.h (DR_INNERMOST): New macro.
7940         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
7941         hashing struct innermost_loop_behavior.
7942         (ref_DR_map): Remove.
7943         (innermost_DR_map): New map.
7944         (baseref_DR_map): Revise comment.
7945         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
7946         to innermost_DR_map accroding to its innermost loop behavior.
7947         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
7948         to its innermost loop behavior.
7949         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
7950         Add initialization for innermost_DR_map.  Record memory reference
7951         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
7952         have innermost loop behavior.
7953         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
7954         innermost_DR_map.
7956 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
7958         * config/i386/i386.md (*lea<mode>_general_1): Rename from
7959         *lea_general_1.  Use explicit SWI12 mode interator.
7960         (*lea<mode>_general_2): Rename from *lea_general_2.
7961         Use explicit SWI12 mode interator.
7962         (*lea<mode>_general_3): Rename from *lea_general_3.
7963         Use explicit SWI12 mode interator.
7964         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
7965         Use explicit SWI12 mode interator.
7966         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
7967         Use explicit SWI48 mode interator.
7969 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
7971         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
7972         Short-cut unaligned load and store cases.  Handle all integer
7973         vector modes.
7974         (ix86_expand_vector_move_misalign): Short-cut unaligned load
7975         and store cases.  Call ix86_avx256_split_vector_move_misalign
7976         directly without checking mode class.
7978 2016-04-20  Andrew Pinski  <apinski@cavium.com>
7979             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7981         PR target/64971
7982         * config/aarch64/aarch64.md (sibcall): Force call
7983         address to be DImode for ILP32.
7984         (sibcall_value): Likewise.
7986 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
7988         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
7990 2016-04-20  Richard Biener  <rguenther@suse.de>
7992         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
7993         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
7994         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
7995         (maybe_push_res_to_seq): Adjust.
7996         * gimple-fold.c (maybe_build_generic_op): Likewise.
7998 2016-04-20  Marek Polacek  <polacek@redhat.com>
8000         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
8001         rather than true.
8003 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
8005         * config/i386/sse.md (vec_unpacks_lo_hi): Always
8006         use kmovw to support AVX512F target.
8008 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
8010         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
8012 2016-04-20  Marek Polacek  <polacek@redhat.com>
8014         PR tree-optimization/70725
8015         * tree-if-conv.c (is_false_predicate): New function.
8016         (predicate_mem_writes): Use it.
8018 2016-04-20  Richard Biener  <rguenther@suse.de>
8020         PR tree-optimization/70726
8021         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
8022         shift amounts from a pattern stmt operand.
8024 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8026         PR target/70674
8027         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
8028         stack_restore_from_fpr pattern when restoring r15.
8029         (s390_optimize_prologue): Strip away the memory barrier in the
8030         parallel when trying to get rid of restore insns.
8031         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
8032         definition for loading the stack pointer from an FPR.  Compared to
8033         the normal move insn this pattern includes a full memory barrier.
8035 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
8037         PR middle-end/70680
8038         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
8039         implicitly linear or lastprivate iterator on the outer context.
8041 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
8043         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
8044         alignment check.
8045         * config/i386/i386.md (ssememalign): Removed.
8046         * config/i386/sse.md: Remove ssememalign attribute from patterns.
8048 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
8050         PR target/69201
8051         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
8052         const short * to __builtin_ia32_loaddquhi512_mask.
8053         (_mm512_maskz_loadu_epi16): Likewise.
8054         (_mm512_mask_storeu_epi16): Pass short * to
8055         __builtin_ia32_storedquhi512_mask.
8056         (_mm512_mask_loadu_epi8): Pass const char * to
8057         __builtin_ia32_loaddquqi512_mask.
8058         (_mm512_maskz_loadu_epi8): Likewise.
8059         (_mm512_mask_storeu_epi8): Pass char * to
8060         __builtin_ia32_storedquqi512_mask.
8061         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
8062         const double * to __builtin_ia32_loadupd512_mask.
8063         (_mm512_mask_loadu_pd): Likewise.
8064         (_mm512_maskz_loadu_pd): Likewise.
8065         (_mm512_storeu_pd): Pass double * to
8066         __builtin_ia32_storeupd512_mask.
8067         (_mm512_mask_storeu_pd): Likewise.
8068         (_mm512_loadu_ps): Pass const float * to
8069         __builtin_ia32_loadups512_mask.
8070         (_mm512_mask_loadu_ps): Likewise.
8071         (_mm512_maskz_loadu_ps): Likewise.
8072         (_mm512_storeu_ps): Pass float * to
8073         __builtin_ia32_storeups512_mask.
8074         (_mm512_mask_storeu_ps): Likewise.
8075         (_mm512_mask_loadu_epi64): Pass const long long * to
8076         __builtin_ia32_loaddqudi512_mask.
8077         (_mm512_maskz_loadu_epi64): Likewise.
8078         (_mm512_mask_storeu_epi64): Pass long long *
8079         to __builtin_ia32_storedqudi512_mask.
8080         (_mm512_loadu_si512): Pass const int * to
8081         __builtin_ia32_loaddqusi512_mask.
8082         (_mm512_mask_loadu_epi32): Likewise.
8083         (_mm512_maskz_loadu_epi32): Likewise.
8084         (_mm512_storeu_si512): Pass int * to
8085         __builtin_ia32_storedqusi512_mask.
8086         (_mm512_mask_storeu_epi32): Likewise.
8087         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
8088         char * to __builtin_ia32_storedquqi256_mask.
8089         (_mm_mask_storeu_epi8): Likewise.
8090         (_mm256_mask_loadu_epi16): Pass const short * to
8091         __builtin_ia32_loaddquhi256_mask.
8092         (_mm256_maskz_loadu_epi16): Likewise.
8093         (_mm_mask_loadu_epi16): Pass const short * to
8094         __builtin_ia32_loaddquhi128_mask.
8095         (_mm_maskz_loadu_epi16): Likewise.
8096         (_mm256_mask_loadu_epi8): Pass const char * to
8097         __builtin_ia32_loaddquqi256_mask.
8098         (_mm256_maskz_loadu_epi8): Likewise.
8099         (_mm_mask_loadu_epi8): Pass const char * to
8100         __builtin_ia32_loaddquqi128_mask.
8101         (_mm_maskz_loadu_epi8): Likewise.
8102         (_mm256_mask_storeu_epi16): Pass short * to.
8103         __builtin_ia32_storedquhi256_mask.
8104         (_mm_mask_storeu_epi16): Pass short * to.
8105         __builtin_ia32_storedquhi128_mask.
8106         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
8107         const double * to __builtin_ia32_loadupd256_mask.
8108         (_mm256_maskz_loadu_pd): Likewise.
8109         (_mm_mask_loadu_pd): Pass onst double * to
8110         __builtin_ia32_loadupd128_mask.
8111         (_mm_maskz_loadu_pd): Likewise.
8112         (_mm256_mask_storeu_pd): Pass double * to
8113         __builtin_ia32_storeupd256_mask.
8114         (_mm_mask_storeu_pd): Pass double * to
8115         __builtin_ia32_storeupd128_mask.
8116         (_mm256_mask_loadu_ps): Pass const float * to
8117         __builtin_ia32_loadups256_mask.
8118         (_mm256_maskz_loadu_ps): Likewise.
8119         (_mm_mask_loadu_ps): Pass const float * to
8120         __builtin_ia32_loadups128_mask.
8121         (_mm_maskz_loadu_ps): Likewise.
8122         (_mm256_mask_storeu_ps): Pass float * to
8123         __builtin_ia32_storeups256_mask.
8124         (_mm_mask_storeu_ps): ass float * to
8125         __builtin_ia32_storeups128_mask.
8126         (_mm256_mask_loadu_epi64): Pass const long long * to
8127         __builtin_ia32_loaddqudi256_mask.
8128         (_mm256_maskz_loadu_epi64): Likewise.
8129         (_mm_mask_loadu_epi64): Pass const long long * to
8130         __builtin_ia32_loaddqudi128_mask.
8131         (_mm_maskz_loadu_epi64): Likewise.
8132         (_mm256_mask_storeu_epi64): Pass long long * to
8133         __builtin_ia32_storedqudi256_mask.
8134         (_mm_mask_storeu_epi64): Pass long long * to
8135         __builtin_ia32_storedqudi128_mask.
8136         (_mm256_mask_loadu_epi32): Pass const int * to
8137         __builtin_ia32_loaddqusi256_mask.
8138         (_mm256_maskz_loadu_epi32): Likewise.
8139         (_mm_mask_loadu_epi32): Pass const int * to
8140         __builtin_ia32_loaddqusi128_mask.
8141         (_mm_maskz_loadu_epi32): Likewise.
8142         (_mm256_mask_storeu_epi32): Pass int * to
8143         __builtin_ia32_storedqusi256_mask.
8144         (_mm_mask_storeu_epi32): Pass int * to
8145         __builtin_ia32_storedqusi128_mask.
8146         * config/i386/i386-builtin-types.def (PCSHORT): New.
8147         (PINT64): Likewise.
8148         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
8149         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
8150         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
8151         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
8152         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
8153         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
8154         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
8155         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
8156         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
8157         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
8158         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
8159         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
8160         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
8161         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
8162         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
8163         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
8164         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
8165         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
8166         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
8167         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
8168         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
8169         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
8170         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
8171         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
8172         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
8173         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
8174         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
8175         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
8176         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
8177         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
8178         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
8179         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
8180         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
8181         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
8182         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
8183         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
8184         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
8185         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
8186         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
8187         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
8188         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
8189         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
8190         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
8191         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
8192         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
8193         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
8194         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
8195         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
8196         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
8197         use UNSPEC_STOREU.
8198         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
8199         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
8200         load nor store.
8201         (ix86_expand_vector_move_misalign): Likewise.
8202         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
8203         to scalar function prototype for unaligned load/store builtins.
8204         (ix86_expand_special_args_builtin): Updated.
8205         * config/i386/sse.md (UNSPEC_LOADU): Removed.
8206         (UNSPEC_STOREU): Likewise.
8207         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
8208         (VI_ULOADSTORE_F_AVX512VL): Likewise.
8209         (ssescalarsize): Handle V4TI, V2TI and V1TI.
8210         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
8211         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
8212         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
8213         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
8214         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
8215         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
8216         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
8217         (<avx512>_storedqu<mode>_mask): Likewise.
8218         (*sse4_2_pcmpestr_unaligned): Likewise.
8219         (*sse4_2_pcmpistr_unaligned): Likewise.
8220         (*mov<mode>_internal): Renamed to ...
8221         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
8222         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
8223         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
8224         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
8226 2016-04-19  Richard Biener  <rguenther@suse.de>
8228         PR tree-optimization/70171
8229         * tree-ssa-phiprop.c: Include stor-layout.h.
8230         (phiprop_insert_phi): Handle the aggregate copy case.
8231         (propagate_with_phi): Likewise.
8233 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
8235         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
8236         instead of simplify_gen_subreg (... , 0).
8237         (ix86_delegitimize_address): Ditto.
8238         (ix86_split_divmod): Ditto.
8239         (ix86_split_copysign_const): Ditto.
8240         (ix86_split_copysign_var): Ditto.
8241         (ix86_expand_args_builtin): Ditto.
8242         (ix86_expand_round_builtin): Ditto.
8243         (ix86_expand_special_args_builtin): Ditto.
8244         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
8245         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
8246         (udivmodqi4): Ditto.
8247         (absneg splitters): Ditto.
8248         (*jcc_bt<mode>_1): Ditto.
8250 2016-04-19  Richard Biener  <rguenther@suse.de>
8252         PR tree-optimization/70724
8253         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
8254         restoring out from ...
8255         (free_scc_vn): ... here.
8256         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
8257         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
8258         tail merging.
8259         (pass_fre::execute): Restore SSA info.
8261 2016-04-19  Richard Biener  <rguenther@suse.de>
8263         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
8264         * gimple-walk.c (walk_gimple_op): Initialize it.
8265         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
8266         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
8267         remapping SSA names of defs.
8268         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
8269         adjustment.
8271 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
8273         PR middle-end/70689
8274         * lra-constraints.c (equiv_substition_p): New.
8275         (process_alt_operands): Use it.
8276         (swap_operands): Swap it.
8277         (curr_insn_transform): Update it.
8279 2016-04-18  Michael Matz  <matz@suse.de>
8281         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
8282         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
8283         * tree-core.h (tree_type_common.align): Use bit-field.
8284         (tree_type_common.spare): New.
8285         (tree_decl_common.off_align): Make smaller.
8286         (tree_decl_common.align): Use bit-field.
8288         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
8289         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
8290         (scan_sharing_clauses): Ditto.
8291         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
8292         (omp_finish_file): Ditto.
8293         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
8294         (layout_decl): Ditto.
8295         (relayout_decl): Ditto.
8296         (finalize_record_size): Use SET_TYPE_ALIGN.
8297         (finalize_type_size): Ditto.
8298         (finish_builtin_struct): Ditto.
8299         (layout_type): Ditto.
8300         (initialize_sizetypes): Ditto.
8301         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
8302         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
8303         (lookup_field_for_decl): Use SET_DECL_ALIGN.
8304         (get_chain_field): Ditto.
8305         (get_trampoline_type): Ditto.
8306         (get_nl_goto_field): Ditto.
8307         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
8308         SET_DECL_ALIGN.
8309         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
8310         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
8311         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
8312         (build_qualified_type): Use SET_TYPE_ALIGN.
8313         (build_aligned_type, build_range_type_1): Ditto.
8314         (build_atomic_base): Ditto.
8315         (build_common_tree_nodes): Ditto.
8316         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
8317         (expand_one_stack_var_at): Ditto.
8318         * coverage.c (build_var): Use SET_DECL_ALIGN.
8319         * except.c (init_eh): Ditto.
8320         * function.c (assign_parm_setup_block): Ditto.
8321         * symtab.c (increase_alignment_1): Ditto.
8322         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
8323         * tree-vect-stmts.c (ensure_base_align): Ditto.
8324         * varasm.c (align_variable): Ditto.
8325         (assemble_variable): Ditto.
8326         (build_constant_desc): Ditto.
8327         (output_constant_def_contents): Ditto.
8329         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
8330         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
8331         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
8332         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
8333         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
8335 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
8337         PR target/70708
8338         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
8339         replace %vmovsd with "%vmovq".
8340         (vec_concatv2df): Likewise.
8342 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
8344         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
8345         (*vec_extractv2si_0): Ditto.
8346         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
8347         (zero_extended_scalar_load_operand splitters): Ditto.
8348         (vec_extract splitters): Ditto.
8349         (*vec_extractv4si_0_zext): Ditto.
8350         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
8351         and lowpart_subreg.
8352         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
8353         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
8354         (*sse4_1_extractps): Use lowpart_subreg.
8355         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
8357 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8359         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
8360         gld requirements.
8361         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
8362         Mention Solaris 11 packaging changes.
8363         Update gas and gld requirements.
8364         Remove reference to pre-Solaris 10 bug.
8365         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
8366         systems and bugs.
8367         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
8368         with cc.
8370 2016-04-17  Jan Hubicka  <jh@suse.cz>
8372         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
8373         max_loop_iterations_int.
8375 2016-04-18  Richard Biener  <rguenther@suse.de>
8377         PR tree-optimization/43434
8378         * tree-ssa-structalias.c (struct vls_data): New.
8379         (visit_loadstore): Handle all pointer-based accesses.
8380         (compute_dependence_clique): Compute a bitmap of restrict tags
8381         assigned bases and pass it to visit_loadstore.
8383 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
8385         PR target/70711
8386         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
8387         armv8.1-a and armv8.1-a+crc.
8389 2016-04-18  Richard Biener  <rguenther@suse.de>
8391         PR tree-optimization/70701
8392         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
8393         references after translating through a memcpy.
8395 2016-04-18  Richard Biener  <rguenther@suse.de>
8397         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
8398         (compute_antic): ... here.  For partial antic use regular
8399         postorder and scrap iteration.
8400         (compute_partial_antic_aux): Remove unused return value.
8401         (init_pre): Do not allocate postorder.
8402         (fini_pre): Do not free postorder.
8404 2016-04-18  Richard Biener  <rguenther@suse.de>
8406         PR middle-end/37870
8407         * expmed.c (extract_bit_field_1): Remove broken case
8408         using a wider MODE_INT mode.
8410 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
8412         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
8413         unless compiling with at least GCC-4.8.
8415 2016-04-17  Jan Hubicka  <jh@suse.cz>
8417         PR bootstrap/70706
8418         * graphite.c (graphite_finalize): Update call to
8419         tree_estimate_probability.
8420         * predict.h (tree_estimate_probability): Update prototype.
8422 2016-04-17  Jan Hubicka  <jh@suse.cz>
8424         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
8425         (tree_estimate_probability): Likewise.
8426         (pass_profile::execute): Update.
8427         (report_predictor_hitrates): New function.
8428         * profile.c (compute_branch_probabilities): Use it.
8429         * predict.h (report_predictor_hitrates): Declare.
8431 2016-04-17  Jan Hubicka  <jh@suse.cz>
8433         PR ipa/70018
8434         * cgraph.h (cgraph_node::set_const_flag,
8435         cgraph_node::set_pure_flag): Update prototype to return bool;
8436         update comment.
8437         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
8438         of interposable symbol are interposable, too.
8439         (cgraph_set_const_flag_1): Rename to ...
8440         (set_const_flag_1): ... this one; change to self recursive function
8441         instead of call_for_symbol_thunks_and_aliases. Handle correctly
8442         clearnig the flag in all variants and also virtual thunks of const
8443         functions are pure; track if any change was done.
8444         (cgraph_node::set_const_flag): Update.
8445         (struct set_pure_flag_info): New struct.
8446         (cgraph_set_pure_flag_1): Rename to ...
8447         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
8448         rather than pointer encoded flags; track if any changes was done;
8449         handle correctly clearning flag and setting flag of aliases already
8450         declared const.
8451         (cgraph_node::set_pure_flag): Update.
8452         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
8454 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8456         PR other/70433
8457         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
8458         backslash in label.
8460 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8462         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
8463         '{}<> ' as escape-for-record.
8465 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8467         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
8468         structure.
8470 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8472         PR other/70185
8473         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
8474         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
8475         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
8476         * passes.c (finish_optimization_passes): Only call
8477         finish_graph_dump_file if dfi->graph_dump_initialized.
8478         (execute_function_dump, pass_init_dump_file): Use
8479         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
8481 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8483         PR tree-optimization/70256
8484         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
8485         (debug_varmap): New function.
8487 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8489         PR other/70183
8490         * passes.c (pass_manager::register_pass): Propagate pflags.
8492 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8494         PR other/68875
8495         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
8496         * passes.c (pass_manager::pass_manager): Declare and init p_start in
8497         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
8498         check if it's equal to p_start.
8499         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
8501 2016-04-15  Jan Hubicka  <jh@suse.cz>
8503         PR ipa/70018
8504         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
8505         function does not bind to current def.
8506         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
8507         handle conservatively calls to functions that does not need to bind
8508         to current def.
8509         (check_call): Update call of worse_state.
8510         (ignore_edge_for_nothrow): Update.
8511         (ignore_edge_for_pure_const): Likewise.
8512         (propagate_pure_const): Update calls to worse_state.
8513         (skip_function_for_local_pure_const): Reformat comments.
8515 2016-04-15  Jan Hubicka  <jh@suse.cz>
8517         PR ipa/70018
8518         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
8519         (cgraph_node::function_symbol): Likewise.
8520         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
8521         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
8522         (symtab_node::ultimate_alias_target): Add REF parameter.
8523         (symtab_node::binds_to_current_def_p): Declare.
8524         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
8525         (cgraph_node::function_symbol): Likewise.
8526         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
8527         (cgraph_node::get_availability): Likewise.
8528         (cgraph_edge::binds_to_current_def_p): New inline function.
8529         (varpool_node::get_availability): Add REF parameter.
8530         (varpool_node::ultimate_alias_target): Likewise.
8531         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
8532         (symtab_node::binds_to_current_def_p): Likewise.
8533         * varpool.c (varpool_node::get_availability): Likewise.
8535 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
8537         PR target/70662
8538         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
8539         Fix mode size check.
8541 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
8543         * BASE-VER: Set to 7.0.0.
8545 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
8547         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
8549 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8551         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
8552         architecture revisions.
8554 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
8556         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
8557         * config/i386/i386.c (ix86_using_red_zone): No longer static.
8558         * config/i386/i386.md (stack decrement to push peepholes): Guard
8559         with !x86_using_red_zone ().
8561 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
8563         PR c++/70675
8564         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
8565         to dump_generic_node.
8566         (NIY): Pass also flags to do_niy.
8568 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
8570         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
8571         (simd_clone_vector_of_formal_parm_types)
8572         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
8573         (simd_clone_mangle, simd_clone_create)
8574         (simd_clone_adjust_return_type, create_tmp_simd_array)
8575         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
8576         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
8577         (ipa_simd_modify_function_body, simd_clone_linear_addend)
8578         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
8579         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
8580         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
8581         * omp-simd-clone.c: ... this new file.
8582         (simd_clone_vector_of_formal_parm_types): Make it static.
8583         * Makefile.in (OBJS): Add omp-simd-clone.o.
8585 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
8587         PR target/70662
8588         * config/i386/sse.md: Use proper memory operand modifiers.
8591 2016-04-15  Richard Biener  <rguenther@suse.de>
8592         Alan Modra  <amodra@gmail.com>
8594         PR tree-optimization/70130
8595         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
8596         when alignment stays not the same and no not use the realign
8597         scheme then.
8599 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8601         PR target/70669
8602         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
8603         direct move handlers for KFmode. Change TFmode handlers test from
8604         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
8606 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
8608         PR c++/70594
8609         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
8610         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
8611         (inlined_polymorphic_ctor_dtor_block_p): Use it.
8612         * tree-ssa-live.c (remove_unused_scope_block_p): When
8613         in_ctor_dtor_block, avoid discarding not just BLOCKs with
8614         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
8615         block_ultimate_origin is FUNCTION_DECL.
8616         (remove_unused_locals): If current_function_decl is
8617         polymorphic_ctor_dtor_p, pass initial true to
8618         remove_unused_scope_block_p' is_ctor_dtor_block.
8620 2016-04-14  Martin Sebor  <msebor@redhat.com>
8622         PR c++/69517
8623         PR c++/70019
8624         PR c++/70588
8625         * doc/extend.texi (Variable Length): Revert.
8627 2016-04-14  Marek Polacek  <polacek@redhat.com>
8628             Jan Hubicka  <hubicka@ucw.cz>
8630         PR c++/70029
8631         * tree.c (verify_type): Disable the canonical type of main variant
8632         check.
8634 2016-04-14  Jason Merrill  <jason@redhat.com>
8636         * cfgexpand.c, expr.c: Revert previous change.
8638 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
8640         PR middle-end/70643
8641         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
8642         when building a mem ref for the incoming reduction variable.
8644 2016-04-14  Richard Biener  <rguenther@suse.de>
8646         PR tree-optimization/70614
8647         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
8648         loop if the evolution dropped to chrec_dont_know.
8649         (interpret_condition_phi): Likewise.
8651 2016-04-14  Richard Biener  <rguenther@suse.de>
8653         PR tree-optimization/70623
8654         * tree-ssa-pre.c (changed_blocks): Make global ...
8655         (compute_antic): ... local here.  Move and fix worklist
8656         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
8657         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
8658         worklist handling, dump when ANTIC_IN changed.
8659         (compute_partial_antic_aux): Remove worklist handling.
8660         (init_pre): Do not compute post dominators.  Add a comment about
8661         the CFG order chosen.
8662         (fini_pre): Do not free post dominators.
8664 2016-04-13  Martin Sebor  <msebor@redhat.com>
8666         PR c++/69517
8667         PR c++/70019
8668         PR c++/70588
8669         * doc/extend.texi (Variable Length): Document C++ specifics.
8671 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
8673         PR c++/70641
8674         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
8675         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
8676         eh edges have been purged.
8678         PR c++/70594
8679         * tree-sra.c (create_access_replacement,
8680         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
8681         gets fancy name.
8682         * tree-pretty-print.c (dump_fancy_name): New function.
8683         (dump_decl_name, dump_generic_node): Use it.
8685 2016-04-13  Jason Merrill  <jason@redhat.com>
8687         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
8688         * expr.c (expand_expr_real_1): Likewise.
8690 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
8692         * config/i386/i386.md (kunpckhi): Swap operands.
8693         (kunpcksi): Likewise.
8694         (kunpckdi): Likewise.
8695         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
8696         (vec_pack_trunc_<mode>): Likewise.
8698 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
8700         PR debug/70628
8701         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
8703         PR middle-end/70633
8704         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
8705         gimplification turns some element into non-constant.
8707         PR debug/70628
8708         * rtl.h (convert_memory_address_addr_space_1): New prototype.
8709         * explow.c (convert_memory_address_addr_space_1): No longer static,
8710         add NO_EMIT argument and don't call convert_modes if true, pass
8711         it down recursively, remove break after return.
8712         (convert_memory_address_addr_space): Adjust caller.
8713         * simplify-rtx.c (simplify_unary_operation_1): Call
8714         convert_memory_address_addr_space_1 instead of convert_memory_address,
8715         if it returns NULL, don't simplify.
8717 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
8719         PR target/70630
8720         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
8722 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8724         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8725         Bump the upper SIMDLEN limits, so that if the return type or
8726         characteristic type if the return type is void can be passed in
8727         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
8728         allowed.
8730 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8732         PR target/70640
8733         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
8734         Do not use "=" constraint on an input constraint.
8735         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
8736         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
8737         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
8738         generates (neg (abs ...)) instead of (abs ...).
8740 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8742         PR rtl-optimization/70596
8743         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
8744         just invalidate LRA data and reset them.  Adjust dump wording.
8746 2016-04-12  Martin Liska  <mliska@suse.cz>
8748         Revert
8749         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
8751         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
8752         estimates here.
8753         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
8754         max_loop_iterations_int.
8755         (tree_unswitch_outer_loop): Likewise.
8756         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
8757         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8759 2016-04-12  Tom de Vries  <tom@codesourcery.com>
8761         PR tree-optimization/68756
8762         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
8763         instead of new_name.
8765 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8767         PR tree-optimization/70602
8768         * tree-sra.c (generate_subtree_copies): Don't write anything into
8769         constant pool decls.
8771         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
8772         regardless whether there are depend clauses or not.
8774 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
8776         PR target/70381
8777         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
8778         target attribute and pragma from changing the -mfloat128
8779         and -mfloat128-hardware options.
8781         * doc/extend.texi (Additional Floating Types): Document PowerPC
8782         __float128 restrictions.
8784 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
8786         PR target/70133
8787         * config/aarch64/driver-aarch64.c
8788         (aarch64_get_extension_string_for_isa_flags): New.
8789         (arch_extension): Rename to...
8790         (aarch64_arch_extension): ...This.
8791         (ext_to_feat_string): Rename to...
8792         (aarch64_extensions): ...This.
8793         (aarch64_core_data): Keep track of architecture extension flags.
8794         (cpu_data): Rename to...
8795         (aarch64_cpu_data): ...This.
8796         (aarch64_arch_driver_info): Keep track of architecture extension
8797         flags.
8798         (get_arch_name_from_id): Rename to...
8799         (get_arch_from_id): ...This, change return type.
8800         (host_detect_local_cpu): Update and reformat for renames, handle
8801         extensions through common infrastructure.
8803 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
8805         PR target/70133
8806         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
8807         track of a canonical flag name.
8808         (all_extensions): Likewise.
8809         (arch_to_arch_name): Also track extension flags enabled by the arch.
8810         (all_architectures): Likewise.
8811         (aarch64_parse_extension): Move to here.
8812         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
8813         rework.
8814         (aarch64_rewrite_selected_cpu): Update for above change.
8815         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
8816         are handled, such that the single explicit value enabled by an
8817         extension is kept seperate from the implicit values it also enables.
8818         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
8819         to here.
8820         (aarch64_parse_extension): New.
8821         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
8822         here to config/aarch64/aarch64-protos.h.
8823         (aarch64_parse_extension): Move from here to
8824         common/config/aarch64/aarch64-common.c.
8825         (aarch64_option_print): Update.
8826         (aarch64_declare_function_name): Likewise.
8827         (aarch64_start_file): Likewise.
8828         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
8829         the canonical flag for extensions.
8830         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
8831         flags.
8833 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
8835         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
8836         AARCH64_FL_CRC.
8838 2016-04-09  Tom de Vries  <tom@codesourcery.com>
8840         PR tree-optimization/68953
8841         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
8842         first to last subscript.
8844 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
8846         PR tree-optimization/70586
8847         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
8848         for any calls.
8850 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
8852         PR lto/70289
8853         PR ipa/70348
8854         PR tree-optimization/70373
8855         PR middle-end/70533
8856         PR middle-end/70534
8857         PR middle-end/70535
8858         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
8859         clauses for acc parallel reductions as necessary.  Error on those
8860         that are private.
8861         * omp-low.c (scan_sharing_clauses): Don't install variables which
8862         are used in acc parallel reductions.
8863         (lower_rec_input_clauses): Remove dead code.
8864         (lower_oacc_reductions): Add support for reference reductions.
8865         (lower_reduction_clauses): Remove dead code.
8866         (lower_omp_target): Don't remap variables appearing in acc parallel
8867         reductions.
8868         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
8870 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
8872         PR middle-end/70593
8873         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
8874         with multiple SSA_NAME defs, force the outputs other than first
8875         to be live before calling live_track_process_def on each output.
8877         PR rtl-optimization/70574
8878         * fwprop.c (forward_propagate_and_simplify): Don't add
8879         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
8880         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
8881         paradoxical subregs within *loc.
8883 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
8885         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
8886         -ftree-parallelize-loops={0,1}.
8887         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
8888         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
8889         * config/ia64/hpux.h (LIB_SPEC): Likewise.
8890         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8891         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
8893 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
8895         PR sanitizer/70541
8896         * asan.c (instrument_derefs): If we get unknown location, extract it
8897         with EXPR_LOCATION.
8898         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
8900 2016-04-08  Tom de Vries  <tom@codesourcery.com>
8902         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
8903         implicit firstprivate clause.
8905 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8907         PR target/70566
8908         * config/arm/thumb2.md (tst + branch-> lsls + branch
8909         peephole below *orsi_not_shiftsi_si): Require that condition
8910         register is dead after the peephole.
8911         (second peephole after the above): Likewise.
8913 2016-04-08  Alan Modra  <amodra@gmail.com>
8915         PR target/70117
8916         * builtins.c (fold_builtin_classify): For IBM extended precision,
8917         look at just the high-order double to test for NaN.
8918         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
8919         test just the high double for Inf but both doubles for subnormal
8920         limit.
8922 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
8924         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
8925         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
8926         node->simdclone->mask_mode != VOIDmode masks.
8927         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
8928         earlier, use it instead of node->simdclone.
8929         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8930         Set clonei->mask_mode.
8932 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
8934         PR c/70436
8935         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
8936         Pass it through to cp_parser_already_scoped_statement.
8937         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
8938         it through to cp_parser_statement.
8939         (cp_parser_statement): Pass IF_P through to
8940         cp_parser_iteration_statement.
8941         (cp_parser_pragma): Adjust call to
8942         cp_parser_iteration_statement.
8944 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
8946         PR c/70436
8947         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
8948         resolve a future -Wparentheses warning.
8949         * omp-low.c (scan_sharing_clauses): Likewise.
8950         * tree-parloops.c (eliminate_local_variables): Likewise.
8952 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
8954         PR rtl-optimization/70398
8955         * lra-constraints.c (process_address_1): Check zero scale and code
8956         for reloading with zero scale.
8958 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
8960         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
8961         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
8963 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
8965         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8966         Add support for AVX512F clones, include them by default for
8967         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
8968         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
8969         up to 128.
8971         PR middle-end/70550
8972         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
8973         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
8974         firstprivate clauses.
8975         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
8976         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
8977         (lower_omp_target): Set TREE_NO_WARNING for
8978         non-addressable possibly uninitialized vars which are copied into
8979         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
8981 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
8983         * config/pa/predicates.md (integer_store_memory_operand): Accept
8984         REG+D operands with a large offset when reload_in_progress is true.
8985         (floating_point_store_memory_operand): Likewise.
8987 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
8989         PR c++/70336
8990         * match.pd (nested int casts): Limit to GIMPLE.
8992 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
8994         PR ipa/66223
8995         * ipa-devirt.c (maybe_record_node): Fix comment; use
8996         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
8998 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
9000         PR rtl-optimization/70542
9001         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
9002         if there are any uses other than insn or debug insns.
9004 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
9005             Jakub Jelinek  <jakub@redhat.com>
9007         PR tree-optimization/70509
9008         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
9009         Shift HOST_WIDE_INT_1U instead of 1.
9011 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
9013         PR tree-optimization/70509
9014         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
9015         of the vector base type for index.
9017 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
9019         PR target/70510
9020         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
9022 2016-04-05  Richard Biener  <rguenther@suse.de>
9024         PR tree-optimization/70526
9025         * tree-sra.c (build_ref_for_offset): Use prev_base to
9026         extract the alias pointer type.
9028 2016-04-05  Richard Biener  <rguenther@suse.de>
9030         * dse.c (struct store_info): Remove alias_set member.
9031         (struct read_info_type): Likewise.
9032         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
9033         spill_deleted, clear_alias_set_lookup): Remove.
9034         (get_group_info): Remove dead base == NULL_RTX case.
9035         (dse_step0): Remove initialization of removed variables.
9036         (delete_dead_store_insn): Reomve alias set dumping.
9037         (free_read_records): Remove alias_set handling.
9038         (canon_address): Remove alias_set_out parameter.
9039         (record_store): Remove spill_alias_set, it's always zero.
9040         (check_mem_read_rtx): Likewise.
9041         (dse_step2): Rename from ...
9042         (dse_step2_nospill): ... this.  Adjust.
9043         (scan_stores): Rename from ...
9044         (scan_stores_nospill): ... this.
9045         (scan_reads): Rename from ...
9046         (scan_reads_nospill): ... this.
9047         (scan_stores_spill, scan_reads_spill): Remove.
9048         (dse_step3_scan): Remove for_spills argument which is always false.
9049         (dse_step3): Likewise.
9050         (dse_step5): Rename from ...
9051         (dse_step5_nospill): ... this.  Remove alias_set handling.
9052         (rest_of_handle_dse): Adjust.
9054 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
9056         PR target/70525
9057         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
9058         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
9059         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
9060         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
9062 2016-04-05  Richard Biener  <rguenther@suse.de>
9064         PR middle-end/70499
9065         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
9066         non-register type temporaries into SSA.
9068 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
9070         PR ipa/66223
9071         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
9072         calls when sanitizing.
9073         (possible_polymorphic_call_target_p): Fix formatting.
9075 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9076             Jakub Jelinek <jakub@redhat.com>
9078         PR middle-end/70457
9079         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
9080         to ensure a call statement is compatible with a built-in's
9081         prototype.
9082         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
9083         Likewise.
9085 2016-04-04  Richard Biener  <rguenther@suse.de>
9087         PR rtl-optimization/70484
9088         * rtl.h (canon_output_dependence): Declare.
9089         * alias.c (canon_output_dependence): New function.
9090         * dse.c (record_store): Use canon_output_dependence rather
9091         than canon_true_dependence.
9093 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
9095         PR ipa/68881
9096         * cgraph.h (symtab_node::copy_visibility_from): New function.
9097         * symtab.c (symtab_node::copy_visibility_from): New function.
9098         * ipa-visibility.c (optimize_weakref): New function.
9099         (function_and_variable_visibility): Use it.
9101 2016-04-04  Martin Liska  <mliska@suse.cz>
9103         PR hsa/70402
9104         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
9105         value that is really in range handled by SBR instruction.
9106         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
9107         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
9108         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
9110 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
9112         PR target/70416
9113         PR target/67391
9114         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
9115         set, but not for SP_REG operands.
9117 2016-04-02  Martin Sebor  <msebor@redhat.com>
9119         PR c++/67376
9120         * fold-const.c (maybe_nonzero_address): New function.
9121         (fold_comparison): Call it.  Fold equality and relational
9122         expressions involving null pointers.
9123         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
9125 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
9127         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
9128         the "Y" constraint (scalar FP 0.0 immediate).
9130         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
9131         Add the "const_double" to the list of operand constraints.
9133 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
9135         PR rtl-optimization/70467
9136         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
9137         If low word of the last operand is 0, just emit addition/subtraction
9138         for the high word.
9140 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9142         PR target/70404
9143         * config/s390/s390.c (s390_expand_insv): Check for everything
9144         constant instead of just VOIDmode stuff.
9146 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9148         PR target/70496
9149         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
9151 2016-04-01  Nathan Sidwell  <nathan@acm.org>
9153         * tree.def (TRY_CATCH_EXPR): Correct documentation.
9155 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
9157         PR rtl-optimization/70461
9158         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
9159         is necessary.
9161 2016-03-31  Martin Liska  <mliska@suse.cz>
9163         PR hsa/70399
9164         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
9165         a tree value or an immediate integer value to a buffer
9166         that is eventually copied to a BRIG section.
9167         (emit_immediate_operand): Call the function here.
9168         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
9169         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
9170         of class' fields that are removed.
9171         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
9172         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
9173         m_brig_repr_size fields.
9175 2016-03-31  Martin Liska  <mliska@suse.cz>
9177         PR hsa/70391
9178         * hsa-gen.c (hsa_function_representation::update_dominance): New
9179         function.
9180         (convert_addr_to_flat_segment): Likewise.
9181         (gen_hsa_memory_set): New alignment argument.
9182         (gen_hsa_ctor_assignment): Likewise.
9183         (gen_hsa_insns_for_single_assignment): Provide alignment
9184         to gen_hsa_ctor_assignment.
9185         (gen_hsa_insns_for_direct_call): Add new argument.
9186         (expand_lhs_of_string_op): New function.
9187         (expand_string_operation_builtin): Likewise.
9188         (expand_memory_copy): New function.
9189         (expand_memory_set): New function.
9190         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
9191         (convert_switch_statements): Change signature.
9192         (generate_hsa): Use a return value of the function.
9193         (pass_gen_hsail::execute): Do not call
9194         convert_switch_statements here.
9195         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
9196         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
9197         (hsa_function_representation::update_dominance): New function.
9199 2016-03-31  Martin Liska  <mliska@suse.cz>
9201         PR hsa/70391
9202         * hsa-brig.c (emit_directive_variable): Emit alignment
9203         according to hsa_symbol::m_align.
9204         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
9205         (dump_hsa_symbol): Dump alignment of HSA symbols.
9206         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
9207         (gen_hsa_addr_with_align): New function.
9208         (hsa_bitmemref_alignment): Use newly added function.
9209         (gen_hsa_insns_for_load): Likewise.
9210         (gen_hsa_insns_for_store): Likewise.
9211         (gen_hsa_memory_copy): New argument added.
9212         (gen_hsa_insns_for_single_assignment): Respect
9213         alignment for assignments processed via gen_hsa_memory_copy.
9214         (gen_hsa_insns_for_direct_call): Likewise.
9215         (gen_hsa_insns_for_return): Likewise.
9216         (gen_function_def_parameters): Set default alignment.
9217         * hsa.c (hsa_object_alignment): New function.
9218         (hsa_byte_alignment): Pasted function.
9219         * hsa.h (hsa_symbol::m_align): New field.
9221 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
9223         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
9224         scratch field for goto case.
9226 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
9228         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
9230 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
9232         PR target/70442
9233         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
9234         (scalar_chain::convert_insn): Call convert_op for reg
9235         moves to handle undefined registers.
9237 2016-03-31  Nathan Sidwell  <nathan@acm.org>
9239         PR c++/70393
9240         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
9241         Assert we don't want to move backwards.
9243 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
9245         PR target/70453
9246         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
9248 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
9250         PR rtl-optimization/70460
9251         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
9252         with operand from REG_LABEL_OPERAND, instead substitute
9253         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
9254         Don't do anything for REG_NON_LOCAL_GOTO jumps.
9256 2016-03-31  Martin Liska  <mliska@suse.cz>
9258         * passes.c (execute_one_pass): Do not call
9259         todo_after for a discarded function.
9261 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
9263         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
9264         (no_cost, infinite_cost): Initialize the new field.
9265         (get_computation_cost_at): Record setup cost.
9266         (determine_use_iv_cost_address): Skip cost computation for sub
9267         uses if we can estimate it without losing accuracy.
9269 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
9271         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
9272         estimates here.
9273         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
9274         max_loop_iterations_int.
9275         (tree_unswitch_outer_loop): Likewise.
9276         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
9277         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9279 2016-03-30  Richard Biener  <rguenther@suse.de>
9281         PR middle-end/70450
9282         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
9284 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
9286         PR target/70421
9287         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
9288         in gen_blendm expander.
9290 2016-03-30  Nick Clifton  <nickc@redhat.com>
9292         PR target/62254
9293         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
9294         case where we are already provided with an SImode SUBREG.
9296 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
9298         PR target/70439
9299         * config/i386/i386.c (ix86_expand_epilogue): Properly check
9300         conflict between DRAP register and __builtin_eh_return.
9302 2016-03-30  Michael Matz  <matz@suse.de>
9303             Richard Biener  <rguenther@suse.de>
9305         PR ipa/12392
9306         * ipa-polymorphic-call.c (struct type_change_info): Change
9307         speculative to an unsigned allowing to limit the work we do.
9308         (csftc_abort_walking_p): New inline function..
9309         (check_stmt_for_type_change): Limit the number of may-defs
9310         skipped for speculative devirtualization to
9311         max-speculative-devirt-maydefs.
9312         * params.def (max-speculative-devirt-maydefs): New param.
9313         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
9315 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
9317         PR target/63890
9318         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
9319         and TARGET_MACHO.
9321 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
9323         PR tree-optimization/59124
9324         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
9325         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
9327 2016-03-29  Jeff Law  <law@redhat.com>
9329         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
9331 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
9333         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
9334         to HOST_WIDE_INT.
9336 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
9338         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
9339         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
9340         gcrt0.o if linking dynamically.
9342 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
9344         PR ipa/70283
9345         * ipa-devirt.c (methods_equal_p): New function.
9346         (compare_virtual_tables): Use it.
9347         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
9348         * cgraphclones.c (clone_function_name_1): Use
9349         symbol_table::symbol_suffix_separator.
9350         * coverage.c (build_var): Likewise.
9351         * symtab.c (symbol_table::symbol_suffix_separator): New.
9353 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
9355         PR rtl-optimization/70429
9356         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
9357         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
9358         mode != result_mode.
9360         PR c++/70353
9361         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
9363         PR tree-optimization/70405
9364         * ssa-iterators.h (num_imm_uses): Add missing braces.
9366 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
9368         PR rtl-optimization/68695
9369         * ira-color.c (allocno_copy_cost_saving): New.
9370         (improve_allocation): Use it.
9372 2016-03-29  Richard Henderson  <rth@redhat.com>
9374         PR middle-end/70355
9375         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
9377 2016-03-29  Richard Biener  <rguenther@suse.de>
9379         PR middle-end/70424
9380         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
9381         use alignment returned by get_pointer_alignment_1 if it is
9382         bigger than BITS_PER_UNIT.
9383         * builtins.c (get_pointer_alignment_1): Do not return true
9384         for alignment extracted from SSA info.
9386 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
9388         * config/ft32/ft32.opt (mnodiv): New.
9389         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
9390         * doc/invoke.texi (FT32 Options -mnodiv): New.
9392 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
9394         PR target/70406
9395         * config/i386/i386.md (define_split, andn): Fix modes.
9397 2016-03-26  Richard Biener  <rguenther@suse.de>
9398             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9400         PR ipa/70366
9401         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
9402         instead of
9403         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
9404         as 2nd argument to cl_optimization_restore().
9406 2016-03-25  Richard Henderson  <rth@redhat.com>
9408         PR target/70120
9409         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
9410         * config/aarch64/aarch64-protos.h: Declare it.
9411         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
9413 2016-03-25  Alan Modra  <amodra@gmail.com>
9415         PR target/70052
9416         * config/rs6000/constraints.md (j): Simplify.
9417         * config/rs6000/predicates.md (easy_fp_constant): Exclude
9418         decimal float 0.D.
9419         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
9420         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
9421          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
9422         in all constraint alternatives.
9423         (movtd_64bit_nodm): Delete "j" constraint alternative.
9425 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
9427         * tree-ssa-propagate.c: Enhance docs for
9428         SSA_PROP_NOT_INTERESTING.
9430 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
9432         * doc/extend.texi: Fix typo in documentation to pure attribute.
9434 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
9436         PR target/70319
9437         * config/pa/pa.md (bswapdi2): Use a scratch register.
9439 2016-03-24  Richard Henderson  <rth@redhat.com>
9441         PR middle-end/69845
9442         * fold-const.c (extract_muldiv_1): Correct test for multiplication
9443         overflow.
9445 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
9447         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
9448         using ix86_expand_binary_operator instead of gen_andsi3.
9450 2016-03-24  Richard Biener  <rguenther@suse.de>
9452         PR tree-optimization/70396
9453         * tree-vect-stmts.c (vectorizable_comparison): Use
9454         get_vectype_for_scalar_type.
9456 2016-03-24  Richard Biener  <rguenther@suse.de>
9458         PR middle-end/70370
9459         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
9460         with register bases.
9462 2016-03-24  Richard Biener  <rguenther@suse.de>
9464         PR tree-optimization/70372
9465         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
9466         build_all_ones_cst to also handle vector types correctly.
9468 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
9470         PR target/70381
9471         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
9472         -mfloat128 here.
9474 2016-03-23  Marek Polacek  <polacek@redhat.com>
9476         PR c++/69884
9477         * doc/invoke.texi: Document -Wignored-attributes.
9479 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
9481         PR tree-optimization/69042
9482         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
9483         parameter from 30 to 40.
9485 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
9487         PR tree-optimization/69042
9488         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
9489         for use with constant offset stripped in base.
9491 2016-03-23  Richard Biener  <rguenther@suse.de>
9493         PR middle-end/70251
9494         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
9495         mode compatibility check.
9496         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
9498 2016-03-23  Jeff Law  <law@redhat.com>
9500         PR tree-optimization/64058
9501         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
9502         CONFLICT_COUNT.
9503         (struct ssa_conflicts): Move up earlier in the file.
9504         (conflicts_, var_map_): New static variables.
9505         (initialize_conflict_count): New function to initialize the
9506         CONFLICT_COUNT field for each conflict pair.
9507         (compare_pairs): Lazily initialize the conflict count and use it
9508         as the first tie-breaker.
9509         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
9510         and wipe conflicts_ and map_ around the call to qsort.  Remove
9511         special case for 2 coalesce pairs.
9512         * bitmap.c (bitmap_count_unique_bits): New function.
9513         (bitmap_count_bits_in_word): New function, extracted from
9514         bitmap_count_bits.
9515         (bitmap_count_bits): Use bitmap_count_bits_in_word.
9516         * bitmap.h (bitmap_count_unique_bits): Declare it.
9518 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
9520         PR target/69917
9521         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
9522         transparent alias chain for decl assembler name.
9523         * config/sol2.c (solaris_assemble_visibility): Likewise.
9525 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9527         * config/arm/arm1020e.md (1020call_op): Reduce reservation
9528         duration.
9529         (v10_fdivs): Likewise.
9530         (v10_fdivd): Likewise.
9532 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9534         PR driver/70132
9535         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
9536         to not call fclose twice on file.
9538 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
9540         PR tree-optimization/70354
9541         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
9542         oprnd0 is wider than oprnd1 and there is a cast from the wider
9543         type to oprnd1, mask it with the mask of the narrower type.
9545         PR target/70321
9546         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
9547         Optimize TARGET_STV splitters, if high or low word of last argument
9548         is 0 or -1.
9550 2016-03-22  Jeff Law  <law@redhat.com>
9552         PR target/70232
9553         tree-ssa-threadbackward.c
9554         (fsm_find_control_statement_thread_paths): Correctly distinguish
9555         between old style jump threads vs FSM jump threads.
9557 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
9559         PR target/70302
9560         * config/i386/i386.c (scalar_chain::convert_op): Support
9561         uninitialized register usage case.
9563 2016-03-22  Richard Biener  <rguenther@suse.de>
9565         PR middle-end/70251
9566         * genmatch.c (gen_transform): Adjust last parameter to a three-state
9567         int...
9568         (capture::gen_transform): ... to change behavior when substituting
9569         a condition into cond or not-cond expr context.
9570         (dt_simplify::gen_1): Adjust.
9571         * gimple-match-head.c: Include gimplify.h for unshare_expr.
9572         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
9573         last change and instead change to
9574         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
9575         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
9577 2016-03-22  Anthony Green  <green@moxielogic.com>
9579         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
9580         issue for moxiebox targets.
9581         (CC1PLUS_SPEC): Ditto.
9583 2016-03-22  Richard Biener  <rguenther@suse.de>
9585         PR middle-end/70333
9586         * fold-const.c (extract_muldiv_1): Properly perform multiplication
9587         in the wide type.
9589 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9591         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
9593 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9595         PR target/70325
9596         * config/i386/i386.c (def_builtin): Handle
9597         OPTION_MASK_ISA_AVX512VL to be and-ed with other
9598         bits.
9599         (const struct builtin_description bdesc_special_args[]):
9600         Remove duplicate ISA bits.
9602 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
9604         PR target/70329
9605         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
9606         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
9607         in a way that works also for AVX512BW.
9609         PR target/70300
9610         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
9611         instead of source if operands[1] is xmm16 and above and
9612         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
9613         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
9615         PR c++/70295
9616         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
9617         on assign if (*from_p) is a comparison, set it to
9618         TREE_NO_WARNING (*from_p).
9620 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
9622         PR middle-end/70326
9623         * lra.c (restore_scratches): Ignore deleted insns.
9625 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
9626             Jakub Jelinek  <jakub@redhat.com>
9628         PR tree-optimization/70317
9629         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
9630         to HONOR_NANS.
9632 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
9634         PR target/70327
9635         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
9636         of ix86_expand_move.
9637         (movoi): Ditto.
9638         (movti): Use general_operand for operand 1 predicate.
9640 2016-03-21  Martin Liska  <mliska@suse.cz>
9642         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
9643         insns.
9644         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
9646 2016-03-21  Martin Liska  <mliska@suse.cz>
9648         PR ipa/70306
9649         * ipa-icf.c (sem_function::parse): Skip static
9650         constructors and destructors.
9652 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
9654         PR target/70296
9655         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
9656         function-like macro, peek following token(s) if it is followed
9657         by CPP_OPEN_PAREN token with optional padding in between, and
9658         if not, don't treat it like a macro.
9660 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9661             Alexander Monakov  <amonakov@ispras.ru>
9663         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
9664         for the stabs debug format.
9666 2016-03-21  Richard Biener  <rguenther@suse.de>
9668         PR tree-optimization/70310
9669         * tree-vect-generic.c (expand_vector_condition): Fold the built
9670         condition.
9672 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
9674         PR target/70293
9675         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
9676         Block third alternative for AVX-512VL target,
9678 2016-03-21  Martin Liska  <mliska@suse.cz>
9680         PR hsa/70234
9681         * hsa-brig.c (emit_function_directives): Mark unemitted
9682         global variables for emission.
9683         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
9684         (get_symbol_for_decl): Likewise.
9685         * hsa.h (struct hsa_symbol): New flag.
9687 2016-03-21  Richard Biener  <rguenther@suse.de>
9689         PR tree-optimization/70288
9690         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
9691         we do not estimate unsimplified all-constant conditionals or
9692         switches as optimized away.
9694 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
9696         PR rtl-optimization/69102
9697         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
9698         when we have a readonly dependency context.
9700 2016-03-18  Jeff Law  <law@redhat.com>
9702         PR rtl-optimization/70263
9703         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
9704         (update_equiv_regs): When trying to move a store to after the insn
9705         that sets the source of the store, make sure the store occurs after
9706         the insn that sets the source of the store.  When successful note
9707         the REG_EQUIV note created in the dump file.
9709 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
9710             Bernd Schmidt  <bschmidt@redhat.com>
9712         * doc/extend.texi: Document more potential problems with basic asms.
9714 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
9716         PR rtl-optimization/70278
9717         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
9718         VOIDmode.
9720 2016-03-18  Jason Merrill  <jason@redhat.com>
9722         * calls.c (load_register_parameters): Fix zero size sibcall logic.
9724 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
9726         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
9727         values to 128b regs.
9729 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9731         PR tree-optimization/70252
9732         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
9733         boolean vector has a proper number of elements.
9734         (supportable_narrowing_operation): Likewise.
9736 2016-03-18  Tom de Vries  <tom@codesourcery.com>
9738         PR ipa/70269
9739         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
9741 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
9743         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
9744         instead of replace_rtx for DEBUG_INSNs.
9746 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9748         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
9749         load type reservations.
9751 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
9753         PR target/70188
9754         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
9755         define_constraint for "Q" and "T" constraints.
9757 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
9759         Tweak the pipeline model for Exynos M1
9761         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
9762         model.
9764 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
9766         PR c/70264
9767         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
9768         where one or both locations aren't within a line_map.
9770 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9772         PR driver/70192
9773         * opts.c (finish_options): Don't set flag_pie to the default if
9774         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
9775         if it is -1.
9777 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
9779         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
9780         true as ALL_REGS argument to replace_rtx.
9782 2016-03-17  Richard Biener  <rguenther@suse.de>
9784         PR debug/70271
9785         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
9786         last.
9788 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
9790         PR target/70245
9791         * rtl.h (replace_rtx): Add ALL_REGS argument.
9792         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
9793         equality and assert mode is the same, instead of just rtx pointer
9794         equality.
9795         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
9796         true as ALL_REGS argument to replace_rtx.
9798 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
9800         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
9801         for boolean vector with vector mode only.
9802         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
9804 2016-03-17  Nick Clifton  <nickc@redhat.com>
9806         PR target/70162
9807         * config/rx/rx.c (rx_print_integer): Print negative constants in
9808         decimal.
9810 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
9812         PR target/70261
9813         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
9815 2016-03-16  Richard Henderson  <rth@redhat.com>
9816             Richard Biener  <rguenth@suse.de>
9818         PR middle-end/70240
9819         PR middle-end/68215
9820         PR tree-opt/68714
9821         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
9822         first operand as is_gimple_condexpr.
9824         PR middle-end/70240
9825         PR middle-end/68215
9826         Revert r231575
9827         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
9828         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
9829         Do not gimplify the result.
9830         (do_unop): Adjust call to tree_vec_extract.
9831         (do_binop): Likewise.
9832         (do_compare): Likewise.
9833         (do_plus_minus): Likewise.
9834         (do_negate): Likewise.
9835         (expand_vector_condition): Likewise.
9836         (do_cond): Likewise.
9838 2016-03-16  Richard Henderson  <rth@redhat.com>
9840         PR target/70048
9841         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
9842         (aarch64_classify_address): Use it.
9843         (aarch64_legitimize_address): Force all subexpressions of PLUS
9844         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
9846 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
9847             Richard Biener  <rguenth@suse.de>
9849         PR target/70245
9850         * rtlanal.c (replace_rtx): For REG, if from is a REG,
9851         return to even if only REGNO is equal, and assert
9852         mode is the same.
9854 2016-03-11  Jeff Law  <law@redhat.com>
9856         PR rtl-optimization/70224
9857         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
9859 2016-03-16  Richard Henderson  <rth@redhat.com>
9861         PR middle-end/70199
9862         * function.h (struct function): Add has_forced_label_in_static.
9863         * gimplify.c (force_labels_r): Set it.
9864         * lto-streamer-in.c (input_struct_function_base): Read it.
9865         * lto-streamer-out.c (output_struct_function_base): Write it.
9866         * tree-inline.c (has_label_address_in_static_1): Remove.
9867         (copy_forbidden): Remove fndecl parameter; test
9868         has_forced_label_in_static.
9869         (inline_forbidden_p): Update call to copy_forbidden.
9870         (tree_versionable_function_p): Likewise.
9871         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
9872         (chkp_versioning): Likewise.
9873         * tree-inline.h (copy_forbidden): Update decl.
9875 2016-03-16  Marek Polacek  <polacek@redhat.com>
9877         PR c/70093
9878         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
9879         function being thunked if the result type doesn't have fixed size.
9880         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
9881         doesn't have fixed size.
9883 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
9885         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
9886         reporting malformed loop nest.
9888 2016-03-16  Tom de Vries  <tom@codesourcery.com>
9890         PR lto/70187
9891         * ipa-devirt.c (possible_polymorphic_call_targets): Move
9892         nodes.length () == 1 test to before first nodes[0] access.
9894 2016-03-16  Tom de Vries  <tom@codesourcery.com>
9896         PR tree-optimization/68715
9897         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
9898         single_pred_p test.
9900 2016-03-16  Tom de Vries  <tom@codesourcery.com>
9902         PR tree-optimization/68809
9903         * graphite-scop-detection.c (same_close_phi_node): Test if result types
9904         are the same.
9906 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
9907             Sandra Loosemore  <sandra@codesourcery.com>
9909         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
9910         on leaf attribute. Mention ELF interposition problems.
9912 2016-03-16  Alan Modra  <amodra@gmail.com>
9914         PR rtl-optimization/69195
9915         PR rtl-optimization/47992
9916         * ira.c (indirect_jump_optimize): Ignore artificial defs.
9917         Add comments.
9919 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
9921         PR bootstrap/69513
9922         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
9924 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9926         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
9928 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
9930         PR rtl-optimization/70222
9931         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
9932         optimization if mode is different from result_mode, queue up masking
9933         of the result in outer_op.  Formatting fix.
9935         PR middle-end/70239
9936         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
9937         of safe_grow.
9939 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
9941         PR rtl-optimization/69032
9942         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
9943         looping backwards over basic block insns.
9945 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
9947         PR target/66660
9948         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
9949         to non-speculative when propagating trap bits.
9951 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
9953         PR rtl-optimization/63384
9954         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
9955         DEBUG_INSN_P insns.
9957 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
9959         PR target/64411
9960         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
9961         factored out from ...
9962         (sched_analyze_insn): ... here.
9963         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
9964         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
9965         get_implicit_reg_pending_clobbers in it.
9966         (setup_id_reg_sets): Use setup_id_implicit_regs.
9967         (deps_init_id): Ditto.
9969 2016-03-15  Tom de Vries  <tom@codesourcery.com>
9971         PR ipa/70161
9972         * cgraph.c (cgraph_node::get_body): Save, reset and restore
9973         dump_file_name.
9974         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
9975         execute_function_dump.
9976         (execute_one_pass): Don't dump function if it will be dumped after ipa
9977         transform.
9979 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
9981         * genrecog.c (match_pattern_2): If pred is NULL don't call
9982         safe_predicate_mode on it.
9984 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
9986         PR middle-end/70219
9987         * lra-constraints.c (delete_move_and_clobber): Change assertion
9988         to also allow dregno == 0.
9990 2016-03-14  Richard Henderson  <rth@redhat.com>
9992         PR tree-opt/68714
9993         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
9994         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
9995         (reassociate_bb): Use optimize_vec_cond_expr; avoid
9996         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
9997         on vectors.
9999 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
10001         PR target/70083
10002         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
10003         regs.
10004         (lra_create_live_ranges_1): initialize hard register biggest_mode to
10005         VOIDmode.
10006         * lra-constraints.c (split_reg): For hard regs, try to find the
10007         biggest single-register mode used in the function.
10009 2016-03-14  Richard Biener  <rguenther@suse.de>
10011         PR tree-optimization/56365
10012         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
10013         constants to compare against.
10015 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
10017         PR target/70098
10018         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
10019         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
10020         (define_split for the GPR case): Use int_reg_operand instead of
10021         gpc_reg_operand for the output.
10023 2016-03-14  Tom de Vries  <tom@codesourcery.com>
10025         PR tree-optimization/70045
10026         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
10027         create_empty_if_region_on_edge argument.
10029 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
10031         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
10032         (STACK_CHECK_PROTECT): Likewise.
10033         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
10034         (STACK_CHECK_PROTECT): Likewise.
10035         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
10036         (STACK_CHECK_PROTECT): Likewise.
10037         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
10038         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10039         (STACK_CHECK_PROTECT): Likewise.
10041 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
10043         PR rtl-optimization/69307
10044         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
10045         registers in modes that span more than one register.
10047 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
10049         PR target/69614
10050         * lra-constraints.c (delete_move_and_clobber): New.
10051         (remove_inheritance_pseudos): Use it.
10053 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
10055         PR ada/70017
10056         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
10057         the libcall is LCT_THROW.
10058         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
10059         for the checking routine.
10061 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
10063         PR target/70131
10064         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
10065         optimization if we have direct move.
10066         (roundu32<mode>2_fprs): Likewise.
10068 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
10070         PR target/70123
10071         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
10072         be rematerialized.
10073         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
10074         Arguments swapped.  All callers changed.  Take reg_renumber into
10075         account, and Calculate and compare register ranges for hard regs.
10077 2016-03-11  Jeff Law  <law@redhat.com>
10079         PR tree-optimization/70190
10080         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10081         Handle cases where we can not extract the taken edge, even though we
10082         found a constant value.
10084         PR tree-optimization/64058
10085         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
10086         (num_coalesce_pairs): Move up earlier in file.
10087         (find_coalesce_pair): Initialize the INDEX field for each pair
10088         discovered.
10089         (compare_pairs): No longer sort on the elements in each pair.
10090         Instead break ties with the index of the coalesce pair.
10092 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10094         PR target/70002
10095         * config/aarch64/aarch64-protos.h
10096         (aarch64_save_restore_target_globals): New prototype.
10097         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
10098         Call the above when popping pragma.
10099         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
10100         New function.
10101         (aarch64_set_current_function): Rewrite using the above.
10103 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
10105         PR tree-optimization/70177
10106         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
10107         (extract_ops_from_tree): ... this.  In the 2 argument
10108         overload remove _1 suffix.
10109         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
10110         (extract_ops_from_tree): ... this.
10111         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
10112         Adjust callers.
10113         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
10114         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
10115         extract_ops_from_tree instead of 2 operand one.
10117 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
10119         PR tree-optimization/70013
10120         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
10121         for constant-pool entries.
10123 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
10125         PR rtl-optimization/70174
10126         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
10127         followed by gen_lowpart on force_reg instead of just gen_lowpart.
10129         PR tree-optimization/70169
10130         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
10131         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
10132         for unknown codes.
10134 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
10135             Jakub Jelinek  <jakub@redhat.com>
10137         PR target/70160
10138         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
10139         of uninitialized values.
10141 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10143         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
10144         define_expand.
10145         ("*trunctddd2"): New pattern definition.
10146         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
10147         TD->DD truncation.
10149 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10151         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
10152         definitions for BFP and DFP rounding modes.
10153         ("fixuns_truncdddi2", "fixuns_trunctddi2")
10154         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
10155         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
10156         ("fix_trunctf<mode>2"): Use the new constants instead of magic
10157         numbers.
10159 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10161         * config/s390/constraints.md: Adjust comment.
10162         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
10163         s390_decompose_addrstyle_without_index.
10164         * config/s390/predicates.md (shift_count_or_setmem_operand):
10165         Rename to setmem_operand.
10166         * config/s390/s390-protos.h
10167         (s390_decompose_shift_count): Rename to
10168         s390_decompose_addrstyle_without_index.
10169         * config/s390/s390.c (s390_decompose_shift_count)
10170         (s390_mem_constraint, print_shift_count_operand)
10171         (print_operand_address, print_operand): Rename
10172         s390_decompose_shift_count to
10173         s390_decompose_addrstyle_without_index and rename
10174         print_shift_count_operand to print_addrstyle_operand troughout the
10175         file.
10176         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
10177         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
10178         Rename shift_count_or_setmem_operand to setmem_operand.
10179         * config/s390/vx-builtins.md ("vec_insert<mode>")
10180         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
10181         nonmemory_operand.
10183 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10185         PR target/70168
10186         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
10187         Handle overlapping retval and newval.
10189 2016-03-10  Nick Clifton  <nickc@redhat.com>
10191         PR target/7044
10192         * config/aarch64/aarch64.c
10193         (aarch64_override_options_after_change_1): When forcing
10194         flag_omit_frame_pointer to be true, use a special value that can
10195         be detected if this function is called again, thus preventing
10196         flag_omit_leaf_frame_pointer from being forced to be false.
10198 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10200         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
10201         Set x_flag_omit_leaf_frame_pointer when handling
10202         -momit-leaf-frame-pointer.
10204 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10206         PR lto/69589
10207         * cgraph.c (cgraph_node::dump): Dump split_part and
10208         indirect_call_target.
10209         * cgraph.h (cgraph_node): Add indirect_call_target flag.
10210         * ipa.c (has_addr_references_p): Cleanup.
10211         (is_indirect_call_target_p): New.
10212         (walk_polymorphic_call_targets): Do not mark virtuals that may be
10213         called indirectly as local.
10214         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
10216 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10218         PR ipa/69630
10219         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
10220         on cxa_pure_virtual.
10222 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10224         PR lto/69589
10225         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
10227 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10229         PR lto/69589
10230         * tree.c (need_assembler_name_p): Only record main variant type names.
10232 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
10234         PR target/70113.
10235         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
10236         Always define to 0 or 1.
10237         (TARGET_FIX_ERR_A53_843419): New macro.
10238         * config/aarch64/aarch64-elf-raw.h
10239         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
10240         * config/aarch64/aarch64-linux.h: Likewise.
10241         * config/aarch64/aarch64.c
10242         (aarch64_override_options_after_change_1): Do not default
10243         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
10244         843419 is on.
10245         (aarch64_attributes): Handle fix-cortex-a53-843419.
10246         (aarch64_can_inline_p): Likewise.
10247         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
10249 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
10250         Jakub Jelinek <jakub@redhat.com>
10252         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
10253         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
10254         DECL_COMMONS if flag_unconstrained_commons is set.
10255         * tree-dfa.c (get_ref_base_and_extent): Likewise.
10256         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
10257         (funconstrained-commons): Document.
10259 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
10261         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
10262         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
10264 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
10266         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
10267         has a proper number of elements.
10269 2016-03-10  Alan Modra  <amodra@gmail.com>
10271         PR rtl-optimization/69195
10272         PR rtl-optimization/47992
10273         * ira.c (recorded_label_ref): Delete.
10274         (update_equiv_regs): Return void.
10275         (indirect_jump_optimize): New function.
10276         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
10277         before regstat_compute_ri.  Don't rebuild_jump_labels here.
10278         Delete update_regstat.
10280 2016-03-10  Richard Biener  <rguenther@suse.de>
10282         PR tree-optimization/70128
10283         * tree-ssa-structalias.c (set_uids_in_ptset): Set
10284         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
10286 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
10288         PR tree-optimization/70152
10289         * tree-sra.c (replace_removed_params_ssa_names): Copy over
10290         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
10292         PR target/70086
10293         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
10294         instead of gen_sse2_loadlpd.
10295         * config/i386/sse.md (*vec_concatv2df): Rename to...
10296         (vec_concatv2df): ... this.
10298         PR tree-optimization/70127
10299         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
10301 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
10303         PR c/68473
10304         PR c++/70105
10305         * diagnostic-show-locus.c (compatible_locations_p): New function.
10306         (layout::layout): Sanitize ranges using compatible_locations_p.
10308 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
10310         PR c/68473
10311         PR c++/70105
10312         * diagnostic-show-locus.c (layout_range::layout_range): Replace
10313         location_range param with three const expanded_locations * and a
10314         bool.
10315         (layout::layout): Replace call to
10316         rich_location::lazily_expand_location with get_expanded_location.
10317         Extract the range and perform location expansion here, passing
10318         the results to the layout_range ctor.
10319         * diagnostic.c (source_range::debug): Delete.
10320         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
10321         of rich_location::get_expanded_location.
10322         * gcc-rich-location.c (get_range_for_expr): Delete.
10323         (gcc_rich_location::add_expr): Reimplement to avoid the
10324         rich_location::add_range overload that took a location_range,
10325         passing a location_t instead.
10327 2016-03-09  Richard Biener  <rguenther@suse.de>
10328         Jakub Jelinek  <jakub@redhat.com>
10330         PR tree-optimization/70138
10331         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
10332         Also skip vect_double_reduction_def.
10334 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
10336         PR target/70049
10337         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
10338         if the operand is "m".
10340 2016-03-09  Nathan Sidwell  <nathan@acm.org>
10342         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
10344 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10346         * config/i386/i386.c (processor_target_table): Fix cost table
10347         intialization order for znver1.
10349 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
10351         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
10352         - becuase -> because.
10353         * ipa-reference.c (ignore_module_statics): Likewise.
10354         * cgraph.c (cgraph_node::get_body): Likewise.
10355         * ipa-inline.c (early_inliner): Likewise.
10356         * ipa-devirt.c (types_same_for_odr): Likewise.
10357         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
10358         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
10360 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10362         * tree-ssa-math-opts.c: Fix typo in comment.
10364 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
10366         PR target/70110
10367         * config/i386/i386.c (scalar_chain::make_vector_copies,
10368         scalar_chain::convert_reg): Call end_sequence in between
10369         get_insns and emit_conversion_insns rather than after both
10370         calls.
10372 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
10374         PR target/70064
10375         * config/i386/i386.h (machine_function): Add
10376         pc_thunk_call_expanded flag.
10377         (ix86_pc_thunk_call_expanded): New define.
10378         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
10379         (*set_got): Rename insn pattern from set_got.
10380         (*set_got_labelled): Rename inst pattern from set_got_labelled.
10381         * config/i386/i386.c (ix86_compute_frame_layout): Use
10382         ix86_pc_thunk_call_expanded to prevent red-zone.
10384 2016-03-07  Martin Jambor  <mjambor@suse.cz>
10386         * hsa.h (hsa_get_ctor_statements): Declare.
10387         (hsa_get_dtor_statements): Likewise.
10388         (hsa_get_kernel_dispatch_type): Likewise.
10389         * hsa.c (hsa_get_ctor_statements): New function.
10390         (hsa_get_dtor_statements): Likewise.
10391         (hsa_get_kernel_dispatch_type): Likewise.
10392         * hsa-brig.c (hsa_cdtor_statements): Removed.
10393         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
10394         hsa_get_dtor_statements.
10395         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
10396         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
10398 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10400         * config/arm/arm-cores.def (cortex-r8): New.
10401         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
10402         * config/arm/arm-tune.md: Likewise.
10403         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
10405 2016-03-07  Martin Sebor  <msebor@redhat.com>
10407         PR rtl-optimization/19705
10408         * doc/invoke.texi (Options That Control Optimization): Clarify
10409         -fno-branch-count-reg.
10411 2016-02-26  Richard Biener  <rguenther@suse.de>
10412             Jeff Law  <law@redhat.com>
10414         PR tree-optimization/69740
10415         * cfghooks.c (remove_edge): Request loop fixups if we delete
10416         an edge that might turn an irreducible loop into a natural
10417         loop.
10418         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
10419         Move after definition of loops_state_clear.
10421 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
10423         PR rtl-optimization/69052
10424         * rtlanal.c (commutative_operand_precedence): Set higher precedence
10425         to CONST_WIDE_INT.
10427 2016-03-07  Tom de Vries  <tom@codesourcery.com>
10429         PR tree-optimization/70116
10430         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
10431         is_tm_ending stmts and ubsan/asan internal functions.
10432         (find_duplicate): Use it.  Don't test is_tm_ending here.
10434 2016-03-07  Richard Biener  <rguenther@suse.de>
10436         PR tree-optimization/70115
10437         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
10438         (propagate_constants_for_unrolling): Use replace_uses_by.
10440 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
10442         PR middle-end/69916
10443         * omp-low.c (struct oacc_loop): Add ifns.
10444         (new_oacc_loop_raw): Initialize it.
10445         (finish_oacc_loop): Clear mask & flags if no ifns.
10446         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
10447         (oacc_loop_xform_loop): Add ifns arg & adjust.
10448         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
10450 2016-03-07  Richard Henderson  <rth@redhat.com>
10452         PR rtl-opt/70061
10453         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
10454         (insert_value_copy_on_edge): Likewise.
10456 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10458         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
10460 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10462         PR target/62281
10463         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
10465 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
10467         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
10469 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
10471         Fix sseimul type attribute.
10472         * config/i386/znver1.md
10473         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
10474         znver1_sseimul_avx256_load) : Fix the type attribute.
10475         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
10476         pipe usage and latency.
10478 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
10480         PR c++/70084
10481         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
10482         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
10483         to the right type.
10485 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
10487         PR c/69973
10488         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
10490         PR rtl-optimization/69941
10491         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
10492         the reg share its mode.
10494 2016-03-04  Jeff Law  <law@redhat.com>
10496         PR tree-optimization/69196
10497         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10498         If the both SSA_NAMEs are anonymous, then consider them unassociated
10499         and include the PHI in the statement count.
10501 2016-03-05  Tom de Vries  <tom@codesourcery.com>
10503         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
10504         construct in oacc routine.  Check for oacc region in oacc routine.
10506 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
10508         PR target/70062
10509         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
10510         2016-02-22 changes, instead don't recurse if RECUR is already true.
10511         Don't change *dynamic_check if RECUR.  Adjust recursive caller
10512         to pass true to the new argument.
10513         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
10515         PR target/70059
10516         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
10517         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
10518         fixes.
10519         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
10521 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
10523         PR rtl-optimization/57676
10524         * lra-assigns.c (lra_assign): Guard test for maximum iterations
10525         with flag_checking.
10527 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
10529         * tree-vect-patterns.c (search_type_for_mask): Handle
10530         comparison of booleans.
10532 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
10534         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
10535         Fix @xref usage.
10537         PR debug/69947
10538         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
10539         all other ops that have dw_val_class_die_ref operands,
10540         and DW_OP_GNU_entry_value.
10542 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10544         PR rtl-optimization/69904
10545         * config/arm/arm.c (arm_cannot_copy_insn_p):
10546         Return true for load-exclusive instructions.
10548 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
10550         PR target/70021
10551         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
10552         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
10553         the pattern no matter if it is used just by non-pattern, pattern
10554         or mix thereof.
10555         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
10556         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
10557         oprnd1 def_stmt is in pattern, don't look through it.
10559 2016-03-03  Marek Polacek  <polacek@redhat.com>
10561         PR middle-end/70050
10562         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
10564 2016-03-03  Martin Liska  <mliska@suse.cz>
10566         PR tree-optimization/70043
10567         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
10568         previous statement if we see a debug statement.
10570 2016-03-03  Richard Biener  <rguenther@suse.de>
10572         PR tree-optimization/55936
10573         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
10574         parameter and guard unsafe equivalence use.
10575         (vrp_evaluate_conditional_warnv_with_ops): Always use
10576         safe equivalences but not via the quadratic compare_names
10577         helper.
10579 2016-03-03  Michael Collison  <michael.collison@linaro.org>
10581         PR target/70014
10582         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
10583         for operand 1 to s_register_operand. Change predicate for operand
10584         2 to arm_not_immediate_operand.
10586 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
10588         * doc/tm.texi: Regenerated.
10590 2016-03-02  Richard Henderson  <rth@redhat.com>
10592         PR rtl-opt/67145
10593         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
10594         simplification when all args are positive non-fixed registers.
10596 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10598         * target.def (lra_p): Specify that new ports should use LRA.
10600 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
10602         PR libgomp/69555
10603         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
10604         gimplify_type_sizes the type they refer to.
10605         (omp_notice_variable): Handle reference vars to VLAs.
10606         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
10607         reference to VLA decls in the second pass instead of first pass.
10609 2016-03-02  Tom de Vries  <tom@codesourcery.com>
10611         PR tree-optimization/68659
10612         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
10613         new_expr == NULL_TREE.
10614         (get_new_name): Handle ADDR_EXPR.
10616 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
10618         PR rtl-optimization/69052
10619         * loop-invariant.c (canonicalize_address): New function.
10620         (inv_can_prop_to_addr_use): Check validity of address expression
10621         which is canonicalized by above function.
10623 2016-03-02  Alan Modra  <amodra@gmail.com>
10625         PR ipa/69990
10626         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
10627         larger alignment.
10629 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
10631         PR target/70028
10632         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
10633         (*movhi_internal): Put mask moves from and to memory separately
10634         from moves from/to GPRs.
10636 2016-03-02  Richard Biener  <rguenther@suse.de>
10638         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
10639         GENERIC expressions in GIMPLE.
10641 2016-03-02  Richard Biener  <rguenther@suse.de>
10643         * config/i386/i386.c (type_natural_mode): Fix typo.
10645 2016-03-02  Nick Clifton  <nickc@redhat.com>
10647         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
10649 2016-03-02  Richard Biener  <rguenther@suse.de>
10650             Uros Bizjak  <ubizjak@gmail.com>
10652         PR target/67278
10653         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
10655 2016-03-02  Richard Biener  <rguenther@suse.de>
10657         PR middle-end/67278
10658         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
10660 2016-03-02  Marek Polacek  <polacek@redhat.com>
10662         PR c/67854
10663         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
10664         "is promoted to" warning.
10666 2016-03-01  DJ Delorie  <dj@redhat.com>
10668         * config.gcc: Deprecate mep-*.
10670 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
10672         PR middle-end/70025
10673         * lra-constraints.c (regno_val_use_in): New.
10674         (match_reload): Use it instead of regno_use_in.
10676 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
10678         PR rtl-optimization/70007
10679         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
10680         references present in REG_EQUAL notes attached to non-SET patterns.
10682 2016-03-01  Jeff Law  <law@redhat.com>
10684         PR tree-optimization/69196
10685         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10686         Appropriately clamp the number of statements to copy when the
10687         thread path does not traverse a loop backedge.
10689         PR tree-optimization/69196
10690         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10691         Do count some PHIs in the thread path against the insn count.  Decrease
10692         final statement count by one as the control statement in the last
10693         block will get removed.  Remove special cased code for handling PHIs
10694         in the last block.
10696 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
10698         PR target/70027
10699         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
10700         asm dialect alternatives to explicit GOTPCREL calls.
10702 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
10704         PR ada/70017
10705         * ira.c (do_reload): Issue warning for generic stack checking here...
10706         * reload1.c (reload): ...instead of here and streamline it.
10708 2016-03-01  Nick Clifton  <nickc@redhat.com>
10710         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
10712 2016-03-01  Richard Biener  <rguenther@suse.de>
10714         PR tree-optimization/69983
10715         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
10716         types and fall back to operand_equal_p.
10718 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10720         Revert
10721         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10723         * config/s390/constraints.md ("jm8"): New constraint.
10724         * config/s390/predicates.md ("const_int_8bitset_operand"): New
10725         predicate.
10726         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
10727         into ...
10728         ("*setmem_long<setmem_and>"): New pattern.
10729         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
10730         into ...
10731         ("*setmem_long_31z<setmem_and>"): New pattern.
10732         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
10733         New substitution rules with the required attributes.
10736 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10738         Revert
10739         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10741         * gensupport.c (process_substs_on_one_elem): Split loop to
10742         complete mark_operands_used_in_match_dup on all expressions in the
10743         vector first.
10744         (adjust_operands_numbers): Inline into process_substs_on_one_elem
10745         and remove function.
10747 2016-03-01  Richard Biener  <rguenther@suse.de>
10749         PR middle-end/70022
10750         * fold-const.c (fold_indirect_ref_1): Fix range checking for
10751         vector BIT_FIELD_REF extract.
10753 2016-03-01  Richard Biener  <rguenther@suse.de>
10755         PR tree-optimization/69994
10756         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
10758 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
10760         PR tree-optimization/69956
10761         * tree-vect-stmts.c (supportable_widening_operation): Support
10762         multi-step conversion of boolean vectors.
10763         (supportable_narrowing_operation): Likewise.
10765 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10767         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
10768         anymore.
10770 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10772         * config/s390/subst.md (DSI_VI): New mode iterator.
10773         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
10774         * config/s390/vector.md ("vec_set<mode>"): Move expander before
10775         the insn definition.
10776         ("*vec_set<mode>"): Change predicate and add alternative to
10777         support only either register or const_int operands as element
10778         selector.
10779         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
10780         operands.
10781         ("vec_extract<mode>"): New expander.
10782         ("*vec_extract<mode>"): New insn definition supporting reg and
10783         const_int element selectors.
10784         ("*vec_extract<mode>_plus"): New insn definition supporting
10785         reg+const_int element selectors.
10786         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
10787         following expander+insn definition.
10788         ("<vec_shifts_name><mode>3"): New expander.
10789         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
10791 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10793         * config/s390/s390.md ("*tabort_1"): Change predicate to
10794         nonmemory_operand.  Add a second alternative to cover
10795         register as well as const int operands.
10796         ("*tabort_1_plus"): New pattern definition.
10798 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10800         * config/s390/s390.md ("*ashrdi3_cc_31")
10801         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
10802         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
10803         Merge insn definitions into ...
10804         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
10805         New pattern definition.
10806         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
10807         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
10808         ("*ashr<mode>3_and"): Merge insn definitions into ...
10809         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
10810         New pattern definition.
10811         * config/s390/subst.md ("addr_style_op_cc_subst")
10812         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
10813         substitutions patterns plus attributes.
10814         Add ashiftrt to SUBST iterator.
10816 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10818         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
10819         op2 to nonmemory_operand.
10820         ("*<shift>di3_31", "*<shift>di3_31_and"):
10821         Merge into single pattern definition ...
10822         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
10823         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
10824         pattern definition ...
10825         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
10826         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
10827         iterator.
10829 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10831         * config/s390/predicates.md (const_int_6bitset_operand): New
10832         predicate.
10833         * config/s390/s390.md: Include subst.md.
10834         ("rotl<mode>3"): New expander.
10835         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
10836         ...
10837         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
10838         * config/s390/subst.md: New file.
10840 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10842         * config/s390/s390.md ("op_type", "atype", "length" attributes):
10843         Remove RRR type.  It doesn't really exist.
10844         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
10845         attributes.
10846         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
10847         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
10848         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
10849         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
10850         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
10851         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
10852         `enabled' attribute.
10854 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10856         * gensupport.c (process_substs_on_one_elem): Split loop to
10857         complete mark_operands_used_in_match_dup on all expressions in the
10858         vector first.
10859         (adjust_operands_numbers): Inline into process_substs_on_one_elem
10860         and remove function.
10862 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
10864         PR target/69706
10865         * config/sparc/sparc.c (NWORDS_UP): Rename to...
10866         (CEIL_NWORDS): ...this.  Use CEIL macro.
10867         (compute_fp_layout): Adjust to above renaming.
10868         (function_arg_union_value): Likewise.
10869         (sparc_arg_partial_bytes): Likewise.
10870         (sparc_function_arg_advance): Likewise.
10872 2016-02-29  Jeff Law  <law@redhat.com>
10874         PR tree-optimization/70005
10875         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
10876         where an object with a boolean range is compared against a value
10877         outside [0..1].
10879         PR tree-optimization/69999
10880         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
10881         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
10882         loop cleanups.
10884 2016-02-29  Richard Biener  <rguenther@suse.de>
10886         PR tree-optimization/69994
10887         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
10888         (get_unary_op): Look through nop conversions.
10889         (ops_equal_values_p): New function, look for equality diregarding
10890         nop conversions.
10891         (eliminate_plus_minus_pair): Use ops_equal_values_p
10892         (repropagate_negates): Do not use get_unary_op here.
10894 2016-02-29  Martin Liska  <mliska@suse.cz>
10896         * system.h: Poison ENABLE_CHECKING macro.
10898 2016-02-29  Martin Liska  <mliska@suse.cz>
10900         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
10901         is presented in dump flags.
10902         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
10903         (hsa_regalloc): Likewise.
10905 2016-02-19  Richard Biener  <rguenther@suse.de>
10907         PR tree-optimization/69980
10908         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
10909         permutation of those we need to keep.
10911 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
10913         PR target/69706
10914         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
10915         (NWORDS_UP): ...this
10916         (init_cumulative_args): Minor tweaks.
10917         (sparc_promote_function_mode): Likewise.
10918         (scan_record_type): Delete.
10919         (traverse_record_type): New function template.
10920         (classify_data_t): New structure type.
10921         (classify_registers): New inline function.
10922         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
10923         exhausted.  Instantiate traverse_record_type on classify_registers and
10924         deal with the case of a structure passed in slot #15 with no FP field
10925         in the first word.
10926         (assign_data_t): New structure type.
10927         (compute_int_layout): New static function.
10928         (compute_fp_layout): Likewise.
10929         (count_registers): New inline function.
10930         (assign_int_registers): New static function.
10931         (assign_fp_registers): Likewise.
10932         (assign_registers): New inline function.
10933         (function_arg_record_value_1): Delete.
10934         (function_arg_record_value_2): Likewise.
10935         (function_arg_record_value_3): Likewise.
10936         (function_arg_record_value): Adjust to above changes.  Instantiate
10937         traverse_record_type on count_registers to first count the number of
10938         registers to be used and then on assign_registers to assign them.
10939         (function_arg_union_value): Adjust to above renaming.
10940         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
10941         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
10942         case of a structure passed in slot #15
10943         (sparc_function_arg_advance): Likewise.
10944         (function_arg_padding): Minor tweak.
10946 2016-02-29  Richard Biener  <rguenther@suse.de>
10948         PR tree-optimization/69720
10949         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
10950         the adjustment_def path for possibly vectorized defs.
10951         (vect_create_epilog_for_reduction): Handle vectorized initial
10952         defs properly.
10954 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
10956         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
10958 2016-02-27  Jeff Law  <law@redhat.com>
10960         Revert
10961         2016-02-26  Richard Biener  <rguenther@suse.de>
10962                     Jeff Law  <law@redhat.com>
10964         PR tree-optimization/69740
10965         * cfghooks.c (remove_edge): Request loop fixups if we delete
10966         an edge that might turn an irreducible loop into a natural
10967         loop.
10969 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
10971         PR rtl-optimization/69896
10972         * tree-vect-generic.c (get_compute_type): Avoid single element
10973         vector types.
10975 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
10977         Rename the AArch64 tuning option and related functions to enable the
10978         Newton series for the reciprocal square root to reflect its
10979         approximative characteristic.
10981         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
10982         function to "aarch64_emit_approx_rsqrt".
10983         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
10984         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
10985         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
10986         (xgene1_tunings): Likewise.
10987         (use_rsqrt_p): Likewise.
10988         (aarch64_emit_swrsqrt): Use new function name.
10989         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
10990         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
10991         text explaining this option.
10992         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
10994 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
10996         PR target/69969
10997         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10998         complain about -mallow-movmisalign without -mvsx if
10999         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
11001 2016-02-26  Joel Sherrill  <joel@rtems.org>
11003         * config.gcc: Add x86_64-*-rtems*.
11004         * config/i386/rtems-64.h: New file.
11006 2016-02-26  Joel Sherrill  <joel@rtems.org>
11008         * config.gcc: Add aarch64-*-rtems*.
11009         * config/aarch64/rtems.h: New file.
11011 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
11013         PR target/69946
11014         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
11015         shift amount using %h.  Add comment.
11017 2016-02-26  Richard Biener  <rguenther@suse.de>
11018             Jeff Law  <law@redhat.com>
11020         PR tree-optimization/69740
11021         * cfghooks.c (remove_edge): Request loop fixups if we delete
11022         an edge that might turn an irreducible loop into a natural
11023         loop.
11025 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11027         PR middle-end/69920
11028         * tree-sra.c (sra_modify_assign): Do not remove loads of
11029         uninitialized aggregates to SSA_NAMEs.
11031 2016-02-26  Richard Henderson  <rth@redhat.com>
11033         PR target/69709
11034         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
11035         pseudo in case the target rtx matches the source of the left
11036         shift.
11038 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11040         PR hsa/69568
11041         * hsa.h (hsa_type_packed_p): Declare.
11042         * hsa.c (hsa_type_packed_p): New function.
11043         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
11044         loads.
11045         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
11046         * hsa-brig.c (emit_basic_insn): Likewise.
11048 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11050         pr hsa/69674
11051         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
11052         pointers.
11053         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
11055 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11057         * hsa.h (is_a_helper): New overload for hsa_op_immed for
11058         hsa_op_with_type operands.
11059         (hsa_unsigned_type_for_type): Declare.
11060         * hsa.c (hsa_unsigned_type_for_type): New function.
11061         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
11062         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
11063         the finalizer.  Do not emit extra move.
11065 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11067         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
11068         atomic operations in private segment.
11070 2016-02-26  Martin Jambor  <mjambor@suse.cz>
11072         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
11073         statements to wi->info.  Also disallow omp simd constructs.
11074         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
11075         for not gridifying.  Dump special string for omp_for.
11077 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11079         PR target/69245
11080         * config/aarch64/aarch64.c (aarch64_set_current_function):
11081         Save/restore target globals when switching to
11082         target_option_default_node.
11084 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11086         PR target/69613
11087         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
11088         Return 0 if !SHIFT_COUNT_TRUNCATED.
11090 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
11091             Eric Botcazou  <ebotcazou@adacore.com>
11093         PR rtl-optimization/69891
11094         * dse.c (scan_insn): If we can't figure out memset arguments
11095         or they are non-constant, call clear_rhs_from_active_local_stores.
11097 2016-02-26  Martin Liska  <mliska@suse.cz>
11099         * doc/extend.texi: Mention clog10, clog10f an clog10l
11100         in Builtins section.
11102 2016-02-26  Martin Liska  <mliska@suse.cz>
11104         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
11105         CHECKING_P.
11106         (resolve_args_picking_1): Likewise.
11107         * dwarf2out.h (struct GTY): Likewise.
11109 2016-02-26  Martin Liska  <mliska@suse.cz>
11111         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
11112         with flag_checking.
11113         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
11115 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
11116             Martin Liska  <mliska@suse.cz>
11118         * doc/install.texi: Mention --enable-valgrind-annotations.
11120 2016-02-26  Richard Biener  <rguenther@suse.de>
11122         PR tree-optimization/69551
11123         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
11124         looking through aliases adjust DECL_PT_UID to refer to the
11125         ultimate alias target.
11127 2016-02-25  Martin Liska  <mliska@suse.cz>
11129         PR middle-end/69919
11130         * alloc-pool.c (after_memory_report): New variable.
11131         * alloc-pool.h (base_pool_allocator ::release): Do not use
11132         the infrastructure if after_memory_report.
11133         * toplev.c (toplev::main): Mark after memory report.
11135 2016-02-25  Richard Biener  <rguenther@suse.de>
11137         PR tree-optimization/48795
11138         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
11140 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
11142         PR driver/68463
11143         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
11144         offloading is enabled and -fopenacc or -fopenmp is specified.
11145         (CRTOFFLOADEND): Likewise.
11146         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
11147         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
11148         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
11149         (offload_objects_file_name): New static var.
11150         (tool_cleanup): Remove offload_objects_file_name file.
11151         (find_offloadbeginend): Replace with ...
11152         (find_crtoffloadtable): ... this.
11153         (run_gcc): Remove offload_argc and offload_argv.
11154         Get offload_objects_file_name from -foffload-objects=... option.
11155         Read names of object files with offload from this file, pass them to
11156         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
11157         don't pass offloadbegin and offloadend to the linker.  Don't pass
11158         offload non-LTO files to the linker, because now they're not claimed.
11160 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
11162         PR ipa/69630
11163         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
11164         on builtin_unreachable.
11166 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
11168         PR rtl-optimization/69896
11169         * regcprop.c: Include cfgrtl.h.
11170         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
11171         than remembered mode, either delete it (if noop_move_p), or
11172         treat like copy_p but not noop_p instruction.
11174 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11176         PR debug/69705
11177         * dwarf2out.c (gen_variable_die): Work around buggy LTO
11178         - allow NULL decl for Fortran DW_TAG_common_block variables.
11180 2016-02-24  Jason Merrill  <jason@redhat.com>
11182         * common.opt (flifetime-dse): Add -flifetime-dse=1.
11184 2016-02-24  Richard Biener  <rguenther@suse.de>
11185             Jakub Jelinek  <jakub@redhat.com>
11187         PR middle-end/69760
11188         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
11189         conditionally executed ops to well-defined overflow behavior.
11191 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11193         PR middle-end/69915
11194         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
11195         elements.
11197 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11199         PR rtl-optimization/69886
11200         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
11201         argument.  Use it when checking validity of set instructions.
11202         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
11203         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
11204         callsite.
11205         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
11206         * store-motion.c (find_moveable_store): Update
11207         can_assign_to_reg_without_clobbers_p callsite.
11209 2016-02-24  Richard Biener  <rguenther@suse.de>
11211         PR middle-end/68963
11212         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
11213         bogus check.
11214         (record_nonwrapping_iv): Do not fall back to the low/high bound
11215         for non-constant IV bases if the stmt is not always executed.
11217 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11219         * config/arm/arm-cores.def (cortex-a32): New entry.
11220         * config/arm/arm-tables.opt: Regenerate.
11221         * config/arm/arm-tune.md: Regenerate.
11222         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
11223         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
11224         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
11225         for -mcpu and -mtune.
11227 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11229         PR target/69875
11230         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
11231         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
11232         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
11233         (atomic_loaddi_1): Delete.
11234         (atomic_loaddi): Rewrite expander using the above changes.
11236 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11238         PR c/69918
11239         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
11240         2 to 3.
11242 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11243             Richard Biener  <rguenth@suse.de>
11245         PR middle-end/69909
11246         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
11247         set_mem_attributes if tem is SSA_NAME which got expanded
11248         as a MEM.
11250 2016-02-24  Richard Biener  <rguenther@suse.de>
11252         PR tree-optimization/69907
11253         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
11254         end of permutations for BB vectorization.
11256 2016-02-24  Christian Bruel  <christian.bruel@st.com>
11258         * config/arm/arm-c.c (arm_option_override): Initialize
11259         target_option_current_node.
11260         * config/arm/arm.c (arm_pragma_target_parse): Replace
11261         build_target_option_node call by target_option_current_node.
11262         Set target_option_current_node.
11263         Fix comments.
11265 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
11267         PR target/69810
11268         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
11269         define_insn_and_split to define_insn.
11270         (zero_extendqi<mode>2_dot2): Same.
11271         (extendqi<mode>2_dot): Same.
11272         (extendqi<mode>2_dot2): Same.
11274 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
11276         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
11277         and add bypass for AES{D,E} and AESMC pairs.
11278         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
11279         and AESMC pairs.
11281 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
11283         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
11284         series for reciprocal square root in Exynos M1.
11286 2016-02-23  Martin Sebor  <msebor@redhat.com>
11288         PR c/69759
11289         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
11290         __builtin_alloca_with_align.
11292 2016-02-23  Richard Henderson  <rth@redhat.com>
11294         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
11295         (ix86_register_pragmas): Remove __seg_tls.
11296         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
11297         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
11298         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
11299         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
11300         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
11301         * doc/extend.texi (__seg_tls): Remove item.
11303 2016-02-23  Richard Biener  <rguenther@suse.de>
11305         * alloc-pool.h (struct allocation_object): Make id member
11306         conditional on CHECKING_P again.
11307         (get_instance): Adjust.
11308         (base_pool_allocator): Likewise.
11310 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
11312         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
11313         (parallelize_loops): In OpenACC kernels mode, set n_threads to
11314         zero.
11315         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
11316         flag_openacc.
11317         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
11319 2016-02-23  Richard Biener  <rguenther@suse.de>
11321         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
11322         * bitmap.h (struct bitmap_usage): Likewise.
11323         (bitmap_move): Declare.
11324         * bitmap.c (register_overhead): Take size_t argument.
11325         (bitmap_move): New function.
11326         * df-problems.c (df_rd_transfer_function): Use bitmap_move
11327         to properly account overhead.
11328         * tree.c (free_node): Use tree_size.
11330 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
11332         PR c++/69902
11333         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
11334         when inverting comparison.
11336         PR c/69900
11337         * common.opt (Wunreachable-code): Add Warning flag.
11339 2016-02-23  Mark Wielaard  <mjw@redhat.com>
11340             Jakub Jelinek  <jakub@redhat.com>
11342         PR c/69911
11343         * cgraphunit.c (check_global_declaration): Check main_input_filename
11344         and DECL_SOURCE_FILE are not NULL.
11346 2016-02-23  Martin Jambor  <mjambor@suse.cz>
11348         PR tree-optimization/69666
11349         * tree-sra.c (sra_modify_assign): Do not attempt to create
11350         default_def replacements for unscalarizable regions.
11352 2016-02-20  Mark Wielaard  <mjw@redhat.com>
11354         PR c/28901
11355         * cgraphunit.c (check_global_declaration): Check level of
11356         warn_unused_const_variable and main_input_filename.
11357         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
11358         (-Wunused-variable): For C implies -Wunused-const-variable=1.
11359         (-Wunused-const-variable): Explain levels 1 and 2.
11361 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
11363         PR target/69888
11364         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
11365         identical arguments.  Formatting and spelling fixes.
11367         PR target/69885
11368         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
11369         be specified.
11371         PR target/69894
11372         PR target/69895
11373         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
11374         and m68k-devices.def.
11375         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
11376         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
11378 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
11380         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
11381         and HImode registers.
11383 2016-02-22  Richard Biener  <rguenther@suse.de>
11385         PR tree-optimization/69882
11386         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
11387         preserve permutations present because of gaps.
11388         (vect_supported_load_permutation_p): Always continue checking
11389         permutations after vect_attempt_slp_rearrange_stmts.
11391 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
11393         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
11394         min_profitable_estimate, rather than min_profitable_iters.
11396 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
11398         PR target/69885
11399         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
11400         SImode for last match_operand.
11402 2016-02-22  Martin Liska  <mliska@suse.cz>
11404         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
11405         return bitsize - 1 as the return value.
11407 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
11409         PR target/69806
11410         PR target/54089
11411         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
11412         Handle negative shift counts.
11413         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
11414         force_reg on the shift constant.
11415         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
11416         (lshrsi3_d): Handle negative shift counts.
11418 2016-02-22  Richard Biener  <rguenther@suse.de>
11419             Tom de Vries  <tom@codesourcery.com>
11421         * graph.c: Include dumpfile.h.
11422         (print_graph_cfg): Split into three overloads.
11423         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
11425 2016-02-22  Tom de Vries  <tom@codesourcery.com>
11427         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
11428         dump-fn.
11430 2016-02-22  Richard Biener  <rguenther@suse.de>
11432         PR ipa/37448
11433         * ipa-inline-transform.c (inline_call): When not updating
11434         overall summaries adjust self size by the growth estimate.
11435         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
11436         hash-set, do not update overall summaries here.  Renamed from ...
11437         (inline_to_all_callers): ... this which is now wrapping the
11438         above and performing delayed overall summary update.
11439         (early_inline_small_functions): Delay updating of the overall
11440         summary.
11442 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
11444         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
11445         variable.
11447 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
11449         PR driver/69805
11450         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
11451         :%* in %:gt() argument.
11452         (greater_than_spec_func): Adjust for expecting only numbers,
11453         if there are more than two numbers, compare the last two.
11455 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
11457         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
11458         -Wnarrowing with -std.
11460 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
11462         PR c++/69851
11463         * expr.c (store_field): Don't use bit-field path if exp is
11464         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
11465         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
11466         and the assignment can be performed by bitwise copy.  Formatting
11467         fix.
11469         PR middle-end/69838
11470         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
11471         call copy_reg_eh_region_note_forward on before and/or after sequences
11472         and remove note from insn if it no longer can throw.
11474         PR target/69820
11475         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
11476         if TARGET_AVX512BW.
11478 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11480         * config/s390/vector.md: Add missing commutative operand markers
11481         to the patterns which qualify for one.
11482         * config/s390/vx-builtins.md: Likewise.
11484 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11486         * config/s390/vector.md (VI, VI_QHS): Add single element vector
11487         types to mode iterators.
11488         (vec_double): ... and mode attribute.
11489         * config/s390/vx-builtins.md (non_vec_int): Likewise.
11491 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11493         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
11494         Change the predicate of op2 from nonimmediate to general and let
11495         reload fix it if necessary.
11497 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11499         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
11501 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11503         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
11504         mode.
11506 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11508         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
11509         * config/s390/s390.c (s390_expand_vec_movstr): New function.
11510         * config/s390/s390.md ("movstr<P:mode>"): Call
11511         s390_expand_vec_movstr.
11513 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11515         * config/s390/s390.md: Add missing output modifier for operand 1
11516         to print it as address properly.
11518 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11520         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
11521         * config/s390/2964.md: New file.
11522         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
11523         of insn grouping attributes depending on the CPU level.
11524         (s390_get_unit_mask): New function.
11525         (s390_sched_score): Remove the OOO from the scheduling macros.
11526         Add loop to calculate a score for the instruction mix.
11527         (s390_sched_reorder): Likewise plus improve debug output.
11528         (s390_sched_variable_issue): Rename macros as above.  Calculate
11529         the unit distances after actually scheduling an insn.  Improve
11530         debug output.
11531         (s390_sched_init): Clear last_scheduled_unit_distance array.
11532         * config/s390/s390.md: Include 2964.md.
11534 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
11536         PR target/69671
11537         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
11538         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
11539         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
11540         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
11541         *avx512f_<code>v8div16qi2_mask_1): New insns.
11543 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
11545         PR target/68404
11546         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
11547         2016-02-09 change.
11549         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
11550         earlyclobber from target.  Use wF constraint for fused memory
11551         address.
11552         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
11554 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
11555             Martin Liska  <mliska@suse.cz>
11557         PR sanitizer/69863
11558         * cfgexpand.c (asan_sanitize_stack_p): New function.
11559         (partition_stack_vars): Use the function.
11560         (expand_stack_vars): Likewise.
11561         (defer_stack_allocation): Likewise.
11562         (expand_used_vars): Likewise.
11564 2016-02-18  Richard Biener  <rguenther@suse.de>
11566         PR middle-end/69553
11567         * fold-const.c (operand_equal_p): Properly compare offsets for
11568         IMAGPART_EXPR and ARRAY_REF.
11570 2016-02-18  Nick Clifton  <nickc@redhat.com>
11572         PR target/62254
11573         PR target/69610
11574         * config/arm/arm.c (arm_option_override_internal): Disable
11575         interworking if the target does not support thumb instructions.
11576         (arm_reload_in_hi): Handle the case where a register to register
11577         move needs reloading because there is no simple pattern to handle
11578         it.
11579         (arm_reload_out_hi): Likewise.
11581 2016-02-18  Richard Biener  <rguenther@suse.de>
11583         PR middle-end/69854
11584         * match.pd: Don't use fold_binary or fold_unary for folding
11585         constants.
11587 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
11589         PR c++/69850
11590         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
11591         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
11592         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
11593         warn on gimple_no_warning_p statements.
11595 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
11597         * doc/extend.texi (C++ Attributes): Correct description of
11598         warn_unused type attribute.
11600 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11602         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
11603         correct instruction.
11605 2016-02-17  Richard Biener  <rguenther@suse.de>
11607         PR rtl-optimization/69609
11608         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
11609         (find_traces_1_round): When ending a trace update cached priority
11610         of successors.
11611         (bb_to_key): Use cached priority when available.
11612         (copy_bb): Initialize cached priority.
11613         (reorder_basic_blocks_software_trace_cache): Likewise.
11615 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11617         PR target/69161
11618         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
11619         New predicate.
11620         (aarch64_comparison_operator): Break overly long line into two.
11621         (aarch64_comparison_operation): Likewise.
11622         * config/aarch64/aarch64.md (cstorecc4): Use
11623         aarch64_comparison_operator_mode instead of
11624         aarch64_comparison_operator.
11625         (cstore<mode>4): Likewise.
11626         (aarch64_cstore<mode>): Likewise.
11627         (*cstoresi_insn_uxtw): Likewise.
11628         (cstore<mode>_neg): Likewise.
11629         (*cstoresi_neg_uxtw): Likewise.
11631 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11633         PR target/69161
11634         * config/arm/predicates.md (arm_comparison_operator_mode):
11635         New predicate.
11636         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
11637         instead of arm_comparison_operator.
11638         (*mov_negscc): Likewise.
11639         (*mov_notscc): Likewise.
11640         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
11641         (*thumb2_mov_negscc): Likewise.
11642         (*thumb2_mov_negscc_strict_it): Likewise.
11643         (*thumb2_mov_notscc): Likewise.
11644         (*thumb2_mov_notscc_strict_it): Likewise.
11646 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
11648         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
11649         Add missing return.
11651 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
11653         * config/visium/visium.c (machine_libfunc_index): New enum.
11654         (machine_libfuncs): New structure.
11655         (visium_libfuncs): New static variable.
11656         (TARGET_INIT_LIBFUNCS): Define to...
11657         (visium_init_libfuncs): ...this.  New function.
11658         (expand_block_move_4): Use the appropriate libfunc.
11659         (expand_block_move_2): Likewise.
11660         (expand_block_move_1): Likewise.
11661         (expand_block_set_4): Likewise.
11662         (expand_block_set_2): Likewise.
11663         (expand_block_set_1): Likewise.
11664         (visium_trampoline_init): Likewise.
11666 2016-02-17  Nick Clifton  <nickc@redhat.com>
11668         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
11669         TI's devices.csv file as of March 2016.
11671 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11673         PR Target/48344
11674         * opts-global.c (handle_common_deferred_options): Introduce and
11675         initialize two global variables to remember command-line options
11676         specifying a stack-limiting register.
11677         * opts.h: Add extern declarations of the two new global variables.
11678         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
11679         variable based on the values of the two new global variables.
11681 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
11683         PR c/69835
11684         * common.opt (Wnonnull-compare): New warning.
11685         * doc/invoke.texi (-Wnonnull): Remove text about comparison
11686         of arguments against NULL.
11687         (-Wnonnull-compare): Document.
11688         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
11689         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
11690         * passes.def (pass_warn_nonnull_compare): Add.
11691         * gimple-ssa-nonnull-compare.c: New file.
11693 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
11695         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
11696         AARCH64_EXTRA_TUNE_RECIP_SQRT.
11698 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
11700         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
11701         reciprocal sqrt for -mlow-precision-recip-sqrt.
11703 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
11704             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11706         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
11707         always use lane loads to construct non-constant vectors.
11709 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
11711         * config/aarch64/aarch64.md
11712         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
11713         constraints for operand 3.
11714         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
11716 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
11717             Richard Biener  <rguenther@suse.de>
11719         PR tree-optimization/69820
11720         * tree-vect-patterns.c (type_conversion_p): Return false if
11721         *orig_type is unsigned single precision or boolean.
11722         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
11723         Formatting fix.
11725 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
11727         PR rtl-optimization/69764
11728         PR rtl-optimization/69771
11729         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
11730         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
11732 2016-02-16  Richard Biener  <rguenther@suse.de>
11734         PR tree-optimization/69776
11735         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
11736         sets from caller.
11737         (indirect_refs_may_alias_p): Likewise.
11738         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
11739         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
11740         according to tbaa_p.
11741         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
11742         (optimize_stmt): For redundant store discovery do not allow tbaa.
11744 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
11746         PR tree-optimization/69714
11747         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
11748         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
11750 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
11752         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
11753         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
11754         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
11755         * config/arc/arc.c (arc_init): Check FPU options.
11756         (get_arc_condition_code): Handle new CC_FPU* modes.
11757         (arc_select_cc_mode): Likewise.
11758         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
11759         register pair only. Allow access for ARCv2 accumulator.
11760         (gen_compare_reg): Whenever we have FPU support use FPU compare
11761         instructions.
11762         (arc_reorg): Don't generate brcc insns when FPU compare
11763         instructions are involved.
11764         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
11765         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
11766         floating point emulation.
11767         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
11768         (REVERSE_CONDITION): Add new CC_FPU* modes.
11769         (TARGET_FP_SP_BASE): Define.
11770         (TARGET_FP_DP_BASE): Likewise.
11771         (TARGET_FP_SP_FUSED): Likewise.
11772         (TARGET_FP_DP_FUSED): Likewise.
11773         (TARGET_FP_SP_CONV): Likewise.
11774         (TARGET_FP_DP_CONV): Likewise.
11775         (TARGET_FP_SP_SQRT): Likewise.
11776         (TARGET_FP_DP_SQRT): Likewise.
11777         (TARGET_FP_DP_AX): Likewise.
11778         * config/arc/arc.md (ARCV2_ACC): New constant.
11779         (type): New fpu type attribute.
11780         (SDF): Conditional iterator.
11781         (cstore<mode>, cbranch<mode>): Change expand condition.
11782         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
11783         handles FPU/FPX cases as well.
11784         * config/arc/arc.opt (mfpu): New option.
11785         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
11786         Renamed.
11787         (adddf3, muldf3, subdf3): Removed.
11788         * config/arc/predicates.md (proper_comparison_operator): Recognize
11789         CC_FPU* modes.
11790         * config/arc/fpu.md: New file.
11791         * doc/invoke.texi (ARC Options): Document mfpu option.
11793 2016-02-16  Richard Biener  <rguenther@suse.de>
11795         PR rtl-optimization/69291
11796         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
11797         noce_operand_ok check.
11799 2016-02-16  Tom de Vries  <tom@codesourcery.com>
11801         PR lto/67709
11802         * omp-low.c (simd_clone_create): Remove call to
11803         symtab->call_cgraph_insertion_hooks.
11805 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
11807         PR tree-optimization/69802
11808         * tree-ssa-reassoc.c (update_range_test): If op is
11809         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
11810         op == 1 test of precision 1 integral op, otherwise handle
11811         that case as op itself.  Fix up formatting.
11812         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
11813         up formatting.
11815 2016-02-16  Richard Biener  <rguenther@suse.de>
11817         PR tree-optimization/69586
11818         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
11819         types for conversion sources.
11821 2016-02-16  Richard Biener  <rguenther@suse.de>
11823         PR middle-end/69801
11824         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
11825         mask OEP_ADDRESS_OF.
11827 2016-02-16  Alan Modra  <amodra@gmail.com>
11829         PR target/68973
11830         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
11831         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
11832         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
11833         (p8_mtvsrwz): New.
11834         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
11835         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
11836         (p8_fmrgow_<mode>): Likewise.
11837         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
11838         changes.
11839         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
11840         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
11841         to use movdi_internal64.  Remove op0_di.
11842         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
11844 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
11846         Add support for the FCCMP insn types
11848         * config/aarch64/aarch64.md (fccmp): Change insn type.
11849         (fccmpe): Likewise.
11850         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
11851         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
11852         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
11853         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
11854         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
11855         * config/arm/types.md (fccmps): Add new insn type.
11856         (fccmpd): Likewise.
11858 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11860         * alias.c (get_alias_set): Fix a typo in comment.
11862 2016-02-15  Richard Biener  <rguenther@suse.de>
11864         PR tree-optimization/69595
11865         * match.pd: Complete range test simplification to true.
11867 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
11869         PR rtl-optimization/69648
11870         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
11871         pic_offset_table_rtx.
11873         PR rtl-optimization/69752
11874         * ira.c (update_equiv_regs): When looking for more than a single SET,
11875         also take other side effects into account.
11877 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
11879         * config/s390/s390.c (s390_function_profiler): Add a new sequence
11880         for z900+ CPUs in 31-bit mode.
11882 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
11884         * common/config/s390/s390-common.c (s390_supports_split_stack):
11885         New function.
11886         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
11887         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
11888         * config/s390/s390.c (struct machine_function): New field
11889         split_stack_varargs_pointer.
11890         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
11891         in s390_emit_prologue.
11892         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
11893         vararg pointer.
11894         (morestack_ref): New global.
11895         (SPLIT_STACK_AVAILABLE): New macro.
11896         (s390_expand_split_stack_prologue): New function.
11897         (s390_live_on_entry): New function.
11898         (s390_va_start): Use split-stack vararg pointer if appropriate.
11899         (s390_asm_file_end): Emit the split-stack note sections.
11900         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
11901         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
11902         (UNSPECV_SPLIT_STACK_CALL): New unspec.
11903         (UNSPECV_SPLIT_STACK_DATA): New unspec.
11904         (split_stack_prologue): New expand.
11905         (split_stack_space_check): New expand.
11906         (split_stack_data): New insn.
11907         (split_stack_call): New expand.
11908         (split_stack_call_*): New insn.
11909         (split_stack_cond_call): New expand.
11910         (split_stack_cond_call_*): New insn.
11912 2016-02-15  Richard Biener  <rguenther@suse.de>
11914         PR tree-optimization/69783
11915         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
11916         Add trivially correct cases.
11918 2016-02-15  Tom de Vries  <tom@codesourcery.com>
11920         PR lto/69655
11921         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
11922         do_force_output.
11923         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
11925 2016-02-15  Richard Biener  <rguenther@suse.de>
11927         PR tree-optimization/69776
11928         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
11929         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
11930         indicate whether we can use TBAA to disambiguate against stores.
11931         Use alias-set zero if not.
11932         (visit_reference_op_store): Do not use TBAA when looking up
11933         redundant stores.
11934         * tree-ssa-pre.c (compute_avail): Use TBAA here.
11935         (eliminate_dom_walker::before_dom_children): But not when looking
11936         up redundant stores.
11938 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
11940         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
11942 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11944         *  config/i386/znver1.md
11945         (znver1_pop, znver1_pop_mem,
11946         znver1_load_imov_double_store,
11947         znver1_load_imov_direct_store,
11948         znver1_load_imov_direct_load,
11949         znver1_load_imov_double_load): Add new.
11950         (znver1_insn, znver1_insn_load): Add icmov type.
11951         (znver1_sseavx_fma,
11952         znver1_sseavx_fma_load,
11953         znver1_avx256_fma,
11954         znver1_avx256_fma_load): Fix pipe usage.
11956 2016-02-14  Alan Modra  <amodra@gmail.com>
11958         PR target/68973
11959         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
11960         with an invalid hard reg, reload just the reg not the entire
11961         pre/post-inc/dec address expression.
11963 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
11965         PR target/67260
11966         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
11967         fixed R1_REG scratch reg.
11968         (sibcall_value_pcrel_fdpic): Likewise.
11970 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
11972         PR target/67636
11973         PR target/64345
11974         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
11976 2016-02-12  Walter Lee  <walt@tilera.com>
11978         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
11979         * config/tilegx/t-tilegx: Likewise.
11981 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
11983         PR other/69554
11984         * diagnostic-show-locus.c (struct line_span): New struct.
11985         (layout::get_first_line): Delete.
11986         (layout::get_last_line): Delete.
11987         (layout::get_num_line_spans): New member function.
11988         (layout::get_line_span): Likewise.
11989         (layout::print_heading_for_line_span_index_p): Likewise.
11990         (layout::get_expanded_location): Likewise.
11991         (layout::calculate_line_spans): Likewise.
11992         (layout::m_first_line): Delete.
11993         (layout::m_last_line): Delete.
11994         (layout::m_line_spans): New field.
11995         (layout::layout): Update comment.  Replace m_first_line and
11996         m_last_line with m_line_spans, replacing their initialization
11997         with a call to calculate_line_spans.
11998         (diagnostic_show_locus): When printing source lines and
11999         annotations, rather than looping over a single span
12000         of lines, instead loop over each line_span within
12001         the layout, with an inner loop over the lines within them.
12002         Call the context's start_span callback when changing line spans.
12003         * diagnostic.c (diagnostic_initialize): Initialize start_span.
12004         (diagnostic_build_prefix): Break out the building of the location
12005         part of the string into...
12006         (diagnostic_get_location_text): ...this new function, rewriting
12007         it from nested ternary expressions to a sequence of "if"
12008         statements.
12009         (default_diagnostic_start_span_fn): New function.
12010         * diagnostic.h (diagnostic_start_span_fn): New typedef.
12011         (diagnostic_context::start_span): New field.
12012         (default_diagnostic_start_span_fn): New prototype.
12014 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
12016         PR driver/69779
12017         * gcc.c (driver::finalize): Fix cleanup of "specs".
12019 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
12021         PR driver/69265
12022         PR driver/69453
12023         * gcc.c (driver::driver): Initialize m_option_suggestions.
12024         (driver::~driver): Clean up m_option_suggestions.
12025         (suggest_option): Convert to...
12026         (driver::suggest_option): ...this, and split out into
12027         driver::build_option_suggestions and find_closest_string.
12028         (driver::build_option_suggestions): New function, from
12029         first half of suggest_option.  Special-case
12030         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
12031         the sanitizer_opts array.  For options of enum types, add the
12032         various enum values to the candidate strings.
12033         (driver::handle_unrecognized_options): Remove "const".
12034         * gcc.h (driver::handle_unrecognized_options): Likewise.
12035         (driver::build_option_suggestions): New decl.
12036         (driver::suggest_option): New decl.
12037         (driver::m_option_suggestions): New field.
12038         * opts-common.c (add_misspelling_candidates): New function.
12039         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
12040         and make non-static.
12041         * opts.h (sanitizer_opts): New array decl.
12042         (add_misspelling_candidates): New function decl.
12043         * spellcheck.c (find_closest_string): New function.
12044         * spellcheck.h (find_closest_string): New function decl.
12046 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
12048         PR rtl-optimization/69764
12049         PR rtl-optimization/69771
12050         * optabs.c (expand_binop_directly): For shift_optab_p, force
12051         convert_modes with VOIDmode if xop1 has VOIDmode.
12053 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
12055         PR target/69729
12056         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
12057         to correctly determine instrumentation thunks.
12059 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
12061         PR ipa/69241
12062         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
12063         type by reference, force lhs on the call.
12065         PR ipa/68672
12066         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
12067         Compute retval and retbnd early in all cases if split_part_return_p
12068         and return_bb is not EXIT.  Remove all clobber stmts and reset
12069         all debug stmts that refer to SSA_NAMEs defined in split part,
12070         except if it is retval, in that case replace the old retval with the
12071         lhs of the call to the split part.
12073 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12075         revert:
12076         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12078         PR middle-end/66726
12079         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
12080         whose result is used in PHI.
12081         (maybe_optimize_range_tests): Likewise.
12082         (final_range_test_p): Likweise.
12084 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12086         PR middle-end/66726
12087         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
12088         whose result is used in PHI.
12089         (maybe_optimize_range_tests): Likewise.
12090         (final_range_test_p): Likweise.
12092 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
12094         * cgraph.c: Spelling fixes - behaviour -> behavior and
12095         neighbour -> neighbor.
12096         * target.def: Likewise.
12097         * sel-sched.c: Likewise.
12098         * config/mips/mips.c: Likewise.
12099         * config/arc/arc.md: Likewise.
12100         * config/arm/cortex-a57.md: Likewise.
12101         * config/arm/arm.c: Likewise.
12102         * config/arm/neon.md: Likewise.
12103         * config/arm/arm-c.c: Likewise.
12104         * config/vms/vms-c.c: Likewise.
12105         * config/s390/s390.c: Likewise.
12106         * config/i386/znver1.md: Likewise.
12107         * config/i386/i386.c: Likewise.
12108         * config/ia64/hpux-unix2003.h: Likewise.
12109         * config/msp430/msp430.md: Likewise.
12110         * config/rx/rx.c: Likewise.
12111         * config/rx/rx.md: Likewise.
12112         * config/aarch64/aarch64-simd.md: Likewise.
12113         * config/aarch64/aarch64.c: Likewise.
12114         * config/nvptx/nvptx.c: Likewise.
12115         * config/bfin/bfin.c: Likewise.
12116         * config/cris/cris.opt: Likewise.
12117         * config/rs6000/rs6000.c: Likewise.
12118         * target.h: Likewise.
12119         * spellcheck.c: Likewise.
12120         * ira-build.c: Likewise.
12121         * tree-inline.c: Likewise.
12122         * builtins.c: Likewise.
12123         * lra-constraints.c: Likewise.
12124         * explow.c: Likewise.
12125         * hwint.h: Likewise.
12126         * targhooks.c: Likewise.
12127         * tree-vect-data-refs.c: Likewise.
12128         * expr.c: Likewise.
12129         * doc/tm.texi: Likewise.
12130         * doc/extend.texi: Likewise.
12131         * doc/install.texi: Likewise.
12132         * doc/md.texi: Likewise.
12133         * tree-ssa-tail-merge.c: Likewise.
12134         * sched-int.h: Likewise.
12135         * match.pd: Likewise.
12136         * sched-ebb.c: Likewise.
12137         * target.def (omit_struct_return_reg): Likewise.
12138         * gimple-ssa-isolate-paths.c: Likewise.
12139         (find_implicit_erroneous_behaviour): Renamed to...
12140         (find_implicit_erroneous_behavior): ... this.
12141         (find_explicit_erroneous_behaviour): Renamed to...
12142         (find_explicit_erroneous_behavior): ... this.
12143         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
12145 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
12147         PR rtl-optimization/64682
12148         PR rtl-optimization/69567
12149         PR rtl-optimization/69737
12150         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
12151         in I2 as well, just lose it.
12153 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12155         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
12156         New variable.
12157         (aarch64_last_printed_tune_string): Likewise.
12158         (aarch64_declare_function_name): Only output .arch assembler
12159         directive if it will be different from the previously output
12160         directive.  Same for .tune comment but only if -dA is set.
12161         (aarch64_start_file): New function.
12162         (TARGET_ASM_FILE_START): Define.
12164 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
12166         PR plugins/69758
12167         * Makefile.in (PLUGIN_HEADERS): Add params.list.
12169 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
12171         PR target/65313
12172         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
12173         -Wmaybe-uninitialized warning.
12175 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
12177         PR target/69713
12178         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
12180 2016-02-11  Richard Biener  <rguenther@suse.de>
12182         PR rtl-optimization/69291
12183         * ifcvt.c (noce_try_store_flag_constants): Do not allow
12184         subexpressions affected by changing the result.
12186 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
12188         PR target/69148
12189         * lra-constraints.c (curr_insn_transform): Find in/out operands
12190         for secondary memory moves.  Update dups.
12192 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
12194         PR tree-optimization/69652
12195         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
12196         to nested loop, did source re-formatting, skip debug statements,
12197         add check on statement with volatile operand, remove dead scalar
12198         statements.
12200 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
12201             Patrick Palka  <ppalka@gcc.gnu.org>
12203         PR ipa/69241
12204         PR c++/69649
12205         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
12206         calls if the return type is TREE_ADDRESSABLE.
12207         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
12208         * ipa-split.c (split_function): Fix doubled "we" in comment.
12209         Use void return type for the split part even if
12210         !split_point->split_part_set_retval.
12212 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
12214         PR tree-optimization/68021
12215         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
12216         when computing the value of biv cand by itself.
12218 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
12220         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
12221         (cortexa57_tunings): Likewise.
12222         (cortexa72_tunings): Likewise.
12223         (arch_macro_fusion_pair_p): Add support for AES fusion.
12224         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
12225         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
12226         Allow virtual registers before reload so early scheduling works.
12227         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
12228         correct latency and pipeline.
12229         (cortex_a57_crypto_complex): Likewise.
12230         (cortex_a57_crypto_xor): Likewise.
12231         (define_bypass): Add AES bypass.
12233 2016-02-10  Richard Biener  <rguenther@suse.de>
12235         PR tree-optimization/69726
12236         * passes.def: Add DCE pass before late uninit.
12237         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
12238         really fixup if-conversions job.
12240 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
12242         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
12243         (arm_cortex_a57_tune): Likewise.
12244         (aarch_macro_fusion_pair_p): Add support for AES fusion.
12245         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
12247 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
12249         * timevar.def (TV_PHASE_DBGINFO): Delete.
12250         (TV_PHASE_CHECK_DBGINFO): Likewise.
12251         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
12253 2016-02-10  Richard Biener  <rguenther@suse.de>
12255         PR tree-optimization/69719
12256         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12257         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
12259 2016-02-09  Andrew Pinski  <apinski@cavium.com>
12261         PR tree-opt/69282
12262         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
12263         get_vcond_mask_icode returns false.
12265 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
12267         PR target/68404
12268         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
12269         an ADDIS that adds a pointer to a large constant that sets the
12270         upper16 bits with a load operation.
12272 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
12274         PR target/68532
12275         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
12276         order.
12277         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
12278         endian.
12279         (vzipq_s16): Likewise.
12280         (vzipq_s32): Likewise.
12281         (vzipq_f32): Likewise.
12282         (vzipq_u8): Likewise.
12283         (vzipq_u16): Likewise.
12284         (vzipq_u32): Likewise.
12285         (vzipq_p8): Likewise.
12286         (vzipq_p16): Likewise.
12288 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
12290         PR target/68532
12291         * config/arm/arm.c (neon_endian_lane_map): New function.
12292         (neon_vector_pair_endian_lane_map): New function.
12293         (arm_evpc_neon_vuzp): Allow for big endian lane order.
12294         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
12295         endian.
12296         (vuzpq_s16): Likewise.
12297         (vuzpq_s32): Likewise.
12298         (vuzpq_f32): Likewise.
12299         (vuzpq_u8): Likewise.
12300         (vuzpq_u16): Likewise.
12301         (vuzpq_u32): Likewise.
12302         (vuzpq_p8): Likewise.
12303         (vuzpq_p16): Likewise.
12305 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
12307         PR target/69634
12308         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
12309         debug insns.
12311 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
12313         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
12314         truncate const_int operand 1 to QImode.
12316 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
12318         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
12319         corresponding to an abnormal edge.
12321 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12323         PR tree-optimization/69599
12324         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
12325         function.
12326         (find_func_aliases_for_builtin_call, find_func_clobbers)
12327         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
12328         partition.
12330 2016-02-09  Richard Biener  <rguenther@suse.de>
12332         PR tree-optimization/69715
12333         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
12334         LHS on calls as non-rewritable.
12336 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12338         PR lto/69707
12339         * lto-wrapper.c (append_diag_options): New function.
12340         (compile_offload_image): Call append_diag_options.
12342 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
12344         PR other/69722
12345         * doc/extend.texi (Flag Output Operands): Correct sectioning.
12346         Minor copy-edit to fix verb tenses.
12348 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
12350         PR tree-optimization/69209
12351         * ipa-split.c (split_function): If split part is not
12352         returning retval, retval has gimple type but is not
12353         gimple value, force it into a SSA_NAME first.
12355 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
12357         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
12358         outdated section.
12360 2016-02-08  Jason Merrill  <jason@redhat.com>
12362         PR c++/69631
12363         * convert.c (convert_to_integer_1): Check dofold on truncation
12364         distribution.
12365         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
12366         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
12367         Rename from *_nofold.
12368         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
12369         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
12371 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
12373         PR target/60410
12374         * tree.c (build_common_tree_nodes): Remove short_double argument.
12375         All callers changed.
12376         * tree.h (build_common_tree_nodes): Adjust declaration.
12377         * doc/invoke.texi (-fshort-double): Remove documentation.
12378         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12379         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
12380         * lto-wrapper.c (merge_and_complain, append_compiler_options)
12381         (append_linker_options): Don't handle OPT_fshort_double.
12383         PR rtl-optimization/68730
12384         * lra-remat.c (insn_to_cand_activation): New static variable.
12385         (lra_remat): Allocate and free it.
12386         (create_cand): New arg activation. Initialize a field in
12387         insn_to_cand_activation if it is nonnull.
12388         (create_cands): Pass the activation insn to create_cand when making
12389         a candidate involving an output reload.  Reorganize code a little.
12390         (do_remat): Keep track of active status of candidates in a separate
12391         bitmap.
12393 2016-02-08  Richard Biener  <rguenther@suse.de>
12395         PR tree-optimization/69719
12396         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12397         Properly use absolute of the difference of the two offsets to
12398         compare or adjust the segment length.
12400 2016-02-08  Richard Biener  <rguenther@suse.de>
12401             Jeff Law  <law@redhat.com>
12403         PR target/68273
12404         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
12405         types for anonymous SSA names.
12407 2016-02-08   Richard Biener  <rguenther@suse.de>
12409         PR rtl-optimization/69274
12410         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
12412 2016-02-08  Jeff Law  <law@redhat.com>
12414         PR tree-optimization/65917
12415         * tree-ssa-dom.c (record_temporary_equivalences): Record both
12416         equivalences from if (x == y) style conditionals.
12417         (loop_depth_of_name): Remove.
12418         (record_equality): Remove loop depth check.
12419         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
12420         (const_and_copies::record_const_or_copy_raw): New member function.
12421         * tree-ssa-scopedtables.c
12422         (const_and_copies::record_const_or_copy_raw): New, factored out of
12423         (const_and_copies::record_const_or_copy): Call new member function.
12425 2016-02-05  Jeff Law  <law@redhat.com>
12427         PR tree-optimization/68541
12428         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
12429         (count_stmts_in_block): New function.
12430         (poor_ifcvt_candidate_code): Likewise.
12431         (is_feasible_trace): Add some heuristics to determine when path
12432         splitting is profitable.
12433         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
12434         is a diamond with a single exit.
12436 2016-02-05  Martin Sebor  <msebor@redhat.com>
12438         PR c++/69662
12439         * doc/invoke.texi: Update -Wplacement-new to take an optional
12440         argument.
12442 2016-02-06  Richard Henderson  <rth@redhat.com>
12444         PR c/69643
12445         * tree.c (tree_nop_conversion_p): Do not strip casts into or
12446         out of non-standard address spaces.
12448 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
12450         PR rtl-optimization/69691
12451         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
12453 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
12455         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
12456         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
12457         (*ieee128_mfvsrd_64bit): Likewise.
12458         (*ieee128_mfvsrd_32bit): Likewise.
12460 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
12462         PR target/69369
12463         Revert r232560:
12464         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
12466         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
12467         instrumented_version.
12469 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
12471         * doc/invoke.texi (Optimize Options): In table of --param options
12472         rename second occurrence of tracer-min-branch-ratio to
12473         tracer-min-branch-probability, rename
12474         tracer-min-branch-ratio-feedback to
12475         tracer-min-branch-probability-feedback and clarify description,
12476         rename sched-spec-state-edge-prob-cutoff to
12477         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
12478         to selsched-insns-to-rename, rename lto-minpartition to
12479         lto-min-partition, delete reorder-blocks-duplicate and
12480         reorder-blocks-duplicate-feedback.
12482 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12484         * config/s390/s390.c (s390_register_info_set_ranges): Remove
12485         superfluous loops.
12487 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12489         * doc/extend.texi: S/390: Correct some typos.
12491 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12493         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
12495 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12497         PR target/69625
12498         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
12499         (s390_register_info_gprtofpr): Use new macros above.
12500         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
12501         its name.
12502         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
12503         its name.  Adjust restore and save gpr ranges.
12504         (s390_register_info_set_ranges): New function.
12505         (s390_register_info): Use new macros above.  Call
12506         s390_register_info_set_ranges.
12507         (s390_optimize_register_info): Likewise.
12508         (s390_hard_regno_rename_ok): Use new macros.
12509         (s390_hard_regno_scratch_ok): Likewise.
12510         (s390_emit_epilogue): Likewise.
12511         (s390_can_use_return_insn): Likewise.
12512         (s390_optimize_prologue): Likewise.
12513         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
12515 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
12517         PR bootstrap/69677
12518         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
12519         alignment fixes.
12520         (ix86_option_override_internal): Disable TARGET_STV even for
12521         -m{incoming,preferred}-stack-boundary=3.
12523 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12525         * config.gcc: Mark deprecated rtems targets as obsolete.
12527 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
12529         PR rtl-optimization/64682
12530         PR rtl-optimization/69567
12531         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
12532         before I2 only if the register is both used and set in I2.
12534 2016-02-04  DJ Delorie  <dj@redhat.com>
12536         * config/msp430/msp430.c (msp430_start_function): Add function type.
12538 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
12540         PR fortran/69368
12541         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
12543 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
12545         PR rtl-optimization/69577
12546         Revert:
12547         2015-10-29  Richard Henderson  <rth@redhat.com>
12549         PR target/68124
12550         PR rtl-opt/67609
12551         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
12552         sse check to the exact conditions of PR 67609.
12554 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
12556         PR target/69667
12557         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
12558         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
12559         not allowed into the traditional Altivec registers.
12560         (movtd_64bit_nodm): Likewise.
12561         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
12563 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
12565         * config/aarch64/cortex-a57-fma-steering.c
12566         (aarch64_register_fma_steering): Remove "static" from arguments
12567         to register_pass.
12569 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
12571         PR target/69619
12572         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
12573         twice when complex.
12575 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
12577         * doc/invoke.texi: Delete -mno-fma4.
12579 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
12581         PR rtl-optimization/69577
12582         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
12583         (find_subregs_of_mode): Update accordingly.  Iterate over partial
12584         definitions.
12586 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
12588         * config/arm/arm-protos.h (neon_reinterpret): Remove.
12589         * config/arm/arm.c (neon_reinterpret): Remove.
12590         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
12591         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
12592         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
12593         vreinterpretti): Remove.
12594         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
12595         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
12596         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
12597         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
12598         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
12599         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
12600         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
12601         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
12602         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
12603         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
12604         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
12605         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
12606         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
12607         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
12608         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
12609         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
12610         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
12611         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
12612         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
12613         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
12614         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
12615         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
12616         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
12617         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
12618         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
12619         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
12620         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
12621         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
12622         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
12623         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
12624         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
12625         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
12626         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
12627         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
12628         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
12629         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
12630         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
12631         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
12632         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
12633         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
12634         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
12635         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
12636         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
12637         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
12638         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
12639         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
12640         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
12641         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
12642         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
12643         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
12644         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
12645         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
12646         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
12647         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
12648         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
12649         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
12650         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
12651         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
12652         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
12653         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
12654         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
12655         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
12656         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
12657         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
12658         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
12659         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
12660         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
12661         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
12662         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
12663         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
12664         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
12665         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
12666         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
12667         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
12668         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
12669         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
12670         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
12671         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
12672         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
12673         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
12674         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
12675         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
12676         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
12677         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
12678         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
12679         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
12680         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
12681         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
12682         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
12683         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
12684         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
12685         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
12686         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
12687         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
12688         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
12689         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
12690         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
12691         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
12692         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
12693         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
12694         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
12695         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
12696         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
12698 2016-02-04  Martin Liska  <mliska@suse.cz>
12700         PR sanitizer/69276
12701         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
12702         that are gimple_store_p.
12703         (maybe_instrument_call): Likewise.
12705 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
12707         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
12708         register scaling out of memory reference and comment why.
12710 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12712         PR target/65932
12713         PR target/67714
12714         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
12715         folding the source of a SET.
12717 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12719         PR target/65932
12720         PR target/67714
12721         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
12722         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
12724 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
12726         PR target/65932
12727         PR target/67714
12728         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
12729         HImode.
12731 2016-02-04  Christian Bruel  <christian.bruel@st.com>
12733         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
12734         * config/arm/arm.c (arm_set_current_function): Likewise.
12736 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
12737             Ilya Enkovich  <enkovich.gnu@gmail.com>
12738             H.J. Lu  <hongjiu.lu@intel.com>
12740         PR target/69454
12741         * config/i386/i386.c (convert_scalars_to_vector): Remove
12742         stack alignment fixes.
12743         (ix86_option_override_internal): Disable TARGET_STV if stack
12744         might not be aligned enough.
12745         (ix86_minimum_alignment): Assert that TARGET_STV is false.
12747 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
12749         * config/i386/x86-tune.def: Disable default prefetching
12750         for -march=znver1.
12752 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12753             Vladimir Makarov  <vmakarov@redhat.com>
12755         PR target/69461
12756         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
12757         in validating fused toc addresses.
12759 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
12761         PR c/69627
12762         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
12763         range->m_caret fields if range->m_show_caret_p is false.
12765         PR target/69644
12766         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
12767         Force oldval into register if it does not satisfy reg_or_short_operand
12768         predicate.  Fix up formatting.
12770 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
12771             Alexandre Oliva  <aoliva@redhat.com>
12773         PR target/69461
12774         * lra-constraints.c (simplify_operand_subreg): Check additionally
12775         address validity after potential reloading.
12776         (process_address_1): Check insns validity.  In case of failure do
12777         nothing.
12779 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
12781         PR target/69118
12782         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
12783         Fix target.
12785 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
12787         * wide-int.cc (canonize_uhwi): New function.
12788         (wi::divmod_internal): Use it.
12790 2016-02-02  James Norris  <jnorris@codesourcery.com
12792         * gimplify.c (omp_notice_variable): Add usage check.
12794 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
12796         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
12797         like LE, GE, LT, GT when emitting relational operator.
12799 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
12801         * ira-costs.c (find_costs_and_classes): Add extra argument.
12802         * target.def (ira_change_pseudo_allocno_class): Add parameter.
12803         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
12804         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
12805         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
12806         Add best_class parameter, and return it if not ALL_REGS.
12807         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
12808         Add parameter.
12809         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
12810         Update target hook.
12812 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
12814         * config/aarch64/aarch64.c
12815         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
12816         (aarch64_ira_change_pseudo_allocno_class): New function.
12818 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
12820         PR target/67032
12821         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
12823 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12825         * config/avr/avr.c (avr_option_override): Set
12826         PARAM_ALLOW_STORE_DATA_RACES to 1.
12828 2016-02-02  Richard Biener  <rguenther@suse.de>
12830         PR tree-optimization/69595
12831         * match.pd: Add range test simplifications to true/false.
12833 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
12835         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
12836         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
12837         instead.
12839 2016-02-02  Richard Biener  <rguenther@suse.de>
12841         PR tree-optimization/69606
12842         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
12843         info on the result before moving a stmt.
12845 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
12847         PR middle-end/68542
12848         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
12849         branch with vector comparison.
12850         * config/i386/sse.md (VI48_AVX): New mode iterator.
12851         (define_expand "cbranch<mode>4): Add support for conditional branch
12852         with vector comparison.
12853         * tree-vect-loop.c (optimize_mask_stores): New function.
12854         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
12855         has_mask_store field of vect_info.
12856         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
12857         vectorized loops having masked stores after vec_info destroy.
12858         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
12859         correspondent macros.
12860         (optimize_mask_stores): Add prototype.
12862 2016-02-02  Alan Modra  <amodra@gmail.com>
12864         PR target/69548
12865         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
12866         allow subregs.
12868 2016-02-02  Alan Modra  <amodra@gmail.com>
12870         PR target/68662
12871         * config/rs6000/rs6000.c (need_toc_init): New var, set it
12872         whenever toc_label_name used.
12873         (rs6000_file_start): Don't set up toc section here,
12874         (rs6000_output_function_epilogue): do so here instead,
12875         (rs6000_xcoff_file_start): and here.
12876         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
12877         (load_toc_aix_di): Likewise.
12879 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
12881         PR rtl-optimization/69592
12882         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
12883         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
12884         (num_sign_bit_copies_binary_arith_p): New inline function.
12885         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
12887 2016-02-01  Jeff Law  <law@redhat.com>
12889         PR tree-optimization/69580
12890         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
12891         * tree-ssa-threadbackward.c
12892         (fsm_find_control_statement_thread_paths): Do not try to walk
12893         through large PHI nodes.
12895 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
12897         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
12898         when count is incremented above limit, don't analyze further
12899         insns afterwards.
12901         * omp-low.c (oacc_parse_default_dims): Avoid
12902         -Wsign-compare warning, make sure value fits into int
12903         rather than just unsigned int.
12905 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
12907         PR tree-optimization/67921
12908         * fold-const.c (split_tree): New parameters.  Convert pointer
12909         type variable part to proper type before negating.
12910         (fold_binary_loc): Pass new arguments to split_tree.
12912 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
12914         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
12915         (nvptx_goacc_validate_dims): Extend to handle global defaults.
12916         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
12917         * doc/tm.texti: Rebuilt.
12918         * doc/invoke.texi (fopenacc-dim): Document.
12919         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
12920         (append_compiler_options): Likewise.
12921         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
12922         (oacc_parse_default_dims): New.
12923         (oacc_validate_dims): Add USED arg.  Select non-unity default when
12924         possible.
12925         (oacc_loop_fixed_partitions): Return mask of used partitions.
12926         (oacc_loop_auto_partitions): Emit dump info.
12927         (oacc_loop_partition): Return mask of used partitions.
12928         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
12929         loop partitioning and validation calls.
12931 2016-02-01  Richard Biener  <rguenther@suse.de>
12933         PR middle-end/69556
12934         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
12936 2016-02-01  Richard Biener  <rguenther@suse.de>
12938         PR tree-optimization/69574
12939         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
12940         of asserting return chrec_dont_know.
12942 2016-02-01  Martin Liska  <mliska@suse.cz>
12944         * mem-stats-traits.h: Add copyright header.
12945         * mem-stats.h: Likewise.
12947 2016-02-01  Richard Biener  <rguenther@suse.de>
12949         PR tree-optimization/69579
12950         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
12951         Do not propagate through abnormal PHI results.
12953 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
12955         * postreload.c (reload_cse_simplify): Remove dead code.
12957 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
12959         PR rtl-optimization/69570
12960         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
12961         if there is more than one set, not if there is a single set.
12963 2016-02-01  Richard Henderson  <rth@redhat.com>
12965         PR rtl-opt/69535
12966         * combine.c (make_compound_operation): When looking through a
12967         subreg, make sure to re-extend to the width of the outer mode.
12969 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
12971         PR tree-optimization/69546
12972         * wide-int.cc (wi::divmod_internal): For unsigned division
12973         where both operands fit into uhwi, if o1 is 1 and o0 has
12974         msb set, if divident_prec is larger than bits per hwi,
12975         clear another quotient word and return 2 instead of 1.
12976         Similarly for remainder with msb in HWI set, if dividend_prec
12977         is larger than bits per hwi.
12979 2016-01-29  Martin Jambor  <mjambor@suse.cz>
12981         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
12982         Use short lowercase names.
12983         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
12984         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
12985         acq_rel one.  Protect warning agains segfaults if
12986         get_memory_order_name returns NULL.
12987         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
12988         with release semantics.  Do not warn if get_memory_order already did.
12989         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
12990         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
12991         if get_memory_order already did.
12993 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
12995         * doc/install.texi: Document that isl-0.16 is supported.
12997 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
12999         PR target/69299
13000         * config/i386/constraints.md (Bm): Describe as special memory
13001         constraint.
13002         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
13003         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
13004         * genpreds.c (struct constraint_data): Add is_special_memory.
13005         (have_special_memory_constraints, special_memory_start): New
13006         static vars.
13007         (special_memory_end): Ditto.
13008         (add_constraint): Add new arg is_special_memory.  Add code to
13009         process its true value.  Update have_special_memory_constraints.
13010         (process_define_constraint): Pass the new arg.
13011         (process_define_register_constraint): Ditto.
13012         (choose_enum_order): Process special memory.
13013         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
13014         function insn_extra_special_memory_constraint.
13015         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
13016         * gensupport.c (process_rtx): Process
13017         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
13018         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
13019         * ira-lives.c (single_reg_class): Use
13020         insn_extra_special_memory_constraint.
13021         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
13022         * lra-constraints.c (process_alt_operands): Ditto.
13023         (curr_insn_transform): Use insn_extra_special_memory_constraint.
13024         * recog.c (asm_operand_ok, preprocess_constraints): Process
13025         CT_SPECIAL_MEMORY.
13026         * reload.c (find_reloads): Ditto.
13027         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
13028         * stmt.c (parse_input_constraint): Use
13029         insn_extra_special_memory_constraint.
13031 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
13033         PR target/69530
13034         * lra-splill.c (lra_final_code_change): Revert r229087 by
13035         removing all sub-registers.
13037 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
13039         PR target/65604
13040         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
13042 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
13044         PR target/69551
13045         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
13046         SSE1, copy target into the temporary reg first before recursing
13047         on it.
13049 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
13051         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
13052         with vm.
13054 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
13056         * ginclude/stdarg.h: Test __cplusplus instead of
13057         __GXX_EXPERIMENTAL_CXX0X__.
13059 2016-01-29  Richard Biener  <rguenther@suse.de>
13061         PR tree-optimization/69547
13062         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
13063         Do not mark clobbers necessary.
13064         (mark_all_reaching_defs_necessary_1): Likewise.
13066 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13068         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
13069         declaration name with %qs and print it in both error messages.
13070         Also fix indentation.
13072 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13074         PR other/69006
13075         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
13076         trailing blank line from error message.
13078 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
13080         PR c++/69462
13081         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
13082         for C++-11.
13084 2016-01-29  Richard Biener  <rguenther@suse.de>
13086         PR middle-end/69537
13087         * match.pd: Allow all integral types when simplifying a
13088         widening or sign-changing conversion.
13090 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13092         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
13093         back to setting codegen_error to fail codegen.
13095 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
13097         PR target/69459
13098         * config/i386/constraints.md (C): Only accept constant zero operand.
13099         (BC): New constraint.
13100         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
13101         instead of C constraint.
13102         * doc/md.texi (Machine Constraints): Update description
13103         of C constraint.
13105 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
13107         PR target/68400
13108         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
13110 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
13112         PR middle-end/69542
13113         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
13114         non-debug insns.
13116 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
13118         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
13119         branches if using guessed profile.
13121 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
13123         * graphite-optimize-isl.c (optimize_isl): Fix dump.
13125 2016-01-28  Richard Henderson  <rth@redhat.com>
13127         PR target/69305
13128         * config/aarch64/aarch64-modes.def (CC_Cmode): New
13129         * config/aarch64/aarch64-protos.h: Update.
13130         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
13131         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
13132         (aarch64_get_condition_code_1): Handle CC_Cmode.
13133         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
13134         (*add<mode>3_compareC_cconly_imm): New.
13135         (*add<mode>3_compareC_cconly): New.
13136         (*add<mode>3_compareC_imm): New.
13137         (add<mode>3_compareC): New.
13138         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
13139         to be first.  Use aarch64_carry_operation.
13140         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
13141         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
13142         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
13143         (subti3): Use subdi3_compare1.
13144         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
13145         (sub<mode>3_compare1): New.
13146         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
13147         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
13148         (*subsi3_carryin_uxtw): Likewise.
13149         (*ngc<mode>, *ngcsi_uxtw): Likewise.
13150         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
13151         * config/aarch64/iterators.md (DWI): New.
13152         * config/aarch64/predicates.md (aarch64_carry_operation): New.
13153         (aarch64_borrow_operation): New.
13155 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
13157         * graphite-optimize-isl.c (optimize_isl): Print a different debug
13158         message when isl does not return a valid schedule.
13160 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13162         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
13163         Remove comments from class declarations: they are already in the code
13164         close by the defs.
13166 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13168         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
13169         codegen_error_p.
13170         (ternary_op_to_tree): Same.
13171         (unary_op_to_tree): Same.
13172         (nary_op_to_tree): Same.
13173         (gcc_expression_from_isl_expr_op): Same.
13174         (gcc_expression_from_isl_expression): Same.
13175         (graphite_create_new_loop): Same.
13176         (graphite_create_new_loop_guard): Same.
13177         (build_iv_mapping): Same.
13178         (graphite_create_new_guard): Same.
13179         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
13180         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
13182 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13184         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
13185         instead of setting codegen_error to fail codegen.
13187 2016-01-28  Jason Merrill  <jason@redhat.com>
13189         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
13191 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
13193         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
13194         Remove CONST_INT_P check in CCMP cost calculation.
13196 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
13198         * config/aarch64/aarch64.c (generic_vector_cost):
13199         Set vec_permute_cost.
13200         (cortexa57_vector_cost): Likewise.
13201         (exynosm1_vector_cost): Likewise.
13202         (xgene1_vector_cost): Likewise.
13203         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
13204         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
13205         Add vec_permute_cost entry.
13207 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
13209         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
13210         immediate as %1.
13211         (add<mode>3_compare0): Likewise.
13212         (addsi3_compare0_uxtw): Likewise.
13213         (add<mode>3nr_compare0): Likewise.
13214         (compare_neg<mode>): Likewise.
13215         (<optab><mode>3): Likewise.
13217 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
13219         * tree-vect-stmts.c (vectorizable_comparison): Add
13220         NULL check for vectype.
13222 2016-01-28  Richard Biener  <rguenther@suse.de>
13224         PR tree-optimization/69466
13225         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
13226         Account for PHIs we couldn't duplicate.
13228 2016-01-28  Martin Liska  <mliska@suse.cz>
13230         PR pch/68758
13231         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
13232         instead of ENABLE_VALGRIND_CHECKING.
13234 2016-01-27  Richard Henderson  <rth@redhat.com>
13236         PR rtl-opt/69447
13237         * lra-remat.c (subreg_regs): New.
13238         (dump_candidates_and_remat_bb_data): Dump it.
13239         (operand_to_remat): Reject if operand in subreg_regs.
13240         (set_bb_regs): Collect subreg_regs.
13241         (lra_remat): Init and free subreg_regs.  Compute
13242         calculate_local_reg_remat_bb_data before create_cands.
13244 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
13246         PR target/68986
13247         * config/i386/i386.c (ix86_update_stack_boundary): Don't
13248         change stack_alignment_needed for __tls_get_addr call.
13250 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
13252         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
13254 2016-01-27  Jeff Law  <law@redhat.com>
13256         PR tree-optimization/68398
13257         PR tree-optimization/69196
13258         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
13259         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
13260         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13261         Only count PHIs in the last block in the path.  The others will
13262         const/copy propagate away.  Add heuristic to allow more irreducible
13263         subloops to be created when it is likely profitable to do so.
13265         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13266         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
13267         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
13269 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
13271         PR lto/69254
13272         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
13273         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
13274         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
13275         * tree-streamer-in.c: Include asan.h.
13276         (streamer_get_builtin_tree): For builtins in sanitizer
13277         range call initialize_sanitizer_builtins and retry.
13279 2016-01-27  Ian Lance Taylor  <iant@google.com>
13281         * common.opt (fkeep-gc-roots-live): New undocumented option.
13282         * tree-ssa-loop-ivopts.c (add_candidate_1): If
13283         -fkeep-gc-roots-live, skip pointers.
13284         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
13285         NULL.
13287 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
13289         PR target/69512
13290         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
13291         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
13293 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
13295         PR target/68380
13296         * configure.ac: NetBSD provides SSP in its C library.
13297         * configure: Updated.
13299 2016-01-27  Richard Biener  <rguenther@suse.de>
13301         PR tree-optimization/69166
13302         * tree-vect-loop.c (vect_is_simple_reduction): Always check
13303         reduction code for commutativity / associativity.
13305 2016-01-27  Martin Jambor  <mjambor@suse.cz>
13307         PR tree-optimization/69355
13308         * tree-sra.c (analyze_access_subtree): Correct hole detection when
13309         total_scalarization fails.
13311 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
13313         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
13314         power9.
13316 2016-01-27  Christian Bruel  <christian.bruel@st.com>
13318         PR target/69245
13319         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
13320         Move arm_reset_previous_fndecl and set_target_option_current_node in
13321         the conditional part.  Call save_restore_target_globals.
13322         * config/arm/arm.c (arm_set_current_function):
13323         Refactor to better support #pragma target and attribute mix.
13324         Call save_restore_target_globals.
13325         * config/arm/arm-protos.h (save_restore_target_globals): New function.
13327 2016-01-27  Martin Liska  <mliska@suse.cz>
13329         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
13330         reference for an HSA kernel and its host function.
13332 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
13334         PR tree-optimization/69399
13335         * wide-int.h (wi::lrshift): For larger precisions, only
13336         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
13338 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
13340         * config/arc/predicates.md (proper_comparison_operator): Reject
13341         constant-constant comparison.
13343 2016-01-26  Tom de Vries  <tom@codesourcery.com>
13345         PR tree-optimization/69110
13346         * tree-data-ref.c (initialize_data_dependence_relation): Handle
13347         DR_NUM_DIMENSIONS == 0.
13349 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
13350             Sebastian Pop  <s.pop@samsung.com>
13352         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
13353         isl_ast_op_cond and isl_ast_op_select.
13354         (gcc_expression_from_isl_expr_op): Same.
13356 2016-01-26  Jason Merrill  <jason@redhat.com>
13358         PR c++/68782
13359         * tree.c (recompute_constructor_flags): Split out from
13360         build_constructor.
13361         (verify_constructor_flags): New.
13362         * tree.h: Declare them.
13364 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
13366         PR rtl-optimization/69217
13367         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
13368         are no TYPE_FIELDS set for the record type.
13370 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13372         PR target/68662
13373         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
13374         toc_label_name unconditionally.
13375         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
13376         SYMBOL_REF string.  Use toc_label_name instead of constructing
13377         LCTOC1.
13378         (rs6000_elf_declare_function_name): Use toc_label_name instead of
13379         constructing LCTOC1.
13381 2016-01-26  Martin Sebor  <msebor@redhat.com>
13383         PR other/69477
13384         * doc/extend.texi (Common Type Attributes): Move text that talks about
13385         attribute packed from attribute aligned to the section discussing
13386         the former attribute for clarity.
13388 2016-01-26  Richard Henderson  <rth@redhat.com>
13390         PR middle-end/60908
13391         * trans-mem.c (tm_region_init): Mark entry block as visited.
13393 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
13395         PR other/69006
13396         * diagnostic-show-locus.c (layout::print_source_line): Replace
13397         call to pp_newline with call to layout::print_newline.
13398         (layout::print_annotation_line): Likewise.
13399         (layout::move_to_column): Likewise.
13400         (layout::print_any_fixits): After printing any fixits, print a
13401         trailing newline, if necessary.
13402         (layout::print_newline): New method, resetting any colorization
13403         before a newline.
13404         (diagnostic_show_locus): Move the pp_newline to before the
13405         early bailout.  Remove dummy block enclosing the layout instance.
13406         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
13407         of pp_newline_and_flush with pp_flush.
13408         (diagnostic_append_note): Delete use of pp_newline.
13409         (diagnostic_append_note_at_rich_loc): Delete.
13410         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
13411         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
13412         when newline characters are added to the buffer.
13414 2016-01-26  Michael Matz  <matz@suse.de>
13416         * configure.ac (ac_cv_std_swap_in_utility): New test.
13417         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
13418         * configure: Regenerate.
13419         * config.in: Regenerate.
13421 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
13423         * config/arc/arc.md (cstoresi4): Force operand into register.
13424         (arcset<code>): Fix predicate.
13425         (arcsetltu): Likewise.
13426         (arcsetgeu): Likewise.
13427         (arcsethi): Likewise.
13428         (arcsetls): Likewise.
13430 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13432         PR tree-optimization/69483
13433         * gimple-fold.c (canonicalize_constructor_val): Return NULL
13434         if base has error_mark_node type.
13436 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
13438         PR target/68620
13439         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
13440         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
13441         New helper macros.
13442         (vget_lane_f16): Handle big-endian.
13443         (vgetq_lane_f16): Likewise.
13444         (vset_lane_f16): Likewise.
13445         (vsetq_lane_f16): Likewise.
13446         * config/arm/iterators.md (VQXMOV): Add V8HF.
13447         (VDQ): Add V4HF and V8HF.
13448         (V_reg): Handle V4HF and V8HF.
13449         (Is_float_mode): Likewise.
13450         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
13451         neon_vdup_nv8hf): New patterns.
13452         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
13453         Use VD_LANE iterator.
13454         (neon_vld1_dup<mode>): Use VQ2 iterator.
13456 2016-01-26  Nathan Sidwell  <nathan@acm.org>
13458         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
13459         (set_oacc_fn_attrib): Add IS_KERNEL arg.
13460         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
13461         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
13462         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
13463         (oacc_validate_dims): Add LEVEL arg, don't return level.
13464         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
13465         oacc_validate_dims.
13466         (execute_oacc_device_lower): Adjust, add more dump output.
13467         * tree-ssa-loop.c (gate_oacc_kernels): Use
13468         oacc_fn_attrib_kernels_p.
13469         * tree-parloops.c (create_parallel_loop): Adjust
13470         set_oacc_fn_attrib call.
13472 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13474         PR lto/69254
13475         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
13476         (append_compiler_options): Handle -fcilkplus.
13477         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
13479 2016-01-26  Nick Clifton  <nickc@redhat.com>
13481         PR target/66655
13482         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
13483         been marked as DECL_ONE_ONLY but we do not the means to make it
13484         so, then do not allow it to bind locally.
13486 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13488         PR lto/69254
13489         * opts.h (parse_sanitizer_options): New prototype.
13490         * opts.c (sanitizer_opts): New array.
13491         (parse_sanitizer_options): New function.
13492         (common_handle_option): Use parse_sanitizer_options.
13494 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
13496         PR target/68986
13497         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
13498         alignment adjustment to ...
13499         (ix86_update_stack_boundary): Here.  Don't over-align stack for
13500         __tls_get_addr.
13501         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
13502         if __tls_get_addr is called.
13504 2016-01-26  Christian Bruel  <christian.bruel@st.com>
13506         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
13508 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
13510         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
13512 2016-01-26  Richard Biener  <rguenther@suse.de>
13514         PR middle-end/69467
13515         * match.pd: Guard X * CST CMP 0 pattern with single_use.
13517 2016-01-26  Richard Biener  <rguenther@suse.de>
13519         PR tree-optimization/69452
13520         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
13521         (move_computations_dom_walker::before_dom_children): Rename
13522         to ...
13523         (move_computations_worker): This.
13524         (move_computations): Perform an RPO rather than a DOM walk.
13526 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13528         PR target/69442
13529         * combine.c (combine_instructions): For REG_EQUAL note with
13530         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
13531         to the underlying register.
13532         * doc/rtl.texi (REG_EQUAL): Document the behavior of
13533         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
13535 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
13537         PR target/67896
13538         * config/aarch64/aarch64-builtins.c
13539         (aarch64_init_simd_builtin_types): Do not set structural
13540         equality to __Poly{8,16,64,128}_t types.
13542 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
13544         PR tree-optimization/69400
13545         * wide-int.cc (wi_pack): Take the precision as argument and
13546         perform canonicalization here rather than in the callers.
13547         Use the main loop to handle all full-width HWIs.  Add a
13548         zero HWI if in_len isn't a full result.
13549         (wi::divmod_internal): Update accordingly.
13550         (wi::mul_internal): Likewise.  Simplify.
13552 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
13553             Sebastian Pop  <s.pop@samsung.com>
13555         * graphite-poly.c (apply_poly_transforms): Simplify.
13556         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
13557         (print_isl_map): Same.
13558         (print_isl_union_map): Same.
13559         (print_isl_schedule): New.
13560         (debug_isl_schedule): New.
13561         * graphite-dependences.c (scop_get_reads): Do not call
13562         isl_union_map_add_map that is undocumented isl functionality.
13563         (scop_get_must_writes): Same.
13564         (scop_get_may_writes): Same.
13565         (scop_get_original_schedule): Remove.
13566         (scop_get_dependences): Do not call isl_union_map_compute_flow that
13567         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
13568         (compute_deps): Remove.
13569         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
13570         (debug_schedule_ast): New.
13571         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
13572         set_separate_option.
13573         (graphite_regenerate_ast_isl): Add dump.
13574         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
13575         from scop->transformed_schedule.
13576         (graphite_regenerate_ast_isl): Add more dump.
13577         * graphite-optimize-isl.c (optimize_isl): Set
13578         scop->transformed_schedule.  Check whether schedules are equal.
13579         (apply_poly_transforms): Move here.
13580         * graphite-poly.c (apply_poly_transforms): ... from here.
13581         (free_poly_bb): Static.
13582         (free_scop): Static.
13583         (pbb_number_of_iterations_at_time): Remove.
13584         (print_isl_ast): New.
13585         (debug_isl_ast): New.
13586         (debug_scop_pbb): New.
13587         * graphite-scop-detection.c (print_edge): Move.
13588         (print_sese): Move.
13589         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
13590         (build_scop_scattering): Remove.
13591         (create_pw_aff_from_tree): Assert instead of bailing out.
13592         (add_condition_to_pbb): Remove unused code, do not fail.
13593         (add_conditions_to_domain): Same.
13594         (add_conditions_to_constraints): Remove.
13595         (build_scop_context): New.
13596         (add_iter_domain_dimension): New.
13597         (build_iteration_domains): Initialize pbb->iterators.
13598         Call add_conditions_to_domain.
13599         (nested_in): New.
13600         (loop_at): New.
13601         (index_outermost_in_loop): New.
13602         (index_pbb_in_loop): New.
13603         (outermost_pbb_in): New.
13604         (add_in_sequence): New.
13605         (add_outer_projection): New.
13606         (outer_projection_mupa): New.
13607         (add_loop_schedule): New.
13608         (build_schedule_pbb): New.
13609         (build_schedule_loop): New.
13610         (embed_in_surrounding_loops): New.
13611         (build_schedule_loop_nest): New.
13612         (build_original_schedule): New.
13613         (build_poly_scop): Call build_original_schedule.
13614         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
13615         (free_poly_dr): Remove.
13616         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
13617         (free_poly_bb): Remove.
13618         (debug_loop_vec): Remove.
13619         (print_isl_ast): Declare.
13620         (debug_isl_ast): Declare.
13621         (scop_do_interchange): Remove.
13622         (scop_do_strip_mine): Remove.
13623         (scop_do_block): Remove.
13624         (flatten_all_loops): Remove.
13625         (optimize_isl): Remove.
13626         (pbb_number_of_iterations_at_time): Remove.
13627         (debug_scop_pbb): Declare.
13628         (print_schedule_ast): Declare.
13629         (debug_schedule_ast): Declare.
13630         (struct scop): Remove schedule.  Add original_schedule,
13631         transformed_schedule.
13632         (free_gimple_poly_bb): Remove.
13633         (print_generated_program): Remove.
13634         (debug_generated_program): Remove.
13635         (unify_scattering_dimensions): Remove.
13636         * sese.c (print_edge): ... here.
13637         (print_sese): ... here.
13638         (debug_edge): ... here.
13639         (debug_sese): ... here.
13640         * sese.h (print_edge): Declare.
13641         (print_sese): Declare.
13642         (dump_edge): Declare.
13643         (dump_sese): Declare.
13645 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
13646             Sebastian Pop  <s.pop@samsung.com>
13648         * Makefile.in: Set ISLVER in site.exp.
13650 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
13652         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
13653         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
13654         through DECL_VALUE_EXPR for expansion.
13656 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13658         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
13659         the frame info after reload completed.
13661 2016-01-25  Jeff Law  <law@redhat.com>
13663         PR tree-optimization/69196
13664         PR tree-optimization/68398
13665         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
13666         tree-ssa-threadupdate.c.
13667         (determine_bb_domination_status): Prototype
13668         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
13669         (determine_bb_domination_status): No longer static.
13670         (valid_jump_thread_path): Remove code to detect characteristics
13671         of the jump thread path not associated with correctness.
13672         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
13673         Correct test for thread path length.  Count PHIs for real operands as
13674         statements that need to be copied.  Do not count ASSERT_EXPRs.
13675         Look at all the blocks in the thread path.  Compute and selectively
13676         filter thread paths based on threading through the latch, threading
13677         a multiway branch or crossing a multiway branch.
13679 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13681         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
13682         decl with __attribute__ ((unused)) annotation.
13684 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
13686         PR target/69421
13687         * tree-vect-stmts.c (vectorizable_condition): Check vectype
13688         of operands is compatible with a statement vectype.
13690 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
13692         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
13693         improve wording for mixed storage order support.
13695 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
13697         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
13698         (vcvt_u64_f64): Likewise.
13699         (vcvta_s64_f64): Likewise.
13700         (vcvta_u64_f64): Likewise.
13701         (vcvtm_s64_f64): Likewise.
13702         (vcvtm_u64_f64): Likewise.
13703         (vcvtn_s64_f64): Likewise.
13704         (vcvtn_u64_f64): Likewise.
13705         (vcvtp_s64_f64): Likewise.
13706         (vcvtp_u64_f64): Likewise.
13708 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
13710         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
13711         (arc_init): Check validity mll64 option.
13712         (arc_save_restore): Use double load/store instruction.
13713         (arc_expand_movmem): Likewise.
13714         (arc_split_move): Don't split if we have double load/store
13715         instructions. Returns a boolean.
13716         (arc_process_double_reg_moves): Change function to return boolean
13717         instead of a sequence of instructions.
13718         (arc_dwarf_register_span): New function.
13719         * config/arc/arc-protos.h (arc_split_move): Change prototype.
13720         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
13721         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
13722         (*movdf_insn): Likewise.
13723         * config/arc/arc.opt (mll64): New option.
13724         * config/arc/predicates.md (even_register_operand): New predicate.
13725         * doc/invoke.texi (ARC Options): Add mll64 documentation.
13727 2016-01-25  Richard Biener  <rguenther@suse.de>
13729         PR lto/69393
13730         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
13731         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
13732         DECL_NAMELESS.
13733         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
13735 2016-01-25  Richard Biener  <rguenther@suse.de>
13737         PR tree-optimization/69376
13738         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
13739         flag.
13740         (VN_INFO_ANTI_RANGE_P): New inline.
13741         (VN_INFO_RANGE_TYPE): Likewise.
13742         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
13743         SSA_NAME_ANTI_RANGE_P.
13744         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
13745         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13746         Properly query VN_INFO_RANGE_TYPE.
13748 2016-01-25  Nick Clifton  <nickc@redhat.com>
13750         PR target/66655
13751         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
13753 2016-01-23  Tom de Vries  <tom@codesourcery.com>
13755         PR tree-optimization/69426
13756         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
13757         removed clobber.
13759 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
13761         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
13762         "the the" with "the" in the comments.
13763         * ipa-devirt.c (build_type_inheritance_graph,
13764         update_type_inheritance_graph): Likewise.
13765         * tree.c (build_function_type_list_1): Likewise.
13766         * cfgloopmanip.c (scale_loop_profile): Likewise.
13767         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
13768         * gimple-ssa-split-paths.c
13769         (find_block_to_duplicate_for_splitting_paths): Likewise.
13770         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
13771         * expr.c (convert_move): Likewise.
13772         * var-tracking.c (vt_stack_adjustments): Likewise.
13773         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
13774         * tree-vrp.c (test_for_singularity): Likewise.
13776         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
13777         directly instead of building a temporary tree.
13779         PR bootstrap/69434
13780         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
13781         remove <algorithm> include.
13783 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
13785         PR target/69432
13786         * config/i386/i386.c: Include dojump.h.
13787         (expand_small_movmem_or_setmem,
13788         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
13789         fixes.
13790         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
13791         if dynamic_check != -1.
13793 2016-01-21  Jeff Law  <law@redhat.com>
13795         PR middle-end/69347
13796         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
13797         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
13798         into dominated_by_p.
13799         (cprop_into_successor_phis): Avoid unnecessary tests.
13801 2016-01-22  Richard Henderson  <rth@redhat.com>
13803         PR target/69416
13804         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
13805         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
13807 2016-01-22  Michael Matz  <matz@suse.de>
13809         * system.h (string, algorithm): Include only conditionally.
13810         (new): Include always under C++.
13811         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
13812         * final.c (toplevel): Ditto.
13813         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
13814         * genconditions.c (write_header): Make gencondmd.c define
13815         INCLUDE_STRING.
13816         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
13818         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
13819         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
13821 2016-01-22  Christian Bruel  <christian.bruel@st.com>
13823         PR target/68674
13824         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
13826 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13828         PR target/69403
13829         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
13830         define_insn_and_split.  Ensure operands[1] and operands[0] do not
13831         get assigned the same register.
13833 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
13835         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
13837 2016-01-22  Christian Bruel  <christian.bruel@st.com>
13839         * config/arm/arm-c.c (arm_pragma_target_parse):
13840         Remove warn_builtin_macro_redefined overwrite.
13842 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
13844         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
13845         flag_non_call_exceptions compatibility.
13847 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
13849         PR debug/66668
13850         * dwarf2out.c (add_child_die_after): New function.
13851         (dwarf_qual_info_t): New type.
13852         (dwarf_qual_info): New variable.
13853         (qualified_die_p): New function.
13854         (modified_type_die): For -fdebug-types-section, ensure
13855         canonical order of qualifiers.  Put qualified DIEs adjacent
13856         to the corresponding non-qualified type DIE and search there
13857         for existing qualified DIEs.
13859 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
13861         * doc/extend.texi (scalar_storage_order type attribute): Document
13862         restriction on type punning and aliasing, and remove future tense.
13864 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
13866         PR target/69252
13867         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
13868         first stage.
13870 2016-01-21  Jeff Law  <law@redhat.com>
13872         PR middle-end/69347
13873         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
13874         useless call to record_temporary_equivalences.
13875         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
13876         allocate 10 slots in the bb_path vector and let it grow as needed.
13877         (fsm_find_control_statement_thread_paths): Similarly for the next_path
13878         vector.
13880 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
13882         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
13883         Detangle.
13884         * configure: Regenerate.
13886 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
13888         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
13889         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
13891 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
13893         PR middle-end/66178
13894         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
13895         drop EXPAND_INITIALIZER.
13896         * rtl.h (contains_symbolic_reference_p): Declare.
13897         * rtlanal.c (contains_symbolic_reference_p): New function.
13898         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
13899         a subtraction into a NOT if symbolic constants are involved.
13901 2016-01-21  Anton Blanchard  <anton@samba.org>
13902             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13904         PR target/63354
13905         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
13906         #define.
13907         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
13908         function.
13910 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
13912         * config/microblaze/microblaze.c
13913         (get_branch_target): New.
13914         (insert_wic_for_ilb_runout): New.
13915         (insert_wic): New.
13916         (microblaze_machine_dependent_reorg): New.
13917         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
13918         * config/microblaze/microblaze.md
13919         (UNSPEC_IPREFETCH): Define.
13920         (iprefetch): New pattern
13921         * config/microblaze/microblaze.opt
13922         (mxl-prefetch): New flag.
13924 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
13926         * config/microblaze/microblaze.h
13927         (FIXED_REGISTERS): Update in macro.
13928         (CALL_USED_REGISTERS): Update in macro.
13930 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
13932         PR rtl-optimization/68920
13933         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
13934         moves.
13936 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
13938         PR rtl-optimization/68990
13939         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
13940         pseudo instead of inheritance ones.
13942 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13943             Nick Clifton  <nickc@redhat.com>
13945         PR target/69129
13946         PR target/69012
13947         * config/mips/mips.c (mips_compute_frame_info): Initialise
13948         args_size and hard_frame_pointer_offset fields of the frame
13949         structure before calling mips_global_pointer.
13951 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
13953         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
13954         label reference.
13955         * configure: Regenerate.
13957 2016-01-21  Richard Biener  <rguenther@suse.de>
13959         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
13961 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
13963         * config/s390/s390.c (s390_asm_declare_function_size): Add code
13964         to actually emit the .size directive.
13966 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
13967              Jakub Jelinek  <jakub@redhat.com>
13969         PR target/69187
13970         PR target/65624
13971         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
13972         args array size by one to avoid buffer overflow.
13974 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
13976         * config/s390/s390.md (pool_section_start): Use switch_to_section
13977         to select proper read-only data section instead of hardcoding
13978         .rodata.
13979         (pool_section_end): Use switch_to_section to match the above.
13981 2016-01-21  Richard Biener  <rguenther@suse.de>
13983         PR tree-optimization/69378
13984         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
13985         (set_ssa_val_to): Use it for dominance checks taking into
13986         account not executable edges.
13988 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
13990         PR c++/69355
13991         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
13992         for bitsize instead of GET_MODE_PRECISION (mode).
13994 2016-01-20  Martin Sebor  <msebor@redhat.com>
13996         PR c/52291
13997         * extend.texi (__sync Builtins): Clarify the semantics of
13998         __sync_fetch_and_OP built-ins on pointers.
13999         (__atomic Builtins): Same.
14001 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14002             Sebastian Pop  <s.pop@samsung.com>
14004         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
14005         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
14006         (is_valid_rename): Same.
14007         (translate_isl_ast_to_gimple::get_rename): Same.
14008         (translate_isl_ast_to_gimple::rename_all_uses): Same.
14009         (translate_isl_ast_to_gimple::rename_uses): Same.
14010         (get_new_name): Check for close_phi nodes.
14011         (copy_loop_phi_args): Use phi_node_kind.
14012         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
14013         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
14015 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14016             Sebastian Pop  <s.pop@samsung.com>
14018         Revert commit r229783.
14019         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
14020         Remove use of parameter_rename_map.
14021         (copy_def): Remove.
14022         (copy_internal_parameters): Remove.
14023         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
14024         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
14025         (free_sese_info): Do not free parameter_rename_map.
14026         (set_rename): Do not use parameter_rename_map.
14027         (rename_uses): Update call to set_rename.
14028         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
14029         * sese.h (parameter_rename_map_t): Remove.
14030         (struct sese_info_t): Remove field parameter_rename_map.
14032 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14033             Sebastian Pop  <s.pop@samsung.com>
14035         * graphite-isl-ast-to-gimple.c: Fix comment.
14036         * graphite-scop-detection.c (defined_in_loop_p): New.
14037         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
14038         names defined in loop.
14040 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14041             Sebastian Pop  <s.pop@samsung.com>
14043         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
14044         Discard unstructured if-then-else regions.
14046 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14047             Sebastian Pop  <s.pop@samsung.com>
14049         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
14050         (cleanup_loop_iter_dom): Remove.
14051         (build_loop_iteration_domains): Remove.
14052         (build_scop_context): Remove.
14053         (build_scop_iteration_domain): Remove.
14054         (add_loop_constraints): New.
14055         (build_iteration_domains): New.
14056         (build_poly_scop): Call build_iteration_domains.
14058 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14059             Sebastian Pop  <s.pop@samsung.com>
14061         * graphite-scop-detection.c
14062         (scop_detection::harmful_loop_in_region): Free dom and loops.
14063         (scop_detection::loop_body_is_valid_scop): Free bbs.
14065 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14066             Sebastian Pop  <s.pop@samsung.com>
14068         * graphite-scop-detection.c (record_loop_in_sese): New.
14069         (gather_bbs::before_dom_children): Call record_loop_in_sese.
14070         (build_scops): Remove call to build_sese_loop_nests.
14071         * sese.c (sese_record_loop): Remove.
14072         (build_sese_loop_nests): Remove.
14073         (new_sese_info): Remove region->loops.
14074         (free_sese_info): Same.
14075         * sese.h (sese_contains_loop): Same.
14076         (build_sese_loop_nests): Remove.
14077         (sese_contains_loop): Remove.
14079 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14080             Sebastian Pop  <s.pop@samsung.com>
14082         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
14083         loop_is_valid_in_scop.
14084         (scop_detection::harmful_stmt_in_region): Renamed
14085         harmful_loop_in_region.
14086         Call loop_is_valid_in_scop.
14088 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14089             Sebastian Pop  <s.pop@samsung.com>
14091         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
14092         isl_ast_node_mark.
14094 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14095             Sebastian Pop  <s.pop@samsung.com>
14097         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
14098         * graphite.h (struct poly_bb): Remove field is_reduction.
14099         (PBB_IS_REDUCTION): Remove.
14101 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
14102             Sebastian Pop  <s.pop@samsung.com>
14104         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
14105         (add_pdr_constraints): Same.
14106         (scop_get_reads): Same.
14107         (scop_get_must_writes): Same.
14108         (scop_get_may_writes): Same.
14109         (scop_get_original_schedule): Same.
14110         (extend_schedule): Same.
14111         (apply_schedule_on_deps): Same.
14112         (carries_deps): Same.
14113         (compute_deps): Same.
14114         (scop_get_dependences): Same.
14115         * graphite-isl-ast-to-gimple.c
14116         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
14117         * graphite-optimize-isl.c (get_schedule_for_band): Same.
14118         (get_schedule_for_band_list): Same.
14119         (get_schedule_map): Same.
14120         (apply_schedule_map_to_scop): Same.
14121         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
14122         (build_loop_iteration_domains): Same.
14123         (add_condition_to_pbb): Same.
14124         (add_param_constraints): Same.
14125         (pdr_add_memory_accesses): Same.
14126         (pdr_add_data_dimensions): Same.
14128 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
14130         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
14131         requirements.
14133 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
14135         * common.opt (feliminate-dwarf2-dups): Replace references to
14136         "DWARF 2" with just "DWARF".
14137         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
14138         * doc/extend.texi: Likewise.
14139         * doc/cpp.texi: Likewise.
14140         * doc/invoke.texi: Likewise.
14141         (Option Summary): Add -gdwarf to list of Debugging Options.
14142         (Debugging Options): Document -gdwarf.
14143         * doc/contrib.texi: Spell "DWARF" like that.
14145 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
14147         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
14148         warning.  Fix up formatting.
14150         PR middle-end/67653
14151         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
14152         attempt to mark memory input operand addressable and
14153         call prepare_gimple_addressable in that case.  Don't adjust
14154         input_location for diagnostics, use error_at instead.
14156 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
14158         * config/rs6000/ppc-auxv.h: New file.
14159         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
14160         (cpu_is): Likewise.
14161         (cpu_supports): Likewise.
14162         * config/rs6000/rs6000.c: include "ppc-auxv.h".
14163         (cpu_is_info): New variable.
14164         (cpu_supports_info): Likewise.
14165         (tcb_verification_symbol): Likewise.
14166         (cpu_builtin_p): Likewise.
14167         (cpu_expand_builtin): New function.
14168         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
14169         (rs6000_init_builtins): Likewise.
14170         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
14171         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
14172         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
14173         * configure: Regenerate.
14174         * config.in: Likewise.
14175         * doc/extend.texi (PowerPC Built-in Functions): Document
14176         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
14178 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
14180         PR target/68609
14181         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
14182         domain check.
14183         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
14184         for V4SFmode.
14186 2016-01-20  Richard Henderson  <rth@redhat.com>
14188         PR bootstrap/69343
14189         PR bootstrap/69339
14190         PR tree-opt/68964
14191         Revert:
14192         * tree.c (tm_define_builtin): New.
14193         (find_tm_vector_type): New.
14194         (build_tm_vector_builtins): New.
14195         (build_common_builtin_nodes): Call it.
14197 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
14199         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
14200         (arm_fp_ok): Likewise.
14201         (arm_fp): Likewise.
14202         (arm_crypto): Likewise.
14204 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
14205             Richard Biener  <rguenther@suse.de>
14207         PR tree-optimization/69328
14208         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
14209         vectors have same number of elements.
14210         (vectorizable_condition): Fix masked version recognition.
14212 2016-01-20  Richard Biener  <rguenther@suse.de>
14214         PR tree-optimization/69345
14215         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
14216         (VN_INFO_PTR_INFO): Likewise.
14217         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
14218         info when it is equal between non-dominating SSA names.
14219         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14220         Make sure to look at original SSA infos.
14222 2016-01-20  Jeff Law  <law@redhat.com>
14224         PR target/25114
14225         * config/m68k/predicates.md (pow2_m1_operand): New predicate
14226         extracted from ...
14227         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
14228         (pc_or_label_operand): New predicate.
14229         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
14230         tests for small integers that are 2^n - 1.
14232 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
14234         * doc/invoke.texi (Options Summary): Add '.' after @xref.
14236 2016-01-19  Jeff Law  <law@redhat.com>
14238         PR middle-end/69347
14239         * tree-ssa-threadbackwards.c
14240         (fsm_find_control_statement_thread_paths): Do not try to lookup
14241         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
14243 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
14245         * doc/lto.texi: Remove text that says only Gold has linker plugin
14246         support.
14248 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
14250         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
14251         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
14252         the DIE accordingly.
14253         (modified_type_die): Add REVERSE parameter and pass it recursively,
14254         as well as to base_type_die.  Adjust presence check accordingly.
14255         (base_type_for_mode): Adjust call to modified_type_die.
14256         (add_type_attribute): Add REVERSE parameter and pass it to
14257         modified_type_die.
14258         (generic_parameter_die): Adjust call to add_type_attribute.
14259         (add_scalar_info): Likewise.
14260         (add_subscript_info): Likewise.
14261         (gen_array_type_die): Likewise.
14262         (gen_descr_array_type_die): Likewise.
14263         (gen_entry_point_die): Likewise.
14264         (gen_enumeration_type_die): Likewise.
14265         (gen_formal_parameter_die): Likewise.
14266         (gen_subprogram_die): Likewise.
14267         (gen_variable_die ): Likewise.
14268         (gen_const_die): Likewise.
14269         (gen_field_die): Likewise.
14270         (gen_pointer_type_die): Likewise.
14271         (gen_reference_type_die): Likewise.
14272         (gen_ptr_to_mbr_type_die): Likewise.
14273         (gen_inheritance_die): Likewise.
14274         (gen_subroutine_type_die): Likewise.
14275         (gen_typedef_die): Likewise.
14276         (force_type_die): Adjust call to modified_type_die.
14278 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
14280         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
14281         flow throughout the file.  Fix broken link to Objective-C 2.0
14282         documentation.
14283         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
14284         errors.
14286 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14288         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
14290 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14292         PR ipa/66223
14293         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
14294         (maybe_record_node): Record cxa_pure_virtual as the only possible
14295         target if there are not ohter candidates.
14296         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
14298 2016-01-19  Richard Biener  <rguenther@suse.de>
14300         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
14301         (get_memory_order): Likewise.
14303 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
14305         * tree-vect-stmts.c (vectorizable_store): Check
14306         rhs vectype.
14308 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
14310         PR jit/68446
14311         * gcc.c (driver::decode_argv): Add call to
14312         init_opts_obstack before init_options_struct.
14313         * opts.c (init_opts_obstack): Remove idempotency.
14314         (init_options_struct): Replace call to init_opts_obstack
14315         with a gcc_assert to verify that it has already been called.
14316         * toplev.c (toplev::main): Add call to init_opts_obstack before
14317         calls to init_options_struct.
14318         (toplev::finalize): Move cleanup of opts_obstack next to
14319         cleanup of save_decoded_options, clearing the latter, and
14320         save_decoded_options_count.
14322 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14324         PR target/69135
14325         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
14326         attribute to unconditional.  Remove %? from output template.
14328 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14329             Jiong Wang  <jiong.wang@arm.com>
14331         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
14332         generated from different expand order.
14334 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14336         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
14337         Add support for CCMP costing.
14339 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14341         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
14342         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
14343         (fccmpe<mode>): Likewise.
14344         (fcmp): Rename to fcmp and globalize pattern.
14345         (fcmpe): Likewise.
14346         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
14347         (aarch64_gen_ccmp_next): Add FP support.
14349 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14351         * target.def (gen_ccmp_first): Update documentation.
14352         (gen_ccmp_next): Likewise.
14353         * doc/tm.texi (gen_ccmp_first): Update documentation.
14354         (gen_ccmp_next): Likewise.
14355         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
14356         expand_ccmp_expr_1.  Improve comments.
14357         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
14358         (ccmp_ior<mode>): Remove pattern.
14359         (cmp<mode>): Remove expand.
14360         (cmp): Globalize pattern.
14361         (cstorecc4): Use cc_register.
14362         (mov<mode>cc): Remove ccmp_cc_register check.
14363         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
14364         Simplify after removal of CC_DNE/* modes.
14365         (aarch64_ccmp_mode_to_code): Remove.
14366         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
14367         In 'k' case use integer as condition.
14368         (aarch64_nzcv_codes): Remove inverted cases.
14369         (aarch64_code_to_ccmode): Remove.
14370         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
14371         comparison with CC register to be used in folowing CCMP/branch/CSEL.
14372         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
14373         pattern.  Return the comparison with CC register.  Invert conditions
14374         when bitcode is OR.
14375         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
14376         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
14378 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14380         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
14381         instrumented_version.
14383 2016-01-19  Richard Biener  <rguenther@suse.de>
14385         PR tree-optimization/69336
14386         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
14387         handled components with get_ref_base_and_extent.
14388         (equal_mem_array_ref_p): Adjust.
14390 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
14392         PR debug/65779
14393         * shrink-wrap.c: Include valtrack.h.
14394         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
14395         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
14396         in between insn and where it will be moved to.  Call
14397         dead_debug_insert_temp.
14398         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
14399         first and dead_debug_local_finish at the end.
14400         For uses and defs bitmap, handle all regs in between REGNO and
14401         END_REGNO, not just the first one.
14403 2016-01-19  Richard Biener  <rguenther@suse.de>
14405         PR tree-optimization/69352
14406         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
14407         (equal_mem_array_ref_p): Constrain size and max size properly.
14408         Compare the reverse flag.
14410 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
14412         * ira.c (ira): Update regstat data if we deleted insns.
14414 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
14416         PR rtl-optimization/68955
14417         PR rtl-optimization/64557
14418         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
14419         here.  Fix up formatting.
14420         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
14422 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14424         PR lto/69133
14425         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
14426         assume that the node has body.
14427         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
14428         check.
14430 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14432         * lto-streamer-out.c (lto_output): Do not stream instrumentation
14433         thunks.
14435 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14437         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
14438         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
14440 2016-01-19  Martin Jambor  <mjambor@suse.cz>
14441             Martin Liska  <mliska@suse.cz>
14442             Michael Matz  <matz@suse.de>
14444         * Makefile.in (OBJS): Add new source files.
14445         (GTFILES): Add hsa.c.
14446         * common.opt (disable_hsa): New variable.
14447         (-Whsa): New warning.
14448         * config.in (ENABLE_HSA): New.
14449         * configure.ac: Treat hsa differently from other accelerators.
14450         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
14451         $enable_offloading.
14452         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
14453         * doc/install.texi (Configuration): Document --with-hsa-runtime,
14454         --with-hsa-runtime-include, --with-hsa-runtime-lib and
14455         --with-hsa-kmt-lib.
14456         * doc/invoke.texi (-Whsa): Document.
14457         (hsa-gen-debug-stores): Likewise.
14458         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
14459         to invoke offload compiler for hsa acclerator.
14460         * opts.c (common_handle_option): Determine whether HSA offloading
14461         should be performed.
14462         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
14463         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
14464         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
14465         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
14466         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
14467         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
14468         GF_OMP_FOR_KIND_GRID_LOOP.
14469         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
14470         (pp_gimple_stmt_1): Likewise.
14471         * gimple-walk.c (walk_gimple_stmt): Likewise.
14472         * gimple.c (gimple_build_omp_grid_body): New function.
14473         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
14474         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
14475         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
14476         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
14477         GF_OMP_TEAMS_GRID_PHONY.
14478         (gimple_statement_omp_single_layout): Updated comments.
14479         (gimple_build_omp_grid_body): New function.
14480         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
14481         (gimple_omp_for_grid_phony): New function.
14482         (gimple_omp_for_set_grid_phony): Likewise.
14483         (gimple_omp_parallel_grid_phony): Likewise.
14484         (gimple_omp_parallel_set_grid_phony): Likewise.
14485         (gimple_omp_teams_grid_phony): Likewise.
14486         (gimple_omp_teams_set_grid_phony): Likewise.
14487         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
14488         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
14489         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
14490         (BUILT_IN_GOMP_TARGET): Updated type.
14491         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
14492         (adjust_for_condition): New function.
14493         (get_omp_for_step_from_incr): Likewise.
14494         (extract_omp_for_data): Moved parts to adjust_for_condition and
14495         get_omp_for_step_from_incr.
14496         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
14497         (fixup_child_record_type): Bail out if receiver_decl is NULL.
14498         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
14499         (scan_omp_parallel): Do not create child functions for phony
14500         constructs.
14501         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
14502         (scan_omp_1_op): Checking assert we are not remapping to
14503         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
14504         (parallel_needs_hsa_kernel_p): New function.
14505         (expand_parallel_call): Register apprpriate parallel child
14506         functions as HSA kernels.
14507         (grid_launch_attributes_trees): New type.
14508         (grid_attr_trees): New variable.
14509         (grid_create_kernel_launch_attr_types): New function.
14510         (grid_insert_store_range_dim): Likewise.
14511         (grid_get_kernel_launch_attributes): Likewise.
14512         (get_target_argument_identifier_1): Likewise.
14513         (get_target_argument_identifier): Likewise.
14514         (get_target_argument_value): Likewise.
14515         (push_target_argument_according_to_value): Likewise.
14516         (get_target_arguments): Likewise.
14517         (expand_omp_target): Call get_target_arguments instead of looking
14518         up for teams and thread limit.
14519         (grid_expand_omp_for_loop): New function.
14520         (grid_arg_decl_map): New type.
14521         (grid_remap_kernel_arg_accesses): New function.
14522         (grid_expand_target_kernel_body): New function.
14523         (expand_omp): Call it.
14524         (lower_omp_for): Do not emit phony constructs.
14525         (lower_omp_taskreg): Do not emit phony constructs but create for them
14526         a temporary variable receiver_decl.
14527         (lower_omp_taskreg): Do not emit phony constructs.
14528         (lower_omp_teams): Likewise.
14529         (lower_omp_grid_body): New function.
14530         (lower_omp_1): Call it.
14531         (grid_reg_assignment_to_local_var_p): New function.
14532         (grid_seq_only_contains_local_assignments): Likewise.
14533         (grid_find_single_omp_among_assignments_1): Likewise.
14534         (grid_find_single_omp_among_assignments): Likewise.
14535         (grid_find_ungridifiable_statement): Likewise.
14536         (grid_target_follows_gridifiable_pattern): Likewise.
14537         (grid_remap_prebody_decls): Likewise.
14538         (grid_copy_leading_local_assignments): Likewise.
14539         (grid_process_kernel_body_copy): Likewise.
14540         (grid_attempt_target_gridification): Likewise.
14541         (grid_gridify_all_targets_stmt): Likewise.
14542         (grid_gridify_all_targets): Likewise.
14543         (execute_lower_omp): Call grid_gridify_all_targets.
14544         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
14545         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
14546         (tree_omp_clause): Added union field dimension.
14547         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
14548         * tree.c (omp_clause_num_ops): Added number of arguments of
14549         OMP_CLAUSE__GRIDDIM_.
14550         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
14551         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
14552         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
14553         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
14554         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
14555         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
14556         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
14557         * tree-pass.h (make_pass_gen_hsail): Declare.
14558         (make_pass_ipa_hsa): Likewise.
14559         * ipa-hsa.c: New file.
14560         * lto-section-in.c (lto_section_name): Add hsa section name.
14561         * lto-streamer.h (lto_section_type): Add hsa section.
14562         * timevar.def (TV_IPA_HSA): New.
14563         * hsa-brig-format.h: New file.
14564         * hsa-brig.c: New file.
14565         * hsa-dump.c: Likewise.
14566         * hsa-gen.c: Likewise.
14567         * hsa.c: Likewise.
14568         * hsa.h: Likewise.
14569         * toplev.c (compile_file): Call hsa_output_brig.
14570         * hsa-regalloc.c: New file.
14572 2016-01-18  Jeff Law  <law@redhat.com>
14574         PR tree-optimization/69320
14575         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
14576         ranged object, do nothing if the RHS constant is not [0..1].
14577         (optimize_stmt): Comparing a boolean ranged object against a
14578         constant outside [0..1] results in a compile-time constant.
14580         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
14581         test.
14583 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
14585         * doc/invoke.texi (Invoking GCC): Add new section to menu.
14586         (Option Summary): Update to reflect new section and moved options.
14587         (C++ Dialect Options): Move -fstats to new section.
14588         (Debugging Options): Move all dump, statistics, and other GCC
14589         developer options to new section.  Rewrite section introduction
14590         and re-order remaining options to put the more basic ones first.
14591         (Optimization Options): Move -fira-verbose and -flto-report* to
14592         new section.
14593         (Developer Options): New section incorporating moved options.
14594         * doc/cppopts.texi (-dM): Update cross-reference.
14596 2016-01-18  Richard Henderson  <rth@redhat.com>
14598         PR target/69176
14599         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
14600         operands to pseudo only if CSE is expected.  Split long immediate
14601         operands only after reload, and for the stack pointer.
14602         (*add<GPI>3_pluslong): Remove.
14603         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
14604         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
14605         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
14606         (*add<GPI>3 peepholes): New.
14607         (*add<GPI>3 splitters): New.
14608         * config/aarch64/constraints.md (Upl): New.
14609         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
14611 2016-01-18  Richard Biener  <rguenther@suse.de>
14613         PR tree-optimization/69297
14614         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
14615         stmt at most once.
14616         (vect_bb_vectorization_profitable_p): Clear visited flag again.
14618 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
14620         PR middle-end/68542
14621         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
14622         of mixind vector and scalar types.
14623         (fold_relational_const): Add handling of vector
14624         comparison with boolean result.
14625         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
14626         comparison of vector operands with boolean result for EQ/NE only.
14627         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
14628         (verify_gimple_cond): Likewise.
14629         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
14630         valid type of VAL.
14632 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
14634         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
14635         !TARGET_OCTEON.
14637 2016-01-18  Richard Biener  <rguenther@suse.de>
14639         PR middle-end/69308
14640         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
14642 2016-01-18  Tom de Vries  <tom@codesourcery.com>
14644         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
14646 2016-01-18  Tom de Vries  <tom@codesourcery.com>
14648         * omp-low.c (set_oacc_fn_attrib): Make extern.
14649         * omp-low.h (set_oacc_fn_attrib): Declare.
14650         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
14651         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
14652         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
14653         Add and handle function parameter oacc_kernels_p.
14654         (find_reduc_addr, get_omp_data_i_param): New function.
14655         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
14656         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
14657         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
14658         Calculate dominance info.  Skip loops that are not in a kernels region
14659         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
14660         (pass_parallelize_loops::execute): Call parallelize_loops with
14661         oacc_kernels_p argument.
14662         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
14663         New member function.
14664         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
14665         * passes.def: Add argument to pass_parallelize_loops instantation.
14667 2016-01-18  Tom de Vries  <tom@codesourcery.com>
14669         * tree-parloops.c (pass_parallelize_loops::execute): Allow
14670         pass_parallelize_loops to be run outside the loop pipeline.
14672 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
14674         * tree-scalar-evolution.c (follow_copies_to_constant): New.
14675         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
14677 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
14679         PR target/63679
14680         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
14681         using get_ref_base_and_extent.
14682         (equal_mem_array_ref_p): New.
14683         (hashable_expr_equal_p): Add call to previous.
14685 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
14687         PR target/63679
14688         * tree-sra.c (disqualified_constants, constant_decl_p): New.
14689         (sra_initialize): Allocate disqualified_constants.
14690         (sra_deinitialize): Free disqualified_constants.
14691         (disqualify_candidate): Update disqualified_constants when appropriate.
14692         (create_access): Scan for constant-pool entries as we go along.
14693         (scalarizable_type_p): Add check against type_contains_placeholder_p.
14694         (maybe_add_sra_candidate): Allow constant-pool entries.
14695         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
14696         (initialize_constant_pool_replacements): New.
14697         (sra_modify_assign): Avoid mangling assignments created by previous,
14698         and don't generate writes into constant pool.
14699         (sra_modify_function_body): Call initialize_constant_pool_replacements.
14701 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
14703         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
14704         andnot instruction.
14705         (scalar_chain::convert_op): Likewise.
14706         * config/i386/i386.md (*andndi3_doubleword): New.
14708 2016-01-18  Richard Biener  <rguenther@suse.de>
14710         PR tree-optimization/69170
14711         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
14712         building a vector from scalar results of a pattern stmt.
14714 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
14716         * haifa-sched.c (autopref_multipass_init): Work around
14717         -Wmaybe-uninitialized warning.
14719 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14721         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
14722         against the constant 0.
14724 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14726         PR tree-optimization/68799
14727         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
14728         look up phi candidates in the statement-candidate map.
14729         (phi_add_costs): Likewise.
14730         (record_phi_increments): Likewise.
14731         (phi_incr_cost): Likewise.
14732         (ncd_with_phi): Likewise.
14733         (all_phi_incrs_profitable): Likewise.
14735 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
14737         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
14738         -Wmaybe-uninitialized warning.
14740 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
14742         * doc/invoke.texi (Invoking GCC): Add new section to menu.
14743         (Option Summary): Update to reflect new section and moved options.
14744         (C++ Dialect Options): Move -fvtable-verify and related options.
14745         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
14746         and profiling-related options.
14747         (Optimization Options): Move profile generation options and
14748         -fstack-protector and related options.
14749         (Instrumentation Options): New section incorporating moved options.
14750         (Code Generation Options): Move -finstrument-functions and
14751         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
14753 2016-01-16  Tom de Vries  <tom@codesourcery.com>
14755         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
14757 2016-01-16  Tom de Vries  <tom@codesourcery.com>
14759         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
14761 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
14763         * hash-table.h (hash_table::empty): Turn into an inline wrapper
14764         that checks whether the table is already empty.  Rename the
14765         original implementation to...
14766         (hash_table::empty_slot): ...this new private function.
14768 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
14770         PR diagnostic/68899
14771         * diagnostic-show-locus.c (layout::print_source_line): Move x
14772         offset of line until after call to
14773         get_line_width_without_trailing_whitespace.
14775 2016-01-15  Jeff Law  <law@redhat.com>
14777         PR tree-optimization/69270
14778         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
14779         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
14780         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
14781         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
14782         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
14783         ssa_name_has_boolean_range and constant_boolean_node.
14785 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
14787         PR rtl-optimization/69030
14788         * lra-spills.c (remove_pseudos): Check nrefs and make the function
14789         returning bool.
14790         (spill_pseudos): Delete debug insn for dead pseudo.
14791         (lra_spill): Initiate spill_hard_reg and slots memory separately.
14793 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
14795         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
14796         New.
14797         (TYPES_UNOPUS): Likewise.
14798         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
14799         builtin type, from UNOP to UNOPUS.
14800         (lbtruncuv4sf): Likewise.
14801         (lbtruncuv2df): Likewise.
14802         (lrounduv2sf): Likewise.
14803         (lrounduv4sf): Likewise.
14804         (lrounduv2df): Likewise.
14805         (lroundusf): Likewise.
14806         (lroundusf): Likewise.
14807         (lceiluv2sf): Likewise.
14808         (lceiluv4sf): Likewise.
14809         (lceiluv2df): Likewise.
14810         (lceilusf): Likewise.
14811         (lceiludf): Likewise.
14812         (lflooruv2sf): Likewise.
14813         (lflooruv4sf): Likewise.
14814         (lflooruv2df): Likewise.
14815         (lfloorusf): Likewise.
14816         (lfloorudf): Likewise.
14817         (lfrintnuv2sf): Likewise.
14818         (lfrintnuv4sf): Likewise.
14819         (lfrintnuv2df): Likewise.
14820         (lfrintnusf): Likewise.
14821         (lfrintnudf): Likewise.
14822         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
14823         conversion.
14824         (vcvtq_u32_f32): Likewise.
14825         (vcvtq_u64_f64): Likewise.
14826         (vcvta_u32_f32): Likewise.
14827         (vcvtaq_u32_f32): Likewise.
14828         (vcvtaq_u64_f64): Likewise.
14829         (vcvtm_u32_f32): Likewise.
14830         (vcvtmq_u32_f32): Likewise.
14831         (vcvtmq_u64_f64): Likewise.
14832         (vcvtn_u32_f32): Likwise.
14833         (vcvtnq_u32_f32): Likewise.
14834         (vcvtnq_u64_f64): Likewise.
14835         (vcvtp_u32_f32): Likewise.
14836         (vcvtpq_u32_f32): Likewise.
14837         (vcvtpq_u64_f64): Likewise.
14838         (vcvtmd_u64_f64): Likewise.
14839         (vcvtms_u32_f32): Likewise.
14840         (vcvtad_u64_f64): Likewise.
14841         (vcvtas_u32_f32): Likewise.
14842         (vcvtnd_u64_f64): Likewise.
14843         (vcvtns_u32_f32): Likewise.
14844         (vcvtpd_u64_f64): Likewise.
14845         (vcvtps_u32_f32): Likewise.
14847 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14849         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
14850         CSEL of zero_extended registers.
14852 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14854         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
14855         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
14857 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14859         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
14860         false when argument string is not found in the attributes table
14861         at all.
14863 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
14865         PR target/68609
14866         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
14867         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
14868         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
14869         precision estimate.
14871 2016-01-15  Richard Biener  <rguenther@suse.de>
14873         PR tree-optimization/66856
14874         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
14875         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
14876         (vect_create_new_slp_node): Increment stmt reference count.
14877         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
14878         an SLP tree before swapping operands.
14879         (vect_build_slp_tree): Likewise.
14880         (destroy_bb_vec_info): Free stmt info after SLP instances.
14881         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
14882         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
14883         (STMT_VINFO_NUM_SLP_USES): New macro.
14885 2016-01-15  Richard Biener  <rguenther@suse.de>
14887         PR debug/69137
14888         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
14889         (add_linkage_name): ... here.
14890         (gen_typedef_die): Use add_linkage_name_raw instead of
14891         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
14892         if necessary.
14894 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
14896         * gimplify.c (oacc_default_clause): Decode reference and pointer
14897         types for both kernels and parallel regions.
14899 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
14901         PR middle-end/69246
14902         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
14904 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
14906         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
14907         (convert_scalars_to_vector): Likewise.
14909 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
14911         * doc/extend.texi (Type Traits): Fix grammar.
14913 2016-01-15  Martin Jambor  <mjambor@suse.cz>
14915         * tree-inline.c (remap_decl): Use existing dclarations if
14916         remapping a type and prevent_decl_creation_for_types.
14917         (replace_locals_stmt): Do an initial remapping of non-VLA typed
14918         decls first.  Do real remapping with
14919         prevent_decl_creation_for_types set.
14920         * tree-inline.h (copy_body_data): New field
14921         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
14922         padding.
14924 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14926         * config/s390/s390.opt (mmvcle): More verbose help text.
14928 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14930         * config/s390/s390.opt: Add period to -mzvector option text.
14932 2016-01-15  Richard Biener  <rguenther@suse.de>
14934         PR tree-optimization/68961
14935         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
14936         of invariants in stores again.
14938 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14940         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
14942 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
14944         * config/i386/i386.c (ix86_expand_branch): Don't split
14945         DI mode xor instruction to SI mode.
14947 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
14949         PR ipa/68148
14950         * ipa-icf.c (sem_function::merge): Virtual functions may become
14951         reachable even if they address is not taken and there are no
14952         idrect calls.
14954 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
14956         * lto-streamer-out.c (subtract_estimated_size): New function.
14957         (get_symbol_initial_value): Use it.
14959 2016-01-15  Christian Bruel  <christian.bruel@st.com>
14961         PR target/65837
14962         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
14963         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
14964         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
14965         use add_builtin_function_ext_scope instead of add_builtin_function.
14966         (neon_set_p, neon_crypto_set_p): Remove.
14967         (arm_init_builtins): Always call arm_init_neon_builtins and
14968         arm_init_crypto_builtins.
14969         (arm_expand_builtin): Check that builtins are allowed for the arch.
14970         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
14971         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
14972         arm_init_neon_builtins call.
14974 2016-01-15  Richard Biener  <rguenther@suse.de>
14976         PR tree-optimization/69117
14977         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
14978         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
14979         of the leader conservatively.
14980         (free_scc_vn): Restore original SSA name infos.
14982 2016-01-14  Jeff Law  <law@redhat.com>
14984         PR tree-optimization/69270
14985         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
14986         single bit of precision, verify it's also unsigned.
14987         (record_edge_info): Use constant_boolean_node rather than fold_convert
14988         to convert boolean_true/boolean_false to the right type.
14990 2016-01-14  Richard Henderson  <rth@redhat.com>
14992         PR rtl-opt/69014
14993         * loop-doloop.c (record_reg_sets): New.
14994         (doloop_optimize): Reject the transform if the sequence
14995         clobbers registers live at the end of the loop block.
14996         (doloop_optimize_loops): Enable df_live if needed.
14998 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15000         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
15001         * config/rs6000/rs6000.c: Likewise.
15002         * config/rs6000/rs6000.h: Likewise.
15003         * config/rs6000/rs6000.md: Likewise.
15004         * doc/extend.texi: Likewsie.
15006 2016-01-14  Jeff Law  <law@redhat.com>
15008         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
15009         typo.
15011 2016-01-14  Richard Henderson  <rth@redhat.com>
15013         PR c/69272
15014         PR tree-opt/68964
15015         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
15016         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
15017         instead of builtin_decl_declared_p to test for declaration.
15019 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
15021         * doc/loop.texi (Loop Analysis and Representation): Document
15022         loop_depth function.
15024 2016-01-14  Tom de Vries  <tom@codesourcery.com>
15026         PR tree-optimization/68773
15027         * omp-low.c (expand_omp_target): Don't set force_output.
15028         * varpool.c (varpool_node::get_create): Same.
15029         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
15030         offload_funcs with force_output.
15032 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
15034         PR debug/69244
15035         * lra-eliminations.c (move_plus_up): Don't change anything if either
15036         the outer or inner subreg mode is not MODE_INT.
15037         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
15038         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
15040 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
15042         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
15043         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
15044         reduc_uplus_@var{m}): Remove.
15045         * expr.c (expand_expr_real_2): Remove expansion path for
15046         reduc_[us](min|max|plus) optabs.
15047         * optabs-tree.c (scalar_reduc_to_vector): Remove.
15048         * optabs-tree.h (scalar_reduc_to_vector): Remove.
15049         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
15050         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
15051         * tree-vect-loop.c (vectorizable_reduction): Remove test for
15052         reduc_[us](min|max|plus) optabs.
15054 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
15056         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
15057         (reduc_plus_scal_v2sf): New.
15058         (reduc_smax_v2sf): Rename to...
15059         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
15060         (reduc_smin_v2sf): Rename to...
15061         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
15063 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
15065         * alias.c (compare_base_symbol_refs): New function.
15066         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
15067         it.
15069 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
15071         PR middle-end/68146
15072         PR tree-optimization/69155
15073         * tree-complex.c: Include cfganal.h.
15074         (phis_to_revisit): New variable.
15075         (extract_component): Add phiarg_p argument.  Assert that returned
15076         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
15077         (update_phi_components): Partly rewrite to use loop over real/imag
15078         components instead of code duplication.  If extract_component returns
15079         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
15080         create_tmp_reg into the PHI node instead, and mention the phi triplet
15081         in phis_to_revisit.
15082         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
15083         in phis_to_revisit at the end.
15085 2016-01-14  Richard Biener  <rguenther@suse.de>
15087         PR tree-optimization/68060
15088         * tree-vect-loop.c (vect_is_simple_reduction): Check the
15089         outer loop reduction is only used in the inner loop before
15090         detecting a double reduction.
15092 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
15094         PR target/68269
15095         * combine.c (expand_field_assignment): Punt if compute_mode is
15096         unsupported scalar mode.
15098 2016-01-14  Richard Biener  <rguenther@suse.de>
15100         PR tree-optimization/66856
15101         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
15102         SLP node only if it built successfully.
15103         (vect_analyze_slp_instance): Adjust.
15105 2016-01-14  Jeff Law  <law@redhat.com>
15107         PR tree-optimization/69270
15108         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
15109         (record_edge_info): Use it.  Convert boolean_{true,false}_node
15110         to the type of op0.
15112 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
15114         PR ipa/66487
15115         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
15116         use block_ultimate_origin
15117         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
15119 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
15121         * doc/invoke.texi (Submodel Options): Rename section to
15122         "Machine-Dependent Options" to better reflect its content.
15123         Rewrite introductory text to remove archaic CPU names.
15124         Update references.
15126 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
15128         * doc/invoke.texi (Code Gen Options): Move section up in file,
15129         before target-specific options.  Update menu and option summary
15130         to reflect the new section ordering.
15132 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
15134         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
15135         (C++ Dialect Options): Add cross-reference to -std option.
15136         * doc/standards.texi (C++ Language): Document C++14 support.
15138 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15140         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
15141         for pack/unpack functions for __ibm128.
15142         (PACK_IF): Likewise.
15143         (UNPACK_IF): Likewise.
15145         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
15146         support for __ibm128 pack/unpack functions.
15147         (rs6000_invalid_builtin): Likewise.
15148         (rs6000_init_builtins): Likewise.
15149         (rs6000_opt_masks): Likewise.
15151         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
15152         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
15153         functions
15154         (RS6000_BTM_COMMON): Likewise.
15156         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
15157         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
15158         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
15159         128-bit floating point.  Add support for the double values to be
15160         in Altivec registers for TF/IF packing and unpacking, but restrict
15161         TD packing sub-fields to be FPR registers.  Don't allow overlapped
15162         register support for packing.  Allow pack inputs to be memory
15163         locations.  Don't build generator functions for unpack<mode>_dm
15164         and unpack<mode>_nodm.
15165         (unpack<mode>_dm): Likewise.
15166         (unpack<mode>_nodm): Likewise.
15167         (pack<mode>): Likewise.
15169         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
15170         built-in functions to pack/unpack explicit __ibm128 values.
15171         (__builtin_unpack_ibm128): Likewise.
15173         * doc/extend.texi (PowerPC Built-in Functions): Document
15174         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
15176 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
15178         PR c/66208
15179         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
15180         Add new arg loc and pass it down as context.
15181         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
15182         to the location to use for the warning.
15183         (check_function_arguments): New arg loc.  All callers changed.  Pass
15184         it to check_function_nonnull.
15185         * c-common.h (check_function_arguments): Adjust declaration.
15187 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
15189         PR tree-optimization/69156
15190         * gimple.c (validate_type): Removed.
15191         (gimple_builtin_call_types_compatible_p): Use
15192         useless_type_conversion_p instead of validate_type.
15193         * value-prof.c (gimple_stringop_fixed_value): Fold
15194         icall_size to correct type.
15196 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
15198         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
15199         effects.
15201 2016-01-13  Richard Henderson  <rth@redhat.com>
15203         PR tree-opt/68964
15204         * target.def (builtin_tm_load, builtin_tm_store): Remove.
15205         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
15206         (ix86_builtin_tm_store): Remove.
15207         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
15208         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
15209         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
15210         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
15211         * doc/tm.texi: Rebuild.
15213         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
15214         (BUILT_IN_TM_MEMCPY_RTWN): New.
15215         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
15216         fallback from vector to integer helpers.
15217         (build_tm_load): Handle vector types directly, instead of
15218         via target hook.
15219         (build_tm_store): Likewise.
15220         (expand_assign_tm): Prepare for register types not handled by
15221         the above.  Copy them to memory and use memcpy.
15222         * tree.c (tm_define_builtin): New.
15223         (find_tm_vector_type): New.
15224         (build_tm_vector_builtins): New.
15225         (build_common_builtin_nodes): Call it.
15227 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
15229         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
15230         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
15232 2016-01-13  Tom de Vries  <tom@codesourcery.com>
15234         PR tree-optimization/69169
15235         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
15236         handled_struct_type param.
15237         (create_variable_info_for, intra_create_variable_infos): Call
15238         create_variable_info_for_1 with extra arg.
15240 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
15242         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
15243         and "armv8.1-a+crc" entries.
15245 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
15247         PR target/69228
15248         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
15249         Change first operand predicate from register_or_constm1_operand
15250         to register_operand.
15251         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
15252         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
15253         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
15254         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
15255         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
15256         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
15257         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
15258         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
15259         comparison with constm1_rtx from vec_prefetch_gen part.
15261 2016-01-13  Richard Biener  <rguenther@suse.de>
15263         PR tree-optimization/69013
15264         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
15265         Exchange assert for a test.
15267 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15269         PR target/69247
15270         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
15272 2016-01-13  Richard Biener  <rguenther@suse.de>
15274         PR tree-optimization/69242
15275         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
15276         assert with a check.
15278 2016-01-13  Richard Biener  <rguenther@suse.de>
15280         PR tree-optimization/69186
15281         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15282         Properly guard vect_update_misalignment_for_peel call.
15284 2016-01-12  Jeff Law  <law@redhat.com>
15286         PR tree-optimization/pr67755
15287         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
15288         "need_profile_correction".
15289         (thread_block_1): Initialize new field to false by default.  If we
15290         have multiple thread paths through a common joiner to different
15291         final targets, then set new field to true.
15292         (compute_path_counts): Only do count adjustment when it's really
15293         needed.
15295 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
15297         * doc/invoke.texi (Spec Files): Move section down in file, past
15298         all command-line option descriptions.
15300 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15302         PR middle-end/54809
15303         * doc/gty.texi: Remove documentation of mark_hook.
15304         * gengtype.c (struct write_types_data): Remove code to support
15305         mark_hook attribute.
15306         (walk_type): Likewise.
15307         (write_func_for_structure): Likewise.
15309 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
15311         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
15312         Directory Options, and -specs= to Overall Options.
15313         (Overall Options): Adjust similarly.  Reorder to group related
15314         options together.  Make -specs= cross-reference the spec file details.
15315         (Directory Options): Adjust similarly.
15317 2016-01-12  Jeff Law  <law@redhat.com>
15319         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
15321 2016-01-12  Olivier Hainque  <hainque@adacore.com>
15323         * gcc.c (spec_undefvar_allowed): New global.
15324         (process_command): Set to true when running for --version or --help,
15325         alone or together.
15326         (getenv_spec_function): When the variable is not defined, use the
15327         variable name as the variable value if we're allowed not to issue
15328         a fatal error.
15330 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
15332         PR tree-optimization/68911
15333         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
15334         information computed for expression "init + nit * step".
15336 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
15338         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
15339         about name of GCC executable.  Remove deleted node from menu.
15340         (Directory Options) <-B>: Remove cross-reference to deleted node.
15341         (Target Options): Delete section.
15343 2016-01-12  Christian Bruel  <christian.bruel@st.com>
15345         PR target/69180
15346         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
15347         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
15349 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
15351         PR target/69198
15352         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
15353         aligned_mem is properly set for AVX512-VL floating point masked
15354         stores.
15356         PR target/69175
15357         * ifcvt.c (cond_exec_process_if_block): When removing the last
15358         insn from then_bb, remove also any possible barriers that follow it.
15360 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
15362         PR target/68456
15363         PR target/69226
15364         * config/i386/iamcu.h (SIZE_TYPE): New macro.
15365         (PTRDIFF_TYPE): Likewise.
15366         (WCHAR_TYPE): Likewise.
15367         (WCHAR_TYPE_SIZE): Likewise.
15368         (STDINT_LONG32): Likewise.
15370 2016-01-12  Richard Biener  <rguenther@suse.de>
15372         PR tree-optimization/69053
15373         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
15374         convert initial value for cond reductions.
15376 2016-01-12  Richard Biener  <rguenther@suse.de>
15378         PR tree-optimization/69007
15379         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
15380         widen_sum after dot_prod and sad.
15382 2016-01-12  Richard Biener  <rguenther@suse.de>
15384         PR tree-optimization/69168
15385         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
15386         pattern stmt SLP type.
15387         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
15388         end up unused so cope with that case.
15390 2016-01-12  Richard Biener  <rguenther@suse.de>
15392         PR tree-optimization/69157
15393         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
15394         stmts def type only during analyze phase.
15395         (vectorizable_call): Likewise.
15396         (vectorizable_simd_clone_call): Likewise.
15397         (vectorizable_conversion): Likewise.
15398         (vectorizable_assignment): Likewise.
15399         (vectorizable_shift): Likewise.
15400         (vectorizable_operation): Likewise.
15401         (vectorizable_store): Likewise.
15402         (vectorizable_load): Likewise.
15404 2016-01-12  Richard Biener  <rguenther@suse.de>
15406         PR tree-optimization/69174
15407         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
15408         space.
15409         (vectorizable_load): Properly compute the number of loads needed
15410         for permuted strided SLP loads and do not spuriously assign
15411         to SLP_TREE_VEC_STMTS.
15413 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
15415         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
15416         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
15417         (MD_EXEC_PREFIX): Remove.
15418         (MD_STARTFILE_PREFIX) Removee.
15419         (FILE_NAME_ABSOLUTE_P): Remove.
15420         (CPP_SPEC): Do not read macros from sys/version.h.
15421         (LINK_COMMAND_SPEC): Remove.
15422         (LOCAL_INCLUDE_DIR): Remove.
15423         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
15424         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
15425         (POST_LINK_SPEC): Define to invoke stubify after linker
15426         (LIBSTDCXX): Remove define
15427         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
15428         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
15429         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
15430         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
15431         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
15432         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
15433         (i386_djgpp_asm_named_section): Add propotype of new procedure
15435         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
15436         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
15437         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
15438         in config/i386/djgpp.h).
15439         (STANDARD_STARTFILE_PREFIX_2): Define identical to
15440         STANDARD_STARTFILE_PREFIX_1.
15441         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
15442         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
15443         installation errors.
15444         (MAX_OFILE_ALIGNMENT): Define to 128.
15445         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
15447         * config/i386/djgpp.c: New file. Add implementation of
15448         i386_djgpp_asm_named_section.
15450         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
15452         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
15453         Add rule for building djgpp.o.
15455 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15457         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
15458         (rtx_is_swappable_p): Reductions are swappable.
15459         (insn_is_swappable_p): V2DF reductions are swappable.
15461 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
15463         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
15464         reloads for other unsupported memory operands.
15466 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
15467             Jim Wilson  <jim.wilson@linaro.org>
15469         PR target/69194
15470         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
15471         copy_to_mode_reg instead of force_reg.
15473 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
15475         PR target/69225
15476         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
15477         TARGET_80387 is true.
15479 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
15481         PR target/69071
15482         * lra-eliminations.c (move_plus_up): Only move plus up
15483         if subreg of the constant can be simplified into constant
15484         and use the simplified subreg of the constant instead of
15485         the original constant.
15487         * fold-const.c (fold_convertible_p): Don't return true
15488         for conversion of VECTOR_TYPE to same sized integral type.
15489         (fold_convert_loc): Fix up formatting.  Fold conversion of
15490         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
15491         instead of NOP_EXPR.
15493         PR tree-optimization/69214
15494         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
15495         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
15496         Formatting fix.
15498         PR tree-optimization/69207
15499         * tree-vect-slp.c (vect_get_constant_vectors): For
15500         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
15501         fold_convertible_p to vector_type's element type, and always
15502         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
15504 2016-01-11  Richard Biener  <rguenther@suse.de>
15506         PR tree-optimization/69173
15507         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
15508         fixup the cycle if all stmts are in a pattern.
15510 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
15512         PR middle-end/68999
15513         * alias.c (base_alias_check): Move check for addresses with
15514         alignment ANDs before the call for compare_base_decls.
15515         (memrefs_conflict_p): Return -1 for different decls
15516         that went through alignment adjustments.
15518 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15520         PR rtl-optimization/68796
15521         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
15522         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
15523         and QImode comparisons against zero with CC_NZmode.
15524         * config/aarch64/iterators.md (short_mask): New mode_attr.
15526 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
15528         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
15529         (<avx512>_store<mode>_mask): Likewise.
15531 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
15532             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15534         PR rtl-optimization/68841
15535         * ifcvt.c (struct noce_if_info): Add orig_x field.
15536         (bbs_ok_for_cmove_arith): Add to_rename parameter.
15537         Don't record conflicts on to_rename if it's present.
15538         Allow memory destinations in sets.
15539         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
15540         blocks, passing orig_x to the checks.
15541         (noce_process_if_block): Set if_info->orig_x appropriately.
15543 2016-01-11  Tom de Vries  <tom@codesourcery.com>
15545         PR tree-optimization/69069
15546         * tree-parloops.c (create_parallel_loop): Add missing phi args.
15548 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
15550         PR rtl-optimization/68920
15551         * config/i386/i386.c (ix86_option_override_internal): Restrict number
15552         of conditional moves for  RTL if-conversion to 1 for
15553         TARGET_ONE_IF_CONV_INSN.
15554         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
15555         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
15556         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
15557         parameter to restirct number of conditional moves for
15558         RTL if-conversion.
15559         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
15560         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
15561         conditionl moves.
15563 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
15565         PR bootstrap/69123
15566         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
15567         onepart vars.  Fix typo in comment.  Fix reversed condition in
15568         unshare test.
15569         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
15571         PR bootstrap/69123
15572         * var-tracking.c (dump_onepart_variable_differences): New.
15573         (dataflow_set_different): If a detailed dump is requested,
15574         delay early returns and dump differences between onepart
15575         variables present before and after, and added variables.
15577 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
15579         PR target/69010
15580         * expr.c (expand_expr_real_1): For boolean vector constants
15581         with a scalar mode use const_scalar_mask_from_tree.
15582         (const_scalar_mask_from_tree): New.
15583         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
15584         assigned to a mask type to handle constants.
15586 2016-01-11  Martin Jambor  <mjambor@suse.cz>
15588         PR ipa/69044
15589         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
15590         useless parameters if we cannot change function signature.
15592 2016-01-11  Martin Jambor  <mjambor@suse.cz>
15594         PR ipa/66616
15595         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
15596         flag.
15598 2016-01-11  Tom de Vries  <tom@codesourcery.com>
15600         PR tree-optimization/69109
15601         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
15602         latch with phi.
15604 2016-01-11  Tom de Vries  <tom@codesourcery.com>
15606         PR tree-optimization/69108
15607         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
15608         res is not used in a phi.
15610 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
15612         PR 67425
15613         * common.opt (frandom-seed): Fix parameter name.
15614         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
15616 2016-01-11  Tom de Vries  <tom@codesourcery.com>
15618         PR tree-optimization/69058
15619         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
15620         not supported.
15622 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
15624         * config/arc/arc.opt (mdiv-rem): Add period to the end.
15625         (mcode-density): Likewise.
15627 2016-01-10  Tom de Vries  <tom@codesourcery.com>
15629         PR tree-optimization/69062
15630         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
15631         (parallelize_loops): Don't paralelize loop that has phi with address
15632         arg.
15634 2016-01-10  Tom de Vries  <tom@codesourcery.com>
15636         PR tree-optimization/69039
15637         * tree-parloops.c (try_create_reduction_list): Only allow single exit
15638         phi for reduction.
15640 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
15642         PR middle-end/68743
15643         * match.pd: Require target has function_c99_misc before doing
15644         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
15646 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
15648         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
15649         use GMPINC.
15650         * configure: Regenerate.
15652 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
15654         PR middle-end/50865
15655         PR tree-optimization/69097
15656         * fold-const.h (expr_not_equal_to): New prototype.
15657         * fold-const.c: Include stringpool.h and tree-ssanames.h.
15658         (expr_not_equal_to): New function.
15659         * match.pd (X % -Y is the same as X % Y): Don't optimize
15660         unless X is known not to be equal to minimum or Y is known
15661         not to be equal to -1.
15662         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
15663         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
15664         (simplify_stmt_using_ranges): Adjust caller.
15665         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
15666         substitute_and_fold.
15668 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
15670         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
15671         w/o DECL_NAME.
15673 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
15675         PR tree-optimization/69167
15676         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
15677         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
15678         ops[0] comparison.
15679         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
15681 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
15682             Richard Biener  <rguenther@suse.de>
15684         PR tree-optimization/68707
15685         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
15686         instances that can be handled via vect_load_lanes.
15688 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
15690         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
15691         if we can't determine address equivalence.
15692         * alias.c (compare_base_decl): Update for changed return value of
15693         symtab_node::equal_address_to.
15695 2016-01-08  Jason Merrill  <jason@redhat.com>
15697         PR c++/68983
15698         PR c++/67557
15699         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
15700         * expr.c (store_field): Not here.
15701         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
15702         call with TREE_ADDRESSABLE type.
15703         * tree-cfg.c (verify_gimple_call): Adjust.
15705 2016-01-08  Olivier Hainque  <hainque@adacore.com>
15707         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
15708         libc_internal.
15710 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
15712         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
15713         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
15714         (reduc_smin_v2sf): Rename to...
15715         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
15716         (reduc_splus_v2sf): Rename to...
15717         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
15719 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
15721         PR tree-optimization/69162
15722         * gimplify.c (gimplify_va_arg_expr): Encode original type of
15723         valist argument in another argument.
15724         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
15725         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
15726         to determine the va_list type, build a MEM_REF instead of
15727         build_fold_indirect_ref.
15729         PR tree-optimization/69172
15730         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
15731         gimple_build.
15733 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15735         PR tree-optimization/67781
15736         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
15737         and cmpnop in two steps: first the ones not accessed in original
15738         gimple expression in a endian independent way and then the ones not
15739         accessed in the final result in an endian-specific way.
15741 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
15743         PR tree-optimization/69083
15744         * tree-vect-slp.c (vect_get_constant_vectors): For
15745         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
15746         element type.  If op is fold_convertible_p to vector_type's element
15747         type, use NOP_EXPR instead of VCE.
15749 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
15751         PR rtl-optimization/67778
15752         PR rtl-optimization/68634
15753         PR rtl-optimization/68909
15754         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
15755         block from the stack until done with it.  Remove a superfluous
15756         bitmap set.  Remove a superfluous bitmap test.
15758 2016-01-07  Martin Sebor  <msebor@redhat.com>
15760         PR c/68966
15761         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
15762         constraint on the type of arguments.
15764 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
15766         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
15767         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
15768         unaligned_access on the gcc_options set.
15769         * config/arm/arm.c (arm_option_override_internal): Use
15770         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
15772 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
15774         PR target/69140
15775         * config/i386/i386.c (ix86_frame_pointer_required): Enable
15776         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
15778 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
15780         Revert
15781         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
15783         PR target/69140
15784         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
15785         depending on frame_pointer_needed before remaining integer and SSE
15786         registers are saved.
15788 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
15790         PR 1078
15791         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
15793 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
15795         PR target/69171
15796         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
15797         Use the "xBm" constraint.
15798         (float<sseintvecmodelower><mode>2<mask_name><round_name):
15799         Likewise.
15800         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
15801         (sse_cvtsi2ssq<round_name>): Likewise.
15802         (sse_cvtss2si<round_name>): Likewise.
15803         (sse_cvtss2siq<round_name>): Likewise.
15804         (sse2_cvtsi2sdq<round_name>): Likewise.
15805         (sse2_cvtsd2si<round_name>): Likewise.
15806         (sse2_cvtsd2siq<round_name>): Likewise.
15807         * config/i386/subst.md (round_nimm_scalar_predicate): New
15808         predicate.
15810 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
15812         PR middle-end/67639
15813         * varasm.c (make_decl_rtl): Mark invalid register vars as
15814         DECL_EXTERNAL.
15816         PR rtl-optimization/66206
15817         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
15818         All callers changed.
15820 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
15822         PR tree-optimization/69141
15823         * tree-ssa-pre.c: Include langhooks.h.
15824         (eliminate_dom_walker::before_dom_children): Use
15825         lang_hooks.decl_printable_name instead of
15826         cgraph_node::get ()->name ().
15828         PR middle-end/68960
15829         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
15830         it and DECL_ALIGN too.
15832 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
15834         * config/mips/mips-ftypes.def: Sort to lexicographical order.
15836 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
15838         PR target/69140
15839         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
15840         depending on frame_pointer_needed before remaining integer and SSE
15841         registers are saved.
15843 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15845         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
15846         mode iterator with VSX_M2.
15847         (*p9_vecstore_<mode>): Likewise.
15848         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
15849         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
15850         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
15851         (define_split for VSX_LE128 stores): Likewise.
15852         (define_peephole2 for TImode LE swaps): Likewise.
15853         (define_split for VSX_LE128 post-reload stores): Likewise.
15855 2016-01-06  Marek Polacek  <polacek@redhat.com>
15857         PR sanitizer/69099
15858         * convert.c (convert_to_integer_1): Adjust call to
15859         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
15860         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
15861         EXPR instead of ARG.
15862         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
15864 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
15866         PR 1078
15867         * doc/extend.texi (RL78 Variable Attributes): New section.
15869 2016-01-05  Marek Polacek  <polacek@redhat.com>
15871         PR c/69104
15872         * builtins.c (get_memmodel): Use expansion point location rather than
15873         the input location.  Call warning_at rather than warning.
15874         (expand_builtin_atomic_compare_exchange): Likewise.
15875         (expand_builtin_atomic_load): Likewise.
15876         (expand_builtin_atomic_store): Likewise.
15877         (expand_builtin_atomic_clear): Likewise.
15879 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
15881         PR target/68991
15882         * config/i386/i386.c (ix86_expand_vector_logical_operator):
15883         Replace nonimmediate_operand with vector_operand.
15884         * config/i386/predicates.md (vector_operand): New predicate.
15885         (general_vector_operand): Replace nonimmediate_operand with
15886         vector_operand.
15887         * config/i386/sse.md: Replace nonimmediate_operand with
15888         vector_operand and m constraint with Bm constraint on SSE
15889         patterns with 16-byte memory operand.
15890         * config/i386/subst.md (round_nimm_predicate): Replace
15891         nonimmediate_operand with vector_operand.
15892         (round_saeonly_nimm_predicate): Likewise.
15893         (round_saeonly_nimm_scalar_predicate): New.
15895 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
15897         PR target/68991
15898         * config/i386/constraints.md (Bm): New constraint.
15899         * config/i386/predicates.md (vector_memory_operand): New
15900         predicate.
15901         * config/i386/sse.md: Replace xm with xBm in plusminus and
15902         any_logic patterns.
15904 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
15906         PR 1078
15907         * doc/extend.texi (V850 Function Attributes): New section.
15908         (V850 Variable Attributes): New section.
15910 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
15912         PR 1078
15913         * doc/extend.texi (MicroBlaze Function Attributes): Document
15914         interrupt_handler and fast_interrupt attributes.
15916 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
15918         PR other/60465
15919         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
15920         for local symbolic operands.
15921         * config/ia64/predicates.md (local_symbolic_operand64): New
15922         predicate.
15924 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15926         PR rtl-optimization/68651
15927         * combine.c (combine_simplify_rtx): Canonicalize x + x into
15928         x << 1.
15930 2016-01-05  Nathan Sidwell  <nathan@acm.org>
15932         * alias.c (compare_base_decls): Use symtab_node::get.
15934 2016-01-05  Nick Clifton  <nickc@redhat.com>
15936         PR target/68770
15937         * ira-costs.c (copy_cost): Initialise the t_icode field of the
15938         secondary_reload_info structure.
15940         PR target/66655
15941         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
15942         decls if weak support is available.
15944 2016-01-04  Martin Sebor  <msebor@redhat.com>
15946         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
15948 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
15950         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
15951         OPTION_MASK_P9_DFORM.
15953         * config/rs6000/constraints.md (wo constraint): New constraint for
15954         ISA 3.0 (power9).
15956         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
15957         for wo constraint.
15958         (rs6000_init_hard_regno_mode_ok): Likewise.
15960         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
15961         wo constraint.
15963         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
15964         expanders not to have constraints.  Add support for ISA 3.0 xxperm
15965         instruction.  Add support for fusing xxlor with xxperm.
15966         (altivec_vperm_<mode>_internal): Likewise.
15967         (altivec_vperm_v8hiv16qi): Likewise.
15968         (altivec_vperm_<mode>v16q): Likewise.
15969         (altivec_vperm_<mode>_uns): Likewise.
15970         (vperm_v8hiv4si): Likewise.
15971         (vperm_v16qiv8hi): Likewise.
15973         * doc/md.texi (RS/6000 constraints): Document wo constraint.
15975 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
15977         Update copyright years.
15979         * gcc.c (process_command): Update copyright notice dates.
15980         * gcov-dump.c (print_version): Ditto.
15981         * gcov.c (print_version): Ditto.
15982         * gcov-tool.c (print_version): Ditto.
15983         * gengtype.c (create_file): Ditto.
15984         * doc/cpp.texi: Bump @copying's copyright year.
15985         * doc/cppinternals.texi: Ditto.
15986         * doc/gcc.texi: Ditto.
15987         * doc/gccint.texi: Ditto.
15988         * doc/gcov.texi: Ditto.
15989         * doc/install.texi: Ditto.
15990         * doc/invoke.texi: Ditto.
15992 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15994         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
15995         modes larger than TImode as TImode if NEON is not enabled.
15997 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15999         PR target/69100
16000         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
16001         mode for %f0-%f31 only if TARGET_FPU.
16003 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16005         PR target/69072
16006         * config/sparc/sparc.c (scan_record_type): Take into account subfields
16007         to compute the PACKED_P predicate.
16008         (function_arg_record_value): Minor tweaks.
16010 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16012         * doc/install.texi (--with-multilib-list): Describe the meaning of the
16013         option for arm*-*-* targets.
16015 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
16017         * doc/extend.texi (Common Function Attributes): Move docs for
16018         MSP430-specific attributes to....
16019         (MSP430 Function Attributes): ...here.  Delete the redundant
16020         entries and copy-edit the remaining text.
16021         (MSP430 Variable Attributes): Use uniform format for index
16022         entries and add a cross-reference to the corresponding function
16023         attribute docs.
16025 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
16027         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
16028         -finite-math typo.
16029         (x86 Options): Likewise.
16031 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
16033         PR 1078
16035         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
16036         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
16037         to corresponding attribute.
16039 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
16041         * doc/extend.texi (Common Function Attributes) <noplt>: Move
16042         to correct alphabetization of table.  Copy-edit and correct
16043         markup.
16044         <stack_protect>: Likewise.
16045         <target_clones>: Likewise.
16046         <simd>: Likewise.
16047         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
16048         Correct punctuation.
16049         (Code Gen Options) <-fno-plt>: Copy-edit.
16051 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16053         PR target/68917
16054         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
16055         SI values.  Explicitly convert SI to DI and vice-versa.
16057 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
16059         PR tree-optimization/69070
16060         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
16061         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
16063         PR sanitizer/69055
16064         * ubsan.c (ubsan_instrument_float_cast): Call
16065         initialize_sanitizer_builtins.
16067         PR target/69015
16068         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
16070 Copyright (C) 2016 Free Software Foundation, Inc.
16072 Copying and distribution of this file, with or without modification,
16073 are permitted in any medium without royalty provided the copyright
16074 notice and this notice are preserved.