re PR bootstrap/71435 (sparc bootstrap failure since r235625)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
2
3         PR bootstrap/71435
4         * reload1.c (reload): Pass 0 to finish_spills when called because
5         update_eliminables_and_spill returns true and remove did_spill.
6         (finish_spills): Adjust comment and document GLOBAL parameter.
7
8 2016-06-17  DJ Delorie  <dj@redhat.com>
9
10         PR target/71338
11         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
12         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
13         (umulqihi3_virt): Likewise.
14         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
15         (umulqihi3_real): Likewise.
16
17 2016-06-17  Martin Liska  <mliska@suse.cz>
18
19         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
20
21 2016-06-17  Martin Liska  <mliska@suse.cz>
22
23         * predict.def: PRED_LOOP_EXIT from 92 to 85.
24
25 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
26
27         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
28         __FAST_MATH__.
29         (vaddq_f32): Likewise.
30         (vmul_f32): Likewise.
31         (vmulq_f32): Likewise.
32         (vsub_f32): Likewise.
33         (vsubq_f32): Likewise.
34
35 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
36
37         PR tree-optimization/71347
38         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
39         cost for all uses in group.
40
41 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
42
43         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
44         insert gimple seq if it's not empty.
45
46 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
47
48         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
49         member OFFSET.
50         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
51         rather than OFFSET.
52         (comp_dr_with_seg_len_pair): Ditto.
53         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
54         struct dr_with_seg_len_pair against DR_OFFSET.
55         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
56         DR_OFFSET directly.
57
58 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
59
60         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
61
62 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
63
64         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
65         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
66         (pa_output_millicode_call): Likewise.
67         (pa_output_call): Likewise.
68         (pa_output_indirect_call): Likewise.
69         (pa_asm_output_mi_thunk): Likewise.
70
71 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
72
73         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
74
75 2016-06-16  Martin Liska  <mliska@suse.cz>
76
77         * predict.c (combine_predictions_for_insn): When we find a first
78         match predictor, we should consider just predictors with
79         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
80         DS theory predictor.
81         (combine_predictions_for_bb): Likewise.
82
83 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
84
85         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
86         with base of reference to struct.
87
88 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
89
90         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
91
92 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
93
94         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
95         progmem_swtable_section.
96         (progmem_swtable_section): Remove.
97         (avr_asm_function_rodata_section): Remove.
98         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
99         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
100
101 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
102
103         * config/i386/driver-i386.c (host_detect_local_cpu): Set
104         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
105         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
106         signature_CENTAUR_ebx.
107         * config/i386/i386.c (ix86_option_override_internal): Add
108         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
109         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
110         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
111
112 2016-06-16  Martin Liska  <mliska@suse.cz>
113
114         * predict.def: Add fortran loop preheader predictor.
115         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
116         fold IFN_BUILTIN_EXPECT with a known constant argument.
117
118 2016-06-16  Martin Liska  <mliska@suse.cz>
119
120         * predict.def: Add 'Fortran' to display text of all
121         PRED_FORTRAN_* predictors.
122
123 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
124
125         PR target/71242
126         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
127         [IA64_BUILTIN_NANSQ]: Ditto.
128         (ia64_fold_builtin): New function.
129         (TARGET_FOLD_BUILTIN): New define.
130         (ia64_init_builtins) Declare const_string_type node.
131         Add __builtin_nanq and __builtin_nansq builtin functions.
132         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
133
134 2016-06-16  Nick Clifton  <nickc@redhat.com>
135
136         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
137         MSP430_HWMULT_ prefix to enum values.
138         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
139         * config/msp430/msp430.c: Update use of enum values.
140         * config/msp430/msp430.md: Likewise.
141         * config/msp430/msp430.opt: Likewise.
142
143 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
144
145         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
146         of comparsions in the last iteration.
147
148 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
149             Joern Rennecke  <joern.rennecke@embecosm.com>
150
151         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
152         addresses.
153         (arc_needs_pcl_p): Add GOTOFFPC.
154         (arc_legitimate_pic_addr_p): Likewise.
155         (arc_output_pic_addr_const): Likewise.
156         (arc_legitimize_pic_address): Generate a pc-relative address using
157         GOTOFFPC.
158         (arc_output_libcall): Use @pcl syntax.
159         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
160         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
161         (*movsi_insn): Use @pcl syntax.
162         (doloop_begin_i): Likewise.
163
164 2016-06-16  Martin Liska  <mliska@suse.cz>
165
166         * predict.def: Define a new predictor.
167
168 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
169
170         * config/arc/arc.opt (mtp-regno): Update text.
171
172 2016-06-16  Renlin Li  <renlin.li@arm.com>
173
174         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
175
176 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
177
178         PR target/71554
179         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
180         (setcc + and peephole2): Likewise.
181
182         PR rtl-optimization/71532
183         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
184         memory slots.
185
186 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
187
188         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
189         DImode constants with XXSPLTIB in vector registers.
190         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
191         vsx_extract_<mode>_internal{1,2} into a single insn that handles
192         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
193         extraction of the element at the top of the register as a scalar
194         value.
195         (vsx_extract_<mode>_internal1): Likewise.
196         (vsx_extract_<mode>_internal2): Likewise.
197         * config/rs6000/constraints.md (wi constraint): Remove a comment
198         about DImode not being allowed in Altivec registers.
199         (wB constraint): New constraint for constants that can be
200         generated in Altivec registers with VSPLTISW/VUPKHSW.
201         * config/rs6000/predicates.md (xxspltib_constant_split): Update
202         comments.
203         (xxspltib_constant_nosplit): Likewise.
204         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
205         support for -mupper-regs-di to enable DImode to go into Altivec
206         registers.
207         (POWERPC_MASKS): Likewise.
208         (power7 cpu): Likewise.
209         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
210         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
211         for DImode being allowed in Altivec registers.  Update wi/wj
212         constraints.  Set scalar_in_vmx_p flag.
213         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
214         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
215         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
216         (rs6000_opt_masks): Add -mupper-regs-di.
217         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
218         direct move to use wi and not wj.
219         (lfiwzx): Likewise.
220         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
221         alternative.
222         (floatunssi<mode>2_lfiwzx_mem): Likewise.
223         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
224         any VSX register, instead of just Altivec registers, to allow
225         either operand to be an Altivec register or both.
226         (fixuns_trunc<mode>di2_fctiduz): Likewise.
227         (movdi_internal32): Add support for -mupper-regs-di.  Add support
228         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
229         the alternatives and attributes to be lined up to be easier to
230         read.
231         (movdi_internal64): Likewise.
232         (64-bit DImode splitters): Change predicates to only split loading
233         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
234         load constants in ISA 3.0 or ISA 2.07 respectively.
235         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
236         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
237         mention -mcpu=power9 sets these options.
238         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
239         wB constraint.
240
241 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
242
243         PR target/67353
244         * config/avr/avr.c (avr_set_current_function): Warn misspelled
245         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
246         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
247         by default to warn misspelled interrupt/ signal handler.
248         * doc/invoke.texi (AVR Options): Document it. Update description
249         for -nodevicelib option.
250
251 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
252
253         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
254         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
255         (aarch64_<sur>shll2_n<mode>): Likewise.
256
257 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
258
259         PR middle-end/71529
260         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
261         DECL_CONTEXT for copied arguments.
262
263 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
264
265         PR tree-optimization/71483
266         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
267         for slp
268
269 2016-06-15  Martin Liska  <mliska@suse.cz>
270
271         * predict.c (tree_predict_by_opcode): Call predict_edge_def
272         instead of predict_edge w/o a probability.
273
274 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
275
276         PR tree-optimization/71439
277         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
278         live PHIs.
279
280 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
281
282         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
283         register subregs in SET_SRC.
284
285 2016-06-15  Richard Biener  <rguenther@suse.de>
286
287         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
288         store restrictions.
289
290 2016-06-15  Richard Biener  <rguenther@suse.de>
291
292         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
293         not consider dependences between accesses that belong to the
294         same group.
295         (vect_analyze_data_ref_dependences): Do not analyze read-read
296         or self-dependences.
297
298 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
299
300         * spellcheck-tree.c: Include spellcheck-tree.h rather than
301         spellcheck.h.
302         (find_closest_identifier): Reimplement in terms of
303         best_match<tree,tree>.
304         * spellcheck-tree.h: New file.
305         * spellcheck.c (struct edit_distance_traits<const char *>): New
306         struct.
307         (find_closest_string): Reimplement in terms of
308         best_match<const char *, const char *>.
309         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
310         overload to spellcheck-tree.h.
311         (find_closest_identifier): Likewise.
312         (struct edit_distance_traits<T>): New template.
313         (class best_match): New class.
314
315 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
316
317         * selftest-run-tests.c (selftest::run_tests): Call
318         selftest::spellcheck_tree_c_tests.
319         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
320         * spellcheck-tree.c: Include selftest.h and stringpool.h.
321         (selftest::test_find_closest_identifier): New function.
322         (selftest::spellcheck_tree_c_tests): New function.
323         * spellcheck.c (selftest::test_find_closest_string): Verify that
324         the order of the vec does not affect the results for this case.
325         (selftest::test_data): New array.
326         (selftest::test_metric_conditions): New function.
327         (selftest::spellcheck_c_tests): Add a test of case-comparison.
328         Call selftest::test_metric_conditions.
329
330 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
331
332         * config/rs6000/rs6000-builtin.def (commentary): Typo.
333         (BU_P9_MISC_1): Likewise.
334         (BU_P9_64BIT_MISC_0): Likewise.
335         (BU_P9_MISC_0): Likewise.
336
337 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
338
339         * gcc-rich-location.c
340         (gcc_rich_location::add_fixit_misspelled_id): New method.
341         * gcc-rich-location.h
342         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
343
344 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
345
346         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
347         FreeBSD 11 and above.
348
349 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
350
351         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
352
353 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
354
355         * expmed.h: Close parenthesis in "at your option" in copyright
356         boilerplate.
357         * lower-subreg.h: Likewise.
358
359 2016-06-14  Richard Biener  <rguenther@suse.de>
360
361         PR middle-end/71526
362         * genmatch.c (expr::gen_transform): Use in_type for comparisons
363         if available.
364
365 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
366
367         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
368         New function.
369         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
370         mask+shift version.
371         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
372         New prototype.
373         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
374         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
375
376 2016-06-14  Richard Biener  <rguenther@suse.de>
377
378         PR tree-optimization/71522
379         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
380         copying into float copying.
381
382 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
383
384         PR tree-optimization/71520
385         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
386         (replace_block_by): Move user labels from bb1 to bb2.
387
388 2016-06-14  Richard Biener  <rguenther@suse.de>
389
390         PR middle-end/71310
391         PR bootstrap/71510
392         * expr.h (get_bit_range): Declare.
393         * expr.c (get_bit_range): Export.
394         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
395         word_mode again to constrain the bitfield access.
396
397 2016-06-14  Richard Biener  <rguenther@suse.de>
398
399         PR tree-optimization/71521
400         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
401         division int_const_binop against zero divisor.
402
403 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
404
405         * config/i386/i386.md (signbittf2): New expander.
406         * config/i386/sse.md (ptesttf2): New insn pattern.
407
408 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
409
410         PR bootstrap/71481
411         * input.c (selftest::test_reading_source_line): Avoid reading from
412         __FILE__ by creating a tempfile with known content and reading
413         from that instead.
414
415 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
416
417         * pretty-print.c (assert_pp_format_colored): Skip the test if
418         GCC_COLORS is set.
419         (test_pp_format): Remove comment about GCC_COLORS.
420
421 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
422
423         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
424         * pretty-print.c (assert_pp_format_va): Add location param and use
425         it with ASSERT_STREQ_AT.
426         (assert_pp_format): Add location param and pass it to
427         assert_pp_format_va.
428         (assert_pp_format_colored): Likewise.
429         (ASSERT_PP_FORMAT_1): New.
430         (ASSERT_PP_FORMAT_2): New.
431         (ASSERT_PP_FORMAT_3): New.
432         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
433         explicitly, or implicitly via the above macros.
434         * selftest.c (selftest::pass): Use a selftest::location rather
435         than file and line.
436         (selftest::fail): Likewise.  Print the function name.
437         (selftest::fail_formatted): Likewise.
438         (selftest::assert_streq): Use a selftest::location rather than
439         file and line.
440         * selftest.h (selftest::location): New struct.
441         (SELFTEST_LOCATION): New macro.
442         (selftest::pass): Accept a const location & rather than file
443         and line.
444         (selftest::fail): Likewise.
445         (selftest::fail_formatted): Likewise.
446         (selftest::assert_streq): Likewise.
447         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
448         (ASSERT_FALSE): Likewise.
449         (ASSERT_EQ): Likewise.
450         (ASSERT_NE): Likewise.
451         (ASSERT_STREQ): Likewise.
452         (ASSERT_PRED1): Likewise.
453         (ASSERT_STREQ_AT): New macro.
454
455 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
456
457         * selftest.c (selftest::fail_formatted): New function.
458         (selftest::assert_streq): New function.
459         * selftest.h (selftests::fail_formatted): New decl.
460         (selftest::assert_streq): New decl.
461         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
462
463 2016-06-13  Jeff Law  <law@redhat.com>
464
465         PR tree-optimization/71403
466         * tree-ssa-threadbackward.c
467         (convert_and_register_jump_thread_path): No longer accept reference
468         to path.  Do not pop items off the path anymore.
469         (fsm_find_control_statement_thread_paths): Do not allow threading
470         to a deeper loop nest.  Pop the last item off the path here rather
471         than in convert_and_register_jump_thread_path.
472
473 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
474             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
475
476         [AArch64] Emit division using the Newton series
477
478         * config/aarch64/aarch64-protos.h
479         (cpu_approx_modes): Add new member "division".
480         (aarch64_emit_approx_div): Declare new function.
481         * config/aarch64/aarch64.c
482         (generic_approx_modes): New member "division".
483         (exynosm1_approx_modes): Likewise.
484         (xgene1_approx_modes): Likewise.
485         (aarch64_emit_approx_div): Define new function.
486         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
487         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
488         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
489         * doc/invoke.texi (-mlow-precision-div): Describe new option.
490
491 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
492             Wilco Dijkstra  <wilco.dijkstra@arm.com>
493
494         [AArch64] Emit square root using the Newton series
495
496         * config/aarch64/aarch64-protos.h
497         (aarch64_emit_approx_rsqrt): Replace with new function
498         "aarch64_emit_approx_sqrt".
499         (cpu_approx_modes): New member "sqrt".
500         * config/aarch64/aarch64.c
501         (generic_approx_modes): New member "sqrt".
502         (exynosm1_approx_modes): Likewise.
503         (xgene1_approx_modes): Likewise.
504         (aarch64_emit_approx_rsqrt): Replace with new function
505         "aarch64_emit_approx_sqrt".
506         (aarch64_override_options_after_change_1): Handle new option.
507         * config/aarch64/aarch64-simd.md
508         (rsqrt<mode>2): Use new function instead.
509         (sqrt<mode>2): New expansion and insn definitions.
510         * config/aarch64/aarch64.md: Likewise.
511         * config/aarch64/aarch64.opt
512         (mlow-precision-sqrt): Add new option description.
513         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
514
515 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
516
517         [AArch64] Add more choices for the reciprocal square root approximation
518
519         Allow a target to prefer such operation depending on the operation mode.
520
521         * config/aarch64/aarch64-protos.h
522         (AARCH64_APPROX_MODE): New macro.
523         (AARCH64_APPROX_{NONE,ALL}): Likewise.
524         (cpu_approx_modes): New structure.
525         (tune_params): New member "approx_modes".
526         * config/aarch64/aarch64-tuning-flags.def
527         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
528         * config/aarch64/aarch64.c
529         (generic_approx_modes): New core "cpu_approx_modes" structure.
530         (exynosm1_approx_modes): Likewise.
531         (xgene1_approx_modes): Likewise.
532         (generic_tunings): New member "approx_modes".
533         (cortexa35_tunings): Likewise.
534         (cortexa53_tunings): Likewise.
535         (cortexa57_tunings): Likewise.
536         (cortexa72_tunings): Likewise.
537         (exynosm1_tunings): Likewise.
538         (thunderx_tunings): Likewise.
539         (xgene1_tunings): Likewise.
540         (use_rsqrt_p): New argument for the mode and use new member from
541         "tune_params".
542         (aarch64_builtin_reciprocal): Devise mode from builtin.
543         (aarch64_optab_supported_p): New argument for the mode.
544         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
545
546 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
547
548         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
549         RS6000_BTM_MODULO flag into the set of flags that are considered
550         to be part of the common configuration.
551
552 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
553
554         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
555         difference unsigned.
556         (vec_absdb): New macro for vector absolute difference unsigned
557         byte.
558         (vec_absdh): New macro for vector absolute difference unsigned
559         half-word.
560         (vec_absdw): New macro for vector absolute difference unsigned word.
561         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
562         (vadu<mode>3): New insn.
563         (*p9_vadu<mode>3): New insn.
564         * config/rs6000/rs6000-builtin.def (vadub): New built-in
565         definition.
566         (vaduh): New built-in definition.
567         (vaduw): New built-in definition.
568         (vadu): New overloaded built-in definition.
569         (vadub): New overloaded built-in definition.
570         (vaduh): New overloaded built-in definition.
571         (vaduw): New overloaded built-in definition.
572         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
573         overloaded vector absolute difference unsigned functions.
574         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
575         the ISA 3.0 vector absolute difference unsigned built-in functions.
576
577 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
578
579         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
580         update shared_lookup_references only once after changing operands.
581
582 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
583
584         PR middle-end/71373
585         * tree-nested.c (convert_nonlocal_omp_clauses)
586         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
587
588         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
589         * tree.def (CASE_LABEL_EXPR): Likewise.
590
591 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
592
593         PR bootstrap/71481
594         * input.c (test_builtins): Fix an assertion.
595
596 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
597
598         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
599         (paritysi2): Ditto.
600         (isinfxf2): Ditto.
601         (isinf<mode>2): Ditto.
602
603 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
604
605         * ggc-tests.c (test_finalization): Only test need_finalization_p
606         for GCC_VERSION >= 4003.
607
608 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
609
610         * config/s390/vecintrin.h: Fix file description in comment.
611
612 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
613
614         * config/s390/s390-builtin-types.def: Change builtin type naming
615         scheme to match builtin-types.def.
616
617 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
618
619         * fold-const.c (optimize_minmax_comparison): Remove.
620         (fold_comparison): Remove call to the above.
621         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
622         New transformations.
623
624 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
625
626         PR tree-optimization/71416
627         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
628         multiple entries
629
630 2016-06-13  Martin Liska  <mliska@suse.cz>
631
632         * predict.c (enum predictor_reason): Prefix enum with REASON_.
633         (combine_predictions_for_insn): Likewise.
634         (prune_predictions_for_bb): Likewise.
635         (combine_predictions_for_bb): Likewise.
636
637 2016-06-13  Richard Biener  <rguenther@suse.de>
638
639         PR tree-optimization/71505
640         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
641         assert match comment.
642
643 2016-06-13  Marek Polacek  <polacek@redhat.com>
644
645         PR middle-end/71476
646         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
647         gimplify_switch_expr.
648         (warn_switch_unreachable_r): New function.
649
650 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
651
652         PR target/71379
653         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
654         one.
655
656 2016-06-13  Richard Biener  <rguenther@suse.de>
657
658         PR middle-end/64516
659         * fold-const.c (fold_unary_loc): Preserve alignment when
660         folding a VIEW_CONVERT_EXPR into a MEM_REF.
661
662 2016-06-13  Martin Liska  <mliska@suse.cz>
663
664         PR sanitizer/71458
665         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
666         w/ -fsanitize=bounds.
667
668 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
669
670         * config/i386/i386.c (ix86_init_builtins): Calculate
671         FLOAT128_FTYPE_CONST_STRING function type only once.
672         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
673         built-in functions are available for x86-32 and x86-64 targets.
674
675 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
676
677         PR target/71241
678         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
679         New primitive type.
680         (FLOAT128_FTYPE_CONST_STRING): New function type.
681         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
682         [IX86_BUILTIN_NANSQ]: Ditto.
683         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
684         (ix86_init_builtin_types): Declare const_string_type_node.
685         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
686         builtin functions.
687         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
688         * doc/extend.texi (x86 Built-in Functions): Document
689         __builtin_nanq and __builtin_nansq.
690
691 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
692
693         PR target/71061
694         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
695         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
696         length for pop patterns.
697         (arm_attr_length_push_multi): Update comments.
698         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
699         attribute.
700         (*pop_multiple_with_writeback_and_return): Likewise.
701         (*pop_multiple_with_return): Likewise.
702
703 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
704
705         PR middle-end/71310
706         * fold-const.c (optimize_bit_field_compare): Don't try to use
707         word_mode unconditionally for reading the bit field, look at
708         DECL_BIT_FIELD_REPRESENTATIVE instead.
709
710 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
711
712         PR middle-end/71478
713         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
714         vector integer type.
715
716 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
717
718         PR middle-end/71494
719         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
720         without LABEL_DECL, set *handled_ops_p to false instead of true.
721
722 2016-06-10  Martin Sebor  <msebor@redhat.com>
723
724         PR c/71392
725         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
726         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
727         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
728         them.
729         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
730         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
731         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
732         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
733         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
734         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
735         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
736         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
737
738 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
739
740         * config/arm/arm.h (pool_vector_label,
741         return_used_this_function): Remove.
742
743 2016-06-10  Jeff Law  <law@redhat.com>
744
745         PR tree-optimization/71335
746         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
747         zero length paths here.
748         (convert_and_register_jump_thread_path): Remove hacks related to
749         duplicated blocks in the jump thread path.
750         (fsm_find_control_statement_thread_paths): Avoid putting the same
751         block on the thread path twice, but ensure the thread path is
752         unchanged from the caller's point of view.
753
754 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
755
756         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
757         * predict.def (PRED_LOOP_BRANCH): Remove.
758
759 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
760
761         * Makefile.in (OBJS): Add ggc-tests.o.
762         (GTFILES): Add ggc-tests.c.
763         * ggc-tests.c: New file.
764         * selftest-run-tests.c (selftest::run_tests): Call
765         selftest::ggc_tests_c_tests.
766         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
767
768 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
769
770         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
771
772 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
773
774         PR sanitizer/71480
775         * varasm.c (place_block_symbol): Adjust alignment for asan protected
776         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
777
778 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
779
780         * profile.c: Include cfgloop.h.
781         (branch_prob): Compute estimated number of iterations.
782         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
783         recompute estimate number of iterations from profile.
784
785 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
786
787         PR inline-asm/68843
788         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
789         must be grouped on top of stack.  Don't force early clobber
790         on ordinary reg outputs.
791
792 2016-06-10  Richard Biener  <rguenther@suse.de>
793
794         * targhooks.c (default_builtin_vectorization_cost): Adjust
795         vec_construct cost.
796
797 2016-06-10  Richard Biener  <rguenther@suse.de>
798
799         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
800         to fold the RHS to a constant if possible.
801
802 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
803
804         PR middle-end/71373
805         * tree-nested.c (convert_nonlocal_omp_clauses)
806         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
807         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
808         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
809
810         * gimplify.c (gimplify_adjust_omp_clauses): Discard
811         OMP_CLAUSE_TILE.
812         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
813
814         * omp-low.c (scan_sharing_clauses): Don't expect
815         OMP_CLAUSE__CACHE_.
816
817 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
818
819         PR tree-optimization/71407
820         PR tree-optimization/71416
821         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
822         BIT_FIELD_REF type.
823
824 2016-06-10  Richard Biener  <rguenther@suse.de>
825
826         PR middle-end/71477
827         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
828
829 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
830
831         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
832
833 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
834             Jiong Wang  <jiong.wang@arm.com>
835
836         PR rtl-optimization/70751
837         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
838         spilled into memory.
839
840 2016-06-09  Jonathan Yong  <10walls@gmail.com>
841
842         Revert:
843         2015-09-21  Jonathan Yong  <10walls@gmail.com>
844
845         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
846         sysroot/usr/lib/32api for additional win32 libraries,
847         fixes failing Cygwin bootstrapping.
848
849 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
850
851         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
852         Delete.
853
854 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
855
856         PR bootstrap/71471
857         * pretty-print.c (pp_indent): Specify that %p is printed in a
858         host-dependent manner.
859         (test_pp_format): Remove the test for %p.
860
861 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
862
863         * config/mips/mips.c (mips_output_jump): Fix formatting.
864
865 2016-06-09  Richard Biener  <rguenther@suse.de>
866
867         PR tree-optimization/71462
868         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
869         removed blocks.
870
871 2016-06-09  Martin Liska  <mliska@suse.cz>
872
873         * predict.c (dump_prediction): Add new argument.
874         (enum predictor_reason): New enum.
875         (struct predictor_hash): New struct.
876         (predictor_hash::hash): New function.
877         (predictor_hash::equal): Likewise.
878         (not_removed_prediction_p): New function.
879         (prune_predictions_for_bb): Likewise.
880         (combine_predictions_for_bb): Prune predictions.
881
882 2016-06-09  Martin Liska  <mliska@suse.cz>
883
884         * predict.c (filter_predictions): New function.
885         (remove_predictions_associated_with_edge): Use the filter
886         function.
887         (equal_edge_p): New function.
888
889 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
890
891         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
892         Correct usage of @samp vs @option, add @samp where appropriate.
893         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
894         Add armv6s-m and document it, as it is no official ARM name.
895
896 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
897
898         * ifcvt.c (struct noce_if_info): Add transform_name field.
899         (noce_try_move): Set if_info->transform_name to the function name.
900         (noce_try_ifelse_collapse): Likewise.
901         (noce_try_store_flag): Likewise.
902         (noce_try_inverse_constants): Likewise.
903         (noce_try_store_flag_constants): Likewise.
904         (noce_try_addcc): Likewise.
905         (noce_try_store_flag_mask): Likewise.
906         (noce_try_cmove): Likewise.
907         (noce_try_cmove_arith): Likewise.
908         (noce_try_minmax): Likewise.
909         (noce_try_abs): Likewise.
910         (noce_try_sign_mask): Likewise.
911         (noce_try_bitop): Likewise.
912         (noce_convert_multiple_sets): Likewise.
913         (noce_process_if_block): Print if_info->transform_name to
914         dump_file if transformation succeeded.
915
916 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
917
918         * config/arm/cortex-a57.md (cortex_a57_alu):
919         Handle csel type.
920
921 2016-06-08  Martin Sebor  <msebor@redhat.com>
922             Jakub Jelinek  <jakub@redhat.com>
923
924         PR c++/70507
925         PR c/68120
926         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
927         BUILT_IN_MUL_OVERFLOW_P): New builtins.
928         * builtins.c: Include gimple-fold.h.
929         (fold_builtin_arith_overflow): Handle
930         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
931         (fold_builtin_3): Likewise.
932         * doc/extend.texi (Integer Overflow Builtins): Document
933         __builtin_{add,sub,mul}_overflow_p.
934
935 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
936
937         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
938         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
939
940 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
941
942         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
943         Rewrite, looking one level down for records and arrays.
944
945 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
946
947         * pretty-print.c: Include "selftest.h".
948         (pp_format): Fix comment.
949         (identifier_to_locale): Likewise.
950         (selftest::test_basic_printing): New function.
951         (selftest::assert_pp_format): New function.
952         (selftest::test_pp_format): New function.
953         (selftest::pretty_print_c_tests): New function.
954         * selftest-run-tests.c (selftest::run_tests): Call
955         selftest::pretty_print_c_tests.
956         * selftest.h (pretty_print_c_tests): New declaration.
957
958 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
959
960         * invoke.texi (max-loop-headers-insns): Document.
961         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
962         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
963         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
964
965 2016-06-08  Richard Biener  <rguenther@suse.de>
966
967         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
968         on strided SLP loads and fall back to scalar loads in case
969         we can't chunk them.
970
971 2016-06-08  Richard Biener  <rguenther@suse.de>
972
973         PR tree-optimization/71452
974         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
975         type used for the SSA rewrite has enough precision to cover
976         the dynamic type of the location.
977
978 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
979             Richard Biener  <rguenther@suse.de>
980
981         PR c++/71448
982         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
983         the same as DECL_P (base0) for indirect_base0.  Use equality_code
984         in one further place.
985
986 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
987
988         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
989         to one word if the field is known to overlap other words.
990         (extract_bit_field_1): Likewise.
991         (store_split_bit_field): Remove compensating code.
992         (extract_split_bit_field): Likewise.
993
994 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
995
996         PR debug/71432
997         PR ada/71413
998         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
999
1000 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1001
1002         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
1003         VDQF.
1004         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
1005         (arch64_addpv4sf): Delete.
1006         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
1007         "gen_aarch64_addpv4sf".
1008         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
1009         builtin.
1010         (vpadds_f32): Likewise.
1011         (vpaddq_f32): Likewise.
1012         (vpaddq_f64): Likewise.
1013
1014 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1015
1016         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
1017         VALLF.
1018         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
1019         to VALLF.  Rename to "fabd<mode>3".
1020         "*fabd_scalar<mode>3): Delete.
1021         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
1022         Use builtin.
1023         (vabdd_f64): Likewise.
1024         (vabd_f32): Likewise.
1025         (vabd_f64): Likewise.
1026         (vabdq_f32): Likewise.
1027         (vabdq_f64): Likewise.
1028
1029 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1030
1031         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
1032         VALLF.
1033         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
1034         "aarch64_rsqrts<mode>".
1035         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
1036         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
1037         builtin.
1038         (vrsqrtsd_f64): Likewise.
1039         (vrsqrts_f32): Likewise.
1040         (vrsqrts_f64): Likewise.
1041         (vrsqrtsq_f32): Likewise.
1042         (vrsqrtsq_f64): Likewise.
1043
1044 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1045
1046         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
1047         VALLF.
1048         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
1049         "aarch64_rsqrte<mode>".
1050         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
1051         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
1052         builtin.
1053         (vrsqrted_f64): Likewise.
1054         (vrsqrte_f32): Likewise.
1055         (vrsqrte_f64): Likewise.
1056         (vrsqrteq_f32): Likewise.
1057         (vrsqrteq_f64): Likewise.
1058
1059 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1060
1061         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
1062         (ucvtf): Likewise.
1063         (fcvtzs): Likewise.
1064         (fcvtzu): Likewise.
1065         * config/aarch64/aarch64-simd.md
1066         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
1067         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
1068         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
1069         Use builtin.
1070         (vcvt_n_f32_u32): Likewise.
1071         (vcvt_n_s32_f32): Likewise.
1072         (vcvt_n_u32_f32): Likewise.
1073         (vcvtq_n_f32_s32): Likewise.
1074         (vcvtq_n_f32_u32): Likewise.
1075         (vcvtq_n_f64_s64): Likewise.
1076         (vcvtq_n_f64_u64): Likewise.
1077         (vcvtq_n_s32_f32): Likewise.
1078         (vcvtq_n_s64_f64): Likewise.
1079         (vcvtq_n_u32_f32): Likewise.
1080         (vcvtq_n_u64_f64): Likewise.
1081         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
1082         (VSDQ_SDI): Likewise.
1083         (fcvt_target): Support V4DI, V4SI and V2SI.
1084         (FCVT_TARGET): Likewise.
1085
1086 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
1087
1088         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
1089         (TYPES_BINOP_SUS): Likewise.
1090         (aarch64_simd_builtin_data): Update include file name.
1091         (aarch64_builtins): Likewise.
1092         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
1093         for conversion between scalar float-point and fixed-point.
1094         (ucvtf): Likewise.
1095         (fcvtzs): Likewise.
1096         (fcvtzu): Likewise.
1097         * config/aarch64/aarch64.md
1098         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
1099         pattern for conversion between scalar float to fixed-pointer.
1100         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
1101         (UNSPEC_FCVTZS): New UNSPEC enumeration.
1102         (UNSPEC_FCVTZU): Likewise.
1103         (UNSPEC_SCVTF): Likewise.
1104         (UNSPEC_UCVTF): Likewise.
1105         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
1106         Use builtin.
1107         (vcvtd_n_f64_u64): Likewise.
1108         (vcvtd_n_s64_f64): Likewise.
1109         (vcvtd_n_u64_f64): Likewise.
1110         (vcvtd_n_f32_s32): Likewise.
1111         (vcvts_n_f32_u32): Likewise.
1112         (vcvtd_n_s32_f32): Likewise.
1113         (vcvts_n_u32_f32): Likewise.
1114         * config/aarch64/iterators.md (fcvt_target): Support integer to float
1115         mapping.
1116         (FCVT_TARGET): Likewise.
1117         (FCVT_FIXED2F): New iterator.
1118         (FCVT_F2FIXED): Likewise.
1119         (fcvt_fixed_insn): New define_int_attr.
1120
1121 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1122
1123         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
1124         some statements was removed.
1125
1126 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
1127
1128         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
1129         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
1130         (vect_can_advance_ivs_p): likewise.
1131         (vect_update_ivs_after_vectorizer): likewise.
1132         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
1133         (vect_analyze_scalar_cycles_1): likewise.
1134         (vect_analyze_loop_operations): likewise.
1135         (report_vect_op): likewise.
1136         (vect_is_slp_reduction): likewise.
1137         (vect_is_simple_reduction): likewise.
1138         (get_initial_def_for_induction): likewise.
1139         (vect_transform_loop): likewise.
1140         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
1141         (vect_recog_sad_pattern): likewise.
1142         (vect_recog_widen_sum_pattern): likewise.
1143         (vect_recog_widening_pattern): likewise.
1144         (vect_recog_divmod_pattern): likewise.
1145         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
1146         (vect_analyze_slp_instance): likewise.
1147         (vect_transform_slp_perm_load): likewise.
1148         (vect_schedule_slp_instance): likewise.
1149
1150 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1151
1152         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
1153         (return_prediction): PRED_CONST_RETURN predict return as not taken.
1154         * predict.def (PRED_CONTINUE): Change hitrate 50->67
1155         (PRED_LOOP_BRANCH): Document predictor as broken.
1156         (PRED_LOOP_EXIT): Change hitrate 91->92.
1157         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
1158         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
1159         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
1160         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
1161         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
1162         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
1163         (PRED_CALL): Chane hitrate 71->67.
1164         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
1165         (PRED_GOTO): Document as unused right now.
1166         (PRED_CONST_RETURN): Change hitrate 67->69
1167         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
1168         (PRED_NULL_RETURN): Change hitrate 91->90.
1169         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
1170         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
1171         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
1172
1173 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
1174
1175         * config/rs6000/altivec.h: Add __builtin_vec_mul.
1176         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
1177         special case Altivec builtin.
1178         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
1179         VSX_BUILTIN_VEC_MUL (replaced with special case code).
1180         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
1181         code for ALTIVEC_BUILTIN_VEC_MUL.
1182         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
1183         for __builtin_vec_mul.
1184
1185 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
1186
1187         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
1188         -mno-htm.
1189
1190 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
1191
1192         * spellcheck.c (selftest::test_find_closest_string): New function.
1193         (spellcheck_c_tests): Call the above.
1194
1195 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1196
1197         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
1198
1199 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
1200
1201         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
1202         Yv=Yv,C alternatives.
1203
1204 2016-06-07  Richard Biener  <rguenther@suse.de>
1205
1206         PR c/61564
1207         * common.opt (ffast-math): Make Optimization.
1208
1209 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
1210             Prachi Godbole  <prachi.godbole@imgtec.com>
1211
1212         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
1213         `fabs' and `fneg' type attributes.
1214         (p5600_fpu_fabs): Add `fmove' to the comment.
1215
1216 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
1217
1218         * gimple.c: Include builtins.h
1219         (gimple_inexpensive_call_p): New function.
1220         * gimple.h (gimple_inexpensive_call_p): Declare.
1221         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
1222         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
1223         fix formatting.
1224
1225 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
1226
1227         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
1228         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
1229         warning_at_rich_loc, warning_n, pedwarn, permerror,
1230         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
1231         sorry, fatal_error, internal_error, internal_error_no_backtrace):
1232         Use the above.
1233
1234 2016-06-07  Richard Biener  <rguenther@suse.de>
1235
1236         PR tree-optimization/71428
1237         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
1238         BIT_FIELD_REF op vs. load.
1239
1240 2016-06-07  Richard Biener  <rguenther@suse.de>
1241
1242         PR middle-end/71423
1243         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
1244         for signed ops.
1245
1246 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
1247
1248         * config/pa/pa.md (call): Generate indirect long calls to non-local
1249         functions on TARGET_64BIT.
1250         (call_value): Likewise.
1251
1252 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
1253
1254         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
1255         pattern and subsequent splitters.
1256         (call_val_reg_64bit_post_reload): Likewise.
1257
1258 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
1259
1260         PR middle-end/71408
1261         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
1262         propagate_op_to_single_use.
1263
1264 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
1265
1266         PR middle-end/71281
1267         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
1268
1269 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
1270
1271         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
1272         (enum x86_dirflag_state): New enum.
1273         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
1274         (machine_function): Remove needs_cld.
1275         (ix86_current_function_needs_cld): Remove.
1276         * config/i386/i386.c (ix86_set_func_type): Set
1277         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
1278         (ix86_expand_prologue): Do not emit CLD here.
1279         (ix86_dirflag_mode_needed): New function.
1280         (ix86_dirflag_mode_entry): Ditto.
1281         (ix86_mode_needed): Handle X86_DIRFLAG entity.
1282         (ix86_mode_after): Ditto.
1283         (ix86_mode_entry): Ditto.
1284         (ix86_mode_exit): Ditto.
1285         (ix86_emit_mode_set): Ditto.
1286         * config/i386/i386.md (strmov_singleop): Set
1287         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
1288         Do not set ix86_current_function_needs_cld.
1289         (rep_mov): Ditto.
1290         (strset_singleop): Ditto.
1291         (rep_stos): Ditto.
1292         (cmpstrnqi_nz_1): Ditto.
1293         (cmpstrnqi_1): Ditto.
1294         (strlenqi_1): Ditto.
1295
1296 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
1297
1298         PR tree-optimization/71259
1299         * tree-vect-slp.c (vect_get_constant_vectors): For
1300         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
1301         one for constant op, and use COND_EXPR for non-constant.
1302
1303 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
1304
1305         * Makefile.in (OBJS): Add function-tests.o,
1306         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
1307         selftest-run-tests.o.
1308         (OBJS-libcommon): Add selftest.o.
1309         (OBJS-libcommon-target): Add selftest.o.
1310         (all.internal): Add "selftest".
1311         (all.cross): Likewise.
1312         (selftest): New phony target.
1313         (s-selftest): New target.
1314         (selftest-gdb): New phony target.
1315         (COLLECT2_OBJS): Add selftest.o.
1316         * bitmap.c: Include "selftest.h".
1317         (selftest::test_gc_alloc): New function.
1318         (selftest::test_set_range): New function.
1319         (selftest::test_clear_bit_in_middle): New function.
1320         (selftest::test_copying): New function.
1321         (selftest::test_bitmap_single_bit_set_p): New function.
1322         (selftest::bitmap_c_tests): New function.
1323         * common.opt (fself-test): New.
1324         * diagnostic-show-locus.c: Include "selftest.h".
1325         (make_range): New function.
1326         (test_range_contains_point_for_single_point): New function.
1327         (test_range_contains_point_for_single_line): New function.
1328         (test_range_contains_point_for_multiple_lines): New function.
1329         (assert_eq): New function.
1330         (test_get_line_width_without_trailing_whitespace): New function.
1331         (selftest::diagnostic_show_locus_c_tests): New function.
1332         * et-forest.c: Include "selftest.h".
1333         (selftest::test_single_node): New function.
1334         (selftest::test_simple_tree): New function.
1335         (selftest::test_disconnected_nodes): New function.
1336         (selftest::et_forest_c_tests): New function.
1337         * fold-const.c: Include "selftest.h".
1338         (selftest::assert_binop_folds_to_const): New function.
1339         (selftest::assert_binop_folds_to_nonlvalue): New function.
1340         (selftest::test_arithmetic_folding): New function.
1341         (selftest::fold_const_c_tests): New function.
1342         * function-tests.c: New file.
1343         * gimple.c: Include "selftest.h".
1344         Include "gimple-pretty-print.h".
1345         (selftest::verify_gimple_pp): New function.
1346         (selftest::test_assign_single): New function.
1347         (selftest::test_assign_binop): New function.
1348         (selftest::test_nop_stmt): New function.
1349         (selftest::test_return_stmt): New function.
1350         (selftest::test_return_without_value): New function.
1351         (selftest::gimple_c_tests): New function.
1352         * hash-map-tests.c: New file.
1353         * hash-set-tests.c: New file.
1354         * input.c: Include "selftest.h".
1355         (selftest::assert_loceq): New function.
1356         (selftest::test_accessing_ordinary_linemaps): New function.
1357         (selftest::test_unknown_location): New function.
1358         (selftest::test_builtins): New function.
1359         (selftest::test_reading_source_line): New function.
1360         (selftest::input_c_tests): New function.
1361         * rtl-tests.c: New file.
1362         * selftest-run-tests.c: New file.
1363         * selftest.c: New file.
1364         * selftest.h: New file.
1365         * spellcheck.c: Include "selftest.h".
1366         (selftest::levenshtein_distance_unit_test_oneway): New function,
1367         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
1368         (selftest::levenshtein_distance_unit_test): Likewise.
1369         (selftest::spellcheck_c_tests): Likewise.
1370         * toplev.c: Include selftest.h.
1371         (toplev::run_self_tests): New.
1372         (toplev::main): Handle -fself-test.
1373         * toplev.h (toplev::run_self_tests): New.
1374         * tree.c: Include "selftest.h".
1375         (selftest::test_integer_constants): New function.
1376         (selftest::test_identifiers): New function.
1377         (selftest::test_labels): New function.
1378         (selftest::tree_c_tests): New function.
1379         * tree-cfg.c: Include "selftest.h".
1380         (selftest::push_fndecl): New function.
1381         (selftest::test_linear_chain): New function.
1382         (selftest::test_diamond): New function.
1383         (selftest::test_fully_connected): New function.
1384         (selftest::tree_cfg_c_tests): New function.
1385         * vec.c: Include "selftest.h".
1386         (selftest::safe_push_range): New function.
1387         (selftest::test_quick_push): New function.
1388         (selftest::test_safe_push): New function.
1389         (selftest::test_truncate): New function.
1390         (selftest::test_safe_grow_cleared): New function.
1391         (selftest::test_pop): New function.
1392         (selftest::test_safe_insert): New function.
1393         (selftest::test_ordered_remove): New function.
1394         (selftest::test_unordered_remove): New function.
1395         (selftest::test_block_remove): New function.
1396         (selftest::reverse_cmp): New function.
1397         (selftest::test_qsort): New function.
1398         (selftest::vec_c_tests): New function.c.
1399         * wide-int.cc: Include selftest.h and wide-int-print.h.
1400         (selftest::from_int <wide_int>): New function.
1401         (selftest::from_int <offset_int>): New function.
1402         (selftest::from_int <widest_int>): New function.
1403         (selftest::assert_deceq): New function.
1404         (selftest::assert_hexeq): New function.
1405         (selftest::test_printing <VALUE_TYPE>): New function template.
1406         (selftest::test_ops <VALUE_TYPE>): New function template.
1407         (selftest::test_comparisons <VALUE_TYPE>): New function template.
1408         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
1409         template.
1410         (selftest::wide_int_cc_tests): New function.
1411
1412 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1413
1414         PR middle-end/37780
1415         * ifcvt.c (noce_try_ifelse_collapse): New function.
1416         Declare prototype.
1417         (noce_process_if_block): Call noce_try_ifelse_collapse.
1418         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
1419         (simplify_ternary_operation): Use the above to simplify
1420         conditional CLZ/CTZ expressions.
1421
1422 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1423
1424         PR middle-end/37780
1425         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
1426         define_insn_and_split.
1427
1428 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1429
1430         PR middle-end/37780
1431         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
1432
1433 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1434
1435         PR c/24414
1436         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
1437         Implicitly clobber memory for basic asm with non-empty assembler
1438         string.  Use targetm.md_asm_adjust also here.
1439         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
1440         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
1441         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
1442         non-empty assembler string.
1443         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
1444         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
1445         (decode_asm_operands): Handle basic asm in PARALLEL block.
1446         (extract_insn): Handle basic asm in PARALLEL block.
1447         * doc/extend.texi: Mention new behavior of basic asm.
1448         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
1449         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
1450         branch_needs_nop_p): Use asm_noperands.
1451
1452 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
1453
1454         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
1455         Include the M7 SPARC DFA scheduler.
1456         New attribute v3pipe.
1457         Annotate insns with v3pipe where appropriate.
1458         Define cpu_feature vis4.
1459         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
1460         Add (V8QI "8") to vbits.
1461         Add insns {add,sub}v8qi3
1462         Add insns ss{add,sub}v8qi3
1463         Add insns us{add,sub}{v8qi,v4hi}3
1464         Add insns {min,max}{v8qi,v4hi,v2si}3
1465         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
1466         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
1467         * config/sparc/niagara4.md: Add a comment explaining the
1468         discrepancy between the documented latenty numbers and the
1469         implemented ones.
1470         * config/sparc/niagara7.md: New file.
1471         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
1472         supports SPARC5 and VIS 4.0 instructions.
1473         * configure: Regenerate.
1474         * config.in: Likewise.
1475         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
1476         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
1477         TARGET_CPU_niagara7.
1478         (ASM_CPU64_DEFAULT_SPEC): Likewise.
1479         (CPP_CPU_SPEC): Handle niagara7.
1480         (ASM_CPU_SPEC): Likewise.
1481         * config/sparc/sparc-opts.h (processor_type): Add
1482         PROCESSOR_NIAGARA7.
1483         (mvis4): New option.
1484         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
1485         (AS_NIAGARA7_FLAG): Define.
1486         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
1487         (CPP_CPU64_DEFAULT_SPEC): Likewise.
1488         (CPP_CPU_SPEC): Handle niagara7.
1489         (ASM_CPU_SPEC): Likewise.
1490         * config/sparc/sparc.c (niagara7_costs): Define.
1491         (sparc_option_override): Handle niagara7 and adjust cache-related
1492         parameters with better values for niagara cpus.  Also support VIS4.
1493         (sparc32_initialize_trampoline): Likewise.
1494         (sparc_use_sched_lookahead): Likewise.
1495         (sparc_issue_rate): Likewise.
1496         (sparc_register_move_cost): Likewise.
1497         (dump_target_flag_bits): Support VIS4.
1498         (sparc_vis_init_builtins): Likewise.
1499         (sparc_builtins): Likewise.
1500         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
1501         VIS4 4.0.
1502         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
1503         UltraSparc M7.
1504         * config/sparc/sparc.opt (sparc_processor_type): New value
1505         niagara7.
1506         * config/sparc/visintrin.h (__attribute__): Prototypes for the
1507         VIS4 builtins.
1508         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
1509         -mvis4.
1510         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
1511         VIS4 builtins.
1512
1513 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
1514
1515         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
1516
1517 2016-06-06  Richard Biener  <rguenther@suse.de>
1518
1519         PR tree-optimization/71398
1520         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
1521         remove edges.
1522
1523 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
1524
1525         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
1526         ft32_expand_prolog, ft32_expand_epilogue):
1527         Handle pretend_args.
1528         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
1529         * config/ft32/ft32.md: Add pretend_returner.
1530
1531 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
1532
1533         PR target/71389
1534         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
1535         Copy op1 RTX to avoid invalid sharing.
1536         (ix86_expand_vector_move_misalign): Ditto.
1537
1538 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
1539
1540         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
1541         ATTRIBUTE_UNUSED.
1542
1543 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
1544
1545         * predict.c (predicted_by_loop_heuristics_p): New function.
1546         (predict_iv_comparison): Use it.
1547         (predict_loops): Walk from innermost loops; do not predict edges
1548         leaving multiple loops multiple times; implement
1549         PRED_LOOP_ITERATIONS_MAX heuristics.
1550         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
1551
1552 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
1553
1554         * cfg.c (check_bb_profile): Do not report mismatched profiles when
1555         only edges out of BB are EH edges.
1556
1557 2016-06-04  Martin Sebor  <msebor@redhat.com>
1558             Marcin Baczyński  <marbacz@gmail.com>
1559
1560         PR c/48116
1561         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
1562         a void expression in a void function.
1563
1564 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
1565
1566         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
1567         aux; dump reasons of decisions.
1568         (should_duplicate_loop_header_p): Likewise.
1569         (do_while_loop_p): Likewise.
1570         (ch_base::copy_headers): Dump asi num insns duplicated.
1571
1572 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
1573
1574         PR tree-optimization/71405
1575         * tree-ssa.c (execute_update_addresses_taken): For clobber with
1576         incompatible type, build a new clobber with the right type instead
1577         of building a VIEW_CONVERT_EXPR around it.
1578
1579 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
1580
1581         PR tree-optimization/52171
1582         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
1583         by_pieces_ninsns instead of move_by_pieces_ninsns.
1584
1585 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
1586
1587         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
1588         for reg+reg addressing mode.
1589
1590 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1591
1592         * rs6000-c.c (c/c-tree.h): Add #include.
1593         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
1594         in C++ when found in the base position of vec_ld or vec_st.
1595
1596 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
1597
1598         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
1599         use of profile unless profile status is PROFILE_READ.
1600         * profile.c (compute_branch_probabilities): Set profile status
1601         only after reporting predictor hitrates.
1602
1603 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1604
1605         PR target/71276
1606         PR target/71277
1607         * common.opt (ffp-int-builtin-inexact): New option.
1608         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
1609         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
1610         (ceil@var{m}2): Document dependence on this option.
1611         * ipa-inline-transform.c (inline_call): Handle
1612         flag_fp_int_builtin_inexact.
1613         * ipa-inline.c (can_inline_edge_p): Likewise.
1614         * config/i386/i386.md (rintxf2): Do not test
1615         flag_unsafe_math_optimizations.
1616         (rint<mode>2_frndint): New define_insn.
1617         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
1618         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
1619         for 387 instead of extending and truncating.
1620         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
1621         !flag_trapping_math instead of flag_unsafe_math_optimizations.
1622         Change to frndint<mode>2_<rounding>.
1623         (frndintxf2_<rounding>_i387): Likewise.  Change to
1624         frndint<mode>2_<rounding>_i387.
1625         (<rounding_insn>xf2): Likewise.
1626         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
1627         !flag_trapping_math instead of flag_unsafe_math_optimizations for
1628         x87.  Test TARGET_ROUND || !flag_trapping_math ||
1629         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
1630         SSE.  Use ROUND_NO_EXC in constant operand of
1631         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
1632         for 387 instead of extending and truncating.
1633
1634 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
1635             Julia Koval  <julia.koval@intel.com>
1636
1637         PR target/66960
1638         PR target/67630
1639         PR target/67634
1640         PR target/67841
1641         PR target/68037
1642         PR target/68618
1643         PR target/68661
1644         PR target/69575
1645         PR target/69596
1646         PR target/69734
1647         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
1648         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
1649         all registers, except for function return registers if there are
1650         no caller-saved registers.
1651         (ix86_set_func_type): New function.
1652         (ix86_set_current_function): Call ix86_set_func_type to set
1653         no_caller_saved_registers and func_type.  Call reinit_regs if
1654         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
1655         nor x87 instructions in interrupt handler nor function with
1656         no_caller_saved_registers attribute.
1657         (ix86_function_ok_for_sibcall): Return false if there are no
1658         caller-saved registers.
1659         (type_natural_mode): Don't warn ABI change for MMX in interrupt
1660         handler.
1661         (ix86_function_arg_advance): Skip for callee in interrupt handler.
1662         (ix86_function_arg): Return special arguments in interrupt handler.
1663         (ix86_promote_function_mode): Promote pointer to word_mode only
1664         for normal functions.
1665         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
1666         interrupt handler.
1667         (ix86_epilogue_uses): New function.
1668         (ix86_hard_regno_scratch_ok): Likewise.
1669         (ix86_save_reg): Preserve all registers in interrupt handler
1670         after reload.  Preserve all registers, except for function return
1671         registers, if there are no caller-saved registers after reload.
1672         (find_drap_reg): Always use callee-saved register if there are
1673         no caller-saved registers.
1674         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
1675         for interrupt handler.
1676         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
1677         Emit cld instruction if stringops are used in interrupt handler
1678         or interrupt handler isn't a leaf function.
1679         (ix86_expand_epilogue): Generate interrupt return for interrupt
1680         handler and pop the 'ERROR_CODE' off the stack before interrupt
1681         return in exception handler.
1682         (ix86_expand_call): Disallow calling interrupt handler directly.
1683         If there are no caller-saved registers, mark all registers that
1684         are clobbered by the call which returns as clobbered.
1685         (ix86_handle_no_caller_saved_registers_attribute): New function.
1686         (ix86_handle_interrupt_attribute): Likewise.
1687         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
1688         attributes.
1689         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
1690         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
1691         accumulation in interrupt function if stack may be realigned to
1692         avoid DRAP.
1693         (EPILOGUE_USES): New.
1694         (function_type): New enum.
1695         (machine_function): Add func_type and no_caller_saved_registers.
1696         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
1697         (interrupt_return): New pattern.
1698         * doc/extend.texi: Document x86 interrupt and
1699         no_caller_saved_registers attributes.
1700
1701 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
1702
1703         PR tree-optimization/52171
1704         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
1705         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
1706         Look for constant strings.  Move some code to emit_block_cmp_hints
1707         and use it.
1708         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
1709         * defaults.h (COMPARE_MAX_PIECES): New macro.
1710         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
1711         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
1712         (clear_by_pieces_1): Don't declare.  Move definition before use.
1713         (can_do_by_pieces): New static function.
1714         (can_move_by_pieces): Use it.  Return bool.
1715         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
1716         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
1717         (class pieces_addr); New.
1718         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
1719         pieces_addr::adjust, pieces_addr::increment_address,
1720         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
1721         functions for it.
1722         (class op_by_pieces_d): New.
1723         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
1724         functions for it.
1725         (class move_by_pieces_d, class compare_by_pieces_d,
1726         class store_by_pieces_d): New subclasses of op_by_pieces_d.
1727         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
1728         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
1729         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
1730         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
1731         compare_by_pieces_d::finish_mode): New member functions.
1732         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
1733         functions.
1734         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
1735         (emit_block_cmp_hints): New function.
1736         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
1737         use the newly defined classes.
1738         * expr.h (by_pieces_constfn): New typedef.
1739         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
1740         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
1741         (move_by_pieces_ninsns): Don't declare.
1742         (can_move_by_pieces): Change return value to bool.
1743         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
1744         (compare_by_pieces_branch_ratio): New hook.
1745         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
1746         (by_pieces_ninsns): Declare.
1747         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
1748         COMPARE_BY_PIECES.
1749         (default_compare_by_pieces_branch_ratio): New function.
1750         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
1751         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
1752         * doc/tm.texi: Regenerate.
1753         * tree-ssa-strlen.c: Include "builtins.h".
1754         (handle_builtin_memcmp): New static function.
1755         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
1756         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
1757
1758 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
1759
1760         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
1761         relevant stmts which are simple and invariant.
1762         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
1763         instead of simple and invariant
1764
1765 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
1766
1767         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
1768         (vectorizable_reduction): Check for new relevant state.
1769         (vectorizable_live_operation): vectorize live stmts using
1770         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
1771         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
1772         (vect_stmt_relevant_p): Check for stmts which are only used live.
1773         (process_use): Use of a stmt does not inherit it's live value.
1774         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
1775         (vect_analyze_stmt): Check for new relevant state.
1776         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
1777         outside the loop, but not inside it.
1778
1779 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
1780
1781         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
1782         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
1783         (vect_get_vec_def_for_operand): Split out code.
1784
1785 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
1786
1787         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
1788
1789 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
1790
1791         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
1792
1793 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1794
1795         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
1796
1797 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
1798
1799         PR middle-end/71387
1800         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
1801         to noreturn e->callee->decl that has void return type and void
1802         arguments, adjust gimple_call_fntype and remove lhs even if it had
1803         previously addressable type.
1804
1805 2016-06-02  Jeff Law  <law@redhat.com>
1806
1807         PR tree-optimization/71328
1808         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
1809         error when checking for a jump back onto the copied path.
1810
1811 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
1812
1813         * config/microblaze/microblaze.c (get_branch_target): Add return
1814         NULL_RTX for the non-CALL_P case.
1815         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
1816         (insert_wic): Remove unused local "j".
1817
1818 2016-06-02  Martin Liska  <mliska@suse.cz>
1819
1820         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
1821
1822 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
1823             Julia Koval  <julia.koval@intel.com>
1824
1825         * function.c (assign_parm_setup_stack): Force source into a
1826         register if needed.
1827         * target.def (function_incoming_arg): Update documentation to
1828         allow arbitrary address computation based on hard register.
1829         * doc/tm.texi: Regenerated.
1830
1831 2016-06-02  Martin Liska  <mliska@suse.cz>
1832
1833         * predict.c (combine_predictions_for_bb): Fix first match in
1834         cases where a first predictor contains more than one occurence
1835         in list of predictors.  Take the best value in such case.
1836
1837 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1838
1839         PR rtl-optimization/71295
1840         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
1841         offset would go over the size of the inner mode reject it.
1842
1843 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
1844
1845         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
1846         x=x,x and v=v,m instead of x=x,m.
1847
1848         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
1849         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
1850         alternative to v=rm,C.
1851
1852         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
1853         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
1854         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
1855         instead of vex for the last two above mentioned alternatives.
1856
1857 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1858
1859         PR target/70830
1860         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
1861
1862 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
1863
1864         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
1865
1866 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
1867
1868         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
1869         from int to unsigned.
1870
1871 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
1872
1873         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
1874         alternatives, eliminating preferred register class.  Add support
1875         for the MTVSRDD instruction in ISA 3.0.
1876         (vsx_splat_v4si_internal): Use splat_input_operand instead of
1877         reg_or_indexed_operand.
1878         (vsx_splat_v4sf_internal): Likewise.
1879
1880 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
1881
1882         PR target/71186
1883         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
1884         for loading up all 0's or all 1's.
1885
1886 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1887
1888         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
1889
1890 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
1891
1892         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
1893         extension.
1894         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
1895         * gcc.c (set_source_date_epoch_envvar): New function, sets
1896         the SOURCE_DATE_EPOCH environment variable to the current time.
1897
1898 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
1899
1900         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
1901         the factor for live Phi nodes.
1902
1903 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
1904
1905         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
1906         * tree-parloops.c (parallelize_loops): likewise.
1907         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
1908         tree_unswitch_outer_loop): likewise.
1909
1910 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
1911
1912         PR middle-end/71371
1913         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
1914         around creation of the temporary.
1915
1916 2016-06-01  Richard Biener  <rguenther@suse.de>
1917
1918         PR tree-optimization/71366
1919         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
1920         (unloop_loops): Move removing edges here ...
1921         (try_unroll_loop_completely): ... from here.
1922         (try_peel_loop): ... and here.
1923         (tree_unroll_loops_completely_1): Track parent loops via
1924         bitmap of header BBs.
1925         (tree_unroll_loops_completely): Adjust for that.
1926
1927 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1928
1929         * config/rs6000/altivec.h (vec_slv): New macro.
1930         (vec_srv): New macro.
1931         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
1932         (UNSPEC_VSRV): New value.
1933         (vslv): New insn.
1934         (vsrv): New insn.
1935         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
1936         (vsrv): New builtin definition.
1937         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
1938         define argument types for new builtin.
1939         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
1940         new builtin.
1941         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
1942         functions.
1943
1944 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
1945             Jocelyn Mayer  <l_indien@magic.fr>
1946
1947         PR target/67310
1948         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
1949         detect processor family for signature_CENTAUR_ebx.
1950         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
1951         signature_CENTAUR_ebx.
1952         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
1953         <default>: Pass x86-64 for has_longmode.
1954
1955 2016-06-01  Nathan Sidwell  <nathan@acm.org>
1956
1957         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
1958         undefined weak.
1959
1960 2016-06-01  Richard Biener  <rguenther@suse.de>
1961
1962         PR tree-optimization/71261
1963         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
1964         of stmts successfully put in the bool pattern.  Remove
1965         single-use restriction.
1966         (adjust_bool_pattern_cast): Add cast at the use site via the
1967         pattern def sequence.
1968         (adjust_bool_pattern): Remove recursion, maintain a hash-map
1969         of patterned defs.  Use the pattern def seqence instead of
1970         multiple independent patterns.
1971         (sort_after_uid): New qsort compare function.
1972         (adjust_bool_stmts): New function to process stmts in the bool
1973         pattern in IL order.
1974         (vect_recog_bool_pattern): Adjust.
1975         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
1976         (ifcvt_walk_pattern_tree): Likewise.
1977         (stmt_is_root_of_bool_pattern): Likewise.
1978         (ifcvt_repair_bool_pattern): Likewise.
1979         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
1980
1981 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
1982
1983         * loop-unroll.c (decide_unroll_constant_iterations,
1984         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
1985         likely upper bounds.
1986         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
1987
1988 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
1989
1990         * tree-core.h (enum omp_clause_code): Remove
1991         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
1992
1993 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1994
1995         * config/arm/sync.md (arm_store_exclusive<mode>):
1996         Use 'H' output modifier on operands[2] rather than creating a new
1997         entry in out-of-bounds memory of the operands array.
1998         (arm_store_release_exclusivedi): Likewise.
1999
2000 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2001
2002         * config/arm/arm.c (arm_fusion_enabled_p): New function.
2003         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
2004         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
2005         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
2006
2007 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
2008
2009         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
2010         into account live statements for mask producers.
2011
2012 2016-06-01  Richard Biener  <rguenther@suse.de>
2013
2014         PR tree-optimization/71311
2015         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
2016         restrict to non-INTEGER_CST @0.
2017
2018 2016-06-01  Richard Biener  <rguenther@suse.de>
2019
2020         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
2021         (relational patterns): Use :c to avoid pattern duplications.
2022
2023 2016-06-01  Richard Biener  <rguenther@suse.de>
2024
2025         * genmatch.c (comparison_code_p): New predicate.
2026         (swap_tree_comparison): New function.
2027         (commutate): Add for_vec parameter to append new for entries.
2028         Support commutating relational operators by swapping it alongside
2029         operands.
2030         (lower_commutative): Adjust.
2031         (dt_simplify::gen): Do not pass artificial operators to gen
2032         functions.
2033         (decision_tree::gen): Do not add artificial operators as parameters.
2034         (parser::parse_expr): Verify operator commutativity when :c is
2035         applied.  Allow :C to override this.
2036         * match.pd: Adjust patterns to use :C instead of :c where required.
2037
2038 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
2039
2040         PR tree-optimization/71077
2041         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
2042         the combining step, use boolean_false_node and boolean_true_node
2043         as the designated false/true return values.
2044
2045 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
2046
2047         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
2048         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
2049         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
2050         PRED_LOOP_EXIT.
2051
2052 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
2053
2054         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
2055         of flags impliying the register renaming.
2056         * toplev.c (process_options): Do not imply flag_rename_registers with
2057         loop peeling.
2058
2059 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2060
2061         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
2062         default implementation.
2063
2064 2016-05-31  Nathan Sidwell  <nathan@acm.org>
2065
2066         * dwarf2out.c (cur_line_info_table): Add GTY marker.
2067
2068 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2069
2070         * config/sh/constraints.md (b): Remove constraint.
2071         * config/sh/predicates.md (arith_reg_operand): Remove
2072         TARGET_REGISTER_P.
2073         * config/sh/sh-modes.def (PDI): Remove.
2074         * config/sh/sh.c (sh_target_reg_class,
2075         sh_optimize_target_register_callee_saved): Remove functions.
2076         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
2077         (sh_expand_epilogue): Update comment.
2078         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
2079         sh_secondary_reload): Remove TARGET_REGS related code.
2080         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
2081         TARGET_REGISTER_P): Remove macros.
2082         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
2083         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
2084         TR1_REG, TR2_REG): Remove constants.
2085         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
2086
2087 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2088
2089         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
2090         define_expand patterns.
2091         (adddi3_compact): Rename to adddi3.
2092         (subdi3_compact): Rename to subdi3.
2093         (*negdi2): Rename to negdi2.
2094         (*abs<mode>2): Rename to abs<mode>2.
2095
2096 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
2097
2098         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
2099         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
2100         (atomic_sub_fetchsi): ... this new pattern.
2101         (mvtc): Add CC_REG clobber.
2102
2103 2016-05-31  Marek Polacek  <polacek@redhat.com>
2104
2105         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
2106
2107 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2108
2109         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
2110         aarch64_fusion_enabled_p to check for fusion capabilities.
2111
2112 2016-05-31  Richard Biener  <rguenther@suse.de>
2113
2114         PR tree-optimization/71352
2115         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
2116         minus one and a negate.
2117
2118 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2119
2120         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
2121         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
2122         Delete prototype.
2123         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
2124         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
2125         Remove use of aarch64_simd_attr_length_move, set length attribute
2126         directly.
2127         (*aarch64_be_movoi): Likewise.
2128         (*aarch64_be_movci): Likewise.
2129         (*aarch64_be_movxi): Likewise.
2130
2131 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
2132
2133         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
2134         It no longer does that.
2135         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
2136
2137 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
2138
2139         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
2140         attribute __unused__.
2141
2142 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2143
2144         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
2145         * config/arm/arm.c (arm_arch_thumb1): Define.
2146         (arm_option_override): Initialize arm_arch_thumb1.
2147         * config/arm/arm.h (arm_arch_thumb1): Declare.
2148         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
2149         support Thumb-1 ISA.
2150
2151 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
2152
2153         PR target/71346
2154         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
2155         `Yv' for scalar operand.
2156
2157 2016-05-31  Tom de Vries  <tom@codesourcery.com>
2158
2159         PR tree-optimization/69068
2160         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
2161         phis with more than two args.
2162
2163 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
2164
2165         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
2166         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
2167         target.
2168
2169 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
2170
2171         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
2172         tune_64.
2173         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
2174         support on SPARC.
2175         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
2176         cpu_32, cpu_64, tune_32 and tune_64.
2177         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
2178
2179 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
2180
2181         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
2182
2183 2016-05-30  Andi Kleen  <ak@linux.intel.com>
2184
2185         * auto-profile.c (read_profile): Replace asserts with errors
2186         when file does not exist.
2187         * gcov-io.c (gcov_read_words): Dito.
2188
2189 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2190
2191         * tree-cfg.c (print_loop): Print likely upper bounds.
2192
2193 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2194
2195         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
2196         * opts.c (default_options): Enable peel loops at -O3.
2197         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
2198         (try_peel_loop): Do not re-peel already peeled loops;
2199         use likely upper bounds; fix profile updating.
2200         (pass_complete_unroll::execute): Initialize peeled_loops.
2201
2202 2016-05-30  Martin Liska  <mliska@suse.cz>
2203
2204         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
2205         computed costs by frequency of BB they belong to.
2206         (get_scaled_computation_cost_at): New function.
2207
2208 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
2209             Marc Glisse  <marc.glisse@inria.fr>
2210
2211         PR tree-optimization/71289
2212         * match.pd (-1 / B < A, A > -1 / B): New transformations.
2213
2214 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2215
2216         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
2217
2218 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2219
2220         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
2221         for peeled copies; avoid underflow when updating estimates; correctly
2222         scale loop profile.
2223
2224 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
2225
2226         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
2227         r236875. Corrected oe3 to oe2 as obvious.
2228
2229 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
2230
2231         PR middle-end/71269
2232         PR middle-end/71252
2233         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
2234         that inserted stmt will not dominate stmts that defines its operand.
2235         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
2236         (rewrite_expr_tree_parallel): Likewise.
2237
2238 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
2239
2240         PR middle-end/71252
2241         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
2242         all fields including stmt_to_insert are swapped.
2243
2244 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2245
2246         * predict.h (force_edge_cold): Declare.
2247         * predict.c (force_edge_cold): New function.
2248         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
2249         updating.
2250         (canonicalize_loop_induction_variables): Fix formating.
2251
2252 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
2253
2254         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
2255         (visium_expand_copysign): Use gen_int_mode directly.
2256         (visium_compute_frame_size): Minor tweaks.
2257
2258 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
2259
2260         * tree-vect-loop.c (vect_analyze_loop_2): Use
2261         likely_max_stmt_executions_int.
2262
2263 2016-05-30  Tom de Vries  <tom@codesourcery.com>
2264
2265         PR tree-optimization/69067
2266         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
2267
2268 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
2269
2270         PR target/71245
2271         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
2272         New peepholes to remove unneeded fild/fistp pairs.
2273         (define_peephole2 atomic_loaddi_fpu): Ditto.
2274
2275 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2276
2277         * predict.c (maybe_hot_frequency_p): Avoid division.
2278
2279 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
2280
2281         * doc/install.texi: Use https for shop.fsf.org.
2282
2283 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2284
2285         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
2286         likely_max_stmt_executions_int.
2287
2288 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2289
2290         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
2291         likely_max_stmt_executions_int.
2292
2293 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2294
2295         * profile.c (compute_branch_probabilities): Do not report hitrates
2296         here.
2297         (branch_prob): Report hitrates here.
2298         * predict.c (gimple_predict_edge): Do not assert profile status;
2299         fix formatting issues.
2300
2301 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2302
2303         * predict.c (edge_predicted_by_p): New function.
2304         (predict_paths_for_bb): Do not put multiple predictions of the same type
2305         on one edge.
2306
2307 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2308
2309         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
2310         commit.
2311
2312 2016-05-28  Alan Modra  <amodra@gmail.com>
2313
2314         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
2315
2316 2016-05-28  Alan Modra  <amodra@gmail.com>
2317
2318         PR rtl-optimization/71275
2319         * ira.c (ira): Free dominance info.
2320
2321 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
2322
2323         * doc/sourcebuild.texi: New address for upstream Go repository.
2324
2325 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2326
2327         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
2328         (TARGET_ARM_V7M): Likewise.
2329
2330 2016-05-26  Jeff Law  <law@redhat.com>
2331
2332         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
2333         (thread_across_edge): Remove calls to find_jump_threads_backwards.
2334         * passes.def: Add jump threading passes before DOM/VRP.
2335         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
2336         argument to a basic block from an edge.  Remove tests which are
2337         handled elsewhere.
2338         (pass_data_thread_jumps, class pass_thread_jumps): New.
2339         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
2340         (make_pass_thread_jumps): Likewise.
2341         * tree-pass.h (make_pass_thread_jumps): Declare.
2342
2343 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
2344
2345         * config/visium/visium-protos.h (split_double_move): Rename into...
2346         (visium_split_double_move): ...this.
2347         (visium_split_double_add): Declare.
2348         * config/visium/visium.c (split_double_move): Rename into...
2349         (visium_split_double_move): ...this.
2350         (visium_split_double_add): New function.
2351         (visium_expand_copysign): Renumber operands for consistency.
2352         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
2353         (DFmode move splitter): Likewise.
2354         (*addi3_insn): Split by means of visium_split_double_add.
2355         (*adddi3_insn_flags): Delete.
2356         (*plus_plus_sltu<subst_arith>): New insn.
2357         (*subdi3_insn): Split by means of visium_split_double_add.
2358         (subdi3_insn_flags): Delete.
2359         (*minus_minus_sltu<subst_arith>): New insn.
2360         (*negdi2_insn): Split by means of visium_split_double_add.
2361         (*negdi2_insn_flags): Delete.
2362
2363 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
2364
2365         * configure.ac: Treat a --with-headers option without argument
2366         the same as the default (i.e. consult sys-include directory).
2367         * configure: Regenerate.
2368
2369 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2370
2371         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
2372         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
2373         prototype.
2374         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
2375         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
2376
2377 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
2378
2379         PR target/63596
2380         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
2381         tree-stdarg analysis results.
2382         (aarch64_setup_incoming_varargs): Likewise.
2383
2384 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
2385
2386         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
2387         va_list_gpr_counter_field and va_list_fpr_counter_field.
2388
2389 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
2390
2391         PR67609
2392         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
2393         * config/aarch64/aarch64.c
2394         (aarch64_cannot_change_mode_class): Remove function.
2395         * config/aarch64/aarch64-protos.h
2396         (aarch64_cannot_change_mode_class): Remove.
2397
2398 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
2399
2400         * cfgloop.c (record_niter_bound): Record likely upper bounds.
2401         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
2402         get_likely_max_loop_iterations_int): New.
2403         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
2404         any_likely_upper_bound.
2405         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
2406         Declare.
2407         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
2408         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
2409         upper bound.
2410         (unroll_loop_constant_iterations): Likewise.
2411         (unroll_loop_runtime_iterations): Likewise.
2412         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
2413         * lto-streamer-out.c (output_cfg): Likewise.
2414         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
2415         bounds.
2416         (canonicalize_loop_induction_variables): Dump likely upper bounds.
2417         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
2418         (likely_max_loop_iterations): New.
2419         (likely_max_loop_iterations_int): New.
2420         (likely_max_stmt_executions): New.
2421         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
2422         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
2423         likely_max_stmt_executions): Declare.
2424
2425 2016-05-27  Marek Polacek  <polacek@redhat.com>
2426
2427         PR middle-end/71308
2428         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
2429
2430 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2431
2432         * config/s390/s390.md (2x risbg splitters): Use
2433         reg_overlap_mentioned_p instead of rtx_equal_p.
2434
2435 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2436
2437         * combine.c (make_compound_operation): Take known zero bits into
2438         account when checking for possible zero_extend.
2439
2440 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2441
2442         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
2443         Use const_int_operand for operand 2 predicate.  Simplify expand code
2444         as a result.
2445
2446 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
2447
2448         PR middle-end/71279
2449         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
2450         into comparison.
2451
2452 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2453
2454         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
2455         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
2456         that returns CC_SESWPmode and CC_ZESWPmode.
2457         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
2458         and CC_SESWPmode.
2459         (aarch64_rtx_costs): Likewise.
2460
2461 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2462
2463         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
2464         for ISA 3.0 min/max support.
2465         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
2466         conditional move support.
2467         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
2468         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
2469         available.
2470         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
2471         conditional moves where the comparison type is different from move
2472         type.
2473         (fp_minmax): New code iterator for smin/smax.
2474         (minmax): New code attributes for min/max.
2475         (SMINMAX): Likewise.
2476         (smax<mode>3): Combine min, max insns into one insn using the
2477         fp_minmax code iterator.  Add support for ISA 3.0 min/max
2478         instructions that don't need -ffast-math.
2479         (s<minmax><mode>3): Likewise.
2480         (smax<mode>3_vsx): Likewise.
2481         (smin<mode>3): Likewise.
2482         (s<minmax><mode>3_vsx): Likewise.
2483         (smin<mode>3_vsx): Likewise.
2484         (pre-VSX min/max splitters): Likewise.
2485         (s<minmax><mode>3_fpr): Likewise.
2486         (movsfcc): Rewrite floating point conditional moves to combine
2487         SFmode/DFmode into a single insn.
2488         (mov<mode>cc): Likewise.
2489         (movdfcc): Likewise.
2490         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
2491         SFDF2 iterators to handle all combinations.
2492         (fseldfsf4): Likewise.
2493         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
2494         (fseldfdf4): Likewise.
2495         (fselsfdf4): Likewise.
2496         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
2497         comparison instructions that set a 0/-1 mask, and use it for
2498         floating point conditional move via XXSEL.
2499         (fpmask<mode>): Likewise.
2500         (xxsel<mode>): Likewise.
2501         * config/rs6000/predicates.md (min_max_operator): Delete, no
2502         longer used.
2503         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
2504         instructions that generate a 0/-1 mask for use with XXSEL.
2505         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
2506         say whether floating point min/max is available, either through
2507         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
2508         (TARGET_MINMAX_DF): Likewise.
2509
2510 2016-05-27  Alan Modra  <amodra@gmail.com>
2511
2512         PR rtl-optimization/71275
2513         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
2514         for update_equiv_regs and combine_and_move_insns.
2515
2516 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
2517
2518         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
2519         if_then_else or cond RTXes to calculate attribute value.
2520         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
2521         <attr "length_immediate>: Ditto.
2522         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
2523         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
2524         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
2525         <attr "type">: Ditto.
2526         <attr "prefix_data16">: Ditto.
2527         <attr "prefix_extra">: Ditto.
2528         <attr "length_immediate">: Ditto.
2529         <attr "prefix">: Ditto.
2530         (vec_set<mode>_0) <attr "isa">: Ditto.
2531         <attr "prefix_extra">: Ditto.
2532         <attr "length_immediate">: Ditto.
2533         <attr "prefix">: Ditto.
2534         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
2535         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
2536         (sse2_storelpd) <attr "prefix_data16">: Ditto.
2537         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
2538         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
2539         <attr "length_immediate">: Ditto.
2540         <attr "prefix">: Ditto.
2541         (sse2_movsd) <attr "length_immediate">: Ditto.
2542         <attr "prefix">: Ditto.
2543         (vec_concatv2df)  <attr "isa">: Ditto.
2544         <attr "prefix">: Ditto.
2545         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
2546         (*vec_extractv2di_1) <attr "isa">: Ditto.
2547         <attr "type">: Ditto.
2548         <attr "length_immediate">: Ditto.
2549         <attr "prefix_rex">: Ditto.
2550         <attr "prefix_extra">: Ditto.
2551         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
2552         <attr "prefix_extra">: Ditto.
2553         <attr "length_immediate">: Ditto.
2554         (vec_concatv2di) <attr "isa">: Ditto.
2555         <attr "prefix_extra">: Ditto.
2556         <attr "length_immediate">: Ditto.
2557         <attr "prefix">: Ditto.
2558
2559 2016-05-26  Martin Liska  <mliska@suse.cz>
2560
2561         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
2562         function.
2563         (operator+): Likewise.
2564         (operator-): Likewise.
2565         (comp_cost::operator+=): Likewise.
2566         (comp_cost::operator-=): Likewise.
2567         (comp_cost::operator/=): Likewise.
2568         (comp_cost::operator*=): Likewise.
2569         (operator<): Likewise.
2570         (operator==): Likewise.
2571         (operator<=): Likewise.
2572         (new_cost): Remove.
2573         (infinite_cost_p): Likewise.
2574         (add_costs): Likewise.
2575         (sub_costs): Likewise.
2576         (compare_costs): Likewise.
2577         (set_group_iv_cost): Use the newly introduced functions.
2578         (get_address_cost): Likewise.
2579         (get_shiftadd_cost): Likewise.
2580         (force_expr_to_var_cost): Likewise.
2581         (split_address_cost): Likewise.
2582         (ptr_difference_cost): Likewise.
2583         (difference_cost): Likewise.
2584         (get_computation_cost_at): Likewise.
2585         (determine_group_iv_cost_generic): Likewise.
2586         (determine_group_iv_cost_address): Likewise.
2587         (determine_group_iv_cost_cond): Likewise.
2588         (autoinc_possible_for_pair): Likewise.
2589         (determine_group_iv_costs): Likewise.
2590         (cheaper_cost_pair): Likewise.
2591         (iv_ca_recount_cost): Likewise.
2592         (iv_ca_set_no_cp): Likewise.
2593         (iv_ca_set_cp): Likewise.
2594         (iv_ca_cost): Likewise.
2595         (iv_ca_new): Likewise.
2596         (iv_ca_dump): Likewise.
2597         (iv_ca_narrow): Likewise.
2598         (iv_ca_prune): Likewise.
2599         (iv_ca_replace): Likewise.
2600         (try_add_cand_for): Likewise.
2601         (try_improve_iv_set): Likewise.
2602         (find_optimal_iv_set): Likewise.
2603
2604 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
2605
2606         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
2607         that internal functions will clobber all caller-saved registers.
2608
2609 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
2610
2611         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
2612         Return a better case_values_threshold when optimizing.
2613
2614 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
2615
2616         * config/aarch64/aarch64-simd.md (aarch64_combinez):
2617         Add ? to integer variant.
2618         (aarch64_combinez_be): Likewise.
2619
2620 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
2621
2622         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
2623         instead of x constraint.
2624         (vcvtps2ph256<mask_name>): Likewise.
2625
2626         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
2627         alternative.  Formatting fix.
2628
2629         * config/i386/sse.md
2630         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
2631         to ...
2632         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
2633         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
2634         maybe_evex prefix instead of vex.
2635         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
2636         EXT_REX_SSE_REG_P (op0) case in the splitter.
2637
2638 2016-05-25  Jeff Law  <law@redhat.com>
2639
2640         PR tree-optimization/71272
2641         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
2642         Update comments.  Add test for empty path.
2643
2644 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
2645
2646         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
2647         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
2648         special case builtin.
2649         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
2650         code for ALTIVEC_BUILTIN_VEC_CMPNE.
2651         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
2652         for __builtin_vec_cmpne.
2653
2654 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
2655
2656         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
2657         redundant test and bail out if the type of the new operand is not
2658         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
2659
2660 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
2661
2662         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
2663         (x_ix86_target_flags_explicit): Remove.
2664         * config/i386/i386.c (ix86_function_specific_save): Do not copy
2665         x_ix86_target_flags_explicit.
2666         (ix86_function_specific_restore): Ditto.
2667
2668 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
2669             H.J. Lu  <hongjiu.lu@intel.com>
2670
2671         PR target/70738
2672         * common/config/i386/i386-common.c
2673         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
2674         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
2675         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
2676         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
2677         (-mgeneral-regs-only): Add new option.
2678         * config/i386/i386.c (ix86_option_override_internal): Don't enable
2679         x87 instructions if only general registers are allowed.
2680         (ix86_target_string): Add ix86_flags argument. Handle additional
2681         flags options through ix86_flags argument.  Update all callers.
2682         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
2683
2684 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2685
2686         PR rtl-optimization/66940
2687         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
2688         decrementing desired_val will not overflow before performing these
2689         operations.
2690
2691 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
2692
2693         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
2694         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
2695         * config/i386/i386.c (enum ix86_builtins): Add
2696         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
2697         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
2698         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
2699         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
2700         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
2701         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
2702         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
2703         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
2704         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
2705         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
2706         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
2707         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
2708         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
2709         __builtin_ia32_cvtps2dq512_mask.
2710         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
2711         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
2712         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
2713         * config/i386/sse.md
2714         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
2715         Rename to ...
2716         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
2717         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
2718         to ...
2719         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
2720         (avx512f_vec_pack_sfix_v8df): New define_expand.
2721         (avx512f_roundpd512): Rename to ...
2722         (avx512f_round<castmode>512): ... this.  Change iterator.
2723         (avx512f_roundps512_sfix): New define_expand.
2724         (round<mode>2_sfix): Change iterator.
2725
2726 2016-05-25  Nick Clifton  <nickc@redhat.com>
2727
2728         * config/msp430/msp430.c (msp430_attr): Produce an error if a
2729         static interrupt handler is detected.
2730         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
2731         default linker script.
2732         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
2733         the low part of a symbolic pointer.
2734
2735 2016-05-25  Richard Biener  <rguenther@suse.de>
2736
2737         PR tree-optimization/71261
2738         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
2739         interesting stmt instead of immediate uses when looking
2740         for the use operand to replace.
2741
2742 2016-05-25  Martin Liska  <mliska@suse.cz>
2743
2744         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
2745
2746 2016-05-25  Richard Biener  <rguenther@suse.de>
2747
2748         PR tree-optimization/71264
2749         * tree-vect-stmts.c (vect_init_vector): Properly deal with
2750         vector type val.
2751
2752 2016-05-25  Martin Liska  <mliska@suse.cz>
2753
2754         PR tree-optimization/71239
2755         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
2756         if DECL_SIZE is NULL.
2757
2758 2016-05-25  Richard Biener  <rguenther@suse.de>
2759
2760         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
2761         * tree-if-conv.c (pass_data_if_conversion): Use it.
2762
2763 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2764
2765         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
2766         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
2767         * varpool.c (varpool_node::get_availability): Likewise.
2768
2769 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2770
2771         * config/rs6000/altivec.md (VNEG iterator): New iterator for
2772         VNEGW/VNEGD instructions.
2773         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
2774         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
2775         support for ISA 3.0 VNEGW/VNEGD instructions.
2776
2777 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
2778
2779         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
2780         pointers inside OACC_DATA regions.
2781         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
2782         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
2783         (gimplify_adjust_omp_clauses): Fix typo in comment.
2784
2785 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2786
2787         * config/rs6000/altivec.md (VParity): New mode iterator for vector
2788         parity built-in functions.
2789         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
2790         zeros.
2791         (p9v_parity<mode>2): Likewise.
2792         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
2793         parity.
2794         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
2795         (parity<mode>2): ISA 3.0 expander for vector parity.
2796         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
2797         power9 built-ins.
2798         (BU_P9_64BIT_MISC_0): Likewise.
2799         (BU_P9_MISC_0): Likewise.
2800         (BU_P9V_AV_1): Likewise.
2801         (BU_P9V_AV_2): Likewise.
2802         (BU_P9V_AV_3): Likewise.
2803         (BU_P9V_AV_P): Likewise.
2804         (BU_P9V_VSX_1): Likewise.
2805         (BU_P9V_OVERLOAD_1): Likewise.
2806         (BU_P9V_OVERLOAD_2): Likewise.
2807         (BU_P9V_OVERLOAD_3): Likewise.
2808         (VCTZB): Add vector count trailing zeros support.
2809         (VCTZH): Likewise.
2810         (VCTZW): Likewise.
2811         (VCTZD): Likewise.
2812         (VPRTYBD): Add vector parity support.
2813         (VPRTYBQ): Likewise.
2814         (VPRTYBW): Likewise.
2815         (VCTZ): Add overloaded vector count trailing zeros support.
2816         (VPRTYB): Add overloaded vector parity support.
2817         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2818         overloaded vector count trailing zeros and parity instructions.
2819         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
2820         vector parity support.
2821         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
2822         trailing zeros support.
2823         (vec_cntlz): Likewise.
2824         (vec_vctzb): Likewise.
2825         (vec_vctzd): Likewise.
2826         (vec_vctzh): Likewise.
2827         (vec_vctzw): Likewise.
2828         (vec_vprtyb): Add ISA 3.0 vector parity support.
2829         (vec_vprtybd): Likewise.
2830         (vec_vprtybw): Likewise.
2831         (vec_vprtybq): Likewise.
2832         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2833         the ISA 3.0 vector count trailing zeros and vector parity built-in
2834         functions.
2835
2836 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
2837
2838         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
2839         when there is stmt_to_insert.
2840
2841 2016-05-24  Martin Sebor  <msebor@redhat.com>
2842
2843         PR c++/71147
2844         * tree.h (complete_or_array_type_p): New inline function.
2845
2846 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
2847
2848         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
2849         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
2850         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
2851
2852         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
2853         Limit 1st alternative to noavx isa, split 2nd alternative into one
2854         noavx and one avx alternative, use *x and Bm in the former and
2855         x and m in the latter.
2856
2857         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
2858         of sse4 for the first alternative, drop %v from the template
2859         and d operand modifier.  Split second alternative into one sse4_noavx
2860         and one avx alternative, use *x instead of *v in the former and v
2861         instead of *v in the latter.
2862         (*sse4_1_extractps): Use noavx isa instead of * for the first
2863         alternative, drop %v from the template.  Split second alternative into
2864         one noavx and one avx alternative, use *x instead of *v in the
2865         former and v instead of *v in the latter.
2866         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
2867         with noavx and the last one with avx.
2868         (sse4_1_phminposuw): Guard first alternative with noavx isa,
2869         split the second one into one noavx and one avx alternative,
2870         use *x and Bm in the former and x and m in the latter one.
2871         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
2872         alternatives.
2873
2874         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
2875         first two alternatives to noavx, use *x instead of *v in the second
2876         one, add avx alternative without *.
2877         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
2878         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
2879         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
2880
2881 2016-05-24  Jeff Law  <law@redhat.com>
2882
2883         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
2884         New function, extracted from...
2885         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
2886         Allow simple copies and constant initializations in the SSA chain.
2887
2888 2016-05-24  Marek Polacek  <polacek@redhat.com>
2889
2890         PR c/71249
2891         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
2892         scope.
2893
2894 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
2895
2896         PR c++/71257
2897         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
2898         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
2899         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
2900         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
2901         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
2902
2903 2016-05-24  Richard Biener  <rguenther@suse.de>
2904
2905         PR tree-optimization/71240
2906         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
2907         has integral type.
2908
2909 2016-05-24  Richard Biener  <rguenther@suse.de>
2910
2911         PR tree-optimization/71230
2912         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
2913
2914 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
2915
2916         * tree-vectorizer.h (vectorizable_comparison): Delete.
2917         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
2918         PURE_SLP_STMT check.
2919         * tree-vect-stmts.c (vectorizable_call): Likewise.
2920         (vectorizable_simd_clone_call): Likewise.
2921         (vectorizable_conversion): Likewise.
2922         (vectorizable_assignment): Likewise.
2923         (vectorizable_shift): Likewise.
2924         (vectorizable_operation): Likewise.
2925         (vectorizable_load): Likewise.
2926         (vectorizable_condition): Likewise.
2927         (vectorizable_store): Likewise.  Assert that we don't have
2928         hybrid SLP.
2929         (vectorizable_comparison): Make static.  Remove redundant
2930         PURE_SLP_STMT check.
2931         (vect_transform_stmt): Assert that we always have an slp_node
2932         if PURE_SLP_STMT.
2933
2934 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2935
2936         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
2937         operands[2] against 1 with comparison against CONST1_RTX.
2938         (<shift>di3_neon): Likewise.
2939         * config/arm/predicates.md (const0_operand): Replace with comparison
2940         against CONST0_RTX.
2941
2942 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2943
2944         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
2945         operands[2] against 1 with comparison against CONST1_RTX.
2946         (ashrdi3): Likewise.
2947         (lshrdi3): Likewise.
2948         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
2949         UINTVAL.
2950         (ashrsi3): Likewise.
2951         (lshrsi3): Likewise.
2952         (rotrsi3): Likewise.
2953         (define_split above *compareqi_eq0): Likewise.
2954         (define_split above "prologue"): Likewise.
2955         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
2956         * config/arm/predicates.md (shift_operator): Likewise.
2957         (shift_nomul_operator): Likewise.
2958         (sat_shift_operator): Likewise.
2959         (thumb1_cmp_operand): Likewise.
2960         (const_neon_scalar_shift_amount_operand): Replace manual range
2961         check with IN_RANGE.
2962         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
2963         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
2964
2965 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2966
2967         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
2968         with HOST_WIDE_INT_1.
2969         (insv): Likewise.
2970         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
2971         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
2972         (arm_canonicalize_comparison): Likewise.
2973         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
2974         HOST_WIDE_INT_1.
2975         (thumb1_size_rtx_costs): Likewise.
2976         (vfp_const_double_index): Replace cast of 1 to unsigned
2977         HOST_WIDE_INT with HOST_WIDE_INT_1U.
2978         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
2979         HOST_WIDE_INT_1.
2980         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
2981         HOST_WIDE_INT with HOST_WIDE_INT_1U.
2982         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
2983         HOST_WIDE_INT with HOST_WIDE_INT_1.
2984
2985 2016-05-24  Marek Polacek  <polacek@redhat.com>
2986
2987         * tree-cfg.h (should_remove_lhs_p): New predicate.
2988         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
2989         * gimplify.c (gimplify_modify_expr): Likewise.
2990         * tree-cfg.c (verify_gimple_call): Likewise.
2991         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
2992         * gimple-fold.c: Include "tree-cfg.h".
2993         (gimple_fold_call): Use should_remove_lhs_p.
2994
2995 2016-05-24  Richard Biener  <rguenther@suse.de>
2996
2997         PR tree-optimization/71253
2998         * cfganal.h (control_dependences): Make robust against edge
2999         and BB removal.
3000         (control_dependences::control_dependences): Remove edge_list argument.
3001         (control_dependences::get_edge): Remove.
3002         (control_dependences::get_edge_src): Add.
3003         (control_dependences::get_edge_dest): Likewise.
3004         (control_dependences::m_el): Make a vector of edge src/dest index.
3005         * cfganal.c (control_dependences::find_control_dependence): Adjust.
3006         (control_dependences::control_dependences): Likewise.
3007         (control_dependences::~control_dependence): Likewise.
3008         (control_dependences::get_edge): Remove.
3009         (control_dependences::get_edge_src): Add.
3010         (control_dependences::get_edge_dest): Likewise.
3011         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
3012         get_edge_src.
3013         (perform_tree_ssa_dce): Adjust.
3014         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
3015         get_edge_src.
3016         (pass_loop_distribution::execute): Adjust.  Do loop destroying
3017         conditional on changed.
3018
3019 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3020
3021         PR target/69857
3022         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
3023         return.  Reindent transformation comment and mention the ARM state
3024         behavior.
3025
3026 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
3027
3028         PR middle-end/71252
3029         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
3030         after build_and_add_sum creates new use stmt.
3031
3032 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
3033
3034         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
3035         load_lanes/grouped_load classification comes first.  Don't check
3036         whether the vectorization factor is a multiple of the group size
3037         for load_lanes.
3038
3039 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
3040
3041         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
3042         GROUP_GAP for single-element interleaving.
3043         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
3044         variable.
3045
3046 2016-05-24  Richard Biener  <rguenther@suse.de>
3047
3048         PR middle-end/70434
3049         PR c/69504
3050         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
3051         bases which are accessed with non-invariant indices.
3052         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
3053         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
3054
3055 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
3056
3057         PR middle-end/71170
3058         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
3059         (add_to_ops_vec): Add stmt_to_insert.
3060         (add_repeat_to_ops_vec): Init stmt_to_insert.
3061         (insert_stmt_before_use): New.
3062         (transform_add_to_multiply): Remove mult_stmt insertion and add it
3063         to ops vector.
3064         (get_ops): Init stmt_to_insert.
3065         (maybe_optimize_range_tests): Likewise.
3066         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
3067         (rewrite_expr_tree_parallel): Likewise.
3068         (reassociate_bb): Likewise.
3069
3070 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3071
3072         PR target/71201
3073         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
3074         ISA 3.0 xxperm fusion alternative.
3075         (altivec_vperm_v8hiv16qi): Likewise.
3076         (altivec_vperm_<mode>_uns_internal): Likewise.
3077         (vperm_v8hiv4si): Likewise.
3078         (vperm_v16qiv8hi): Likewise.
3079
3080 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3081             Kelvin Nilsen  <kelvin@gcc.gnu.org>
3082
3083         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
3084         vpermr/xxpermr on ISA 3.0.
3085         (altivec_expand_vec_perm_le): Likewise.
3086         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
3087         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
3088         ISA 3.0.
3089
3090 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
3091
3092         * config/i386/i386.h (IS_STACK_MODE): Enable for
3093         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
3094         SSE_FLOAT_MODE_P macros.
3095         * config/i386/i386.c (ix86_preferred_reload_class): Use
3096         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
3097         Cleanup regclass processing for CONST_DOUBLE_P.
3098         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
3099         (ix86_rtx_costs): Remove redundant TARGET_80387 check
3100         with IS_STACK_MODE macro.
3101         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
3102         with TARGET_SSE2.
3103         (*movdf_internal): Use IS_STACK_MODE macro.
3104         (*movsf_internal): Ditto.
3105
3106 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
3107
3108         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
3109         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
3110
3111 2016-05-23  Jeff Law  <law@redhat.com>
3112
3113         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
3114         extracted from ...
3115         (fsm_find_control_statement_thread_paths): Call it.
3116
3117 2016-05-23  Martin Jambor  <mjambor@suse.cz>
3118
3119         PR ipa/71234
3120         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
3121         from_global_constant if t is not NULL.
3122
3123 2016-05-23  Marek Polacek  <polacek@redhat.com>
3124
3125         PR c/49859
3126         * common.opt (Wswitch-unreachable): New option.
3127         * doc/invoke.texi: Document -Wswitch-unreachable.
3128         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
3129         warning.
3130
3131 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
3132
3133         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
3134         TMR_INDEX is non-NULL.
3135
3136 2016-05-23  Richard Biener  <rguenther@suse.de>
3137
3138         PR tree-optimization/71230
3139         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
3140         (try_special_add_to_ops): ... here.  Always test for single-use.
3141
3142 2016-05-23  Martin Jambor  <mjambor@suse.cz>
3143
3144         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
3145         default block if a PHI node in the original one would be resized.
3146
3147 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3148
3149         PR tree-optimization/58135
3150         * tree-vect-slp.c: When group size is not multiple
3151         of vector size, allow splitting of store group at
3152         vector boundary.
3153
3154 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
3155
3156         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
3157
3158 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
3159
3160         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
3161         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
3162         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
3163         of 64x2.
3164
3165         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
3166         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
3167         v constraint instead of x and vinserti32x4 insn.
3168
3169         * config/i386/sse.md (i128vldq): New mode iterator.
3170         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
3171         avx512dq and avx512vl alternatives.
3172
3173         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
3174         constraint, use maybe_evex prefix instead of vex.
3175         (vec_dupv4sf): Use v constraint instead of x for output
3176         operand except for noavx alternative, use Yv constraint
3177         instead of x for input.  Use maybe_evex prefix instead of vex.
3178         (*vec_dupv4si): Likewise.
3179         (*vec_dupv2di): Likewise.
3180
3181 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
3182
3183         PR middle-end/40921
3184         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
3185         (linearize_expr_tree): Call try_special_add_to_ops.
3186         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
3187
3188 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3189
3190         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
3191         to computed stack_usage.
3192
3193 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3194
3195         PR target/71103
3196         * config/avr/avr.md (define_expand "mov<mode>"): If the source
3197         operand is subreg (symbol_ref) then move the symbol ref to register.
3198
3199 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
3200
3201         * tree.c (array_at_struct_end_p): Look through MEM_REF.
3202
3203 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
3204
3205         PR middle-end/71179
3206         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
3207         VECTOR type.
3208
3209 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
3210
3211         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
3212         ranges by calling get_single_symbol and tidy up.  Look more closely
3213         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
3214
3215 2016-05-20  Jeff Law  <law@redhat.com>
3216
3217         * bitmap.c (bitmap_find_bit): Remove useless test.
3218
3219 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
3220
3221         * function.c (thread_prologue_and_epilogue_insns): Commit the
3222         insertion of the epilogue.
3223
3224 2016-05-20  Martin Jambor  <mjambor@suse.cz>
3225
3226         PR tree-optimization/70884
3227         * tree-sra.c (initialize_constant_pool_replacements): Do not check
3228         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
3229         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
3230         of constant pool data as a reason for scalarization.
3231
3232 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
3233
3234         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
3235         for naked functions.
3236         (thumb1_expand_prologue): Likewise.
3237
3238 2016-05-20  Nathan Sidwell  <nathan@acm.org>
3239
3240         * config/nvptx/nptx.c (nvptx_option_override): Only set
3241         flag_toplevel_reorder, if not explicitly specified.  Set
3242         flag_no_common, unless explicitly specified.
3243
3244 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
3245
3246         * calls.c (can_implement_as_sibling_call_p): Mark param
3247         reg_parm_stack_space with ATTRIBUTE_UNUSED.
3248
3249 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
3250
3251         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
3252         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
3253         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
3254         constants.
3255         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
3256         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
3257         and CASE_CONST_ANY.
3258
3259 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
3260
3261         * config/nvptx/nvptx.md (sincossf3): New pattern.
3262
3263 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
3264
3265         * calls.c (maybe_complain_about_tail_call): New function.
3266         (initialize_argument_information): Call
3267         maybe_complain_about_tail_call when clearing *may_tailcall.
3268         (can_implement_as_sibling_call_p): Call
3269         maybe_complain_about_tail_call when returning false.
3270         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
3271         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
3272         if tail-call optimization fails.
3273         * cfgexpand.c (expand_call_stmt): Initialize
3274         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
3275         * gimple-pretty-print.c (dump_gimple_call): Dump
3276         gimple_call_must_tail_p.
3277         * gimple.c (gimple_build_call_from_tree): Call
3278         gimple_call_set_must_tail with the value of
3279         CALL_EXPR_MUST_TAIL_CALL.
3280         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
3281         (gimple_call_set_must_tail): New function.
3282         (gimple_call_must_tail_p): New function.
3283         * print-tree.c (print_node): Update printing of TREE_STATIC
3284         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
3285         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
3286         trailing comment listing applicable flags.
3287         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
3288
3289 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
3290
3291         * calls.c (expand_call): Move "Rest of purposes for tail call
3292         optimizations to fail" to...
3293         (can_implement_as_sibling_call_p): ...this new function, and
3294         split into multiple "if" statements.
3295
3296 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
3297
3298         * cfgloop.h (expected_loop_iterations_unbounded,
3299         expected_loop_iterations): Unconstify.
3300         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
3301         profile with known upper bound; return 3 when profile is absent.
3302         (expected_loop_iterations): Update.
3303
3304 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
3305
3306         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
3307         and get_max_loop_iterations_int.
3308
3309 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
3310
3311         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
3312         realistic upper bounds here.
3313
3314 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
3315
3316         PR c++/71210
3317         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
3318         calls if the LHS is variable length or has addressable type.
3319         If targets[0]->decl is a noreturn call with void return type and
3320         zero arguments, adjust fntype and remove lhs in that case.
3321
3322 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
3323
3324         PR tree-optimization/71079
3325         PR tree-optimization/71206
3326         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
3327
3328 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3329
3330         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
3331         (get_vec_alignment_for_array_decl): Likewise.
3332         (get_vec_alignment_for_record_decl): Likewise.
3333         (increase_alignment::execute): Move code to find alignment to
3334         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
3335         (type_align_map): New hash_map.
3336
3337 2016-05-20  Richard Guenther  <rguenther@suse.de>
3338
3339         PR tree-optimization/29756
3340         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
3341         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
3342         * fold-const.c (operand_equal_p): Likewise.
3343         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
3344         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
3345         * tree-inline.c (estimate_operator_cost): Likewise.
3346         * tree-pretty-print.c (dump_generic_node): Likewise.
3347         * tree-ssa-operands.c (get_expr_operands): Likewise.
3348         * cfgexpand.c (expand_debug_expr): Likewise.
3349         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
3350         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
3351         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
3352         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
3353         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
3354         (execute_update_addresses_taken): Do it.
3355
3356 2016-05-20  Richard Biener  <rguenther@suse.de>
3357
3358         PR tree-optimization/71185
3359         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
3360         register operations.
3361
3362 2016-05-20  Richard Biener  <rguenther@suse.de>
3363
3364         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
3365         gimple_seq_add_seq_without_update.
3366         (release_bb_predicate): Assert we have no operands to free.
3367         (if_convertible_loop_p_1): Calculate post dominators later.
3368         Do not free BB predicates here.
3369         (combine_blocks): Do not recompute BB predicates.
3370         (version_loop_for_if_conversion): Save BB predicates around
3371         loop versioning.
3372
3373 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
3374
3375         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
3376         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
3377         code.  Ignore sibcalls on EDGE_IGNORE edges.
3378         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
3379         on edges for sibcalls that run without prologue.  The rest of the
3380         function is combined from...
3381         (fix_fake_fallthrough_edge): ... this, and ...
3382         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
3383         function argument, make it a local variable.
3384
3385 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
3386
3387         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
3388         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
3389         for 32-bit mode and SEH for 64-bit.
3390         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
3391         TARGET_64BIT_DEFAULT.
3392
3393 2016-05-19  Ryan Burn  <contact@rnburn.com>
3394
3395         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
3396         * gengtype.c (open_base_files): Add cilk.h to ifiles.
3397
3398 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
3399
3400         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
3401         force pending loads from memory.
3402
3403 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3404
3405         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
3406         (UNSPEC_DARN_32): New unspec constant.
3407         (UNSPEC_DARN_RAW): New unspec constant.
3408         (darn_32): New instruction.
3409         (darn_raw): New instruction.
3410         (darn): New instruction.
3411         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
3412         support and documentation for this macro.
3413         (BU_P9_MISC_1): New macro definition.
3414         (BU_P9_64BIT_MISC_0): New macro definition.
3415         (BU_P9_MISC_0): New macro definition.
3416         (darn_32): New builtin definition.
3417         (darn_raw): New builtin definition.
3418         (darn): New builtin definition.
3419         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
3420         RS6000_BUILTIN_0 directives to surround each occurrence of
3421         #include "rs6000-builtin.def".
3422         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
3423         RS6000_BTM_64BIT flags to the returned mask, depending on
3424         configuration.
3425         (def_builtin): Correct an error in the assignments made to the
3426         debugging variable attr_string.
3427         (rs6000_expand_builtin): Add support for no-operand built-in
3428         functions.
3429         (builtin_function_type): Remove fatal_error assertion that is no
3430         longer valid.
3431         (rs6000_common_init_builtins): Add support for no-operand built-in
3432         functions.
3433         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
3434         definition.
3435         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
3436         definition.
3437         (RS6000_BTM_64BIT): New macro definition.
3438         * doc/extend.texi: Document __builtin_darn (void),
3439         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
3440         functions.
3441
3442 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
3443
3444         * tree-vect-loop.c (vect_analyze_loop_2): Use also
3445         max_loop_iterations_int.
3446
3447 2016-05-19  Marek Polacek  <polacek@redhat.com>
3448
3449         PR tree-optimization/71031
3450         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
3451         condition and adjust the code a bit.
3452
3453 2016-05-19  Martin Liska  <mliska@suse.cz>
3454
3455         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
3456         auto_vec instead of vec.
3457
3458 2016-05-19  Martin Liska  <mliska@suse.cz>
3459
3460         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
3461
3462 2016-05-19  Martin Liska  <mliska@suse.cz>
3463
3464         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
3465
3466 2016-05-19  Martin Liska  <mliska@suse.cz>
3467
3468         * ipa-pure-const.c (set_function_state): Remove an existing
3469         funct_state.
3470         (remove_node_data): Do not free it as it's released
3471         in set_function_state.
3472
3473 2016-05-19  Martin Liska  <mliska@suse.cz>
3474
3475         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
3476         bitmap.
3477
3478 2016-05-19  Martin Liska  <mliska@suse.cz>
3479
3480         * omp-simd-clone.c (simd_clone_adjust): Release vector.
3481
3482 2016-05-19  Martin Liska  <mliska@suse.cz>
3483
3484         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
3485         an auto_vec instead of re-creating it.
3486
3487 2016-05-19  Martin Liska  <mliska@suse.cz>
3488
3489         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
3490         auto_vec instead of vec.
3491
3492 2016-05-19  Martin Liska  <mliska@suse.cz>
3493
3494         * lto-section-in.c (lto_get_section_data): Call
3495         lto_check_version with additional argument.
3496         * lto-streamer.c (lto_check_version): Add new argument.
3497         * lto-streamer.h (lto_check_version): Likewise.
3498
3499 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3500
3501         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
3502         Don't add cost of inner memory when handling sign-extended loads.
3503
3504 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
3505
3506         PR rtl-optimization/71148
3507         * cse.c (cse_main): Free dominance info.
3508         (rest_of_handle_cse): Don't free dominance info.
3509         (rest_of_handle_cse2): Likewise.
3510         (rest_of_handle_cse_after_global_opts): Likewise.
3511
3512 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3513
3514         PR target/71056
3515         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
3516         NULL_TREE early if NEON is not available.  Remove now redundant check
3517         in ARM_CHECK_BUILTIN_MODE.
3518
3519 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
3520
3521         PR sanitizer/64354
3522         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
3523         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
3524         * doc/cpp.texi: Document new macros.
3525
3526 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
3527
3528         PR tree-optimization/69848
3529         * tree-vect-loop.c (vectorizable_reduction): Don't factor
3530         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
3531
3532 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
3533
3534         * function.c (thread_prologue_and_epilogue_insn): Move the
3535         "goto epilogue_done" one block later.
3536
3537 2016-05-19  Richard Biener  <rguenther@suse.de>
3538
3539         PR tree-optimization/70729
3540         * passes.def: Move LIM pass before PRE.  Remove no longer
3541         required copyprop and move first DCE out of the loop pipeline.
3542
3543 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
3544
3545         PR driver/69265
3546         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
3547         (OBJS-libcommon-target): ...here.
3548         * opts-common.c: Include spellcheck.h.
3549         (cmdline_handle_error): Build a vec of valid options and use it
3550         to suggest provide hints for misspelled arguments.
3551
3552 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
3553
3554         PR c++/71100
3555         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
3556         lhs if it has TREE_ADDRESSABLE type.
3557
3558 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
3559
3560         PR target/71145
3561         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
3562         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
3563
3564 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3565
3566         PR ipa/69708
3567         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
3568         input for NOP_EXPR pass-through functions.
3569         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
3570         aggregate global constant VAR_DECLs in constant jump functions.
3571
3572 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3573
3574         PR ipa/69708
3575         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
3576         from TREE_READONLY parameters.
3577
3578 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3579
3580         PR ipa/69708
3581         * cgraph.h (cgraph_indirect_call_info): New field
3582         guaranteed_unmodified.
3583         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
3584         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
3585         appropriate.
3586         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
3587         pass the parameter value to ipa_find_agg_cst_for_param.
3588         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
3589         guaranteed_unmodified, store AA results there instead of bailing out
3590         if present.
3591         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
3592         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
3593         (find_constructor_constant_at_offset): New function.
3594         (ipa_find_agg_cst_from_init): Likewise.
3595         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
3596         static initializers of contants, report back through a new paameter
3597         from_global_constant if that was the case.
3598         (try_make_edge_direct_simple_call): Also pass parameter value to
3599         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
3600         appropriate.
3601         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
3602         (ipa_read_indirect_edge_info): Likewise.
3603         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
3604         (ipa_load_from_parm_agg): Likewise.
3605
3606 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
3607
3608         PR rtl-optimization/71150
3609         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
3610         check.
3611
3612 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3613
3614         PR target/70915
3615         * config/rs6000/constraints.md (wE constraint): New constraint
3616         for a vector constant that can be loaded with XXSPLTIB.
3617         (wM constraint): New constraint for a vector constant of a 1's.
3618         (wS constraint): New constraint for a vector constant that can be
3619         loaded with XXSPLTIB and a vector sign extend instruction.
3620         * config/rs6000/predicates.md (xxspltib_constant_split): New
3621         predicates for wE/wS constraints.
3622         (xxspltib_constant_nosplit): Likewise.
3623         (easy_vector_constant): Add support for constants that can be
3624         loaded via XXSPLTIB.
3625         (all_ones_constant): New predicate for vector constant with all
3626         1's set.
3627         (splat_input_operand): Add support for ISA 3.0 word splat operations.
3628         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
3629         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
3630         instruction and possibly with a sign extension.
3631         (output_vec_const_move): Add support for XXSPLTIB. If we are
3632         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
3633         instead of XXLXOR/XXLORC.
3634         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
3635         operations.
3636         (rs6000_legitimize_reload_address): Likewise.
3637         (rs6000_output_move_128bit): Use output_vec_const_move to emit
3638         constants.
3639         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
3640         combine VSX_M and VSX_M2 into one iterator.
3641         (VSX_M2): Likewise.
3642         (VSINT_84): New iterators for loading constants with XXSPLTIB.
3643         (VSINT_842): Likewise.
3644         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
3645         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
3646         XXSPLTIB instruction.
3647         (xxspltib_<mode>_nosplit): Likewise.
3648         (xxspltib_<mode>_split): New insn to load up constants with
3649         XXSPLTIB and a sign extend instruction.
3650         (vsx_mov<mode>): Replace single move that handled all vector types
3651         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
3652         moves (when -mvsx-timode is in effect) into the main vector
3653         moves.  Eliminate separate moves for <VSr> <VSa>, where the
3654         preferred register class (<VSr>) is listed first, and the
3655         secondary register class (<VSa>) is listed second with a '?' to
3656         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
3657         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
3658         that if the register was involved in a slow operation, the
3659         clear/set operation does not wait for the slow operation to
3660         finish.  Adjust the length attributes for 32-bit mode.  Use
3661         rs6000_output_move_128bit and drop the use of the string
3662         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
3663         spacing so that the alternatives and attributes don't generate
3664         long lines, and put things in columns, so that it is easier to
3665         match up the operands and attributes with the insn alternatives.
3666         (vsx_mov<mode>_64bit): Likewise.
3667         (vsx_mov<mode>_32bit): Likewise.
3668         (vsx_movti_64bit): Fold movti into normal vector moves.
3669         (vsx_movti_32bit): Likewise.
3670         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
3671         splat instructions.
3672         (vsx_splat_v4si_internal): Likewise.
3673         (vsx_splat_v4sf_internal): Likewise.
3674         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
3675         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
3676         extend vector elements.
3677         (vsx_sign_extend_hi_<mode>): Likewise.
3678         (vsx_sign_extend_si_v2di): Likewise.
3679         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
3680         declaration.
3681         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
3682         constraints.  Add trailing period to wL documentation.
3683
3684 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
3685
3686         PR middle-end/71020
3687         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
3688         * tree-dfa.c (replace_abnormal_ssa_names): New function.
3689         * tree-call-cdce.c: Include tree-dfa.h.
3690         (can_guard_call_p): New function, extracted from...
3691         (can_use_internal_fn): ...here.
3692         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
3693         and return void.
3694         (shrink_wrap_one_built_in_call): Likewise.
3695         (use_internal_fn): Likewise.
3696         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
3697         and return void.  Call replace_abnormal_ssa_names.
3698         (pass_call_cdce::execute): Check can_guard_call_p during the
3699         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
3700         will always change something.
3701
3702 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3703
3704         PR ipa/70646
3705         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
3706         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
3707
3708 2016-05-18  Martin Jambor  <mjambor@suse.cz>
3709
3710         PR ipa/70646
3711         * ipa-inline.h (condition): New field size.
3712         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
3713         for comaprison and store it into the new condition.
3714         (evaluate_conditions_for_known_args): Use condition size to check
3715         access sizes for all but CHANGED conditions.
3716         (unmodified_parm_1): New parameter size_p, store access size into it.
3717         (unmodified_parm): Likewise.
3718         (unmodified_parm_or_parm_agg_item): Likewise.
3719         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
3720         (set_cond_stmt_execution_predicate): Extract access sizes and store
3721         them to conditions.
3722         (set_switch_stmt_execution_predicate): Likewise.
3723         (will_be_nonconstant_expr_predicate): Likewise.
3724         (will_be_nonconstant_predicate): Likewise.
3725         (inline_read_section): Stream condition size.
3726         (inline_write_summary): Likewise.
3727
3728 2016-05-18  Richard Biener  <rguenther@suse.de>
3729
3730         * tree-ssa-loop-im.c (determine_max_movement): Properly add
3731         condition cost to PHI cost instead of total_cost.
3732
3733 2016-05-18  Martin Liska  <mliska@suse.cz>
3734
3735         PR fortran/70856
3736         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
3737         merged variables.
3738
3739 2016-05-18  Richard Biener  <rguenther@suse.de>
3740
3741         * lto-streamer.h (LTO_major_version): Bump to 6.
3742
3743 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
3744
3745         * function.c (make_split_prologue_seq, make_prologue_seq,
3746         make_epilogue_seq): New functions, factored out from...
3747         (thread_prologue_and_epilogue_insns): Here.
3748
3749 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
3750
3751         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
3752         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
3753         of before.  Add a comment.
3754
3755 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
3756
3757         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
3758         expression pointer, not pointer to the pointer.
3759
3760 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
3761
3762         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
3763         (avx2_pbroadcast<mode>): Add another alternative with v instead
3764         of x constraints in it, using <pbroadcast_evex_isa> isa.
3765         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
3766
3767         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
3768         constraint x instead of v in second alternative, add avx512bw
3769         alternative.
3770
3771         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
3772         constraint x instead of v in second alternative, add avx512bw
3773         alternative.
3774
3775         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
3776         constraint x instead of v in second alternative, add avx512bw
3777         alternative.
3778
3779         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
3780         avx512bw alternative.
3781
3782 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3783
3784         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
3785         array to 128 chars.
3786         (define_insn "*andnottf3"): Ditto.
3787         (define_insn "*<code><mode>3"/any_logic): Ditto.
3788         (define_insn "*<code>tf3"/any_logic): Ditto.
3789         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
3790         operand to block AVX-512VL insn variant emit when it is not enabled.
3791
3792 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3793
3794         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
3795         constraint fot SF mode.
3796
3797 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
3798             Kirill Yukhin  <kirill.yukhin@intel.com>
3799
3800         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
3801         modifiers.
3802         (define_insn "rsqrt14<mode>"): Ditto.
3803         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3804         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3805         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
3806         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3807         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
3808         Ditto.
3809         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
3810         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
3811         * config/i386/i386.c (ix86_print_operand): Expand check for size
3812         override codes for Intel syntax.
3813
3814 2016-05-18  Richard Biener  <rguenther@suse.de>
3815
3816         PR tree-optimization/71168
3817         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
3818         initialization earlier.
3819
3820 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
3821
3822         * config/aarch64/aarch64-simd.md
3823         (aarch64_reduc_plus_internal<mode>): Rename to...
3824         (reduc_plus_scal): ...This, and remove previous implementation.
3825
3826 2016-05-18  Richard Biener  <rguenther@suse.de>
3827
3828         * passes.def: Put late dse and cd_dce in canonical order.
3829
3830 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
3831
3832         * ipa-inline-transform.c (preserve_function_body_p): Look for
3833         first non-thunk clone.
3834         (save_function_body): Save into first non-thunk.
3835         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
3836         up call stmt id.
3837         (lto_output_node): Inline thunks don't need body in every
3838         partition.
3839         * lto-streamer-in.c: Do not fixup thunk clones.
3840         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
3841         thunks.
3842         * tree-inline.c (copy_bb): Be prepared for target node to be new after
3843         folding suceeds.
3844
3845 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
3846
3847         PR middle-end/63586
3848         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
3849         (reassociate_bb): Call transform_add_to_multiply.
3850
3851 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
3852
3853         * config/aarch64/aarch64.c (all_extensions): Removed unused
3854         static variable.
3855
3856 2016-05-17  Nathan Sidwell  <nathan@acm.org>
3857
3858         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
3859         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
3860
3861 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
3862
3863         PR tree-optimization/54579
3864         PR middle-end/55299
3865         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
3866
3867 2016-05-17  Marek Polacek  <polacek@redhat.com>
3868
3869         PR ipa/71146
3870         * tree-inline.c (expand_call_inline): Call
3871         maybe_remove_unused_call_args.
3872
3873 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
3874
3875         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
3876         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
3877         * doc/md.texi (fmin@var{m}3): Likewise.
3878
3879 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
3880
3881         * match.pd (X & C): New transformation.
3882
3883 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
3884
3885         * match.pd (~X & Y): New transformation.
3886
3887 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
3888
3889         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
3890         information for new SSA_NAME.
3891         (simplify_conversion_using_ranges): Get range through get_range_info
3892         instead of get_value_range.
3893
3894 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
3895
3896         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
3897         Remove inline assembly.
3898         (vmvn_s16): Likewise.
3899         (vmvn_s32): Likewise.
3900         (vmvn_u8): Likewise.
3901         (vmvn_u16): Likewise.
3902         (vmvn_u32): Likewise.
3903         (vmvnq_s8): Likewise.
3904         (vmvnq_s16): Likewise.
3905         (vmvnq_s32): Likewise.
3906         (vmvnq_u8): Likewise.
3907         (vmvnq_u16): Likewise.
3908         (vmvnq_u32): Likewise.
3909         (vmvn_p8): Likewise.
3910         (vmvnq_p16): Likewise.
3911
3912 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
3913
3914         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
3915         Use builtin.
3916         (vmul_n_s16): Likewise.
3917         (vmul_n_s32): Likewise.
3918         (vmul_n_u16): Likewise.
3919         (vmul_n_u32): Likewise.
3920         (vmulq_n_f32): Likewise.
3921         (vmulq_n_f64): Likewise.
3922         (vmulq_n_s16): Likewise.
3923         (vmulq_n_s32): Likewise.
3924         (vmulq_n_u16): Likewise.
3925         (vmulq_n_u32): Likewise.
3926
3927 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
3928
3929         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
3930         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
3931
3932 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
3933
3934         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
3935         to *aarch64_fma4_elt_from_dup<mode>.
3936         (*aarch64_fnma4_elt_to_128df): Rename to
3937         *aarch64_fnma4_elt_from_dup<mode>.
3938         * config/aarch64/arm_neon.h (vfma_n_f64): New.
3939         (vfms_n_f32): Likewise.
3940         (vfms_n_f64): Likewise.
3941         (vfmsq_n_f32): Likewise.
3942         (vfmsq_n_f64): Likewise.
3943
3944 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
3945
3946         * wide-int.h: Change fixed_wide_int_storage from class to struct.
3947
3948 2016-05-17  Richard Biener  <rguenther@suse.de>
3949
3950         PR tree-optimization/71132
3951         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
3952         Only add control dependences for blocks in the loop.
3953         (build_rdg): Adjust.
3954         (generate_code_for_partition): Return whether loop should
3955         be destroyed and delay that.
3956         (distribute_loop): Likewise.
3957         (pass_loop_distribution::execute): Record loops to be destroyed
3958         and perform delayed destroying of loops.
3959
3960 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3961
3962         PR target/70809
3963         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
3964
3965 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
3966
3967         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
3968
3969 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
3970
3971         PR target/71114
3972         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
3973         insertion point for instructions generated by validize_mem.
3974
3975 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
3976
3977         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
3978         in brackets.
3979
3980 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
3981
3982         * config/aarch64/aarch64.c
3983         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
3984         rather than a macro.
3985
3986 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
3987
3988         * doc/invoke.texi (AArch64 Options): Various updates.
3989
3990 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
3991
3992         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
3993         into instrumentation thunks.
3994         * cif-code.def (CIF_CHKP): New.
3995
3996 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
3997
3998         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
3999
4000 2016-05-16  Martin Jambor  <mjambor@suse.cz>
4001
4002         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
4003         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
4004
4005 2016-05-16  Marek Polacek  <polacek@redhat.com>
4006
4007         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
4008         commentary.
4009
4010 2016-05-16  Martin Jambor  <mjambor@suse.cz>
4011
4012         PR hsa/70857
4013         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
4014         the outlined kernel function.
4015
4016 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
4017
4018         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
4019         (ISA_HAS_DLSA): Ditto.
4020
4021 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
4022
4023         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
4024
4025 2016-05-16  Nathan Sidwell  <nathan@acm.org>
4026
4027         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
4028         (nvptx_name_replacement): Restore.  Add comment.
4029         (write_fn_proto, write_fn_proto_from_insn,
4030         nvptx_output_call_insn): Restore
4031         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
4032
4033 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
4034
4035         * config/aarch64/aarch64.md
4036         (add<mode>3_compareC_cconly_imm): Remove use of %w.
4037         (add<mode>3_compareC_imm): Likewise.
4038         (<optab>si3_uxtw): Split into register and immediate variants.
4039         (andsi3_compare0_uxtw): Likewise.
4040         (and<mode>3_compare0): Likewise.
4041         (and<mode>3nr_compare0): Likewise.
4042         (stack_protect_test_<mode>): Don't use %x for memory operands.
4043
4044 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
4045
4046         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
4047
4048 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
4049
4050         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
4051         Split integer shifts into shift_reg and bfm.
4052         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4053         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4054         (ror<mode>3_insn): Likewise.
4055         (<optab>si3_insn_uxtw): Likewise.
4056         (<optab><mode>3_insn): Change to rotate_imm.
4057         (extr<mode>5_insn_alt): Likewise.
4058         (extrsi5_insn_uxtw): Likewise.
4059         (extrsi5_insn_uxtw_alt): Likewise.
4060
4061 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
4062
4063         * doc/tm.texi: Regenerate.
4064         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
4065         (TARGET_INVALID_RETURN_TYPE): Remove.
4066         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
4067         TARGET_INVALID_RETURN_TYPE.
4068         * target.def (invalid_parameter_type): Remove.
4069         (invalid_return_type): Remove.
4070
4071 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4072
4073         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
4074         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
4075         calls from thunk.
4076         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
4077         gimple body.
4078         (preserve_function_body_p): No need to preserve function body
4079         * cif-codes.def (CIF_THUNK): Remove.
4080         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
4081
4082 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4083
4084         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
4085
4086 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4087
4088         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
4089         for thunks.
4090
4091 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4092
4093         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
4094         (inline_small_functions): Do not look for function symbol when
4095         resetting caches.
4096
4097 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
4098
4099         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
4100         of inline thunks
4101
4102 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
4103             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4104             Jiong Wang  <jiong.wang@arm.com>
4105
4106         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
4107         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
4108         Define __ARM_FP16_ARGS when appropriate.
4109         * config/arm/arm.c (arm_invalid_parameter_type): Remove
4110         declaration.
4111         (arm_invalid_return_type): Likewise.
4112         (TARGET_INVALID_PARAMETER_TYPE): Remove.
4113         (TARGET_INVALID_RETURN_TYPE): Remove.
4114         (aapcs_vfp_sub_candidate): Allow HFmode.
4115         (aapcs_vfp_allocate): Add comment.  Support HFmode.
4116         (aapcs_vfp_allocate_return_reg): Likewise.
4117         (struct aapcs_cp_arg_layout): Slightly reword comments for
4118         is_return_candidate and allocate_return_reg.
4119         (output_mov_vfp): Update assert.
4120         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
4121         condition.
4122         (arm_invalid_parameter_type): Remove.
4123         (amr_invalid_return_type): Remove.
4124         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
4125         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
4126         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
4127
4128 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
4129
4130         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
4131         * config/aarch64/arch64-protos.h
4132         (aarch64_legitimize_reload_address): Remove.
4133         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
4134         Remove.
4135
4136 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
4137
4138         * configure.ac: Add ACX_NONCANONICAL_HOST.
4139         * configure: Regenerate.
4140         * Makefile.in: Set host_noncanonical.
4141
4142 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
4143
4144         PR target/71097
4145         * config/i386/i386.md (*movtf_internal): Before register allocation,
4146         do not allow FP constants for CM_MEDIUM memory model, allow only
4147         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
4148         (*movxf_internal): Ditto.
4149         (*movdf_internal): Ditto.
4150         (*movsf_internal): Ditto.
4151
4152 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
4153
4154         PR rtl-optimization/67483
4155         * combine.c (make_compound_operation): Don't call extract_left_shift
4156         with negative shift amounts.
4157
4158 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
4159
4160         PR bootstrap/71071
4161         * fold-const.c (fold_checksum_tree): Allow modification
4162         of TYPE_ALIAS_SET during folding.
4163
4164         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
4165         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
4166         (ix86_split_to_parts): Likewise.  Fix up formatting.
4167
4168 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
4169
4170         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
4171         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
4172         printf format.
4173
4174 2016-05-13  Nathan Sidwell  <nathan@acm.org>
4175
4176         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
4177         (nvptx_name_replacement): Delete.
4178         (write_fn_proto, write_fn_proto_from_insn,
4179         nvptx_output_call_insn): Remove nvptx_name_replacement call.
4180         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
4181         * langhooks.c (add_builtin_funcction_common): Call
4182         targetm.mangle_decl_assembler_name.
4183
4184         * config/nvptx/nvptx.c (write_fn_proto): Handle
4185         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
4186
4187 2016-05-13  Martin Liska  <mliska@suse.cz>
4188
4189         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
4190         and PRIu64 in printf format.
4191
4192 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4193
4194         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
4195         comment.
4196
4197 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4198
4199         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
4200         Change --param max-completely-peeled-times to
4201         --param max-completely-peel-times in dump file printing.
4202
4203 2016-05-13  Richard Biener  <rguenther@suse.de>
4204
4205         PR tree-optimization/42587
4206         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
4207         (find_bswap_or_nop_1): Likewise.
4208         (bswap_replace): Likewise.
4209
4210 2016-05-13  Martin Liska  <mliska@suse.cz>
4211
4212         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
4213         Initialize a variable with default value.
4214
4215 2016-05-13  Martin Liska  <mliska@suse.cz>
4216
4217         * doc/invoke.texi: Enhance explanation of error recovery
4218         of sanitizers.
4219
4220 2016-05-13  Martin Liska  <mliska@suse.cz>
4221
4222         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
4223         (struct cost_pair): Change inv_expr_id (int) to inv_expr
4224         (iv_inv_expr_ent *).
4225         (struct iv_inv_expr_ent): Comment struct fields.
4226         (sort_iv_inv_expr_ent): New function.
4227         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
4228         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
4229         a hash_map between iv_inv_expr_ent and number of usages.
4230         (niter_for_exit): Fix coding style.
4231         (tree_ssa_iv_optimize_init): Use renamed variable.
4232         (determine_base_object): Fix coding style.
4233         (alloc_iv): Likewise.
4234         (find_interesting_uses_outside): Likewise.
4235         (add_candidate_1): Likewise.
4236         (add_standard_iv_candidates): Likewise.
4237         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
4238         (prepare_decl_rtl): Fix coding style.
4239         (get_address_cost): Likewise.
4240         (get_shiftadd_cost): Likewise.
4241         (force_expr_to_var_cost): Likewise.
4242         (compare_aff_trees): Likewise.
4243         (get_expr_id): Restructure the function.
4244         (get_loop_invariant_expr_id): Renamed to
4245         get_loop_invariant_expr.
4246         (get_computation_cost_at): Replace usage of inv_expr_id with
4247         inv_expr.
4248         (get_computation_cost): Likewise.
4249         (determine_group_iv_cost_generic): Likewise.
4250         (determine_group_iv_cost_address): Likewise.
4251         (iv_period): Fix coding style.
4252         (iv_elimination_compare_lt): Likewise.
4253         (may_eliminate_iv): Likewise.
4254         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
4255         inv_expr.
4256         (determine_group_iv_costs): Dump invariant expressions.
4257         (iv_ca_recount_cost): Use the newly added hash_map.
4258         (iv_ca_set_remove_invariants): Fix coding style.
4259         (iv_ca_set_add_invariants): Fix coding style.
4260         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
4261         invariants.
4262         (iv_ca_set_cp): Likewise.
4263         (iv_ca_new): Initialize the newly added hash_map and remove
4264         initialization of fields.
4265         (iv_ca_free): Delete the hash_map.
4266         (iv_ca_dump): Dump invariant expressions.
4267         (iv_ca_extend): Fix coding style.
4268         (try_add_cand_for): Likewise.
4269         (create_new_ivs): Dump information about # of avg iterations and
4270         # of used invariant expressions.
4271         (rewrite_use_compare): Fix coding style.
4272         (free_loop_data): Set default value for max_inv_expr_id.
4273
4274 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
4275
4276         * cse.c (rest_of_handle_cse): Use cleanup_cfg
4277         returned value cse_cfg_altered computation.
4278         (rest_of_handle_cse2): Likewise.
4279         (rest_of_handle_cse_after_global_opts): Likewise.
4280
4281 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4282
4283         PR target/53440
4284         * config/arm/arm.c (arm32_output_mi_thunk): New.
4285         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
4286         to split Thumb1 vs TARGET_32BIT functionality.
4287         (arm_thumb1_mi_thunk): New.
4288
4289 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4290
4291         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
4292         to true.
4293
4294 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4295
4296         PR target/71080
4297         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
4298
4299 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
4300
4301         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
4302         (expand_builtin_trap): Emit a regular call.
4303         (set_builtin_user_assembler_name): Remove obsolete cases.
4304         * dse.c (scan_insn): Adjust.
4305         * except.c: Include calls.h.
4306         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
4307         emit a regular call to setjmp.
4308         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
4309         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
4310         (emit_block_move_via_libcall): Delete.
4311         (block_move_fn): Delete.
4312         (init_block_move_fn): Likewise.
4313         (emit_block_move_libcall_fn): Likewise.
4314         (emit_block_op_via_libcall): New function.
4315         (set_storage_via_libcall): Tidy up and use memset builtin.
4316         (block_clear_fn): Delete.
4317         (init_block_clear_fn): Likewise.
4318         (clear_storage_libcall_fn): Likewise.
4319         (expand_assignment): Call emit_block_move_via_libcall.
4320         Do not include gt-expr.h.
4321         * expr.h (emit_block_op_via_libcall): Declare.
4322         (emit_block_copy_via_libcall): New inline function.
4323         (emit_block_move_via_libcall): Likewise.
4324         (emit_block_comp_via_libcall): Likewise.
4325         (block_clear_fn): Delete.
4326         (init_block_move_fn): Likewise.
4327         (init_block_clear_fn): Likewise.
4328         (emit_block_move_via_libcall): Likewise.
4329         (set_storage_via_libcall): Add default parameter value.
4330         * libfuncs.h (enum libfunc_index): Remove obsolete values.
4331         (abort_libfunc): Delete.
4332         (memcpy_libfunc): Likewise.
4333         (memmove_libfunc): Likewise.
4334         (memcmp_libfunc): Likewise.
4335         (memset_libfunc): Likewise.
4336         (setbits_libfunc): Likewise.
4337         (setjmp_libfunc): Likewise.
4338         (longjmp_libfunc): Likewise.
4339         (profile_function_entry_libfunc): Likewise.
4340         (profile_function_exit_libfunc): Likewise.
4341         (gcov_flush_libfunc): Likewise.
4342         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
4343         and DECL_VISIBILITY on the declaration.
4344         (init_optabs): Do not initialize obsolete libfuncs.
4345         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
4346         * tree-core.h (ECF_RET1): Define.
4347         (ECF_TM_PURE): Adjust.
4348         (ECF_TM_BUILTIN): Likewise.
4349         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
4350         (build_common_builtin_nodes): Initialize abort builtin.
4351         Add ECF_RET1 on memcpy, memmove and memset builtins.
4352         Pass final flags for alloca and alloca_with_align builtins.
4353         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
4354         obsolete builtins.
4355         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
4356         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
4357         set_storage_via_libcall and call emit_block_copy_via_libcall.
4358
4359 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
4360
4361         * config/i386/i386.md (*call_got_x32): Change operand 0 to
4362         DImode before it is passed to ix86_output_call_operand.
4363         (*call_value_got_x32): Ditto for operand 1.
4364
4365 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
4366
4367         PR rtl-optimization/70904
4368         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
4369         reload for wide mode.
4370
4371 2016-05-12  Marek Polacek  <polacek@redhat.com>
4372
4373         PR c/70756
4374         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
4375         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
4376         * langhooks.h (incomplete_type_error): Likewise.
4377         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
4378         parameter, pass it down to incomplete_type_error.
4379         * tree.h (size_in_bytes): New inline overload.
4380         (size_in_bytes_loc): Renamed from size_in_bytes.
4381
4382 2016-05-12  Richard Biener  <rguenther@suse.de>
4383
4384         PR tree-optimization/71059
4385         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
4386         nary before looking up or entering the expression into the VN
4387         hashes.
4388         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
4389         Make sure to re-use NARYs without result as inserted by
4390         phi-translation.
4391
4392 2016-05-12  Richard Biener  <rguenther@suse.de>
4393
4394         PR tree-optimization/71062
4395         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
4396         field.
4397         * tree-ssa-structalias.c (set_uids_in_ptset): Set
4398         vars_contains_restrict if the var is a restrict tag.
4399         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
4400         do not disambiguate pointers against it.
4401         (dump_points_to_solution): Re-structure and adjust for new
4402         vars_contains_restrict flag.
4403         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
4404
4405 2016-05-12  Martin Liska  <mliska@suse.cz>
4406
4407         * doc/invoke.texi: Explain connection between
4408         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
4409
4410 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
4411
4412         PR tree-optimization/71006
4413         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4414         consider COND_EXPR as a mask producer.
4415
4416 2016-05-12  Marek Polacek  <polacek@redhat.com>
4417
4418         PR driver/71063
4419         * opts.c (common_handle_option): Detect missing argument for --help^.
4420
4421 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4422
4423         PR target/70830
4424         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
4425         when popping the PC and within an interrupt handler routine.
4426         Add missing tab to output of "ldmfd".
4427         (output_return_instruction): Output LDMFD with SP update rather
4428         than POP when returning from interrupt handler.
4429
4430 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
4431
4432         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
4433         TARGET_64BIT && TARGET_AVX512DQ.
4434         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
4435         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
4436         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
4437         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
4438         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
4439         (*vec_extractv4si_zext): Add avx512dq alternative.
4440         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
4441         use v instead of x constraint in other alternatives where possible.
4442
4443         * config/i386/sse.md (sse2_loadld): Use v instead of x
4444         constraint in alternatives 0,1,4.
4445
4446         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
4447         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
4448         v constraints instead of x and <pinsr_evex_isa> isa attribute.
4449
4450         PR target/71019
4451         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
4452         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
4453         is not emitted unless TARGET_AVX512BW.
4454         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
4455         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
4456         for the result operand.
4457
4458         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
4459         constraint instead of x in avx alternatives.  Use maybe_evex instead
4460         of vex prefix.
4461
4462         * config/i386/constraints.md (Yv): New constraint.
4463         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
4464         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
4465         * config/i386/i386.md (avx512fvecmode): New mode attr.
4466         (*pushtf): Use v constraint instead of x.
4467         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
4468         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
4469         (*absneg<mode>2): Use Yv constraint instead of x constraint.
4470         (*absnegtf2_sse): Likewise.
4471         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
4472         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
4473         avx512f alternatives.
4474         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
4475
4476 2016-05-12  Richard Biener  <rguenther@suse.de>
4477
4478         PR tree-optimization/71060
4479         * tree-data-ref.c (initialize_data_dependence_relation): Do not
4480         require exact match of DR_BASE_OBJECT but only matching address and
4481         type.
4482
4483 2016-05-12  Richard Biener  <rguenther@suse.de>
4484
4485         PR tree-optimization/70986
4486         * cfganal.c: Include cfgloop.h.
4487         (dfs_find_deadend): Prefer to take edges exiting loops.
4488
4489 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4490
4491         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
4492         compile and run time.
4493
4494 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
4495
4496         PR c/43651
4497         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
4498
4499 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
4500
4501         * config/i386/i386.c (legitimize_pic_address): Use
4502         copy_to_suggested_reg instead of gen_movsi.
4503
4504 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
4505
4506         * config/rs6000/predicates.md (quad_memory_operand): Move most of
4507         the code into quad_address_p and call it to share code with
4508         vsx_quad_dform_memory_operand.
4509         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
4510         d-form support.
4511         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
4512         bit instead of being a separate word.  Split -mpower9-dform into
4513         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
4514         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
4515         for the register class supporting 128-bit quad word memory offsets.
4516         (mode_supports_vsx_dform_quad): Helper function to return if the
4517         register class uses quad word memory offsets.
4518         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
4519         (rs6000_debug_reg_global): Always print if we are using LRA or not.
4520         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
4521         instructions are enabled, set up the appropriate addr_masks for
4522         128-bit types.
4523         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
4524         -mpower9-dform-scalar, instead of -mpower9-dform.
4525         (rs6000_option_override_internal): Split -mpower9-dform into two
4526         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
4527         -mpower9-dform switch sets or clears both.  If we are not using
4528         the LRA register allocator, do not enable -mpower9-dform-vector by
4529         default.  If we are using LRA, enable -mpower9-dform-vector and
4530         -mvsx-timode if it is appropriate.  Issue a warning if either
4531         -mpower9-dform-vector or -mvsx-timode are explicitly used without
4532         enabling LRA.
4533         (quad_address_offset_p): New helper function to return if the
4534         offset is legal for quad word memory instructions.
4535         (quad_address_p): New function to determin if GPR or vector
4536         register quad word memory addresses are legal.
4537         (mem_operand_gpr): Validate quad word address offsets.
4538         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
4539         d-form (register + offset) instructions.
4540         (offsettable_ok_by_alignment): Likewise.
4541         (rs6000_legitimate_offset_address_p): Likewise.
4542         (legitimate_lo_sum_address_p): Likewise.
4543         (rs6000_legitimize_address): Likewise.
4544         (rs6000_legitimize_reload_address): Add more debug statements for
4545         -mdebug=addr.
4546         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
4547         d-form instructions.
4548         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
4549         d-form instructions.  Distinguish different cases in debug
4550         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
4551         d-form instructions.
4552         (rs6000_preferred_reload_class): Likewise.
4553         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
4554         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
4555         of the ISA 2.06 indexed memory instructions.
4556         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
4557         use them to save/restore the saved vector registers instead of
4558         using Altivec instructions.
4559         (rs6000_emit_epilogue): Likewise.
4560         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
4561         (rs6000_opt_masks): Split -mpower9-dform into
4562         -mpower9-dform-scalar and -mpower9-dform-vector.
4563         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
4564         was not selected.
4565         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
4566         ISA 3.0 vector indexed memory instructions, and fold the code into
4567         the normal mov<mode> patterns.
4568         (p9_vecstore_<mode>): Likewise.
4569         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
4570         instructions.
4571         (vsx_movti_64bit): Likewise.
4572         (vsx_movti_32bit): Likewise.
4573         * config/rs6000/constraints.md (wO constraint): New constraint for
4574         ISA 3.0 vector d-form support.
4575         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
4576         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
4577         include -mpower9-dform-vector until we switch over to LRA.
4578         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
4579         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
4580         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
4581         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
4582         for -mpower9-dform and -mlra.
4583         * doc/md.texi (wO constraint): Document wO constraint.
4584
4585 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
4586
4587         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
4588         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
4589         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
4590         Move handling of non-insn arguments inline into the sole user:
4591         (output_trans_func): ...here.
4592         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
4593         in emitted function prototype.
4594         (output_internal_insn_latency_func): Ditto.  Simplify.
4595         (output_internal_maximal_insn_latency_func): Ditto.  Delete
4596         always-unused argument.
4597         (output_insn_latency_func): Ditto.
4598         (output_maximal_insn_latency_func): Ditto.
4599
4600 2016-05-11  Richard Biener  <rguenther@suse.de>
4601
4602         PR tree-optimization/71055
4603         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
4604         sth with precision not equal to access size verify we don't chop
4605         off bits.
4606
4607 2016-05-11  Richard Biener  <rguenther@suse.de>
4608
4609         PR debug/71057
4610         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
4611         (dwarf2out_finish): Move retry_incomplete_types call ...
4612         (dwarf2out_early_finish): ... here.
4613
4614 2016-05-11  Richard Biener  <rguenther@suse.de>
4615
4616         PR middle-end/71002
4617         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
4618         if the langhook insists on it.
4619         * fold-const.c (make_bit_field_ref): Add arg for the original
4620         reference and preserve its alias-set.
4621         (decode_field_reference): Take exp by reference and adjust it
4622         to the original memory reference.
4623         (optimize_bit_field_compare): Adjust callers.
4624         (fold_truth_andor_1): Likewise.
4625         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
4626
4627 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
4628
4629         PR middle-end/70807
4630         * cfgrtl.h (delete_insn_and_edges): Now return bool.
4631         * cfgrtl.c (delete_insn_and_edges): Likewise.
4632         * config/i386/i386.c (convert_scalars_to_vector): Remove
4633         redundant code.
4634         * cse.c (cse_insn): Compute cse_cfg_altered.
4635         (delete_trivially_dead_insns): Likewise.
4636         (cse_cc_succs): Likewise.
4637         (rest_of_handle_cse): Free dominance info if required.
4638         (rest_of_handle_cse2): Likewise.
4639         (rest_of_handle_cse_after_global_opts): Likewise.
4640
4641 2016-05-11  Alan Modra  <amodra@gmail.com>
4642
4643         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
4644         abi_v4_pass_in_fpr): New functions.
4645         (rs6000_function_arg_boundary): Exclude complex IBM long double
4646         from 64-bit alignment when ABI_V4.
4647         (rs6000_function_arg, rs6000_function_arg_advance_1,
4648         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
4649
4650 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
4651
4652         PR rtl-optimization/71028
4653         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
4654         jump with just a return in the fallthrough block if the branch
4655         block contains just a return as well.
4656
4657 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
4658
4659         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
4660         * match.pd ((X & Y) ^ Y): ... this.
4661         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
4662         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
4663
4664 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
4665
4666         * read-md.c (require_char_ws): New function.
4667         (read_string): Simplify using require_char_ws.
4668         (handle_constants): Likewise.
4669         (handle_enum): Likewise.
4670         (handle_file): Likewise.
4671         * read-md.h (require_char_ws): New declaration.
4672         * read-rtl.c (read_conditions): Simplify using require_char_ws.
4673         (read_mapping): Likewise.
4674         (read_rtx_code): Likewise.
4675         (read_nested_rtx): Likewise.
4676
4677 2016-05-10  James Norris  <jnorris@codesourcery.com>
4678
4679         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
4680         if offloading is enabled and -fopenacc or -fopenmp is specified.
4681         (CRTOFFLOADEND): Likewise.
4682         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
4683         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
4684
4685 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
4686
4687         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
4688         gotoff_operand code paths.  Use copy_to_suggested_regs and
4689         expand_simple_binop where appropriate.  Cleanup.
4690
4691 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4692
4693         PR target/70799
4694         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
4695         integer constants.
4696         (dimode_scalar_chain::vector_const_cost): New.
4697         (dimode_scalar_chain::compute_convert_gain): Handle constants.
4698         (dimode_scalar_chain::convert_op): Likewise.
4699         (dimode_scalar_chain::convert_insn): Likewise.
4700
4701 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
4702
4703         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
4704         unary operation, not a binary one.
4705
4706 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4707
4708         PR middle-end/70877
4709         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
4710         calls with type casted fndecl.
4711
4712 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4713
4714         PR tree-optimization/70786
4715         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
4716         * calls.c (initialize_argument_information): Bind bounds
4717         with corresponding args passed by reference.
4718
4719 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
4720
4721         PR target/70927
4722         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
4723         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
4724         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
4725         accordingly.
4726
4727 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4728
4729         PR target/70963
4730         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
4731         code for a zero scale factor.
4732         (vsx_xvcvdpuxds_scale): Likewise.
4733
4734 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
4735
4736         * diagnostic-show-locus.c (layout::layout): Call show_ruler
4737         if show_ruler_p was set on the context.
4738         (layout::show_ruler): New method.
4739         * diagnostic.h (struct diagnostic_context): Add field
4740         "show_ruler_p".
4741
4742 2016-05-10  Richard Biener  <rguenther@suse.de>
4743
4744         PR tree-optimization/71039
4745         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
4746         (chk_uses): New function.
4747         (propagate_with_phi): Verify we can safely replicate the lhs of an
4748         aggregate assignment on all incoming edges.
4749
4750 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
4751
4752         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
4753         Forward declare.
4754         (rx_atomic_sequence): New class.
4755         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
4756         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
4757         non-inline.
4758         (rx_atomic_sequence::rx_atomic_sequence,
4759         rx_atomic_sequence::~rx_atomic_sequence): New functions.
4760         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
4761         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
4762         CTRLREG_INTB): New constants.
4763         (FETCHOP): New code iterator.
4764         (fethcop_name, fetchop_name2): New iterator code attributes.
4765         (QIHI): New mode iterator.
4766         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
4767         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
4768         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
4769
4770 2016-05-10  Martin Liska  <mliska@suse.cz>
4771
4772         * tree-inline.c (remap_dependence_clique): Do not remap
4773         debugging statements.
4774
4775 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4776
4777         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
4778         ("*fixuns_truncdfdi2_z13")
4779         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
4780         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
4781         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
4782
4783 2016-05-10  Richard Biener  <rguenther@suse.de>
4784
4785         PR tree-optimization/70497
4786         PR tree-optimization/28367
4787         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
4788         split out from ...
4789         (visit_reference_op_load): ... here.
4790         (vn_reference_lookup_3): Use it to handle subreg-like accesses
4791         with simplified BIT_FIELD_REFs.
4792         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
4793         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
4794         correctly.
4795
4796 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
4797
4798         * dwarf2out.c (add_abstract_origin_attribute): Adjust
4799         documentation comment.  For BLOCK nodes, add a
4800         DW_AT_abstract_origin attribute that points to the DIE generated
4801         for the origin BLOCK.
4802         (gen_lexical_block_die): Call add_abstract_origin_attribute for
4803         blocks from inlined functions.
4804
4805 2016-05-10  Alan Modra  <amodra@gmail.com>
4806
4807         PR target/70947
4808         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
4809         regrename modifying insns saving lr before __morestack call.
4810         * config/rs6000/rs6000.md (split_stack_return): Similarly for
4811         insns restoring lr after __morestack call.
4812
4813 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
4814
4815         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
4816         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
4817         expanders.
4818         * config/i386/sse.md (vec_interleave_high<mode>,
4819         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
4820         <avx512>_vpermt2var<mode>3_maskz): Likewise.
4821
4822 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
4823
4824         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
4825         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
4826         parallel reassociation for power8 and forward.
4827
4828 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
4829
4830         * config/i386/i386.md (absneg splitters with general regs): Use
4831         general_reg_operand predicate.
4832         (btsq peephole2): Use x86_64_immediate_operand to check if new
4833         value is suitable for immediate operand.  Generate emitted insn
4834         using RTL expressions.
4835         (btcq peephole2): Ditto.
4836         (btrq peephole2): Ditto.  Generate correct immediate operand
4837         for AND masking.
4838
4839 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
4840
4841         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
4842         bitpos.
4843
4844 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
4845
4846         * tree-affine.c (wide_int_constant_multiple_p): Add missing
4847         pointer dereference.
4848
4849 2016-05-09  Richard Biener  <rguenther@suse.de>
4850
4851         PR tree-optimization/70985
4852         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
4853         op0 isn't a gimple register.
4854
4855 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
4856
4857         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
4858         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
4859         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
4860         (i6400_fpu_mult): New cpu units.
4861         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
4862         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
4863         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
4864         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
4865         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
4866         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
4867         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
4868         (i6400_msa_long_float4, i6400_msa_long_float5)
4869         (i6400_msa_long_float8, i6400_msa_fdiv_df)
4870         (i6400_msa_fdiv_sf): New reservations.
4871         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
4872         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
4873         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
4874         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
4875         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
4876         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
4877         (msa_short_cmp, msa_short_float2, msa_short_logic3)
4878         (msa_short_store4, msa_long_load, msa_short_store)
4879         (msa_long_logic, msa_long_float2, msa_long_float4)
4880         (msa_long_float5, msa_long_float8, msa_long_mult)
4881         (msa_long_fdiv, msa_long_div): New reservations.
4882
4883 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
4884             Sameera Deshpande  <sameera.deshpande@imgtec.com>
4885             Matthew Fortune  <matthew.fortune@imgtec.com>
4886             Graham Stott  <graham.stott@imgtec.com>
4887             Chao-ying Fu  <chao-ying.fu@imgtec.com>
4888
4889         * config.gcc: Add MSA header file for mips*-*-* target.
4890         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
4891         (Ubv8i, Urv8):  New constraints.
4892         * config/mips/mips-ftypes.def: Add function types for MSA
4893         builtins.
4894         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
4895         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
4896         * config/mips/mips-msa.md: New file.
4897         * config/mips/mips-protos.h
4898         (mips_split_128bit_const_insns): New prototype.
4899         (mips_msa_idiv_insns): Likewise.
4900         (mips_split_128bit_move): Likewise.
4901         (mips_split_128bit_move_p): Likewise.
4902         (mips_split_msa_copy_d): Likewise.
4903         (mips_split_msa_insert_d): Likewise.
4904         (mips_split_msa_fill_d): Likewise.
4905         (mips_expand_msa_branch): Likewise.
4906         (mips_const_vector_same_val_p): Likewise.
4907         (mips_const_vector_same_bytes_p): Likewise.
4908         (mips_const_vector_same_int_p): Likewise.
4909         (mips_const_vector_shuffle_set_p): Likewise.
4910         (mips_const_vector_bitimm_set_p): Likewise.
4911         (mips_const_vector_bitimm_clr_p): Likewise.
4912         (mips_msa_vec_parallel_const_half): Likewise.
4913         (mips_msa_output_division): Likewise.
4914         (mips_ldst_scaled_shift): Likewise.
4915         (mips_expand_vec_cond_expr): Likewise.
4916         * config/mips/mips.c (enum mips_builtin_type): Add
4917         MIPS_BUILTIN_MSA_TEST_BRANCH.
4918         (mips_gen_const_int_vector_shuffle): New prototype.
4919         (mips_const_vector_bitimm_set_p): New function.
4920         (mips_const_vector_bitimm_clr_p): Likewise.
4921         (mips_const_vector_same_val_p): Likewise.
4922         (mips_const_vector_same_bytes_p): Likewise.
4923         (mips_const_vector_same_int_p): Likewise.
4924         (mips_const_vector_shuffle_set_p): Likewise.
4925         (mips_symbol_insns): Forbid loading symbols via immediate for
4926         MSA.
4927         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
4928         stores.
4929         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
4930         MSA.
4931         (mips_lx_address_p): Add support load indexed address for MSA.
4932         (mips_address_insns): Add calculation of instructions needed for
4933         stores and loads for MSA.
4934         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
4935         CONST_VECTOR for MSA and let it fall through.
4936         (mips_ldst_scaled_shift): New function.
4937         (mips_subword_at_byte): Likewise.
4938         (mips_msa_idiv_insns): Likewise.
4939         (mips_legitimize_move): Validate MSA moves.
4940         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
4941         calculation of costs for MSA division.
4942         (mips_split_move_p): Check if MSA moves need splitting.
4943         (mips_split_move): Split MSA moves if necessary.
4944         (mips_split_128bit_move_p): New function.
4945         (mips_split_128bit_move): Likewise.
4946         (mips_split_msa_copy_d): Likewise.
4947         (mips_split_msa_insert_d): Likewise.
4948         (mips_split_msa_fill_d): Likewise.
4949         (mips_output_move): Handle MSA moves.
4950         (mips_expand_msa_branch): New function.
4951         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
4952         Reinstate 'y' modifier.
4953         (mips_file_start): Add MSA .gnu_attribute.
4954         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
4955         FPRs.
4956         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
4957         (mips_class_max_nregs): Add register size for MSA supported mode.
4958         (mips_cannot_change_mode_class): Allow conversion between MSA
4959         vector modes and TImode.
4960         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
4961         instruction.
4962         (mips_secondary_reload_class): Force MSA loads/stores via memory.
4963         (mips_preferred_simd_mode): Add preffered modes for MSA.
4964         (mips_vector_mode_supported_p): Add MSA supported modes.
4965         (mips_autovectorize_vector_sizes): New function.
4966         (mips_msa_output_division): Likewise.
4967         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
4968         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
4969         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
4970         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
4971         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
4972         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
4973         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
4974         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
4975         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
4976         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
4977         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
4978         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
4979         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
4980         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
4981         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
4982         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
4983         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
4984         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
4985         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
4986         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
4987         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
4988         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
4989         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
4990         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
4991         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
4992         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
4993         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
4994         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
4995         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
4996         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
4997         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
4998         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
4999         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
5000         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
5001         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
5002         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
5003         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
5004         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
5005         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
5006         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
5007         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
5008         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
5009         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
5010         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
5011         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
5012         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
5013         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
5014         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
5015         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
5016         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
5017         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
5018         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
5019         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
5020         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
5021         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
5022         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
5023         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
5024         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
5025         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
5026         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
5027         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
5028         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
5029         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
5030         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
5031         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
5032         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
5033         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
5034         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
5035         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
5036         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
5037         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
5038         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
5039         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
5040         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
5041         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
5042         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
5043         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
5044         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
5045         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
5046         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
5047         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
5048         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
5049         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
5050         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
5051         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
5052         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
5053         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
5054         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
5055         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
5056         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
5057         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
5058         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
5059         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
5060         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
5061         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
5062         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
5063         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
5064         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
5065         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
5066         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
5067         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
5068         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
5069         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
5070         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
5071         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
5072         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
5073         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
5074         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
5075         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
5076         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
5077         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
5078         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
5079         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
5080         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
5081         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
5082         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
5083         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
5084         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
5085         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
5086         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
5087         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
5088         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
5089         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
5090         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
5091         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
5092         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
5093         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
5094         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
5095         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
5096         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
5097         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
5098         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
5099         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
5100         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
5101         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
5102         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
5103         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
5104         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
5105         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
5106         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
5107         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
5108         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
5109         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
5110         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
5111         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
5112         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
5113         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
5114         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
5115         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
5116         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
5117         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
5118         move_v builtins.
5119         (mips_get_builtin_decl_index): New array.
5120         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
5121         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
5122         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
5123         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
5124         (mips_init_builtins): Initialize mips_get_builtin_decl_index
5125         array.
5126         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
5127         hook.
5128         (mips_expand_builtin_insn): Prepare operands for
5129         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
5130         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
5131         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
5132         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
5133         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
5134         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
5135         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
5136         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
5137         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
5138         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
5139         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
5140         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
5141         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
5142         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
5143         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
5144         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
5145         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
5146         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
5147         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
5148         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
5149         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
5150         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
5151         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
5152         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
5153         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
5154         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
5155         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
5156         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
5157         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
5158         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
5159         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
5160         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
5161         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
5162         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
5163         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
5164         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
5165         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
5166         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
5167         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
5168         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
5169         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
5170         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
5171         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
5172         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
5173         These are set implicitly and an error is reported if overridden.
5174         (mips_expand_builtin_msa_test_branch): New function.
5175         (mips_expand_msa_shuffle): Likewise.
5176         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
5177         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
5178         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
5179         (mips_expand_vec_unpack): Add support for MSA.
5180         (mips_expand_vector_init): Likewise.
5181         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
5182         instead of const0_rtx.
5183         (mips_msa_vec_parallel_const_half): New function.
5184         (mips_gen_const_int_vector): Likewise.
5185         (mips_gen_const_int_vector_shuffle): Likewise.
5186         (mips_expand_msa_cmp): Likewise.
5187         (mips_expand_vec_cond_expr): Likewise.
5188         * config/mips/mips.h
5189         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
5190         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
5191         specified.
5192         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
5193         (ISA_HAS_MSA): New macro.
5194         (UNITS_PER_MSA_REG): Likewise.
5195         (BITS_PER_MSA_REG): Likewise.
5196         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
5197         (MSA_REG_FIRST): New macro.
5198         (MSA_REG_LAST): Likewise.
5199         (MSA_REG_NUM): Likewise.
5200         (MSA_REG_P): Likewise.
5201         (MSA_REG_RTX_P): Likewise.
5202         (MSA_SUPPORTED_MODE_P): Likewise.
5203         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
5204         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
5205         * config/mips/mips.md: Include mips-msa.md.
5206         (alu_type): Add simd_add.
5207         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
5208         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
5209         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
5210         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
5211         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
5212         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
5213         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
5214         simd_move, simd_load, simd_store.  Choose "multi" for moves
5215         for "qword_mode".
5216         (qword_mode): New attribute.
5217         (insn_count): Add instruction count for quad moves.
5218         Increase the count for MIPS SIMD division.
5219         (UNITMODE): Add UNITMODEs for vector types.
5220         (addsub): New code iterator.
5221         * config/mips/mips.opt (mmsa): New option.
5222         * config/mips/msa.h: New file.
5223         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
5224         specified.
5225         * config/mips/mti-linux.h: Likewise.
5226         * config/mips/predicates.md
5227         (const_msa_branch_operand): New constraint.
5228         (const_uimm3_operand): Likewise.
5229         (const_uimm4_operand): Likewise.
5230         (const_uimm5_operand): Likewise.
5231         (const_uimm8_operand): Likewise.
5232         (const_imm5_operand): Likewise.
5233         (aq10b_operand): Likewise.
5234         (aq10h_operand): Likewise.
5235         (aq10w_operand): Likewise.
5236         (aq10d_operand): Likewise.
5237         (const_m1_operand): Likewise.
5238         (reg_or_m1_operand): Likewise.
5239         (const_exp_2_operand): Likewise.
5240         (const_exp_4_operand): Likewise.
5241         (const_exp_8_operand): Likewise.
5242         (const_exp_16_operand): Likewise.
5243         (const_vector_same_val_operand): Likewise.
5244         (const_vector_same_simm5_operand): Likewise.
5245         (const_vector_same_uimm5_operand): Likewise.
5246         (const_vector_same_uimm6_operand): Likewise.
5247         (const_vector_same_uimm8_operand): Likewise.
5248         (par_const_vector_shf_set_operand): Likewise.
5249         (reg_or_vector_same_val_operand): Likewise.
5250         (reg_or_vector_same_simm5_operand): Likewise.
5251         (reg_or_vector_same_uimm6_operand): Likewise.
5252         * doc/extend.texi (MIPS SIMD Architecture Functions): New
5253         section.
5254         * doc/invoke.texi (-mmsa): Document new option.
5255
5256 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5257
5258         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
5259         * configure: Regenerate.
5260         * config.in: Regenerate.
5261         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
5262         on -fvtable-verify.
5263         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
5264         (ENDFILE_VTV_SPEC): Define.
5265
5266 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
5267
5268         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
5269         registers in all interrupt handlers if necessary.
5270         (rl78_option_override): Add warning.
5271         (MUST_SAVE_MDUC_REGISTERS): New macro.
5272         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
5273         * config/rl78/rl78.c (check_mduc_usage): New function.
5274         (mduc_regs): New structure to hold MDUC register data.
5275         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
5276         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
5277         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
5278         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
5279         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
5280         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
5281
5282 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
5283
5284         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
5285         (tree-ssa-loop-niter.h): Ditto.
5286         (idx_within_array_bound, ref_within_array_bound): New functions.
5287         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
5288         Factor out check on writable base object to ...
5289         (base_object_writable): ... here.
5290
5291 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5292
5293         * config/arm/arm.md (probe_stack): Add modes to set source
5294         and destination.
5295
5296 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
5297
5298         * regrename.c (base_reg_class_for_rename): New static function.
5299         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
5300
5301 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
5302
5303         * cgraph.c (thunk_adjust): Export.
5304         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
5305         * cgraphunit.c (thunk_adjust): Export.
5306         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
5307         thunks.
5308         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
5309         inlinable.
5310         * tree-inline.c (expand_call_inline): Expand thunks inline.
5311
5312 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
5313
5314         PR target/70998
5315         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
5316         (*sse2_vd_cvtss2sd): Ditto.
5317         * config/i386/i386.md
5318         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
5319         Generate *sse2_vd_cvtsd2ss pattern.
5320         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
5321         Generate *sse2_vd_cvtss2sd pattern.
5322
5323 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
5324
5325         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
5326         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
5327         users.
5328
5329 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
5330
5331         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
5332         * config/sh/sh.c: Define and declare variables on first use throughout
5333         the file.
5334         (current_function_interrupt): Change to bool type.
5335         (frame_insn): Rename to emit_frame_insn and update users.
5336         (push_regs): Use bool for 'interrupt_handler' argument.
5337         (save_schedule_s): Remove.
5338         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
5339         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
5340         targetm.asm_out.unaligned_op.di.
5341         (gen_far_branch): Remove redundant forward declaration.
5342         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
5343         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
5344         (sh_set_return_address, sh_function_ok_for_sibcall,
5345         scavenge_reg): Update comments.
5346         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
5347         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
5348         (sh_attr_renesas_p): Remove unnecessary parentheses.
5349         (branch_dest): Simplify.
5350         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
5351         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
5352         (CUMULATIVE_ARGS): Change macro to typedef.
5353         (current_function_interrupt): Change to bool type.
5354         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
5355         Surround with __cplusplus ifdef.
5356         (sh_compare_op0, sh_compare_op1): Remove.
5357         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
5358
5359 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
5360
5361         * config/arm/arm.md: (arch): Add neon.
5362         (arch_enabled): Return yes for arch neon when TARGET_NEON.
5363         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
5364         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
5365         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
5366         attributes for alt renumbering.  Mark alt 3 as non-predicable.
5367         (thumb2_movdf_vfp): Likewise.
5368
5369 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
5370
5371         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
5372         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
5373         (*andqi_1): Add preferred_for_speed attribute to disparage
5374         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
5375         (*<code>qi_1): Ditto.
5376         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
5377         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
5378         (*ashlqi3_1): Ditto.
5379         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
5380         Add preferred_for_size attribute to disparage alternative 0 and
5381         preferred_for_speed attribute to disparage alternative 1 for
5382         TARGET_PARTIAL_REG_STALL targets.
5383
5384 2016-05-07  Tom de Vries  <tom@codesourcery.com>
5385
5386         PR tree-optimization/70956
5387         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
5388         def.
5389
5390 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
5391
5392         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
5393         * config/sh/sh.c (sh_cbranch_distance): Implement it.
5394         * config/sh/sh.md (branch_zero): Remove define_attr.
5395         (define_delay): Disable delay slot if branch distance is one insn.
5396
5397 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
5398
5399         * config/i386/i386.md (LEAMODE): New mode attribute.
5400         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
5401         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
5402         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
5403         operand 2 predicate.
5404         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
5405         (*lea<mode>_general_3): Ditto.
5406         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
5407
5408 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
5409
5410         * genmddump.c (main): Convert argv from char ** to const char **.
5411
5412 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
5413
5414         * coretypes.h (OVERRIDE): New macro.
5415         (FINAL): New macro.
5416
5417 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
5418
5419         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
5420         allow coalescing if the types are compatible.
5421
5422 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
5423
5424         * pass_manager.h (pass_manager::register_pass_name): New method.
5425         (pass_manager::get_pass_by_name): New method.
5426         (pass_manager::create_pass_tab): New method.
5427         (pass_manager::m_name_to_pass_map): New field.
5428         * passes.c (name_to_pass_map): Delete global in favor of field
5429         "m_name_to_pass_map" of pass_manager.
5430         (register_pass_name): Rename from a function to...
5431         (pass_manager::register_pass_name): ...this method, updating
5432         for renaming of global "name_to_pass_map" to field
5433         "m_name_to_pass_map".
5434         (create_pass_tab): Rename from a function to...
5435         (pass_manager::create_pass_tab): ...this method, updating
5436         for renaming of global "name_to_pass_map" to field.
5437         (get_pass_by_name): Rename from a function to...
5438         (pass_manager::get_pass_by_name): ...this method.
5439         (enable_disable_pass): Convert use of get_pass_by_name to
5440         a method call, locating the pass_manager singleton.
5441
5442 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
5443
5444         * genattr-common.c (main): Convert argv from char ** to const char **.
5445         * genattr.c (main): Likewise.
5446         * genattrtab.c (main): Likewise.
5447         * genautomata.c (initiate_automaton_gen): Likewise.
5448         (main): Likewise.
5449         * gencodes.c (main): Likewise.
5450         * genconditions.c (main): Likewise.
5451         * genconfig.c (main): Likewise.
5452         * genconstants.c (main): Likewise.
5453         * genemit.c (main): Likewise.
5454         * genenums.c (main): Likewise.
5455         * genextract.c (main): Likewise.
5456         * genflags.c (main): Likewise.
5457         * genmddeps.c (main): Likewise.
5458         * genopinit.c (main): Likewise.
5459         * genoutput.c (main): Likewise.
5460         * genpeep.c (main): Likewise.
5461         * genpreds.c (main): Likewise.
5462         * genrecog.c (main): Likewise.
5463         * gensupport.c (init_rtx_reader_args_cb): Likewise.
5464         (init_rtx_reader_args): Likewise.
5465         * gensupport.h (init_rtx_reader_args_cb): Likewise.
5466         (init_rtx_reader_args): Likewise.
5467         * gentarget-def.c (main): Likewise.
5468         * read-md.c (read_md_files): Likewise.
5469         * read-md.h (read_md_files): Likewise.
5470
5471 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
5472
5473         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
5474         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
5475         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
5476         Remove unused predicate.
5477         (register_and_not_fp_reg_operand): Ditto.
5478
5479 2016-05-06  Martin Liska  <mliska@suse.cz>
5480
5481         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
5482         instead of vec as the vector is local to the function.
5483
5484 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
5485
5486         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
5487         avx512bw alternative.
5488
5489         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
5490         before the ashr<mode>3 pattern.
5491
5492         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
5493         v instead of x in vex or maybe_vex alternatives, use
5494         maybe_evex instead of vex in prefix.
5495
5496         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
5497         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
5498         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
5499         in vex or maybe_vex alternatives, use maybe_evex instead of vex
5500         in prefix.
5501
5502         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
5503         v instead of x in vex or maybe_vex alternatives, use
5504         maybe_evex instead of vex in prefix.
5505
5506         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
5507         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
5508         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
5509         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
5510         alternatives, use maybe_evex instead of vex in prefix.
5511
5512         * config/i386/sse.md (vec_interleave_lowv4sf,
5513         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
5514         v instead of x in vex or maybe_vex alternatives, use
5515         maybe_evex instead of vex in prefix.
5516
5517         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
5518         v instead of x in vex or maybe_vex alternatives, use
5519         maybe_evex instead of vex in prefix.
5520
5521         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
5522         v constraint instead of x.
5523
5524 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
5525
5526         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
5527         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
5528         equality first.
5529
5530 2016-05-06  Richard Biener  <rguenther@suse.de>
5531
5532         PR tree-optimization/70948
5533         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5534         Properly clobber all fields of va_list for __builtin_va_start.
5535
5536 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
5537
5538         PR debug/70935
5539         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
5540         loop latch destination.
5541
5542 2016-05-06  Martin Liska  <mliska@suse.cz>
5543
5544         * tree-ssa-uninit.c: Apply manual changes
5545         to the GNU coding style.
5546         (prune_uninit_phi_opnds): Rename from
5547         prune_uninit_phi_opnds_in_unrealizable_paths.
5548
5549 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5550
5551         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
5552         mspace): Remove deprecated options.
5553         * doc/invoke.texi (SH options): Remove -mspace.
5554
5555 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5556
5557         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
5558
5559 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5560
5561         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
5562         corresponding combine split pattern.
5563
5564 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5565
5566         PR target/58219
5567         * config/sh/predicates.md (long_displacement_mem_operand): New.
5568         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
5569         Add movi20, movi20s alternatives.  Adjust length attribute for
5570         alternatives.
5571         (movsi_ie): Allow for any FPU.  Adjust length attribute for
5572         alternatives.
5573         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
5574         attribute for alternatives.
5575         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
5576         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
5577         length attribute for alternatives.
5578
5579 2016-05-06  Richard Biener  <rguenther@suse.de>
5580
5581         PR tree-optimization/70960
5582         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
5583
5584 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5585
5586         PR target/52933
5587         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
5588         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
5589
5590 2016-05-06  Marek Polacek  <polacek@redhat.com>
5591
5592         PR sanitizer/70875
5593         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
5594
5595 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
5596
5597         PR target/54089
5598         * config/sh/sh.md (*rotcr): Add another variant.
5599
5600 2016-05-06  Richard Biener  <rguenther@suse.de>
5601
5602         PR middle-end/70931
5603         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
5604
5605 2016-05-06  Richard Biener  <rguenther@suse.de>
5606
5607         PR middle-end/70941
5608         * fold-const.c (split_tree): Always convert to the original type
5609         before negating.
5610
5611 2016-05-06  Richard Biener  <rguenther@suse.de>
5612
5613         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
5614         (fwprop_addr): Likewise.
5615
5616 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
5617
5618         PR target/70873
5619         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
5620         New prototype.
5621         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
5622         * config/i386/i386.md (push mem splitter): Use find_constant_src in
5623         the splitter condition.
5624         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
5625         the splitter condition.
5626         (FP float_extend load splitter): Ditto.
5627
5628 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
5629
5630         * config/i386/i386.md (peehole2 patterns): Change true_regnum
5631         to REGNO in all peephole2 patterns.
5632         (post-reload splitters): Change true_regnum to REGNO in
5633         post-reload splitters.
5634         (zero_extend splitters): Use general_reg_operand and
5635         nonimmediate_gr_operand predicates.
5636
5637 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
5638
5639         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
5640         v constraint instead of x.
5641
5642 2016-05-05  Alan Modra  <amodra@gmail.com>
5643
5644         PR target/68662
5645         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
5646         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
5647         TARGET_NO_FP_IN_TOC for -mrelocatable.
5648         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
5649         TARGET_RELOCATABLE test.
5650         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
5651         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
5652         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5653         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
5654         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
5655         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5656         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
5657         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
5658         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
5659         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
5660         Likewise.
5661         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
5662         (rs6000_stack_info): Likewise.
5663         (rs6000_elf_asm_out_constructor): Likewise.
5664         (rs6000_elf_asm_out_destructor): Likewise.
5665         (rs6000_elf_declare_function_name): Likewise.
5666         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
5667         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
5668         Don't define.
5669
5670 2016-05-05  Alan Modra  <amodra@gmail.com>
5671
5672         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
5673
5674 2016-05-05  Alan Modra  <amodra@gmail.com>
5675
5676         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
5677         out-of-line gpr restore for one or two regs if that would add
5678         a save of lr.
5679
5680 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
5681
5682         PR target/70873
5683         * config/i386/i386.md
5684         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
5685         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
5686         as operand 0 predicate.
5687         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
5688         Ditto.
5689         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
5690         Ditto.  Emit the pattern using RTX.
5691
5692         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
5693         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
5694         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
5695         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
5696         Ditto.
5697         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
5698         sse_reg_operand as operand 0 predicate.
5699
5700         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
5701         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
5702         instead of gen_rtx_REG.
5703         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
5704         Ditto.
5705
5706 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
5707
5708         * function.c (emit_use_return_register_into_block): Delete.
5709         (gen_return_pattern): Delete.
5710         (emit_return_into_block): Delete.
5711         (active_insn_between): Delete.
5712         (convert_jumps_to_returns): Delete.
5713         (emit_return_for_exit): Delete.
5714         (thread_prologue_and_epilogue_insns): Delete all code dealing with
5715         simple_return for shrink-wrapped blocks.
5716         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
5717         end of blocks that need one.
5718         (get_unconverted_simple_return): Delete.
5719         (convert_to_simple_return): Delete.
5720         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
5721         (convert_to_simple_return): Ditto.
5722
5723 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
5724
5725         * cfgcleanup.c (bb_is_just_return): New function.
5726         (try_optimize_cfg): Simplify jumps to return, branches to return,
5727         and branches around return.
5728
5729 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
5730
5731         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
5732         branch to a return.
5733
5734 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
5735
5736         PR c++/70906
5737         PR c++/70933
5738         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
5739         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
5740         assert flags & OEP_HASH_CHECK, instead of asserting it
5741         never happens.  Handle TARGET_EXPR.
5742         * fold-const.c (operand_equal_p): For hash verification,
5743         or in OEP_HASH_CHECK into flags.
5744
5745 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
5746
5747         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
5748         comment.
5749         (compute_samebase_partition_bases): Fix typo.
5750
5751 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
5752
5753         * config/i386/sse.md (vec_interleave_highv8sf,
5754         vec_interleave_lowv8sf, vec_interleave_highv4df,
5755         vec_interleave_lowv4df): Remove constraints from expanders.
5756
5757         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
5758
5759 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
5760
5761         * tree-inline.c (expand_call_inline): Fix path dealing with
5762         making lhs of call statement undefined.
5763
5764 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
5765
5766         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
5767         Check availability on NODE, too.
5768         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
5769         (cgraph_node::call_for_symbol_and_aliases): Likewise.
5770         (varpool_node::call_for_symbol_and_aliase): Likewise.
5771         * ipa-pure-const.c (add_new_function): Analyze all bodies.
5772         (propagate_pure_const): Propagate across interposable functions, too.
5773         (skip_function_for_local_pure_const): Do not skip interposable bodies
5774         with aliases.
5775         (pass_local_pure_const::execute): Update.
5776
5777 2016-05-04  Marek Polacek  <polacek@redhat.com>
5778
5779         * doc/invoke.texi: Document -Wdangling-else.
5780
5781 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5782
5783         * config.gcc: Error out when conflicting multilib is detected.  Do not
5784         loop over multilibs since no combination is legal.
5785
5786 2016-05-04  Alan Modra  <amodra@gmail.com>
5787
5788         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
5789         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
5790         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
5791         Align .toc.
5792
5793 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
5794
5795         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
5796         Clean up p5600 comments.
5797
5798 2016-05-04  Richard Biener  <rguenther@suse.de>
5799
5800         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
5801         constructor simplifications.
5802         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
5803
5804 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
5805
5806         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
5807         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
5808         result.set_rtx is null instead of aborting.
5809         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
5810         Always enable.
5811         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
5812         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
5813         *mov<mode>_store_postinc): New patterns.
5814
5815 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
5816
5817         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
5818         as commutative.  Check both conversions are NOP.
5819         ((A & B) OP (C & B)): Remove.
5820
5821 2016-05-04  Alan Modra  <amodra@gmail.com>
5822
5823         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
5824
5825 2016-05-04  Alan Modra  <amodra@gmail.com>
5826
5827         PR target/70866
5828         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
5829         when cr2,3,4 are all fixed regs.
5830
5831 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
5832
5833         PR rtl-optimization/57193
5834         * opts.c (default_options_table): Revert OPT_frename_registers change.
5835         * doc/invoke.texi (-frename-registers, -O2): Likewise.
5836
5837 2016-05-03  Martin Sebor  <msebor@redhat.com>
5838
5839         PR c++/66561
5840         * builtins.c (fold_builtin_FILE): New function.
5841         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
5842         (fold_builtin_0): Call them.
5843         * gimplify.c (gimplify_call_expr): Remove the handling of
5844         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
5845
5846         PR c++/66561
5847         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
5848         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
5849         constants.
5850
5851         PR c++/66639
5852         * doc/extend.texi (Function Names as Strings): Update __func__,
5853         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
5854         constants.
5855
5856 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
5857             Richard Biener  <rguenther@suse.de>
5858
5859         PR tree-optimization/70916
5860         * tree-if-conv.c: Include cfganal.h.
5861         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
5862         and remove_fake_exit_edges around the optimization pass.
5863
5864 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
5865
5866         * cgraph.c (symbol_table::create_edge): Set inline_failed.
5867         (cgraph_edge::make_direct): Likewise.
5868         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
5869         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
5870         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
5871         (CIF_THUNK): New code.
5872         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
5873         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
5874         (compute_inline_parameters): Set inline_failed for thunks.
5875         (inline_analyze_function): Cleanup.
5876         * ipa-inline.c (can_inline_edge_p): Do not deal with
5877         call_stmt_cannot_inline_p.
5878         (can_early_inline_edge_p): Likewise.
5879         (early_inliner): Initialize inline_failed.
5880         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
5881
5882 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
5883
5884         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
5885         from nonimm_ssenomem_operand.
5886         (nonimm_ssenomem_operand): New predicate.
5887         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
5888         as operand 0 predicate.
5889         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
5890         Disable unsupported alternatives using "enabled" attribute.
5891         Use register_ssemem_operand as operand 0 predicate.
5892         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
5893
5894 2016-05-03  Marek Polacek  <polacek@redhat.com>
5895
5896         PR c/70859
5897         * input.c (expansion_point_location): New function.
5898         * input.h (expansion_point_location): Declare.
5899
5900 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
5901
5902         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
5903         occurence with frame_offset_ ones.
5904
5905 2016-05-03  Alan Modra  <amodra@gmail.com>
5906
5907         PR rtl-optimization/70890
5908         * ira.c (combine_and_move_insns): When moving def_insn, remove
5909         equivs on use_insn.
5910
5911 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5912
5913         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
5914         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
5915         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
5916         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
5917
5918 2016-05-03  Alan Modra  <amodra@gmail.com>
5919
5920         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
5921         for SAVE_MULTIPLE/STORE_MULTIPLE.
5922
5923 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
5924
5925         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
5926         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
5927
5928 2016-05-03  Richard Biener  <rguenther@suse.de>
5929
5930         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
5931         default true.
5932         (gimplify_arg): Likewise.
5933         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
5934         re-writing the result to a decl if required.
5935         (internal_get_tmp_var): Add allow_ssa parameter
5936         and override into_ssa with it.
5937         (get_formal_tmp_var): Adjust.
5938         (get_initialized_tmp_var): Add allow_ssa parameter.
5939         (gimplify_arg): Add allow_ssa parameter and avoid generating
5940         SSA names for the result false.
5941         (gimplify_call_expr): If the call may return twice do not
5942         gimplify parameters into SSA.
5943         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
5944         (gimplify_modify_expr): Adjust assert.  For noreturn calls
5945         with a SSA name LHS adjust its def.
5946         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
5947         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
5948         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
5949         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
5950         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
5951         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
5952         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
5953         (optimize_target_teams): Do not allow SSA names for clause operands.
5954         (gimplify_expr): Likewise for where we mark the result addressable.
5955         * passes.def (pass_init_datastructures): Remove.
5956         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
5957         (rewrite_stmt): Likewise.
5958         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
5959         (replace_locals_op): Replace SSA names.
5960         (copy_gimple_seq_and_replace_locals): Init src_cfun.
5961         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
5962         * cgraph.c (release_function_body): Free CFG annotations only
5963         when we have a CFG.  Simplify.
5964         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
5965         force_gimple_operand instead of get_initialized_tmp_var.
5966         * tree-pass.h (make_pass_init_datastructures): Remove.
5967         * tree-ssa.c (execute_init_datastructures): Remove.
5968         (pass_data_init_datastructures): Likewise.
5969         (class pass_init_datastructures): Likewise.
5970         (make_pass_init_datastructures): Likewise.
5971         * omp-low.c (create_omp_child_function): Init SSA data structures.
5972         (grid_expand_target_grid_body): Likewise.
5973         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
5974         name before adding it to names_to_release.
5975         (remove_bb): Always release SSA defs.
5976         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
5977         before dereferencing it.
5978         * cgraphunit.c (init_lowered_empty_function): Always
5979         int SSA data structures.
5980         * tree-ssanames.c (release_defs): Remove assert that we are in
5981         SSA form.
5982         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
5983
5984 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
5985             Uros Bizjak  <ubizjak@gmail.com>
5986
5987         PR rtl-optimization/70467
5988         * config/i386/predicates.md (x86_64_hilo_int_operand,
5989         x86_64_hilo_general_operand): New predicates.
5990         * config/i386/constraints.md (Wd): New constraint.
5991         * config/i386/i386.md (mode attr di): Use Wd instead of e.
5992         (general_hilo_operand): New mode attr.
5993         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
5994         instead of <general_operand>.
5995         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
5996         x86_64_hilo_general_operand instead of <general_operand>.
5997
5998 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
5999
6000         PR tree-optimization/70916
6001         * tree-if-conv.c (constant_or_ssa_name): Removed.
6002         (fold_build_cond_expr): Use is_gimple_val instead of
6003         constant_or_ssa_name.
6004
6005         PR tree-optimization/70916
6006         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
6007         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
6008
6009         PR target/49244
6010         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
6011         (optimize_atomic_bit_test_and): New function.
6012         (pass_fold_builtins::execute): Use it.
6013         * optabs.def (atomic_bit_test_and_set_optab,
6014         atomic_bit_test_and_complement_optab,
6015         atomic_bit_test_and_reset_optab): New optabs.
6016         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
6017         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
6018         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
6019         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
6020         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
6021         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
6022         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
6023         * doc/md.texi (atomic_bit_test_and_set@var{mode},
6024         atomic_bit_test_and_complement@var{mode},
6025         atomic_bit_test_and_reset@var{mode}): Document.
6026         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
6027         atomic_bit_test_and_complement<mode>,
6028         atomic_bit_test_and_reset<mode>): New expanders.
6029         (atomic_bit_test_and_set<mode>_1,
6030         atomic_bit_test_and_complement<mode>_1,
6031         atomic_bit_test_and_reset<mode>_1): New insns.
6032
6033 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
6034
6035         PR rtl-optimization/70687
6036         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
6037         instead of unsigned HOST_WIDE_INT.
6038
6039 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
6040
6041         PR rtl-optimization/44281
6042         * hard-reg-set.h (struct target_hard_regs): New field
6043         x_fixed_nonglobal_reg_set.
6044         (fixed_nonglobal_reg_set): New macro.
6045         * reginfo.c (init_reg_sets_1): Initialize it.
6046         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
6047         of fixed_reg_set.
6048         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
6049
6050 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
6051
6052         PR tree-optimization/56541
6053         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
6054         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
6055         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
6056         (any_complicated_phi): new static variable.
6057         (aggressive_if_conv): delete.
6058         (if_convertible_phi_p): support phis with more than two arguments.
6059         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
6060         critical pred edges.
6061         (ifcvt_split_critical_edges): support phis with more than two
6062         arguments by checking new parameter.  only split critical edges
6063         if needed.
6064         (tree_if_conversion): handle simd pragma marked loop using new
6065         local variable aggressive_if_conv.  check any_complicated_phi.
6066
6067 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
6068
6069         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
6070         before using it.
6071
6072 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
6073
6074         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
6075         cbase.
6076
6077 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
6078
6079         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
6080         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
6081         define_insn_and_split.
6082         (mulsi3_i): New define_insn_and_split.
6083         (mulsi3_call): Convert to define_insn.
6084         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
6085         Remove constraints.
6086
6087 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
6088
6089         * machmode.h (mode_complex): Add support to give the complex mode
6090         for a given mode.
6091         (GET_MODE_COMPLEX_MODE): Likewise.
6092         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
6093         stored by build_complex_type and gfc_build_complex_type instead of
6094         trying to figure out the appropriate mode based on the size. Raise
6095         an assertion error, if the type was not set.
6096         * genmodes.c (struct mode_data): Add field for the complex type of
6097         the given type.
6098         (blank_mode): Likewise.
6099         (make_complex_modes): Remember the complex mode created in the
6100         base type.
6101         (emit_mode_complex): Write out the mode_complex array to map a
6102         type mode to the complex version.
6103         (emit_insn_modes_c): Likewise.
6104         * tree.c (build_complex_type): Set the complex type to use before
6105         calling layout_type.
6106         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
6107         support for __float128 complex datatypes.
6108         (rs6000_hard_regno_mode_ok): Likewise.
6109         (rs6000_setup_reg_addr_masks): Likewise.
6110         (rs6000_complex_function_value): Likewise.
6111         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
6112         __float128 and __ibm128 complex.
6113         (FLOAT128_IBM_P): Likewise.
6114         (ALTIVEC_ARG_MAX_RETURN): Likewise.
6115         * doc/extend.texi (Additional Floating Types): Document that
6116         -mfloat128 must be used to enable __float128.  Document complex
6117         __float128 and __ibm128 support.
6118
6119 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
6120
6121         PR target/49244
6122         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
6123         char/short arguments promoted to int because of promote_prototypes.
6124
6125 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
6126
6127         * config/i386/predicates.md (register_ssemem_operand): New predicate.
6128         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
6129         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
6130         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
6131         alternatives using "enabled" attribute.  Use register_ssemem_operand
6132         as operand 1 predicate.
6133         (*cmpi<unord>xf_i387): Split XFmode pattern from
6134         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
6135         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
6136         *absneg<mode>2_i387.  Disable unsupported alternatives using
6137         "enabled" attribute.
6138         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
6139
6140 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
6141
6142         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
6143         marker.
6144         (oacc_loop_process): Check mask for loop termination.
6145
6146 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
6147
6148         * cif-code.def (CIF_THUNK): Add.
6149         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
6150         accidental change.
6151
6152 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
6153
6154         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
6155         (dump_inline_summary): Dump it.
6156         (fp_expression_p): New predicate.
6157         (estimate_function_body_sizes): Use it.
6158         (inline_merge_summary): Merge fp_expressions.
6159         (inline_read_section): Read fp_expressions.
6160         (inline_write_summary): Write fp_expressions.
6161         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
6162         codegen boundary if either caller or callee is !fp_expressions.
6163         * ipa-inline.h (inline_summary): Add fp_expressions.
6164         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
6165         to fp_expressions be sure the fp generation flags are updated.
6166
6167 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
6168
6169         PR rtl-optimization/70467
6170         * cse.c (cse_insn): Handle no-op MEM moves after folding.
6171
6172         PR rtl-optimization/70467
6173         * ipa-pure-const.c (check_call): Handle internal calls even in
6174         ipa mode like in local mode.
6175
6176 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6177
6178         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
6179
6180 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
6181
6182         * match.pd (X u< X, X u> X): New transformations.
6183
6184 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
6185
6186         * flag-types.h (enum warn_strict_overflow_code): Move ...
6187         * coretypes.h: ... here.
6188         * fold-const.h (fold_overflow_warning): Declare.
6189         * fold-const.c (fold_overflow_warning): Make non-static.
6190         (fold_comparison): Move the transformation of X +- C1 CMP C2
6191         into X CMP C2 -+ C1 ...
6192         * match.pd: ... here.
6193         * gimple-fold.c (fold_stmt_1): Protect with
6194         fold_defer_overflow_warnings.
6195
6196 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
6197
6198         * omp-low.c (struct oacc_loop): Add 'inner' field.
6199         (new_oacc_loop_raw): Initialize it to zero.
6200         (oacc_loop_fixed_partitions): Initialize it.
6201         (oacc_loop_auto_partitions): Partition outermost loop to outermost
6202         available partitioning.
6203
6204 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
6205
6206         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
6207         register_operand.
6208         (umulsidi3): Likewise.
6209         (indirect_jump): Fix jump instruction assembly patterns.
6210
6211 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
6212
6213         PR target/70860
6214         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
6215         (nvptx_function_value): Assert non-NULL cfun.
6216
6217 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
6218
6219         PR rtl-optimization/70886
6220         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
6221
6222         * cselib.h (rtx_equal_for_cselib_1): Declare.
6223         (rtx_equal_for_cselib_p: New inline function.
6224         * cselib.c (rtx_equal_for_cselib_p): Delete.
6225         (rtx_equal_for_cselib_1): Make public.
6226
6227 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
6228
6229         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
6230         (register_mixssei387nonimm_operand): Remove predicate.
6231         * config/i386/i386.md (*fop_<mode>_comm): Merge from
6232         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
6233         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
6234         for TARGET_MIX_SSE_I387 alternatives.
6235         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
6236         Disable unsupported alternatives using "enabled" attribute.  Use
6237         nonimm_ssenomem_operand as operand 1 predicate.  Also check
6238         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
6239
6240 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
6241
6242         * tree.c (cst_and_fits_in_hwi): Simplify.
6243
6244 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
6245
6246         * tree.h (wi::to_wide): New function.
6247         * expr.c (expand_expr_real_1): Use wi::to_wide.
6248         * fold-const.c (int_const_binop_1): Likewise.
6249         (extract_muldiv_1): Likewise.
6250
6251 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
6252
6253         * wide-int.h: Update offset_int and widest_int documentation.
6254         (WI_SIGNED_SHIFT_RESULT): New macro.
6255         (wi::binary_shift): Define signed_shift_result_type for
6256         shifts on offset_int- and widest_int-like types.
6257         (generic_wide_int): Support <<= and >>= if << and >> are supported.
6258         * tree.h (int_bit_position): Use shift operators instead of wi::
6259          shifts.
6260         * alias.c (adjust_offset_for_component_ref): Likewise.
6261         * expr.c (get_inner_reference): Likewise.
6262         * fold-const.c (fold_comparison): Likewise.
6263         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
6264         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
6265         * tree-dfa.c (get_ref_base_and_extent): Likewise.
6266         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6267         (stmt_kills_ref_p): Likewise.
6268         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
6269         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
6270         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6271         (ao_ref_init_from_vn_reference): Likewise.
6272
6273 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
6274
6275         * wide-int.h: Update offset_int and widest_int documentation.
6276         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
6277         (wi::binary_traits): Allow ordered comparisons between offset_int and
6278         offset_int, between widest_int and widest_int, and between either
6279         of these types and basic C types.
6280         (operator <, <=, >, >=): Define for the same combinations.
6281         * tree.h (tree_int_cst_lt): Use comparison operators instead
6282         of wi:: comparisons.
6283         (tree_int_cst_le): Likewise.
6284         * gimple-fold.c (fold_array_ctor_reference): Likewise.
6285         (fold_nonarray_ctor_reference): Likewise.
6286         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
6287         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
6288         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
6289         * tree-sra.c (completely_scalarize): Likewise.
6290         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
6291         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
6292         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
6293         (check_for_binary_op_overflow): Likewise.
6294         (search_for_addr_array): Likewise.
6295         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
6296
6297 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
6298
6299         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
6300         (arc_save_restore): Likewise.
6301         (arc_dwarf_register_span): Likewise.
6302         (arc_output_pic_addr_const): Initialize suffix variable.
6303
6304 2016-05-02  Martin Liska  <mliska@suse.cz>
6305
6306         * symbol-summary.h (function_summary::function_summary):
6307         Remove checking assert for all cgraph nodes.
6308         (function_summary::get): Check summary_uid.
6309         (symtab_insertion): Check summary_uid.
6310
6311 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
6312
6313         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
6314         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
6315         bmaskn instruction.
6316         (arc_dwarf_register_span): Remove enum keyword.
6317         (compact_memory_operand_p): New function.
6318         * config/arc/arc.h (reg_class): Add code density register classes.
6319         (REG_CLASS_NAMES): Likewise.
6320         (REG_CLASS_CONTENTS): Likewise.
6321         * config/arc/arc.md (*movqi_insn): Add code density instructions.
6322         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
6323         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
6324         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
6325         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
6326         constraints.
6327         (h, Rcd, Rsd, Rzd): New register constraints.
6328         (T): Use compact_memory_operand_p function.
6329         * config/arc/predicates.md (compact_load_memory_operand): Remove.
6330
6331 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
6332
6333         * config/sh/sh.md (*negnegt, *movtt): Remove.
6334
6335 2016-05-02  Marek Polacek  <polacek@redhat.com>
6336             Tom de Vries  <tom@codesourcery.com>
6337
6338         PR tree-optimization/70700
6339         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
6340         bigger than FIRST_REF_NODE.
6341
6342 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
6343
6344         PR target/52898
6345         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
6346         TARGET_CMPEQDI_T.
6347         (prepare_cbranch_operands): Don't use scratch register.  Assume that
6348         function is used when pseudos can be created.
6349         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
6350         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
6351         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
6352         define_expand.  Allow it only when pseudos can be created.
6353         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
6354
6355 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
6356
6357         * config/i386/constraints.md (BC): Only allow -1 operands.
6358         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
6359         Add "enabled" attribute.  Update XI mode attribute calculation.
6360         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
6361         (*movoi_internal_avx): Update XI mode attribute calculation.
6362         (*movti_internal): Ditto.
6363
6364 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
6365
6366         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
6367         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
6368
6369 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
6370
6371         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
6372         statement on instruction code.  Remove trailing spaces.
6373         (altivec_expand_stv_builtin): Likewise.
6374
6375 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
6376
6377         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
6378         (TARGET_FPU_DOUBLE): Simplify.
6379         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
6380         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
6381         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
6382         with 'TARGET_FPU_DOUBLE'.
6383         * config/sh/sh.md: Likewise.
6384
6385 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
6386
6387         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
6388         SH_DIV_STR_FOR_SIZE): Remove.
6389         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
6390         SH_DIV_STR_FOR_SIZE): Remove.
6391
6392 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
6393
6394         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
6395         logical_reg_operand): Delete.
6396         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
6397         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
6398         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
6399         match_operand and match_test.
6400         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
6401         variables on their first use.  Return bool values.
6402         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
6403         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
6404         arith_reg_operand for input operand.  Remove empty constraints.
6405         (xorsi3): Delete.
6406         (*xorsi3_compact): Rename to xorsi3.
6407         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
6408         (*zero_extend<mode>si2_disp_mem): Update comment.
6409         (mov_nop): Delete.
6410
6411 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
6412
6413         * config/sh/t-sh: Remove SH5 support.
6414         * config.gcc: Likewise.
6415         * configure: Likewise.
6416
6417 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6418
6419         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
6420
6421 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
6422
6423         * config/sh/sh.c (register_sh_passes, sh_option_override,
6424         sh_print_operand, prepare_move_operands,
6425         sh_can_follow_jump): Remove TARGET_SH1 checks.
6426         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
6427         PROMOTE_MODE): Likewise.
6428         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
6429         movdi): Likewise.
6430
6431 2016-04-30  Alan Modra  <amodra@gmail.com>
6432
6433         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
6434         restoring when fixed_reg_p, but allow out-of-line or stmw save.
6435         Check for user regs later to avoid unnecessary looping over regs.
6436         Merge user reg check with non-saved reg check.  Don't force
6437         inline VR restore when static chain used.
6438         (rs6000_frame_related): Omit eh_frame info for user regs when
6439         saving.
6440         (fixed_regs_p): Delete.
6441
6442 2016-04-30  Alan Modra  <amodra@gmail.com>
6443
6444         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
6445         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
6446         Update all uses.
6447
6448 2016-04-30  Alan Modra  <amodra@gmail.com>
6449
6450         PR target/69645
6451         * config/rs6000/rs6000.c (fixed_reg_p): New function.
6452         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
6453         Update all uses.
6454
6455 2016-04-30  Alan Modra  <amodra@gmail.com>
6456
6457         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
6458         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
6459         flag_pic test for Darwin.
6460
6461 2016-04-30  Alan Modra  <amodra@gmail.com>
6462
6463         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
6464         throw_calls_crossed.
6465         (REG_FREQ_CALLS_CROSSED): Delete.
6466         (REG_N_THROWING_CALLS_CROSSED): Delete.
6467         * regstat.c (regstat_bb_compute_ri): Don't calculate
6468         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
6469         (dump_reg_info): Don't print call cross frequency.
6470         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
6471         and REG_N_THROWING_CALLS_CROSSED.
6472
6473 2016-04-30  Alan Modra  <amodra@gmail.com>
6474
6475         * regs.h (struct reg_info_t): Delete live_length.
6476         (REG_LIVE_LENGTH): Delete macro.
6477         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
6478         local_live, local_processed and local_live_last_luid params.
6479         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
6480         Formatting fixes.
6481         (regstat_compute_ri): Adjust for above.  Don't set
6482         REG_LIVE_LENGTH.
6483         (dump_reg_info): Don't print live length.
6484         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
6485         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
6486         Localize loop_depth var.
6487
6488 2016-04-30  Alan Modra  <amodra@gmail.com>
6489
6490         * ira.c (enum valid_equiv): New.
6491         (validate_equiv_mem): Return enum.
6492         (update_equiv_mem): Create replacement in more cases.
6493         (add_store_equivs): Update validate_equiv_mem call.
6494
6495 2016-04-30  Alan Modra  <amodra@gmail.com>
6496
6497         * ira.c (combine_and_move_insns): Rather than scanning insns,
6498         use DF infrastucture to find use and def insns.
6499
6500 2016-04-30  Alan Modra  <amodra@gmail.com>
6501
6502         ira.c (combine_and_move_insns): Move invariant conditions..
6503         (ira.c): ..to here.  Call combine_and_move_insns before
6504         add_store_equivs.  Call grow_reg_equivs later.  Allocate
6505         req_equiv later using max_reg_num() rather than global max_regno.
6506         (contains_replace_regs): Delete.
6507         (add_store_equivs): Remove contains_replace_regs test.
6508
6509 2016-04-30  Alan Modra  <amodra@gmail.com>
6510
6511         * ira.c (struct equiv_mem_data): New.
6512         (equiv_mem, equiv_mem_modified): Delete static vars.
6513         (validate_equiv_mem_from_store): Use "data" param to communicate..
6514         (validate_equiv_mem): ..from here.
6515
6516 2016-04-30  Alan Modra  <amodra@gmail.com>
6517
6518         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
6519         split out from..
6520         (update_reg_equivs): ..here.  Move allocation and freeing of
6521         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
6522         end_alias_analysis to..
6523         (ira): ..here.
6524
6525 2016-04-30  Alan Modra  <amodra@gmail.com>
6526
6527         * ira.c (pdx_subregs): Delete.
6528         (struct equivalence): Add pdx_subregs field.
6529         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
6530         pdx_subregs access.
6531         (update_equiv_regs): Don't create or free pdx_subregs.  Update
6532         pdx_subregs access.
6533
6534 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6535
6536         * config/rs6000/altivec.h: Change definitions of vec_xl and
6537         vec_xst.
6538         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
6539         (LD_ELEMREV_V2DI): New.
6540         (LD_ELEMREV_V4SF): New.
6541         (LD_ELEMREV_V4SI): New.
6542         (LD_ELEMREV_V8HI): New.
6543         (LD_ELEMREV_V16QI): New.
6544         (ST_ELEMREV_V2DF): New.
6545         (ST_ELEMREV_V2DI): New.
6546         (ST_ELEMREV_V4SF): New.
6547         (ST_ELEMREV_V4SI): New.
6548         (ST_ELEMREV_V8HI): New.
6549         (ST_ELEMREV_V16QI): New.
6550         (XL): New.
6551         (XST): New.
6552         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6553         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
6554         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
6555         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
6556         (altivec_expand_builtin): Add handling for
6557         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
6558         (rs6000_invalid_builtin): Add error-checking for
6559         RS6000_BTM_P9_VECTOR.
6560         (altivec_init_builtins): Define builtins used to implement vec_xl
6561         and vec_xst.
6562         (rs6000_builtin_mask_names): Define power9-vector.
6563         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
6564         (RS6000_BTM_P9_VECTOR): Define.
6565         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
6566         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
6567         (vsx_ld_elemrev_v2df): Likewise.
6568         (vsx_ld_elemrev_v4sf): Likewise.
6569         (vsx_ld_elemrev_v4si): Likewise.
6570         (vsx_ld_elemrev_v8hi): Likewise.
6571         (vsx_ld_elemrev_v16qi): Likewise.
6572         (vsx_st_elemrev_v2df): Likewise.
6573         (vsx_st_elemrev_v2di): Likewise.
6574         (vsx_st_elemrev_v4sf): Likewise.
6575         (vsx_st_elemrev_v4si): Likewise.
6576         (vsx_st_elemrev_v8hi): Likewise.
6577         (vsx_st_elemrev_v16qi): Likewise.
6578         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
6579         grammar.
6580
6581 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
6582
6583         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
6584         out into ...
6585         (simplify_control_stmt_condition_1): ... here.  Recurse into
6586         BIT_AND_EXPRs and BIT_IOR_EXPRs.
6587
6588 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
6589
6590         PR target/69810
6591         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
6592         (zero_extendqi<mode>2_dot): Revert earlier conversion from
6593         define_insn_and_split to define_insn.
6594         (zero_extendqi<mode>2_dot2): Same.
6595         (extendqi<mode>2_dot): Same.
6596         (extendqi<mode>2_dot2): Same.
6597
6598 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
6599
6600         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
6601         (probe_stack): New expander.
6602         (probe_stack_<mode>): New insn pattern.
6603
6604 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
6605
6606         * config/i386/i386.md
6607         (operations with memory inputs setting flags peephole2):
6608         Remove uneeded REG_P checks.  Cleanup pattern generation.
6609
6610 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
6611
6612         * tree-vect-loop.c (vect_transform_loop): Fix
6613         nb_iterations_upper_bound computation for vectorized loop.
6614
6615 2016-04-29  Marek Polacek  <polacek@redhat.com>
6616             Jakub Jelinek  <jakub@redhat.com>
6617
6618         PR sanitizer/70342
6619         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
6620         TARGET_EXPR_SLOT as a base.
6621
6622 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
6623
6624         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
6625         with 'rCm2' constraints to limit possible immediate size.
6626         (*load_zeroextendqisi_update): Likewise.
6627         (*load_signextendqisi_update): Likewise.
6628         (*loadhi_update): Likewise.
6629         (*load_zeroextendhisi_update): Likewise.
6630         (*load_signextendhisi_update): Likewise.
6631         (*loadsi_update): Likewise.
6632         (*loadsf_update): Likewise.
6633
6634 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
6635
6636         * config/i386/predicates.md (constm1_operand): Fix comparison.
6637
6638 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
6639
6640         * testsuite/gcc.target/arc/ieee_eq.c: New test.
6641
6642 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
6643
6644         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
6645         remaining SH5 related settings.
6646         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
6647         shmedia_prepare_call_address): Delete.
6648         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
6649         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
6650         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
6651         UNSUPPORTED_SH2A): Remove m5 checks.
6652         (sh_divide_strategy_e): Remove SH5 division strategies.
6653         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
6654         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
6655
6656 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6657
6658         * config/s390/s390.c (s390_rtx_costs): Update documentation.
6659
6660 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6661
6662         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
6663         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
6664         Change lder to ldr.
6665         * config/s390/vector.md ("mov<mode>"): Likewise.
6666
6667 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
6668
6669         * config/s390/constraints.md ("U", "W"): Invoke
6670         s390_mem_constraint with "ZR" and "ZT".
6671         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
6672         addresses when using LRA.  Accept also short displacements for S
6673         and T constraints.  Do not check for long displacement target for
6674         S and T constraints.
6675         (s390_mem_constraint): Remove handling of U and W constraints.
6676         * config/s390/s390.md (various patterns): Remove the short
6677         displacement constraints (Q and R) if a long displacement
6678         constraint is present.  Add longdisp as required CPU capability.
6679         * config/s390/vector.md: Likewise.
6680         * config/s390/vx-builtins.md: Likewise.
6681
6682 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6683
6684         PR target/60040
6685         * reload1.c (reload): Call finish_spills before
6686         restarting reload loop. Skip select_reload_regs
6687         if update_eliminables_and_spill returns true.
6688
6689 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
6690
6691         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
6692         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
6693         (umulhisi3_imm): Update predicates and constraint letters.
6694         (umulhisi3_reg): Declare instruction as commutative.
6695         * config/arc/constraints.md (J12, J16): New constraints.
6696         * config/arc/predicates.md (short_unsigned_const_operand): New
6697         predicate.
6698         (arc_short_operand): Likewise.
6699         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
6700
6701 2016-04-29  Richard Biener  <rguenther@suse.de>
6702
6703         PR tree-optimization/13962
6704         PR tree-optimization/65686
6705         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
6706         * tree-ssa-alias.c (ptrs_compare_unequal): New function
6707         using PTA to compare pointers.
6708         * match.pd: Add pattern for pointer equality compare simplification
6709         using ptrs_compare_unequal.
6710
6711 2016-04-29  Richard Biener  <rguenther@suse.de>
6712
6713         * stor-layout.c (layout_type): Do not build a pointer-to-element
6714         type for arrays.
6715
6716 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
6717
6718         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
6719         Use SWI mode iterator.  Use general_reg_operand predicate.
6720         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
6721         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
6722         predicates.
6723
6724 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
6725
6726         PR middle-end/70843
6727         * fold-const.c (operand_equal_p): Don't verify hash value equality
6728         if arg0 == arg1.
6729         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
6730         and OMP_CLAUSE.
6731
6732 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
6733
6734         PR target/70858
6735         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
6736         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
6737         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
6738         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
6739         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
6740
6741 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
6742
6743         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
6744         to info.  Don't initialize separate fields to 0.  Clean up
6745         formatting a bit.
6746
6747 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
6748
6749         * config/i386/i386.md (peephole2s for operations with memory inputs):
6750         Use SWI mode iterator.
6751         (peephole2s for operations with memory outputs): Ditto.
6752         Do not check for stack checking probe.
6753
6754         (probe_stack): Remove expander.
6755
6756 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
6757             Andrew Burgess  <andrew.burgess@embecosm.com>
6758
6759         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
6760         operands as 32-bits.
6761
6762 2016-04-28  Jason Merrill  <jason@redhat.com>
6763
6764         * gdbinit.in: Skip line-map.h.
6765
6766 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
6767             Andrew Burgess  <andrew.burgess@embecosm.com>
6768
6769         * config/arc/arc.c (arc_conditional_register_usage): Take
6770         TARGET_RRQ_CLASS into account.
6771         (arc_print_operand): Support printing 'p' and 's' operands.
6772         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
6773         as 0.
6774         (TARGET_RRQ_CLASS): Define.
6775         (IS_POWEROF2_OR_0_P): Define.
6776         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
6777         alternatives.
6778         (*tst_movb): New define_insn.
6779         (*tst): Avoid recognition if it could prevent '*tst_movb'
6780         combination; replace c/CnL with c/Chs alternative.
6781         (*tst_bitfield_tst): New define_insn.
6782         (*tst_bitfield_asr): New define_insn.
6783         (*tst_bitfield): New define_insn.
6784         (andsi3_i): Add Rrq variant.
6785         (extzv): New define_expand.
6786         (insv): New define_expand.
6787         (*insv_i): New define_insn.
6788         (*movb): New define_insn.
6789         (*movb_signed): New define_insn.
6790         (*movb_high): New define_insn.
6791         (*movb_high_signed): New define_insn.
6792         (*movb_high_signed + 1): New define_split pattern.
6793         (*mrgb): New define_insn.
6794         (*mrgb + 1): New define_peephole2 pattern.
6795         (*mrgb + 2): New define_peephole2 pattern.
6796         * config/arc/arc.opt (mbitops): New option for nps400, uses
6797         TARGET_NPS_BITOPS_DEFAULT.
6798         * config/arc/constraints.md (q): Make register class conditional.
6799         (Rrq): New register constraint.
6800         (Chs): New constraint.
6801         (Clo): New constraint.
6802         (Chi): New constraint.
6803         (Cbf): New constraint.
6804         (Cbn): New constraint.
6805         (C18): New constraint.
6806         (Cbi): New constraint.
6807
6808 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
6809
6810         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
6811         dst->popcount.
6812         (bitmap_intersection_of_preds): Ditto.
6813         (bitmap_union_of_succs): Ditto.
6814         (bitmap_union_of_preds): Ditto.
6815         * sbitmap.c (do_popcount): Delete.
6816         (BITMAP_DEBUGGING): Delete.
6817         (sbitmap_verify_popcount): Delete.
6818         (sbitmap_alloc): Don't initialize the popcount field.
6819         (sbitmap_alloc_with_popcount): Delete.
6820         (sbitmap_resize): Don't resize the popcount array.
6821         (sbitmap_vector_alloc): Don't initialize the popcount field.
6822         (bitmap_copy): Don't copy the popcount array.
6823         (bitmap_clear): Don't clear the popcount array.
6824         (bitmap_clear): Delete the popcount array handling.
6825         (bitmap_ior_and_compl): Delete the popcount assert.
6826         (bitmap_not): Ditto.
6827         (bitmap_and_compl): Ditto.
6828         (bitmap_and): Delete the popcount array handling.
6829         (bitmap_xor): Ditto.
6830         (bitmap_ior): Ditto.
6831         (bitmap_or_and): Delete the popcount assert.
6832         (bitmap_and_or): Ditto.
6833         (popcount_table): Delete.
6834         (sbitmap_elt_popcount): Delete.
6835         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
6836         (bitmap_set_bit): Delete the popcount assert.
6837         (bitmap_clear_bit): Ditto.
6838         (sbitmap_free): Don't free the popcount array.
6839         (sbitmap_alloc_with_popcount): Delete declaration.
6840         (sbitmap_popcount): Ditto.
6841
6842 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
6843             Andrew Burgess  <andrew.burgess@embecosm.com>
6844
6845         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
6846         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
6847         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
6848         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
6849         * config/arc/arc.opt (mcmem): New option.
6850         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
6851         supply length for r/m alternative.
6852         (*extendqisi2_ac): Likewise.
6853         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
6854         r/Uex alternative.
6855         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
6856         (movhi_insn): Likewise.
6857         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
6858         (*zero_extendqihi2_i): Add r/Ucm alternative.
6859         (*zero_extendqisi2_ac): Likewise.
6860         (*zero_extendhisi2_i): Likewise.
6861         * config/arc/constraints.md (Uex): New memory constraint.
6862         (Ucm): New define_constraint.
6863         * config/arc/predicates.md (long_immediate_loadstore_operand):
6864         Return 0 for MEM with cmem_address address.
6865         (cmem_address_0): New predicates.
6866         (cmem_address_1): Likewise.
6867         (cmem_address_2): Likewise.
6868         (cmem_address): Likewise.
6869
6870 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
6871
6872         * config/rs6000/rs6000.c (machine_function): Rename
6873         insn_chain_scanned_p to spe_insn_chain_scanned_p.
6874         (rs6000_stack_info): Adjust.
6875
6876 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
6877             Andrew Burgess  <andrew.burgess@embecosm.com>
6878
6879         * config/arc/constraints.md (Usd): Convert to define_constraint.
6880         (Us<): Likewise.
6881         (Us>): Likewise.
6882
6883 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
6884
6885         PR target/70821
6886         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
6887         Add new peephole2 where the first insn is *mov<mode>_or instead of
6888         *mov<mode>_internal.
6889
6890 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
6891
6892         * tracer.c (bb_seen): Make static.
6893
6894 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
6895
6896         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
6897         support, setup defaults.
6898         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
6899         * config/arc/arc.c (arc_init): Add NPS400 support.
6900         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
6901         (TARGET_ARC700): NPS400 is also an ARC700.
6902         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
6903
6904 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
6905
6906         PR target/70668
6907         * config/nds32/nds32.md (casesi): Don't access the operands array
6908         out of bounds.
6909
6910 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
6911
6912         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
6913         (or $-1,reg peephole2): Ditto.
6914         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
6915
6916 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
6917
6918         * doc/extend.texi (Common Function Attributes) [optimize]:
6919         Discourage use of the optimize attribute.
6920
6921 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
6922
6923         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
6924         special case builtin.
6925         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
6926         ALTIVEC_BUILTIN_VEC_ADDE.
6927         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
6928         support for ALTIVEC_BUILTIN_VEC_ADDE.
6929         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
6930         for __builtin_vec_adde.
6931
6932 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
6933
6934         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
6935         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
6936
6937 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6938
6939         PR testsuite/70595
6940         * doc/sourcebuild.texi (Effective-Target Keywords, Other
6941         attributes): Document cilkplus_runtime.
6942
6943 2016-04-28  Martin Jambor  <mjambor@suse.cz>
6944
6945         * tree-cfg.c (verify_expr): Verify that local declarations belong to
6946         this function.  Call verify_expr on MEM_REFs and bases of other
6947         handled_components.
6948
6949 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6950
6951         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
6952         for WORD_REGISTER_OPERATIONS to runtime check.
6953
6954 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
6955
6956         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
6957
6958 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
6959
6960         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
6961         big-endian compilation.
6962         * config/arc/arc.md (addf3): Likewise.
6963         (subdf3): Likewise.
6964         (muldf3): Likewise.
6965
6966 2016-04-28  Richard Biener  <rguenther@suse.de>
6967
6968         PR tree-optimization/70840
6969         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
6970         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
6971         Mark x * pow(x,c) -> pow(x,c+1) commutative.
6972         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
6973
6974 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6975
6976         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
6977         and explain why in a comment.
6978
6979 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
6980
6981         * config/arc/arc.md (cpu_facility): Add fpx variant.
6982         (subdf3): Prohibit use reverse sub when assist operations option
6983         is enabled.
6984         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
6985         instructions only when FPX is enabled.
6986         * testsuite/gcc.target/arc/trsub.c: New test.
6987
6988 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
6989
6990         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
6991         mult_operator when calculating "type" attribute.
6992         (*fop_<mode>_1_i387): Ditto.
6993         (*fop_xf_1_i387): Ditto.
6994         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
6995         Use std::swap to swap operands.  Use RTL expressions to generate
6996         converted pattern.
6997
6998 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
6999             Joern Rennecke  <joern.rennecke@embecosm.com>
7000
7001         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
7002         declaration.
7003         (emit_pic_move): Remove.
7004         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
7005         * config/arc/arc.c (emit_pic_move): Removed.
7006         (TARGET_HAVE_TLS): Define.
7007         (arc_conditional_register_usage): Test for arc_tp_regno.
7008         (arc_print_operand, arc_print_operand_address): Handle TLS
7009         unspecs.
7010         (arc_needs_pcl_p): New function.
7011         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
7012         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
7013         (arc_raw_symbolic_reference_mentioned_p): Likewise.
7014         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
7015         (arc_legitimize_tls_address): Likewise.
7016         (DTPOFF_ZERO_SYM): Define.
7017         (arc_legitimize_pic_address): Make it static, handle TLS cases.
7018         (arc_output_pic_addr_const): Print TLS unspecs.
7019         (prepare_pic_move): New function, replaces emit_pic_move.
7020         (arc_legitimate_constant_p): Handle TLS unspecs.
7021         (arc_legitimate_address_p): Likewise.
7022         (arc_rewrite_small_data_p): Use assert for TLS constants.
7023         (prepare_move_operands): Use prepare_pic_move.
7024         (arc_legitimize_address): Legitimize tls addresses.
7025         (arc_epilogue_uses): Check for arc_tp_regno.
7026         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
7027         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
7028         Define.
7029         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
7030         Likewise.
7031         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
7032         %(arc_tls_extra_start_spec).
7033         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
7034         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
7035         (EH_USES): Define.
7036         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
7037         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
7038         (UNSPEC_TLS_OFF): Add.
7039         (R10_REG): Define.
7040         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
7041         (get_thread_pointersi): New patterns.
7042         * config/arc/arc.opt (mtp-regno): New option.
7043         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
7044         (move_dest_operand): Likewise.
7045         * configure: Regenerate.
7046         * configure.ac: Add arc*-*-* case to test for tls.
7047         * doc/invoke.texi (ARC options): Document mtp-regno.
7048
7049 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
7050
7051         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
7052         the new ARC HS SIMD instructions.
7053         (arc_preferred_simd_mode): New function.
7054         (arc_autovectorize_vector_sizes): Likewise.
7055         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
7056         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7057         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
7058         (arc_init_builtins): Add new SIMD builtin types.
7059         (arc_split_move): Handle 64 bit vector moves.
7060         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
7061         (TARGET_PLUS_QMACW): Define.
7062         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
7063         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
7064         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
7065         (VSUBADD4H): New builtins.
7066         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
7067         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
7068
7069 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
7070             Matthias Klose  <doko@debian.org>
7071
7072         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
7073
7074 2016-04-28  Richard Biener  <rguenther@suse.de>
7075
7076         PR middle-end/70777
7077         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
7078         canonicalization.
7079
7080 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
7081
7082         * common/config/sh/sh-common.c: Remove SH5 support.
7083         * config/sh/constraints.md: Likewise.
7084         * config/sh/config/sh/elf.h: Likewise.
7085         * config/sh/linux.h: Likewise.
7086         * config/sh/netbsd-elf.h: Likewise.
7087         * config/sh/predicates.md: Likewise.
7088         * config/sh/sh-c.c: Likewise.
7089         * config/sh/sh-protos.h: Likewise.
7090         * config/sh/sh.c: Likewise.
7091         * config/sh/sh.h: Likewise.
7092         * config/sh/sh.md: Likewise.
7093         * config/sh/sh.opt: Likewise.
7094         * config/sh/sync.md: Likewise.
7095         * config/sh/sh64.h: Delete.
7096         * config/sh/shmedia.h: Likewise.
7097         * config/sh/shmedia.md: Likewise.
7098         * config/sh/sshmedia.h: Likewise.
7099         * config/sh/t-netbsd-sh5-64: Likewise.
7100         * config/sh/t-sh64: Likewise.
7101         * config/sh/ushmedia.h: Likewise.
7102
7103 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
7104
7105         * config/i386/i386.md (sign_extend to memory peephole2s): Use
7106         general_reg_operand instead of register_operand predicate.
7107
7108 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7109
7110         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
7111
7112 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
7113
7114         * match.pd (A - B > A, A + B < A): New transformations.
7115
7116 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
7117
7118         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
7119         which defaults to true.  Emit an outer pair of parentheses only if
7120         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
7121         don't emit parentheses for the right-hand operand.
7122
7123 2016-04-27  Jeff Law  <law@redhat.com>
7124
7125         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
7126
7127 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7128
7129         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
7130         (altivec_lvx_<mode>_internal): Document.
7131         (altivec_lvx_<mode>_2op): New define_insn.
7132         (altivec_lvx_<mode>_1op): Likewise.
7133         (altivec_lvx_<mode>_2op_si): Likewise.
7134         (altivec_lvx_<mode>_1op_si): Likewise.
7135         (altivec_stvx_<mode>): Remove.
7136         (altivec_stvx_<mode>_internal): Document.
7137         (altivec_stvx_<mode>_2op): New define_insn.
7138         (altivec_stvx_<mode>_1op): Likewise.
7139         (altivec_stvx_<mode>_2op_si): Likewise.
7140         (altivec_stvx_<mode>_1op_si): Likewise.
7141         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7142         Expand vec_ld and vec_st during parsing.
7143         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
7144         changes.
7145         (altivec_expand_stvx_be): Likewise.
7146         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
7147         address-masking behavior in RTL.
7148         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
7149         address-masking behavior in RTL.
7150         (altivec_expand_builtin): Change builtin code arguments for calls
7151         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
7152         (insn_is_swappable_p): Avoid incorrect swap optimization in the
7153         presence of lvx/stvx patterns.
7154         (alignment_with_canonical_addr): New function.
7155         (alignment_mask): Likewise.
7156         (find_alignment_op): Likewise.
7157         (recombine_lvx_pattern): Likewise.
7158         (recombine_stvx_pattern): Likewise.
7159         (recombine_lvx_stvx_patterns): Likewise.
7160         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
7161         stvx patterns from expand.
7162         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
7163         expansions.
7164         (vector_altivec_store_<mode>): Likewise.
7165
7166 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
7167
7168         * config/aarch64/aarch64.md
7169         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
7170         remove the "fp" attributes.
7171         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
7172         add the "simd" attributes.
7173         (*movdf_aarch64): Likewise.
7174         (*movtf_aarch64): Remove the "fp" attributes.
7175         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
7176         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
7177
7178 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7179
7180         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
7181         rtx to rtx_code_label *.
7182         * rtl.h (maybe_set_first_label_num): Likewise.
7183
7184 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7185
7186         * df-core.c (df_add_problem): Make the problem param be const.
7187         (df_remove_problem): Make local "problem" be const.
7188         * df-problems.c (problem_RD): Make const.
7189         (problem_LR): Likewise.
7190         (problem_LIVE): Likewise.
7191         (problem_MIR): Likewise.
7192         (problem_CHAIN): Likewise.
7193         (problem_WORD_LR): Likewise.
7194         (problem_NOTE): Likewise.
7195         (problem_MD): Likewise.
7196         * df-scan.c (problem_SCAN): Likewise.
7197         * df.h (struct df_problem): Make field "dependent_problem" be
7198         const.
7199         (struct dataflow): Likewise for field "problem".
7200         (df_add_problem): Make param const.
7201
7202 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
7203
7204         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
7205         inter-unit moves to/from vector registers are enabled.  Do not disable
7206         for TARGET_MMX.
7207
7208 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7209
7210         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
7211         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
7212         #define to...
7213         (enum df_problem_id): ...this new enum.
7214         (struct df_problem): Convert field "id" from "int" to
7215         enum df_problem_id.
7216
7217 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
7218
7219         * rtl.def: Update comment for "things in the instruction chain" to
7220         reflect the removal of the leading "i" field for INSN_UID in
7221         r210360.  Fix bogus apostrophe.
7222
7223 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
7224
7225         * config/i386/i386.md
7226         (lea arith with mem operand + setcc peephole2): Set operator mode.
7227
7228 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
7229
7230         PR target/70155
7231         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
7232         (dimode_scalar_to_vector_candidate_p): This.
7233         (timode_scalar_to_vector_candidate_p): New function.
7234         (scalar_to_vector_candidate_p): Likewise.
7235         (timode_check_non_convertible_regs): Likewise.
7236         (timode_remove_non_convertible_regs): Likewise.
7237         (remove_non_convertible_regs): Likewise.
7238         (remove_non_convertible_regs): Renamed to ...
7239         (dimode_remove_non_convertible_regs): This.
7240         (scalar_chain::~scalar_chain): Make it virtual.
7241         (scalar_chain::compute_convert_gain): Make it pure virtual.
7242         (scalar_chain::mark_dual_mode_def): Likewise.
7243         (scalar_chain::convert_insn): Likewise.
7244         (scalar_chain::convert_registers): Likewise.
7245         (scalar_chain::add_to_queue): Make it protected.
7246         (scalar_chain::emit_conversion_insns): Likewise.
7247         (scalar_chain::replace_with_subreg): Likewise.
7248         (scalar_chain::replace_with_subreg_in_insn): Likewise.
7249         (scalar_chain::convert_op): Likewise.
7250         (scalar_chain::convert_reg): Likewise.
7251         (scalar_chain::make_vector_copies): Likewise.
7252         (scalar_chain::convert_registers): New pure virtual function.
7253         (class dimode_scalar_chain): New class.
7254         (class timode_scalar_chain): Likewise.
7255         (scalar_chain::mark_dual_mode_def): Renamed to ...
7256         (dimode_scalar_chain::mark_dual_mode_def): This.
7257         (timode_scalar_chain::mark_dual_mode_def): New function.
7258         (timode_scalar_chain::convert_insn): Likewise.
7259         (dimode_scalar_chain::convert_registers): Likewise.
7260         (scalar_chain::compute_convert_gain): Renamed to ...
7261         (dimode_scalar_chain::compute_convert_gain): This.
7262         (scalar_chain::replace_with_subreg): Renamed to ...
7263         (dimode_scalar_chain::replace_with_subreg): This.
7264         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
7265         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
7266         (scalar_chain::make_vector_copies): Renamed to ...
7267         (dimode_scalar_chain::make_vector_copies): This.
7268         (scalar_chain::convert_reg): Renamed to ...
7269         (dimode_scalar_chain::convert_reg ): This.
7270         (scalar_chain::convert_op): Renamed to ...
7271         (dimode_scalar_chain::convert_op): This.
7272         (scalar_chain::convert_insn): Renamed to ...
7273         (dimode_scalar_chain::convert_insn): This.
7274         (scalar_chain::convert): Call convert_registers.
7275         (convert_scalars_to_vector): Change to scalar_chain pointer to
7276         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
7277         in 32-bit mode.  Delete scalar_chain pointer.  Call
7278         free_dominance_info in 64-bit mode.
7279         (pass_stv::gate): Remove TARGET_64BIT check.
7280         (ix86_option_override): Put the 64-bit STV pass before the CSE
7281         pass.
7282
7283 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
7284
7285         * dwarf2out.h (struct dw_loc_descr_node): Remove the
7286         dw_loc_frame_offset field.
7287         * dwarf2out.c (new_loc_descr): Likewise.
7288         (resolve_args_picking_1): Turn the VISITED hash set into a
7289         FRAME_OFFSET hash map. Use it to associate a frame offset to
7290         visited nodes. Remove uses of the CHECKING_P macro.
7291         (resolve_args_picking): Update call to resolve_args_picking_1.
7292
7293 2016-04-27  Martin Liska  <mliska@suse.cz>
7294
7295         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
7296         (free_loop_data): Release vuses of groups.
7297
7298 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
7299
7300         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
7301         instead of redundant use_id and boolean have_use_for.
7302         (struct iv_use): Change sub_id into group_id.  Remove field next.
7303         Move fields: related_cands, n_map_members, cost_map and selected
7304         to ...
7305         (struct iv_group): ... here.  New structure.
7306         (struct iv_common_cand): Use structure declaration directly.
7307         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
7308         (MAX_CONSIDERED_USES): Rename macro to ...
7309         (MAX_CONSIDERED_GROUPS): ... here.
7310         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
7311         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
7312         (dump_uses): Rename to ...
7313         (dump_groups): ... here.  Update all uses.
7314         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
7315         (find_induction_variables): Refactor format of dump information.
7316         (record_sub_use): Delete.
7317         (record_use): Update all uses.
7318         (record_group): New function.
7319         (record_group_use, find_interesting_uses_op): Call above functions.
7320         Update all uses.
7321         (find_interesting_uses_cond): Ditto.
7322         (group_compare_offset): New function.
7323         (split_all_small_groups): Rename to ...
7324         (split_small_address_groups_p): ... here.  Update all uses.
7325         (split_address_groups):  Update all uses.
7326         (find_interesting_uses): Refactor format of dump information.
7327         (add_candidate_1): Update all uses.  Remove redundant check on iv,
7328         base and step.
7329         (add_candidate, record_common_cand): Remove redundant assert.
7330         (add_iv_candidate_for_biv): Update use.
7331         (add_iv_candidate_derived_from_uses): Update all uses.
7332         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
7333         (alloc_use_cost_map): Ditto.
7334         (set_use_iv_cost, get_use_iv_cost): Rename to ...
7335         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
7336         (determine_use_iv_cost_generic): Ditto.
7337         (determine_group_iv_cost_generic): Ditto.
7338         (determine_use_iv_cost_address): Ditto.
7339         (determine_group_iv_cost_address): Ditto.
7340         (determine_use_iv_cost_condition): Ditto.
7341         (determine_group_iv_cost_cond): Ditto.
7342         (determine_use_iv_cost): Ditto.
7343         (determine_group_iv_cost): Ditto.
7344         (set_autoinc_for_original_candidates): Update all uses.
7345         (find_iv_candidates): Update all uses.  Refactor dump information.
7346         (determine_use_iv_costs): Ditto.
7347         (determine_iv_costs): Ditto.
7348         (iv_ca_cand_for_use): Rename to ...
7349         (iv_ca_cand_for_group): ... here.  Update all uses.
7350         (iv_ca_add_use, iv_ca_add_group): Ditto.
7351         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
7352         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
7353         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
7354         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
7355         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
7356         (create_new_iv, adjust_iv_update_pos): Ditto.
7357         (rewrite_use_address): Delete.
7358         (rewrite_use_address_1): Rename to ...
7359         (rewrite_use_address): ... here.
7360         (rewrite_use_compare): Update all uses.
7361         (rewrite_use): Delete.
7362         (rewrite_uses): Rename to ...
7363         (rewrite_groups): ... here.  Update all uses.
7364         (remove_unused_ivs, free_loop_data): Update all uses.
7365         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
7366
7367 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7368
7369         * rtlanal.c (nonzero_bits1): Convert preprocessor check
7370         for WORD_REGISTER_OPERATIONS to runtime check.
7371
7372 2016-04-27  Richard Biener  <rguenther@suse.de>
7373
7374         PR ipa/70760
7375         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
7376         aggregate_value_p to determine if a function result is
7377         returned by reference.
7378         (ipa_pta_execute): Functions having their address taken are
7379         not automatically nonlocal.
7380
7381 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
7382
7383         PR sanitizer/70683
7384         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
7385         * fold-const.c (operand_equal_p): If flag_checking and
7386         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
7387         and if it returns non-zero, assert iterative_hash_expr on both
7388         args is the same.
7389
7390 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
7391
7392         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
7393
7394 2016-04-27  Nick Clifton  <nickc@redhat.com>
7395
7396         PR middle-end/49889
7397         * varasm.c (merge_weak): Generate an error if an attempt is made
7398         to convert a non-weak static function into a weak, public function.
7399
7400 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7401
7402         * params.def (MAX_PARTITION_SIZE): New param.
7403         * doc/invoke.texi: Document lto-max-partition.
7404
7405 2016-04-27  Richard Biener  <rguenther@suse.de>
7406
7407         PR ipa/70785
7408         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
7409         function cummulating used_from_other_partition, externally_visible
7410         and force_output from aliases.
7411         (refered_from_nonlocal_var): Likewise.
7412         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
7413         node flags properly.
7414
7415 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
7416
7417         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
7418         (-Wmemset-elt-size): New item.
7419
7420 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
7421
7422         PR ada/70759
7423         * stor-layout.h (internal_reference_types): Delete.
7424         * stor-layout.c (reference_types_internal): Likewise.
7425         (internal_reference_types): Likewise.
7426         (layout_type) <REFERENCE_TYPE>: Adjust.
7427
7428 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
7429
7430         PR sanitizer/70683
7431         * tree.h (inchash::add_expr): Add FLAGS argument.
7432         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
7433         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
7434         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
7435         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
7436         if swap_tree_comparison (code) is smaller than code, hash that
7437         and arguments in the other order.  Hash CONVERT_EXPR the same
7438         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
7439         of ADDR_EXPR of decl as the decl itself.  Add or remove
7440         OEP_ADDRESS_OF from recursive flags as needed.  For
7441         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
7442         operands commutatively and only the third one normally.
7443         For internal CALL_EXPR hash in CALL_EXPR_IFN.
7444
7445 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7446
7447         * config/rtems.h (LIB_SPEC): Add -latomic.
7448
7449 2016-04-27  Joel Sherrill  <joel@rtems.org>
7450
7451         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
7452         xilink.ld and flags not relevant to RTEMS.
7453
7454 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
7455
7456         * toplev.c (backend_init_target): Avoid calling init_reload when using
7457         LRA.
7458
7459 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
7460
7461         * reorg.c (try_merge_delay_insns): Declare i and j inside the
7462         for loops rather than one for the whole function.
7463
7464 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
7465
7466         * match.pd (X + CST CMP X): New transformation.
7467
7468 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
7469
7470         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
7471         * fold-const.c (fold_binary_loc): Remove 2 transformations
7472         superseded by match.pd.
7473         * match.pd (x+x -> x*2): Generalize to integers.
7474
7475 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
7476
7477         * config/i386/i386.md (operation on memory peephole): Duplicate an
7478         existing peephole and adapt it to match lea rather than an operation
7479         that clobbers CC.
7480
7481         PR rtl-optimization/57193
7482         * opts.c (default_options_table): Add OPT_frename_registers at -O2
7483         and above.
7484         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
7485
7486 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
7487
7488         * tree-if-conv.c (any_pred_load_store): New static variable.
7489         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
7490         any_pred_load_store instead of and_mask_load_store.
7491         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
7492         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
7493         (combine_blocks, tree_if_conversion): Ditto.
7494
7495 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
7496
7497         PR tree-optimization/70771
7498         PR tree-optimization/70775
7499         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
7500         virtual PHI nodes.  Delete parameter.
7501         (if_convertible_loop_p_1): Delete argument to above function.
7502         (predicate_all_scalar_phis): Delete code handling single-argument
7503         PHIs.
7504         (tree_if_conversion): Mark and update virtual SSA.
7505
7506 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7507
7508         PR target/61821
7509         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
7510         (x86_elf_aligned_common): Rename to ...
7511         (x86_elf_aligned_decl_common): ... this.
7512         Add decl arg.  Switch to .lbss for largecomm object.  Use
7513         LARGECOMM_SECTION_ASM_OP.
7514         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
7515         renaming.
7516         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
7517         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
7518         Pass new decl arg.
7519         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
7520         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
7521
7522 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7523
7524         PR target/59407
7525         * config/i386/i386.c (SECTION_LARGE): Define.
7526         (x86_64_elf_select_section): Set it for large data/bss sections.
7527         Only clear SECTION_WRITE for .lrodata.
7528         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
7529         data/bss sections.
7530         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
7531         * varasm.c (default_elf_asm_named_section): Grow flagchars.
7532         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
7533         SECTION_MACH_DEP.
7534         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
7535         * doc/tm.texi: Regenerate.
7536
7537 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
7538
7539         PR bootstrap/70704
7540         * configure.ac (--enable-checking): Document extra flag, for
7541         non-release builds default to --enable-checking=yes,extra.
7542         If misc checking and extra checking, define CHECKING_P to 2 instead
7543         of 1.
7544         * common.opt (fchecking=): Add.
7545         * doc/invoke.texi (-fchecking=): Document.
7546         * doc/install.texi: Document --enable-checking changes.
7547         * configure: Regenerated.
7548         * config.in: Regenerated.
7549
7550 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
7551
7552         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
7553         attribute instead of which_alternative.
7554         * config/i386/sse.md (*mov<mode>_internal): Ditto.
7555         Use EXT_REX_SSE_REG_P where appropriate.
7556
7557 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
7558
7559         * config/i386/predicates.md (const0_operand): Do not match
7560         const_wide_int code.
7561         (const1_operand): Ditto.
7562
7563 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
7564
7565         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
7566         for SSE constm1 operands and TARGET_AVX512VL.
7567         (*movti_internal): Ditto.
7568         (*mov<mode>_or): Use constm1_operand predicate.
7569         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
7570         for SSE vector_all_ones operands and TARGET_AVX512VL.
7571         * config/i386/predicates.md (constm1_operand): New predicate.
7572         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
7573         emission of constant -1 load.
7574
7575 2016-04-25  Jason Merrill  <jason@redhat.com>
7576
7577         * gdbinit.in: Skip is-a.h.
7578
7579         * attribs.c (register_scoped_attributes): Fix logic.
7580         * attribs.h: Declare register_scoped_attributes.
7581
7582 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7583
7584         * config/rs6000/rs6000-builtin.def: Correct pasto error for
7585         stxvd2x and stxvw4x built-in functions.
7586
7587 2016-04-25  DJ Delorie  <dj@redhat.com>
7588
7589         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
7590         (ashrhi3): Likewise.
7591         (lshrhi3): Likewise.
7592
7593 2016-04-25  Richard Biener  <rguenther@suse.de>
7594
7595         PR tree-optimization/70780
7596         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
7597         wasn't visited yet.
7598         (compute_antic): Mark blocks with abnormal preds as visited as
7599         they have a final empty antic-in solution already.
7600
7601 2016-04-25  Michael Collison  <michael.collison@linaro.org>
7602
7603         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
7604
7605 2016-04-25  Michael Collison  <michael.collison@linaro.org>
7606
7607         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
7608         mode is VQI to improve mixed mode vectorization.
7609         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
7610         define_insn to match low half of signed vaddw.
7611         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
7612         define_insn to match high half of signed vaddw.
7613         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
7614         define_insn to match low half of unsigned vaddw.
7615         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
7616         define_insn to match high half of unsigned vaddw.
7617         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
7618         (arm_simd_check_vect_par_cnst_half_p): Likewise.
7619         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
7620         for new function.
7621         (arm_simd_check_vect_par_cnst_half_p): Likewise.
7622         * config/arm/predicates.md (vect_par_constant_high): Support
7623         big endian and simplify by calling
7624         arm_simd_check_vect_par_cnst_half
7625         (vect_par_constant_low): Likewise.
7626
7627 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
7628
7629         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
7630         predicate for operand 2.
7631
7632 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
7633             H.J. Lu  <hongjiu.lu@intel.com>
7634
7635         * config/i386/i386-protos.h (standard_sse_constant_p): Add
7636         machine_mode argument.
7637         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
7638         constm1_rtx operands.  For VOIDmode constants, get mode from
7639         pred_mode.  Check mode size if the mode is supported by ABI.
7640         (standard_sse_constant_opcode): Do not use standard_constant_p.
7641         Strictly check ABI support for all-ones operands.
7642         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
7643         immediates. Update calls to standard_sse_constant_p.
7644         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
7645         (ix86_rtx_costs): Ditto.
7646         * config/i386/i386.md (*movxi_internal_avx512f): Use
7647         nonimmediate_or_sse_const_operand instead of vector_move_operand.
7648         Use (v,BC) alternative instead of (v,C). Use register_operand
7649         checks instead of MEM_P.
7650         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
7651         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
7652         isa attribute.  Use register_operand checks instead of MEM_P.
7653         (*movti_internal): Use nonimmediate_or_sse_const_operand for
7654         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
7655         alternative and corresponding sse2 isa attribute.
7656         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
7657         to standard_sse_constant_p.
7658         (FP constant splitters): Ditto.
7659         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
7660         (C): Ditto.
7661         * config/i386/predicates.md (constm1_operand): Remove.
7662         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
7663         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
7664         vector_all_ones_operand instead of constm1_operand.
7665
7666 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7667
7668         * print-rtl.c (print_rtx_insn_vec): New function.
7669         * print-rtl.h: New prototype.
7670         * store-motion.c (struct st_expr): Make avail_stores a vector.
7671         (st_expr_entry): Adjust.
7672         (free_st_expr_entry): Likewise.
7673         (print_store_motion_mems): Likewise.
7674         (find_moveable_store): Likewise.
7675         (compute_store_table): Likewise.
7676         (delete_store): Likewise.
7677         (build_store_vectors): Likewise.
7678
7679 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7680
7681         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
7682
7683 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7684
7685         * vec.h (vec_safe_contains): New function.
7686         (vec::contains): Likewise.
7687         (vec::begin): Likewise.
7688         (vec::end): Likewise.
7689
7690 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
7691
7692         PR sanitizer/70712
7693         * cfgexpand.c (expand_stack_vars): Fix typo.
7694
7695 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7696
7697         * system.h (list, map, set, vector): Include conditionally.
7698         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
7699         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
7700         * ipa-icf.c (INCLUDE_LIST): Define.
7701         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
7702         * config/sh/sh.c (INCLUDE_VECTOR): Define.
7703         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
7704         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
7705         * cp/logic.cc (INCLUDE_LIST): Define.
7706         * fortran/trans-common.c (INCLUDE_MAP): Define.
7707
7708 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7709
7710         * auto-profile.c: Remove <string.h> include.
7711         * ipa-icf-gimple.c: Remove <list> include.
7712         * diagnostic.c: Remove <new> include.
7713         * genmatch.c: Likewise.
7714         * pretty-print.c: Likewise.
7715         * toplev.c: Likewise
7716         * c/c-objc-common.c: Likewise.
7717         * cp/error.c: Likewise.
7718         * fortran/error.c: Likewise.
7719
7720 2016-04-22  Richard Biener  <rguenther@suse.de>
7721
7722         * lto-streamer-in.c (input_ssa_names): Do not allocate
7723         GIMPLE_NOP for all SSA names.
7724         * lto-streamer-out.c (output_ssa_names): Do not output
7725         SSA names that should have been released.
7726
7727 2016-04-22  Richard Biener  <rguenther@suse.de>
7728
7729         PR tree-optimization/70740
7730         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
7731         VDEF.
7732
7733 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
7734
7735         PR target/70750
7736         * config/i386/predicates.md (call_insn_operand): Replace
7737         sibcall_memory_operand with memory_operand.
7738
7739 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
7740
7741         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
7742         has_single_use() tests.
7743         (register_edge_assert_for_1): Likewise.
7744         (find_assert_locations_1): Check the liveness bitmap instead of
7745         checking has_single_use().
7746
7747 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
7748
7749         PR target/70728
7750         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
7751         Extract AVX-512BW constraint from AVX.
7752
7753 2016-04-21  Richard Biener  <rguenther@suse.de>
7754
7755         PR tree-optimization/70725
7756         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
7757         for phi_convertible_by_degenerating_args.
7758         (predicate_all_scalar_phis): Handle single-argument PHIs.
7759
7760 2016-04-21  Richard Biener  <rguenther@suse.de>
7761
7762         PR middle-end/70747
7763         * fold-const.c (fold_comparison): Return properly typed
7764         constant boolean.
7765
7766 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
7767
7768         PR tree-optimization/70715
7769         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
7770         after expanding BASE using expand_simple_operations.
7771
7772 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
7773
7774         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
7775         New transformations.
7776
7777 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
7778
7779         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
7780
7781 2016-04-20  Jan Hubicka  <jh@suse.cz>
7782
7783         * ipa-inline.c (can_inline_edge_p): Pass caller info to
7784         ultiimate_alias_target.
7785         (update_callee_keys): Likewise.
7786         (lookup_recursive_calls): Likewise.
7787         (speculation_useful_p): Likewise.
7788
7789 2016-04-20  Jan Hubicka  <jh@suse.cz>
7790
7791         PR ipa/70018
7792         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
7793         (set_nothrow_flag_1): ... this; handle interposition correctly;
7794         recurse on aliases and thunks.
7795         (cgraph_node::set_nothrow_flag): New.
7796         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
7797         functions compiled with non-call exceptions that binds to current
7798         def.
7799         (propagate_nothrow): Be safe WRT interposition.
7800         * cgraph.h (set_nothrow_flag): Update prototype.
7801
7802 2016-04-18  Jan Hubicka  <jh@suse.cz>
7803
7804         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
7805         max_loop_iterations_int.
7806         (tree_unswitch_outer_loop): Likewise.
7807
7808 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
7809
7810         PR tree-optimization/69489
7811         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
7812         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
7813         Revise dump message.
7814         (if_convertible_bb_p): Remove check on edge count of basic block's
7815         predecessors.
7816
7817 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
7818
7819         PR tree-optimization/56625
7820         PR tree-optimization/69489
7821         * tree-data-ref.h (DR_INNERMOST): New macro.
7822         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
7823         hashing struct innermost_loop_behavior.
7824         (ref_DR_map): Remove.
7825         (innermost_DR_map): New map.
7826         (baseref_DR_map): Revise comment.
7827         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
7828         to innermost_DR_map accroding to its innermost loop behavior.
7829         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
7830         to its innermost loop behavior.
7831         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
7832         Add initialization for innermost_DR_map.  Record memory reference
7833         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
7834         have innermost loop behavior.
7835         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
7836         innermost_DR_map.
7837
7838 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
7839
7840         * config/i386/i386.md (*lea<mode>_general_1): Rename from
7841         *lea_general_1.  Use explicit SWI12 mode interator.
7842         (*lea<mode>_general_2): Rename from *lea_general_2.
7843         Use explicit SWI12 mode interator.
7844         (*lea<mode>_general_3): Rename from *lea_general_3.
7845         Use explicit SWI12 mode interator.
7846         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
7847         Use explicit SWI12 mode interator.
7848         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
7849         Use explicit SWI48 mode interator.
7850
7851 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
7852
7853         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
7854         Short-cut unaligned load and store cases.  Handle all integer
7855         vector modes.
7856         (ix86_expand_vector_move_misalign): Short-cut unaligned load
7857         and store cases.  Call ix86_avx256_split_vector_move_misalign
7858         directly without checking mode class.
7859
7860 2016-04-20  Andrew Pinski  <apinski@cavium.com>
7861             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7862
7863         PR target/64971
7864         * config/aarch64/aarch64.md (sibcall): Force call
7865         address to be DImode for ILP32.
7866         (sibcall_value): Likewise.
7867
7868 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
7869
7870         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
7871
7872 2016-04-20  Richard Biener  <rguenther@suse.de>
7873
7874         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
7875         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
7876         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
7877         (maybe_push_res_to_seq): Adjust.
7878         * gimple-fold.c (maybe_build_generic_op): Likewise.
7879
7880 2016-04-20  Marek Polacek  <polacek@redhat.com>
7881
7882         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
7883         rather than true.
7884
7885 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
7886
7887         * config/i386/sse.md (vec_unpacks_lo_hi): Always
7888         use kmovw to support AVX512F target.
7889
7890 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
7891
7892         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
7893
7894 2016-04-20  Marek Polacek  <polacek@redhat.com>
7895
7896         PR tree-optimization/70725
7897         * tree-if-conv.c (is_false_predicate): New function.
7898         (predicate_mem_writes): Use it.
7899
7900 2016-04-20  Richard Biener  <rguenther@suse.de>
7901
7902         PR tree-optimization/70726
7903         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
7904         shift amounts from a pattern stmt operand.
7905
7906 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7907
7908         PR target/70674
7909         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
7910         stack_restore_from_fpr pattern when restoring r15.
7911         (s390_optimize_prologue): Strip away the memory barrier in the
7912         parallel when trying to get rid of restore insns.
7913         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
7914         definition for loading the stack pointer from an FPR.  Compared to
7915         the normal move insn this pattern includes a full memory barrier.
7916
7917 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
7918
7919         PR middle-end/70680
7920         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
7921         implicitly linear or lastprivate iterator on the outer context.
7922
7923 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
7924
7925         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
7926         alignment check.
7927         * config/i386/i386.md (ssememalign): Removed.
7928         * config/i386/sse.md: Remove ssememalign attribute from patterns.
7929
7930 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
7931
7932         PR target/69201
7933         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
7934         const short * to __builtin_ia32_loaddquhi512_mask.
7935         (_mm512_maskz_loadu_epi16): Likewise.
7936         (_mm512_mask_storeu_epi16): Pass short * to
7937         __builtin_ia32_storedquhi512_mask.
7938         (_mm512_mask_loadu_epi8): Pass const char * to
7939         __builtin_ia32_loaddquqi512_mask.
7940         (_mm512_maskz_loadu_epi8): Likewise.
7941         (_mm512_mask_storeu_epi8): Pass char * to
7942         __builtin_ia32_storedquqi512_mask.
7943         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
7944         const double * to __builtin_ia32_loadupd512_mask.
7945         (_mm512_mask_loadu_pd): Likewise.
7946         (_mm512_maskz_loadu_pd): Likewise.
7947         (_mm512_storeu_pd): Pass double * to
7948         __builtin_ia32_storeupd512_mask.
7949         (_mm512_mask_storeu_pd): Likewise.
7950         (_mm512_loadu_ps): Pass const float * to
7951         __builtin_ia32_loadups512_mask.
7952         (_mm512_mask_loadu_ps): Likewise.
7953         (_mm512_maskz_loadu_ps): Likewise.
7954         (_mm512_storeu_ps): Pass float * to
7955         __builtin_ia32_storeups512_mask.
7956         (_mm512_mask_storeu_ps): Likewise.
7957         (_mm512_mask_loadu_epi64): Pass const long long * to
7958         __builtin_ia32_loaddqudi512_mask.
7959         (_mm512_maskz_loadu_epi64): Likewise.
7960         (_mm512_mask_storeu_epi64): Pass long long *
7961         to __builtin_ia32_storedqudi512_mask.
7962         (_mm512_loadu_si512): Pass const int * to
7963         __builtin_ia32_loaddqusi512_mask.
7964         (_mm512_mask_loadu_epi32): Likewise.
7965         (_mm512_maskz_loadu_epi32): Likewise.
7966         (_mm512_storeu_si512): Pass int * to
7967         __builtin_ia32_storedqusi512_mask.
7968         (_mm512_mask_storeu_epi32): Likewise.
7969         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
7970         char * to __builtin_ia32_storedquqi256_mask.
7971         (_mm_mask_storeu_epi8): Likewise.
7972         (_mm256_mask_loadu_epi16): Pass const short * to
7973         __builtin_ia32_loaddquhi256_mask.
7974         (_mm256_maskz_loadu_epi16): Likewise.
7975         (_mm_mask_loadu_epi16): Pass const short * to
7976         __builtin_ia32_loaddquhi128_mask.
7977         (_mm_maskz_loadu_epi16): Likewise.
7978         (_mm256_mask_loadu_epi8): Pass const char * to
7979         __builtin_ia32_loaddquqi256_mask.
7980         (_mm256_maskz_loadu_epi8): Likewise.
7981         (_mm_mask_loadu_epi8): Pass const char * to
7982         __builtin_ia32_loaddquqi128_mask.
7983         (_mm_maskz_loadu_epi8): Likewise.
7984         (_mm256_mask_storeu_epi16): Pass short * to.
7985         __builtin_ia32_storedquhi256_mask.
7986         (_mm_mask_storeu_epi16): Pass short * to.
7987         __builtin_ia32_storedquhi128_mask.
7988         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
7989         const double * to __builtin_ia32_loadupd256_mask.
7990         (_mm256_maskz_loadu_pd): Likewise.
7991         (_mm_mask_loadu_pd): Pass onst double * to
7992         __builtin_ia32_loadupd128_mask.
7993         (_mm_maskz_loadu_pd): Likewise.
7994         (_mm256_mask_storeu_pd): Pass double * to
7995         __builtin_ia32_storeupd256_mask.
7996         (_mm_mask_storeu_pd): Pass double * to
7997         __builtin_ia32_storeupd128_mask.
7998         (_mm256_mask_loadu_ps): Pass const float * to
7999         __builtin_ia32_loadups256_mask.
8000         (_mm256_maskz_loadu_ps): Likewise.
8001         (_mm_mask_loadu_ps): Pass const float * to
8002         __builtin_ia32_loadups128_mask.
8003         (_mm_maskz_loadu_ps): Likewise.
8004         (_mm256_mask_storeu_ps): Pass float * to
8005         __builtin_ia32_storeups256_mask.
8006         (_mm_mask_storeu_ps): ass float * to
8007         __builtin_ia32_storeups128_mask.
8008         (_mm256_mask_loadu_epi64): Pass const long long * to
8009         __builtin_ia32_loaddqudi256_mask.
8010         (_mm256_maskz_loadu_epi64): Likewise.
8011         (_mm_mask_loadu_epi64): Pass const long long * to
8012         __builtin_ia32_loaddqudi128_mask.
8013         (_mm_maskz_loadu_epi64): Likewise.
8014         (_mm256_mask_storeu_epi64): Pass long long * to
8015         __builtin_ia32_storedqudi256_mask.
8016         (_mm_mask_storeu_epi64): Pass long long * to
8017         __builtin_ia32_storedqudi128_mask.
8018         (_mm256_mask_loadu_epi32): Pass const int * to
8019         __builtin_ia32_loaddqusi256_mask.
8020         (_mm256_maskz_loadu_epi32): Likewise.
8021         (_mm_mask_loadu_epi32): Pass const int * to
8022         __builtin_ia32_loaddqusi128_mask.
8023         (_mm_maskz_loadu_epi32): Likewise.
8024         (_mm256_mask_storeu_epi32): Pass int * to
8025         __builtin_ia32_storedqusi256_mask.
8026         (_mm_mask_storeu_epi32): Pass int * to
8027         __builtin_ia32_storedqusi128_mask.
8028         * config/i386/i386-builtin-types.def (PCSHORT): New.
8029         (PINT64): Likewise.
8030         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
8031         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
8032         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
8033         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
8034         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
8035         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
8036         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
8037         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
8038         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
8039         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
8040         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
8041         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
8042         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
8043         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
8044         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
8045         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
8046         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
8047         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
8048         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
8049         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
8050         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
8051         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
8052         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
8053         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
8054         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
8055         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
8056         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
8057         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
8058         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
8059         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
8060         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
8061         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
8062         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
8063         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
8064         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
8065         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
8066         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
8067         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
8068         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
8069         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
8070         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
8071         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
8072         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
8073         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
8074         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
8075         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
8076         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
8077         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
8078         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
8079         use UNSPEC_STOREU.
8080         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
8081         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
8082         load nor store.
8083         (ix86_expand_vector_move_misalign): Likewise.
8084         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
8085         to scalar function prototype for unaligned load/store builtins.
8086         (ix86_expand_special_args_builtin): Updated.
8087         * config/i386/sse.md (UNSPEC_LOADU): Removed.
8088         (UNSPEC_STOREU): Likewise.
8089         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
8090         (VI_ULOADSTORE_F_AVX512VL): Likewise.
8091         (ssescalarsize): Handle V4TI, V2TI and V1TI.
8092         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
8093         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
8094         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
8095         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
8096         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
8097         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
8098         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
8099         (<avx512>_storedqu<mode>_mask): Likewise.
8100         (*sse4_2_pcmpestr_unaligned): Likewise.
8101         (*sse4_2_pcmpistr_unaligned): Likewise.
8102         (*mov<mode>_internal): Renamed to ...
8103         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
8104         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
8105         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
8106         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
8107
8108 2016-04-19  Richard Biener  <rguenther@suse.de>
8109
8110         PR tree-optimization/70171
8111         * tree-ssa-phiprop.c: Include stor-layout.h.
8112         (phiprop_insert_phi): Handle the aggregate copy case.
8113         (propagate_with_phi): Likewise.
8114
8115 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
8116
8117         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
8118         instead of simplify_gen_subreg (... , 0).
8119         (ix86_delegitimize_address): Ditto.
8120         (ix86_split_divmod): Ditto.
8121         (ix86_split_copysign_const): Ditto.
8122         (ix86_split_copysign_var): Ditto.
8123         (ix86_expand_args_builtin): Ditto.
8124         (ix86_expand_round_builtin): Ditto.
8125         (ix86_expand_special_args_builtin): Ditto.
8126         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
8127         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
8128         (udivmodqi4): Ditto.
8129         (absneg splitters): Ditto.
8130         (*jcc_bt<mode>_1): Ditto.
8131
8132 2016-04-19  Richard Biener  <rguenther@suse.de>
8133
8134         PR tree-optimization/70724
8135         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
8136         restoring out from ...
8137         (free_scc_vn): ... here.
8138         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
8139         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
8140         tail merging.
8141         (pass_fre::execute): Restore SSA info.
8142
8143 2016-04-19  Richard Biener  <rguenther@suse.de>
8144
8145         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
8146         * gimple-walk.c (walk_gimple_op): Initialize it.
8147         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
8148         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
8149         remapping SSA names of defs.
8150         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
8151         adjustment.
8152
8153 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
8154
8155         PR middle-end/70689
8156         * lra-constraints.c (equiv_substition_p): New.
8157         (process_alt_operands): Use it.
8158         (swap_operands): Swap it.
8159         (curr_insn_transform): Update it.
8160
8161 2016-04-18  Michael Matz  <matz@suse.de>
8162
8163         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
8164         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
8165         * tree-core.h (tree_type_common.align): Use bit-field.
8166         (tree_type_common.spare): New.
8167         (tree_decl_common.off_align): Make smaller.
8168         (tree_decl_common.align): Use bit-field.
8169
8170         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
8171         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
8172         (scan_sharing_clauses): Ditto.
8173         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
8174         (omp_finish_file): Ditto.
8175         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
8176         (layout_decl): Ditto.
8177         (relayout_decl): Ditto.
8178         (finalize_record_size): Use SET_TYPE_ALIGN.
8179         (finalize_type_size): Ditto.
8180         (finish_builtin_struct): Ditto.
8181         (layout_type): Ditto.
8182         (initialize_sizetypes): Ditto.
8183         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
8184         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
8185         (lookup_field_for_decl): Use SET_DECL_ALIGN.
8186         (get_chain_field): Ditto.
8187         (get_trampoline_type): Ditto.
8188         (get_nl_goto_field): Ditto.
8189         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
8190         SET_DECL_ALIGN.
8191         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
8192         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
8193         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
8194         (build_qualified_type): Use SET_TYPE_ALIGN.
8195         (build_aligned_type, build_range_type_1): Ditto.
8196         (build_atomic_base): Ditto.
8197         (build_common_tree_nodes): Ditto.
8198         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
8199         (expand_one_stack_var_at): Ditto.
8200         * coverage.c (build_var): Use SET_DECL_ALIGN.
8201         * except.c (init_eh): Ditto.
8202         * function.c (assign_parm_setup_block): Ditto.
8203         * symtab.c (increase_alignment_1): Ditto.
8204         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
8205         * tree-vect-stmts.c (ensure_base_align): Ditto.
8206         * varasm.c (align_variable): Ditto.
8207         (assemble_variable): Ditto.
8208         (build_constant_desc): Ditto.
8209         (output_constant_def_contents): Ditto.
8210
8211         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
8212         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
8213         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
8214         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
8215         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
8216
8217 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
8218
8219         PR target/70708
8220         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
8221         replace %vmovsd with "%vmovq".
8222         (vec_concatv2df): Likewise.
8223
8224 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
8225
8226         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
8227         (*vec_extractv2si_0): Ditto.
8228         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
8229         (zero_extended_scalar_load_operand splitters): Ditto.
8230         (vec_extract splitters): Ditto.
8231         (*vec_extractv4si_0_zext): Ditto.
8232         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
8233         and lowpart_subreg.
8234         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
8235         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
8236         (*sse4_1_extractps): Use lowpart_subreg.
8237         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
8238
8239 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8240
8241         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
8242         gld requirements.
8243         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
8244         Mention Solaris 11 packaging changes.
8245         Update gas and gld requirements.
8246         Remove reference to pre-Solaris 10 bug.
8247         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
8248         systems and bugs.
8249         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
8250         with cc.
8251
8252 2016-04-17  Jan Hubicka  <jh@suse.cz>
8253
8254         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
8255         max_loop_iterations_int.
8256
8257 2016-04-18  Richard Biener  <rguenther@suse.de>
8258
8259         PR tree-optimization/43434
8260         * tree-ssa-structalias.c (struct vls_data): New.
8261         (visit_loadstore): Handle all pointer-based accesses.
8262         (compute_dependence_clique): Compute a bitmap of restrict tags
8263         assigned bases and pass it to visit_loadstore.
8264
8265 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
8266
8267         PR target/70711
8268         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
8269         armv8.1-a and armv8.1-a+crc.
8270
8271 2016-04-18  Richard Biener  <rguenther@suse.de>
8272
8273         PR tree-optimization/70701
8274         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
8275         references after translating through a memcpy.
8276
8277 2016-04-18  Richard Biener  <rguenther@suse.de>
8278
8279         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
8280         (compute_antic): ... here.  For partial antic use regular
8281         postorder and scrap iteration.
8282         (compute_partial_antic_aux): Remove unused return value.
8283         (init_pre): Do not allocate postorder.
8284         (fini_pre): Do not free postorder.
8285
8286 2016-04-18  Richard Biener  <rguenther@suse.de>
8287
8288         PR middle-end/37870
8289         * expmed.c (extract_bit_field_1): Remove broken case
8290         using a wider MODE_INT mode.
8291
8292 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
8293
8294         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
8295         unless compiling with at least GCC-4.8.
8296
8297 2016-04-17  Jan Hubicka  <jh@suse.cz>
8298
8299         PR bootstrap/70706
8300         * graphite.c (graphite_finalize): Update call to
8301         tree_estimate_probability.
8302         * predict.h (tree_estimate_probability): Update prototype.
8303
8304 2016-04-17  Jan Hubicka  <jh@suse.cz>
8305
8306         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
8307         (tree_estimate_probability): Likewise.
8308         (pass_profile::execute): Update.
8309         (report_predictor_hitrates): New function.
8310         * profile.c (compute_branch_probabilities): Use it.
8311         * predict.h (report_predictor_hitrates): Declare.
8312
8313 2016-04-17  Jan Hubicka  <jh@suse.cz>
8314
8315         PR ipa/70018
8316         * cgraph.h (cgraph_node::set_const_flag,
8317         cgraph_node::set_pure_flag): Update prototype to return bool;
8318         update comment.
8319         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
8320         of interposable symbol are interposable, too.
8321         (cgraph_set_const_flag_1): Rename to ...
8322         (set_const_flag_1): ... this one; change to self recursive function
8323         instead of call_for_symbol_thunks_and_aliases. Handle correctly
8324         clearnig the flag in all variants and also virtual thunks of const
8325         functions are pure; track if any change was done.
8326         (cgraph_node::set_const_flag): Update.
8327         (struct set_pure_flag_info): New struct.
8328         (cgraph_set_pure_flag_1): Rename to ...
8329         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
8330         rather than pointer encoded flags; track if any changes was done;
8331         handle correctly clearning flag and setting flag of aliases already
8332         declared const.
8333         (cgraph_node::set_pure_flag): Update.
8334         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
8335
8336 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8337
8338         PR other/70433
8339         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
8340         backslash in label.
8341
8342 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8343
8344         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
8345         '{}<> ' as escape-for-record.
8346
8347 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8348
8349         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
8350         structure.
8351
8352 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8353
8354         PR other/70185
8355         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
8356         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
8357         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
8358         * passes.c (finish_optimization_passes): Only call
8359         finish_graph_dump_file if dfi->graph_dump_initialized.
8360         (execute_function_dump, pass_init_dump_file): Use
8361         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
8362
8363 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8364
8365         PR tree-optimization/70256
8366         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
8367         (debug_varmap): New function.
8368
8369 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8370
8371         PR other/70183
8372         * passes.c (pass_manager::register_pass): Propagate pflags.
8373
8374 2016-04-17  Tom de Vries  <tom@codesourcery.com>
8375
8376         PR other/68875
8377         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
8378         * passes.c (pass_manager::pass_manager): Declare and init p_start in
8379         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
8380         check if it's equal to p_start.
8381         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
8382
8383 2016-04-15  Jan Hubicka  <jh@suse.cz>
8384
8385         PR ipa/70018
8386         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
8387         function does not bind to current def.
8388         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
8389         handle conservatively calls to functions that does not need to bind
8390         to current def.
8391         (check_call): Update call of worse_state.
8392         (ignore_edge_for_nothrow): Update.
8393         (ignore_edge_for_pure_const): Likewise.
8394         (propagate_pure_const): Update calls to worse_state.
8395         (skip_function_for_local_pure_const): Reformat comments.
8396
8397 2016-04-15  Jan Hubicka  <jh@suse.cz>
8398
8399         PR ipa/70018
8400         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
8401         (cgraph_node::function_symbol): Likewise.
8402         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
8403         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
8404         (symtab_node::ultimate_alias_target): Add REF parameter.
8405         (symtab_node::binds_to_current_def_p): Declare.
8406         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
8407         (cgraph_node::function_symbol): Likewise.
8408         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
8409         (cgraph_node::get_availability): Likewise.
8410         (cgraph_edge::binds_to_current_def_p): New inline function.
8411         (varpool_node::get_availability): Add REF parameter.
8412         (varpool_node::ultimate_alias_target): Likewise.
8413         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
8414         (symtab_node::binds_to_current_def_p): Likewise.
8415         * varpool.c (varpool_node::get_availability): Likewise.
8416
8417 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
8418
8419         PR target/70662
8420         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
8421         Fix mode size check.
8422
8423 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
8424
8425         * BASE-VER: Set to 7.0.0.
8426
8427 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
8428
8429         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
8430
8431 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8432
8433         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
8434         architecture revisions.
8435
8436 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
8437
8438         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
8439         * config/i386/i386.c (ix86_using_red_zone): No longer static.
8440         * config/i386/i386.md (stack decrement to push peepholes): Guard
8441         with !x86_using_red_zone ().
8442
8443 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
8444
8445         PR c++/70675
8446         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
8447         to dump_generic_node.
8448         (NIY): Pass also flags to do_niy.
8449
8450 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
8451
8452         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
8453         (simd_clone_vector_of_formal_parm_types)
8454         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
8455         (simd_clone_mangle, simd_clone_create)
8456         (simd_clone_adjust_return_type, create_tmp_simd_array)
8457         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
8458         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
8459         (ipa_simd_modify_function_body, simd_clone_linear_addend)
8460         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
8461         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
8462         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
8463         * omp-simd-clone.c: ... this new file.
8464         (simd_clone_vector_of_formal_parm_types): Make it static.
8465         * Makefile.in (OBJS): Add omp-simd-clone.o.
8466
8467 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
8468
8469         PR target/70662
8470         * config/i386/sse.md: Use proper memory operand modifiers.
8471
8472
8473 2016-04-15  Richard Biener  <rguenther@suse.de>
8474         Alan Modra  <amodra@gmail.com>
8475
8476         PR tree-optimization/70130
8477         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
8478         when alignment stays not the same and no not use the realign
8479         scheme then.
8480
8481 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8482
8483         PR target/70669
8484         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
8485         direct move handlers for KFmode. Change TFmode handlers test from
8486         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
8487
8488 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
8489
8490         PR c++/70594
8491         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
8492         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
8493         (inlined_polymorphic_ctor_dtor_block_p): Use it.
8494         * tree-ssa-live.c (remove_unused_scope_block_p): When
8495         in_ctor_dtor_block, avoid discarding not just BLOCKs with
8496         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
8497         block_ultimate_origin is FUNCTION_DECL.
8498         (remove_unused_locals): If current_function_decl is
8499         polymorphic_ctor_dtor_p, pass initial true to
8500         remove_unused_scope_block_p' is_ctor_dtor_block.
8501
8502 2016-04-14  Martin Sebor  <msebor@redhat.com>
8503
8504         PR c++/69517
8505         PR c++/70019
8506         PR c++/70588
8507         * doc/extend.texi (Variable Length): Revert.
8508
8509 2016-04-14  Marek Polacek  <polacek@redhat.com>
8510             Jan Hubicka  <hubicka@ucw.cz>
8511
8512         PR c++/70029
8513         * tree.c (verify_type): Disable the canonical type of main variant
8514         check.
8515
8516 2016-04-14  Jason Merrill  <jason@redhat.com>
8517
8518         * cfgexpand.c, expr.c: Revert previous change.
8519
8520 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
8521
8522         PR middle-end/70643
8523         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
8524         when building a mem ref for the incoming reduction variable.
8525
8526 2016-04-14  Richard Biener  <rguenther@suse.de>
8527
8528         PR tree-optimization/70614
8529         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
8530         loop if the evolution dropped to chrec_dont_know.
8531         (interpret_condition_phi): Likewise.
8532
8533 2016-04-14  Richard Biener  <rguenther@suse.de>
8534
8535         PR tree-optimization/70623
8536         * tree-ssa-pre.c (changed_blocks): Make global ...
8537         (compute_antic): ... local here.  Move and fix worklist
8538         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
8539         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
8540         worklist handling, dump when ANTIC_IN changed.
8541         (compute_partial_antic_aux): Remove worklist handling.
8542         (init_pre): Do not compute post dominators.  Add a comment about
8543         the CFG order chosen.
8544         (fini_pre): Do not free post dominators.
8545
8546 2016-04-13  Martin Sebor  <msebor@redhat.com>
8547
8548         PR c++/69517
8549         PR c++/70019
8550         PR c++/70588
8551         * doc/extend.texi (Variable Length): Document C++ specifics.
8552
8553 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
8554
8555         PR c++/70641
8556         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
8557         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
8558         eh edges have been purged.
8559
8560         PR c++/70594
8561         * tree-sra.c (create_access_replacement,
8562         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
8563         gets fancy name.
8564         * tree-pretty-print.c (dump_fancy_name): New function.
8565         (dump_decl_name, dump_generic_node): Use it.
8566
8567 2016-04-13  Jason Merrill  <jason@redhat.com>
8568
8569         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
8570         * expr.c (expand_expr_real_1): Likewise.
8571
8572 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
8573
8574         * config/i386/i386.md (kunpckhi): Swap operands.
8575         (kunpcksi): Likewise.
8576         (kunpckdi): Likewise.
8577         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
8578         (vec_pack_trunc_<mode>): Likewise.
8579
8580 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
8581
8582         PR debug/70628
8583         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
8584
8585         PR middle-end/70633
8586         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
8587         gimplification turns some element into non-constant.
8588
8589         PR debug/70628
8590         * rtl.h (convert_memory_address_addr_space_1): New prototype.
8591         * explow.c (convert_memory_address_addr_space_1): No longer static,
8592         add NO_EMIT argument and don't call convert_modes if true, pass
8593         it down recursively, remove break after return.
8594         (convert_memory_address_addr_space): Adjust caller.
8595         * simplify-rtx.c (simplify_unary_operation_1): Call
8596         convert_memory_address_addr_space_1 instead of convert_memory_address,
8597         if it returns NULL, don't simplify.
8598
8599 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
8600
8601         PR target/70630
8602         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
8603
8604 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8605
8606         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8607         Bump the upper SIMDLEN limits, so that if the return type or
8608         characteristic type if the return type is void can be passed in
8609         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
8610         allowed.
8611
8612 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8613
8614         PR target/70640
8615         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
8616         Do not use "=" constraint on an input constraint.
8617         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
8618         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
8619         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
8620         generates (neg (abs ...)) instead of (abs ...).
8621
8622 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8623
8624         PR rtl-optimization/70596
8625         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
8626         just invalidate LRA data and reset them.  Adjust dump wording.
8627
8628 2016-04-12  Martin Liska  <mliska@suse.cz>
8629
8630         Revert
8631         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
8632
8633         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
8634         estimates here.
8635         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
8636         max_loop_iterations_int.
8637         (tree_unswitch_outer_loop): Likewise.
8638         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
8639         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8640
8641 2016-04-12  Tom de Vries  <tom@codesourcery.com>
8642
8643         PR tree-optimization/68756
8644         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
8645         instead of new_name.
8646
8647 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8648
8649         PR tree-optimization/70602
8650         * tree-sra.c (generate_subtree_copies): Don't write anything into
8651         constant pool decls.
8652
8653         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
8654         regardless whether there are depend clauses or not.
8655
8656 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
8657
8658         PR target/70381
8659         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
8660         target attribute and pragma from changing the -mfloat128
8661         and -mfloat128-hardware options.
8662
8663         * doc/extend.texi (Additional Floating Types): Document PowerPC
8664         __float128 restrictions.
8665
8666 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
8667
8668         PR target/70133
8669         * config/aarch64/driver-aarch64.c
8670         (aarch64_get_extension_string_for_isa_flags): New.
8671         (arch_extension): Rename to...
8672         (aarch64_arch_extension): ...This.
8673         (ext_to_feat_string): Rename to...
8674         (aarch64_extensions): ...This.
8675         (aarch64_core_data): Keep track of architecture extension flags.
8676         (cpu_data): Rename to...
8677         (aarch64_cpu_data): ...This.
8678         (aarch64_arch_driver_info): Keep track of architecture extension
8679         flags.
8680         (get_arch_name_from_id): Rename to...
8681         (get_arch_from_id): ...This, change return type.
8682         (host_detect_local_cpu): Update and reformat for renames, handle
8683         extensions through common infrastructure.
8684
8685 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
8686
8687         PR target/70133
8688         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
8689         track of a canonical flag name.
8690         (all_extensions): Likewise.
8691         (arch_to_arch_name): Also track extension flags enabled by the arch.
8692         (all_architectures): Likewise.
8693         (aarch64_parse_extension): Move to here.
8694         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
8695         rework.
8696         (aarch64_rewrite_selected_cpu): Update for above change.
8697         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
8698         are handled, such that the single explicit value enabled by an
8699         extension is kept seperate from the implicit values it also enables.
8700         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
8701         to here.
8702         (aarch64_parse_extension): New.
8703         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
8704         here to config/aarch64/aarch64-protos.h.
8705         (aarch64_parse_extension): Move from here to
8706         common/config/aarch64/aarch64-common.c.
8707         (aarch64_option_print): Update.
8708         (aarch64_declare_function_name): Likewise.
8709         (aarch64_start_file): Likewise.
8710         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
8711         the canonical flag for extensions.
8712         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
8713         flags.
8714
8715 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
8716
8717         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
8718         AARCH64_FL_CRC.
8719
8720 2016-04-09  Tom de Vries  <tom@codesourcery.com>
8721
8722         PR tree-optimization/68953
8723         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
8724         first to last subscript.
8725
8726 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
8727
8728         PR tree-optimization/70586
8729         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
8730         for any calls.
8731
8732 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
8733
8734         PR lto/70289
8735         PR ipa/70348
8736         PR tree-optimization/70373
8737         PR middle-end/70533
8738         PR middle-end/70534
8739         PR middle-end/70535
8740         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
8741         clauses for acc parallel reductions as necessary.  Error on those
8742         that are private.
8743         * omp-low.c (scan_sharing_clauses): Don't install variables which
8744         are used in acc parallel reductions.
8745         (lower_rec_input_clauses): Remove dead code.
8746         (lower_oacc_reductions): Add support for reference reductions.
8747         (lower_reduction_clauses): Remove dead code.
8748         (lower_omp_target): Don't remap variables appearing in acc parallel
8749         reductions.
8750         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
8751
8752 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
8753
8754         PR middle-end/70593
8755         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
8756         with multiple SSA_NAME defs, force the outputs other than first
8757         to be live before calling live_track_process_def on each output.
8758
8759         PR rtl-optimization/70574
8760         * fwprop.c (forward_propagate_and_simplify): Don't add
8761         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
8762         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
8763         paradoxical subregs within *loc.
8764
8765 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
8766
8767         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
8768         -ftree-parallelize-loops={0,1}.
8769         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
8770         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
8771         * config/ia64/hpux.h (LIB_SPEC): Likewise.
8772         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8773         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
8774
8775 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
8776
8777         PR sanitizer/70541
8778         * asan.c (instrument_derefs): If we get unknown location, extract it
8779         with EXPR_LOCATION.
8780         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
8781
8782 2016-04-08  Tom de Vries  <tom@codesourcery.com>
8783
8784         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
8785         implicit firstprivate clause.
8786
8787 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8788
8789         PR target/70566
8790         * config/arm/thumb2.md (tst + branch-> lsls + branch
8791         peephole below *orsi_not_shiftsi_si): Require that condition
8792         register is dead after the peephole.
8793         (second peephole after the above): Likewise.
8794
8795 2016-04-08  Alan Modra  <amodra@gmail.com>
8796
8797         PR target/70117
8798         * builtins.c (fold_builtin_classify): For IBM extended precision,
8799         look at just the high-order double to test for NaN.
8800         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
8801         test just the high double for Inf but both doubles for subnormal
8802         limit.
8803
8804 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
8805
8806         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
8807         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
8808         node->simdclone->mask_mode != VOIDmode masks.
8809         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
8810         earlier, use it instead of node->simdclone.
8811         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8812         Set clonei->mask_mode.
8813
8814 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
8815
8816         PR c/70436
8817         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
8818         Pass it through to cp_parser_already_scoped_statement.
8819         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
8820         it through to cp_parser_statement.
8821         (cp_parser_statement): Pass IF_P through to
8822         cp_parser_iteration_statement.
8823         (cp_parser_pragma): Adjust call to
8824         cp_parser_iteration_statement.
8825
8826 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
8827
8828         PR c/70436
8829         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
8830         resolve a future -Wparentheses warning.
8831         * omp-low.c (scan_sharing_clauses): Likewise.
8832         * tree-parloops.c (eliminate_local_variables): Likewise.
8833
8834 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
8835
8836         PR rtl-optimization/70398
8837         * lra-constraints.c (process_address_1): Check zero scale and code
8838         for reloading with zero scale.
8839
8840 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
8841
8842         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
8843         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
8844
8845 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
8846
8847         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8848         Add support for AVX512F clones, include them by default for
8849         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
8850         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
8851         up to 128.
8852
8853         PR middle-end/70550
8854         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
8855         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
8856         firstprivate clauses.
8857         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
8858         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
8859         (lower_omp_target): Set TREE_NO_WARNING for
8860         non-addressable possibly uninitialized vars which are copied into
8861         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
8862
8863 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
8864
8865         * config/pa/predicates.md (integer_store_memory_operand): Accept
8866         REG+D operands with a large offset when reload_in_progress is true.
8867         (floating_point_store_memory_operand): Likewise.
8868
8869 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
8870
8871         PR c++/70336
8872         * match.pd (nested int casts): Limit to GIMPLE.
8873
8874 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
8875
8876         PR ipa/66223
8877         * ipa-devirt.c (maybe_record_node): Fix comment; use
8878         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
8879
8880 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
8881
8882         PR rtl-optimization/70542
8883         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
8884         if there are any uses other than insn or debug insns.
8885
8886 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
8887             Jakub Jelinek  <jakub@redhat.com>
8888
8889         PR tree-optimization/70509
8890         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
8891         Shift HOST_WIDE_INT_1U instead of 1.
8892
8893 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
8894
8895         PR tree-optimization/70509
8896         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
8897         of the vector base type for index.
8898
8899 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
8900
8901         PR target/70510
8902         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
8903
8904 2016-04-05  Richard Biener  <rguenther@suse.de>
8905
8906         PR tree-optimization/70526
8907         * tree-sra.c (build_ref_for_offset): Use prev_base to
8908         extract the alias pointer type.
8909
8910 2016-04-05  Richard Biener  <rguenther@suse.de>
8911
8912         * dse.c (struct store_info): Remove alias_set member.
8913         (struct read_info_type): Likewise.
8914         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
8915         spill_deleted, clear_alias_set_lookup): Remove.
8916         (get_group_info): Remove dead base == NULL_RTX case.
8917         (dse_step0): Remove initialization of removed variables.
8918         (delete_dead_store_insn): Reomve alias set dumping.
8919         (free_read_records): Remove alias_set handling.
8920         (canon_address): Remove alias_set_out parameter.
8921         (record_store): Remove spill_alias_set, it's always zero.
8922         (check_mem_read_rtx): Likewise.
8923         (dse_step2): Rename from ...
8924         (dse_step2_nospill): ... this.  Adjust.
8925         (scan_stores): Rename from ...
8926         (scan_stores_nospill): ... this.
8927         (scan_reads): Rename from ...
8928         (scan_reads_nospill): ... this.
8929         (scan_stores_spill, scan_reads_spill): Remove.
8930         (dse_step3_scan): Remove for_spills argument which is always false.
8931         (dse_step3): Likewise.
8932         (dse_step5): Rename from ...
8933         (dse_step5_nospill): ... this.  Remove alias_set handling.
8934         (rest_of_handle_dse): Adjust.
8935
8936 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
8937
8938         PR target/70525
8939         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
8940         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
8941         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
8942         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
8943
8944 2016-04-05  Richard Biener  <rguenther@suse.de>
8945
8946         PR middle-end/70499
8947         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
8948         non-register type temporaries into SSA.
8949
8950 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
8951
8952         PR ipa/66223
8953         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
8954         calls when sanitizing.
8955         (possible_polymorphic_call_target_p): Fix formatting.
8956
8957 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8958             Jakub Jelinek <jakub@redhat.com>
8959
8960         PR middle-end/70457
8961         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
8962         to ensure a call statement is compatible with a built-in's
8963         prototype.
8964         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
8965         Likewise.
8966
8967 2016-04-04  Richard Biener  <rguenther@suse.de>
8968
8969         PR rtl-optimization/70484
8970         * rtl.h (canon_output_dependence): Declare.
8971         * alias.c (canon_output_dependence): New function.
8972         * dse.c (record_store): Use canon_output_dependence rather
8973         than canon_true_dependence.
8974
8975 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
8976
8977         PR ipa/68881
8978         * cgraph.h (symtab_node::copy_visibility_from): New function.
8979         * symtab.c (symtab_node::copy_visibility_from): New function.
8980         * ipa-visibility.c (optimize_weakref): New function.
8981         (function_and_variable_visibility): Use it.
8982
8983 2016-04-04  Martin Liska  <mliska@suse.cz>
8984
8985         PR hsa/70402
8986         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
8987         value that is really in range handled by SBR instruction.
8988         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
8989         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
8990         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
8991
8992 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
8993
8994         PR target/70416
8995         PR target/67391
8996         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
8997         set, but not for SP_REG operands.
8998
8999 2016-04-02  Martin Sebor  <msebor@redhat.com>
9000
9001         PR c++/67376
9002         * fold-const.c (maybe_nonzero_address): New function.
9003         (fold_comparison): Call it.  Fold equality and relational
9004         expressions involving null pointers.
9005         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
9006
9007 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
9008
9009         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
9010         the "Y" constraint (scalar FP 0.0 immediate).
9011
9012         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
9013         Add the "const_double" to the list of operand constraints.
9014
9015 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
9016
9017         PR rtl-optimization/70467
9018         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
9019         If low word of the last operand is 0, just emit addition/subtraction
9020         for the high word.
9021
9022 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9023
9024         PR target/70404
9025         * config/s390/s390.c (s390_expand_insv): Check for everything
9026         constant instead of just VOIDmode stuff.
9027
9028 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9029
9030         PR target/70496
9031         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
9032
9033 2016-04-01  Nathan Sidwell  <nathan@acm.org>
9034
9035         * tree.def (TRY_CATCH_EXPR): Correct documentation.
9036
9037 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
9038
9039         PR rtl-optimization/70461
9040         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
9041         is necessary.
9042
9043 2016-03-31  Martin Liska  <mliska@suse.cz>
9044
9045         PR hsa/70399
9046         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
9047         a tree value or an immediate integer value to a buffer
9048         that is eventually copied to a BRIG section.
9049         (emit_immediate_operand): Call the function here.
9050         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
9051         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
9052         of class' fields that are removed.
9053         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
9054         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
9055         m_brig_repr_size fields.
9056
9057 2016-03-31  Martin Liska  <mliska@suse.cz>
9058
9059         PR hsa/70391
9060         * hsa-gen.c (hsa_function_representation::update_dominance): New
9061         function.
9062         (convert_addr_to_flat_segment): Likewise.
9063         (gen_hsa_memory_set): New alignment argument.
9064         (gen_hsa_ctor_assignment): Likewise.
9065         (gen_hsa_insns_for_single_assignment): Provide alignment
9066         to gen_hsa_ctor_assignment.
9067         (gen_hsa_insns_for_direct_call): Add new argument.
9068         (expand_lhs_of_string_op): New function.
9069         (expand_string_operation_builtin): Likewise.
9070         (expand_memory_copy): New function.
9071         (expand_memory_set): New function.
9072         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
9073         (convert_switch_statements): Change signature.
9074         (generate_hsa): Use a return value of the function.
9075         (pass_gen_hsail::execute): Do not call
9076         convert_switch_statements here.
9077         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
9078         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
9079         (hsa_function_representation::update_dominance): New function.
9080
9081 2016-03-31  Martin Liska  <mliska@suse.cz>
9082
9083         PR hsa/70391
9084         * hsa-brig.c (emit_directive_variable): Emit alignment
9085         according to hsa_symbol::m_align.
9086         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
9087         (dump_hsa_symbol): Dump alignment of HSA symbols.
9088         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
9089         (gen_hsa_addr_with_align): New function.
9090         (hsa_bitmemref_alignment): Use newly added function.
9091         (gen_hsa_insns_for_load): Likewise.
9092         (gen_hsa_insns_for_store): Likewise.
9093         (gen_hsa_memory_copy): New argument added.
9094         (gen_hsa_insns_for_single_assignment): Respect
9095         alignment for assignments processed via gen_hsa_memory_copy.
9096         (gen_hsa_insns_for_direct_call): Likewise.
9097         (gen_hsa_insns_for_return): Likewise.
9098         (gen_function_def_parameters): Set default alignment.
9099         * hsa.c (hsa_object_alignment): New function.
9100         (hsa_byte_alignment): Pasted function.
9101         * hsa.h (hsa_symbol::m_align): New field.
9102
9103 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
9104
9105         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
9106         scratch field for goto case.
9107
9108 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
9109
9110         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
9111
9112 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
9113
9114         PR target/70442
9115         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
9116         (scalar_chain::convert_insn): Call convert_op for reg
9117         moves to handle undefined registers.
9118
9119 2016-03-31  Nathan Sidwell  <nathan@acm.org>
9120
9121         PR c++/70393
9122         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
9123         Assert we don't want to move backwards.
9124
9125 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
9126
9127         PR target/70453
9128         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
9129
9130 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
9131
9132         PR rtl-optimization/70460
9133         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
9134         with operand from REG_LABEL_OPERAND, instead substitute
9135         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
9136         Don't do anything for REG_NON_LOCAL_GOTO jumps.
9137
9138 2016-03-31  Martin Liska  <mliska@suse.cz>
9139
9140         * passes.c (execute_one_pass): Do not call
9141         todo_after for a discarded function.
9142
9143 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
9144
9145         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
9146         (no_cost, infinite_cost): Initialize the new field.
9147         (get_computation_cost_at): Record setup cost.
9148         (determine_use_iv_cost_address): Skip cost computation for sub
9149         uses if we can estimate it without losing accuracy.
9150
9151 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
9152
9153         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
9154         estimates here.
9155         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
9156         max_loop_iterations_int.
9157         (tree_unswitch_outer_loop): Likewise.
9158         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
9159         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9160
9161 2016-03-30  Richard Biener  <rguenther@suse.de>
9162
9163         PR middle-end/70450
9164         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
9165
9166 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
9167
9168         PR target/70421
9169         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
9170         in gen_blendm expander.
9171
9172 2016-03-30  Nick Clifton  <nickc@redhat.com>
9173
9174         PR target/62254
9175         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
9176         case where we are already provided with an SImode SUBREG.
9177
9178 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
9179
9180         PR target/70439
9181         * config/i386/i386.c (ix86_expand_epilogue): Properly check
9182         conflict between DRAP register and __builtin_eh_return.
9183
9184 2016-03-30  Michael Matz  <matz@suse.de>
9185             Richard Biener  <rguenther@suse.de>
9186
9187         PR ipa/12392
9188         * ipa-polymorphic-call.c (struct type_change_info): Change
9189         speculative to an unsigned allowing to limit the work we do.
9190         (csftc_abort_walking_p): New inline function..
9191         (check_stmt_for_type_change): Limit the number of may-defs
9192         skipped for speculative devirtualization to
9193         max-speculative-devirt-maydefs.
9194         * params.def (max-speculative-devirt-maydefs): New param.
9195         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
9196
9197 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
9198
9199         PR target/63890
9200         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
9201         and TARGET_MACHO.
9202
9203 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
9204
9205         PR tree-optimization/59124
9206         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
9207         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
9208
9209 2016-03-29  Jeff Law  <law@redhat.com>
9210
9211         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
9212
9213 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
9214
9215         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
9216         to HOST_WIDE_INT.
9217
9218 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
9219
9220         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
9221         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
9222         gcrt0.o if linking dynamically.
9223
9224 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
9225
9226         PR ipa/70283
9227         * ipa-devirt.c (methods_equal_p): New function.
9228         (compare_virtual_tables): Use it.
9229         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
9230         * cgraphclones.c (clone_function_name_1): Use
9231         symbol_table::symbol_suffix_separator.
9232         * coverage.c (build_var): Likewise.
9233         * symtab.c (symbol_table::symbol_suffix_separator): New.
9234
9235 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
9236
9237         PR rtl-optimization/70429
9238         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
9239         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
9240         mode != result_mode.
9241
9242         PR c++/70353
9243         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
9244
9245         PR tree-optimization/70405
9246         * ssa-iterators.h (num_imm_uses): Add missing braces.
9247
9248 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
9249
9250         PR rtl-optimization/68695
9251         * ira-color.c (allocno_copy_cost_saving): New.
9252         (improve_allocation): Use it.
9253
9254 2016-03-29  Richard Henderson  <rth@redhat.com>
9255
9256         PR middle-end/70355
9257         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
9258
9259 2016-03-29  Richard Biener  <rguenther@suse.de>
9260
9261         PR middle-end/70424
9262         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
9263         use alignment returned by get_pointer_alignment_1 if it is
9264         bigger than BITS_PER_UNIT.
9265         * builtins.c (get_pointer_alignment_1): Do not return true
9266         for alignment extracted from SSA info.
9267
9268 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
9269
9270         * config/ft32/ft32.opt (mnodiv): New.
9271         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
9272         * doc/invoke.texi (FT32 Options -mnodiv): New.
9273
9274 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
9275
9276         PR target/70406
9277         * config/i386/i386.md (define_split, andn): Fix modes.
9278
9279 2016-03-26  Richard Biener  <rguenther@suse.de>
9280             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9281
9282         PR ipa/70366
9283         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
9284         instead of
9285         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
9286         as 2nd argument to cl_optimization_restore().
9287
9288 2016-03-25  Richard Henderson  <rth@redhat.com>
9289
9290         PR target/70120
9291         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
9292         * config/aarch64/aarch64-protos.h: Declare it.
9293         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
9294
9295 2016-03-25  Alan Modra  <amodra@gmail.com>
9296
9297         PR target/70052
9298         * config/rs6000/constraints.md (j): Simplify.
9299         * config/rs6000/predicates.md (easy_fp_constant): Exclude
9300         decimal float 0.D.
9301         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
9302         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
9303          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
9304         in all constraint alternatives.
9305         (movtd_64bit_nodm): Delete "j" constraint alternative.
9306
9307 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
9308
9309         * tree-ssa-propagate.c: Enhance docs for
9310         SSA_PROP_NOT_INTERESTING.
9311
9312 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
9313
9314         * doc/extend.texi: Fix typo in documentation to pure attribute.
9315
9316 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
9317
9318         PR target/70319
9319         * config/pa/pa.md (bswapdi2): Use a scratch register.
9320
9321 2016-03-24  Richard Henderson  <rth@redhat.com>
9322
9323         PR middle-end/69845
9324         * fold-const.c (extract_muldiv_1): Correct test for multiplication
9325         overflow.
9326
9327 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
9328
9329         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
9330         using ix86_expand_binary_operator instead of gen_andsi3.
9331
9332 2016-03-24  Richard Biener  <rguenther@suse.de>
9333
9334         PR tree-optimization/70396
9335         * tree-vect-stmts.c (vectorizable_comparison): Use
9336         get_vectype_for_scalar_type.
9337
9338 2016-03-24  Richard Biener  <rguenther@suse.de>
9339
9340         PR middle-end/70370
9341         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
9342         with register bases.
9343
9344 2016-03-24  Richard Biener  <rguenther@suse.de>
9345
9346         PR tree-optimization/70372
9347         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
9348         build_all_ones_cst to also handle vector types correctly.
9349
9350 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
9351
9352         PR target/70381
9353         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
9354         -mfloat128 here.
9355
9356 2016-03-23  Marek Polacek  <polacek@redhat.com>
9357
9358         PR c++/69884
9359         * doc/invoke.texi: Document -Wignored-attributes.
9360
9361 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
9362
9363         PR tree-optimization/69042
9364         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
9365         parameter from 30 to 40.
9366
9367 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
9368
9369         PR tree-optimization/69042
9370         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
9371         for use with constant offset stripped in base.
9372
9373 2016-03-23  Richard Biener  <rguenther@suse.de>
9374
9375         PR middle-end/70251
9376         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
9377         mode compatibility check.
9378         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
9379
9380 2016-03-23  Jeff Law  <law@redhat.com>
9381
9382         PR tree-optimization/64058
9383         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
9384         CONFLICT_COUNT.
9385         (struct ssa_conflicts): Move up earlier in the file.
9386         (conflicts_, var_map_): New static variables.
9387         (initialize_conflict_count): New function to initialize the
9388         CONFLICT_COUNT field for each conflict pair.
9389         (compare_pairs): Lazily initialize the conflict count and use it
9390         as the first tie-breaker.
9391         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
9392         and wipe conflicts_ and map_ around the call to qsort.  Remove
9393         special case for 2 coalesce pairs.
9394         * bitmap.c (bitmap_count_unique_bits): New function.
9395         (bitmap_count_bits_in_word): New function, extracted from
9396         bitmap_count_bits.
9397         (bitmap_count_bits): Use bitmap_count_bits_in_word.
9398         * bitmap.h (bitmap_count_unique_bits): Declare it.
9399
9400 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
9401
9402         PR target/69917
9403         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
9404         transparent alias chain for decl assembler name.
9405         * config/sol2.c (solaris_assemble_visibility): Likewise.
9406
9407 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9408
9409         * config/arm/arm1020e.md (1020call_op): Reduce reservation
9410         duration.
9411         (v10_fdivs): Likewise.
9412         (v10_fdivd): Likewise.
9413
9414 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9415
9416         PR driver/70132
9417         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
9418         to not call fclose twice on file.
9419
9420 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
9421
9422         PR tree-optimization/70354
9423         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
9424         oprnd0 is wider than oprnd1 and there is a cast from the wider
9425         type to oprnd1, mask it with the mask of the narrower type.
9426
9427         PR target/70321
9428         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
9429         Optimize TARGET_STV splitters, if high or low word of last argument
9430         is 0 or -1.
9431
9432 2016-03-22  Jeff Law  <law@redhat.com>
9433
9434         PR target/70232
9435         tree-ssa-threadbackward.c
9436         (fsm_find_control_statement_thread_paths): Correctly distinguish
9437         between old style jump threads vs FSM jump threads.
9438
9439 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
9440
9441         PR target/70302
9442         * config/i386/i386.c (scalar_chain::convert_op): Support
9443         uninitialized register usage case.
9444
9445 2016-03-22  Richard Biener  <rguenther@suse.de>
9446
9447         PR middle-end/70251
9448         * genmatch.c (gen_transform): Adjust last parameter to a three-state
9449         int...
9450         (capture::gen_transform): ... to change behavior when substituting
9451         a condition into cond or not-cond expr context.
9452         (dt_simplify::gen_1): Adjust.
9453         * gimple-match-head.c: Include gimplify.h for unshare_expr.
9454         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
9455         last change and instead change to
9456         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
9457         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
9458
9459 2016-03-22  Anthony Green  <green@moxielogic.com>
9460
9461         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
9462         issue for moxiebox targets.
9463         (CC1PLUS_SPEC): Ditto.
9464
9465 2016-03-22  Richard Biener  <rguenther@suse.de>
9466
9467         PR middle-end/70333
9468         * fold-const.c (extract_muldiv_1): Properly perform multiplication
9469         in the wide type.
9470
9471 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9472
9473         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
9474
9475 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
9476
9477         PR target/70325
9478         * config/i386/i386.c (def_builtin): Handle
9479         OPTION_MASK_ISA_AVX512VL to be and-ed with other
9480         bits.
9481         (const struct builtin_description bdesc_special_args[]):
9482         Remove duplicate ISA bits.
9483
9484 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
9485
9486         PR target/70329
9487         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
9488         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
9489         in a way that works also for AVX512BW.
9490
9491         PR target/70300
9492         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
9493         instead of source if operands[1] is xmm16 and above and
9494         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
9495         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
9496
9497         PR c++/70295
9498         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
9499         on assign if (*from_p) is a comparison, set it to
9500         TREE_NO_WARNING (*from_p).
9501
9502 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
9503
9504         PR middle-end/70326
9505         * lra.c (restore_scratches): Ignore deleted insns.
9506
9507 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
9508             Jakub Jelinek  <jakub@redhat.com>
9509
9510         PR tree-optimization/70317
9511         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
9512         to HONOR_NANS.
9513
9514 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
9515
9516         PR target/70327
9517         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
9518         of ix86_expand_move.
9519         (movoi): Ditto.
9520         (movti): Use general_operand for operand 1 predicate.
9521
9522 2016-03-21  Martin Liska  <mliska@suse.cz>
9523
9524         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
9525         insns.
9526         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
9527
9528 2016-03-21  Martin Liska  <mliska@suse.cz>
9529
9530         PR ipa/70306
9531         * ipa-icf.c (sem_function::parse): Skip static
9532         constructors and destructors.
9533
9534 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
9535
9536         PR target/70296
9537         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
9538         function-like macro, peek following token(s) if it is followed
9539         by CPP_OPEN_PAREN token with optional padding in between, and
9540         if not, don't treat it like a macro.
9541
9542 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9543             Alexander Monakov  <amonakov@ispras.ru>
9544
9545         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
9546         for the stabs debug format.
9547
9548 2016-03-21  Richard Biener  <rguenther@suse.de>
9549
9550         PR tree-optimization/70310
9551         * tree-vect-generic.c (expand_vector_condition): Fold the built
9552         condition.
9553
9554 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
9555
9556         PR target/70293
9557         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
9558         Block third alternative for AVX-512VL target,
9559
9560 2016-03-21  Martin Liska  <mliska@suse.cz>
9561
9562         PR hsa/70234
9563         * hsa-brig.c (emit_function_directives): Mark unemitted
9564         global variables for emission.
9565         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
9566         (get_symbol_for_decl): Likewise.
9567         * hsa.h (struct hsa_symbol): New flag.
9568
9569 2016-03-21  Richard Biener  <rguenther@suse.de>
9570
9571         PR tree-optimization/70288
9572         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
9573         we do not estimate unsimplified all-constant conditionals or
9574         switches as optimized away.
9575
9576 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
9577
9578         PR rtl-optimization/69102
9579         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
9580         when we have a readonly dependency context.
9581
9582 2016-03-18  Jeff Law  <law@redhat.com>
9583
9584         PR rtl-optimization/70263
9585         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
9586         (update_equiv_regs): When trying to move a store to after the insn
9587         that sets the source of the store, make sure the store occurs after
9588         the insn that sets the source of the store.  When successful note
9589         the REG_EQUIV note created in the dump file.
9590
9591 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
9592             Bernd Schmidt  <bschmidt@redhat.com>
9593
9594         * doc/extend.texi: Document more potential problems with basic asms.
9595
9596 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
9597
9598         PR rtl-optimization/70278
9599         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
9600         VOIDmode.
9601
9602 2016-03-18  Jason Merrill  <jason@redhat.com>
9603
9604         * calls.c (load_register_parameters): Fix zero size sibcall logic.
9605
9606 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
9607
9608         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
9609         values to 128b regs.
9610
9611 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
9612
9613         PR tree-optimization/70252
9614         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
9615         boolean vector has a proper number of elements.
9616         (supportable_narrowing_operation): Likewise.
9617
9618 2016-03-18  Tom de Vries  <tom@codesourcery.com>
9619
9620         PR ipa/70269
9621         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
9622
9623 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
9624
9625         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
9626         instead of replace_rtx for DEBUG_INSNs.
9627
9628 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9629
9630         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
9631         load type reservations.
9632
9633 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
9634
9635         PR target/70188
9636         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
9637         define_constraint for "Q" and "T" constraints.
9638
9639 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
9640
9641         Tweak the pipeline model for Exynos M1
9642
9643         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
9644         model.
9645
9646 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
9647
9648         PR c/70264
9649         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
9650         where one or both locations aren't within a line_map.
9651
9652 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9653
9654         PR driver/70192
9655         * opts.c (finish_options): Don't set flag_pie to the default if
9656         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
9657         if it is -1.
9658
9659 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
9660
9661         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
9662         true as ALL_REGS argument to replace_rtx.
9663
9664 2016-03-17  Richard Biener  <rguenther@suse.de>
9665
9666         PR debug/70271
9667         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
9668         last.
9669
9670 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
9671
9672         PR target/70245
9673         * rtl.h (replace_rtx): Add ALL_REGS argument.
9674         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
9675         equality and assert mode is the same, instead of just rtx pointer
9676         equality.
9677         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
9678         true as ALL_REGS argument to replace_rtx.
9679
9680 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
9681
9682         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
9683         for boolean vector with vector mode only.
9684         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
9685
9686 2016-03-17  Nick Clifton  <nickc@redhat.com>
9687
9688         PR target/70162
9689         * config/rx/rx.c (rx_print_integer): Print negative constants in
9690         decimal.
9691
9692 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
9693
9694         PR target/70261
9695         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
9696
9697 2016-03-16  Richard Henderson  <rth@redhat.com>
9698             Richard Biener  <rguenth@suse.de>
9699
9700         PR middle-end/70240
9701         PR middle-end/68215
9702         PR tree-opt/68714
9703         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
9704         first operand as is_gimple_condexpr.
9705
9706         PR middle-end/70240
9707         PR middle-end/68215
9708         Revert r231575
9709         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
9710         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
9711         Do not gimplify the result.
9712         (do_unop): Adjust call to tree_vec_extract.
9713         (do_binop): Likewise.
9714         (do_compare): Likewise.
9715         (do_plus_minus): Likewise.
9716         (do_negate): Likewise.
9717         (expand_vector_condition): Likewise.
9718         (do_cond): Likewise.
9719
9720 2016-03-16  Richard Henderson  <rth@redhat.com>
9721
9722         PR target/70048
9723         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
9724         (aarch64_classify_address): Use it.
9725         (aarch64_legitimize_address): Force all subexpressions of PLUS
9726         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
9727
9728 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
9729             Richard Biener  <rguenth@suse.de>
9730
9731         PR target/70245
9732         * rtlanal.c (replace_rtx): For REG, if from is a REG,
9733         return to even if only REGNO is equal, and assert
9734         mode is the same.
9735
9736 2016-03-11  Jeff Law  <law@redhat.com>
9737
9738         PR rtl-optimization/70224
9739         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
9740
9741 2016-03-16  Richard Henderson  <rth@redhat.com>
9742
9743         PR middle-end/70199
9744         * function.h (struct function): Add has_forced_label_in_static.
9745         * gimplify.c (force_labels_r): Set it.
9746         * lto-streamer-in.c (input_struct_function_base): Read it.
9747         * lto-streamer-out.c (output_struct_function_base): Write it.
9748         * tree-inline.c (has_label_address_in_static_1): Remove.
9749         (copy_forbidden): Remove fndecl parameter; test
9750         has_forced_label_in_static.
9751         (inline_forbidden_p): Update call to copy_forbidden.
9752         (tree_versionable_function_p): Likewise.
9753         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
9754         (chkp_versioning): Likewise.
9755         * tree-inline.h (copy_forbidden): Update decl.
9756
9757 2016-03-16  Marek Polacek  <polacek@redhat.com>
9758
9759         PR c/70093
9760         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
9761         function being thunked if the result type doesn't have fixed size.
9762         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
9763         doesn't have fixed size.
9764
9765 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
9766
9767         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
9768         reporting malformed loop nest.
9769
9770 2016-03-16  Tom de Vries  <tom@codesourcery.com>
9771
9772         PR lto/70187
9773         * ipa-devirt.c (possible_polymorphic_call_targets): Move
9774         nodes.length () == 1 test to before first nodes[0] access.
9775
9776 2016-03-16  Tom de Vries  <tom@codesourcery.com>
9777
9778         PR tree-optimization/68715
9779         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
9780         single_pred_p test.
9781
9782 2016-03-16  Tom de Vries  <tom@codesourcery.com>
9783
9784         PR tree-optimization/68809
9785         * graphite-scop-detection.c (same_close_phi_node): Test if result types
9786         are the same.
9787
9788 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
9789             Sandra Loosemore  <sandra@codesourcery.com>
9790
9791         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
9792         on leaf attribute. Mention ELF interposition problems.
9793
9794 2016-03-16  Alan Modra  <amodra@gmail.com>
9795
9796         PR rtl-optimization/69195
9797         PR rtl-optimization/47992
9798         * ira.c (indirect_jump_optimize): Ignore artificial defs.
9799         Add comments.
9800
9801 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
9802
9803         PR bootstrap/69513
9804         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
9805
9806 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9807
9808         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
9809
9810 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
9811
9812         PR rtl-optimization/70222
9813         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
9814         optimization if mode is different from result_mode, queue up masking
9815         of the result in outer_op.  Formatting fix.
9816
9817         PR middle-end/70239
9818         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
9819         of safe_grow.
9820
9821 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
9822
9823         PR rtl-optimization/69032
9824         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
9825         looping backwards over basic block insns.
9826
9827 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
9828
9829         PR target/66660
9830         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
9831         to non-speculative when propagating trap bits.
9832
9833 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
9834
9835         PR rtl-optimization/63384
9836         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
9837         DEBUG_INSN_P insns.
9838
9839 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
9840
9841         PR target/64411
9842         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
9843         factored out from ...
9844         (sched_analyze_insn): ... here.
9845         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
9846         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
9847         get_implicit_reg_pending_clobbers in it.
9848         (setup_id_reg_sets): Use setup_id_implicit_regs.
9849         (deps_init_id): Ditto.
9850
9851 2016-03-15  Tom de Vries  <tom@codesourcery.com>
9852
9853         PR ipa/70161
9854         * cgraph.c (cgraph_node::get_body): Save, reset and restore
9855         dump_file_name.
9856         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
9857         execute_function_dump.
9858         (execute_one_pass): Don't dump function if it will be dumped after ipa
9859         transform.
9860
9861 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
9862
9863         * genrecog.c (match_pattern_2): If pred is NULL don't call
9864         safe_predicate_mode on it.
9865
9866 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
9867
9868         PR middle-end/70219
9869         * lra-constraints.c (delete_move_and_clobber): Change assertion
9870         to also allow dregno == 0.
9871
9872 2016-03-14  Richard Henderson  <rth@redhat.com>
9873
9874         PR tree-opt/68714
9875         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
9876         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
9877         (reassociate_bb): Use optimize_vec_cond_expr; avoid
9878         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
9879         on vectors.
9880
9881 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
9882
9883         PR target/70083
9884         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
9885         regs.
9886         (lra_create_live_ranges_1): initialize hard register biggest_mode to
9887         VOIDmode.
9888         * lra-constraints.c (split_reg): For hard regs, try to find the
9889         biggest single-register mode used in the function.
9890
9891 2016-03-14  Richard Biener  <rguenther@suse.de>
9892
9893         PR tree-optimization/56365
9894         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
9895         constants to compare against.
9896
9897 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
9898
9899         PR target/70098
9900         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
9901         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
9902         (define_split for the GPR case): Use int_reg_operand instead of
9903         gpc_reg_operand for the output.
9904
9905 2016-03-14  Tom de Vries  <tom@codesourcery.com>
9906
9907         PR tree-optimization/70045
9908         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
9909         create_empty_if_region_on_edge argument.
9910
9911 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
9912
9913         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
9914         (STACK_CHECK_PROTECT): Likewise.
9915         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
9916         (STACK_CHECK_PROTECT): Likewise.
9917         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
9918         (STACK_CHECK_PROTECT): Likewise.
9919         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
9920         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9921         (STACK_CHECK_PROTECT): Likewise.
9922
9923 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
9924
9925         PR rtl-optimization/69307
9926         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
9927         registers in modes that span more than one register.
9928
9929 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
9930
9931         PR target/69614
9932         * lra-constraints.c (delete_move_and_clobber): New.
9933         (remove_inheritance_pseudos): Use it.
9934
9935 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
9936
9937         PR ada/70017
9938         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
9939         the libcall is LCT_THROW.
9940         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
9941         for the checking routine.
9942
9943 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
9944
9945         PR target/70131
9946         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
9947         optimization if we have direct move.
9948         (roundu32<mode>2_fprs): Likewise.
9949
9950 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
9951
9952         PR target/70123
9953         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
9954         be rematerialized.
9955         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
9956         Arguments swapped.  All callers changed.  Take reg_renumber into
9957         account, and Calculate and compare register ranges for hard regs.
9958
9959 2016-03-11  Jeff Law  <law@redhat.com>
9960
9961         PR tree-optimization/70190
9962         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9963         Handle cases where we can not extract the taken edge, even though we
9964         found a constant value.
9965
9966         PR tree-optimization/64058
9967         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
9968         (num_coalesce_pairs): Move up earlier in file.
9969         (find_coalesce_pair): Initialize the INDEX field for each pair
9970         discovered.
9971         (compare_pairs): No longer sort on the elements in each pair.
9972         Instead break ties with the index of the coalesce pair.
9973
9974 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9975
9976         PR target/70002
9977         * config/aarch64/aarch64-protos.h
9978         (aarch64_save_restore_target_globals): New prototype.
9979         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
9980         Call the above when popping pragma.
9981         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
9982         New function.
9983         (aarch64_set_current_function): Rewrite using the above.
9984
9985 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
9986
9987         PR tree-optimization/70177
9988         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
9989         (extract_ops_from_tree): ... this.  In the 2 argument
9990         overload remove _1 suffix.
9991         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
9992         (extract_ops_from_tree): ... this.
9993         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
9994         Adjust callers.
9995         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
9996         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
9997         extract_ops_from_tree instead of 2 operand one.
9998
9999 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
10000
10001         PR tree-optimization/70013
10002         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
10003         for constant-pool entries.
10004
10005 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
10006
10007         PR rtl-optimization/70174
10008         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
10009         followed by gen_lowpart on force_reg instead of just gen_lowpart.
10010
10011         PR tree-optimization/70169
10012         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
10013         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
10014         for unknown codes.
10015
10016 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
10017             Jakub Jelinek  <jakub@redhat.com>
10018
10019         PR target/70160
10020         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
10021         of uninitialized values.
10022
10023 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10024
10025         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
10026         define_expand.
10027         ("*trunctddd2"): New pattern definition.
10028         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
10029         TD->DD truncation.
10030
10031 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10032
10033         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
10034         definitions for BFP and DFP rounding modes.
10035         ("fixuns_truncdddi2", "fixuns_trunctddi2")
10036         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
10037         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
10038         ("fix_trunctf<mode>2"): Use the new constants instead of magic
10039         numbers.
10040
10041 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10042
10043         * config/s390/constraints.md: Adjust comment.
10044         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
10045         s390_decompose_addrstyle_without_index.
10046         * config/s390/predicates.md (shift_count_or_setmem_operand):
10047         Rename to setmem_operand.
10048         * config/s390/s390-protos.h
10049         (s390_decompose_shift_count): Rename to
10050         s390_decompose_addrstyle_without_index.
10051         * config/s390/s390.c (s390_decompose_shift_count)
10052         (s390_mem_constraint, print_shift_count_operand)
10053         (print_operand_address, print_operand): Rename
10054         s390_decompose_shift_count to
10055         s390_decompose_addrstyle_without_index and rename
10056         print_shift_count_operand to print_addrstyle_operand troughout the
10057         file.
10058         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
10059         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
10060         Rename shift_count_or_setmem_operand to setmem_operand.
10061         * config/s390/vx-builtins.md ("vec_insert<mode>")
10062         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
10063         nonmemory_operand.
10064
10065 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10066
10067         PR target/70168
10068         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
10069         Handle overlapping retval and newval.
10070
10071 2016-03-10  Nick Clifton  <nickc@redhat.com>
10072
10073         PR target/7044
10074         * config/aarch64/aarch64.c
10075         (aarch64_override_options_after_change_1): When forcing
10076         flag_omit_frame_pointer to be true, use a special value that can
10077         be detected if this function is called again, thus preventing
10078         flag_omit_leaf_frame_pointer from being forced to be false.
10079
10080 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10081
10082         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
10083         Set x_flag_omit_leaf_frame_pointer when handling
10084         -momit-leaf-frame-pointer.
10085
10086 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10087
10088         PR lto/69589
10089         * cgraph.c (cgraph_node::dump): Dump split_part and
10090         indirect_call_target.
10091         * cgraph.h (cgraph_node): Add indirect_call_target flag.
10092         * ipa.c (has_addr_references_p): Cleanup.
10093         (is_indirect_call_target_p): New.
10094         (walk_polymorphic_call_targets): Do not mark virtuals that may be
10095         called indirectly as local.
10096         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
10097
10098 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10099
10100         PR ipa/69630
10101         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
10102         on cxa_pure_virtual.
10103
10104 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10105
10106         PR lto/69589
10107         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
10108
10109 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10110
10111         PR lto/69589
10112         * tree.c (need_assembler_name_p): Only record main variant type names.
10113
10114 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
10115
10116         PR target/70113.
10117         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
10118         Always define to 0 or 1.
10119         (TARGET_FIX_ERR_A53_843419): New macro.
10120         * config/aarch64/aarch64-elf-raw.h
10121         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
10122         * config/aarch64/aarch64-linux.h: Likewise.
10123         * config/aarch64/aarch64.c
10124         (aarch64_override_options_after_change_1): Do not default
10125         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
10126         843419 is on.
10127         (aarch64_attributes): Handle fix-cortex-a53-843419.
10128         (aarch64_can_inline_p): Likewise.
10129         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
10130
10131 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
10132         Jakub Jelinek <jakub@redhat.com>
10133
10134         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
10135         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
10136         DECL_COMMONS if flag_unconstrained_commons is set.
10137         * tree-dfa.c (get_ref_base_and_extent): Likewise.
10138         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
10139         (funconstrained-commons): Document.
10140
10141 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
10142
10143         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
10144         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
10145
10146 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
10147
10148         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
10149         has a proper number of elements.
10150
10151 2016-03-10  Alan Modra  <amodra@gmail.com>
10152
10153         PR rtl-optimization/69195
10154         PR rtl-optimization/47992
10155         * ira.c (recorded_label_ref): Delete.
10156         (update_equiv_regs): Return void.
10157         (indirect_jump_optimize): New function.
10158         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
10159         before regstat_compute_ri.  Don't rebuild_jump_labels here.
10160         Delete update_regstat.
10161
10162 2016-03-10  Richard Biener  <rguenther@suse.de>
10163
10164         PR tree-optimization/70128
10165         * tree-ssa-structalias.c (set_uids_in_ptset): Set
10166         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
10167
10168 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
10169
10170         PR tree-optimization/70152
10171         * tree-sra.c (replace_removed_params_ssa_names): Copy over
10172         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
10173
10174         PR target/70086
10175         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
10176         instead of gen_sse2_loadlpd.
10177         * config/i386/sse.md (*vec_concatv2df): Rename to...
10178         (vec_concatv2df): ... this.
10179
10180         PR tree-optimization/70127
10181         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
10182
10183 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
10184
10185         PR c/68473
10186         PR c++/70105
10187         * diagnostic-show-locus.c (compatible_locations_p): New function.
10188         (layout::layout): Sanitize ranges using compatible_locations_p.
10189
10190 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
10191
10192         PR c/68473
10193         PR c++/70105
10194         * diagnostic-show-locus.c (layout_range::layout_range): Replace
10195         location_range param with three const expanded_locations * and a
10196         bool.
10197         (layout::layout): Replace call to
10198         rich_location::lazily_expand_location with get_expanded_location.
10199         Extract the range and perform location expansion here, passing
10200         the results to the layout_range ctor.
10201         * diagnostic.c (source_range::debug): Delete.
10202         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
10203         of rich_location::get_expanded_location.
10204         * gcc-rich-location.c (get_range_for_expr): Delete.
10205         (gcc_rich_location::add_expr): Reimplement to avoid the
10206         rich_location::add_range overload that took a location_range,
10207         passing a location_t instead.
10208
10209 2016-03-09  Richard Biener  <rguenther@suse.de>
10210         Jakub Jelinek  <jakub@redhat.com>
10211
10212         PR tree-optimization/70138
10213         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
10214         Also skip vect_double_reduction_def.
10215
10216 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
10217
10218         PR target/70049
10219         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
10220         if the operand is "m".
10221
10222 2016-03-09  Nathan Sidwell  <nathan@acm.org>
10223
10224         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
10225
10226 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10227
10228         * config/i386/i386.c (processor_target_table): Fix cost table
10229         intialization order for znver1.
10230
10231 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
10232
10233         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
10234         - becuase -> because.
10235         * ipa-reference.c (ignore_module_statics): Likewise.
10236         * cgraph.c (cgraph_node::get_body): Likewise.
10237         * ipa-inline.c (early_inliner): Likewise.
10238         * ipa-devirt.c (types_same_for_odr): Likewise.
10239         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
10240         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
10241
10242 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10243
10244         * tree-ssa-math-opts.c: Fix typo in comment.
10245
10246 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
10247
10248         PR target/70110
10249         * config/i386/i386.c (scalar_chain::make_vector_copies,
10250         scalar_chain::convert_reg): Call end_sequence in between
10251         get_insns and emit_conversion_insns rather than after both
10252         calls.
10253
10254 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
10255
10256         PR target/70064
10257         * config/i386/i386.h (machine_function): Add
10258         pc_thunk_call_expanded flag.
10259         (ix86_pc_thunk_call_expanded): New define.
10260         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
10261         (*set_got): Rename insn pattern from set_got.
10262         (*set_got_labelled): Rename inst pattern from set_got_labelled.
10263         * config/i386/i386.c (ix86_compute_frame_layout): Use
10264         ix86_pc_thunk_call_expanded to prevent red-zone.
10265
10266 2016-03-07  Martin Jambor  <mjambor@suse.cz>
10267
10268         * hsa.h (hsa_get_ctor_statements): Declare.
10269         (hsa_get_dtor_statements): Likewise.
10270         (hsa_get_kernel_dispatch_type): Likewise.
10271         * hsa.c (hsa_get_ctor_statements): New function.
10272         (hsa_get_dtor_statements): Likewise.
10273         (hsa_get_kernel_dispatch_type): Likewise.
10274         * hsa-brig.c (hsa_cdtor_statements): Removed.
10275         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
10276         hsa_get_dtor_statements.
10277         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
10278         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
10279
10280 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10281
10282         * config/arm/arm-cores.def (cortex-r8): New.
10283         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
10284         * config/arm/arm-tune.md: Likewise.
10285         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
10286
10287 2016-03-07  Martin Sebor  <msebor@redhat.com>
10288
10289         PR rtl-optimization/19705
10290         * doc/invoke.texi (Options That Control Optimization): Clarify
10291         -fno-branch-count-reg.
10292
10293 2016-02-26  Richard Biener  <rguenther@suse.de>
10294             Jeff Law  <law@redhat.com>
10295
10296         PR tree-optimization/69740
10297         * cfghooks.c (remove_edge): Request loop fixups if we delete
10298         an edge that might turn an irreducible loop into a natural
10299         loop.
10300         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
10301         Move after definition of loops_state_clear.
10302
10303 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
10304
10305         PR rtl-optimization/69052
10306         * rtlanal.c (commutative_operand_precedence): Set higher precedence
10307         to CONST_WIDE_INT.
10308
10309 2016-03-07  Tom de Vries  <tom@codesourcery.com>
10310
10311         PR tree-optimization/70116
10312         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
10313         is_tm_ending stmts and ubsan/asan internal functions.
10314         (find_duplicate): Use it.  Don't test is_tm_ending here.
10315
10316 2016-03-07  Richard Biener  <rguenther@suse.de>
10317
10318         PR tree-optimization/70115
10319         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
10320         (propagate_constants_for_unrolling): Use replace_uses_by.
10321
10322 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
10323
10324         PR middle-end/69916
10325         * omp-low.c (struct oacc_loop): Add ifns.
10326         (new_oacc_loop_raw): Initialize it.
10327         (finish_oacc_loop): Clear mask & flags if no ifns.
10328         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
10329         (oacc_loop_xform_loop): Add ifns arg & adjust.
10330         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
10331
10332 2016-03-07  Richard Henderson  <rth@redhat.com>
10333
10334         PR rtl-opt/70061
10335         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
10336         (insert_value_copy_on_edge): Likewise.
10337
10338 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10339
10340         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
10341
10342 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10343
10344         PR target/62281
10345         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
10346
10347 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
10348
10349         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
10350
10351 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
10352
10353         Fix sseimul type attribute.
10354         * config/i386/znver1.md
10355         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
10356         znver1_sseimul_avx256_load) : Fix the type attribute.
10357         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
10358         pipe usage and latency.
10359
10360 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
10361
10362         PR c++/70084
10363         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
10364         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
10365         to the right type.
10366
10367 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
10368
10369         PR c/69973
10370         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
10371
10372         PR rtl-optimization/69941
10373         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
10374         the reg share its mode.
10375
10376 2016-03-04  Jeff Law  <law@redhat.com>
10377
10378         PR tree-optimization/69196
10379         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10380         If the both SSA_NAMEs are anonymous, then consider them unassociated
10381         and include the PHI in the statement count.
10382
10383 2016-03-05  Tom de Vries  <tom@codesourcery.com>
10384
10385         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
10386         construct in oacc routine.  Check for oacc region in oacc routine.
10387
10388 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
10389
10390         PR target/70062
10391         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
10392         2016-02-22 changes, instead don't recurse if RECUR is already true.
10393         Don't change *dynamic_check if RECUR.  Adjust recursive caller
10394         to pass true to the new argument.
10395         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
10396
10397         PR target/70059
10398         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
10399         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
10400         fixes.
10401         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
10402
10403 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
10404
10405         PR rtl-optimization/57676
10406         * lra-assigns.c (lra_assign): Guard test for maximum iterations
10407         with flag_checking.
10408
10409 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
10410
10411         * tree-vect-patterns.c (search_type_for_mask): Handle
10412         comparison of booleans.
10413
10414 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
10415
10416         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
10417         Fix @xref usage.
10418
10419         PR debug/69947
10420         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
10421         all other ops that have dw_val_class_die_ref operands,
10422         and DW_OP_GNU_entry_value.
10423
10424 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10425
10426         PR rtl-optimization/69904
10427         * config/arm/arm.c (arm_cannot_copy_insn_p):
10428         Return true for load-exclusive instructions.
10429
10430 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
10431
10432         PR target/70021
10433         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
10434         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
10435         the pattern no matter if it is used just by non-pattern, pattern
10436         or mix thereof.
10437         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
10438         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
10439         oprnd1 def_stmt is in pattern, don't look through it.
10440
10441 2016-03-03  Marek Polacek  <polacek@redhat.com>
10442
10443         PR middle-end/70050
10444         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
10445
10446 2016-03-03  Martin Liska  <mliska@suse.cz>
10447
10448         PR tree-optimization/70043
10449         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
10450         previous statement if we see a debug statement.
10451
10452 2016-03-03  Richard Biener  <rguenther@suse.de>
10453
10454         PR tree-optimization/55936
10455         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
10456         parameter and guard unsafe equivalence use.
10457         (vrp_evaluate_conditional_warnv_with_ops): Always use
10458         safe equivalences but not via the quadratic compare_names
10459         helper.
10460
10461 2016-03-03  Michael Collison  <michael.collison@linaro.org>
10462
10463         PR target/70014
10464         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
10465         for operand 1 to s_register_operand. Change predicate for operand
10466         2 to arm_not_immediate_operand.
10467
10468 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
10469
10470         * doc/tm.texi: Regenerated.
10471
10472 2016-03-02  Richard Henderson  <rth@redhat.com>
10473
10474         PR rtl-opt/67145
10475         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
10476         simplification when all args are positive non-fixed registers.
10477
10478 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10479
10480         * target.def (lra_p): Specify that new ports should use LRA.
10481
10482 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
10483
10484         PR libgomp/69555
10485         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
10486         gimplify_type_sizes the type they refer to.
10487         (omp_notice_variable): Handle reference vars to VLAs.
10488         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
10489         reference to VLA decls in the second pass instead of first pass.
10490
10491 2016-03-02  Tom de Vries  <tom@codesourcery.com>
10492
10493         PR tree-optimization/68659
10494         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
10495         new_expr == NULL_TREE.
10496         (get_new_name): Handle ADDR_EXPR.
10497
10498 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
10499
10500         PR rtl-optimization/69052
10501         * loop-invariant.c (canonicalize_address): New function.
10502         (inv_can_prop_to_addr_use): Check validity of address expression
10503         which is canonicalized by above function.
10504
10505 2016-03-02  Alan Modra  <amodra@gmail.com>
10506
10507         PR ipa/69990
10508         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
10509         larger alignment.
10510
10511 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
10512
10513         PR target/70028
10514         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
10515         (*movhi_internal): Put mask moves from and to memory separately
10516         from moves from/to GPRs.
10517
10518 2016-03-02  Richard Biener  <rguenther@suse.de>
10519
10520         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
10521         GENERIC expressions in GIMPLE.
10522
10523 2016-03-02  Richard Biener  <rguenther@suse.de>
10524
10525         * config/i386/i386.c (type_natural_mode): Fix typo.
10526
10527 2016-03-02  Nick Clifton  <nickc@redhat.com>
10528
10529         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
10530
10531 2016-03-02  Richard Biener  <rguenther@suse.de>
10532             Uros Bizjak  <ubizjak@gmail.com>
10533
10534         PR target/67278
10535         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
10536
10537 2016-03-02  Richard Biener  <rguenther@suse.de>
10538
10539         PR middle-end/67278
10540         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
10541
10542 2016-03-02  Marek Polacek  <polacek@redhat.com>
10543
10544         PR c/67854
10545         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
10546         "is promoted to" warning.
10547
10548 2016-03-01  DJ Delorie  <dj@redhat.com>
10549
10550         * config.gcc: Deprecate mep-*.
10551
10552 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
10553
10554         PR middle-end/70025
10555         * lra-constraints.c (regno_val_use_in): New.
10556         (match_reload): Use it instead of regno_use_in.
10557
10558 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
10559
10560         PR rtl-optimization/70007
10561         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
10562         references present in REG_EQUAL notes attached to non-SET patterns.
10563
10564 2016-03-01  Jeff Law  <law@redhat.com>
10565
10566         PR tree-optimization/69196
10567         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10568         Appropriately clamp the number of statements to copy when the
10569         thread path does not traverse a loop backedge.
10570
10571         PR tree-optimization/69196
10572         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10573         Do count some PHIs in the thread path against the insn count.  Decrease
10574         final statement count by one as the control statement in the last
10575         block will get removed.  Remove special cased code for handling PHIs
10576         in the last block.
10577
10578 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
10579
10580         PR target/70027
10581         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
10582         asm dialect alternatives to explicit GOTPCREL calls.
10583
10584 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
10585
10586         PR ada/70017
10587         * ira.c (do_reload): Issue warning for generic stack checking here...
10588         * reload1.c (reload): ...instead of here and streamline it.
10589
10590 2016-03-01  Nick Clifton  <nickc@redhat.com>
10591
10592         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
10593
10594 2016-03-01  Richard Biener  <rguenther@suse.de>
10595
10596         PR tree-optimization/69983
10597         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
10598         types and fall back to operand_equal_p.
10599
10600 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10601
10602         Revert
10603         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10604
10605         * config/s390/constraints.md ("jm8"): New constraint.
10606         * config/s390/predicates.md ("const_int_8bitset_operand"): New
10607         predicate.
10608         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
10609         into ...
10610         ("*setmem_long<setmem_and>"): New pattern.
10611         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
10612         into ...
10613         ("*setmem_long_31z<setmem_and>"): New pattern.
10614         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
10615         New substitution rules with the required attributes.
10616
10617
10618 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10619
10620         Revert
10621         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10622
10623         * gensupport.c (process_substs_on_one_elem): Split loop to
10624         complete mark_operands_used_in_match_dup on all expressions in the
10625         vector first.
10626         (adjust_operands_numbers): Inline into process_substs_on_one_elem
10627         and remove function.
10628
10629 2016-03-01  Richard Biener  <rguenther@suse.de>
10630
10631         PR middle-end/70022
10632         * fold-const.c (fold_indirect_ref_1): Fix range checking for
10633         vector BIT_FIELD_REF extract.
10634
10635 2016-03-01  Richard Biener  <rguenther@suse.de>
10636
10637         PR tree-optimization/69994
10638         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
10639
10640 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
10641
10642         PR tree-optimization/69956
10643         * tree-vect-stmts.c (supportable_widening_operation): Support
10644         multi-step conversion of boolean vectors.
10645         (supportable_narrowing_operation): Likewise.
10646
10647 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10648
10649         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
10650         anymore.
10651
10652 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10653
10654         * config/s390/subst.md (DSI_VI): New mode iterator.
10655         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
10656         * config/s390/vector.md ("vec_set<mode>"): Move expander before
10657         the insn definition.
10658         ("*vec_set<mode>"): Change predicate and add alternative to
10659         support only either register or const_int operands as element
10660         selector.
10661         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
10662         operands.
10663         ("vec_extract<mode>"): New expander.
10664         ("*vec_extract<mode>"): New insn definition supporting reg and
10665         const_int element selectors.
10666         ("*vec_extract<mode>_plus"): New insn definition supporting
10667         reg+const_int element selectors.
10668         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
10669         following expander+insn definition.
10670         ("<vec_shifts_name><mode>3"): New expander.
10671         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
10672
10673 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10674
10675         * config/s390/s390.md ("*tabort_1"): Change predicate to
10676         nonmemory_operand.  Add a second alternative to cover
10677         register as well as const int operands.
10678         ("*tabort_1_plus"): New pattern definition.
10679
10680 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10681
10682         * config/s390/s390.md ("*ashrdi3_cc_31")
10683         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
10684         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
10685         Merge insn definitions into ...
10686         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
10687         New pattern definition.
10688         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
10689         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
10690         ("*ashr<mode>3_and"): Merge insn definitions into ...
10691         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
10692         New pattern definition.
10693         * config/s390/subst.md ("addr_style_op_cc_subst")
10694         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
10695         substitutions patterns plus attributes.
10696         Add ashiftrt to SUBST iterator.
10697
10698 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10699
10700         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
10701         op2 to nonmemory_operand.
10702         ("*<shift>di3_31", "*<shift>di3_31_and"):
10703         Merge into single pattern definition ...
10704         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
10705         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
10706         pattern definition ...
10707         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
10708         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
10709         iterator.
10710
10711 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10712
10713         * config/s390/predicates.md (const_int_6bitset_operand): New
10714         predicate.
10715         * config/s390/s390.md: Include subst.md.
10716         ("rotl<mode>3"): New expander.
10717         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
10718         ...
10719         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
10720         * config/s390/subst.md: New file.
10721
10722 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10723
10724         * config/s390/s390.md ("op_type", "atype", "length" attributes):
10725         Remove RRR type.  It doesn't really exist.
10726         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
10727         attributes.
10728         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
10729         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
10730         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
10731         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
10732         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
10733         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
10734         `enabled' attribute.
10735
10736 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10737
10738         * gensupport.c (process_substs_on_one_elem): Split loop to
10739         complete mark_operands_used_in_match_dup on all expressions in the
10740         vector first.
10741         (adjust_operands_numbers): Inline into process_substs_on_one_elem
10742         and remove function.
10743
10744 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
10745
10746         PR target/69706
10747         * config/sparc/sparc.c (NWORDS_UP): Rename to...
10748         (CEIL_NWORDS): ...this.  Use CEIL macro.
10749         (compute_fp_layout): Adjust to above renaming.
10750         (function_arg_union_value): Likewise.
10751         (sparc_arg_partial_bytes): Likewise.
10752         (sparc_function_arg_advance): Likewise.
10753
10754 2016-02-29  Jeff Law  <law@redhat.com>
10755
10756         PR tree-optimization/70005
10757         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
10758         where an object with a boolean range is compared against a value
10759         outside [0..1].
10760
10761         PR tree-optimization/69999
10762         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
10763         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
10764         loop cleanups.
10765
10766 2016-02-29  Richard Biener  <rguenther@suse.de>
10767
10768         PR tree-optimization/69994
10769         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
10770         (get_unary_op): Look through nop conversions.
10771         (ops_equal_values_p): New function, look for equality diregarding
10772         nop conversions.
10773         (eliminate_plus_minus_pair): Use ops_equal_values_p
10774         (repropagate_negates): Do not use get_unary_op here.
10775
10776 2016-02-29  Martin Liska  <mliska@suse.cz>
10777
10778         * system.h: Poison ENABLE_CHECKING macro.
10779
10780 2016-02-29  Martin Liska  <mliska@suse.cz>
10781
10782         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
10783         is presented in dump flags.
10784         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
10785         (hsa_regalloc): Likewise.
10786
10787 2016-02-19  Richard Biener  <rguenther@suse.de>
10788
10789         PR tree-optimization/69980
10790         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
10791         permutation of those we need to keep.
10792
10793 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
10794
10795         PR target/69706
10796         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
10797         (NWORDS_UP): ...this
10798         (init_cumulative_args): Minor tweaks.
10799         (sparc_promote_function_mode): Likewise.
10800         (scan_record_type): Delete.
10801         (traverse_record_type): New function template.
10802         (classify_data_t): New structure type.
10803         (classify_registers): New inline function.
10804         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
10805         exhausted.  Instantiate traverse_record_type on classify_registers and
10806         deal with the case of a structure passed in slot #15 with no FP field
10807         in the first word.
10808         (assign_data_t): New structure type.
10809         (compute_int_layout): New static function.
10810         (compute_fp_layout): Likewise.
10811         (count_registers): New inline function.
10812         (assign_int_registers): New static function.
10813         (assign_fp_registers): Likewise.
10814         (assign_registers): New inline function.
10815         (function_arg_record_value_1): Delete.
10816         (function_arg_record_value_2): Likewise.
10817         (function_arg_record_value_3): Likewise.
10818         (function_arg_record_value): Adjust to above changes.  Instantiate
10819         traverse_record_type on count_registers to first count the number of
10820         registers to be used and then on assign_registers to assign them.
10821         (function_arg_union_value): Adjust to above renaming.
10822         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
10823         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
10824         case of a structure passed in slot #15
10825         (sparc_function_arg_advance): Likewise.
10826         (function_arg_padding): Minor tweak.
10827
10828 2016-02-29  Richard Biener  <rguenther@suse.de>
10829
10830         PR tree-optimization/69720
10831         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
10832         the adjustment_def path for possibly vectorized defs.
10833         (vect_create_epilog_for_reduction): Handle vectorized initial
10834         defs properly.
10835
10836 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
10837
10838         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
10839
10840 2016-02-27  Jeff Law  <law@redhat.com>
10841
10842         Revert
10843         2016-02-26  Richard Biener  <rguenther@suse.de>
10844                     Jeff Law  <law@redhat.com>
10845
10846         PR tree-optimization/69740
10847         * cfghooks.c (remove_edge): Request loop fixups if we delete
10848         an edge that might turn an irreducible loop into a natural
10849         loop.
10850
10851 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
10852
10853         PR rtl-optimization/69896
10854         * tree-vect-generic.c (get_compute_type): Avoid single element
10855         vector types.
10856
10857 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
10858
10859         Rename the AArch64 tuning option and related functions to enable the
10860         Newton series for the reciprocal square root to reflect its
10861         approximative characteristic.
10862
10863         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
10864         function to "aarch64_emit_approx_rsqrt".
10865         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
10866         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
10867         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
10868         (xgene1_tunings): Likewise.
10869         (use_rsqrt_p): Likewise.
10870         (aarch64_emit_swrsqrt): Use new function name.
10871         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
10872         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
10873         text explaining this option.
10874         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
10875
10876 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
10877
10878         PR target/69969
10879         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10880         complain about -mallow-movmisalign without -mvsx if
10881         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
10882
10883 2016-02-26  Joel Sherrill  <joel@rtems.org>
10884
10885         * config.gcc: Add x86_64-*-rtems*.
10886         * config/i386/rtems-64.h: New file.
10887
10888 2016-02-26  Joel Sherrill  <joel@rtems.org>
10889
10890         * config.gcc: Add aarch64-*-rtems*.
10891         * config/aarch64/rtems.h: New file.
10892
10893 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
10894
10895         PR target/69946
10896         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
10897         shift amount using %h.  Add comment.
10898
10899 2016-02-26  Richard Biener  <rguenther@suse.de>
10900             Jeff Law  <law@redhat.com>
10901
10902         PR tree-optimization/69740
10903         * cfghooks.c (remove_edge): Request loop fixups if we delete
10904         an edge that might turn an irreducible loop into a natural
10905         loop.
10906
10907 2016-02-26  Martin Jambor  <mjambor@suse.cz>
10908
10909         PR middle-end/69920
10910         * tree-sra.c (sra_modify_assign): Do not remove loads of
10911         uninitialized aggregates to SSA_NAMEs.
10912
10913 2016-02-26  Richard Henderson  <rth@redhat.com>
10914
10915         PR target/69709
10916         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
10917         pseudo in case the target rtx matches the source of the left
10918         shift.
10919
10920 2016-02-26  Martin Jambor  <mjambor@suse.cz>
10921
10922         PR hsa/69568
10923         * hsa.h (hsa_type_packed_p): Declare.
10924         * hsa.c (hsa_type_packed_p): New function.
10925         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
10926         loads.
10927         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
10928         * hsa-brig.c (emit_basic_insn): Likewise.
10929
10930 2016-02-26  Martin Jambor  <mjambor@suse.cz>
10931
10932         pr hsa/69674
10933         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
10934         pointers.
10935         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
10936
10937 2016-02-26  Martin Jambor  <mjambor@suse.cz>
10938
10939         * hsa.h (is_a_helper): New overload for hsa_op_immed for
10940         hsa_op_with_type operands.
10941         (hsa_unsigned_type_for_type): Declare.
10942         * hsa.c (hsa_unsigned_type_for_type): New function.
10943         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
10944         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
10945         the finalizer.  Do not emit extra move.
10946
10947 2016-02-26  Martin Jambor  <mjambor@suse.cz>
10948
10949         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
10950         atomic operations in private segment.
10951
10952 2016-02-26  Martin Jambor  <mjambor@suse.cz>
10953
10954         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
10955         statements to wi->info.  Also disallow omp simd constructs.
10956         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
10957         for not gridifying.  Dump special string for omp_for.
10958
10959 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10960
10961         PR target/69245
10962         * config/aarch64/aarch64.c (aarch64_set_current_function):
10963         Save/restore target globals when switching to
10964         target_option_default_node.
10965
10966 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10967
10968         PR target/69613
10969         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
10970         Return 0 if !SHIFT_COUNT_TRUNCATED.
10971
10972 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
10973             Eric Botcazou  <ebotcazou@adacore.com>
10974
10975         PR rtl-optimization/69891
10976         * dse.c (scan_insn): If we can't figure out memset arguments
10977         or they are non-constant, call clear_rhs_from_active_local_stores.
10978
10979 2016-02-26  Martin Liska  <mliska@suse.cz>
10980
10981         * doc/extend.texi: Mention clog10, clog10f an clog10l
10982         in Builtins section.
10983
10984 2016-02-26  Martin Liska  <mliska@suse.cz>
10985
10986         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
10987         CHECKING_P.
10988         (resolve_args_picking_1): Likewise.
10989         * dwarf2out.h (struct GTY): Likewise.
10990
10991 2016-02-26  Martin Liska  <mliska@suse.cz>
10992
10993         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
10994         with flag_checking.
10995         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
10996
10997 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
10998             Martin Liska  <mliska@suse.cz>
10999
11000         * doc/install.texi: Mention --enable-valgrind-annotations.
11001
11002 2016-02-26  Richard Biener  <rguenther@suse.de>
11003
11004         PR tree-optimization/69551
11005         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
11006         looking through aliases adjust DECL_PT_UID to refer to the
11007         ultimate alias target.
11008
11009 2016-02-25  Martin Liska  <mliska@suse.cz>
11010
11011         PR middle-end/69919
11012         * alloc-pool.c (after_memory_report): New variable.
11013         * alloc-pool.h (base_pool_allocator ::release): Do not use
11014         the infrastructure if after_memory_report.
11015         * toplev.c (toplev::main): Mark after memory report.
11016
11017 2016-02-25  Richard Biener  <rguenther@suse.de>
11018
11019         PR tree-optimization/48795
11020         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
11021
11022 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
11023
11024         PR driver/68463
11025         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
11026         offloading is enabled and -fopenacc or -fopenmp is specified.
11027         (CRTOFFLOADEND): Likewise.
11028         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
11029         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
11030         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
11031         (offload_objects_file_name): New static var.
11032         (tool_cleanup): Remove offload_objects_file_name file.
11033         (find_offloadbeginend): Replace with ...
11034         (find_crtoffloadtable): ... this.
11035         (run_gcc): Remove offload_argc and offload_argv.
11036         Get offload_objects_file_name from -foffload-objects=... option.
11037         Read names of object files with offload from this file, pass them to
11038         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
11039         don't pass offloadbegin and offloadend to the linker.  Don't pass
11040         offload non-LTO files to the linker, because now they're not claimed.
11041
11042 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
11043
11044         PR ipa/69630
11045         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
11046         on builtin_unreachable.
11047
11048 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
11049
11050         PR rtl-optimization/69896
11051         * regcprop.c: Include cfgrtl.h.
11052         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
11053         than remembered mode, either delete it (if noop_move_p), or
11054         treat like copy_p but not noop_p instruction.
11055
11056 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11057
11058         PR debug/69705
11059         * dwarf2out.c (gen_variable_die): Work around buggy LTO
11060         - allow NULL decl for Fortran DW_TAG_common_block variables.
11061
11062 2016-02-24  Jason Merrill  <jason@redhat.com>
11063
11064         * common.opt (flifetime-dse): Add -flifetime-dse=1.
11065
11066 2016-02-24  Richard Biener  <rguenther@suse.de>
11067             Jakub Jelinek  <jakub@redhat.com>
11068
11069         PR middle-end/69760
11070         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
11071         conditionally executed ops to well-defined overflow behavior.
11072
11073 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11074
11075         PR middle-end/69915
11076         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
11077         elements.
11078
11079 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11080
11081         PR rtl-optimization/69886
11082         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
11083         argument.  Use it when checking validity of set instructions.
11084         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
11085         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
11086         callsite.
11087         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
11088         * store-motion.c (find_moveable_store): Update
11089         can_assign_to_reg_without_clobbers_p callsite.
11090
11091 2016-02-24  Richard Biener  <rguenther@suse.de>
11092
11093         PR middle-end/68963
11094         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
11095         bogus check.
11096         (record_nonwrapping_iv): Do not fall back to the low/high bound
11097         for non-constant IV bases if the stmt is not always executed.
11098
11099 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11100
11101         * config/arm/arm-cores.def (cortex-a32): New entry.
11102         * config/arm/arm-tables.opt: Regenerate.
11103         * config/arm/arm-tune.md: Regenerate.
11104         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
11105         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
11106         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
11107         for -mcpu and -mtune.
11108
11109 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11110
11111         PR target/69875
11112         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
11113         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
11114         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
11115         (atomic_loaddi_1): Delete.
11116         (atomic_loaddi): Rewrite expander using the above changes.
11117
11118 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11119
11120         PR c/69918
11121         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
11122         2 to 3.
11123
11124 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
11125             Richard Biener  <rguenth@suse.de>
11126
11127         PR middle-end/69909
11128         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
11129         set_mem_attributes if tem is SSA_NAME which got expanded
11130         as a MEM.
11131
11132 2016-02-24  Richard Biener  <rguenther@suse.de>
11133
11134         PR tree-optimization/69907
11135         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
11136         end of permutations for BB vectorization.
11137
11138 2016-02-24  Christian Bruel  <christian.bruel@st.com>
11139
11140         * config/arm/arm-c.c (arm_option_override): Initialize
11141         target_option_current_node.
11142         * config/arm/arm.c (arm_pragma_target_parse): Replace
11143         build_target_option_node call by target_option_current_node.
11144         Set target_option_current_node.
11145         Fix comments.
11146
11147 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
11148
11149         PR target/69810
11150         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
11151         define_insn_and_split to define_insn.
11152         (zero_extendqi<mode>2_dot2): Same.
11153         (extendqi<mode>2_dot): Same.
11154         (extendqi<mode>2_dot2): Same.
11155
11156 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
11157
11158         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
11159         and add bypass for AES{D,E} and AESMC pairs.
11160         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
11161         and AESMC pairs.
11162
11163 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
11164
11165         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
11166         series for reciprocal square root in Exynos M1.
11167
11168 2016-02-23  Martin Sebor  <msebor@redhat.com>
11169
11170         PR c/69759
11171         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
11172         __builtin_alloca_with_align.
11173
11174 2016-02-23  Richard Henderson  <rth@redhat.com>
11175
11176         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
11177         (ix86_register_pragmas): Remove __seg_tls.
11178         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
11179         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
11180         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
11181         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
11182         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
11183         * doc/extend.texi (__seg_tls): Remove item.
11184
11185 2016-02-23  Richard Biener  <rguenther@suse.de>
11186
11187         * alloc-pool.h (struct allocation_object): Make id member
11188         conditional on CHECKING_P again.
11189         (get_instance): Adjust.
11190         (base_pool_allocator): Likewise.
11191
11192 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
11193
11194         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
11195         (parallelize_loops): In OpenACC kernels mode, set n_threads to
11196         zero.
11197         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
11198         flag_openacc.
11199         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
11200
11201 2016-02-23  Richard Biener  <rguenther@suse.de>
11202
11203         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
11204         * bitmap.h (struct bitmap_usage): Likewise.
11205         (bitmap_move): Declare.
11206         * bitmap.c (register_overhead): Take size_t argument.
11207         (bitmap_move): New function.
11208         * df-problems.c (df_rd_transfer_function): Use bitmap_move
11209         to properly account overhead.
11210         * tree.c (free_node): Use tree_size.
11211
11212 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
11213
11214         PR c++/69902
11215         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
11216         when inverting comparison.
11217
11218         PR c/69900
11219         * common.opt (Wunreachable-code): Add Warning flag.
11220
11221 2016-02-23  Mark Wielaard  <mjw@redhat.com>
11222             Jakub Jelinek  <jakub@redhat.com>
11223
11224         PR c/69911
11225         * cgraphunit.c (check_global_declaration): Check main_input_filename
11226         and DECL_SOURCE_FILE are not NULL.
11227
11228 2016-02-23  Martin Jambor  <mjambor@suse.cz>
11229
11230         PR tree-optimization/69666
11231         * tree-sra.c (sra_modify_assign): Do not attempt to create
11232         default_def replacements for unscalarizable regions.
11233
11234 2016-02-20  Mark Wielaard  <mjw@redhat.com>
11235
11236         PR c/28901
11237         * cgraphunit.c (check_global_declaration): Check level of
11238         warn_unused_const_variable and main_input_filename.
11239         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
11240         (-Wunused-variable): For C implies -Wunused-const-variable=1.
11241         (-Wunused-const-variable): Explain levels 1 and 2.
11242
11243 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
11244
11245         PR target/69888
11246         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
11247         identical arguments.  Formatting and spelling fixes.
11248
11249         PR target/69885
11250         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
11251         be specified.
11252
11253         PR target/69894
11254         PR target/69895
11255         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
11256         and m68k-devices.def.
11257         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
11258         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
11259
11260 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
11261
11262         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
11263         and HImode registers.
11264
11265 2016-02-22  Richard Biener  <rguenther@suse.de>
11266
11267         PR tree-optimization/69882
11268         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
11269         preserve permutations present because of gaps.
11270         (vect_supported_load_permutation_p): Always continue checking
11271         permutations after vect_attempt_slp_rearrange_stmts.
11272
11273 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
11274
11275         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
11276         min_profitable_estimate, rather than min_profitable_iters.
11277
11278 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
11279
11280         PR target/69885
11281         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
11282         SImode for last match_operand.
11283
11284 2016-02-22  Martin Liska  <mliska@suse.cz>
11285
11286         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
11287         return bitsize - 1 as the return value.
11288
11289 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
11290
11291         PR target/69806
11292         PR target/54089
11293         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
11294         Handle negative shift counts.
11295         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
11296         force_reg on the shift constant.
11297         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
11298         (lshrsi3_d): Handle negative shift counts.
11299
11300 2016-02-22  Richard Biener  <rguenther@suse.de>
11301             Tom de Vries  <tom@codesourcery.com>
11302
11303         * graph.c: Include dumpfile.h.
11304         (print_graph_cfg): Split into three overloads.
11305         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
11306
11307 2016-02-22  Tom de Vries  <tom@codesourcery.com>
11308
11309         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
11310         dump-fn.
11311
11312 2016-02-22  Richard Biener  <rguenther@suse.de>
11313
11314         PR ipa/37448
11315         * ipa-inline-transform.c (inline_call): When not updating
11316         overall summaries adjust self size by the growth estimate.
11317         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
11318         hash-set, do not update overall summaries here.  Renamed from ...
11319         (inline_to_all_callers): ... this which is now wrapping the
11320         above and performing delayed overall summary update.
11321         (early_inline_small_functions): Delay updating of the overall
11322         summary.
11323
11324 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
11325
11326         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
11327         variable.
11328
11329 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
11330
11331         PR driver/69805
11332         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
11333         :%* in %:gt() argument.
11334         (greater_than_spec_func): Adjust for expecting only numbers,
11335         if there are more than two numbers, compare the last two.
11336
11337 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
11338
11339         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
11340         -Wnarrowing with -std.
11341
11342 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
11343
11344         PR c++/69851
11345         * expr.c (store_field): Don't use bit-field path if exp is
11346         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
11347         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
11348         and the assignment can be performed by bitwise copy.  Formatting
11349         fix.
11350
11351         PR middle-end/69838
11352         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
11353         call copy_reg_eh_region_note_forward on before and/or after sequences
11354         and remove note from insn if it no longer can throw.
11355
11356         PR target/69820
11357         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
11358         if TARGET_AVX512BW.
11359
11360 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11361
11362         * config/s390/vector.md: Add missing commutative operand markers
11363         to the patterns which qualify for one.
11364         * config/s390/vx-builtins.md: Likewise.
11365
11366 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11367
11368         * config/s390/vector.md (VI, VI_QHS): Add single element vector
11369         types to mode iterators.
11370         (vec_double): ... and mode attribute.
11371         * config/s390/vx-builtins.md (non_vec_int): Likewise.
11372
11373 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11374
11375         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
11376         Change the predicate of op2 from nonimmediate to general and let
11377         reload fix it if necessary.
11378
11379 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11380
11381         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
11382
11383 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11384
11385         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
11386         mode.
11387
11388 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11389
11390         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
11391         * config/s390/s390.c (s390_expand_vec_movstr): New function.
11392         * config/s390/s390.md ("movstr<P:mode>"): Call
11393         s390_expand_vec_movstr.
11394
11395 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11396
11397         * config/s390/s390.md: Add missing output modifier for operand 1
11398         to print it as address properly.
11399
11400 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11401
11402         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
11403         * config/s390/2964.md: New file.
11404         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
11405         of insn grouping attributes depending on the CPU level.
11406         (s390_get_unit_mask): New function.
11407         (s390_sched_score): Remove the OOO from the scheduling macros.
11408         Add loop to calculate a score for the instruction mix.
11409         (s390_sched_reorder): Likewise plus improve debug output.
11410         (s390_sched_variable_issue): Rename macros as above.  Calculate
11411         the unit distances after actually scheduling an insn.  Improve
11412         debug output.
11413         (s390_sched_init): Clear last_scheduled_unit_distance array.
11414         * config/s390/s390.md: Include 2964.md.
11415
11416 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
11417
11418         PR target/69671
11419         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
11420         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
11421         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
11422         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
11423         *avx512f_<code>v8div16qi2_mask_1): New insns.
11424
11425 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
11426
11427         PR target/68404
11428         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
11429         2016-02-09 change.
11430
11431         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
11432         earlyclobber from target.  Use wF constraint for fused memory
11433         address.
11434         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
11435
11436 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
11437             Martin Liska  <mliska@suse.cz>
11438
11439         PR sanitizer/69863
11440         * cfgexpand.c (asan_sanitize_stack_p): New function.
11441         (partition_stack_vars): Use the function.
11442         (expand_stack_vars): Likewise.
11443         (defer_stack_allocation): Likewise.
11444         (expand_used_vars): Likewise.
11445
11446 2016-02-18  Richard Biener  <rguenther@suse.de>
11447
11448         PR middle-end/69553
11449         * fold-const.c (operand_equal_p): Properly compare offsets for
11450         IMAGPART_EXPR and ARRAY_REF.
11451
11452 2016-02-18  Nick Clifton  <nickc@redhat.com>
11453
11454         PR target/62254
11455         PR target/69610
11456         * config/arm/arm.c (arm_option_override_internal): Disable
11457         interworking if the target does not support thumb instructions.
11458         (arm_reload_in_hi): Handle the case where a register to register
11459         move needs reloading because there is no simple pattern to handle
11460         it.
11461         (arm_reload_out_hi): Likewise.
11462
11463 2016-02-18  Richard Biener  <rguenther@suse.de>
11464
11465         PR middle-end/69854
11466         * match.pd: Don't use fold_binary or fold_unary for folding
11467         constants.
11468
11469 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
11470
11471         PR c++/69850
11472         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
11473         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
11474         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
11475         warn on gimple_no_warning_p statements.
11476
11477 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
11478
11479         * doc/extend.texi (C++ Attributes): Correct description of
11480         warn_unused type attribute.
11481
11482 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11483
11484         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
11485         correct instruction.
11486
11487 2016-02-17  Richard Biener  <rguenther@suse.de>
11488
11489         PR rtl-optimization/69609
11490         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
11491         (find_traces_1_round): When ending a trace update cached priority
11492         of successors.
11493         (bb_to_key): Use cached priority when available.
11494         (copy_bb): Initialize cached priority.
11495         (reorder_basic_blocks_software_trace_cache): Likewise.
11496
11497 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11498
11499         PR target/69161
11500         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
11501         New predicate.
11502         (aarch64_comparison_operator): Break overly long line into two.
11503         (aarch64_comparison_operation): Likewise.
11504         * config/aarch64/aarch64.md (cstorecc4): Use
11505         aarch64_comparison_operator_mode instead of
11506         aarch64_comparison_operator.
11507         (cstore<mode>4): Likewise.
11508         (aarch64_cstore<mode>): Likewise.
11509         (*cstoresi_insn_uxtw): Likewise.
11510         (cstore<mode>_neg): Likewise.
11511         (*cstoresi_neg_uxtw): Likewise.
11512
11513 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11514
11515         PR target/69161
11516         * config/arm/predicates.md (arm_comparison_operator_mode):
11517         New predicate.
11518         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
11519         instead of arm_comparison_operator.
11520         (*mov_negscc): Likewise.
11521         (*mov_notscc): Likewise.
11522         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
11523         (*thumb2_mov_negscc): Likewise.
11524         (*thumb2_mov_negscc_strict_it): Likewise.
11525         (*thumb2_mov_notscc): Likewise.
11526         (*thumb2_mov_notscc_strict_it): Likewise.
11527
11528 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
11529
11530         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
11531         Add missing return.
11532
11533 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
11534
11535         * config/visium/visium.c (machine_libfunc_index): New enum.
11536         (machine_libfuncs): New structure.
11537         (visium_libfuncs): New static variable.
11538         (TARGET_INIT_LIBFUNCS): Define to...
11539         (visium_init_libfuncs): ...this.  New function.
11540         (expand_block_move_4): Use the appropriate libfunc.
11541         (expand_block_move_2): Likewise.
11542         (expand_block_move_1): Likewise.
11543         (expand_block_set_4): Likewise.
11544         (expand_block_set_2): Likewise.
11545         (expand_block_set_1): Likewise.
11546         (visium_trampoline_init): Likewise.
11547
11548 2016-02-17  Nick Clifton  <nickc@redhat.com>
11549
11550         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
11551         TI's devices.csv file as of March 2016.
11552
11553 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11554
11555         PR Target/48344
11556         * opts-global.c (handle_common_deferred_options): Introduce and
11557         initialize two global variables to remember command-line options
11558         specifying a stack-limiting register.
11559         * opts.h: Add extern declarations of the two new global variables.
11560         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
11561         variable based on the values of the two new global variables.
11562
11563 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
11564
11565         PR c/69835
11566         * common.opt (Wnonnull-compare): New warning.
11567         * doc/invoke.texi (-Wnonnull): Remove text about comparison
11568         of arguments against NULL.
11569         (-Wnonnull-compare): Document.
11570         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
11571         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
11572         * passes.def (pass_warn_nonnull_compare): Add.
11573         * gimple-ssa-nonnull-compare.c: New file.
11574
11575 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
11576
11577         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
11578         AARCH64_EXTRA_TUNE_RECIP_SQRT.
11579
11580 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
11581
11582         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
11583         reciprocal sqrt for -mlow-precision-recip-sqrt.
11584
11585 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
11586             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11587
11588         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
11589         always use lane loads to construct non-constant vectors.
11590
11591 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
11592
11593         * config/aarch64/aarch64.md
11594         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
11595         constraints for operand 3.
11596         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
11597
11598 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
11599             Richard Biener  <rguenther@suse.de>
11600
11601         PR tree-optimization/69820
11602         * tree-vect-patterns.c (type_conversion_p): Return false if
11603         *orig_type is unsigned single precision or boolean.
11604         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
11605         Formatting fix.
11606
11607 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
11608
11609         PR rtl-optimization/69764
11610         PR rtl-optimization/69771
11611         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
11612         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
11613
11614 2016-02-16  Richard Biener  <rguenther@suse.de>
11615
11616         PR tree-optimization/69776
11617         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
11618         sets from caller.
11619         (indirect_refs_may_alias_p): Likewise.
11620         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
11621         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
11622         according to tbaa_p.
11623         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
11624         (optimize_stmt): For redundant store discovery do not allow tbaa.
11625
11626 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
11627
11628         PR tree-optimization/69714
11629         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
11630         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
11631
11632 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
11633
11634         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
11635         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
11636         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
11637         * config/arc/arc.c (arc_init): Check FPU options.
11638         (get_arc_condition_code): Handle new CC_FPU* modes.
11639         (arc_select_cc_mode): Likewise.
11640         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
11641         register pair only. Allow access for ARCv2 accumulator.
11642         (gen_compare_reg): Whenever we have FPU support use FPU compare
11643         instructions.
11644         (arc_reorg): Don't generate brcc insns when FPU compare
11645         instructions are involved.
11646         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
11647         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
11648         floating point emulation.
11649         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
11650         (REVERSE_CONDITION): Add new CC_FPU* modes.
11651         (TARGET_FP_SP_BASE): Define.
11652         (TARGET_FP_DP_BASE): Likewise.
11653         (TARGET_FP_SP_FUSED): Likewise.
11654         (TARGET_FP_DP_FUSED): Likewise.
11655         (TARGET_FP_SP_CONV): Likewise.
11656         (TARGET_FP_DP_CONV): Likewise.
11657         (TARGET_FP_SP_SQRT): Likewise.
11658         (TARGET_FP_DP_SQRT): Likewise.
11659         (TARGET_FP_DP_AX): Likewise.
11660         * config/arc/arc.md (ARCV2_ACC): New constant.
11661         (type): New fpu type attribute.
11662         (SDF): Conditional iterator.
11663         (cstore<mode>, cbranch<mode>): Change expand condition.
11664         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
11665         handles FPU/FPX cases as well.
11666         * config/arc/arc.opt (mfpu): New option.
11667         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
11668         Renamed.
11669         (adddf3, muldf3, subdf3): Removed.
11670         * config/arc/predicates.md (proper_comparison_operator): Recognize
11671         CC_FPU* modes.
11672         * config/arc/fpu.md: New file.
11673         * doc/invoke.texi (ARC Options): Document mfpu option.
11674
11675 2016-02-16  Richard Biener  <rguenther@suse.de>
11676
11677         PR rtl-optimization/69291
11678         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
11679         noce_operand_ok check.
11680
11681 2016-02-16  Tom de Vries  <tom@codesourcery.com>
11682
11683         PR lto/67709
11684         * omp-low.c (simd_clone_create): Remove call to
11685         symtab->call_cgraph_insertion_hooks.
11686
11687 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
11688
11689         PR tree-optimization/69802
11690         * tree-ssa-reassoc.c (update_range_test): If op is
11691         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
11692         op == 1 test of precision 1 integral op, otherwise handle
11693         that case as op itself.  Fix up formatting.
11694         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
11695         up formatting.
11696
11697 2016-02-16  Richard Biener  <rguenther@suse.de>
11698
11699         PR tree-optimization/69586
11700         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
11701         types for conversion sources.
11702
11703 2016-02-16  Richard Biener  <rguenther@suse.de>
11704
11705         PR middle-end/69801
11706         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
11707         mask OEP_ADDRESS_OF.
11708
11709 2016-02-16  Alan Modra  <amodra@gmail.com>
11710
11711         PR target/68973
11712         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
11713         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
11714         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
11715         (p8_mtvsrwz): New.
11716         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
11717         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
11718         (p8_fmrgow_<mode>): Likewise.
11719         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
11720         changes.
11721         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
11722         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
11723         to use movdi_internal64.  Remove op0_di.
11724         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
11725
11726 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
11727
11728         Add support for the FCCMP insn types
11729
11730         * config/aarch64/aarch64.md (fccmp): Change insn type.
11731         (fccmpe): Likewise.
11732         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
11733         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
11734         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
11735         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
11736         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
11737         * config/arm/types.md (fccmps): Add new insn type.
11738         (fccmpd): Likewise.
11739
11740 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11741
11742         * alias.c (get_alias_set): Fix a typo in comment.
11743
11744 2016-02-15  Richard Biener  <rguenther@suse.de>
11745
11746         PR tree-optimization/69595
11747         * match.pd: Complete range test simplification to true.
11748
11749 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
11750
11751         PR rtl-optimization/69648
11752         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
11753         pic_offset_table_rtx.
11754
11755         PR rtl-optimization/69752
11756         * ira.c (update_equiv_regs): When looking for more than a single SET,
11757         also take other side effects into account.
11758
11759 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
11760
11761         * config/s390/s390.c (s390_function_profiler): Add a new sequence
11762         for z900+ CPUs in 31-bit mode.
11763
11764 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
11765
11766         * common/config/s390/s390-common.c (s390_supports_split_stack):
11767         New function.
11768         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
11769         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
11770         * config/s390/s390.c (struct machine_function): New field
11771         split_stack_varargs_pointer.
11772         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
11773         in s390_emit_prologue.
11774         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
11775         vararg pointer.
11776         (morestack_ref): New global.
11777         (SPLIT_STACK_AVAILABLE): New macro.
11778         (s390_expand_split_stack_prologue): New function.
11779         (s390_live_on_entry): New function.
11780         (s390_va_start): Use split-stack vararg pointer if appropriate.
11781         (s390_asm_file_end): Emit the split-stack note sections.
11782         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
11783         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
11784         (UNSPECV_SPLIT_STACK_CALL): New unspec.
11785         (UNSPECV_SPLIT_STACK_DATA): New unspec.
11786         (split_stack_prologue): New expand.
11787         (split_stack_space_check): New expand.
11788         (split_stack_data): New insn.
11789         (split_stack_call): New expand.
11790         (split_stack_call_*): New insn.
11791         (split_stack_cond_call): New expand.
11792         (split_stack_cond_call_*): New insn.
11793
11794 2016-02-15  Richard Biener  <rguenther@suse.de>
11795
11796         PR tree-optimization/69783
11797         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
11798         Add trivially correct cases.
11799
11800 2016-02-15  Tom de Vries  <tom@codesourcery.com>
11801
11802         PR lto/69655
11803         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
11804         do_force_output.
11805         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
11806
11807 2016-02-15  Richard Biener  <rguenther@suse.de>
11808
11809         PR tree-optimization/69776
11810         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
11811         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
11812         indicate whether we can use TBAA to disambiguate against stores.
11813         Use alias-set zero if not.
11814         (visit_reference_op_store): Do not use TBAA when looking up
11815         redundant stores.
11816         * tree-ssa-pre.c (compute_avail): Use TBAA here.
11817         (eliminate_dom_walker::before_dom_children): But not when looking
11818         up redundant stores.
11819
11820 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
11821
11822         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
11823
11824 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11825
11826         *  config/i386/znver1.md
11827         (znver1_pop, znver1_pop_mem,
11828         znver1_load_imov_double_store,
11829         znver1_load_imov_direct_store,
11830         znver1_load_imov_direct_load,
11831         znver1_load_imov_double_load): Add new.
11832         (znver1_insn, znver1_insn_load): Add icmov type.
11833         (znver1_sseavx_fma,
11834         znver1_sseavx_fma_load,
11835         znver1_avx256_fma,
11836         znver1_avx256_fma_load): Fix pipe usage.
11837
11838 2016-02-14  Alan Modra  <amodra@gmail.com>
11839
11840         PR target/68973
11841         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
11842         with an invalid hard reg, reload just the reg not the entire
11843         pre/post-inc/dec address expression.
11844
11845 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
11846
11847         PR target/67260
11848         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
11849         fixed R1_REG scratch reg.
11850         (sibcall_value_pcrel_fdpic): Likewise.
11851
11852 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
11853
11854         PR target/67636
11855         PR target/64345
11856         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
11857
11858 2016-02-12  Walter Lee  <walt@tilera.com>
11859
11860         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
11861         * config/tilegx/t-tilegx: Likewise.
11862
11863 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
11864
11865         PR other/69554
11866         * diagnostic-show-locus.c (struct line_span): New struct.
11867         (layout::get_first_line): Delete.
11868         (layout::get_last_line): Delete.
11869         (layout::get_num_line_spans): New member function.
11870         (layout::get_line_span): Likewise.
11871         (layout::print_heading_for_line_span_index_p): Likewise.
11872         (layout::get_expanded_location): Likewise.
11873         (layout::calculate_line_spans): Likewise.
11874         (layout::m_first_line): Delete.
11875         (layout::m_last_line): Delete.
11876         (layout::m_line_spans): New field.
11877         (layout::layout): Update comment.  Replace m_first_line and
11878         m_last_line with m_line_spans, replacing their initialization
11879         with a call to calculate_line_spans.
11880         (diagnostic_show_locus): When printing source lines and
11881         annotations, rather than looping over a single span
11882         of lines, instead loop over each line_span within
11883         the layout, with an inner loop over the lines within them.
11884         Call the context's start_span callback when changing line spans.
11885         * diagnostic.c (diagnostic_initialize): Initialize start_span.
11886         (diagnostic_build_prefix): Break out the building of the location
11887         part of the string into...
11888         (diagnostic_get_location_text): ...this new function, rewriting
11889         it from nested ternary expressions to a sequence of "if"
11890         statements.
11891         (default_diagnostic_start_span_fn): New function.
11892         * diagnostic.h (diagnostic_start_span_fn): New typedef.
11893         (diagnostic_context::start_span): New field.
11894         (default_diagnostic_start_span_fn): New prototype.
11895
11896 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
11897
11898         PR driver/69779
11899         * gcc.c (driver::finalize): Fix cleanup of "specs".
11900
11901 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
11902
11903         PR driver/69265
11904         PR driver/69453
11905         * gcc.c (driver::driver): Initialize m_option_suggestions.
11906         (driver::~driver): Clean up m_option_suggestions.
11907         (suggest_option): Convert to...
11908         (driver::suggest_option): ...this, and split out into
11909         driver::build_option_suggestions and find_closest_string.
11910         (driver::build_option_suggestions): New function, from
11911         first half of suggest_option.  Special-case
11912         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
11913         the sanitizer_opts array.  For options of enum types, add the
11914         various enum values to the candidate strings.
11915         (driver::handle_unrecognized_options): Remove "const".
11916         * gcc.h (driver::handle_unrecognized_options): Likewise.
11917         (driver::build_option_suggestions): New decl.
11918         (driver::suggest_option): New decl.
11919         (driver::m_option_suggestions): New field.
11920         * opts-common.c (add_misspelling_candidates): New function.
11921         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
11922         and make non-static.
11923         * opts.h (sanitizer_opts): New array decl.
11924         (add_misspelling_candidates): New function decl.
11925         * spellcheck.c (find_closest_string): New function.
11926         * spellcheck.h (find_closest_string): New function decl.
11927
11928 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
11929
11930         PR rtl-optimization/69764
11931         PR rtl-optimization/69771
11932         * optabs.c (expand_binop_directly): For shift_optab_p, force
11933         convert_modes with VOIDmode if xop1 has VOIDmode.
11934
11935 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
11936
11937         PR target/69729
11938         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
11939         to correctly determine instrumentation thunks.
11940
11941 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
11942
11943         PR ipa/69241
11944         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
11945         type by reference, force lhs on the call.
11946
11947         PR ipa/68672
11948         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
11949         Compute retval and retbnd early in all cases if split_part_return_p
11950         and return_bb is not EXIT.  Remove all clobber stmts and reset
11951         all debug stmts that refer to SSA_NAMEs defined in split part,
11952         except if it is retval, in that case replace the old retval with the
11953         lhs of the call to the split part.
11954
11955 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
11956
11957         revert:
11958         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
11959
11960         PR middle-end/66726
11961         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
11962         whose result is used in PHI.
11963         (maybe_optimize_range_tests): Likewise.
11964         (final_range_test_p): Likweise.
11965
11966 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
11967
11968         PR middle-end/66726
11969         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
11970         whose result is used in PHI.
11971         (maybe_optimize_range_tests): Likewise.
11972         (final_range_test_p): Likweise.
11973
11974 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
11975
11976         * cgraph.c: Spelling fixes - behaviour -> behavior and
11977         neighbour -> neighbor.
11978         * target.def: Likewise.
11979         * sel-sched.c: Likewise.
11980         * config/mips/mips.c: Likewise.
11981         * config/arc/arc.md: Likewise.
11982         * config/arm/cortex-a57.md: Likewise.
11983         * config/arm/arm.c: Likewise.
11984         * config/arm/neon.md: Likewise.
11985         * config/arm/arm-c.c: Likewise.
11986         * config/vms/vms-c.c: Likewise.
11987         * config/s390/s390.c: Likewise.
11988         * config/i386/znver1.md: Likewise.
11989         * config/i386/i386.c: Likewise.
11990         * config/ia64/hpux-unix2003.h: Likewise.
11991         * config/msp430/msp430.md: Likewise.
11992         * config/rx/rx.c: Likewise.
11993         * config/rx/rx.md: Likewise.
11994         * config/aarch64/aarch64-simd.md: Likewise.
11995         * config/aarch64/aarch64.c: Likewise.
11996         * config/nvptx/nvptx.c: Likewise.
11997         * config/bfin/bfin.c: Likewise.
11998         * config/cris/cris.opt: Likewise.
11999         * config/rs6000/rs6000.c: Likewise.
12000         * target.h: Likewise.
12001         * spellcheck.c: Likewise.
12002         * ira-build.c: Likewise.
12003         * tree-inline.c: Likewise.
12004         * builtins.c: Likewise.
12005         * lra-constraints.c: Likewise.
12006         * explow.c: Likewise.
12007         * hwint.h: Likewise.
12008         * targhooks.c: Likewise.
12009         * tree-vect-data-refs.c: Likewise.
12010         * expr.c: Likewise.
12011         * doc/tm.texi: Likewise.
12012         * doc/extend.texi: Likewise.
12013         * doc/install.texi: Likewise.
12014         * doc/md.texi: Likewise.
12015         * tree-ssa-tail-merge.c: Likewise.
12016         * sched-int.h: Likewise.
12017         * match.pd: Likewise.
12018         * sched-ebb.c: Likewise.
12019         * target.def (omit_struct_return_reg): Likewise.
12020         * gimple-ssa-isolate-paths.c: Likewise.
12021         (find_implicit_erroneous_behaviour): Renamed to...
12022         (find_implicit_erroneous_behavior): ... this.
12023         (find_explicit_erroneous_behaviour): Renamed to...
12024         (find_explicit_erroneous_behavior): ... this.
12025         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
12026
12027 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
12028
12029         PR rtl-optimization/64682
12030         PR rtl-optimization/69567
12031         PR rtl-optimization/69737
12032         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
12033         in I2 as well, just lose it.
12034
12035 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12036
12037         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
12038         New variable.
12039         (aarch64_last_printed_tune_string): Likewise.
12040         (aarch64_declare_function_name): Only output .arch assembler
12041         directive if it will be different from the previously output
12042         directive.  Same for .tune comment but only if -dA is set.
12043         (aarch64_start_file): New function.
12044         (TARGET_ASM_FILE_START): Define.
12045
12046 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
12047
12048         PR plugins/69758
12049         * Makefile.in (PLUGIN_HEADERS): Add params.list.
12050
12051 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
12052
12053         PR target/65313
12054         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
12055         -Wmaybe-uninitialized warning.
12056
12057 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
12058
12059         PR target/69713
12060         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
12061
12062 2016-02-11  Richard Biener  <rguenther@suse.de>
12063
12064         PR rtl-optimization/69291
12065         * ifcvt.c (noce_try_store_flag_constants): Do not allow
12066         subexpressions affected by changing the result.
12067
12068 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
12069
12070         PR target/69148
12071         * lra-constraints.c (curr_insn_transform): Find in/out operands
12072         for secondary memory moves.  Update dups.
12073
12074 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
12075
12076         PR tree-optimization/69652
12077         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
12078         to nested loop, did source re-formatting, skip debug statements,
12079         add check on statement with volatile operand, remove dead scalar
12080         statements.
12081
12082 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
12083             Patrick Palka  <ppalka@gcc.gnu.org>
12084
12085         PR ipa/69241
12086         PR c++/69649
12087         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
12088         calls if the return type is TREE_ADDRESSABLE.
12089         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
12090         * ipa-split.c (split_function): Fix doubled "we" in comment.
12091         Use void return type for the split part even if
12092         !split_point->split_part_set_retval.
12093
12094 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
12095
12096         PR tree-optimization/68021
12097         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
12098         when computing the value of biv cand by itself.
12099
12100 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
12101
12102         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
12103         (cortexa57_tunings): Likewise.
12104         (cortexa72_tunings): Likewise.
12105         (arch_macro_fusion_pair_p): Add support for AES fusion.
12106         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
12107         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
12108         Allow virtual registers before reload so early scheduling works.
12109         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
12110         correct latency and pipeline.
12111         (cortex_a57_crypto_complex): Likewise.
12112         (cortex_a57_crypto_xor): Likewise.
12113         (define_bypass): Add AES bypass.
12114
12115 2016-02-10  Richard Biener  <rguenther@suse.de>
12116
12117         PR tree-optimization/69726
12118         * passes.def: Add DCE pass before late uninit.
12119         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
12120         really fixup if-conversions job.
12121
12122 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
12123
12124         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
12125         (arm_cortex_a57_tune): Likewise.
12126         (aarch_macro_fusion_pair_p): Add support for AES fusion.
12127         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
12128
12129 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
12130
12131         * timevar.def (TV_PHASE_DBGINFO): Delete.
12132         (TV_PHASE_CHECK_DBGINFO): Likewise.
12133         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
12134
12135 2016-02-10  Richard Biener  <rguenther@suse.de>
12136
12137         PR tree-optimization/69719
12138         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12139         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
12140
12141 2016-02-09  Andrew Pinski  <apinski@cavium.com>
12142
12143         PR tree-opt/69282
12144         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
12145         get_vcond_mask_icode returns false.
12146
12147 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
12148
12149         PR target/68404
12150         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
12151         an ADDIS that adds a pointer to a large constant that sets the
12152         upper16 bits with a load operation.
12153
12154 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
12155
12156         PR target/68532
12157         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
12158         order.
12159         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
12160         endian.
12161         (vzipq_s16): Likewise.
12162         (vzipq_s32): Likewise.
12163         (vzipq_f32): Likewise.
12164         (vzipq_u8): Likewise.
12165         (vzipq_u16): Likewise.
12166         (vzipq_u32): Likewise.
12167         (vzipq_p8): Likewise.
12168         (vzipq_p16): Likewise.
12169
12170 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
12171
12172         PR target/68532
12173         * config/arm/arm.c (neon_endian_lane_map): New function.
12174         (neon_vector_pair_endian_lane_map): New function.
12175         (arm_evpc_neon_vuzp): Allow for big endian lane order.
12176         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
12177         endian.
12178         (vuzpq_s16): Likewise.
12179         (vuzpq_s32): Likewise.
12180         (vuzpq_f32): Likewise.
12181         (vuzpq_u8): Likewise.
12182         (vuzpq_u16): Likewise.
12183         (vuzpq_u32): Likewise.
12184         (vuzpq_p8): Likewise.
12185         (vuzpq_p16): Likewise.
12186
12187 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
12188
12189         PR target/69634
12190         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
12191         debug insns.
12192
12193 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
12194
12195         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
12196         truncate const_int operand 1 to QImode.
12197
12198 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
12199
12200         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
12201         corresponding to an abnormal edge.
12202
12203 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12204
12205         PR tree-optimization/69599
12206         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
12207         function.
12208         (find_func_aliases_for_builtin_call, find_func_clobbers)
12209         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
12210         partition.
12211
12212 2016-02-09  Richard Biener  <rguenther@suse.de>
12213
12214         PR tree-optimization/69715
12215         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
12216         LHS on calls as non-rewritable.
12217
12218 2016-02-09  Tom de Vries  <tom@codesourcery.com>
12219
12220         PR lto/69707
12221         * lto-wrapper.c (append_diag_options): New function.
12222         (compile_offload_image): Call append_diag_options.
12223
12224 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
12225
12226         PR other/69722
12227         * doc/extend.texi (Flag Output Operands): Correct sectioning.
12228         Minor copy-edit to fix verb tenses.
12229
12230 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
12231
12232         PR tree-optimization/69209
12233         * ipa-split.c (split_function): If split part is not
12234         returning retval, retval has gimple type but is not
12235         gimple value, force it into a SSA_NAME first.
12236
12237 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
12238
12239         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
12240         outdated section.
12241
12242 2016-02-08  Jason Merrill  <jason@redhat.com>
12243
12244         PR c++/69631
12245         * convert.c (convert_to_integer_1): Check dofold on truncation
12246         distribution.
12247         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
12248         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
12249         Rename from *_nofold.
12250         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
12251         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
12252
12253 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
12254
12255         PR target/60410
12256         * tree.c (build_common_tree_nodes): Remove short_double argument.
12257         All callers changed.
12258         * tree.h (build_common_tree_nodes): Adjust declaration.
12259         * doc/invoke.texi (-fshort-double): Remove documentation.
12260         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12261         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
12262         * lto-wrapper.c (merge_and_complain, append_compiler_options)
12263         (append_linker_options): Don't handle OPT_fshort_double.
12264
12265         PR rtl-optimization/68730
12266         * lra-remat.c (insn_to_cand_activation): New static variable.
12267         (lra_remat): Allocate and free it.
12268         (create_cand): New arg activation. Initialize a field in
12269         insn_to_cand_activation if it is nonnull.
12270         (create_cands): Pass the activation insn to create_cand when making
12271         a candidate involving an output reload.  Reorganize code a little.
12272         (do_remat): Keep track of active status of candidates in a separate
12273         bitmap.
12274
12275 2016-02-08  Richard Biener  <rguenther@suse.de>
12276
12277         PR tree-optimization/69719
12278         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12279         Properly use absolute of the difference of the two offsets to
12280         compare or adjust the segment length.
12281
12282 2016-02-08  Richard Biener  <rguenther@suse.de>
12283             Jeff Law  <law@redhat.com>
12284
12285         PR target/68273
12286         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
12287         types for anonymous SSA names.
12288
12289 2016-02-08   Richard Biener  <rguenther@suse.de>
12290
12291         PR rtl-optimization/69274
12292         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
12293
12294 2016-02-08  Jeff Law  <law@redhat.com>
12295
12296         PR tree-optimization/65917
12297         * tree-ssa-dom.c (record_temporary_equivalences): Record both
12298         equivalences from if (x == y) style conditionals.
12299         (loop_depth_of_name): Remove.
12300         (record_equality): Remove loop depth check.
12301         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
12302         (const_and_copies::record_const_or_copy_raw): New member function.
12303         * tree-ssa-scopedtables.c
12304         (const_and_copies::record_const_or_copy_raw): New, factored out of
12305         (const_and_copies::record_const_or_copy): Call new member function.
12306
12307 2016-02-05  Jeff Law  <law@redhat.com>
12308
12309         PR tree-optimization/68541
12310         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
12311         (count_stmts_in_block): New function.
12312         (poor_ifcvt_candidate_code): Likewise.
12313         (is_feasible_trace): Add some heuristics to determine when path
12314         splitting is profitable.
12315         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
12316         is a diamond with a single exit.
12317
12318 2016-02-05  Martin Sebor  <msebor@redhat.com>
12319
12320         PR c++/69662
12321         * doc/invoke.texi: Update -Wplacement-new to take an optional
12322         argument.
12323
12324 2016-02-06  Richard Henderson  <rth@redhat.com>
12325
12326         PR c/69643
12327         * tree.c (tree_nop_conversion_p): Do not strip casts into or
12328         out of non-standard address spaces.
12329
12330 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
12331
12332         PR rtl-optimization/69691
12333         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
12334
12335 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
12336
12337         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
12338         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
12339         (*ieee128_mfvsrd_64bit): Likewise.
12340         (*ieee128_mfvsrd_32bit): Likewise.
12341
12342 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
12343
12344         PR target/69369
12345         Revert r232560:
12346         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
12347
12348         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
12349         instrumented_version.
12350
12351 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
12352
12353         * doc/invoke.texi (Optimize Options): In table of --param options
12354         rename second occurrence of tracer-min-branch-ratio to
12355         tracer-min-branch-probability, rename
12356         tracer-min-branch-ratio-feedback to
12357         tracer-min-branch-probability-feedback and clarify description,
12358         rename sched-spec-state-edge-prob-cutoff to
12359         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
12360         to selsched-insns-to-rename, rename lto-minpartition to
12361         lto-min-partition, delete reorder-blocks-duplicate and
12362         reorder-blocks-duplicate-feedback.
12363
12364 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12365
12366         * config/s390/s390.c (s390_register_info_set_ranges): Remove
12367         superfluous loops.
12368
12369 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12370
12371         * doc/extend.texi: S/390: Correct some typos.
12372
12373 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12374
12375         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
12376
12377 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12378
12379         PR target/69625
12380         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
12381         (s390_register_info_gprtofpr): Use new macros above.
12382         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
12383         its name.
12384         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
12385         its name.  Adjust restore and save gpr ranges.
12386         (s390_register_info_set_ranges): New function.
12387         (s390_register_info): Use new macros above.  Call
12388         s390_register_info_set_ranges.
12389         (s390_optimize_register_info): Likewise.
12390         (s390_hard_regno_rename_ok): Use new macros.
12391         (s390_hard_regno_scratch_ok): Likewise.
12392         (s390_emit_epilogue): Likewise.
12393         (s390_can_use_return_insn): Likewise.
12394         (s390_optimize_prologue): Likewise.
12395         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
12396
12397 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
12398
12399         PR bootstrap/69677
12400         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
12401         alignment fixes.
12402         (ix86_option_override_internal): Disable TARGET_STV even for
12403         -m{incoming,preferred}-stack-boundary=3.
12404
12405 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12406
12407         * config.gcc: Mark deprecated rtems targets as obsolete.
12408
12409 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
12410
12411         PR rtl-optimization/64682
12412         PR rtl-optimization/69567
12413         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
12414         before I2 only if the register is both used and set in I2.
12415
12416 2016-02-04  DJ Delorie  <dj@redhat.com>
12417
12418         * config/msp430/msp430.c (msp430_start_function): Add function type.
12419
12420 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
12421
12422         PR fortran/69368
12423         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
12424
12425 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
12426
12427         PR rtl-optimization/69577
12428         Revert:
12429         2015-10-29  Richard Henderson  <rth@redhat.com>
12430
12431         PR target/68124
12432         PR rtl-opt/67609
12433         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
12434         sse check to the exact conditions of PR 67609.
12435
12436 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
12437
12438         PR target/69667
12439         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
12440         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
12441         not allowed into the traditional Altivec registers.
12442         (movtd_64bit_nodm): Likewise.
12443         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
12444
12445 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
12446
12447         * config/aarch64/cortex-a57-fma-steering.c
12448         (aarch64_register_fma_steering): Remove "static" from arguments
12449         to register_pass.
12450
12451 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
12452
12453         PR target/69619
12454         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
12455         twice when complex.
12456
12457 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
12458
12459         * doc/invoke.texi: Delete -mno-fma4.
12460
12461 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
12462
12463         PR rtl-optimization/69577
12464         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
12465         (find_subregs_of_mode): Update accordingly.  Iterate over partial
12466         definitions.
12467
12468 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
12469
12470         * config/arm/arm-protos.h (neon_reinterpret): Remove.
12471         * config/arm/arm.c (neon_reinterpret): Remove.
12472         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
12473         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
12474         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
12475         vreinterpretti): Remove.
12476         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
12477         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
12478         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
12479         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
12480         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
12481         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
12482         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
12483         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
12484         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
12485         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
12486         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
12487         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
12488         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
12489         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
12490         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
12491         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
12492         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
12493         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
12494         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
12495         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
12496         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
12497         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
12498         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
12499         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
12500         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
12501         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
12502         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
12503         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
12504         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
12505         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
12506         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
12507         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
12508         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
12509         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
12510         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
12511         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
12512         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
12513         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
12514         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
12515         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
12516         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
12517         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
12518         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
12519         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
12520         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
12521         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
12522         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
12523         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
12524         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
12525         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
12526         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
12527         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
12528         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
12529         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
12530         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
12531         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
12532         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
12533         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
12534         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
12535         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
12536         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
12537         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
12538         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
12539         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
12540         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
12541         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
12542         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
12543         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
12544         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
12545         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
12546         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
12547         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
12548         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
12549         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
12550         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
12551         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
12552         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
12553         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
12554         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
12555         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
12556         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
12557         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
12558         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
12559         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
12560         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
12561         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
12562         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
12563         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
12564         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
12565         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
12566         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
12567         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
12568         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
12569         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
12570         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
12571         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
12572         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
12573         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
12574         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
12575         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
12576         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
12577         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
12578         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
12579
12580 2016-02-04  Martin Liska  <mliska@suse.cz>
12581
12582         PR sanitizer/69276
12583         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
12584         that are gimple_store_p.
12585         (maybe_instrument_call): Likewise.
12586
12587 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
12588
12589         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
12590         register scaling out of memory reference and comment why.
12591
12592 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12593
12594         PR target/65932
12595         PR target/67714
12596         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
12597         folding the source of a SET.
12598
12599 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12600
12601         PR target/65932
12602         PR target/67714
12603         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
12604         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
12605
12606 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
12607
12608         PR target/65932
12609         PR target/67714
12610         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
12611         HImode.
12612
12613 2016-02-04  Christian Bruel  <christian.bruel@st.com>
12614
12615         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
12616         * config/arm/arm.c (arm_set_current_function): Likewise.
12617
12618 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
12619             Ilya Enkovich  <enkovich.gnu@gmail.com>
12620             H.J. Lu  <hongjiu.lu@intel.com>
12621
12622         PR target/69454
12623         * config/i386/i386.c (convert_scalars_to_vector): Remove
12624         stack alignment fixes.
12625         (ix86_option_override_internal): Disable TARGET_STV if stack
12626         might not be aligned enough.
12627         (ix86_minimum_alignment): Assert that TARGET_STV is false.
12628
12629 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
12630
12631         * config/i386/x86-tune.def: Disable default prefetching
12632         for -march=znver1.
12633
12634 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12635             Vladimir Makarov  <vmakarov@redhat.com>
12636
12637         PR target/69461
12638         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
12639         in validating fused toc addresses.
12640
12641 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
12642
12643         PR c/69627
12644         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
12645         range->m_caret fields if range->m_show_caret_p is false.
12646
12647         PR target/69644
12648         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
12649         Force oldval into register if it does not satisfy reg_or_short_operand
12650         predicate.  Fix up formatting.
12651
12652 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
12653             Alexandre Oliva  <aoliva@redhat.com>
12654
12655         PR target/69461
12656         * lra-constraints.c (simplify_operand_subreg): Check additionally
12657         address validity after potential reloading.
12658         (process_address_1): Check insns validity.  In case of failure do
12659         nothing.
12660
12661 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
12662
12663         PR target/69118
12664         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
12665         Fix target.
12666
12667 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
12668
12669         * wide-int.cc (canonize_uhwi): New function.
12670         (wi::divmod_internal): Use it.
12671
12672 2016-02-02  James Norris  <jnorris@codesourcery.com
12673
12674         * gimplify.c (omp_notice_variable): Add usage check.
12675
12676 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
12677
12678         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
12679         like LE, GE, LT, GT when emitting relational operator.
12680
12681 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
12682
12683         * ira-costs.c (find_costs_and_classes): Add extra argument.
12684         * target.def (ira_change_pseudo_allocno_class): Add parameter.
12685         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
12686         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
12687         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
12688         Add best_class parameter, and return it if not ALL_REGS.
12689         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
12690         Add parameter.
12691         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
12692         Update target hook.
12693
12694 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
12695
12696         * config/aarch64/aarch64.c
12697         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
12698         (aarch64_ira_change_pseudo_allocno_class): New function.
12699
12700 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
12701
12702         PR target/67032
12703         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
12704
12705 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12706
12707         * config/avr/avr.c (avr_option_override): Set
12708         PARAM_ALLOW_STORE_DATA_RACES to 1.
12709
12710 2016-02-02  Richard Biener  <rguenther@suse.de>
12711
12712         PR tree-optimization/69595
12713         * match.pd: Add range test simplifications to true/false.
12714
12715 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
12716
12717         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
12718         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
12719         instead.
12720
12721 2016-02-02  Richard Biener  <rguenther@suse.de>
12722
12723         PR tree-optimization/69606
12724         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
12725         info on the result before moving a stmt.
12726
12727 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
12728
12729         PR middle-end/68542
12730         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
12731         branch with vector comparison.
12732         * config/i386/sse.md (VI48_AVX): New mode iterator.
12733         (define_expand "cbranch<mode>4): Add support for conditional branch
12734         with vector comparison.
12735         * tree-vect-loop.c (optimize_mask_stores): New function.
12736         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
12737         has_mask_store field of vect_info.
12738         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
12739         vectorized loops having masked stores after vec_info destroy.
12740         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
12741         correspondent macros.
12742         (optimize_mask_stores): Add prototype.
12743
12744 2016-02-02  Alan Modra  <amodra@gmail.com>
12745
12746         PR target/69548
12747         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
12748         allow subregs.
12749
12750 2016-02-02  Alan Modra  <amodra@gmail.com>
12751
12752         PR target/68662
12753         * config/rs6000/rs6000.c (need_toc_init): New var, set it
12754         whenever toc_label_name used.
12755         (rs6000_file_start): Don't set up toc section here,
12756         (rs6000_output_function_epilogue): do so here instead,
12757         (rs6000_xcoff_file_start): and here.
12758         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
12759         (load_toc_aix_di): Likewise.
12760
12761 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
12762
12763         PR rtl-optimization/69592
12764         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
12765         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
12766         (num_sign_bit_copies_binary_arith_p): New inline function.
12767         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
12768
12769 2016-02-01  Jeff Law  <law@redhat.com>
12770
12771         PR tree-optimization/69580
12772         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
12773         * tree-ssa-threadbackward.c
12774         (fsm_find_control_statement_thread_paths): Do not try to walk
12775         through large PHI nodes.
12776
12777 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
12778
12779         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
12780         when count is incremented above limit, don't analyze further
12781         insns afterwards.
12782
12783         * omp-low.c (oacc_parse_default_dims): Avoid
12784         -Wsign-compare warning, make sure value fits into int
12785         rather than just unsigned int.
12786
12787 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
12788
12789         PR tree-optimization/67921
12790         * fold-const.c (split_tree): New parameters.  Convert pointer
12791         type variable part to proper type before negating.
12792         (fold_binary_loc): Pass new arguments to split_tree.
12793
12794 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
12795
12796         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
12797         (nvptx_goacc_validate_dims): Extend to handle global defaults.
12798         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
12799         * doc/tm.texti: Rebuilt.
12800         * doc/invoke.texi (fopenacc-dim): Document.
12801         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
12802         (append_compiler_options): Likewise.
12803         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
12804         (oacc_parse_default_dims): New.
12805         (oacc_validate_dims): Add USED arg.  Select non-unity default when
12806         possible.
12807         (oacc_loop_fixed_partitions): Return mask of used partitions.
12808         (oacc_loop_auto_partitions): Emit dump info.
12809         (oacc_loop_partition): Return mask of used partitions.
12810         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
12811         loop partitioning and validation calls.
12812
12813 2016-02-01  Richard Biener  <rguenther@suse.de>
12814
12815         PR middle-end/69556
12816         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
12817
12818 2016-02-01  Richard Biener  <rguenther@suse.de>
12819
12820         PR tree-optimization/69574
12821         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
12822         of asserting return chrec_dont_know.
12823
12824 2016-02-01  Martin Liska  <mliska@suse.cz>
12825
12826         * mem-stats-traits.h: Add copyright header.
12827         * mem-stats.h: Likewise.
12828
12829 2016-02-01  Richard Biener  <rguenther@suse.de>
12830
12831         PR tree-optimization/69579
12832         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
12833         Do not propagate through abnormal PHI results.
12834
12835 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
12836
12837         * postreload.c (reload_cse_simplify): Remove dead code.
12838
12839 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
12840
12841         PR rtl-optimization/69570
12842         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
12843         if there is more than one set, not if there is a single set.
12844
12845 2016-02-01  Richard Henderson  <rth@redhat.com>
12846
12847         PR rtl-opt/69535
12848         * combine.c (make_compound_operation): When looking through a
12849         subreg, make sure to re-extend to the width of the outer mode.
12850
12851 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
12852
12853         PR tree-optimization/69546
12854         * wide-int.cc (wi::divmod_internal): For unsigned division
12855         where both operands fit into uhwi, if o1 is 1 and o0 has
12856         msb set, if divident_prec is larger than bits per hwi,
12857         clear another quotient word and return 2 instead of 1.
12858         Similarly for remainder with msb in HWI set, if dividend_prec
12859         is larger than bits per hwi.
12860
12861 2016-01-29  Martin Jambor  <mjambor@suse.cz>
12862
12863         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
12864         Use short lowercase names.
12865         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
12866         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
12867         acq_rel one.  Protect warning agains segfaults if
12868         get_memory_order_name returns NULL.
12869         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
12870         with release semantics.  Do not warn if get_memory_order already did.
12871         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
12872         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
12873         if get_memory_order already did.
12874
12875 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
12876
12877         * doc/install.texi: Document that isl-0.16 is supported.
12878
12879 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
12880
12881         PR target/69299
12882         * config/i386/constraints.md (Bm): Describe as special memory
12883         constraint.
12884         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
12885         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
12886         * genpreds.c (struct constraint_data): Add is_special_memory.
12887         (have_special_memory_constraints, special_memory_start): New
12888         static vars.
12889         (special_memory_end): Ditto.
12890         (add_constraint): Add new arg is_special_memory.  Add code to
12891         process its true value.  Update have_special_memory_constraints.
12892         (process_define_constraint): Pass the new arg.
12893         (process_define_register_constraint): Ditto.
12894         (choose_enum_order): Process special memory.
12895         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
12896         function insn_extra_special_memory_constraint.
12897         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
12898         * gensupport.c (process_rtx): Process
12899         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
12900         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
12901         * ira-lives.c (single_reg_class): Use
12902         insn_extra_special_memory_constraint.
12903         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
12904         * lra-constraints.c (process_alt_operands): Ditto.
12905         (curr_insn_transform): Use insn_extra_special_memory_constraint.
12906         * recog.c (asm_operand_ok, preprocess_constraints): Process
12907         CT_SPECIAL_MEMORY.
12908         * reload.c (find_reloads): Ditto.
12909         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
12910         * stmt.c (parse_input_constraint): Use
12911         insn_extra_special_memory_constraint.
12912
12913 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
12914
12915         PR target/69530
12916         * lra-splill.c (lra_final_code_change): Revert r229087 by
12917         removing all sub-registers.
12918
12919 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
12920
12921         PR target/65604
12922         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
12923
12924 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
12925
12926         PR target/69551
12927         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
12928         SSE1, copy target into the temporary reg first before recursing
12929         on it.
12930
12931 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
12932
12933         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
12934         with vm.
12935
12936 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
12937
12938         * ginclude/stdarg.h: Test __cplusplus instead of
12939         __GXX_EXPERIMENTAL_CXX0X__.
12940
12941 2016-01-29  Richard Biener  <rguenther@suse.de>
12942
12943         PR tree-optimization/69547
12944         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
12945         Do not mark clobbers necessary.
12946         (mark_all_reaching_defs_necessary_1): Likewise.
12947
12948 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12949
12950         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
12951         declaration name with %qs and print it in both error messages.
12952         Also fix indentation.
12953
12954 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12955
12956         PR other/69006
12957         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
12958         trailing blank line from error message.
12959
12960 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
12961
12962         PR c++/69462
12963         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
12964         for C++-11.
12965
12966 2016-01-29  Richard Biener  <rguenther@suse.de>
12967
12968         PR middle-end/69537
12969         * match.pd: Allow all integral types when simplifying a
12970         widening or sign-changing conversion.
12971
12972 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
12973
12974         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
12975         back to setting codegen_error to fail codegen.
12976
12977 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
12978
12979         PR target/69459
12980         * config/i386/constraints.md (C): Only accept constant zero operand.
12981         (BC): New constraint.
12982         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
12983         instead of C constraint.
12984         * doc/md.texi (Machine Constraints): Update description
12985         of C constraint.
12986
12987 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
12988
12989         PR target/68400
12990         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
12991
12992 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
12993
12994         PR middle-end/69542
12995         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
12996         non-debug insns.
12997
12998 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
12999
13000         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
13001         branches if using guessed profile.
13002
13003 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
13004
13005         * graphite-optimize-isl.c (optimize_isl): Fix dump.
13006
13007 2016-01-28  Richard Henderson  <rth@redhat.com>
13008
13009         PR target/69305
13010         * config/aarch64/aarch64-modes.def (CC_Cmode): New
13011         * config/aarch64/aarch64-protos.h: Update.
13012         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
13013         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
13014         (aarch64_get_condition_code_1): Handle CC_Cmode.
13015         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
13016         (*add<mode>3_compareC_cconly_imm): New.
13017         (*add<mode>3_compareC_cconly): New.
13018         (*add<mode>3_compareC_imm): New.
13019         (add<mode>3_compareC): New.
13020         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
13021         to be first.  Use aarch64_carry_operation.
13022         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
13023         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
13024         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
13025         (subti3): Use subdi3_compare1.
13026         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
13027         (sub<mode>3_compare1): New.
13028         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
13029         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
13030         (*subsi3_carryin_uxtw): Likewise.
13031         (*ngc<mode>, *ngcsi_uxtw): Likewise.
13032         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
13033         * config/aarch64/iterators.md (DWI): New.
13034         * config/aarch64/predicates.md (aarch64_carry_operation): New.
13035         (aarch64_borrow_operation): New.
13036
13037 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
13038
13039         * graphite-optimize-isl.c (optimize_isl): Print a different debug
13040         message when isl does not return a valid schedule.
13041
13042 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13043
13044         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
13045         Remove comments from class declarations: they are already in the code
13046         close by the defs.
13047
13048 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13049
13050         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
13051         codegen_error_p.
13052         (ternary_op_to_tree): Same.
13053         (unary_op_to_tree): Same.
13054         (nary_op_to_tree): Same.
13055         (gcc_expression_from_isl_expr_op): Same.
13056         (gcc_expression_from_isl_expression): Same.
13057         (graphite_create_new_loop): Same.
13058         (graphite_create_new_loop_guard): Same.
13059         (build_iv_mapping): Same.
13060         (graphite_create_new_guard): Same.
13061         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
13062         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
13063
13064 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
13065
13066         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
13067         instead of setting codegen_error to fail codegen.
13068
13069 2016-01-28  Jason Merrill  <jason@redhat.com>
13070
13071         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
13072
13073 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
13074
13075         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
13076         Remove CONST_INT_P check in CCMP cost calculation.
13077
13078 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
13079
13080         * config/aarch64/aarch64.c (generic_vector_cost):
13081         Set vec_permute_cost.
13082         (cortexa57_vector_cost): Likewise.
13083         (exynosm1_vector_cost): Likewise.
13084         (xgene1_vector_cost): Likewise.
13085         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
13086         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
13087         Add vec_permute_cost entry.
13088
13089 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
13090
13091         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
13092         immediate as %1.
13093         (add<mode>3_compare0): Likewise.
13094         (addsi3_compare0_uxtw): Likewise.
13095         (add<mode>3nr_compare0): Likewise.
13096         (compare_neg<mode>): Likewise.
13097         (<optab><mode>3): Likewise.
13098
13099 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
13100
13101         * tree-vect-stmts.c (vectorizable_comparison): Add
13102         NULL check for vectype.
13103
13104 2016-01-28  Richard Biener  <rguenther@suse.de>
13105
13106         PR tree-optimization/69466
13107         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
13108         Account for PHIs we couldn't duplicate.
13109
13110 2016-01-28  Martin Liska  <mliska@suse.cz>
13111
13112         PR pch/68758
13113         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
13114         instead of ENABLE_VALGRIND_CHECKING.
13115
13116 2016-01-27  Richard Henderson  <rth@redhat.com>
13117
13118         PR rtl-opt/69447
13119         * lra-remat.c (subreg_regs): New.
13120         (dump_candidates_and_remat_bb_data): Dump it.
13121         (operand_to_remat): Reject if operand in subreg_regs.
13122         (set_bb_regs): Collect subreg_regs.
13123         (lra_remat): Init and free subreg_regs.  Compute
13124         calculate_local_reg_remat_bb_data before create_cands.
13125
13126 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
13127
13128         PR target/68986
13129         * config/i386/i386.c (ix86_update_stack_boundary): Don't
13130         change stack_alignment_needed for __tls_get_addr call.
13131
13132 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
13133
13134         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
13135
13136 2016-01-27  Jeff Law  <law@redhat.com>
13137
13138         PR tree-optimization/68398
13139         PR tree-optimization/69196
13140         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
13141         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
13142         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13143         Only count PHIs in the last block in the path.  The others will
13144         const/copy propagate away.  Add heuristic to allow more irreducible
13145         subloops to be created when it is likely profitable to do so.
13146
13147         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13148         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
13149         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
13150
13151 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
13152
13153         PR lto/69254
13154         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
13155         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
13156         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
13157         * tree-streamer-in.c: Include asan.h.
13158         (streamer_get_builtin_tree): For builtins in sanitizer
13159         range call initialize_sanitizer_builtins and retry.
13160
13161 2016-01-27  Ian Lance Taylor  <iant@google.com>
13162
13163         * common.opt (fkeep-gc-roots-live): New undocumented option.
13164         * tree-ssa-loop-ivopts.c (add_candidate_1): If
13165         -fkeep-gc-roots-live, skip pointers.
13166         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
13167         NULL.
13168
13169 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
13170
13171         PR target/69512
13172         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
13173         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
13174
13175 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
13176
13177         PR target/68380
13178         * configure.ac: NetBSD provides SSP in its C library.
13179         * configure: Updated.
13180
13181 2016-01-27  Richard Biener  <rguenther@suse.de>
13182
13183         PR tree-optimization/69166
13184         * tree-vect-loop.c (vect_is_simple_reduction): Always check
13185         reduction code for commutativity / associativity.
13186
13187 2016-01-27  Martin Jambor  <mjambor@suse.cz>
13188
13189         PR tree-optimization/69355
13190         * tree-sra.c (analyze_access_subtree): Correct hole detection when
13191         total_scalarization fails.
13192
13193 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
13194
13195         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
13196         power9.
13197
13198 2016-01-27  Christian Bruel  <christian.bruel@st.com>
13199
13200         PR target/69245
13201         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
13202         Move arm_reset_previous_fndecl and set_target_option_current_node in
13203         the conditional part.  Call save_restore_target_globals.
13204         * config/arm/arm.c (arm_set_current_function):
13205         Refactor to better support #pragma target and attribute mix.
13206         Call save_restore_target_globals.
13207         * config/arm/arm-protos.h (save_restore_target_globals): New function.
13208
13209 2016-01-27  Martin Liska  <mliska@suse.cz>
13210
13211         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
13212         reference for an HSA kernel and its host function.
13213
13214 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
13215
13216         PR tree-optimization/69399
13217         * wide-int.h (wi::lrshift): For larger precisions, only
13218         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
13219
13220 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
13221
13222         * config/arc/predicates.md (proper_comparison_operator): Reject
13223         constant-constant comparison.
13224
13225 2016-01-26  Tom de Vries  <tom@codesourcery.com>
13226
13227         PR tree-optimization/69110
13228         * tree-data-ref.c (initialize_data_dependence_relation): Handle
13229         DR_NUM_DIMENSIONS == 0.
13230
13231 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
13232             Sebastian Pop  <s.pop@samsung.com>
13233
13234         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
13235         isl_ast_op_cond and isl_ast_op_select.
13236         (gcc_expression_from_isl_expr_op): Same.
13237
13238 2016-01-26  Jason Merrill  <jason@redhat.com>
13239
13240         PR c++/68782
13241         * tree.c (recompute_constructor_flags): Split out from
13242         build_constructor.
13243         (verify_constructor_flags): New.
13244         * tree.h: Declare them.
13245
13246 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
13247
13248         PR rtl-optimization/69217
13249         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
13250         are no TYPE_FIELDS set for the record type.
13251
13252 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13253
13254         PR target/68662
13255         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
13256         toc_label_name unconditionally.
13257         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
13258         SYMBOL_REF string.  Use toc_label_name instead of constructing
13259         LCTOC1.
13260         (rs6000_elf_declare_function_name): Use toc_label_name instead of
13261         constructing LCTOC1.
13262
13263 2016-01-26  Martin Sebor  <msebor@redhat.com>
13264
13265         PR other/69477
13266         * doc/extend.texi (Common Type Attributes): Move text that talks about
13267         attribute packed from attribute aligned to the section discussing
13268         the former attribute for clarity.
13269
13270 2016-01-26  Richard Henderson  <rth@redhat.com>
13271
13272         PR middle-end/60908
13273         * trans-mem.c (tm_region_init): Mark entry block as visited.
13274
13275 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
13276
13277         PR other/69006
13278         * diagnostic-show-locus.c (layout::print_source_line): Replace
13279         call to pp_newline with call to layout::print_newline.
13280         (layout::print_annotation_line): Likewise.
13281         (layout::move_to_column): Likewise.
13282         (layout::print_any_fixits): After printing any fixits, print a
13283         trailing newline, if necessary.
13284         (layout::print_newline): New method, resetting any colorization
13285         before a newline.
13286         (diagnostic_show_locus): Move the pp_newline to before the
13287         early bailout.  Remove dummy block enclosing the layout instance.
13288         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
13289         of pp_newline_and_flush with pp_flush.
13290         (diagnostic_append_note): Delete use of pp_newline.
13291         (diagnostic_append_note_at_rich_loc): Delete.
13292         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
13293         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
13294         when newline characters are added to the buffer.
13295
13296 2016-01-26  Michael Matz  <matz@suse.de>
13297
13298         * configure.ac (ac_cv_std_swap_in_utility): New test.
13299         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
13300         * configure: Regenerate.
13301         * config.in: Regenerate.
13302
13303 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
13304
13305         * config/arc/arc.md (cstoresi4): Force operand into register.
13306         (arcset<code>): Fix predicate.
13307         (arcsetltu): Likewise.
13308         (arcsetgeu): Likewise.
13309         (arcsethi): Likewise.
13310         (arcsetls): Likewise.
13311
13312 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13313
13314         PR tree-optimization/69483
13315         * gimple-fold.c (canonicalize_constructor_val): Return NULL
13316         if base has error_mark_node type.
13317
13318 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
13319
13320         PR target/68620
13321         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
13322         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
13323         New helper macros.
13324         (vget_lane_f16): Handle big-endian.
13325         (vgetq_lane_f16): Likewise.
13326         (vset_lane_f16): Likewise.
13327         (vsetq_lane_f16): Likewise.
13328         * config/arm/iterators.md (VQXMOV): Add V8HF.
13329         (VDQ): Add V4HF and V8HF.
13330         (V_reg): Handle V4HF and V8HF.
13331         (Is_float_mode): Likewise.
13332         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
13333         neon_vdup_nv8hf): New patterns.
13334         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
13335         Use VD_LANE iterator.
13336         (neon_vld1_dup<mode>): Use VQ2 iterator.
13337
13338 2016-01-26  Nathan Sidwell  <nathan@acm.org>
13339
13340         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
13341         (set_oacc_fn_attrib): Add IS_KERNEL arg.
13342         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
13343         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
13344         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
13345         (oacc_validate_dims): Add LEVEL arg, don't return level.
13346         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
13347         oacc_validate_dims.
13348         (execute_oacc_device_lower): Adjust, add more dump output.
13349         * tree-ssa-loop.c (gate_oacc_kernels): Use
13350         oacc_fn_attrib_kernels_p.
13351         * tree-parloops.c (create_parallel_loop): Adjust
13352         set_oacc_fn_attrib call.
13353
13354 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13355
13356         PR lto/69254
13357         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
13358         (append_compiler_options): Handle -fcilkplus.
13359         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
13360
13361 2016-01-26  Nick Clifton  <nickc@redhat.com>
13362
13363         PR target/66655
13364         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
13365         been marked as DECL_ONE_ONLY but we do not the means to make it
13366         so, then do not allow it to bind locally.
13367
13368 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13369
13370         PR lto/69254
13371         * opts.h (parse_sanitizer_options): New prototype.
13372         * opts.c (sanitizer_opts): New array.
13373         (parse_sanitizer_options): New function.
13374         (common_handle_option): Use parse_sanitizer_options.
13375
13376 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
13377
13378         PR target/68986
13379         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
13380         alignment adjustment to ...
13381         (ix86_update_stack_boundary): Here.  Don't over-align stack for
13382         __tls_get_addr.
13383         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
13384         if __tls_get_addr is called.
13385
13386 2016-01-26  Christian Bruel  <christian.bruel@st.com>
13387
13388         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
13389
13390 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
13391
13392         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
13393
13394 2016-01-26  Richard Biener  <rguenther@suse.de>
13395
13396         PR middle-end/69467
13397         * match.pd: Guard X * CST CMP 0 pattern with single_use.
13398
13399 2016-01-26  Richard Biener  <rguenther@suse.de>
13400
13401         PR tree-optimization/69452
13402         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
13403         (move_computations_dom_walker::before_dom_children): Rename
13404         to ...
13405         (move_computations_worker): This.
13406         (move_computations): Perform an RPO rather than a DOM walk.
13407
13408 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
13409
13410         PR target/69442
13411         * combine.c (combine_instructions): For REG_EQUAL note with
13412         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
13413         to the underlying register.
13414         * doc/rtl.texi (REG_EQUAL): Document the behavior of
13415         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
13416
13417 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
13418
13419         PR target/67896
13420         * config/aarch64/aarch64-builtins.c
13421         (aarch64_init_simd_builtin_types): Do not set structural
13422         equality to __Poly{8,16,64,128}_t types.
13423
13424 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
13425
13426         PR tree-optimization/69400
13427         * wide-int.cc (wi_pack): Take the precision as argument and
13428         perform canonicalization here rather than in the callers.
13429         Use the main loop to handle all full-width HWIs.  Add a
13430         zero HWI if in_len isn't a full result.
13431         (wi::divmod_internal): Update accordingly.
13432         (wi::mul_internal): Likewise.  Simplify.
13433
13434 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
13435             Sebastian Pop  <s.pop@samsung.com>
13436
13437         * graphite-poly.c (apply_poly_transforms): Simplify.
13438         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
13439         (print_isl_map): Same.
13440         (print_isl_union_map): Same.
13441         (print_isl_schedule): New.
13442         (debug_isl_schedule): New.
13443         * graphite-dependences.c (scop_get_reads): Do not call
13444         isl_union_map_add_map that is undocumented isl functionality.
13445         (scop_get_must_writes): Same.
13446         (scop_get_may_writes): Same.
13447         (scop_get_original_schedule): Remove.
13448         (scop_get_dependences): Do not call isl_union_map_compute_flow that
13449         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
13450         (compute_deps): Remove.
13451         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
13452         (debug_schedule_ast): New.
13453         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
13454         set_separate_option.
13455         (graphite_regenerate_ast_isl): Add dump.
13456         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
13457         from scop->transformed_schedule.
13458         (graphite_regenerate_ast_isl): Add more dump.
13459         * graphite-optimize-isl.c (optimize_isl): Set
13460         scop->transformed_schedule.  Check whether schedules are equal.
13461         (apply_poly_transforms): Move here.
13462         * graphite-poly.c (apply_poly_transforms): ... from here.
13463         (free_poly_bb): Static.
13464         (free_scop): Static.
13465         (pbb_number_of_iterations_at_time): Remove.
13466         (print_isl_ast): New.
13467         (debug_isl_ast): New.
13468         (debug_scop_pbb): New.
13469         * graphite-scop-detection.c (print_edge): Move.
13470         (print_sese): Move.
13471         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
13472         (build_scop_scattering): Remove.
13473         (create_pw_aff_from_tree): Assert instead of bailing out.
13474         (add_condition_to_pbb): Remove unused code, do not fail.
13475         (add_conditions_to_domain): Same.
13476         (add_conditions_to_constraints): Remove.
13477         (build_scop_context): New.
13478         (add_iter_domain_dimension): New.
13479         (build_iteration_domains): Initialize pbb->iterators.
13480         Call add_conditions_to_domain.
13481         (nested_in): New.
13482         (loop_at): New.
13483         (index_outermost_in_loop): New.
13484         (index_pbb_in_loop): New.
13485         (outermost_pbb_in): New.
13486         (add_in_sequence): New.
13487         (add_outer_projection): New.
13488         (outer_projection_mupa): New.
13489         (add_loop_schedule): New.
13490         (build_schedule_pbb): New.
13491         (build_schedule_loop): New.
13492         (embed_in_surrounding_loops): New.
13493         (build_schedule_loop_nest): New.
13494         (build_original_schedule): New.
13495         (build_poly_scop): Call build_original_schedule.
13496         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
13497         (free_poly_dr): Remove.
13498         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
13499         (free_poly_bb): Remove.
13500         (debug_loop_vec): Remove.
13501         (print_isl_ast): Declare.
13502         (debug_isl_ast): Declare.
13503         (scop_do_interchange): Remove.
13504         (scop_do_strip_mine): Remove.
13505         (scop_do_block): Remove.
13506         (flatten_all_loops): Remove.
13507         (optimize_isl): Remove.
13508         (pbb_number_of_iterations_at_time): Remove.
13509         (debug_scop_pbb): Declare.
13510         (print_schedule_ast): Declare.
13511         (debug_schedule_ast): Declare.
13512         (struct scop): Remove schedule.  Add original_schedule,
13513         transformed_schedule.
13514         (free_gimple_poly_bb): Remove.
13515         (print_generated_program): Remove.
13516         (debug_generated_program): Remove.
13517         (unify_scattering_dimensions): Remove.
13518         * sese.c (print_edge): ... here.
13519         (print_sese): ... here.
13520         (debug_edge): ... here.
13521         (debug_sese): ... here.
13522         * sese.h (print_edge): Declare.
13523         (print_sese): Declare.
13524         (dump_edge): Declare.
13525         (dump_sese): Declare.
13526
13527 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
13528             Sebastian Pop  <s.pop@samsung.com>
13529
13530         * Makefile.in: Set ISLVER in site.exp.
13531
13532 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
13533
13534         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
13535         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
13536         through DECL_VALUE_EXPR for expansion.
13537
13538 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13539
13540         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
13541         the frame info after reload completed.
13542
13543 2016-01-25  Jeff Law  <law@redhat.com>
13544
13545         PR tree-optimization/69196
13546         PR tree-optimization/68398
13547         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
13548         tree-ssa-threadupdate.c.
13549         (determine_bb_domination_status): Prototype
13550         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
13551         (determine_bb_domination_status): No longer static.
13552         (valid_jump_thread_path): Remove code to detect characteristics
13553         of the jump thread path not associated with correctness.
13554         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
13555         Correct test for thread path length.  Count PHIs for real operands as
13556         statements that need to be copied.  Do not count ASSERT_EXPRs.
13557         Look at all the blocks in the thread path.  Compute and selectively
13558         filter thread paths based on threading through the latch, threading
13559         a multiway branch or crossing a multiway branch.
13560
13561 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13562
13563         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
13564         decl with __attribute__ ((unused)) annotation.
13565
13566 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
13567
13568         PR target/69421
13569         * tree-vect-stmts.c (vectorizable_condition): Check vectype
13570         of operands is compatible with a statement vectype.
13571
13572 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
13573
13574         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
13575         improve wording for mixed storage order support.
13576
13577 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
13578
13579         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
13580         (vcvt_u64_f64): Likewise.
13581         (vcvta_s64_f64): Likewise.
13582         (vcvta_u64_f64): Likewise.
13583         (vcvtm_s64_f64): Likewise.
13584         (vcvtm_u64_f64): Likewise.
13585         (vcvtn_s64_f64): Likewise.
13586         (vcvtn_u64_f64): Likewise.
13587         (vcvtp_s64_f64): Likewise.
13588         (vcvtp_u64_f64): Likewise.
13589
13590 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
13591
13592         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
13593         (arc_init): Check validity mll64 option.
13594         (arc_save_restore): Use double load/store instruction.
13595         (arc_expand_movmem): Likewise.
13596         (arc_split_move): Don't split if we have double load/store
13597         instructions. Returns a boolean.
13598         (arc_process_double_reg_moves): Change function to return boolean
13599         instead of a sequence of instructions.
13600         (arc_dwarf_register_span): New function.
13601         * config/arc/arc-protos.h (arc_split_move): Change prototype.
13602         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
13603         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
13604         (*movdf_insn): Likewise.
13605         * config/arc/arc.opt (mll64): New option.
13606         * config/arc/predicates.md (even_register_operand): New predicate.
13607         * doc/invoke.texi (ARC Options): Add mll64 documentation.
13608
13609 2016-01-25  Richard Biener  <rguenther@suse.de>
13610
13611         PR lto/69393
13612         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
13613         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
13614         DECL_NAMELESS.
13615         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
13616
13617 2016-01-25  Richard Biener  <rguenther@suse.de>
13618
13619         PR tree-optimization/69376
13620         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
13621         flag.
13622         (VN_INFO_ANTI_RANGE_P): New inline.
13623         (VN_INFO_RANGE_TYPE): Likewise.
13624         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
13625         SSA_NAME_ANTI_RANGE_P.
13626         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
13627         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13628         Properly query VN_INFO_RANGE_TYPE.
13629
13630 2016-01-25  Nick Clifton  <nickc@redhat.com>
13631
13632         PR target/66655
13633         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
13634
13635 2016-01-23  Tom de Vries  <tom@codesourcery.com>
13636
13637         PR tree-optimization/69426
13638         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
13639         removed clobber.
13640
13641 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
13642
13643         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
13644         "the the" with "the" in the comments.
13645         * ipa-devirt.c (build_type_inheritance_graph,
13646         update_type_inheritance_graph): Likewise.
13647         * tree.c (build_function_type_list_1): Likewise.
13648         * cfgloopmanip.c (scale_loop_profile): Likewise.
13649         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
13650         * gimple-ssa-split-paths.c
13651         (find_block_to_duplicate_for_splitting_paths): Likewise.
13652         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
13653         * expr.c (convert_move): Likewise.
13654         * var-tracking.c (vt_stack_adjustments): Likewise.
13655         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
13656         * tree-vrp.c (test_for_singularity): Likewise.
13657
13658         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
13659         directly instead of building a temporary tree.
13660
13661         PR bootstrap/69434
13662         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
13663         remove <algorithm> include.
13664
13665 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
13666
13667         PR target/69432
13668         * config/i386/i386.c: Include dojump.h.
13669         (expand_small_movmem_or_setmem,
13670         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
13671         fixes.
13672         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
13673         if dynamic_check != -1.
13674
13675 2016-01-21  Jeff Law  <law@redhat.com>
13676
13677         PR middle-end/69347
13678         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
13679         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
13680         into dominated_by_p.
13681         (cprop_into_successor_phis): Avoid unnecessary tests.
13682
13683 2016-01-22  Richard Henderson  <rth@redhat.com>
13684
13685         PR target/69416
13686         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
13687         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
13688
13689 2016-01-22  Michael Matz  <matz@suse.de>
13690
13691         * system.h (string, algorithm): Include only conditionally.
13692         (new): Include always under C++.
13693         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
13694         * final.c (toplevel): Ditto.
13695         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
13696         * genconditions.c (write_header): Make gencondmd.c define
13697         INCLUDE_STRING.
13698         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
13699
13700         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
13701         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
13702
13703 2016-01-22  Christian Bruel  <christian.bruel@st.com>
13704
13705         PR target/68674
13706         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
13707
13708 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13709
13710         PR target/69403
13711         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
13712         define_insn_and_split.  Ensure operands[1] and operands[0] do not
13713         get assigned the same register.
13714
13715 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
13716
13717         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
13718
13719 2016-01-22  Christian Bruel  <christian.bruel@st.com>
13720
13721         * config/arm/arm-c.c (arm_pragma_target_parse):
13722         Remove warn_builtin_macro_redefined overwrite.
13723
13724 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
13725
13726         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
13727         flag_non_call_exceptions compatibility.
13728
13729 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
13730
13731         PR debug/66668
13732         * dwarf2out.c (add_child_die_after): New function.
13733         (dwarf_qual_info_t): New type.
13734         (dwarf_qual_info): New variable.
13735         (qualified_die_p): New function.
13736         (modified_type_die): For -fdebug-types-section, ensure
13737         canonical order of qualifiers.  Put qualified DIEs adjacent
13738         to the corresponding non-qualified type DIE and search there
13739         for existing qualified DIEs.
13740
13741 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
13742
13743         * doc/extend.texi (scalar_storage_order type attribute): Document
13744         restriction on type punning and aliasing, and remove future tense.
13745
13746 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
13747
13748         PR target/69252
13749         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
13750         first stage.
13751
13752 2016-01-21  Jeff Law  <law@redhat.com>
13753
13754         PR middle-end/69347
13755         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
13756         useless call to record_temporary_equivalences.
13757         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
13758         allocate 10 slots in the bb_path vector and let it grow as needed.
13759         (fsm_find_control_statement_thread_paths): Similarly for the next_path
13760         vector.
13761
13762 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
13763
13764         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
13765         Detangle.
13766         * configure: Regenerate.
13767
13768 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
13769
13770         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
13771         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
13772
13773 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
13774
13775         PR middle-end/66178
13776         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
13777         drop EXPAND_INITIALIZER.
13778         * rtl.h (contains_symbolic_reference_p): Declare.
13779         * rtlanal.c (contains_symbolic_reference_p): New function.
13780         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
13781         a subtraction into a NOT if symbolic constants are involved.
13782
13783 2016-01-21  Anton Blanchard  <anton@samba.org>
13784             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13785
13786         PR target/63354
13787         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
13788         #define.
13789         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
13790         function.
13791
13792 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
13793
13794         * config/microblaze/microblaze.c
13795         (get_branch_target): New.
13796         (insert_wic_for_ilb_runout): New.
13797         (insert_wic): New.
13798         (microblaze_machine_dependent_reorg): New.
13799         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
13800         * config/microblaze/microblaze.md
13801         (UNSPEC_IPREFETCH): Define.
13802         (iprefetch): New pattern
13803         * config/microblaze/microblaze.opt
13804         (mxl-prefetch): New flag.
13805
13806 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
13807
13808         * config/microblaze/microblaze.h
13809         (FIXED_REGISTERS): Update in macro.
13810         (CALL_USED_REGISTERS): Update in macro.
13811
13812 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
13813
13814         PR rtl-optimization/68920
13815         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
13816         moves.
13817
13818 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
13819
13820         PR rtl-optimization/68990
13821         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
13822         pseudo instead of inheritance ones.
13823
13824 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13825             Nick Clifton  <nickc@redhat.com>
13826
13827         PR target/69129
13828         PR target/69012
13829         * config/mips/mips.c (mips_compute_frame_info): Initialise
13830         args_size and hard_frame_pointer_offset fields of the frame
13831         structure before calling mips_global_pointer.
13832
13833 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
13834
13835         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
13836         label reference.
13837         * configure: Regenerate.
13838
13839 2016-01-21  Richard Biener  <rguenther@suse.de>
13840
13841         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
13842
13843 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
13844
13845         * config/s390/s390.c (s390_asm_declare_function_size): Add code
13846         to actually emit the .size directive.
13847
13848 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
13849              Jakub Jelinek  <jakub@redhat.com>
13850
13851         PR target/69187
13852         PR target/65624
13853         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
13854         args array size by one to avoid buffer overflow.
13855
13856 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
13857
13858         * config/s390/s390.md (pool_section_start): Use switch_to_section
13859         to select proper read-only data section instead of hardcoding
13860         .rodata.
13861         (pool_section_end): Use switch_to_section to match the above.
13862
13863 2016-01-21  Richard Biener  <rguenther@suse.de>
13864
13865         PR tree-optimization/69378
13866         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
13867         (set_ssa_val_to): Use it for dominance checks taking into
13868         account not executable edges.
13869
13870 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
13871
13872         PR c++/69355
13873         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
13874         for bitsize instead of GET_MODE_PRECISION (mode).
13875
13876 2016-01-20  Martin Sebor  <msebor@redhat.com>
13877
13878         PR c/52291
13879         * extend.texi (__sync Builtins): Clarify the semantics of
13880         __sync_fetch_and_OP built-ins on pointers.
13881         (__atomic Builtins): Same.
13882
13883 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13884             Sebastian Pop  <s.pop@samsung.com>
13885
13886         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
13887         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
13888         (is_valid_rename): Same.
13889         (translate_isl_ast_to_gimple::get_rename): Same.
13890         (translate_isl_ast_to_gimple::rename_all_uses): Same.
13891         (translate_isl_ast_to_gimple::rename_uses): Same.
13892         (get_new_name): Check for close_phi nodes.
13893         (copy_loop_phi_args): Use phi_node_kind.
13894         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
13895         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
13896
13897 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13898             Sebastian Pop  <s.pop@samsung.com>
13899
13900         Revert commit r229783.
13901         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
13902         Remove use of parameter_rename_map.
13903         (copy_def): Remove.
13904         (copy_internal_parameters): Remove.
13905         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
13906         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
13907         (free_sese_info): Do not free parameter_rename_map.
13908         (set_rename): Do not use parameter_rename_map.
13909         (rename_uses): Update call to set_rename.
13910         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
13911         * sese.h (parameter_rename_map_t): Remove.
13912         (struct sese_info_t): Remove field parameter_rename_map.
13913
13914 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13915             Sebastian Pop  <s.pop@samsung.com>
13916
13917         * graphite-isl-ast-to-gimple.c: Fix comment.
13918         * graphite-scop-detection.c (defined_in_loop_p): New.
13919         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
13920         names defined in loop.
13921
13922 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13923             Sebastian Pop  <s.pop@samsung.com>
13924
13925         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
13926         Discard unstructured if-then-else regions.
13927
13928 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13929             Sebastian Pop  <s.pop@samsung.com>
13930
13931         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
13932         (cleanup_loop_iter_dom): Remove.
13933         (build_loop_iteration_domains): Remove.
13934         (build_scop_context): Remove.
13935         (build_scop_iteration_domain): Remove.
13936         (add_loop_constraints): New.
13937         (build_iteration_domains): New.
13938         (build_poly_scop): Call build_iteration_domains.
13939
13940 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13941             Sebastian Pop  <s.pop@samsung.com>
13942
13943         * graphite-scop-detection.c
13944         (scop_detection::harmful_loop_in_region): Free dom and loops.
13945         (scop_detection::loop_body_is_valid_scop): Free bbs.
13946
13947 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13948             Sebastian Pop  <s.pop@samsung.com>
13949
13950         * graphite-scop-detection.c (record_loop_in_sese): New.
13951         (gather_bbs::before_dom_children): Call record_loop_in_sese.
13952         (build_scops): Remove call to build_sese_loop_nests.
13953         * sese.c (sese_record_loop): Remove.
13954         (build_sese_loop_nests): Remove.
13955         (new_sese_info): Remove region->loops.
13956         (free_sese_info): Same.
13957         * sese.h (sese_contains_loop): Same.
13958         (build_sese_loop_nests): Remove.
13959         (sese_contains_loop): Remove.
13960
13961 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13962             Sebastian Pop  <s.pop@samsung.com>
13963
13964         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
13965         loop_is_valid_in_scop.
13966         (scop_detection::harmful_stmt_in_region): Renamed
13967         harmful_loop_in_region.
13968         Call loop_is_valid_in_scop.
13969
13970 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13971             Sebastian Pop  <s.pop@samsung.com>
13972
13973         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
13974         isl_ast_node_mark.
13975
13976 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13977             Sebastian Pop  <s.pop@samsung.com>
13978
13979         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
13980         * graphite.h (struct poly_bb): Remove field is_reduction.
13981         (PBB_IS_REDUCTION): Remove.
13982
13983 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
13984             Sebastian Pop  <s.pop@samsung.com>
13985
13986         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
13987         (add_pdr_constraints): Same.
13988         (scop_get_reads): Same.
13989         (scop_get_must_writes): Same.
13990         (scop_get_may_writes): Same.
13991         (scop_get_original_schedule): Same.
13992         (extend_schedule): Same.
13993         (apply_schedule_on_deps): Same.
13994         (carries_deps): Same.
13995         (compute_deps): Same.
13996         (scop_get_dependences): Same.
13997         * graphite-isl-ast-to-gimple.c
13998         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
13999         * graphite-optimize-isl.c (get_schedule_for_band): Same.
14000         (get_schedule_for_band_list): Same.
14001         (get_schedule_map): Same.
14002         (apply_schedule_map_to_scop): Same.
14003         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
14004         (build_loop_iteration_domains): Same.
14005         (add_condition_to_pbb): Same.
14006         (add_param_constraints): Same.
14007         (pdr_add_memory_accesses): Same.
14008         (pdr_add_data_dimensions): Same.
14009
14010 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
14011
14012         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
14013         requirements.
14014
14015 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
14016
14017         * common.opt (feliminate-dwarf2-dups): Replace references to
14018         "DWARF 2" with just "DWARF".
14019         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
14020         * doc/extend.texi: Likewise.
14021         * doc/cpp.texi: Likewise.
14022         * doc/invoke.texi: Likewise.
14023         (Option Summary): Add -gdwarf to list of Debugging Options.
14024         (Debugging Options): Document -gdwarf.
14025         * doc/contrib.texi: Spell "DWARF" like that.
14026
14027 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
14028
14029         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
14030         warning.  Fix up formatting.
14031
14032         PR middle-end/67653
14033         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
14034         attempt to mark memory input operand addressable and
14035         call prepare_gimple_addressable in that case.  Don't adjust
14036         input_location for diagnostics, use error_at instead.
14037
14038 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
14039
14040         * config/rs6000/ppc-auxv.h: New file.
14041         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
14042         (cpu_is): Likewise.
14043         (cpu_supports): Likewise.
14044         * config/rs6000/rs6000.c: include "ppc-auxv.h".
14045         (cpu_is_info): New variable.
14046         (cpu_supports_info): Likewise.
14047         (tcb_verification_symbol): Likewise.
14048         (cpu_builtin_p): Likewise.
14049         (cpu_expand_builtin): New function.
14050         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
14051         (rs6000_init_builtins): Likewise.
14052         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
14053         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
14054         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
14055         * configure: Regenerate.
14056         * config.in: Likewise.
14057         * doc/extend.texi (PowerPC Built-in Functions): Document
14058         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
14059
14060 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
14061
14062         PR target/68609
14063         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
14064         domain check.
14065         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
14066         for V4SFmode.
14067
14068 2016-01-20  Richard Henderson  <rth@redhat.com>
14069
14070         PR bootstrap/69343
14071         PR bootstrap/69339
14072         PR tree-opt/68964
14073         Revert:
14074         * tree.c (tm_define_builtin): New.
14075         (find_tm_vector_type): New.
14076         (build_tm_vector_builtins): New.
14077         (build_common_builtin_nodes): Call it.
14078
14079 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
14080
14081         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
14082         (arm_fp_ok): Likewise.
14083         (arm_fp): Likewise.
14084         (arm_crypto): Likewise.
14085
14086 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
14087             Richard Biener  <rguenther@suse.de>
14088
14089         PR tree-optimization/69328
14090         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
14091         vectors have same number of elements.
14092         (vectorizable_condition): Fix masked version recognition.
14093
14094 2016-01-20  Richard Biener  <rguenther@suse.de>
14095
14096         PR tree-optimization/69345
14097         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
14098         (VN_INFO_PTR_INFO): Likewise.
14099         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
14100         info when it is equal between non-dominating SSA names.
14101         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14102         Make sure to look at original SSA infos.
14103
14104 2016-01-20  Jeff Law  <law@redhat.com>
14105
14106         PR target/25114
14107         * config/m68k/predicates.md (pow2_m1_operand): New predicate
14108         extracted from ...
14109         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
14110         (pc_or_label_operand): New predicate.
14111         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
14112         tests for small integers that are 2^n - 1.
14113
14114 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
14115
14116         * doc/invoke.texi (Options Summary): Add '.' after @xref.
14117
14118 2016-01-19  Jeff Law  <law@redhat.com>
14119
14120         PR middle-end/69347
14121         * tree-ssa-threadbackwards.c
14122         (fsm_find_control_statement_thread_paths): Do not try to lookup
14123         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
14124
14125 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
14126
14127         * doc/lto.texi: Remove text that says only Gold has linker plugin
14128         support.
14129
14130 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
14131
14132         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
14133         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
14134         the DIE accordingly.
14135         (modified_type_die): Add REVERSE parameter and pass it recursively,
14136         as well as to base_type_die.  Adjust presence check accordingly.
14137         (base_type_for_mode): Adjust call to modified_type_die.
14138         (add_type_attribute): Add REVERSE parameter and pass it to
14139         modified_type_die.
14140         (generic_parameter_die): Adjust call to add_type_attribute.
14141         (add_scalar_info): Likewise.
14142         (add_subscript_info): Likewise.
14143         (gen_array_type_die): Likewise.
14144         (gen_descr_array_type_die): Likewise.
14145         (gen_entry_point_die): Likewise.
14146         (gen_enumeration_type_die): Likewise.
14147         (gen_formal_parameter_die): Likewise.
14148         (gen_subprogram_die): Likewise.
14149         (gen_variable_die ): Likewise.
14150         (gen_const_die): Likewise.
14151         (gen_field_die): Likewise.
14152         (gen_pointer_type_die): Likewise.
14153         (gen_reference_type_die): Likewise.
14154         (gen_ptr_to_mbr_type_die): Likewise.
14155         (gen_inheritance_die): Likewise.
14156         (gen_subroutine_type_die): Likewise.
14157         (gen_typedef_die): Likewise.
14158         (force_type_die): Adjust call to modified_type_die.
14159
14160 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
14161
14162         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
14163         flow throughout the file.  Fix broken link to Objective-C 2.0
14164         documentation.
14165         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
14166         errors.
14167
14168 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14169
14170         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
14171
14172 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14173
14174         PR ipa/66223
14175         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
14176         (maybe_record_node): Record cxa_pure_virtual as the only possible
14177         target if there are not ohter candidates.
14178         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
14179
14180 2016-01-19  Richard Biener  <rguenther@suse.de>
14181
14182         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
14183         (get_memory_order): Likewise.
14184
14185 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
14186
14187         * tree-vect-stmts.c (vectorizable_store): Check
14188         rhs vectype.
14189
14190 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
14191
14192         PR jit/68446
14193         * gcc.c (driver::decode_argv): Add call to
14194         init_opts_obstack before init_options_struct.
14195         * opts.c (init_opts_obstack): Remove idempotency.
14196         (init_options_struct): Replace call to init_opts_obstack
14197         with a gcc_assert to verify that it has already been called.
14198         * toplev.c (toplev::main): Add call to init_opts_obstack before
14199         calls to init_options_struct.
14200         (toplev::finalize): Move cleanup of opts_obstack next to
14201         cleanup of save_decoded_options, clearing the latter, and
14202         save_decoded_options_count.
14203
14204 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14205
14206         PR target/69135
14207         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
14208         attribute to unconditional.  Remove %? from output template.
14209
14210 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14211             Jiong Wang  <jiong.wang@arm.com>
14212
14213         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
14214         generated from different expand order.
14215
14216 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14217
14218         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
14219         Add support for CCMP costing.
14220
14221 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14222
14223         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
14224         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
14225         (fccmpe<mode>): Likewise.
14226         (fcmp): Rename to fcmp and globalize pattern.
14227         (fcmpe): Likewise.
14228         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
14229         (aarch64_gen_ccmp_next): Add FP support.
14230
14231 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
14232
14233         * target.def (gen_ccmp_first): Update documentation.
14234         (gen_ccmp_next): Likewise.
14235         * doc/tm.texi (gen_ccmp_first): Update documentation.
14236         (gen_ccmp_next): Likewise.
14237         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
14238         expand_ccmp_expr_1.  Improve comments.
14239         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
14240         (ccmp_ior<mode>): Remove pattern.
14241         (cmp<mode>): Remove expand.
14242         (cmp): Globalize pattern.
14243         (cstorecc4): Use cc_register.
14244         (mov<mode>cc): Remove ccmp_cc_register check.
14245         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
14246         Simplify after removal of CC_DNE/* modes.
14247         (aarch64_ccmp_mode_to_code): Remove.
14248         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
14249         In 'k' case use integer as condition.
14250         (aarch64_nzcv_codes): Remove inverted cases.
14251         (aarch64_code_to_ccmode): Remove.
14252         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
14253         comparison with CC register to be used in folowing CCMP/branch/CSEL.
14254         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
14255         pattern.  Return the comparison with CC register.  Invert conditions
14256         when bitcode is OR.
14257         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
14258         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
14259
14260 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14261
14262         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
14263         instrumented_version.
14264
14265 2016-01-19  Richard Biener  <rguenther@suse.de>
14266
14267         PR tree-optimization/69336
14268         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
14269         handled components with get_ref_base_and_extent.
14270         (equal_mem_array_ref_p): Adjust.
14271
14272 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
14273
14274         PR debug/65779
14275         * shrink-wrap.c: Include valtrack.h.
14276         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
14277         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
14278         in between insn and where it will be moved to.  Call
14279         dead_debug_insert_temp.
14280         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
14281         first and dead_debug_local_finish at the end.
14282         For uses and defs bitmap, handle all regs in between REGNO and
14283         END_REGNO, not just the first one.
14284
14285 2016-01-19  Richard Biener  <rguenther@suse.de>
14286
14287         PR tree-optimization/69352
14288         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
14289         (equal_mem_array_ref_p): Constrain size and max size properly.
14290         Compare the reverse flag.
14291
14292 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
14293
14294         * ira.c (ira): Update regstat data if we deleted insns.
14295
14296 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
14297
14298         PR rtl-optimization/68955
14299         PR rtl-optimization/64557
14300         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
14301         here.  Fix up formatting.
14302         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
14303
14304 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14305
14306         PR lto/69133
14307         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
14308         assume that the node has body.
14309         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
14310         check.
14311
14312 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14313
14314         * lto-streamer-out.c (lto_output): Do not stream instrumentation
14315         thunks.
14316
14317 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
14318
14319         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
14320         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
14321
14322 2016-01-19  Martin Jambor  <mjambor@suse.cz>
14323             Martin Liska  <mliska@suse.cz>
14324             Michael Matz  <matz@suse.de>
14325
14326         * Makefile.in (OBJS): Add new source files.
14327         (GTFILES): Add hsa.c.
14328         * common.opt (disable_hsa): New variable.
14329         (-Whsa): New warning.
14330         * config.in (ENABLE_HSA): New.
14331         * configure.ac: Treat hsa differently from other accelerators.
14332         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
14333         $enable_offloading.
14334         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
14335         * doc/install.texi (Configuration): Document --with-hsa-runtime,
14336         --with-hsa-runtime-include, --with-hsa-runtime-lib and
14337         --with-hsa-kmt-lib.
14338         * doc/invoke.texi (-Whsa): Document.
14339         (hsa-gen-debug-stores): Likewise.
14340         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
14341         to invoke offload compiler for hsa acclerator.
14342         * opts.c (common_handle_option): Determine whether HSA offloading
14343         should be performed.
14344         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
14345         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
14346         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
14347         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
14348         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
14349         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
14350         GF_OMP_FOR_KIND_GRID_LOOP.
14351         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
14352         (pp_gimple_stmt_1): Likewise.
14353         * gimple-walk.c (walk_gimple_stmt): Likewise.
14354         * gimple.c (gimple_build_omp_grid_body): New function.
14355         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
14356         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
14357         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
14358         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
14359         GF_OMP_TEAMS_GRID_PHONY.
14360         (gimple_statement_omp_single_layout): Updated comments.
14361         (gimple_build_omp_grid_body): New function.
14362         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
14363         (gimple_omp_for_grid_phony): New function.
14364         (gimple_omp_for_set_grid_phony): Likewise.
14365         (gimple_omp_parallel_grid_phony): Likewise.
14366         (gimple_omp_parallel_set_grid_phony): Likewise.
14367         (gimple_omp_teams_grid_phony): Likewise.
14368         (gimple_omp_teams_set_grid_phony): Likewise.
14369         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
14370         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
14371         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
14372         (BUILT_IN_GOMP_TARGET): Updated type.
14373         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
14374         (adjust_for_condition): New function.
14375         (get_omp_for_step_from_incr): Likewise.
14376         (extract_omp_for_data): Moved parts to adjust_for_condition and
14377         get_omp_for_step_from_incr.
14378         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
14379         (fixup_child_record_type): Bail out if receiver_decl is NULL.
14380         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
14381         (scan_omp_parallel): Do not create child functions for phony
14382         constructs.
14383         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
14384         (scan_omp_1_op): Checking assert we are not remapping to
14385         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
14386         (parallel_needs_hsa_kernel_p): New function.
14387         (expand_parallel_call): Register apprpriate parallel child
14388         functions as HSA kernels.
14389         (grid_launch_attributes_trees): New type.
14390         (grid_attr_trees): New variable.
14391         (grid_create_kernel_launch_attr_types): New function.
14392         (grid_insert_store_range_dim): Likewise.
14393         (grid_get_kernel_launch_attributes): Likewise.
14394         (get_target_argument_identifier_1): Likewise.
14395         (get_target_argument_identifier): Likewise.
14396         (get_target_argument_value): Likewise.
14397         (push_target_argument_according_to_value): Likewise.
14398         (get_target_arguments): Likewise.
14399         (expand_omp_target): Call get_target_arguments instead of looking
14400         up for teams and thread limit.
14401         (grid_expand_omp_for_loop): New function.
14402         (grid_arg_decl_map): New type.
14403         (grid_remap_kernel_arg_accesses): New function.
14404         (grid_expand_target_kernel_body): New function.
14405         (expand_omp): Call it.
14406         (lower_omp_for): Do not emit phony constructs.
14407         (lower_omp_taskreg): Do not emit phony constructs but create for them
14408         a temporary variable receiver_decl.
14409         (lower_omp_taskreg): Do not emit phony constructs.
14410         (lower_omp_teams): Likewise.
14411         (lower_omp_grid_body): New function.
14412         (lower_omp_1): Call it.
14413         (grid_reg_assignment_to_local_var_p): New function.
14414         (grid_seq_only_contains_local_assignments): Likewise.
14415         (grid_find_single_omp_among_assignments_1): Likewise.
14416         (grid_find_single_omp_among_assignments): Likewise.
14417         (grid_find_ungridifiable_statement): Likewise.
14418         (grid_target_follows_gridifiable_pattern): Likewise.
14419         (grid_remap_prebody_decls): Likewise.
14420         (grid_copy_leading_local_assignments): Likewise.
14421         (grid_process_kernel_body_copy): Likewise.
14422         (grid_attempt_target_gridification): Likewise.
14423         (grid_gridify_all_targets_stmt): Likewise.
14424         (grid_gridify_all_targets): Likewise.
14425         (execute_lower_omp): Call grid_gridify_all_targets.
14426         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
14427         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
14428         (tree_omp_clause): Added union field dimension.
14429         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
14430         * tree.c (omp_clause_num_ops): Added number of arguments of
14431         OMP_CLAUSE__GRIDDIM_.
14432         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
14433         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
14434         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
14435         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
14436         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
14437         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
14438         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
14439         * tree-pass.h (make_pass_gen_hsail): Declare.
14440         (make_pass_ipa_hsa): Likewise.
14441         * ipa-hsa.c: New file.
14442         * lto-section-in.c (lto_section_name): Add hsa section name.
14443         * lto-streamer.h (lto_section_type): Add hsa section.
14444         * timevar.def (TV_IPA_HSA): New.
14445         * hsa-brig-format.h: New file.
14446         * hsa-brig.c: New file.
14447         * hsa-dump.c: Likewise.
14448         * hsa-gen.c: Likewise.
14449         * hsa.c: Likewise.
14450         * hsa.h: Likewise.
14451         * toplev.c (compile_file): Call hsa_output_brig.
14452         * hsa-regalloc.c: New file.
14453
14454 2016-01-18  Jeff Law  <law@redhat.com>
14455
14456         PR tree-optimization/69320
14457         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
14458         ranged object, do nothing if the RHS constant is not [0..1].
14459         (optimize_stmt): Comparing a boolean ranged object against a
14460         constant outside [0..1] results in a compile-time constant.
14461
14462         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
14463         test.
14464
14465 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
14466
14467         * doc/invoke.texi (Invoking GCC): Add new section to menu.
14468         (Option Summary): Update to reflect new section and moved options.
14469         (C++ Dialect Options): Move -fstats to new section.
14470         (Debugging Options): Move all dump, statistics, and other GCC
14471         developer options to new section.  Rewrite section introduction
14472         and re-order remaining options to put the more basic ones first.
14473         (Optimization Options): Move -fira-verbose and -flto-report* to
14474         new section.
14475         (Developer Options): New section incorporating moved options.
14476         * doc/cppopts.texi (-dM): Update cross-reference.
14477
14478 2016-01-18  Richard Henderson  <rth@redhat.com>
14479
14480         PR target/69176
14481         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
14482         operands to pseudo only if CSE is expected.  Split long immediate
14483         operands only after reload, and for the stack pointer.
14484         (*add<GPI>3_pluslong): Remove.
14485         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
14486         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
14487         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
14488         (*add<GPI>3 peepholes): New.
14489         (*add<GPI>3 splitters): New.
14490         * config/aarch64/constraints.md (Upl): New.
14491         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
14492
14493 2016-01-18  Richard Biener  <rguenther@suse.de>
14494
14495         PR tree-optimization/69297
14496         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
14497         stmt at most once.
14498         (vect_bb_vectorization_profitable_p): Clear visited flag again.
14499
14500 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
14501
14502         PR middle-end/68542
14503         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
14504         of mixind vector and scalar types.
14505         (fold_relational_const): Add handling of vector
14506         comparison with boolean result.
14507         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
14508         comparison of vector operands with boolean result for EQ/NE only.
14509         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
14510         (verify_gimple_cond): Likewise.
14511         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
14512         valid type of VAL.
14513
14514 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
14515
14516         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
14517         !TARGET_OCTEON.
14518
14519 2016-01-18  Richard Biener  <rguenther@suse.de>
14520
14521         PR middle-end/69308
14522         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
14523
14524 2016-01-18  Tom de Vries  <tom@codesourcery.com>
14525
14526         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
14527
14528 2016-01-18  Tom de Vries  <tom@codesourcery.com>
14529
14530         * omp-low.c (set_oacc_fn_attrib): Make extern.
14531         * omp-low.h (set_oacc_fn_attrib): Declare.
14532         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
14533         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
14534         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
14535         Add and handle function parameter oacc_kernels_p.
14536         (find_reduc_addr, get_omp_data_i_param): New function.
14537         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
14538         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
14539         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
14540         Calculate dominance info.  Skip loops that are not in a kernels region
14541         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
14542         (pass_parallelize_loops::execute): Call parallelize_loops with
14543         oacc_kernels_p argument.
14544         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
14545         New member function.
14546         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
14547         * passes.def: Add argument to pass_parallelize_loops instantation.
14548
14549 2016-01-18  Tom de Vries  <tom@codesourcery.com>
14550
14551         * tree-parloops.c (pass_parallelize_loops::execute): Allow
14552         pass_parallelize_loops to be run outside the loop pipeline.
14553
14554 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
14555
14556         * tree-scalar-evolution.c (follow_copies_to_constant): New.
14557         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
14558
14559 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
14560
14561         PR target/63679
14562         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
14563         using get_ref_base_and_extent.
14564         (equal_mem_array_ref_p): New.
14565         (hashable_expr_equal_p): Add call to previous.
14566
14567 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
14568
14569         PR target/63679
14570         * tree-sra.c (disqualified_constants, constant_decl_p): New.
14571         (sra_initialize): Allocate disqualified_constants.
14572         (sra_deinitialize): Free disqualified_constants.
14573         (disqualify_candidate): Update disqualified_constants when appropriate.
14574         (create_access): Scan for constant-pool entries as we go along.
14575         (scalarizable_type_p): Add check against type_contains_placeholder_p.
14576         (maybe_add_sra_candidate): Allow constant-pool entries.
14577         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
14578         (initialize_constant_pool_replacements): New.
14579         (sra_modify_assign): Avoid mangling assignments created by previous,
14580         and don't generate writes into constant pool.
14581         (sra_modify_function_body): Call initialize_constant_pool_replacements.
14582
14583 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
14584
14585         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
14586         andnot instruction.
14587         (scalar_chain::convert_op): Likewise.
14588         * config/i386/i386.md (*andndi3_doubleword): New.
14589
14590 2016-01-18  Richard Biener  <rguenther@suse.de>
14591
14592         PR tree-optimization/69170
14593         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
14594         building a vector from scalar results of a pattern stmt.
14595
14596 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
14597
14598         * haifa-sched.c (autopref_multipass_init): Work around
14599         -Wmaybe-uninitialized warning.
14600
14601 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14602
14603         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
14604         against the constant 0.
14605
14606 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14607
14608         PR tree-optimization/68799
14609         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
14610         look up phi candidates in the statement-candidate map.
14611         (phi_add_costs): Likewise.
14612         (record_phi_increments): Likewise.
14613         (phi_incr_cost): Likewise.
14614         (ncd_with_phi): Likewise.
14615         (all_phi_incrs_profitable): Likewise.
14616
14617 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
14618
14619         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
14620         -Wmaybe-uninitialized warning.
14621
14622 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
14623
14624         * doc/invoke.texi (Invoking GCC): Add new section to menu.
14625         (Option Summary): Update to reflect new section and moved options.
14626         (C++ Dialect Options): Move -fvtable-verify and related options.
14627         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
14628         and profiling-related options.
14629         (Optimization Options): Move profile generation options and
14630         -fstack-protector and related options.
14631         (Instrumentation Options): New section incorporating moved options.
14632         (Code Generation Options): Move -finstrument-functions and
14633         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
14634
14635 2016-01-16  Tom de Vries  <tom@codesourcery.com>
14636
14637         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
14638
14639 2016-01-16  Tom de Vries  <tom@codesourcery.com>
14640
14641         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
14642
14643 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
14644
14645         * hash-table.h (hash_table::empty): Turn into an inline wrapper
14646         that checks whether the table is already empty.  Rename the
14647         original implementation to...
14648         (hash_table::empty_slot): ...this new private function.
14649
14650 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
14651
14652         PR diagnostic/68899
14653         * diagnostic-show-locus.c (layout::print_source_line): Move x
14654         offset of line until after call to
14655         get_line_width_without_trailing_whitespace.
14656
14657 2016-01-15  Jeff Law  <law@redhat.com>
14658
14659         PR tree-optimization/69270
14660         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
14661         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
14662         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
14663         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
14664         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
14665         ssa_name_has_boolean_range and constant_boolean_node.
14666
14667 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
14668
14669         PR rtl-optimization/69030
14670         * lra-spills.c (remove_pseudos): Check nrefs and make the function
14671         returning bool.
14672         (spill_pseudos): Delete debug insn for dead pseudo.
14673         (lra_spill): Initiate spill_hard_reg and slots memory separately.
14674
14675 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
14676
14677         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
14678         New.
14679         (TYPES_UNOPUS): Likewise.
14680         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
14681         builtin type, from UNOP to UNOPUS.
14682         (lbtruncuv4sf): Likewise.
14683         (lbtruncuv2df): Likewise.
14684         (lrounduv2sf): Likewise.
14685         (lrounduv4sf): Likewise.
14686         (lrounduv2df): Likewise.
14687         (lroundusf): Likewise.
14688         (lroundusf): Likewise.
14689         (lceiluv2sf): Likewise.
14690         (lceiluv4sf): Likewise.
14691         (lceiluv2df): Likewise.
14692         (lceilusf): Likewise.
14693         (lceiludf): Likewise.
14694         (lflooruv2sf): Likewise.
14695         (lflooruv4sf): Likewise.
14696         (lflooruv2df): Likewise.
14697         (lfloorusf): Likewise.
14698         (lfloorudf): Likewise.
14699         (lfrintnuv2sf): Likewise.
14700         (lfrintnuv4sf): Likewise.
14701         (lfrintnuv2df): Likewise.
14702         (lfrintnusf): Likewise.
14703         (lfrintnudf): Likewise.
14704         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
14705         conversion.
14706         (vcvtq_u32_f32): Likewise.
14707         (vcvtq_u64_f64): Likewise.
14708         (vcvta_u32_f32): Likewise.
14709         (vcvtaq_u32_f32): Likewise.
14710         (vcvtaq_u64_f64): Likewise.
14711         (vcvtm_u32_f32): Likewise.
14712         (vcvtmq_u32_f32): Likewise.
14713         (vcvtmq_u64_f64): Likewise.
14714         (vcvtn_u32_f32): Likwise.
14715         (vcvtnq_u32_f32): Likewise.
14716         (vcvtnq_u64_f64): Likewise.
14717         (vcvtp_u32_f32): Likewise.
14718         (vcvtpq_u32_f32): Likewise.
14719         (vcvtpq_u64_f64): Likewise.
14720         (vcvtmd_u64_f64): Likewise.
14721         (vcvtms_u32_f32): Likewise.
14722         (vcvtad_u64_f64): Likewise.
14723         (vcvtas_u32_f32): Likewise.
14724         (vcvtnd_u64_f64): Likewise.
14725         (vcvtns_u32_f32): Likewise.
14726         (vcvtpd_u64_f64): Likewise.
14727         (vcvtps_u32_f32): Likewise.
14728
14729 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14730
14731         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
14732         CSEL of zero_extended registers.
14733
14734 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14735
14736         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
14737         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
14738
14739 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14740
14741         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
14742         false when argument string is not found in the attributes table
14743         at all.
14744
14745 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
14746
14747         PR target/68609
14748         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
14749         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
14750         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
14751         precision estimate.
14752
14753 2016-01-15  Richard Biener  <rguenther@suse.de>
14754
14755         PR tree-optimization/66856
14756         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
14757         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
14758         (vect_create_new_slp_node): Increment stmt reference count.
14759         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
14760         an SLP tree before swapping operands.
14761         (vect_build_slp_tree): Likewise.
14762         (destroy_bb_vec_info): Free stmt info after SLP instances.
14763         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
14764         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
14765         (STMT_VINFO_NUM_SLP_USES): New macro.
14766
14767 2016-01-15  Richard Biener  <rguenther@suse.de>
14768
14769         PR debug/69137
14770         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
14771         (add_linkage_name): ... here.
14772         (gen_typedef_die): Use add_linkage_name_raw instead of
14773         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
14774         if necessary.
14775
14776 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
14777
14778         * gimplify.c (oacc_default_clause): Decode reference and pointer
14779         types for both kernels and parallel regions.
14780
14781 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
14782
14783         PR middle-end/69246
14784         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
14785
14786 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
14787
14788         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
14789         (convert_scalars_to_vector): Likewise.
14790
14791 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
14792
14793         * doc/extend.texi (Type Traits): Fix grammar.
14794
14795 2016-01-15  Martin Jambor  <mjambor@suse.cz>
14796
14797         * tree-inline.c (remap_decl): Use existing dclarations if
14798         remapping a type and prevent_decl_creation_for_types.
14799         (replace_locals_stmt): Do an initial remapping of non-VLA typed
14800         decls first.  Do real remapping with
14801         prevent_decl_creation_for_types set.
14802         * tree-inline.h (copy_body_data): New field
14803         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
14804         padding.
14805
14806 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14807
14808         * config/s390/s390.opt (mmvcle): More verbose help text.
14809
14810 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14811
14812         * config/s390/s390.opt: Add period to -mzvector option text.
14813
14814 2016-01-15  Richard Biener  <rguenther@suse.de>
14815
14816         PR tree-optimization/68961
14817         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
14818         of invariants in stores again.
14819
14820 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14821
14822         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
14823
14824 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
14825
14826         * config/i386/i386.c (ix86_expand_branch): Don't split
14827         DI mode xor instruction to SI mode.
14828
14829 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
14830
14831         PR ipa/68148
14832         * ipa-icf.c (sem_function::merge): Virtual functions may become
14833         reachable even if they address is not taken and there are no
14834         idrect calls.
14835
14836 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
14837
14838         * lto-streamer-out.c (subtract_estimated_size): New function.
14839         (get_symbol_initial_value): Use it.
14840
14841 2016-01-15  Christian Bruel  <christian.bruel@st.com>
14842
14843         PR target/65837
14844         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
14845         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
14846         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
14847         use add_builtin_function_ext_scope instead of add_builtin_function.
14848         (neon_set_p, neon_crypto_set_p): Remove.
14849         (arm_init_builtins): Always call arm_init_neon_builtins and
14850         arm_init_crypto_builtins.
14851         (arm_expand_builtin): Check that builtins are allowed for the arch.
14852         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
14853         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
14854         arm_init_neon_builtins call.
14855
14856 2016-01-15  Richard Biener  <rguenther@suse.de>
14857
14858         PR tree-optimization/69117
14859         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
14860         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
14861         of the leader conservatively.
14862         (free_scc_vn): Restore original SSA name infos.
14863
14864 2016-01-14  Jeff Law  <law@redhat.com>
14865
14866         PR tree-optimization/69270
14867         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
14868         single bit of precision, verify it's also unsigned.
14869         (record_edge_info): Use constant_boolean_node rather than fold_convert
14870         to convert boolean_true/boolean_false to the right type.
14871
14872 2016-01-14  Richard Henderson  <rth@redhat.com>
14873
14874         PR rtl-opt/69014
14875         * loop-doloop.c (record_reg_sets): New.
14876         (doloop_optimize): Reject the transform if the sequence
14877         clobbers registers live at the end of the loop block.
14878         (doloop_optimize_loops): Enable df_live if needed.
14879
14880 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
14881
14882         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
14883         * config/rs6000/rs6000.c: Likewise.
14884         * config/rs6000/rs6000.h: Likewise.
14885         * config/rs6000/rs6000.md: Likewise.
14886         * doc/extend.texi: Likewsie.
14887
14888 2016-01-14  Jeff Law  <law@redhat.com>
14889
14890         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
14891         typo.
14892
14893 2016-01-14  Richard Henderson  <rth@redhat.com>
14894
14895         PR c/69272
14896         PR tree-opt/68964
14897         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
14898         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
14899         instead of builtin_decl_declared_p to test for declaration.
14900
14901 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
14902
14903         * doc/loop.texi (Loop Analysis and Representation): Document
14904         loop_depth function.
14905
14906 2016-01-14  Tom de Vries  <tom@codesourcery.com>
14907
14908         PR tree-optimization/68773
14909         * omp-low.c (expand_omp_target): Don't set force_output.
14910         * varpool.c (varpool_node::get_create): Same.
14911         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
14912         offload_funcs with force_output.
14913
14914 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
14915
14916         PR debug/69244
14917         * lra-eliminations.c (move_plus_up): Don't change anything if either
14918         the outer or inner subreg mode is not MODE_INT.
14919         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
14920         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
14921
14922 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
14923
14924         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
14925         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
14926         reduc_uplus_@var{m}): Remove.
14927         * expr.c (expand_expr_real_2): Remove expansion path for
14928         reduc_[us](min|max|plus) optabs.
14929         * optabs-tree.c (scalar_reduc_to_vector): Remove.
14930         * optabs-tree.h (scalar_reduc_to_vector): Remove.
14931         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
14932         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
14933         * tree-vect-loop.c (vectorizable_reduction): Remove test for
14934         reduc_[us](min|max|plus) optabs.
14935
14936 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
14937
14938         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
14939         (reduc_plus_scal_v2sf): New.
14940         (reduc_smax_v2sf): Rename to...
14941         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
14942         (reduc_smin_v2sf): Rename to...
14943         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
14944
14945 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
14946
14947         * alias.c (compare_base_symbol_refs): New function.
14948         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
14949         it.
14950
14951 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
14952
14953         PR middle-end/68146
14954         PR tree-optimization/69155
14955         * tree-complex.c: Include cfganal.h.
14956         (phis_to_revisit): New variable.
14957         (extract_component): Add phiarg_p argument.  Assert that returned
14958         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
14959         (update_phi_components): Partly rewrite to use loop over real/imag
14960         components instead of code duplication.  If extract_component returns
14961         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
14962         create_tmp_reg into the PHI node instead, and mention the phi triplet
14963         in phis_to_revisit.
14964         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
14965         in phis_to_revisit at the end.
14966
14967 2016-01-14  Richard Biener  <rguenther@suse.de>
14968
14969         PR tree-optimization/68060
14970         * tree-vect-loop.c (vect_is_simple_reduction): Check the
14971         outer loop reduction is only used in the inner loop before
14972         detecting a double reduction.
14973
14974 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
14975
14976         PR target/68269
14977         * combine.c (expand_field_assignment): Punt if compute_mode is
14978         unsupported scalar mode.
14979
14980 2016-01-14  Richard Biener  <rguenther@suse.de>
14981
14982         PR tree-optimization/66856
14983         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
14984         SLP node only if it built successfully.
14985         (vect_analyze_slp_instance): Adjust.
14986
14987 2016-01-14  Jeff Law  <law@redhat.com>
14988
14989         PR tree-optimization/69270
14990         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
14991         (record_edge_info): Use it.  Convert boolean_{true,false}_node
14992         to the type of op0.
14993
14994 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
14995
14996         PR ipa/66487
14997         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
14998         use block_ultimate_origin
14999         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
15000
15001 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
15002
15003         * doc/invoke.texi (Submodel Options): Rename section to
15004         "Machine-Dependent Options" to better reflect its content.
15005         Rewrite introductory text to remove archaic CPU names.
15006         Update references.
15007
15008 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
15009
15010         * doc/invoke.texi (Code Gen Options): Move section up in file,
15011         before target-specific options.  Update menu and option summary
15012         to reflect the new section ordering.
15013
15014 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
15015
15016         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
15017         (C++ Dialect Options): Add cross-reference to -std option.
15018         * doc/standards.texi (C++ Language): Document C++14 support.
15019
15020 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15021
15022         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
15023         for pack/unpack functions for __ibm128.
15024         (PACK_IF): Likewise.
15025         (UNPACK_IF): Likewise.
15026
15027         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
15028         support for __ibm128 pack/unpack functions.
15029         (rs6000_invalid_builtin): Likewise.
15030         (rs6000_init_builtins): Likewise.
15031         (rs6000_opt_masks): Likewise.
15032
15033         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
15034         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
15035         functions
15036         (RS6000_BTM_COMMON): Likewise.
15037
15038         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
15039         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
15040         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
15041         128-bit floating point.  Add support for the double values to be
15042         in Altivec registers for TF/IF packing and unpacking, but restrict
15043         TD packing sub-fields to be FPR registers.  Don't allow overlapped
15044         register support for packing.  Allow pack inputs to be memory
15045         locations.  Don't build generator functions for unpack<mode>_dm
15046         and unpack<mode>_nodm.
15047         (unpack<mode>_dm): Likewise.
15048         (unpack<mode>_nodm): Likewise.
15049         (pack<mode>): Likewise.
15050
15051         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
15052         built-in functions to pack/unpack explicit __ibm128 values.
15053         (__builtin_unpack_ibm128): Likewise.
15054
15055         * doc/extend.texi (PowerPC Built-in Functions): Document
15056         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
15057
15058 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
15059
15060         PR c/66208
15061         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
15062         Add new arg loc and pass it down as context.
15063         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
15064         to the location to use for the warning.
15065         (check_function_arguments): New arg loc.  All callers changed.  Pass
15066         it to check_function_nonnull.
15067         * c-common.h (check_function_arguments): Adjust declaration.
15068
15069 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
15070
15071         PR tree-optimization/69156
15072         * gimple.c (validate_type): Removed.
15073         (gimple_builtin_call_types_compatible_p): Use
15074         useless_type_conversion_p instead of validate_type.
15075         * value-prof.c (gimple_stringop_fixed_value): Fold
15076         icall_size to correct type.
15077
15078 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
15079
15080         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
15081         effects.
15082
15083 2016-01-13  Richard Henderson  <rth@redhat.com>
15084
15085         PR tree-opt/68964
15086         * target.def (builtin_tm_load, builtin_tm_store): Remove.
15087         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
15088         (ix86_builtin_tm_store): Remove.
15089         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
15090         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
15091         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
15092         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
15093         * doc/tm.texi: Rebuild.
15094
15095         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
15096         (BUILT_IN_TM_MEMCPY_RTWN): New.
15097         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
15098         fallback from vector to integer helpers.
15099         (build_tm_load): Handle vector types directly, instead of
15100         via target hook.
15101         (build_tm_store): Likewise.
15102         (expand_assign_tm): Prepare for register types not handled by
15103         the above.  Copy them to memory and use memcpy.
15104         * tree.c (tm_define_builtin): New.
15105         (find_tm_vector_type): New.
15106         (build_tm_vector_builtins): New.
15107         (build_common_builtin_nodes): Call it.
15108
15109 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
15110
15111         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
15112         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
15113
15114 2016-01-13  Tom de Vries  <tom@codesourcery.com>
15115
15116         PR tree-optimization/69169
15117         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
15118         handled_struct_type param.
15119         (create_variable_info_for, intra_create_variable_infos): Call
15120         create_variable_info_for_1 with extra arg.
15121
15122 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
15123
15124         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
15125         and "armv8.1-a+crc" entries.
15126
15127 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
15128
15129         PR target/69228
15130         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
15131         Change first operand predicate from register_or_constm1_operand
15132         to register_operand.
15133         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
15134         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
15135         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
15136         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
15137         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
15138         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
15139         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
15140         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
15141         comparison with constm1_rtx from vec_prefetch_gen part.
15142
15143 2016-01-13  Richard Biener  <rguenther@suse.de>
15144
15145         PR tree-optimization/69013
15146         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
15147         Exchange assert for a test.
15148
15149 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15150
15151         PR target/69247
15152         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
15153
15154 2016-01-13  Richard Biener  <rguenther@suse.de>
15155
15156         PR tree-optimization/69242
15157         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
15158         assert with a check.
15159
15160 2016-01-13  Richard Biener  <rguenther@suse.de>
15161
15162         PR tree-optimization/69186
15163         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15164         Properly guard vect_update_misalignment_for_peel call.
15165
15166 2016-01-12  Jeff Law  <law@redhat.com>
15167
15168         PR tree-optimization/pr67755
15169         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
15170         "need_profile_correction".
15171         (thread_block_1): Initialize new field to false by default.  If we
15172         have multiple thread paths through a common joiner to different
15173         final targets, then set new field to true.
15174         (compute_path_counts): Only do count adjustment when it's really
15175         needed.
15176
15177 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
15178
15179         * doc/invoke.texi (Spec Files): Move section down in file, past
15180         all command-line option descriptions.
15181
15182 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15183
15184         PR middle-end/54809
15185         * doc/gty.texi: Remove documentation of mark_hook.
15186         * gengtype.c (struct write_types_data): Remove code to support
15187         mark_hook attribute.
15188         (walk_type): Likewise.
15189         (write_func_for_structure): Likewise.
15190
15191 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
15192
15193         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
15194         Directory Options, and -specs= to Overall Options.
15195         (Overall Options): Adjust similarly.  Reorder to group related
15196         options together.  Make -specs= cross-reference the spec file details.
15197         (Directory Options): Adjust similarly.
15198
15199 2016-01-12  Jeff Law  <law@redhat.com>
15200
15201         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
15202
15203 2016-01-12  Olivier Hainque  <hainque@adacore.com>
15204
15205         * gcc.c (spec_undefvar_allowed): New global.
15206         (process_command): Set to true when running for --version or --help,
15207         alone or together.
15208         (getenv_spec_function): When the variable is not defined, use the
15209         variable name as the variable value if we're allowed not to issue
15210         a fatal error.
15211
15212 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
15213
15214         PR tree-optimization/68911
15215         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
15216         information computed for expression "init + nit * step".
15217
15218 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
15219
15220         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
15221         about name of GCC executable.  Remove deleted node from menu.
15222         (Directory Options) <-B>: Remove cross-reference to deleted node.
15223         (Target Options): Delete section.
15224
15225 2016-01-12  Christian Bruel  <christian.bruel@st.com>
15226
15227         PR target/69180
15228         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
15229         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
15230
15231 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
15232
15233         PR target/69198
15234         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
15235         aligned_mem is properly set for AVX512-VL floating point masked
15236         stores.
15237
15238         PR target/69175
15239         * ifcvt.c (cond_exec_process_if_block): When removing the last
15240         insn from then_bb, remove also any possible barriers that follow it.
15241
15242 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
15243
15244         PR target/68456
15245         PR target/69226
15246         * config/i386/iamcu.h (SIZE_TYPE): New macro.
15247         (PTRDIFF_TYPE): Likewise.
15248         (WCHAR_TYPE): Likewise.
15249         (WCHAR_TYPE_SIZE): Likewise.
15250         (STDINT_LONG32): Likewise.
15251
15252 2016-01-12  Richard Biener  <rguenther@suse.de>
15253
15254         PR tree-optimization/69053
15255         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
15256         convert initial value for cond reductions.
15257
15258 2016-01-12  Richard Biener  <rguenther@suse.de>
15259
15260         PR tree-optimization/69007
15261         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
15262         widen_sum after dot_prod and sad.
15263
15264 2016-01-12  Richard Biener  <rguenther@suse.de>
15265
15266         PR tree-optimization/69168
15267         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
15268         pattern stmt SLP type.
15269         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
15270         end up unused so cope with that case.
15271
15272 2016-01-12  Richard Biener  <rguenther@suse.de>
15273
15274         PR tree-optimization/69157
15275         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
15276         stmts def type only during analyze phase.
15277         (vectorizable_call): Likewise.
15278         (vectorizable_simd_clone_call): Likewise.
15279         (vectorizable_conversion): Likewise.
15280         (vectorizable_assignment): Likewise.
15281         (vectorizable_shift): Likewise.
15282         (vectorizable_operation): Likewise.
15283         (vectorizable_store): Likewise.
15284         (vectorizable_load): Likewise.
15285
15286 2016-01-12  Richard Biener  <rguenther@suse.de>
15287
15288         PR tree-optimization/69174
15289         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
15290         space.
15291         (vectorizable_load): Properly compute the number of loads needed
15292         for permuted strided SLP loads and do not spuriously assign
15293         to SLP_TREE_VEC_STMTS.
15294
15295 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
15296
15297         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
15298         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
15299         (MD_EXEC_PREFIX): Remove.
15300         (MD_STARTFILE_PREFIX) Removee.
15301         (FILE_NAME_ABSOLUTE_P): Remove.
15302         (CPP_SPEC): Do not read macros from sys/version.h.
15303         (LINK_COMMAND_SPEC): Remove.
15304         (LOCAL_INCLUDE_DIR): Remove.
15305         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
15306         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
15307         (POST_LINK_SPEC): Define to invoke stubify after linker
15308         (LIBSTDCXX): Remove define
15309         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
15310         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
15311         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
15312         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
15313         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
15314         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
15315         (i386_djgpp_asm_named_section): Add propotype of new procedure
15316
15317         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
15318         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
15319         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
15320         in config/i386/djgpp.h).
15321         (STANDARD_STARTFILE_PREFIX_2): Define identical to
15322         STANDARD_STARTFILE_PREFIX_1.
15323         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
15324         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
15325         installation errors.
15326         (MAX_OFILE_ALIGNMENT): Define to 128.
15327         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
15328
15329         * config/i386/djgpp.c: New file. Add implementation of
15330         i386_djgpp_asm_named_section.
15331
15332         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
15333
15334         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
15335         Add rule for building djgpp.o.
15336
15337 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15338
15339         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
15340         (rtx_is_swappable_p): Reductions are swappable.
15341         (insn_is_swappable_p): V2DF reductions are swappable.
15342
15343 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
15344
15345         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
15346         reloads for other unsupported memory operands.
15347
15348 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
15349             Jim Wilson  <jim.wilson@linaro.org>
15350
15351         PR target/69194
15352         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
15353         copy_to_mode_reg instead of force_reg.
15354
15355 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
15356
15357         PR target/69225
15358         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
15359         TARGET_80387 is true.
15360
15361 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
15362
15363         PR target/69071
15364         * lra-eliminations.c (move_plus_up): Only move plus up
15365         if subreg of the constant can be simplified into constant
15366         and use the simplified subreg of the constant instead of
15367         the original constant.
15368
15369         * fold-const.c (fold_convertible_p): Don't return true
15370         for conversion of VECTOR_TYPE to same sized integral type.
15371         (fold_convert_loc): Fix up formatting.  Fold conversion of
15372         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
15373         instead of NOP_EXPR.
15374
15375         PR tree-optimization/69214
15376         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
15377         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
15378         Formatting fix.
15379
15380         PR tree-optimization/69207
15381         * tree-vect-slp.c (vect_get_constant_vectors): For
15382         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
15383         fold_convertible_p to vector_type's element type, and always
15384         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
15385
15386 2016-01-11  Richard Biener  <rguenther@suse.de>
15387
15388         PR tree-optimization/69173
15389         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
15390         fixup the cycle if all stmts are in a pattern.
15391
15392 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
15393
15394         PR middle-end/68999
15395         * alias.c (base_alias_check): Move check for addresses with
15396         alignment ANDs before the call for compare_base_decls.
15397         (memrefs_conflict_p): Return -1 for different decls
15398         that went through alignment adjustments.
15399
15400 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15401
15402         PR rtl-optimization/68796
15403         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
15404         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
15405         and QImode comparisons against zero with CC_NZmode.
15406         * config/aarch64/iterators.md (short_mask): New mode_attr.
15407
15408 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
15409
15410         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
15411         (<avx512>_store<mode>_mask): Likewise.
15412
15413 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
15414             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15415
15416         PR rtl-optimization/68841
15417         * ifcvt.c (struct noce_if_info): Add orig_x field.
15418         (bbs_ok_for_cmove_arith): Add to_rename parameter.
15419         Don't record conflicts on to_rename if it's present.
15420         Allow memory destinations in sets.
15421         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
15422         blocks, passing orig_x to the checks.
15423         (noce_process_if_block): Set if_info->orig_x appropriately.
15424
15425 2016-01-11  Tom de Vries  <tom@codesourcery.com>
15426
15427         PR tree-optimization/69069
15428         * tree-parloops.c (create_parallel_loop): Add missing phi args.
15429
15430 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
15431
15432         PR rtl-optimization/68920
15433         * config/i386/i386.c (ix86_option_override_internal): Restrict number
15434         of conditional moves for  RTL if-conversion to 1 for
15435         TARGET_ONE_IF_CONV_INSN.
15436         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
15437         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
15438         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
15439         parameter to restirct number of conditional moves for
15440         RTL if-conversion.
15441         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
15442         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
15443         conditionl moves.
15444
15445 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
15446
15447         PR bootstrap/69123
15448         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
15449         onepart vars.  Fix typo in comment.  Fix reversed condition in
15450         unshare test.
15451         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
15452
15453         PR bootstrap/69123
15454         * var-tracking.c (dump_onepart_variable_differences): New.
15455         (dataflow_set_different): If a detailed dump is requested,
15456         delay early returns and dump differences between onepart
15457         variables present before and after, and added variables.
15458
15459 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
15460
15461         PR target/69010
15462         * expr.c (expand_expr_real_1): For boolean vector constants
15463         with a scalar mode use const_scalar_mask_from_tree.
15464         (const_scalar_mask_from_tree): New.
15465         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
15466         assigned to a mask type to handle constants.
15467
15468 2016-01-11  Martin Jambor  <mjambor@suse.cz>
15469
15470         PR ipa/69044
15471         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
15472         useless parameters if we cannot change function signature.
15473
15474 2016-01-11  Martin Jambor  <mjambor@suse.cz>
15475
15476         PR ipa/66616
15477         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
15478         flag.
15479
15480 2016-01-11  Tom de Vries  <tom@codesourcery.com>
15481
15482         PR tree-optimization/69109
15483         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
15484         latch with phi.
15485
15486 2016-01-11  Tom de Vries  <tom@codesourcery.com>
15487
15488         PR tree-optimization/69108
15489         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
15490         res is not used in a phi.
15491
15492 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
15493
15494         PR 67425
15495         * common.opt (frandom-seed): Fix parameter name.
15496         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
15497
15498 2016-01-11  Tom de Vries  <tom@codesourcery.com>
15499
15500         PR tree-optimization/69058
15501         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
15502         not supported.
15503
15504 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
15505
15506         * config/arc/arc.opt (mdiv-rem): Add period to the end.
15507         (mcode-density): Likewise.
15508
15509 2016-01-10  Tom de Vries  <tom@codesourcery.com>
15510
15511         PR tree-optimization/69062
15512         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
15513         (parallelize_loops): Don't paralelize loop that has phi with address
15514         arg.
15515
15516 2016-01-10  Tom de Vries  <tom@codesourcery.com>
15517
15518         PR tree-optimization/69039
15519         * tree-parloops.c (try_create_reduction_list): Only allow single exit
15520         phi for reduction.
15521
15522 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
15523
15524         PR middle-end/68743
15525         * match.pd: Require target has function_c99_misc before doing
15526         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
15527
15528 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
15529
15530         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
15531         use GMPINC.
15532         * configure: Regenerate.
15533
15534 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
15535
15536         PR middle-end/50865
15537         PR tree-optimization/69097
15538         * fold-const.h (expr_not_equal_to): New prototype.
15539         * fold-const.c: Include stringpool.h and tree-ssanames.h.
15540         (expr_not_equal_to): New function.
15541         * match.pd (X % -Y is the same as X % Y): Don't optimize
15542         unless X is known not to be equal to minimum or Y is known
15543         not to be equal to -1.
15544         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
15545         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
15546         (simplify_stmt_using_ranges): Adjust caller.
15547         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
15548         substitute_and_fold.
15549
15550 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
15551
15552         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
15553         w/o DECL_NAME.
15554
15555 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
15556
15557         PR tree-optimization/69167
15558         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
15559         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
15560         ops[0] comparison.
15561         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
15562
15563 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
15564             Richard Biener  <rguenther@suse.de>
15565
15566         PR tree-optimization/68707
15567         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
15568         instances that can be handled via vect_load_lanes.
15569
15570 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
15571
15572         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
15573         if we can't determine address equivalence.
15574         * alias.c (compare_base_decl): Update for changed return value of
15575         symtab_node::equal_address_to.
15576
15577 2016-01-08  Jason Merrill  <jason@redhat.com>
15578
15579         PR c++/68983
15580         PR c++/67557
15581         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
15582         * expr.c (store_field): Not here.
15583         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
15584         call with TREE_ADDRESSABLE type.
15585         * tree-cfg.c (verify_gimple_call): Adjust.
15586
15587 2016-01-08  Olivier Hainque  <hainque@adacore.com>
15588
15589         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
15590         libc_internal.
15591
15592 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
15593
15594         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
15595         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
15596         (reduc_smin_v2sf): Rename to...
15597         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
15598         (reduc_splus_v2sf): Rename to...
15599         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
15600
15601 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
15602
15603         PR tree-optimization/69162
15604         * gimplify.c (gimplify_va_arg_expr): Encode original type of
15605         valist argument in another argument.
15606         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
15607         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
15608         to determine the va_list type, build a MEM_REF instead of
15609         build_fold_indirect_ref.
15610
15611         PR tree-optimization/69172
15612         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
15613         gimple_build.
15614
15615 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15616
15617         PR tree-optimization/67781
15618         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
15619         and cmpnop in two steps: first the ones not accessed in original
15620         gimple expression in a endian independent way and then the ones not
15621         accessed in the final result in an endian-specific way.
15622
15623 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
15624
15625         PR tree-optimization/69083
15626         * tree-vect-slp.c (vect_get_constant_vectors): For
15627         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
15628         element type.  If op is fold_convertible_p to vector_type's element
15629         type, use NOP_EXPR instead of VCE.
15630
15631 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
15632
15633         PR rtl-optimization/67778
15634         PR rtl-optimization/68634
15635         PR rtl-optimization/68909
15636         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
15637         block from the stack until done with it.  Remove a superfluous
15638         bitmap set.  Remove a superfluous bitmap test.
15639
15640 2016-01-07  Martin Sebor  <msebor@redhat.com>
15641
15642         PR c/68966
15643         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
15644         constraint on the type of arguments.
15645
15646 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
15647
15648         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
15649         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
15650         unaligned_access on the gcc_options set.
15651         * config/arm/arm.c (arm_option_override_internal): Use
15652         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
15653
15654 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
15655
15656         PR target/69140
15657         * config/i386/i386.c (ix86_frame_pointer_required): Enable
15658         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
15659
15660 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
15661
15662         Revert
15663         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
15664
15665         PR target/69140
15666         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
15667         depending on frame_pointer_needed before remaining integer and SSE
15668         registers are saved.
15669
15670 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
15671
15672         PR 1078
15673         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
15674
15675 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
15676
15677         PR target/69171
15678         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
15679         Use the "xBm" constraint.
15680         (float<sseintvecmodelower><mode>2<mask_name><round_name):
15681         Likewise.
15682         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
15683         (sse_cvtsi2ssq<round_name>): Likewise.
15684         (sse_cvtss2si<round_name>): Likewise.
15685         (sse_cvtss2siq<round_name>): Likewise.
15686         (sse2_cvtsi2sdq<round_name>): Likewise.
15687         (sse2_cvtsd2si<round_name>): Likewise.
15688         (sse2_cvtsd2siq<round_name>): Likewise.
15689         * config/i386/subst.md (round_nimm_scalar_predicate): New
15690         predicate.
15691
15692 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
15693
15694         PR middle-end/67639
15695         * varasm.c (make_decl_rtl): Mark invalid register vars as
15696         DECL_EXTERNAL.
15697
15698         PR rtl-optimization/66206
15699         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
15700         All callers changed.
15701
15702 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
15703
15704         PR tree-optimization/69141
15705         * tree-ssa-pre.c: Include langhooks.h.
15706         (eliminate_dom_walker::before_dom_children): Use
15707         lang_hooks.decl_printable_name instead of
15708         cgraph_node::get ()->name ().
15709
15710         PR middle-end/68960
15711         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
15712         it and DECL_ALIGN too.
15713
15714 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
15715
15716         * config/mips/mips-ftypes.def: Sort to lexicographical order.
15717
15718 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
15719
15720         PR target/69140
15721         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
15722         depending on frame_pointer_needed before remaining integer and SSE
15723         registers are saved.
15724
15725 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15726
15727         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
15728         mode iterator with VSX_M2.
15729         (*p9_vecstore_<mode>): Likewise.
15730         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
15731         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
15732         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
15733         (define_split for VSX_LE128 stores): Likewise.
15734         (define_peephole2 for TImode LE swaps): Likewise.
15735         (define_split for VSX_LE128 post-reload stores): Likewise.
15736
15737 2016-01-06  Marek Polacek  <polacek@redhat.com>
15738
15739         PR sanitizer/69099
15740         * convert.c (convert_to_integer_1): Adjust call to
15741         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
15742         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
15743         EXPR instead of ARG.
15744         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
15745
15746 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
15747
15748         PR 1078
15749         * doc/extend.texi (RL78 Variable Attributes): New section.
15750
15751 2016-01-05  Marek Polacek  <polacek@redhat.com>
15752
15753         PR c/69104
15754         * builtins.c (get_memmodel): Use expansion point location rather than
15755         the input location.  Call warning_at rather than warning.
15756         (expand_builtin_atomic_compare_exchange): Likewise.
15757         (expand_builtin_atomic_load): Likewise.
15758         (expand_builtin_atomic_store): Likewise.
15759         (expand_builtin_atomic_clear): Likewise.
15760
15761 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
15762
15763         PR target/68991
15764         * config/i386/i386.c (ix86_expand_vector_logical_operator):
15765         Replace nonimmediate_operand with vector_operand.
15766         * config/i386/predicates.md (vector_operand): New predicate.
15767         (general_vector_operand): Replace nonimmediate_operand with
15768         vector_operand.
15769         * config/i386/sse.md: Replace nonimmediate_operand with
15770         vector_operand and m constraint with Bm constraint on SSE
15771         patterns with 16-byte memory operand.
15772         * config/i386/subst.md (round_nimm_predicate): Replace
15773         nonimmediate_operand with vector_operand.
15774         (round_saeonly_nimm_predicate): Likewise.
15775         (round_saeonly_nimm_scalar_predicate): New.
15776
15777 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
15778
15779         PR target/68991
15780         * config/i386/constraints.md (Bm): New constraint.
15781         * config/i386/predicates.md (vector_memory_operand): New
15782         predicate.
15783         * config/i386/sse.md: Replace xm with xBm in plusminus and
15784         any_logic patterns.
15785
15786 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
15787
15788         PR 1078
15789         * doc/extend.texi (V850 Function Attributes): New section.
15790         (V850 Variable Attributes): New section.
15791
15792 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
15793
15794         PR 1078
15795         * doc/extend.texi (MicroBlaze Function Attributes): Document
15796         interrupt_handler and fast_interrupt attributes.
15797
15798 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
15799
15800         PR other/60465
15801         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
15802         for local symbolic operands.
15803         * config/ia64/predicates.md (local_symbolic_operand64): New
15804         predicate.
15805
15806 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15807
15808         PR rtl-optimization/68651
15809         * combine.c (combine_simplify_rtx): Canonicalize x + x into
15810         x << 1.
15811
15812 2016-01-05  Nathan Sidwell  <nathan@acm.org>
15813
15814         * alias.c (compare_base_decls): Use symtab_node::get.
15815
15816 2016-01-05  Nick Clifton  <nickc@redhat.com>
15817
15818         PR target/68770
15819         * ira-costs.c (copy_cost): Initialise the t_icode field of the
15820         secondary_reload_info structure.
15821
15822         PR target/66655
15823         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
15824         decls if weak support is available.
15825
15826 2016-01-04  Martin Sebor  <msebor@redhat.com>
15827
15828         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
15829
15830 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
15831
15832         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
15833         OPTION_MASK_P9_DFORM.
15834
15835         * config/rs6000/constraints.md (wo constraint): New constraint for
15836         ISA 3.0 (power9).
15837
15838         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
15839         for wo constraint.
15840         (rs6000_init_hard_regno_mode_ok): Likewise.
15841
15842         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
15843         wo constraint.
15844
15845         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
15846         expanders not to have constraints.  Add support for ISA 3.0 xxperm
15847         instruction.  Add support for fusing xxlor with xxperm.
15848         (altivec_vperm_<mode>_internal): Likewise.
15849         (altivec_vperm_v8hiv16qi): Likewise.
15850         (altivec_vperm_<mode>v16q): Likewise.
15851         (altivec_vperm_<mode>_uns): Likewise.
15852         (vperm_v8hiv4si): Likewise.
15853         (vperm_v16qiv8hi): Likewise.
15854
15855         * doc/md.texi (RS/6000 constraints): Document wo constraint.
15856
15857 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
15858
15859         Update copyright years.
15860
15861         * gcc.c (process_command): Update copyright notice dates.
15862         * gcov-dump.c (print_version): Ditto.
15863         * gcov.c (print_version): Ditto.
15864         * gcov-tool.c (print_version): Ditto.
15865         * gengtype.c (create_file): Ditto.
15866         * doc/cpp.texi: Bump @copying's copyright year.
15867         * doc/cppinternals.texi: Ditto.
15868         * doc/gcc.texi: Ditto.
15869         * doc/gccint.texi: Ditto.
15870         * doc/gcov.texi: Ditto.
15871         * doc/install.texi: Ditto.
15872         * doc/invoke.texi: Ditto.
15873
15874 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15875
15876         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
15877         modes larger than TImode as TImode if NEON is not enabled.
15878
15879 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15880
15881         PR target/69100
15882         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
15883         mode for %f0-%f31 only if TARGET_FPU.
15884
15885 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15886
15887         PR target/69072
15888         * config/sparc/sparc.c (scan_record_type): Take into account subfields
15889         to compute the PACKED_P predicate.
15890         (function_arg_record_value): Minor tweaks.
15891
15892 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15893
15894         * doc/install.texi (--with-multilib-list): Describe the meaning of the
15895         option for arm*-*-* targets.
15896
15897 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
15898
15899         * doc/extend.texi (Common Function Attributes): Move docs for
15900         MSP430-specific attributes to....
15901         (MSP430 Function Attributes): ...here.  Delete the redundant
15902         entries and copy-edit the remaining text.
15903         (MSP430 Variable Attributes): Use uniform format for index
15904         entries and add a cross-reference to the corresponding function
15905         attribute docs.
15906
15907 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
15908
15909         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
15910         -finite-math typo.
15911         (x86 Options): Likewise.
15912
15913 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
15914
15915         PR 1078
15916
15917         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
15918         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
15919         to corresponding attribute.
15920
15921 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
15922
15923         * doc/extend.texi (Common Function Attributes) <noplt>: Move
15924         to correct alphabetization of table.  Copy-edit and correct
15925         markup.
15926         <stack_protect>: Likewise.
15927         <target_clones>: Likewise.
15928         <simd>: Likewise.
15929         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
15930         Correct punctuation.
15931         (Code Gen Options) <-fno-plt>: Copy-edit.
15932
15933 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15934
15935         PR target/68917
15936         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
15937         SI values.  Explicitly convert SI to DI and vice-versa.
15938
15939 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
15940
15941         PR tree-optimization/69070
15942         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
15943         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
15944
15945         PR sanitizer/69055
15946         * ubsan.c (ubsan_instrument_float_cast): Call
15947         initialize_sanitizer_builtins.
15948
15949         PR target/69015
15950         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
15951 \f
15952 Copyright (C) 2016 Free Software Foundation, Inc.
15953
15954 Copying and distribution of this file, with or without modification,
15955 are permitted in any medium without royalty provided the copyright
15956 notice and this notice are preserved.