PR c++/77539
[official-gcc.git] / gcc / ChangeLog
blob65dc1822376aa178f8221c432a2fd2930bc0bfa6
1 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
3         * target.def (lra_p): Change commentary (for the manual) for the
4         new default.
5         * doc/tm.texi: Regenerate.
7 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
9         * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
10         * config/arm/arm.c (TARGET_LRA_P): Delete macro.
11         * config/i386/i386.c (TARGET_LRA_P): Delete macro.
12         * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
14 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
16         * targhooks.c (default_lra_p): Return true instead of false.
18 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
20         * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
21         hook_bool_void_false.
22         * config/avr/avr.c: Ditto.
23         * config/bfin/bfin.c: Ditto.
24         * config/c6x/c6x.c: Ditto.
25         * config/cr16/cr16.c: Ditto.
26         * config/cris/cris.c: Ditto.
27         * config/epiphany/epiphany.c: Ditto.
28         * config/fr30/fr30.c: Ditto.
29         * config/frv/frv.c: Ditto.
30         * config/h8300/h8300.c: Ditto.
31         * config/ia64/ia64.c: Ditto.
32         * config/iq2000/iq2000.c: Ditto.
33         * config/lm32/lm32.c: Ditto.
34         * config/m32c/m32c.c: Ditto.
35         * config/m32r/m32r.c: Ditto.
36         * config/m68k/m68k.c: Ditto.
37         * config/mcore/mcore.c: Ditto.
38         * config/microblaze/microblaze.c: Ditto.
39         * config/mmix/mmix.c: Ditto.
40         * config/mn10300/mn10300.c: Ditto.
41         * config/moxie/moxie.c: Ditto.
42         * config/msp430/msp430.c: Ditto.
43         * config/nios2/nios2.c: Ditto.
44         * config/nvptx/nvptx.c: Ditto.
45         * config/pa/pa.c: Ditto.
46         * config/pdp11/pdp11.c: Ditto.
47         * config/rl78/rl78.c: Ditto.
48         * config/sparc/sparc.c: Ditto.
49         * config/spu/spu.c: Ditto.
50         * config/stormy16/stormy16.c: Ditto.
51         * config/tilegx/tilegx.c: Ditto.
52         * config/tilepro/tilepro.c: Ditto.
53         * config/v850/v850.c: Ditto.
54         * config/vax/vax.c: Ditto.
55         * config/visium/visium.c: Ditto.
56         * config/xtensa/xtensa.c: Ditto.
58 2016-09-14  Jakub Jelinek  <jakub@redhat.com>
60         PR sanitizer/68260
61         * tsan.c: Include target.h.
62         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
63         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
64         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
65         BUILT_IN_ATOMIC_TEST_AND_SET entries.
66         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
68 2016-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
69             Martin Liska  <mliska@suse.cz>
71         PR middle-end/77574
72         * predict.c (force_edge_cold): Add braces to a condition.
74 2016-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
76         PR rtl-optimization/77289
77         * lra-constraints.c (get_final_hard_regno): Removed.
78         (get_hard_regno): Add new parameter final_p.
79         (get_reg_class): Directly call lra_get_elimination_hard_regno.
80         (operands_match_p): Adjust call to get_hard_regno.
81         (uses_hard_regs_p): Likewise.
82         (process_alt_operands): Likewise.
84 2016-09-13  Joe Seymour  <joe.s@somniumtech.com>
86         PR target/70713
87         * config/msp430/msp430.c (msp430_start_function): Emit an error
88         if a function is both weak and specifies an interrupt number.
90 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
92         PR tree-optimization/77454
93         * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
94         changing GIMPLE_COND.  Move update_stmt_if_modified call after this.
95         Formatting fix.
97 2016-09-13  Tamar Christina  <tamar.christina@arm.com>
99         * config/aarch64/aarch64-builtins.c 
100         (aarch64_init_simd_builtins): Fix builtin type signature printing.
102 2016-09-13  Uros Bizjak  <ubizjak@gmail.com>
104         * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
105         SFmode and SCmode arguments by reference.
107 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
109         * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
110         Rename to...
111         (selftest::test_one_liner_fixit_insert_before): ...this, and update
112         for renaming of add_fixit_insert to add_fixit_insert_before.
113         (selftest::test_one_liner_fixit_insert_after): New function.
114         (selftest::test_one_liner_fixit_validation_adhoc_locations):
115         Update for renaming of add_fixit_insert to add_fixit_insert_before.
116         (selftest::test_one_liner_many_fixits): Likewise.
117         (selftest::test_diagnostic_show_locus_one_liner): Update for
118         renaming, call new test function.
119         (selftest::test_diagnostic_show_locus_fixit_lines): Update for
120         renaming of add_fixit_insert to add_fixit_insert_before.
121         (selftest::test_fixit_consolidation): Likewise.
122         * diagnostic.c (selftest::test_print_parseable_fixits_insert):
123         Likewise.
124         * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
125         (selftest::test_applying_fixits_insert_before): ...this.
126         (selftest::test_applying_fixits_insert): Update for renaming of
127         add_fixit_insert to add_fixit_insert_before.
128         (selftest::test_applying_fixits_insert_after): New function.
129         (selftest::test_applying_fixits_insert_after_at_line_end): New
130         function.
131         (selftest::test_applying_fixits_insert_after_failure): New function.
132         (selftest::test_applying_fixits_multiple): Update for renaming of
133         add_fixit_insert to add_fixit_insert_before.
134         (selftest::change_line): Likewise.
135         (selftest::test_applying_fixits_unreadable_file): Likewise.
136         (selftest::test_applying_fixits_line_out_of_range): Likewise.
137         (selftest::test_applying_fixits_column_validation): Likewise.
138         (selftest::test_applying_fixits_column_validation): Likewise.
139         (selftest::edit_context_c_tests): Update for renamed test function;
140         call new test functions.
142 2016-09-13  Pat Haugen  <pthaugen@us.ibm.com>
144         PR tree-optimization/77536
145         PR rtl-optimization/68212
146         * config/rs6000/rs6000.md (div->recip splitter): Remove
147         optimize_insn_for_speed_p condition.
149 2016-09-13  Maciej W. Rozycki  <macro@imgtec.com>
151         * optabs.c (prepare_cmp_insn): Update documentation comment.
153 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
154             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
156         PR middle-end/77475
157         * opts.h (candidates_list_and_hint): Declare.
158         * opts-common.c (candidates_list_and_hint): New function.
159         (cmdline_handle_error): Use it.
161 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
163         * edit-context.c (edited_line::get_len): New accessor.
164         (edited_file::print_diff): Split out hunk-printing into...
165         (edited_file::print_diff_hunk): New method.
166         (edited_file::print_diff_line): New method.
168 2016-09-12  Andrew Pinski  <apinski@cavium.com>
170         * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
171         New tuning option.
172         * config/aarch64/aarch64.c (thunderx_tunings): Enable
173         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
174         (aarch64_operands_ok_for_ldpstp): Return false if
175         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
176         was SImode and the alignment is less than 8 byte.
177         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
179 2016-09-12  Orlando Arias  <oarias@knights.ucf.edu>
181         PR target/77570
182         * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
184 2016-09-12  Marek Polacek  <polacek@redhat.com>
186         * doc/extend.texi: Use lowercase "boolean".
187         * doc/invoke.texi: Likewise.
188         * doc/md.texi: Likewise.
189         * target.def: Likewise.
190         * doc/tm.texi: Regenerated.
192 2016-09-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
194         PR middle-end/77426
195         * expmed.c (synth_mult): Delete duplicate mode check.
197 2016-09-10  Tom de Vries  <tom@codesourcery.com>
199         PR C/71602
200         * builtins.c (std_canonical_va_list_type): Strictly return non-null for
201         va_list type only.
202         * config/i386/i386.c (ix86_canonical_va_list_type): Same.
203         * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
205 2016-09-09  Peter Bergner  <bergner@vnet.ibm.com>
207         PR rtl-optimization/77289
208         * lra-constraints.c (get_final_hard_regno): Add support for non hard
209         register numbers.  Remove support for subregs.
210         (get_hard_regno): Use SUBREG_P.  Don't call get_final_hard_regno().
211         (get_reg_class): Delete removed get_final_hard_regno() argument.
212         (uses_hard_regs_p): Call get_final_hard_regno().
214 2016-09-09  Martin Sebor  <msebor@redhat.com>
216         PR c/77520
217         PR c/77521
218         * pretty-print.c (pp_quoted_string): New function.
219         (pp_format): Call it for %c and %s directives.
221 2016-09-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
223         * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
224         (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
225         INITIAL_ELIMINATION_OFFSET) : Update documentation.
226         * target.def (frame_pointer_required, can_eliminate): Likewise.
227         * doc/tm.texi: Regenerated.
228         * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
229         ELIMINABLE_REGS.
230         * df-scan.c (df_hard_reg_init): Likewise.
231         * ira.c (ira_setup_eliminable_regset): Likewise.
232         * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
233         init_elim_table): Likewise.
234         * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
235         set_initial_elim_offsets, update_eliminables,
236         init_elim_table): Likewise.
237         * rtlanal.c (get_initial_register_offset): Likewise.
238         * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
239         * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
240         * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
241         * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
242         * config/fr30/fr30.h: Fix comment.
243         * config/frv/frv.c: Likewise.
244         * config/frv/frv.h: Likewise.
245         * config/ft32/ft32.h: Likewise.
246         * config/visium/visium.h: Likewise.
247         * config/pa/pa64-linux.h: Likewise.
248         * config/v850/v850.h: Likewise.
249         * config/cris/cris.c: Likewise.
250         * config/ia64/ia64.h: Likewise.
251         * config/moxie/moxie.h: Likewise.
252         * config/m32r/m32r.h: Likewise.
254 2016-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
256         PR target/77267
257         * config.in: Regenerate.
258         * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
259         New macro.
260         (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
261         (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
262         static-libmpxwrappers case.
263         (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
264         MPX_LD_AS_NEEDED_GUARD_POP.
265         * configure: Regenerate.
266         * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
267         defined if linker support "--push-state"/"--pop-state".
269 2016-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
271         * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
273 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
275         * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
276         (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
277         (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
278         (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
279         (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
280         (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
281         (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
282         Document.
283         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
284         width macros from TS 18661-1.
285         * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
287 2016-09-08  Jakub Jelinek  <jakub@redhat.com>
289         PR fortran/77516
290         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
291         OMP_CLAUSE_SAFELEN_EXPR.
293 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
295         * Makefile.in (OBJS): Add substring-locations.o.
296         * langhooks-def.h (class substring_loc): New forward decl.
297         (lhd_get_substring_location): New decl.
298         (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
299         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
300         * langhooks.c (lhd_get_substring_location): New function.
301         * langhooks.h (class substring_loc): New forward decl.
302         (struct lang_hooks): Add field get_substring_location.
303         * substring-locations.c: New file, taking definition of
304         format_warning_va and format_warning_at_substring from
305         c-family/c-format.c, making them non-static.
306         * substring-locations.h (class substring_loc): Move class here
307         from c-family/c-common.h.  Add and rewrite comments.
308         (format_warning_va): New decl.
309         (format_warning_at_substring): New decl.
310         (get_source_location_for_substring): Add comment.
312 2016-09-07  Eric Gallager  <egall@gwmail.gwu.edu>
314         * config/i386/i386.c: Add 'U' suffix to processor feature bits
315         to avoid -Wnarrowing warning.
316         * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
317         * opts.c: Likewise for SANITIZER_OPT bitmasks.
319 2016-09-07  Wilco Dijkstra  <wdijkstr@arm.com>
321         * config/aarch64/aarch64.c (aarch64_legitimize_address):
322         Avoid use of base_offset if offset already in range.
324 2016-09-07  Kaz Kojima  <kkojima@gcc.gnu.org>
326         * config/sh/sh-protos.h (struct sh_atomic_model,
327         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
328         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
329         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
330         * config/sh/sh.h (struct sh_atomic_model,
331         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
332         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
333         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
334         Guard with __cplusplus.
336 2016-09-06  Jakub Jelinek  <jakub@redhat.com>
338         PR target/69255
339         * config/i386/i386.c (ix86_expand_builtin): For builtin with
340         unsupported or unknown ISA, use expand_call.
342 2016-09-06  Martin Liska  <mliska@suse.cz>
344         PR gcov-profile/77378
345         PR gcov-profile/77466
346         * tree-profile.c (tree_profiling): Detect whether target can use
347         -fprofile-update=atomic.
349 2016-09-06  Richard Biener  <rguenther@suse.de>
351         PR tree-optimization/77479
352         * tree-vrp.c (update_value_range): Extend overflow handling to
353         VARYING.
355 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
357         PR target/77476
358         * config/i386/i386.md (isa): Add x64_avx512bw.
359         (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
360         (kmov_isa): New mode attr.
361         (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
362         (*zero_extend<mode>si2): Likewise.
363         (*zero_extendqihi2): Use avx512dq isa for the last alternative.
365 2016-09-05  Gerald Pfeifer  <gerald@pfeifer.com>
367         * doc/invoke.texi (SPU Options): nops -> NOPs.
368         (x86 Options): Ditto.
370 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
372         PR middle-end/77475
373         * toplev.c (process_options): Temporarily set input_location
374         to UNKNOWN_LOCATION around targetm.target_option.override () call.
376 2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
378         PR rtl-optimization/77452
379         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
380         inner-mode reference to a CONST_VECTOR constant in the constant pool.
382 2016-09-05  Marek Polacek  <polacek@redhat.com>
384         PR c/77423
385         * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
387 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
389         PR other/77421
390         * gensupport.c (alter_output_for_subst_insn): Remove redundant
391         *insn_out == '*' test.  Don't copy unnecessary to yet another
392         memory buffer, and don't leak it.
394         PR rtl-optimization/77425
395         * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
397 2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
399         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
401 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
403         * common.opt (fdiagnostics-generate-patch): New option.
404         * diagnostic.c: Include "edit-context.h".
405         (diagnostic_initialize): Initialize context->edit_context_ptr.
406         (diagnostic_finish): Delete context->edit_context_ptr.
407         (diagnostic_report_diagnostic): Add fix-it hints from the
408         diagnostic to context->edit_context_ptr, if any.
409         * diagnostic.h (class edit_context): Add forward decl.
410         (struct diagnostic_context): Add field "edit_context_ptr".
411         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
412         -fdiagnostics-generate-patch.
413         (-fdiagnostics-generate-patch): New item.
414         * toplev.c: Include "edit-context.h".
415         (process_options): Set global_dc->edit_context_ptr to a new
416         edit_context if the options need one.
417         (toplev::main): Handle -fdiagnostics-generate-patch by using
418         global_dc->edit_context_ptr.
420 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
422         PR c/65467
423         * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
424         map and firstprivate clauses on target construct for _Atomic
425         qualified decls.
426         (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
427         on target construct for _Atomic qualified decls.
428         * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
429         decls.
430         * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
431         _Atomic qualified arguments not mentioned in uniform clause.
433 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
435         * Makefile.in (OBJS-libcommon): Add edit-context.o.
436         * diagnostic-color.c (color_dict): Add "diff-filename",
437         "diff-hunk", "diff-delete", and "diff-insert".
438         (parse_gcc_colors): Update default value of GCC_COLORS in comment
439         to reflect above changes.
440         * doc/invoke.texi (-fdiagnostics-color): Update description of
441         default GCC_COLORS, and of the supported capabilities.
442         * edit-context.c: New file.
443         * edit-context.h: New file.
444         * input.c (struct fcache): Add field "missing_trailing_newline".
445         (diagnostics_file_cache_forcibly_evict_file): Initialize it to
446         true.
447         (add_file_to_cache_tab): Likewise.
448         (fcache::fcache): Likewise.
449         (get_next_line): Update c->missing_trailing_newline.
450         (location_missing_trailing_newline): New function.
451         * input.h (location_missing_trailing_newline): New decl.
452         * selftest-run-tests.c (selftest::run_tests): Call
453         edit_context_c_tests.
454         * selftest.h (edit_context_c_tests): New decl.
456 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
457             Richard Biener  <rguenth@suse.de>
459         PR tree-optimization/77444
460         * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
461         as steptype, remove redundant initialization.
463 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
465         PR sanitizer/77396
466         * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
467         (sanopt_optimize_walker): Optimize away
468         __asan_before_dynamic_init (...) followed by
469         __asan_after_dynamic_init () without intervening memory loads/stores.
470         * ipa-pure-const.c (special_builtin_state): Handle
471         BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
472         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
474 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
476         * cfg.c (free_original_copy_tables): Replace second assignment of
477         bb_copy = NULL by bb_original = NULL. 
479 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
481         PR other/77421
482         * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
483         assignment added in r216794.
485 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
487         * Makefile.in (OBJS): Add typed-splay-tree.o.
488         * selftest-run-tests.c (selftest::run_tests): Call
489         typed_splay_tree_c_tests.
490         * selftest.h (typed_splay_tree_c_tests): New decl.
491         * typed-splay-tree.c: New file.
492         * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
493         (typed_splay_tree::max): New method.
494         (typed_splay_tree::min): New method.
495         (typed_splay_tree::foreach): New method.
496         (typed_splay_tree::closure): New struct.
497         (typed_splay_tree::inner_foreach_fn): New function.
499 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
501         * ipa-cp.c (ipcp_store_bits_results): Change option name from
502         -fipa-cp-bit to -fipa-bit-cp.
504 2016-09-01  Martin Sebor  <msebor@redhat.com>
506         PR tree-optimization/71831
507         * tree-object-size.h: Return bool instead of the size and add
508         argument for the size.
509         * tree-object-size.c (compute_object_offset): Update signature.
510         (addr_object_size): Same.
511         (compute_builtin_object_size): Return bool instead of the size
512         and add argument for the size.  Handle POINTER_PLUS_EXPR when
513         optimization is disabled.
514         (expr_object_size): Adjust.
515         (plus_stmt_object_size): Adjust.
516         (pass_object_sizes::execute): Adjust.
517         * builtins.c (fold_builtin_object_size): Adjust.
518         * doc/extend.texi (Object Size Checking): Update.
519         * ubsan.c (instrument_object_size): Adjust.
521 2016-09-01  Martin Sebor  <msebor@redhat.com>
523         * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
524         it fits the output of the formatted function regardless of its
525         arguments.
526         * gcc/genmodes.c (parser::parse_expr): Same.
527         * gimplify.c (gimplify_asm_expr): Same.
528         * passes.c (pass_manager::register_one_dump_file): Same.
529         * print-tree.c (print_node): Same.
531 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
533         * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
535 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
537         * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
539 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
541         * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
542         * config/rs6000/vector.md: Ditto.
543         * config/rs6000/vsx.md: Ditto.
545 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
547         * ipa-inline-analysis.c (param_change_prob): Get to the base object
548         first in all cases.
550 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
552         * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
553         *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
554         *return_and_restore_gpregs_<mode>_r11,
555         *return_and_restore_gpregs_<mode>_r12,
556         *return_and_restore_gpregs_<mode>_r1,
557         *return_and_restore_fpregs_<mode>_r11,
558         *return_and_restore_fpregs_<mode>_r12,
559         *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
560         directly instead of via the "l" constraint.  Renumber operands.
561         Fix whitespace.
563 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
565         * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
566         save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
567         *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
568         * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
569         load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
570         *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
571         *call_value_nonlocal_darwin64, reload_macho_picbase,
572         reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
573         * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
574         * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
575         *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
576         *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
577         *save_fpregs_<mode>_r1): Ditto.
578         * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
579         *return_and_restore_gpregs_spe): Ditto.
581 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
583         * config/rs6000/rs6000.md
584         (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
585         the use of the link register.
586         (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
588 2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
589             Michael Meissner  <meissner@linux.vnet.ibm.com>
591         PR target/72827
592         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
593         reg+reg addressing for TImode.
594         (rs6000_legitimate_address_p): Only allow register indirect
595         addressing for TImode, even without TARGET_QUAD_MEMORY.
597 2016-09-01  Richard Biener  <rguenther@suse.de>
599         PR middle-end/77436
600         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
601         check whether the result fits the desired result type.
603 2016-09-01  Nathan Sidwell  <nathan@acm.org>
605         * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
607 2016-09-01  Wilco Dijkstra  <wdijkstr@arm.com>
609         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
610         New function.
611         (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
613 2016-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
615         * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
616         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
617         for comparisons of integer ZERO_EXTEND against zero.
619 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
621         * config/i386/i386.c (ix86_option_override_internal): Also disable the
622         STV pass if -mstackrealign is enabled.
624 2016-08-31  Ilya Verbin  <iverbin@gmail.com>
626         * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
627         AVX512IFMA.
629 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
631         * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
632         (layout_range::intersects_line_p): New method.
633         (test_range_contains_point_for_single_point): Rename to...
634         (test_layout_range_for_single_point): ...this, and add testing
635         for layout_range::intersects_line_p.
636         (test_range_contains_point_for_single_line): Rename to...
637         (test_layout_range_for_single_line): ...this,  and add testing
638         for layout_range::intersects_line_p.
639         (test_range_contains_point_for_multiple_lines): Rename to...
640         (test_layout_range_for_multiple_lines): ...this,  and add testing
641         for layout_range::intersects_line_p.
642         (layout::layout): Populate m_fixit_hints.
643         (layout::get_expanded_location): Handle the case of a line-span
644         for a fix-it hint.
645         (layout::validate_fixit_hint_p): New method.
646         (get_line_span_for_fixit_hint): New function.
647         (layout::calculate_line_spans): Add spans for fixit-hints.
648         (layout::should_print_annotation_line_p): New method.
649         (layout::print_any_fixits): Drop param "richloc", instead using
650         validated fixits in m_fixit_hints.  Add "const" to hint pointers.
651         (diagnostic_show_locus): Avoid printing blank annotation lines.
652         (selftest::test_diagnostic_context::test_diagnostic_context):
653         Initialize show_column and start_span.
654         (selftest::test_diagnostic_context::start_span_cb): New static
655         function.
656         (selftest::test_diagnostic_show_locus_fixit_lines): New function.
657         (selftest::diagnostic_show_locus_c_tests): Update for function
658         renamings.  Call test_diagnostic_show_locus_fixit_lines.
660 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
662         PR tree-optimization/73714
663         * match.pd (a * (1 << b)): Revert change from 2016-05-23.
665 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
667         * selftest.c: Move "namespace selftest {" to top of file,
668         removing explicit "selftest::" qualifiers throughout.
670 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
672         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
673         New types.
674         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
675         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
676         Replace builtin with vector extension.
677         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
678         New types.
679         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
680         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
681         Replace builtin with vector extension.
682         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
683         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
684         Replace builtin with vector extension.
685         * config/i386/xmmintrin.h (__m128_u): New type.
686         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
687         (_mm_load_ps, _mm_store_ps): Simplify.
689 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
691         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
693 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
695         * diagnostic-show-locus.c (colorizer::begin_state): Support more
696         than 3 ranges per diagnostic by alternating between color 1 and
697         color 2.
698         (layout::layout): Replace use of rich_location::MAX_RANGES
699         with richloc->get_num_locations ().
700         (layout::calculate_line_spans): Replace use of
701         rich_location::MAX_RANGES with m_layout_ranges.length ().
702         (layout::print_annotation_line): Handle arbitrary numbers of
703         ranges in caret-printing by defaulting to '^'.
704         (selftest::test_one_liner_many_fixits): New function.
705         (test_diagnostic_show_locus_one_liner): Call it.
706         * diagnostic.c (diagnostic_initialize): Update for renaming
707         of rich_location::MAX_RANGES to
708         rich_location::STATICALLY_ALLOCATED_RANGES.
709         * diagnostic.h (struct diagnostic_context): Likewise.
711 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
713         * selftest.c (selftest::named_temp_file::named_temp_file): New
714         ctor.
715         (selftest::temp_source_file::~temp_source_file): Move to...
716         (selftest::named_temp_file::~named_temp_file): ...here.
717         (selftest::test_named_temp_file): New function.
718         (selftest::selftest_c_tests): Call test_named_temp_file.
719         * selftest.h (class named_temp_file): New class.
720         (class temp_source_file): Convert to a subclass of named_temp_file.
722 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
724         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
725         USEs of LR_REGNO in returns and sibcalls.
726         (rs6000_output_mi_thunk): Similar.
727         (rs6000_sibcall_aix): Similar.
728         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
729         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
730         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
731         Remove the USE of LR_REGNO from the patterns as well.  Delete an
732         obsolete comment.
733         (return_internal_<mode>): Delete.
735 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
737         * gcc/config/aarch64/aarch64-simd.md
738         (aarch64_ld2<mode>_dreg_le): New.
739         (aarch64_ld2<mode>_dreg_be): New.
740         (aarch64_ld2<mode>_dreg): Removed.
741         (aarch64_ld3<mode>_dreg_le): New.
742         (aarch64_ld3<mode>_dreg_be): New.
743         (aarch64_ld3<mode>_dreg): Removed.
744         (aarch64_ld4<mode>_dreg_le): New.
745         (aarch64_ld4<mode>_dreg_be): New.
746         (aarch64_ld4<mode>_dreg): Removed.
747         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
749 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
751         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
752         redundant location param.
753         (test_one_liner_fixit_remove): Likewise.
754         (test_one_liner_fixit_replace): Likewise.
755         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
756         * gcc-rich-location.c
757         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
758         get_range_from_loc.  Drop overload taking a const char *.
759         * gcc-rich-location.h
760         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
761         a const char *.
763 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
765         * config/linux.c (linux_libc_has_function): Return true on musl.
767 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
769         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
771 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
773         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
774         used for abnormal egdes.
776 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
778         PR tree-optimization/72866
779         * tree-vect-patterns.c (search_type_for_mask): Turn into
780         a small wrapper, move all code to ...
781         (search_type_for_mask_1): ... this new function.  Add caching
782         and adjust recursive calls.
784         PR debug/77363
785         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
786         instead of lookup_type_die (type_main_variant (type)) even for array
787         types.
789         PR middle-end/77377
790         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
791         constant pool reference return x instead of c.
793 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
795         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
796         include MQ.
798 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
800         * input.c
801         (selftest::test_make_location_nonpure_range_endpoints): Fix
802         header comment.
804 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
806         * diagnostic-show-locus.c
807         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
808         function.
809         (selftest::test_diagnostic_show_locus_one_liner): Call it.
810         * input.c (get_pure_location): Move to libcpp/line-map.c.
811         * input.h (get_pure_location): Convert decl to an inline function
812         calling implementation in libcpp.
814 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
816         PR target/77403
817         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
818         template for intel asm dialect.
819         (vec_set_hi_<mode><mask_name>): Ditto.
821 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
823         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
824         (selftest::fail_formatted): Likewise.
826 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
828         * input.c (make_location): Call get_start and get_finish
829         on the endpoints to avoid storing packed ranges or ad-hoc
830         ranges in them.
831         (selftest::test_make_location_nonpure_range_endpoints): New function.
832         (selftest::input_c_tests): Call it.
833         * input.h (get_start): New inline function.
835 2016-08-29  Tom de Vries  <tom@codesourcery.com>
837         PR c/77398
838         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
839         with assert.
841 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
843         * Makefile.in (gcov-iov.h): Add dummy recipe.
845 2016-08-29  Nathan Sidwell  <nathan@acm.org>
847         * config/nvptx/nvptx.c: #include tree-vrp.h.
849 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
851         PR target/77324
852         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
853         HIGH+LO construct during reload.
855 2016-08-28  Tom de Vries  <tom@codesourcery.com>
857         PR lto/70955
858         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
859         'sysv_abi va_list' attribute.
860         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
861         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
862         attributes.
864 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
866         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
867         * emit-rtl.c (unshare_all_rtl_1): Adjust.
868         (unshare_all_rtl_again): Likewise.
869         * function.c (assign_stack_local_1): Likewise.
870         (assign_stack_temp_for_type): Likewise.
872 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
874         * cfgbuild.c (make_edges): Adjust.
875         * cfgrtl.c (can_delete_label_p): Likewise.
876         * dwarf2cfi.c (create_trace_edges): Likewise.
877         * except.c (sjlj_emit_dispatch_table): Likewise.
878         * function.h (struct expr_status): make x_forced_labels a vector.
879         * jump.c (rebuild_jump_labels_1): Adjust.
880         * reload1.c (set_initial_label_offsets): Likewise.
881         * stmt.c (force_label_rtx): Likewise.
882         (expand_label): Likewise.
884 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
886         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
888 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
890         PR tree-optimization/71077
891         PR tree-optimization/68542
892         * fold-const.c (fold_relational_const): Fix folding of
893         VECTOR_CST comparisons that have a scalar boolean result type.
894         (selftest::test_vector_folding): New static function.
895         (selftest::fold_const_c_tests): Call it.
897 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
899         * doc/extend.texi (SPU Built-in Functions): Remove stale
900         references to material formerly at IBM and Sony.
902 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
904         PR target/77349
905         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
907 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
909         * diagnostic-show-locus.c
910         (selftest::test_fixit_consolidation): New function.
911         (selftest::diagnostic_show_locus_c_tests): Call it.
912         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
913         constructor based on source_range.
915 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
917         * diagnostic-color.c (color_dict): Add "fixit-insert" and
918         "fixit-delete".
919         (parse_gcc_colors): Update description of default GCC_COLORS.
920         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
921         (colorizer::set_fixit_insert): New method.
922         (colorizer::set_fixit_delete): New method.
923         (colorizer::get_color_by_name): New method.
924         (colorizer::STATE_FIXIT_INSERT): New constant.
925         (colorizer::STATE_FIXIT_DELETE): New constant.
926         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
927         fields in favor of new field "m_stop_color".  Add fields
928         "m_fixit_insert" and "m_fixit_delete".
929         (colorizer::colorizer): Update for above changes.  Replace
930         colorize_start calls with calls to get_color_by_name.
931         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
932         STATE_FIXIT_DELETE.  Update for field renamings.
933         (colorizer::finish_state): Simplify by using m_stop_color,
934         rather than multiple identical "*_ce" fields.
935         (colorizer::get_color_by_name): New method.
936         (layout::print_any_fixits): Print insertions and replacements
937         using the "fixit-insert" color, and deletions using the
938         "fixit-delete" color.
939         * doc/invoke.texi (-fdiagnostics-color): Update description of
940         default GCC_COLORS, and of the supported capabilities.
942 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
944         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
945         current_function_static_stack_size variable with the static
946         stack frame size of the current function when
947         flag_stack_usage_info is enabled.
949 2016-08-26  Nathan Sidwell  <nathan@acm.org>
951         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
952         assignment inside if condition.
954 2016-08-26  Richard Biener  <rguenther@suse.de>
956         PR tree-optimization/69047
957         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
958         extracts similar to what FRE does.
959         (non_rewritable_mem_ref_base): Likewise.
961 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
963         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
964         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
965         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
966         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
967         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
968         Likewise.
969         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
970         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
971         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
972         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
973         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
975 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
977         PR target/70473
978         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
979         reservation duration to 15 cycles.
980         (cortex_a8_vfp_macs): Likewise.
981         (cortex_a8_vfp_macd): Likewise.
982         (cortex_a8_vfp_divs): Likewise.
983         (cortex_a8_vfp_divd): Likewise.
985 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
987         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
988         (aarch_macro_fusion_pair_p): Use above to avoid early return.
990 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
991             Martin Jambhor  <mjambor@suse.cz>
993         * common.opt: New option -fipa-bit-cp.
994         * doc/invoke.texi: Document -fipa-bit-cp.
995         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
996         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
997         * tree-ssa-ccp.h: New header file.
998         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
999         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
1000         Replace all occurences of tree parameter by two new params: signop, int.
1001         (bit_value_unop_1): Change to bit_value_unop and export it.
1002         Replace all occurences of tree parameter by two new params: signop,
1003         int.
1004         (bit_value_binop): Change call from bit_value_binop_1 to
1005         bit_value_binop.
1006         (bit_value_assume_aligned): Likewise.
1007         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
1008         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
1009         to ccp_finalize.
1010         (ccp_finalize): Skip processing if val->mask == 0.
1011         * ipa-cp.c: Include tree-ssa-ccp.h
1012         (ipcp_bits_lattice): New class.
1013         (ipcp_param_lattice (bits_lattice): New member.
1014         (print_all_lattices): Call ipcp_bits_lattice::print.
1015         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
1016         (initialize_node_lattices): Likewise.
1017         (propagate_bits_accross_jump_function): New function.
1018         (propagate_constants_accross_call): Call
1019         propagate_bits_accross_jump_function.
1020         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
1021         (ipcp_store_bits_results): New function.
1022         (ipcp_driver): Call ipcp_store_bits_results.
1023         * ipa-prop.h (ipa_bits): New struct.
1024         (ipa_jump_func): Add new member bits of type ipa_bits.
1025         (ipa_param_descriptor): Change decl to decl_or_type.
1026         (ipa_get_param): Change decl to decl_or_type and assert on
1027         PARM_DECL.
1028         (ipa_get_type): New function.
1029         (ipcp_transformation_summary): New member bits.
1030         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
1031         (ipa_populate_param_decls): Likewise.
1032         (ipa_dump_param): Likewise.
1033         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
1034         function.
1035         (ipa_set_jf_unknown): Set ipa_bits::known to false.
1036         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
1037         propagation.
1038         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
1039         (ipa_write_jump_function): Add streaming for ipa_bits.
1040         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
1041         (write_ipcp_transformation_info): Add streaming for ipa_bits
1042         summary for ltrans.
1043         (read_ipcp_transfomration_info): Add support for reading streamed
1044         ipa_bits.
1045         (ipcp_update_bits): New function.
1046         (ipcp_transform_function): Call ipcp_update_bits.
1048 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1050         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
1051         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
1053 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
1055         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
1057 2016-08-25  Richard Biener  <rguenther@suse.de>
1059         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
1060         Only add locations in late dwarf.
1061         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
1062         (dwarf2out_early_finish): But do it here.
1064 2016-08-24  Michael Collison  <michael.collison@linaro.org>
1065             Michael Collison  <michael.collison@arm.com>
1067         * config/arm/arm-modes.def: Add new condition code mode CC_V
1068         to represent the overflow bit.
1069         * config/arm/arm.c (maybe_get_arm_condition_code):
1070         Add support for CC_Vmode.
1071         (arm_gen_unlikely_cbranch): New function to generate common
1072         rtl conditional branches for overflow patterns.
1073         * config/arm/arm-protos.h: Add prototype for
1074         arm_gen_unlikely_cbranch.
1075         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
1076         addsi3_compareV_upper): New patterns to support signed
1077         builtin overflow add operations.
1078         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
1079         New patterns to support unsigned builtin add overflow operations.
1080         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
1081         builtin overflow subtract operations,
1082         (usubv<mode>4): New patterns to support unsigned builtin subtract
1083         overflow operations.
1084         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
1085         to support builtin overflow negate operations.
1087 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1089         Revert
1090         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1092         * explow.c (get_dynamic_stack_size): Take known alignment of stack
1093         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
1094         needed.
1096 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1098         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
1099         MULTILIB_OPTIONS should be used.  Small wording fixes.
1100         * genmultilib: Memorize set of all option combinations in
1101         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
1102         found in MULTILIB_OPTIONS by checking if option set is listed in
1103         combination_space.  Output new and existing error message to stderr.
1105 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1107         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
1108         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
1109         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
1110         (MULTILIB_REUSE): Remove reuse rules for option set including
1111         -mfpu=fp-armv8 and -mfpu=vfpv4
1113 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1115         * config/arm/t-rtems: Add vfp multilib.
1117 2016-08-23  Ian Lance Taylor  <iant@golang.org>
1119         * config/s390/s390.c (s390_asm_file_start): Call
1120         default_file_start.
1122 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1124         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
1125         initialization of all 0's to the 0 constant, instead of directly
1126         generating XOR.  Add support for V4SImode vector initialization on
1127         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
1128         initialization.  Change variables used in V4SFmode vector
1129         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
1130         any memory addresses are in index form.  Add support for using
1131         VSPLTH/VSPLTB to initialize vector short and vector char vectors
1132         with all of the same element.
1133         (regno_or_subregno): New helper function to return a register
1134         number for either REG or SUBREG.
1135         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
1136         Use regno_or_subregno where possible.
1137         (rs6000_split_v4si_init_di_reg): New helper function to build up a
1138         DImode value from two SImode values in order to generate V4SImode
1139         vector initialization on 64-bit systems with direct move.
1140         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
1141         initialization.
1142         (rtx_is_swappable_p): V4SImode vector initialization insn is not
1143         swappable.
1144         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
1145         declaration.
1146         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
1147         attributes to initialize V8HImode and V16QImode vectors with the
1148         same element.
1149         (VSX_SPLAT_COUNT): Likewise.
1150         (VSX_SPLAT_SUFFIX): Likewise.
1151         (UNSPEC_VSX_VEC_INIT): New unspec.
1152         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
1153         Allow SFmode values to come from Altivec registers.
1154         (vsx_init_v4si): New insn/split for V4SImode vector initialization
1155         on 64-bit systems with direct move.
1156         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
1157         vector initializations, to allow V4SImode vector initializations
1158         on 64-bit systems with direct move.
1159         (vsx_splat_v4si): Likewise.
1160         (vsx_splat_v4si_di): Likewise.
1161         (vsx_splat_v4sf): Likewise.
1162         (vsx_splat_v4sf_internal): Likewise.
1163         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
1164         register classes.
1165         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
1166         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
1167         initializing V8HImode and V16QImode vectors with the same
1168         element.
1169         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
1170         optimization if -maltivec=be.
1172 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
1174         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
1175         attribute for alternatives 3 and 4.
1177 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
1179         * selftest.c (selftest::assert_str_contains): New function.
1180         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
1181         * selftest.h (selftest::assert_str_contains): New decl.
1182         (ASSERT_STR_CONTAINS): New macro.
1184 2016-08-23  Richard Biener  <rguenther@suse.de>
1186         PR tree-optimization/77286
1187         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
1188         the CFG here.
1189         (vect_transform_loop): Split exit edges of loop and scalar
1190         loop if required and at the appropriate time.
1192 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1194         * explow.c (get_dynamic_stack_size): Take known alignment of stack
1195         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
1196         needed.
1197         Correct a typo in a comment.
1199 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1201         * config/s390/s390.md ("*andc_split"): New splitter for and with
1202         complement.
1204 2016-08-23  Richard Biener  <rguenther@suse.de>
1206         PR tree-optimization/27336
1207         * tree-vrp.c (infer_value_range): Handle stmts that can throw
1208         by looking for a non-EH edge.
1209         (process_assert_insertions_for): Likewise.
1211 2016-08-23  Richard Biener  <rguenther@suse.de>
1213         PR middle-end/77305
1214         * statistics.c (statistics_counter_event): Robustify against
1215         NULL current_pass.
1217 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1219         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
1220         for targets amdfam10 and barcelona.
1222 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
1224         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
1225         (zero_extend<mode>di2): Ditto.
1226         (*zero_extend<mode>si2): Ditto.
1227         (*zero_extendqihi2): Ditto.
1229 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
1231         PR middle-end/77269
1232         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
1233         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
1235 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
1237         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
1238         identical consecutive elements.
1239         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
1240         the node's def stmt, avoid printing an unwanted trailing newline by
1241         replacing the call to print_gimple_stmt() with its inlined body and
1242         adjusting it to not set pp_needs_newline and to call pp_flush()
1243         instead of pp_newline_and_flush().
1245 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
1247         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
1248         (float32_type_node, float64_type_node, float32x_type_node)
1249         (float128x_type_node): New macros.
1250         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
1251         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
1252         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
1253         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
1254         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
1255         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
1256         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
1257         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
1258         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
1259         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
1260         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
1261         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
1262         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
1263         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
1264         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
1265         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
1266         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
1267         (copysign, fabs, huge_val, inf, nan, nans): Use it.
1268         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
1269         and copysign.
1270         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
1271         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
1272         * doc/extend.texi (Other Builtins): Document these built-in
1273         functions.
1274         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
1275         for nan and nans.
1277 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
1279         * doc/install.texi (Binaries): www.opencsw.org now uses https.
1281 2016-08-22  Richard Biener  <rguenther@suse.de>
1283         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
1285 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
1287         PR target/77270
1288         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
1289         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
1290         non-SSE2 athlons only, otherwise prefer SSE prefetches.
1292 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
1294         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
1295         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
1296         (vrp_visit_switch_stmt): Likewise.
1297         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
1298         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
1299         (vrp_visit_stmt): Use extract_range_from_stmt.
1300         (vrp_visit_phi_node): Use extract_range_from_phi_node.
1302 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
1304         * Makefile.in: Add tree-vrp.h to GTFILES.
1305         * gengtype.c (open_base_files): Add tree-vrp.h.
1306         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
1307         * builtins.c: Likewise.
1308         * fold-const.c: Likewise.
1309         * gimple-builder.c: Likewise.
1310         * gimple-laddress.c: Likewise.
1311         * hsa-gen.c: Likewise.
1312         * internal-fn.c: Likewise.
1313         * ssa.h: Likewise.
1314         * targhooks.c: Liewise,
1315         * tree-ssa-address.c: Likewise.
1316         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
1317         * tree-vrp.c (struct value_range): Move to tree-vrp.h
1318         * tree-vrp.h: New file.
1320 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
1322         PR tree-optimization/61839
1323         * tree-vrp.c (two_valued_val_range_p): New.
1324         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
1325         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
1326         Also Convert VAR BINOP CST where VAR is two-valued to
1327         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
1329 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
1331         * diagnostic-show-locus.c
1332         (layout::annotation_line_showed_range_p): New method.
1333         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
1334         Reimplement case fixit_hint::REPLACE to cover removals, and
1335         replacements where the range of the replacement isn't one
1336         of the ranges in the rich_location.
1337         (test_one_liner_fixit_replace): Likewise.
1338         (selftest::test_one_liner_fixit_replace_non_equal_range): New
1339         function.
1340         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
1341         New function.
1342         (selftest::test_diagnostic_show_locus_one_liner): Call the new
1343         functions.
1344         * diagnostic.c (print_parseable_fixits): Remove case
1345         fixit_hint::REMOVE.
1347 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
1349         PR target/77270
1350         * config/i386/i386.c (ix86_option_override_internal): Remove
1351         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
1352         Enable SSE prefetch also for TARGET_PREFETCHWT1.
1353         Do not try to enable TARGET_PRFCHW ISA flag here.
1354         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
1355         Rewrite expander function body.
1356         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
1358 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
1360         PR c/32187
1361         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
1362         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
1363         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
1364         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
1365         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
1366         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
1367         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
1368         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
1369         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
1370         tree_index values.
1371         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
1372         macros.
1373         (struct floatn_type_info): New structure type.
1374         (floatn_nx_types): New variable declaration.
1375         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
1376         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
1377         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
1378         * tree.c (floatn_nx_types): New variable.
1379         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
1380         corresponding complex types.
1381         * target.def (floatn_mode): New hook.
1382         * targhooks.c: Include "real.h".
1383         (default_floatn_mode): New function.
1384         * targhooks.h (default_floatn_mode): New prototype.
1385         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
1386         types.
1387         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
1388         effective-target and dg-add-options keywords.
1389         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
1390         Document new effective-target keywords.
1391         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
1392         * doc/tm.texi: Regenerate.
1393         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
1394         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
1395         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
1396         18661-3.
1397         * real.h (struct real_format): Add field ieee_bits.
1398         * real.c (ieee_single_format, mips_single_format)
1399         (motorola_single_format, spu_single_format, ieee_double_format)
1400         (mips_double_format, motorola_double_format)
1401         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
1402         (ieee_extended_intel_128_format)
1403         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
1404         (mips_extended_format, ieee_quad_format, mips_quad_format)
1405         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
1406         (decimal_double_format, decimal_quad_format, ieee_half_format)
1407         (arm_half_format, real_internal_format: Initialize ieee_bits
1408         field.
1409         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
1410         float128_type_node.  Set float80_type_node to float64x_type_node
1411         if appropriate and long_double_type_node not appropriate.
1412         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
1413         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
1414         Initialize ieee_bits field.
1415         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
1416         (rs6000_init_builtins): Set ieee128_float_type_node to
1417         float128_type_node.
1418         (rs6000_floatn_mode): New function.
1420 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
1422         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
1423         _rdseed64_step): Uglify argument names and/or local variable names
1424         in inline functions.
1425         * config/i386/rtmintrin.h (_xabort): Likewise.
1426         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
1427         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
1428         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
1429         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
1430         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
1431         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
1432         _mm_maskz_ternarylogic_epi32): Likewise.
1433         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
1434         __lwpins32, __lwpins64): Likewise.
1435         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
1436         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
1437         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
1438         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
1439         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
1440         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
1441         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
1442         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
1443         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
1444         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
1445         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
1446         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
1447         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
1448         _mm256_mask_i64gather_epi32): Likewise.
1449         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
1450         * config/i386/ia32intrin.h (__writeeflags): Likewise.
1451         * config/i386/pkuintrin.h (_wrpkru): Likewise.
1452         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
1453         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
1454         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
1455         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
1456         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
1457         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
1458         _mm512_mask_prefetch_i64scatter_ps): Likewise.
1459         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
1460         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
1461         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
1462         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
1463         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
1464         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
1465         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
1466         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
1468         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
1469         returning void.
1470         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
1471         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
1472         Likewise.
1473         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
1474         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
1475         function name.
1476         (_rdpkru_u32): Add space after function name.
1478         * config/i386/t-i386 (i386-c.o): Don't depend on
1479         i386-builtin-types.inc.
1480         (i386.o): Depend on i386-builtin-types.inc.
1482 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
1484         PR target/77281
1485         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
1486         Use const_vec_duplicate to check for duplicated elements.
1488 2016-08-19  Richard Biener  <rguenther@suse.de>
1490         PR tree-optimization/77290
1491         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1492         Fix flag_tree_parallelize_loops check.
1494 2016-08-19  Richard Biener  <rguenther@suse.de>
1496         * match.pd (x | 0 -> x): Add.
1498 2016-08-19  Richard Biener  <rguenther@suse.de>
1500         PR tree-optimization/77286
1501         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
1502         Deal with virtual PHIs being out-of-order.
1504 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
1506         * doc/invoke.texi (fverbose-asm): Note that source code lines
1507         are emitted, and provide an example.
1508         * final.c (asm_show_source): New function.
1509         (final_scan_insn): Call asm_show_source.
1511 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
1513         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
1514         param with diagnostic_kind.
1515         (class colorizer): Similarly replace field m_diagnostic with
1516         m_diagnostic_kind.
1517         (colorizer::colorizer): Replace diagnostic
1518         param with diagnostic_kind.
1519         (colorizer::begin_state): Update for above field change.
1520         (layout::layout): Replace diagnostic param with rich_location *
1521         and diagnostic_kind.
1522         (diagnostic_show_locus): Replace diagnostic param with richloc
1523         and diagnostic_kind.
1524         (class selftest::test_diagnostic_context): New class.
1525         (selftest::test_diagnostic_show_locus_unknown_location): New
1526         function.
1527         (selftest::test_one_liner_simple_caret): New function.
1528         (selftest::test_one_liner_caret_and_range): New function.
1529         (selftest::test_one_liner_multiple_carets_and_ranges): New
1530         function.
1531         (selftest::test_one_liner_fixit_remove): New function.
1532         (selftest::test_one_liner_fixit_replace): New function.
1533         (selftest::test_diagnostic_show_locus_one_liner): New function.
1534         (selftest::diagnostic_show_locus_c_tests): Call the new test
1535         functions.
1536         * diagnostic.c (diagnostic_initialize): Initialize
1537         colorize_source_p, show_ruler_p and parseable_fixits_p.
1538         (default_diagnostic_finalizer): Update for change to
1539         diagnostic_show_locus.
1540         (diagnostic_append_note): Likewise.
1541         * diagnostic.h (diagnostic_show_locus): Replace
1542         const diagnostic_info * param with location * and diagnostic_t.
1544 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
1546         * input.c (saved_line_table): New global.
1547         (class selftest::temp_line_table): Rename to line_table_test and
1548         move declaration to selftest.h, and drop field m_old_line_table.
1549         (selftest::temp_line_table::temp_line_table): Rename ctor to...
1550         (selftest::line_table_test::line_table_test): ...this.  Add a
1551         default ctor.  Store current value of line_table within
1552         saved_line_table.
1553         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
1554         (selftest::line_table_test::~line_table_test): ...this, and
1555         restore line_table from the saved_line_table, rather than
1556         m_old_line_table.
1557         (selftest::test_accessing_ordinary_linemaps): Update for above
1558         renaming.
1559         (selftest::test_lexer): Likewise.
1560         (struct selftest::lexer_test): Likewise.
1561         (selftest::lexer_test::lexer_test): Likewise.
1562         (selftest::input_c_tests): Move the looping over test cases from
1563         here into...
1564         (selftest::for_each_line_table_case): New function.
1565         * input.h (saved_line_table): New decl.
1566         * selftest.h (struct selftest::line_table_case): New forward decl.
1567         (class selftest::line_table_test): New class, moved here from
1568         selftest::temp_line_table in input.c, and renamed.
1569         (selftest::for_each_line_table_case): New decl.
1571 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1573         PR target/72839
1574         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
1576 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
1578         PR middle-end/70895
1579         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
1580         enclosing parallel construct for reduction variables on OpenACC loop
1581         directives.
1583 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
1585         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
1586         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
1587         -gdwarf-3.
1588         (function_to_dwarf_procedure): Update comment.
1590 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
1592         * input.c (diagnostics_file_cache_forcibly_evict_file): New
1593         function.
1594         * input.h (diagnostics_file_cache_forcibly_evict_file): New
1595         declaration.
1596         * selftest.c (selftest::temp_source_file::~temp_source_file):
1597         Evict m_filename from the diagnostic file cache.
1599 2016-08-18  Richard Biener  <rguenther@suse.de>
1601         * tree-pass.h (make_pass_materialize_all_clones): Declare.
1602         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
1603         make_pass_materialize_all_clones): New simple IPA pass encapsulating
1604         clone materialization.
1605         * passes.def (all_late_ipa_passes): Start with
1606         pass_materialize_all_clones.
1607         * cgraphunit.c (symbol_table::compile): Remove call to
1608         materialize_all_clones.
1609         * tree-into-ssa.c: Include statistics.h.
1610         (update_ssa): Count number of times we do incremental/rewrite
1611         SSA update.
1613 2016-08-18  Richard Biener  <rguenther@suse.de>
1615         PR tree-optimization/77282
1616         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1617         When doing auto-parallelizing also prevent use of PHIs that
1618         carry dependences across loop backedges.
1620 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
1621             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1623         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
1625 2016-08-18  Richard Biener  <rguenther@suse.de>
1627         * ssa-iterators.h (ssa_vuse_operand): New inline.
1628         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
1629         (predicate_all_scalar_phis): Use remove_phi_node to remove
1630         phi nodes predicated.  Delay removing virtual PHIs.
1631         (predicate_mem_writes): Update virtual operands.
1632         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
1633         (tree_if_conversion): Do not rewrite virtual SSA form.
1634         * tree-phinodes.c (release_phi_node): Make static.
1635         * tree-phinodes.h (release_phi_node): Remove.
1637 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
1639         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
1640         codes that appear in bdesc_* arrays, instead include i386-builtin.def
1641         twice to define those.
1642         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
1643         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
1644         bdesc_multi_arg): Define by including i386-builtin.def the third time.
1645         * config/i386/i386-builtin.def: New file.
1647 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
1649         * input.c (get_source_range_for_char): Rename to...
1650         (selftest::get_source_range_for_char): ...this, and move within
1651         the #if CHECKING_P guard.
1652         (get_num_source_ranges_for_substring): Rename to...
1653         (selftest::get_num_source_ranges_for_substring): ...this, move
1654         within the #if CHECKING_P guard, and make static.
1655         (selftest::assert_num_substring_ranges): Initialize
1656         actual_num_ranges.
1658 2016-08-18  Alan Modra  <amodra@gmail.com>
1660         PR rtl-optimization/72771
1661         * reload.c (find_reloads): Don't assume that a subreg mem is OK
1662         when find_reloads_toplev returns address_reloaded==-1.
1663         (alternative_allows_const_pool_ref): Update comment.
1665 2015-08-17  Alan Hayward  <alan.hayward@arm.com>
1667         PR tree-optimization/71752
1668         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
1669         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
1671 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
1673         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
1674         instead of testing ECF_NORETURN bit in gimple_call_flags.
1675         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
1676         * predict.c (tree_bb_level_predictions): Likewise.
1677         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
1679         PR middle-end/77259
1680         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
1681         turning a call into __builtin_unreachable-like noreturn call, adjust
1682         gimple_call_set_fntype.
1683         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
1684         gimple_call_fntype has void return type.
1686 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
1688         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
1689         maybe_lookup_decl, to handle nested acc loop directives.
1691 2016-08-17  Richard Biener  <rguenther@suse.de>
1693         PR tree-optimization/76490
1694         * tree-vrp.c (update_value_range): Preserve overflow infinities
1695         when intersecting with ranges from get_range_info.
1696         (operand_less_p): Handle overflow infinities correctly.
1697         (value_range_constant_singleton): Use vrp_operand_equal_p
1698         to handle overflow max/min correctly.
1699         (vrp_valueize): Likewise.
1700         (union_ranges): Likewise.
1701         (intersect_ranges): Likewise.
1702         (vrp_visit_phi_node): Improve iteration limitation to only
1703         apply when we'll possibly re-visit the PHI via a changed argument
1704         on the backedge.
1706 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1708         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
1709         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
1710         rather than those that should not be built.
1712 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
1714         PR target/66488
1715         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
1717 2016-08-17  Richard Biener  <rguenther@suse.de>
1719         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
1720         (verify_vssa): New function verifying virtual SSA form.
1721         (verify_ssa): Call it.
1722         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
1723         Do not apply loop-closed SSA handling to virtuals.
1724         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
1725         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
1726         when rewriting their symbol.
1727         (prepare_def_site_for): Likewise.
1728         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
1729         operands of moved stmts.
1731 2016-08-17  Richard Biener  <rguenther@suse.de>
1733         PR tree-optimization/23855
1734         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
1735         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
1736         find guards to hoist.  Do not update SSA form but rewrite virtuals
1737         into loop closed SSA.
1738         (find_loop_guard): Adjust to skip already hoisted guards.  Do
1739         not mark virtuals for renaming or update SSA form.
1741 2016-08-17  Martin Liska  <mliska@suse.cz>
1743         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
1744         a LONG_LONG_TYPE_SIZE comparison.
1745         * gcov-io.h: Remove macro definitions.
1746         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
1747         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
1748         comparison.
1750 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
1752         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
1753         that builtins not mentioned in bdesc_* arrays come first, then
1754         the ones mentioned in bdesc_* arrays in the order they appear in
1755         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
1756         IX86_BUILTIN__BDESC_*_LAST enumerator.
1757         (bdesc_mpx): Fix up a comment typo.
1758         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
1759         __builtin_ia32_vpcomneu[bwdq] builtins.
1760         (BDESC_VERIFY, BDESC_VERIFYS): Define.
1761         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
1762         enum ix86_builtins ordering.
1763         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
1764         for direct bdesc_* array member access instead of searching all the
1765         arrays until an fcode match is found.
1767 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
1769         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
1770         pattern as define_insn_and_split.  Split insn before reload to
1771         ashl<mode>3_1.
1772         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
1773         <shift_insn><mode>3_1.
1774         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
1775         <rotate_insn><mode>3_1.
1777 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
1779         PR c/72857
1780         * input.c (get_source_range_for_substring): Rename to...
1781         (get_source_location_for_substring): ...this, adding param
1782         "caret_idx", and converting output param from source_range * to
1783         location_t *.
1784         (get_source_range_for_char): New function.
1785         (get_num_source_ranges_for_substring): Update comment to reflect
1786         above renaming.
1787         (assert_char_at_range): Update to use get_source_range_for_char
1788         rather than get_source_range_for_substring.
1789         (test_lexer_string_locations_concatenation_2): Likewise.
1790         * substring-locations.h (get_source_range_for_substring): Rename
1791         to...
1792         (get_source_location_for_substring): ...this, and adding param
1793         "caret_idx", and converting output param from source_range * to
1794         location_t *.
1796 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
1798         * input.c (class selftest::temp_source_file): Move to
1799         selftest.h.
1800         (selftest::temp_source_file::temp_source_file): Move to
1801         selftest.c.
1802         (selftest::temp_source_file::~temp_source_file): Likewise.
1803         * selftest.c (selftest::temp_source_file::temp_source_file): Move
1804         here from input.c.
1805         (selftest::temp_source_file::~temp_source_file): Likewise.
1806         * selftest.h (class selftest::temp_source_file): Move here from
1807         input.c
1809 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
1811         PR target/71910
1812         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
1813         inlining, add cgraph edge for the added __builtin_unreachable call.
1815         PR middle-end/67485
1816         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
1817         only cast it to SHWI for the final comparison.
1819 2016-08-16  Martin Liska  <mliska@suse.cz>
1821         PR gcov-profile/36412
1822         * doc/gcov.texi: Document --hash-filenames(-x).
1823         * gcov.c (print_usage): Add the option.
1824         (process_args): Process the option, sort options alphabetically.
1825         (md5sum_to_hex): New function.
1826         (make_gcov_file_name): Do the md5sum and append it to a
1827         filename.
1829 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
1831         PR tree-optimization/69848
1832         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
1833         and swtich operands to avoid additional NOT instruction.
1834         (vcond<v_cmp_mixed><mode>): Ditto.
1835         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
1837 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
1839         * doc/install.texi (*-*-solaris2*): Adjust latest change.
1841 2016-08-16  Richard Biener  <rguenther@suse.de>
1843         PR tree-optimization/76783
1844         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
1845         BB visited flags at start.
1847 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
1849         PR tree-optimization/72817
1850         PR tree-optimization/73450
1851         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
1852         multiple_of_p for adjusted IV.base.
1854 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
1856         PR target/72867
1857         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
1858         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
1859         for !flag_finite_math_only or flag_signed_zeros.
1860         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
1861         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
1862         depend on flag_finite_math_only.
1863         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
1864         New insn pattern.
1865         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
1866         (*ieee_smin<mode>3): Ditto.
1867         (*ieee_smax<mode>3): Ditto.
1868         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
1869         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
1870         flag_signed_zeros.
1871         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
1872         depend on flag_finite_math_only.
1873         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
1874         (*mmx_<code>v2sf3): Remove.
1875         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
1876         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
1877         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
1879 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
1881         PR rtl-optimization/73650
1882         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
1883         it is not a simple move.
1885 2016-08-15  Martin Liska  <mliska@suse.cz>
1887         PR driver/72765
1888         * gcc.c (do_spec_1): Call save_string with the right size.
1889         (save_string): Do an assert about string we copy.
1891 2016-08-15  Richard Biener  <rguenther@suse.de>
1893         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
1894         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
1895         TV_MACH_DEP.
1896         (pass_data_stv): Likewise.
1898 2016-08-15  Richard Biener  <rguenther@suse.de>
1900         PR tree-optimization/73434
1901         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
1902         TBAA info on the base when forwarding a non-invariant address.
1904 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
1906         * dwarf2out.c (struct checksum_attributes): Add
1907         at_string_length_bit_size and at_string_length_byte_size fields.
1908         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
1909         and DW_AT_string_length_byte_size.
1910         (die_checksum_ordered): Handle at_string_length_bit_size and
1911         at_string_length_byte_size.
1912         (gen_array_type_die): For dwarf_version >= 5 emit
1913         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
1914         (adjust_string_types): For dwarf_version >= 5 remove
1915         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
1916         (resolve_addr): Likewise.
1918         PR debug/71906
1919         * dwarf2out.c (string_types): New variable.
1920         (gen_array_type_die): Change early_dwarf handling of
1921         DW_AT_string_length, create DW_OP_call4 referencing the
1922         length var temporarily.  Handle parameters that are pointers
1923         to string length.
1924         (adjust_string_types): New function.
1925         (gen_subprogram_die): Temporarily set string_types to local var,
1926         call adjust_string_types if needed.
1927         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
1928         New functions.
1929         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
1931 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
1933         * doc/install.texi (*-*-solaris2*): Fix version number and document
1934         requirement on GNU make for building libjava with the Solaris linker.
1936 2016-08-15  Martin Liska  <mliska@suse.cz>
1937             Jakub Jelinek  <jakub@redhat.com>
1939         PR tree-optimization/72824
1940         * tree-loop-distribution.c (const_with_all_bytes_same)
1941         <case VECTOR_CST>: Fix a typo.
1943 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
1945         PR target/76342
1946         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
1947         Renamed from _mm512_undefined_si512.
1948         (_mm_undefined_si512): New definition.
1950 2016-08-13  Richard Biener  <rguenther@suse.de>
1952         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
1953         into PHIs and update the lattice for its def.
1955 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
1957         PR c/71512
1958         * ubsan.c (instrument_si_overflow): Pass true instead of false
1959         to gsi_replace.
1960         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
1961         of bbs.  Return TODO_cleanup_cfg if any returned true.
1963 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1965         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
1966         ISA 3.0 MTVSRDD instruction.
1967         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
1968         vecperm.
1970 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1972         PR tree-optimization/71083
1973         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
1974         bitfield access when possible.
1976 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
1978         PR middle-end/71654
1979         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
1980         sign-changing cast from a shorter unsigned type to a wider
1981         signed type.
1983 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
1985         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
1986         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
1987         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
1989 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1991         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1992         Correct costs for vec_construct.
1994 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
1996         PR tree-optimization/69848
1997         * tree-vectorizer.h (enum vect_def_type): New condition reduction
1998         type CONST_COND_REDUCTION.
1999         * tree-vect-loop.c (vectorizable_reduction): Support new condition
2000         reudction type CONST_COND_REDUCTION.
2002 2016-08-12  Richard Biener  <rguenther@suse.de>
2004         PR tree-optimization/57326
2005         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
2006         returning an SSA name.
2007         (phi_translate_1): When fully_constant_expression returns a NAME
2008         make sure we have a leader for it.
2010 2016-08-12  Martin Liska  <mliska@suse.cz>
2011             Adam Fineman  <afineman@afineman.com>
2013         * gcov.c (process_file): Create .gcov file when .gcda
2014         file is missing.
2016 2016-08-12  Marek Polacek  <polacek@redhat.com>
2018         PR c/7652
2019         * alias.c (find_base_value): Adjust fall through comment.
2020         * cfgexpand.c (expand_debug_expr): Likewise.
2021         * combine.c (find_split_point): Likewise.
2022         (expand_compound_operation): Likewise.  Add FALLTHRU.
2023         (make_compound_operation): Adjust fall through comment.
2024         (canon_reg_for_combine): Add FALLTHRU.
2025         (force_to_mode): Adjust fall through comment.
2026         (simplify_shift_const_1): Likewise.
2027         (simplify_comparison): Likewise.
2028         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
2029         FALLTHRU.
2030         * config/aarch64/predicates.md: Likewise.
2031         * config/i386/i386.c (function_arg_advance_32): Likewise.
2032         (ix86_gimplify_va_arg): Likewise.
2033         (print_reg): Likewise.
2034         (ix86_print_operand): Likewise.
2035         (ix86_build_const_vector): Likewise.
2036         (ix86_expand_branch): Likewise.
2037         (ix86_sched_init_global): Adjust fall through comment.
2038         (ix86_expand_args_builtin): Add FALLTHRU.
2039         (ix86_expand_builtin): Likewise.
2040         (ix86_expand_vector_init_one_var): Likewise.
2041         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
2042         (rs6000_adjust_cost): Likewise.
2043         (insn_must_be_first_in_group): Likewise.
2044         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
2045         * dbxout.c (dbxout_symbol): Adjust fall through comment.
2046         * df-scan.c (df_uses_record): Likewise.
2047         * dojump.c (do_jump): Add FALLTHRU.
2048         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
2049         comment.
2050         (resolve_args_picking_1): Adjust fall through comment.
2051         (loc_list_from_tree_1): Likewise.
2052         * expmed.c (make_tree): Likewise.
2053         * expr.c (expand_expr_real_2): Add FALLTHRU.
2054         (expand_expr_real_1): Likewise.  Adjust fall through comment.
2055         * fold-const.c (const_binop): Adjust fall through comment.
2056         (fold_truth_not_expr): Likewise.
2057         (fold_cond_expr_with_comparison): Add FALLTHRU.
2058         (fold_binary_loc): Likewise.
2059         (contains_label_1): Adjust fall through comment.
2060         (multiple_of_p): Likewise.
2061         * gcov-tool.c (process_args): Add FALLTHRU.
2062         * genattrtab.c (check_attr_test): Likewise.
2063         (write_test_expr): Likewise.
2064         * genconfig.c (walk_insn_part): Likewise.
2065         * genpreds.c (validate_exp): Adjust fall through comment.
2066         (needs_variable): Likewise.
2067         * gensupport.c (get_alternatives_number): Add FALLTHRU.
2068         (subst_dup): Likewise.
2069         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
2070         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
2071         (gimplify_scan_omp_clauses): Add FALLTHRU.
2072         (goa_stabilize_expr): Likewise.
2073         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
2074         through comment.
2075         * hsa-gen.c (get_address_from_value): Likewise.
2076         * ipa-icf.c (sem_function::hash_stmt): Likewise.
2077         * ira.c (ira_setup_alts): Add FALLTHRU.
2078         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
2079         comment.
2080         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
2081         * opts.c (common_handle_option): Likewise.
2082         * read-rtl.c (read_rtx_code): Likewise.
2083         * real.c (round_for_format): Likewise.
2084         * recog.c (asm_operand_ok): Likewise.
2085         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
2086         * reload1.c (set_label_offsets): Likewise.
2087         (eliminate_regs_1): Likewise.
2088         (reload_reg_reaches_end_p): Likewise.
2089         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
2090         (rtx_cost): Likewise.
2091         * sched-rgn.c (is_exception_free): Likewise.
2092         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
2093         * stor-layout.c (int_mode_for_mode): Likewise.
2094         * toplev.c (print_to_asm_out_file): Likewise.
2095         (print_to_stderr): Likewise.
2096         * tree-cfg.c (gimple_verify_flow_info): Likewise.
2097         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
2098         (chrec_fold_multiply): Likewise.
2099         (evolution_function_is_invariant_rec_p): Likewise.
2100         (for_each_scev_op): Likewise.
2101         * tree-data-ref.c (siv_subscript_p): Likewise.
2102         (get_references_in_stmt): Likewise.
2103         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
2104         (substitute_in_expr): Likewise.
2105         (type_cache_hasher::equal): Likewise.
2106         (walk_type_fields): Likewise.
2107         * var-tracking.c (adjust_mems): Add FALLTHRU.
2108         (set_dv_changed): Adjust fall through comment.
2109         * varasm.c (default_function_section): Add FALLTHRU.
2111 2016-08-12  Marek Polacek  <polacek@redhat.com>
2113         PR c/7652
2114         * tree-complex.c (expand_complex_division): Add missing break.
2116 2016-08-12  Richard Biener  <rguenther@suse.de>
2118         * passes.c (execute_todo): Do not push/pop TV_TODO.
2119         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
2120         (execute_one_pass): Likewise.
2121         * common.opt (ftime-report-details): New switch.
2122         * doc/invoke.texi (ftime-report-details): Document.
2123         * timevar.h (timer::print_row): Adjust signature.
2124         (timer::all_zero): New static helper.
2125         (timer::child_map_t): New typedef.
2126         (timer::time_var_def): Add children field.
2127         * timevar.c (timer::named_items::print): Adjust.
2128         (timer::~timer): Free timevar recorded children.
2129         (timer::pop_internal): When -ftime-report-details record
2130         time spent in sub-timevars.
2131         (timer::print_row): Adjust.
2132         (timer::print): Print sub-timevar stats, use all_zero.
2133         * timevar.def (TV_TODO): Remove.
2135 2016-08-12  Richard Biener  <rguenther@suse.de>
2137         PR tree-optimization/72851
2138         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
2139         worklists to use bitmaps indexed in execution order.
2140         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
2141         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
2142         (cfg_blocks): Make a bitmap.
2143         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
2144         New globals.
2145         (cfg_blocks_empty_p): Adjust.
2146         (cfg_blocks_add): Likewise.
2147         (cfg_blocks_get): Likewise.
2148         (add_ssa_edge): Likewise.
2149         (add_control_edge): Likewise.
2150         (simulate_stmt): Likewise.
2151         (process_ssa_edge_worklist): Likewise.
2152         (simulate_block): Likewise.
2153         (ssa_prop_init): Compute PRE order and stmt UIDs.
2154         (ssa_prop_fini): Adjust.
2155         (ssa_propagate): Adjust.
2157 2016-08-12  Richard Biener  <rguenther@suse.de>
2159         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
2160         the currently executable edges have fixed ranges.  Always
2161         go through update_value_range.
2163 2016-08-12  Alexandre Oliva  <aoliva@redhat.com>
2165         PR debug/63240
2166         * langhooks-def.h
2167         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
2168         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
2169         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
2170         (LANG_HOOKS_DECLS): Add it.
2171         * langhooks.h (struct lang_hooks_for_decls): Add
2172         function_decl_defaulted.  Const_tree-ify
2173         function_decl_explicit_p and function_decl_deleted_p.
2174         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
2175         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
2176         also at strict DWARF v5.
2178         PR debug/55641
2179         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
2180         TYPE_QUAL_CONST in reference-typed decls.
2182         PR debug/49366
2183         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
2184         in DW_OP_pieces, just enough to handle pointers to member
2185         functions.
2186         (gen_remaining_tmpl_value_param_die_attribute): Use a location
2187         expression on DWARFv5 if a constant value doesn't work.
2189 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
2191         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
2192         * selftest.c (selftest::test_assertions): New function.
2193         (selftest::selftest_c_tests): New function.
2194         * selftest.h (selftest::selftest_c_tests): New declaration.
2196 2016-08-11  Richard Biener  <rguenther@suse.de>
2197             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2199         PR rtl-optimization/72855
2200         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
2202 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2204         PR target/72863
2205         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
2206         (vsx_store_<mode>): Likewise.
2208 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
2210         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
2211         TImode CONST_WIDE_INT store.
2212         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
2214 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
2216         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
2217         mode if unaligned SSE load and store are optimal.
2219 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2221         PR tree-optimization/71083
2222         * tree-predcom.c (ref_at_iteration): Correctly align the
2223         reference type.
2225 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2227         * config/s390/s390-builtin-types.def: Add INT128 types.
2228         * config/s390/s390-builtins.def: Add INT128 variants for the add
2229         sub low-level builtins dealing with TImode.
2230         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
2231         via subreg when expanding a builtin.
2232         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
2233         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
2234         Fix comment.
2235         * config/s390/vecintrin.h: Adjust builtin names accordingly.
2236         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
2237         ("vec_addc<mode>", "vec_addc_u128"): Merge to
2238         "vacc<bhfgq>_<mode>".
2239         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
2240         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
2241         ("vec_subc<mode>", "vec_subc_u128"): Merge to
2242         "vscbi<bhfgq>_<mode>".
2243         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
2244         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
2246 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2248         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
2250 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
2252         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
2253         unused declaration.
2254         (vcond<v_cmp_mixed><mode>): Ditto.
2255         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
2257 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
2259         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
2260         variable explicitly, also assert on it before use.
2262 2016-08-11  Richard Biener  <rguenther@suse.de>
2264         PR tree-optimization/72772
2265         * cfgloopmanip.c (create_preheader): Use split_edge if there
2266         is a single loop entry, avoiding degenerate PHIs.
2268 2016-08-11  Richard Biener  <rguenther@suse.de>
2270         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
2271         unconditional TODO_cleanup_cfg.
2272         (pass_thread_jumps::execute): Initialize loops, perform a CFG
2273         cleanup only if we threaded a jump.
2275 2016-08-11  Alan Modra  <amodra@gmail.com>
2277         PR target/71680
2278         * lra-constraints.c (simplify_operand_subreg): Allow subreg
2279         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
2280         slow.  Emit two reloads for slow mem case, first loading in
2281         fast innermode, then converting to required mode.
2283 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2285         * config/rs6000/altivec.h (vec_extract_exp): New macro.
2286         (vec_extract_sig): New macro.
2287         (vec_insert_exp): New macro.
2288         (vec_test_data_class): New macro.
2289         (scalar_extract_exp): New macro.
2290         (scalar_extract_sig): New macro.
2291         (scalar_insert_exp): New macro.
2292         (scalar_test_data_class): New macro.
2293         (scalar_test_neg): New macro.
2294         (scalar_cmp_exp_gt): New macro.
2295         (scalar_cmp_exp_lt): New macro.
2296         (scalar_cmp_exp_eq): New macro.
2297         (scalar_cmp_exp_unordered): New macro.
2298         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
2299         to enforce constraint that operand is a 7-bit unsigned literal.
2300         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
2301         for power9 built-ins.
2302         (BU_P9V_VSX_2): Likewise.
2303         (BU_P9V_64BIT_VSX_2): Likewise.
2304         (VSEEDP): Add scalar extract exponent support.
2305         (VSEESP): Add scalar extract signature support.
2306         (VSTDCNDP): Add scalar test negative support.
2307         (VSTDCNSP): Likewise.
2308         (VSIEDP): Add scalar insert exponent support.
2309         (VSCEDPGT): Add scalar compare exponent greater than support.
2310         (VSCEDPLT): Add scalar compare exponent less than support.
2311         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
2312         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
2313         (VSTDCDP): Add scalar test data class support.
2314         (VSTDCSP): Likewise.
2315         (VSEEDP): Add overload support for scalar extract exponent
2316         operation.
2317         (VSESDP): Add overload support for scalar extract signature
2318         operation.
2319         (VSTDCN): Add overload support for scalar test negative
2320         operation.
2321         (VSTDCNDP): Add overload support for scalar test negative
2322         operation.
2323         (VSTDCNSP): Add overload support for scalar test negative
2324         operation.
2325         (VSIEDP): Add overload support for scalar insert exponent
2326         operation.
2327         (VSTDC): Add overload support for scalar test data class
2328         operation.
2329         (VSTDCDP): Add overload support for scalar test data class
2330         operation.
2331         (VSTDCSP): Add overload support for scalar test data class
2332         opreation.
2333         (VSCEDPGT): Add overload support for scalar compare exponent
2334         greater than operation.
2335         (VSCEDPLT): Add overload support for scalar compare exponent
2336         less than operation.
2337         (VSCEDPEQ): Add overload support for scalar compare exponent
2338         test-for-equality operation.
2339         (VSCEDPUO): Add overload support for scalar compare exponent
2340         test-for-unordered operation.
2341         (VEEDP): Add vector extract exponent support.
2342         (VEESP): Likewise.
2343         (VESDP): Add vector extract significand support.
2344         (VESSP): Likewise.
2345         (VIEDP): Add vector insert exponent support.
2346         (VIESP): Likewise.
2347         (VTDCDP): Add vector test data class support.
2348         (VTDCSP): Likewise.
2349         (VES): Add overload support for vector extract significand operation.
2350         (VESDP): Likewise.
2351         (VESSP): Likewise
2352         (VEE): Add overload support for vector extract exponent operation.
2353         (VEEDP): Likewise.
2354         (VEESP): Likewise.
2355         (VTDC): Add overload support for vector test data class operation.
2356         (VTDCDP): Likewise.
2357         (VTDCSP): Likewise.
2358         (VIE): Add overload support for vector insert exponent operation.
2359         (VIEDP): Likewise.
2360         (VIESP): Likewise.
2361         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2362         overloaded binary floating point functions.
2363         (altivec_resolve_overloaded_builtin): Improve error messages to
2364         distinguish between functions not supported in the current
2365         compiler configuration and functions that were invoked with an
2366         invalid parameter combination, and include the built-in function
2367         name in both error messages.
2368         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
2369         New prototype.
2370         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
2371         function.
2372         (rs6000_expand_binop_builtin): Add check to enforce that argument
2373         2 of the test data class operations is a 7-bit unsigned literal.
2374         (rs6000_invalid_builtin): Add code to issue an error message if a
2375         built-in function that requires the power9_vector and -m32
2376         command-line options is compiled without these options.
2377         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
2378         (UNSPEC_VSX_SXSIGDP): New value.
2379         (UNSPEC_VSX_SXSIGPDP): New value.
2380         (UNSPEC_VSX_SIEXPDP): New value.
2381         (UNSPEC_VSX_SCMPEXPDP): New value.
2382         (UNSPEC_VSX_STSTDC): New value.
2383         (UNSPEC_VSX_VXEXP): New value.
2384         (UNSPEC_VSX_VXSIG): New value.
2385         (UNSPEC_VSX_VIEXP): New value.
2386         (UNSPEC_VSX_VTSTDC): New value.
2387         (xsxexpdp): New insn for scalar extract exponent.
2388         (xsxsigdp): New insn for scalar extract significand.
2389         (xsiexpdp): New insn for scalar insert exponent.
2390         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
2391         (*xscmpexpdp): New insn for scalar compare exponents.
2392         (xststdc<Fvsx): New expansion for both single- and
2393         double-precision scalar test data class operations.
2394         (xststdcneg<Fvsx>): New expansion for both single- and
2395         double-precision scalar test for negative value operations.
2396         (*xststdc<Fvsx>): New insn for scalar test data class
2397         operation.
2398         (xvxexp<VSs>): New insn for single- and double-precision
2399         vector extract exponent operation.
2400         (xvxsig<VSs>): New insn for single- and double-precision
2401         vector extract significand operation.
2402         (xviexp<VSs>): New insn for single- and double-precision
2403         vector insert exponent operation.
2404         (xvtstdc<VSs>): New insn for single- and double-precision
2405         vector test data class operation.
2406         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2407         built-in functions to represent the Power9 binary floating-point
2408         support instructions.
2410 2016-08-10  bin cheng  <bin.cheng@arm.com>
2412         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
2414 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
2415             Renlin Li  <renlin.li@arm.com>
2416             Bin Cheng  <bin.cheng@arm.com>
2418         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
2419         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
2420         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
2421         (aarch64_vcond_internal<mode><mode>): Delete pattern.
2422         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
2423         (vcond<v_cmp_result><mode>): Ditto.
2424         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
2425         (vcondu<mode><mode>): Ditto.
2426         (vcond<v_cmp_mixed><mode>): New pattern.
2427         (vcondu<mode><v_cmp_mixed>): New pattern.
2428         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
2429         of aarch64_vcond_internal.
2431 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
2432             Renlin Li  <renlin.li@arm.com>
2433             Bin Cheng  <bin.cheng@arm.com>
2435         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
2436         (vec_cmp<mode><v_cmp_result>): New pattern.
2437         (vec_cmpu<mode><mode>): New pattern.
2438         (vcond_mask_<mode><v_cmp_result>): New pattern.
2440 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
2442         PR tree-optimization/71734
2443         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
2444         REF_LOOP, invoke ref_indep_loop_p_1.
2445         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
2446         to ref_indep_loop_p.
2447         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
2448         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
2449         is inside LOOP, do not cache dpendence value for loops with
2450         non-zero SAFELEN.
2451         (ref_indep_loop_p_2): Delete function.
2452         (can_sm_ref_p): Pass LOOP as additional argument to
2453         ref_indep_loop_p.
2455 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2457         PR target/72853
2458         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
2459         being an offsettable address.
2461 2016-08-10  Martin Liska  <mliska@suse.cz>
2463         PR gcov-profile/58306
2464         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
2465         atomic variants of profile update functions.
2467 2016-08-10  Martin Liska  <mliska@suse.cz>
2469         Cherry picked (and modified) from google-4_7 branch
2470         2012-12-26  Rong Xu  <xur@google.com>
2471         * common.opt (fprofile-update): Add new flag.
2472         * coretypes.h: Define enum profile_update.
2473         * doc/invoke.texi: Document -fprofile-update.
2474         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
2475         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
2476         * tree-profile.c (gimple_init_edge_profiler): Generate
2477         also atomic profiler update.
2478         (gimple_gen_edge_profiler): Likewise.
2480 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
2482         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
2483         stack_usage_file to NULL after fclose calls.
2485 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2487         PR target/71873
2488         * reload.c (push_reload): Compute subreg_in_class for
2489         subregs of constants and plus expressions. Remove special
2490         handling of SYMBOL_REFs.
2492 2016-08-10  Alan Modra  <amodra@gmail.com>
2494         PR target/71680
2495         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
2496         SImode for TARGET_E500_DOUBLE when given SImode.
2498 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
2500         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
2501         unused variable __O.
2503 2016-08-09  Martin Liska  <mliska@suse.cz>
2505         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
2506         _gcov_reset to __gcov_reset.
2507         * doc/gcov-tool.texi: Fix typo.
2509 2016-08-09  Martin Liska  <mliska@suse.cz>
2511         * value-prof.c (gimple_divmod_values_to_profile): Do not
2512         instrument MOD histogram if a value is not a SSA name.
2514 2016-08-09  Martin Liska  <mliska@suse.cz>
2516         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
2517         values.
2519 2016-08-09  Renlin Li  <renlin.li@arm.com>
2521         PR middle-end/64971
2522         * calls.c (prepare_call_address): Convert funexp to Pmode when
2523         necessary.
2524         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
2525         (sibcall_value): Likewise.
2527 2016-08-09  Marek Polacek  <polacek@redhat.com>
2529         PR c/7652
2530         * cselib.c (cselib_expand_value_rtx_1): Add return.
2531         * gengtype.c (dbgprint_count_type_at): Likewise.
2532         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
2533         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
2535 2016-08-09  Martin Jambor  <mjambor@suse.cz>
2537         PR ipa/71981
2538         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
2539         if instance is a MEM_REF.
2541 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
2543         PR target/72843
2544         * config/i386/i386.md (*movtf_internal): Use
2545         lra_in_progress || reload_completed instead of !can_create_pseudo_p
2546         in the insn constraint.
2547         (*movxf_internal): Ditto.
2548         (*movdf_internal): Ditto.
2549         (*movsf_internal): Ditto.
2551 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
2553         PR tree-optimization/72772
2554         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
2555         for expanded base.
2557 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
2559         PR tree-optimization/72772
2560         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
2561         parameter STOP.
2562         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
2563         parameter STOP and update calls.  Move expand_simple_operations
2564         function call from here...
2565         (simplify_using_initial_conditions): ...to here.  Delete parameter
2566         STOP.
2567         (tree_simplify_using_condition): Delete parameter STOP.
2568         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
2569         simplify_using_initial_conditions.
2571 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
2573         PR c/65345
2574         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
2575         Use create_tmp_var_raw instead of create_tmp_var.
2577 2016-08-09  Richard Biener  <rguenther@suse.de>
2579         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
2580         Treat same SSA names related.
2582 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
2584         PR tree-optimization/72824
2585         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
2586         real_zerop is not negative.
2588 2016-08-09  Richard Biener  <rguenther@suse.de>
2590         PR tree-optimization/71802
2591         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
2592         all merge opportunities with the predecessor.
2594 2016-08-09  Richard Biener  <rguenther@suse.de>
2596         PR ipa/68273
2597         * ipa-prop.c (ipa_modify_formal_parameters): Build
2598         parameter types with natural alignment also for the
2599         over-aligned case.
2601 2016-08-08  Andi Kleen  <ak@linux.intel.com>
2603         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
2605 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
2607         PR c/64955
2608         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
2609         do-nothing langhook.
2610         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
2611         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
2612         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
2613         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
2615 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
2617         PR bootstrap/72844
2618         * input.c: Ensure that HAVE_ICONV is defined.
2620 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
2622         PR middle-end/72781
2623         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
2624         private vars for lastprivate and for linear iterator.
2626         PR middle-end/68762
2627         * omp-simd-clone.c: Include varasm.h.
2628         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
2629         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
2630         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
2631         update function name.
2633 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2635         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
2636         (avr_diagnose_devicespecs_error): Remove.
2637         (avr_devicespecs_file): Remove composing absolute path for specfile
2638         and its verbose info. Remove conditions to check specs-file,
2640 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
2642         PR rtl-optimization/72821
2643         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
2644         just return false for them.
2646 2016-08-08  Alan Modra  <amodra@gmail.com>
2648         PR target/72771
2649         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
2650         toc refs created during reload.  Update function comment.
2652 2016-08-08  Alan Modra  <amodra@gmail.com>
2654         PR target/72802
2655         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
2656         alternatives.  Put loads first, then stores, and reg/reg moves
2657         within same class later.  Delete attr length.
2659 2016-08-08  Alan Modra  <amodra@gmail.com>
2661         PR target/72802
2662         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
2663         (mem_operand_ds_form): New predicate.
2664         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
2665         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
2666         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
2667         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
2668         (extendsfdf2_fpr): Replace o constraint with wY.
2670 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
2672         * tree-ssa-threadbackward.c: Include tree-inline.h
2673         (profitable_jump_thread_path): Use estimate_num_insns to estimate
2674         size of copied block; for cold paths reduce duplication.
2675         (find_jump_threads_backwards): Remove redundant tests.
2676         (pass_thread_jumps::gate): Enable for -Os.
2678 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
2680         PR c/72816
2681         * stor-layout.c (layout_decl): Fix up formatting.
2682         (relayout_decl): Allow DECL to be FIELD_DECL.
2684 2016-08-07  Alan Modra  <amodra@gmail.com>
2686         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
2688 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
2690         * data-streamer-in.c (streamer_read_wide_int): New.
2691         (streamer_read_widest_int): Renamed function.
2692         * data-streamer-out.c (streamer_write_wide_int): New
2693         (streamer_write_widest_int): Renamed function.
2694         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
2695         data-stream-in.c.
2696         (input_cfg): Call renamed function.
2697         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
2698         data-stream-out.c.
2699         (output_cfg): Call renamed function.
2700         * data-streamer.h: Add declarations.
2702 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2704         * tree-ssa-ccp.c (extend_mask): New param sgn.
2705         Remove ORing with wi::mask.
2706         (get_default_value): Adjust call to extend_mask to pass sign.
2707         (evaluate_stmt): Likewise.
2709 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
2711         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
2712         INT64_MAX.
2714 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2716         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
2717         transform if operand's type is pointer to function or method.
2719 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
2721         PR tree-optimization/18046
2722         * tree-ssa-threadedge.c: Include cfganal.h.
2723         (simplify_control_statement_condition): If simplifying a
2724         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
2725         with the dominating ASSERT_EXPR before handing it off to VRP.
2726         Mention that a CASE_LABEL_EXPR may be returned.
2727         (thread_around_empty_blocks): Adjust to handle
2728         simplify_control_statement_condition() returning a
2729         CASE_LABEL_EXPR.
2730         (thread_through_normal_block): Likewise.
2731         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
2732         a switch statement by trying to determine which case label
2733         will be taken.
2735 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
2737         PR rtl-optimization/69847
2738         * lra-constraints.c (process_invariant_for_inheritance): Save
2739         pattern instead of src.
2740         (remove_inheritance_pseudos): Use the pattern.  Add assert.
2742 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
2744         * input.c (string_concat::string_concat): New constructor.
2745         (string_concat_db::string_concat_db): New constructor.
2746         (string_concat_db::record_string_concatenation): New method.
2747         (string_concat_db::get_string_concatenation): New method.
2748         (string_concat_db::get_key_loc): New method.
2749         (class auto_cpp_string_vec): New class.
2750         (get_substring_ranges_for_loc): New function.
2751         (get_source_range_for_substring): New function.
2752         (get_num_source_ranges_for_substring): New function.
2753         (class selftest::lexer_test_options): New class.
2754         (struct selftest::lexer_test): New struct.
2755         (class selftest::ebcdic_execution_charset): New class.
2756         (selftest::ebcdic_execution_charset::s_singleton): New variable.
2757         (selftest::lexer_test::lexer_test): New constructor.
2758         (selftest::lexer_test::~lexer_test): New destructor.
2759         (selftest::lexer_test::get_token): New method.
2760         (selftest::assert_char_at_range): New function.
2761         (ASSERT_CHAR_AT_RANGE): New macro.
2762         (selftest::assert_num_substring_ranges): New function.
2763         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
2764         (selftest::assert_has_no_substring_ranges): New function.
2765         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
2766         (selftest::test_lexer_string_locations_simple): New function.
2767         (selftest::test_lexer_string_locations_ebcdic): New function.
2768         (selftest::test_lexer_string_locations_hex): New function.
2769         (selftest::test_lexer_string_locations_oct): New function.
2770         (selftest::test_lexer_string_locations_letter_escape_1): New function.
2771         (selftest::test_lexer_string_locations_letter_escape_2): New function.
2772         (selftest::test_lexer_string_locations_ucn4): New function.
2773         (selftest::test_lexer_string_locations_ucn8): New function.
2774         (selftest::uint32_from_big_endian): New function.
2775         (selftest::test_lexer_string_locations_wide_string): New function.
2776         (selftest::uint16_from_big_endian): New function.
2777         (selftest::test_lexer_string_locations_string16): New function.
2778         (selftest::test_lexer_string_locations_string32): New function.
2779         (selftest::test_lexer_string_locations_u8): New function.
2780         (selftest::test_lexer_string_locations_utf8_source): New function.
2781         (selftest::test_lexer_string_locations_concatenation_1): New
2782         function.
2783         (selftest::test_lexer_string_locations_concatenation_2): New
2784         function.
2785         (selftest::test_lexer_string_locations_concatenation_3): New
2786         function.
2787         (selftest::test_lexer_string_locations_macro): New function.
2788         (selftest::test_lexer_string_locations_stringified_macro_argument):
2789         New function.
2790         (selftest::test_lexer_string_locations_non_string): New function.
2791         (selftest::test_lexer_string_locations_long_line): New function.
2792         (selftest::test_lexer_char_constants): New function.
2793         (selftest::input_c_tests): Call the new test functions once per
2794         case within the line_table test matrix.
2795         * input.h (struct string_concat): New struct.
2796         (struct location_hash): New struct.
2797         (class string_concat_db): New class.
2798         * substring-locations.h: New header.
2800 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
2802         PR tree-optimization/72810
2803         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
2804         the type of the case labels when truncating.
2806 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
2808         PR Target/72819
2809         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
2810         (aarch64_fp16_ptr_type_node): Likewise.
2811         * config/aarch64/aarch64-simd-builtins.c
2812         (aarch64_fp16_ptr_type_node): Define.
2813         (aarch64_init_fp16_types): New, refactored out of...
2814         (aarch64_init_builtins): ...here, update to call
2815         aarch64_init_fp16_types.
2816         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
2817         HFmode.
2818         (aapcs_vfp_sub_candidate): Likewise.
2820 2016-08-05  Martin Liska  <mliska@suse.cz>
2821             Joshua Cranmer  <Pidgeot18@gmail.com>
2823         * gcov.c (line_t::has_block): New function.
2824         (enum loop_type): New enum.
2825         (handle_cycle): New function.
2826         (unblock): Likewise.
2827         (circuit): Likewise.
2828         (get_cycles_count): Likewise.
2829         (accumulate_line_counts): Use new loop detection algorithm.
2831 2016-08-05  Martin Liska  <mliska@suse.cz>
2833         * gcov.c (output_intermediate_file): Rename
2834         function_info::line_next to next_file_fn.
2835         (process_file): Likewise.
2836         (read_graph_file): Likewise.
2837         (accumulate_line_counts): Likewise.
2838         (output_lines): Likewise.
2840 2016-08-05  Richard Biener  <rguenther@suse.de>
2842         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
2843         restriction on threading to a loop header.
2845 2016-08-05  Richard Biener  <rguenther@suse.de>
2847         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
2848         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
2849         adjust loop info accordingly.
2851 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
2853         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
2854         before folding call to __builtin_constant_p with parameters to false.
2856 2016-08-05  Alan Modra  <amodra@gmail.com>
2858         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
2859         code accidentally committed 2016-05-02 providing class when given
2860         NO_REGS.
2862 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
2864         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
2865         the case label ranges that partially overlap with OP's value
2866         range.
2868 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
2870         PR target/72805
2871         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
2872         Cast builtin function result to __mmask16 instead of __mmask8.
2873         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
2874         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
2875         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
2877 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
2879         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
2880         (ASSERT_TRUE_AT): New macro.
2881         (ASSERT_FALSE): Reimplement in terms of...
2882         (ASSERT_FALSE_AT): New macro.
2883         (ASSERT_STREQ_AT): Fix typo in comment.
2885 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
2887         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
2888         labels are exhaustive, designate the label with the widest
2889         range to be the default label.
2891 2016-08-04  Andrew Pinski  <apinski@cavium.com>
2893         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
2894         (thunderx_tunings): Use thunderx_vector_cost instead of
2895         generic_vector_cost.
2897 2016-08-04  Martin Liska  <mliska@suse.cz>
2899         * gcov.c (main): Fix GNU coding style.
2900         (output_intermediate_file): Likewise.
2901         (process_file): Likewise.
2902         (generate_results): Likewise.
2903         (release_structures): Likewise.
2904         (create_file_names): Likewise.
2905         (find_source): Likewise.
2906         (read_graph_file): Likewise.
2907         (find_exception_blocks): Likewise.
2908         (canonicalize_name): Likewise.
2909         (make_gcov_file_name): Likewise.
2910         (mangle_name): Likewise.
2911         (accumulate_line_counts): Likewise.
2912         (output_branch_count): Likewise.
2913         (read_line): Likewise.
2915 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2917         PR rtl-optimization/71779
2918         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
2919         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
2920         or if it was truncated.
2922         PR rtl-optimization/70903
2923         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
2925 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
2927         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
2928         accessing SSA_NAME_PTR_INFO.
2930 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
2932         PR 70677
2933         * common/config/avr/avr-common.c (avr_option_optimization_table)
2934         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
2936 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
2938         PR 55181
2939         * config/avr/avr.md: New pattern to work around do_store_flag
2940         generating shift instructions for bit extractions.
2942 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
2944         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
2945         BITMAP_ALLOC.
2946         (add_equivalence): Likewise.
2947         (get_value_range): Allocate value range with vrp_value_range_pool.
2948         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
2949         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
2951 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
2953         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
2954         the default for the rs6000 port.
2956 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2958         PR middle-end/71876
2959         * calls.c (special_function_p): Remove special handling of
2960         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
2961         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
2962         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
2964 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
2966         PR middle-end/72778
2967         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
2968         Don't stop on regular insns.
2970 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
2972         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
2973         size to DImode boundary.
2974         (nvptx_propagate): Likewise.
2976 2016-08-03  Alan Modra  <amodra@gmail.com>
2978         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
2979         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
2980         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
2981         from -mefficient-unaligned-vector.  Note that this affects fp too.
2983 2016-08-03  Alan Modra  <amodra@gmail.com>
2985         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
2986         cost more.
2988 2016-08-03  Alan Modra  <amodra@gmail.com>
2990         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
2991         to a reg.  Localize vars.
2993 2016-08-03  Alan Modra  <amodra@gmail.com>
2995         * config/rs6000/rs6000.opt: Remove negatives from help strings
2996         and comments.
2998 2016-08-03  Alan Modra  <amodra@gmail.com>
3000         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
3001         Delete duplicated code.
3003 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
3005         PR middle-end/72778
3006         * lra-spills.c (regno_in_use_p): New.
3007         (lra_final_code_change): Use it.
3009 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
3011         PR rtl-optimization/69847
3012         * lra-int.h (struct lra-reg): Use restore_rtx instead of
3013         restore_regno.
3014         (lra_rtx_hash): New.
3015         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
3016         of restore_regno.
3017         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
3018         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
3019         * lra-spills.c (lra_final_code_change): Don't delete insn when the
3020         next insn is USE with the same reg as the current insn source.
3021         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
3022         of restore_regno.
3023         (lra_constraints_init): Call initiate_invariants.
3024         (lra_constraints_finish): Call finish_invariants.
3025         (struct invariant, invariant_t, invariant_ptr_t): New.
3026         (const_invariant_ptr_t, invariants, invariants_pool): New.
3027         (invariant_table, invariant_hash, invariant_eq_p): New.
3028         (insert_invariant, initiate_invariants, finish_invariants): New.
3029         (clear_invariants, invalid_invariant_regs): New.
3030         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
3031         instead of restore_regno.
3032         (invariant_p, process_invariant_for_inheritance): New.
3033         (inherit_in_ebb): Implement invariant inheritance.
3034         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
3035         (remove_inheritance_pseudos): Implement undoing invariant
3036         inheritance.
3037         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
3038         instead of restore_regno.
3039         * lra-assigns.c (regno_live_length): New.
3040         (reload_pseudo_compare_func): Use regno_live_length.
3041         (assign_by_spills): Use restore_rtx instead of restore_regno.
3042         (lra_assign): Ditto.  Initiate regno_live_length.
3044 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
3046         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
3047         __builtin_aarch64_fmindf.
3049 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
3051         PR tree-optimization/34114
3052         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
3053         information for more control IVs.
3055 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
3057         PR tree-optimization/34114
3058         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
3059         PLUS_EXPR case.  Handle SSA_NAME case.
3061 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
3063         * config/aarch64/aarch64-simd-builtins.def
3064         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
3065         (__builtin_aarch64_fmaxdf): Likewise.
3066         (__builtin_aarch64_smin_nandf): Likewise.
3067         (__builtin_aarch64_smax_nandf): Likewise.
3068         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
3069         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
3070         (<fmaxmin><mode>3): ...this.
3071         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
3072         (vminnm_f64): Likewise.
3073         (vmin_f64): Likewise.
3074         (vmax_f64): Likewise.
3075         * config/aarch64/iterators.md (FMAXMIN): Merge with...
3076         (FMAXMIN_UNS): ...this.
3077         (fmaxmin): Merged with
3078         (fmaxmin_op): ...this...
3079         (maxmin_uns_op): ...in to this.
3081 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
3083         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3084         Add support for vec_extract on vector float, vector int, vector
3085         short, and vector char vector types.
3086         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3087         vector float, vector int, vector short, and vector char
3088         optimizations on 64-bit ISA 2.07 systems for both constant and
3089         variable element numbers.
3090         (rs6000_split_vec_extract_var): Likewise.
3091         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
3092         Altivec registers on ISA 2.07 and above.
3093         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
3094         which never was matched due to the split occuring before register
3095         allocation (and the code would not have worked on little endian
3096         systems if it did match).  Allow extracts to go to the Altivec
3097         registers if ISA 2.07 (power8).  Change from using "" around the
3098         C++ code to using {}'s.
3099         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
3100         vec_extracts when the vector is in memory.
3101         (vsx_extract_v4sf_var): New insn to optimize vector float
3102         vec_extracts when the element number is variable on 64-bit ISA
3103         2.07 systems.
3104         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
3105         for 64-bit ISA 2.07 as well as ISA 3.0.
3106         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
3107         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
3108         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
3109         optimize vector int, vector short, and vector char vec_extracts
3110         when the vector is in memory.
3111         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
3112         optimize vector int, vector short, and vector char vec_extracts
3113         when the element number is variable.
3115 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
3117         PR target/71948
3118         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
3119         does not overlap with other symbol flags.
3121 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
3123         * config/aarch64/aarch64.h (aarch64_frame):
3124         Remove padding0 and hardfp_offset.  Add locals_offset,
3125         initial_adjust, callee_adjust, callee_offset and final_adjust.
3126         * config/aarch64/aarch64.c (aarch64_layout_frame):
3127         Remove unused padding0 and hardfp_offset initializations.
3128         Choose frame layout and set frame variables accordingly.
3129         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
3130         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
3131         (aarch64_pop_regs): Likewise.
3132         (aarch64_expand_prologue): Remove all decision code, just emit
3133         prolog according to frame variables.
3134         (aarch64_expand_epilogue): Remove all decision code, just emit
3135         epilog according to frame variables.
3136         (aarch64_initial_elimination_offset): Use offset to local/arg area.
3138 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
3140         PR target/72748
3141         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
3142         fix_debug_reg_uses after changing source register mode to
3143         V1TImode if source register is undefined.
3145 2015-08-01  Alan Hayward  <alan.hayward@arm.com>
3147         PR tree-optimization/71818
3148         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
3149         with non invariant evolutions
3151 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
3153         PR target/72767
3154         * config/avr/avr.md (length) [branch]: Correct insn length
3155         attribute for forward branches.
3157 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
3159         * doc/extend.texi (AVR Built-in Functions): Document
3160         __builtin_avr_nops.
3161         * config/avr/builtins.def (NOPS): New.
3162         * config/avr/avr.c (avr_expand_nops): New static function.
3163         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
3165 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3167         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
3168         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
3169         addresses.
3171 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
3173         * config/aarch64/aarch64.c (vulcan_tunings): Update
3174         vulcan L1 cache_line_size.
3176 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
3178         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
3179         function that takes a vector memory address, a hard register, an
3180         element number and a temporary base register, and recreates an
3181         address that points to the appropriate element within the vector.
3182         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
3183         (rs6000_split_vec_extract_var): Add support for the target of a
3184         vec_extract with variable element number being a scalar memory
3185         location.
3186         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
3187         swappable.
3188         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
3189         vsx_extract_<mode>_load insn with a new insn that optimizes
3190         storing either element to a memory location, using scratch
3191         registers to pick apart the vector and reconstruct the address.
3192         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
3193         (vsx_extract_<mode>_store): Rework alternatives to more correctly
3194         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
3195         store instruction.
3196         (vsx_extract_<mode>_var): Add support for extracting a variable
3197         element number from memory.
3199 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
3201         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
3202         when testing for compares against constants of the form 0xabab.
3204 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
3206         PR tree-optimization/57558
3207         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
3208         function.
3209         (vect_loop_versioning): Support versioning with niter assumptions.
3210         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
3211         (vect_get_loop_niters): New parameter.  Reimplement to support
3212         assumptions in loop niter info.
3213         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
3214         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
3215         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
3216         Support loop versioning for niters.
3217         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
3218         (vect_free_loop_info_assumptions): New function.
3219         (vectorize_loops): Free loop niter info for loops with flag
3220         LOOP_F_ASSUMPTIONS set if vectorization failed.
3221         * tree-vectorizer.h (struct _loop_vec_info): New field
3222         num_iters_assumptions.
3223         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
3224         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
3225         (LOOP_REQUIRES_VERSIONING): New macro.
3226         (vect_free_loop_info_assumptions): New decl.
3228 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
3230         * cfgloop.h (struct loop): New field constraints.
3231         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
3232         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
3233         functions.
3234         * cfgloop.c (alloc_loop): Initialize new field.
3235         * cfgloopmanip.c (copy_loop_info): Copy constraints.
3236         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
3237         Adjust niter analysis wrto loop constraints.
3238         * doc/loop.texi (@node Number of iterations): Add description for loop
3239         constraints.
3241 2016-07-29  Marek Polacek  <polacek@redhat.com>
3243         PR c/7652
3244         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
3245         (ix86_expand_round_builtin): Likewise.
3247 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
3248             Georg-Johann Lay  <avr@gjlay.de>
3250         PR rtl-optimization/71976
3251         * combine.c (get_last_value): Return 0 if the argument for which
3252         the function is called has a wider mode than the recorded value.
3254 2016-07-29  Marek Polacek  <polacek@redhat.com>
3256         PR c/7652
3257         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
3258         (altivec_expand_st_builtin): Likewise.
3260 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
3262         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
3263         introduced in r238381.
3265 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
3267         PR middle-end/68217
3268         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
3269         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
3271 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
3273         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
3274         New declaration.
3275         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3276         Add support for vec_extract of vector double or vector long having
3277         a variable element number on 64-bit ISA 2.07 systems or newer.
3278         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
3279         Likewise.
3280         (rs6000_split_vec_extract_var): New function to split a
3281         vec_extract built-in function with variable element number.
3282         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
3283         swappable.
3284         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
3285         (UNSPEC_VSX_EXTRACT): Likewise.
3286         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
3287         direct move instructions to be generated on 64-bit ISA 2.07
3288         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
3289         instruction.
3290         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
3291         arguments for vec_extract variable element.
3292         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
3293         vec_extract with variable element on V2DFmode and V2DImode
3294         vectors.
3295         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
3296         -mupper-regs-df requirement, since it isn't needed.
3297         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
3298         do direct moves on 64-bit systems, which allows optimization of
3299         vec_extract on 64-bit ISA 2.07 systems and newer.
3301 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
3302 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
3304          * config/aarch64/aarch64.md
3305         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
3306         statement and type.
3307         (<optab>qihi2_aarch64): Likewise, and split into two.
3308         (extendqihi2_aarch64): New.
3309         (zero_extendqihi2_aarch64): New.
3310         * config/aarch64/iterators.md (ldrxt): Remove.
3311         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
3312         uxtb/uxth.
3314 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
3316         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
3318 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
3320         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
3321         (aarch64_push_reg): New function to push 1 or 2 registers.
3322         (aarch64_pop_reg): New function to pop 1 or 2 registers.
3323         (aarch64_expand_prologue): Use aarch64_push_regs.
3324         (aarch64_expand_epilogue): Use aarch64_pop_regs.
3326 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
3328         PR tree-optimization/71734
3329         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
3330         attribute instead of REF_LOOP and use it.
3331         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
3332         set it for Loops having non-zero safelen attribute.
3333         (ref_indep_loop_p): Pass zero as initial value for safelen.
3335 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
3337         PR middle-end/72657
3338         PR target/72683
3339         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
3340         call using chkp_gimple_call_builtin_p.
3341         (chkp_copy_bounds_for_assign): Likewise.
3343 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3345         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
3346         * config/arm/arm-protos.h (struct tune_params): Likewise.
3347         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
3348         (cortex_a9_sched_adjust_cost): Likewise.
3349         (fa726te_sched_adjust_cost): Likewise.
3350         (arm_adjust_cost): Likewise.
3351         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
3352         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
3353         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
3354         * config/i386/i386.c (ix86_adjust_cost): Likewise.
3355         * config/ia64/ia64.c: Likewise.
3356         * config/m68k/m68k.c: Likewise.
3357         * config/mep/mep.c (mep_adjust_cost): Likewise.
3358         * config/microblaze/microblaze.c (microblaze_adjust_cost):
3359         * Likewise.
3360         * config/mips/mips.c (mips_adjust_cost): Likewise.
3361         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
3362         * Likewise.
3363         * config/pa/pa.c (pa_adjust_cost): Likewise.
3364         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
3365         (rs6000_debug_adjust_cost): Likewise.
3366         * config/sh/sh.c (sh_adjust_cost): Likewise.
3367         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
3368         (hypersparc_adjust_cost): Likewise.
3369         (sparc_adjust_cost): Likewise.
3370         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
3371         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
3372         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
3373         * Likewise.
3374         * config/visium/visium.c (visium_adjust_cost): Likewise.
3375         * doc/tm.texi: Regenerate.
3376         * haifa-sched.c (dep_cost_1): Adjust.
3377         * target.def: Merge adjust_cost and adjust_cost_2.
3379 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3381         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
3383 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3385         * store-motion.c (struct st_expr): Make pattern_regs a vector.
3386         (extract_mentioned_regs): Append to a vector instead of
3387         returning a rtx_expr_list.
3388         (st_expr_entry): Adjust.
3389         (free_st_expr_entry): Likewise.
3390         (store_ops_ok): Likewise.
3391         (store_killed_in_insn): Likewise.
3392         (find_moveable_store): Likewise.
3394 2016-07-28  Martin Liska  <mliska@suse.cz>
3396         PR gcov-profile/68025
3397         * tree-profile.c (tree_profiling): Respect
3398         no_profile_instrument_function attribute.
3399         * doc/extend.texi: Document no_profile_instrument_function
3400         attribute.
3402 2016-07-28  Martin Liska  <mliska@suse.cz>
3404         PR rtl-optimization/70944
3405         * combine.c (make_compound_operation):
3406         Do not allow make_compound_operation for vector mode
3408 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
3410         PR middle-end/71994
3411         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
3412          before calling get_ops.
3414 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3416         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
3417         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
3418         (BITS_PER_UNIT_LOG): Remove.
3419         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
3420         * expr.c (expand_assignment): Likewise.
3421         * stor-layout.c (initialize_sizetypes): Likewise.
3423 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
3425         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
3426         signature of rs6000_expand_vector_extract so that the element
3427         number is a RTX instead of a constant integer.
3428         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
3429         Likewise.
3430         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
3431         (altivec_expand_vec_ext_builtin): Likewise.
3432         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
3433         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
3434         MFVSRLD instruction.
3436 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
3438         * input.c (get_pure_location): Move here from tree.c.
3439         (make_location): Likewise.  Add header comment.
3440         (selftest::test_accessing_ordinary_linemaps): Verify
3441         pure_location_p, make_location, get_location_from_adhoc_loc and
3442         get_range_from_loc.
3443         * input.h (get_pure_location): Move declaration here from tree.h.
3444         (get_finish): Likewise for inline function.
3445         (make_location): Likewise for declaration.
3446         * tree.c (get_pure_location): Move to input.c.
3447         (make_location): Likewise.
3448         * tree.h (get_pure_location): Move declaration to tree.h.
3449         (get_finish): Likewise for inline function.
3450         (make_location): Likewise for declaration.
3452 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3454         PR middle-end/71078
3455         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
3457 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
3459         * system.h (STATIC_ASSERT): Use static_assert if building
3460         with C++11 onwards.
3462 2016-07-27  Richard Biener  <rguenther@suse.de>
3464         PR tree-optimization/72517
3465         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
3466         Revert change to not compute read-read dependences.
3468 2016-07-27  Richard Biener  <rguenther@suse.de>
3470         * predict.c (set_even_probabilities): Make nedges unsigned.
3472 2016-07-27  Martin Liska  <mliska@suse.cz>
3474         * predict.c (set_even_probabilities): Handle unlikely edges.
3475         (combine_predictions_for_bb): Likewise.
3477 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3479         PR target/71869
3480         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
3481         __float128 support when we don't have hardware support, so that
3482         the IEEE built-in functions like isgreater, first call __unordkf3
3483         to make sure neither operand is a NaN, and if both operands are
3484         ordered, do the normal comparison.
3486 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
3488         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
3489         name.
3490         (extract_code_and_val_from_cond_with_ops): Verify that name is
3491         either cond_op0 or cond_op1.
3493 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
3495         PR tree-optimization/18046
3496         * genmodes.c (emit_mode_size_inline): Emit an assert that
3497         verifies that mode is a valid array index.
3498         (emit_mode_nuinits_inline): Likewise.
3499         (emit_mode_inner_inline): Likewise.
3500         (emit_mode_unit_size_inline): Likewise.
3501         (emit_mode_unit_precision_inline): Likewise.
3502         * tree-vrp.c: Include params.h.
3503         (find_switch_asserts): Register edge assertions for the default
3504         label which correspond to the anti-ranges of each case label.
3505         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
3506         * doc/invoke.texi: Document it.
3508 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3510         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
3511         and unnecessary call to gimple_bb.
3513 2016-07-26  Richard Biener  <rguenther@suse.de>
3515         PR rtl-optimization/71984
3516         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
3517         for VOIDmode.
3519 2016-07-26  Richard Biener  <rguenther@suse.de>
3521         PR middle-end/72517
3522         * expmed.c (extract_bit_field_1): Constrain the vector mode
3523         with element size matching the extraction mode size when
3524         choosing a better vector mode to do the extraction from.
3526 2016-07-26  Richard Biener  <rguenther@suse.de>
3527             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3529         PR middle-end/70920
3530         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
3531         pattern.
3533 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3535         * tree-ssa-structalias.c (struct scc_info): Change types of
3536         members to auto_sbitmap and auto_vec.
3537         (scc_info::scc_info): New constructor.
3538         (scc_info::~scc_info): New destructor.
3539         (init_scc_info): Remove.
3540         (free_scc_info): Remove.
3541         (find_indirect_cycles): Adjust.
3542         (perform_var_substitution): Likewise.
3543         (free_var_substitution_info): Likewise.
3545 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3547         * tree-outof-ssa.c (struct elim_graph): Change type of members
3548         to auto_vec and auto_sbitmap.
3549         (elim_graph::elim_graph): New constructor.
3550         (delete_elim_graph): Remove.
3551         (expand_phi_nodes): Adjust.
3553 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3555         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
3556         (new_elim_graph): Adjust.
3557         (clear_elim_graph): Likewise.
3558         (delete_elim_graph): Likewise.
3559         (elim_graph_size): Likewise.
3560         (elim_graph_add_node): Likewise.
3561         (elim_graph_add_edge): Likewise.
3562         (elim_graph_remove_succ_edge): Likewise.
3563         (eliminate_name): Likewise.
3564         (eliminate_build): Likewise.
3565         (elim_forward): Likewise.
3566         (elim_unvisited_predecessor): Likewise.
3567         (elim_backward): Likewise.
3568         (elim_create): Likewise.
3569         (eliminate_phi): Likewise.
3570         (expand_phi_nodes): Likewise.
3572 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3574         * bt-load.c (compute_out): Use auto_sbitmap class.
3575         (link_btr_uses): Likewise.
3576         * cfganal.c (mark_dfs_back_edges): Likewise.
3577         (post_order_compute): Likewise.
3578         (inverted_post_order_compute): Likewise.
3579         (pre_and_rev_post_order_compute_fn): Likewise.
3580         (single_pred_before_succ_order): Likewise.
3581         * cfgexpand.c (pass_expand::execute): Likewise.
3582         * cfgloop.c (verify_loop_structure): Likewise.
3583         * cfgloopmanip.c (fix_bb_placements): Likewise.
3584         (remove_path): Likewise.
3585         (update_dominators_in_loop): Likewise.
3586         * cfgrtl.c (break_superblocks): Likewise.
3587         * ddg.c (check_sccs): Likewise.
3588         (create_ddg_all_sccs): Likewise.
3589         * df-core.c (df_worklist_dataflow): Likewise.
3590         * dse.c (dse_step3): Likewise.
3591         * except.c (eh_region_outermost): Likewise.
3592         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3593         * gcse.c (prune_expressions): Likewise.
3594         (prune_insertions_deletions): Likewise.
3595         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
3596         * graph.c (draw_cfg_nodes_no_loops): Likewise.
3597         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
3598         * lcm.c (compute_earliest): Likewise.
3599         (compute_farthest): Likewise.
3600         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
3601         (unroll_loop_runtime_iterations): Likewise.
3602         (unroll_loop_stupid): Likewise.
3603         * lower-subreg.c (decompose_multiword_subregs): Likewise.
3604         * lra-lives.c: Likewise.
3605         * lra.c (lra): Likewise.
3606         * modulo-sched.c (schedule_reg_moves): Likewise.
3607         (optimize_sc): Likewise.
3608         (get_sched_window): Likewise.
3609         (sms_schedule_by_order): Likewise.
3610         (check_nodes_order): Likewise.
3611         (order_nodes_of_sccs): Likewise.
3612         (order_nodes_in_scc): Likewise.
3613         * recog.c (split_all_insns): Likewise.
3614         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
3615         * reload1.c (reload): Likewise.
3616         * sched-rgn.c (haifa_find_rgns): Likewise.
3617         (split_edges): Likewise.
3618         (compute_trg_info): Likewise.
3619         * sel-sched.c (init_seqno): Likewise.
3620         * store-motion.c (remove_reachable_equiv_notes): Likewise.
3621         * tree-into-ssa.c (update_ssa): Likewise.
3622         * tree-ssa-live.c (live_worklist): Likewise.
3623         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
3624         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
3625         * Likewise.
3626         (try_peel_loop): Likewise.
3627         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
3628         * Likewise.
3629         * tree-ssa-pre.c (compute_antic): Likewise.
3630         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
3631         * tree-stdarg.c (reachable_at_most_once): Likewise.
3632         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
3633         * var-tracking.c (vt_find_locations): Likewise.
3635 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3637         * sbitmap.h (auto_sbitmap): New class.
3639 2016-07-26  Alan Modra  <amodra@gmail.com>
3641         PR target/72103
3642         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
3643         sri->t_icode.
3645 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
3647         * input.c (selftest::temp_source_file::temp_source_file): Fix
3648         missing "%s" in fprintf.
3650 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
3652         PR middle-end/71732
3653         * cselib.c (cselib_process_insn): Invalidate argument slots for
3654         const/pure calls.
3656 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3658         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
3659         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
3660         vmulxh_lane_f16, vmulxh_laneq_f16): New.
3662 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3664         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
3665         * config/aarch64/aarch64.md (fma, fnma): Support HF.
3666         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
3668 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3670         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
3671         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
3672         New.
3673         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
3674         (add<mode>3): Likewise.
3675         (sub<mode>3): Likewise.
3676         (mul<mode>3): Likewise.
3677         (div<mode>3): Likewise.
3678         (*div<mode>3): Likewise.
3679         (<fmaxmin><mode>3): Extend to HF.
3680         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
3681         (fabd<mode>3): Likewise.
3682         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
3683         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
3684         (aarch64_fmulx<mode>): Likewise.
3685         (aarch64_fac<optab><mode>): Likewise.
3686         (aarch64_frecps<mode>): Likewise.
3687         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
3688         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
3689         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
3690         (VSDQ_HSDI): Support HI.
3691         (fcvt_target, FCVT_TARGET): Likewise.
3692         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
3693         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
3694         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
3695         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
3696         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
3697         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
3698         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
3699         vrsqrtsh_f16): New.
3701 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3703         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
3704         * config/aarch64/aarch64-builtins.c (hi_UP): New.
3705         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
3706         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
3707         mode.
3708         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
3709         (aarch64_cm<optab><mode>): Likewise.
3710         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
3711         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
3712         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
3713         (sqrt<mode>2): Likewise.
3714         (*sqrt<mode>2): Likewise.
3715         (abs<mode>2): Likewise.
3716         (<optab><mode>hf2): New pattern for HF mode.
3717         (<optab>hihf2): Likewise.
3718         * config/aarch64/arm_neon.h: Include arm_fp16.h.
3719         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
3720         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
3721         Support HF mode.
3722         * config/aarch64/arm_fp16.h: New file.
3723         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
3724         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
3725         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
3726         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
3727         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
3728         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
3729         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
3730         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
3731         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
3732         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
3733         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
3734         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
3735         vsqrth_f16): New.
3737 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3739         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
3740         reduc_smin_scal_): Use VDQIF_F16.
3741         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
3742         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
3743         Use VHSDF.
3744         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
3745         * config/aarch64/iterators.md (VDQIF_F16): New.
3746         (vp): Support HF modes.
3747         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
3748         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
3750 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3752         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
3753         "*aarch64_mulx_elt_from_dup<mode>".
3754         (*aarch64_mul3_elt<mode>): Update schedule type.
3755         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
3756         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
3757         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
3758         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
3759         (f, fp): Support HF modes.
3760         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
3761         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
3762         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
3763         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
3764         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
3765         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
3767 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3769         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
3770         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
3771         modes.
3772         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
3773         vfmsq_f16): New.
3775 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3777         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
3778         * config/aarch64/aarch64-simd.md
3779         (aarch64_rsqrts<mode>): Extend to HF modes.
3780         (fabd<mode>3): Likewise.
3781         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
3782         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
3783         (aarch64_<maxmin_uns>p<mode>): Likewise.
3784         (<su><maxmin><mode>3): Likewise.
3785         (<maxmin_uns><mode>3): Likewise.
3786         (<fmaxmin><mode>3): Likewise.
3787         (aarch64_faddp<mode>): Likewise.
3788         (aarch64_fmulx<mode>): Likewise.
3789         (aarch64_frecps<mode>): Likewise.
3790         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
3791         (add<mode>3): Extend to HF modes.
3792         (sub<mode>3): Likewise.
3793         (mul<mode>3): Likewise.
3794         (div<mode>3): Likewise.
3795         (*div<mode>3): Likewise.
3796         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
3797         HF, V4HF and V8HF.
3798         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
3799         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
3800         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
3801         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
3802         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
3803         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
3804         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
3805         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
3806         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
3807         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
3808         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
3809         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
3810         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
3811         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
3813 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3815         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
3816         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
3817         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
3818         (neg<mode>2): Likewise.
3819         (abs<mode>2): Likewise.
3820         (<frint_pattern><mode>2): Likewise.
3821         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
3822         (<optab><VDQF:mode><fcvt_target>2): Likewise.
3823         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
3824         (ftrunc<VDQF:mode>2): Likewise.
3825         (<optab><fcvt_target><VDQF:mode>2): Likewise.
3826         (sqrt<mode>2): Likewise.
3827         (*sqrt<mode>2): Likewise.
3828         (aarch64_frecpe<mode>): Likewise.
3829         (aarch64_cm<optab><mode>): Likewise.
3830         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
3831         HF, V4HF and V8HF.
3832         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
3833         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
3834         (stype): New.
3835         * config/aarch64/arm_neon.h (vdup_n_f16): New.
3836         (vdupq_n_f16): Likewise.
3837         (vld1_dup_f16): Use vdup_n_f16.
3838         (vld1q_dup_f16): Use vdupq_n_f16.
3839         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
3840         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
3841         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
3842         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
3843         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
3844         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
3845         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
3846         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
3847         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
3848         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
3849         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
3850         vsqrt_f16, vsqrtq_f16): New.
3852 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3854         * config/aarch64/aarch64-simd.md
3855         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
3856         (aarch64_ext<mode>): Likewise.
3857         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
3858         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
3859         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
3860         and V8HFmode.
3861         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
3862         float16x8_t.
3863         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
3864         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
3865         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
3866         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
3867         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
3868         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
3869         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
3870         New.
3871         (vmov_n_f16): Reimplement using vdup_n_f16.
3872         (vmovq_n_f16): Reimplement using vdupq_n_f16..
3874 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3876         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
3877         "frame_related_p".  Generate CFA annotation when it's necessary.
3878         (aarch64_expand_prologue): Use aarch64_add_constant.
3879         (aarch64_expand_epilogue): Likewise.
3880         (aarch64_output_mi_thunk): Pass "false" when calling
3881         aarch64_add_constant.
3883 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3885         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
3886         sequences.
3888 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
3890         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
3891         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
3892         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
3893         (aarch64_build_constant): Delete.
3895 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
3897         Revert
3898         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
3900         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
3901         flag_toplevel_reorder.
3903 2016-07-25  Richard Biener  <rguenther@suse.de>
3905         * cgraph.c (cgraph_node::verify_node): Compare against builtin
3906         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
3907         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
3908         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
3909         (streamer_get_builtin_tree): Likewise.
3910         (streamer_write_builtin): Likewise.
3911         * lto-streamer.h (LTO_builtin_decl): Remove.
3912         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
3913         (lto_input_scc): Remove LTO_builtin_decl handling.
3914         (lto_input_tree_1): Liekwise.
3915         * lto-streamer-out.c (lto_output_tree_1): Remove special
3916         handling of builtins.
3917         (DFS::DFS): Likewise.
3918         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
3919         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
3920         assert.
3921         (streamer_write_builtin): Remove.
3923 2016-07-25  Martin Liska  <mliska@suse.cz>
3925         * lto-cgraph.c (input_symtab): Don't call get_working_sets
3926         if flag_auto_profile is set to true.
3928 2016-07-25  Martin Liska  <mliska@suse.cz>
3930         PR gcov-profile/71868
3931         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
3932         have a function with multiple latches, count them all.
3934 2016-07-25  Martin Liska  <mliska@suse.cz>
3936         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
3938 2016-07-25  Martin Liska  <mliska@suse.cz>
3940         PR tree-optimization/71987
3941         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
3942         just for SSA_NAMEs. Fix GNU coding style.
3944 2016-07-25  Martin Liska  <mliska@suse.cz>
3946         PR gcov-profile/64874
3947         * gcov-io.h: Update command about file format.
3948         * gcov-iov.c (main): Adapt the numbering scheme.
3950 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
3952         PR middle-end/66726
3953         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
3954         whose result is used in PHI.
3955         (final_range_test_p): Likewise.
3956         (maybe_optimize_range_tests): Likewise.
3958 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
3960         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3961         Reformat two multi-line strings.
3963 2016-07-22  Martin Sebor  <msebor@redhat.com>
3965         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
3967 2016-07-22  Martin Sebor  <msebor@redhat.com>
3969         PR c/71560
3970         * doc/extend.texi (Compound Literals): Correct and clarify.
3971         (Cast to Union): Same.
3973 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3975         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
3976         comments to explain why certain error messages make mention of
3977         undocumented options.
3978         (rs6000_invalid_builtin): Change error messages to replace mention
3979         of undocumented options with mention of the -mcpu=power9 option
3980         that enables those undocumented options.
3981         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
3982         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
3983         definition of this macro to correct an existing error.
3984         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
3985         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
3986         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
3987         descriptions of built-in functions so that they depend on
3988         -mcpu=power9 instead of on the corresponding undocumented flags.
3989         * doc/invoke.texi (Option Summary):  Remove all mention of newly
3990         undocumented flags.
3991         (IBM RS/6000 and PowerPC Options): Likewise.
3992         * doc/md.texi (Constraints for Particuliar Machines): Remove all
3993         mention of newly undocumented flags.
3995 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
3997         * ipa-cp.c (determine_versionability): Do not create constprop clones,
3998         when target_clones attribute is set.
4000 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
4002         * common.opt (funsafe-loop-optimizations): Mark ignore.
4003         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
4004         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
4005         related code.
4006         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
4007         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
4009 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
4011         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
4012         Parameter.
4013         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
4014         Parameter.
4015         (number_of_iterations_exit): Warn missed loop optimization for
4016         possible infinite loops.
4018 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
4020         PR target/71216
4021         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
4022         when to emit a ".machine" pseudo-op.
4024 2016-07-22  Martin Liska  <mliska@suse.cz>
4026         PR gcov-profile/69028
4027         PR gcov-profile/62047
4028         * coverage.c (coverage_compute_lineno_checksum): Do not
4029         calculate checksum for fns w/o xloc.file.
4030         (coverage_compute_profile_id): Likewise.
4032 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
4034         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
4035         (avr_secondary_reload): ...and implementation.
4036         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
4037         * config/avr/avr.md (reload_in<mode>): Remove insns.
4038         (adjust_len) [lpm]: Remove insn attribute value.
4039         * config/avr/predicates.md (flash_operand): Remove insn predicate.
4041 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4043         PR middle-end/71876
4044         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
4045         attribute.
4046         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
4047         * calls.c (special_function_p): Remove the special handling of the
4048         "__builtin_" prefix.
4050 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4052         PR middle-end/71876
4053         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
4054         if STMT may be an alloca call.
4055         (gimple_alloca_call_p, alloca_call_p): Return only true for the
4056         builtin alloca call.
4057         * calls.h (gimple_maybe_alloca_call_p): New function.
4058         * tree-inline.c (inline_forbidden_p_stmt): Use
4059         gimple_maybe_alloca_call_p here.
4061 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
4063         * spellcheck-tree.c (best_macro_match::best_macro_match):
4064         Explictly specify the template arguments when invoking the base
4065         class constructor, to help older C++ compilers.
4067 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
4069         PR sanitizer/71953
4070         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
4071         before builtin_decl_implicit.
4073 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
4075         * optabs.c (emit_condiitonal_move): Short circuit for identical
4076         sources.
4078 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
4080         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
4081         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
4082         (noce_conversion_profitable_p): New.
4083         (noce_try_store_flag_constants): Use it.
4084         (noce_try_addcc): Likewise.
4085         (noce_try_store_flag_mask): Likewise.
4086         (noce_try_cmove): Likewise.
4087         (noce_try_cmove_arith): Likewise.
4088         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
4089         overwriting it.
4090         (noce_convert_multiple_sets): Move cost model to here, from...
4091         (bb_ok_for_noce_convert_multiple_sets) ...here.
4092         (noce_process_if_block): Update calls for above changes.
4093         (noce_find_if_block): Record new noce_if_info parameters.
4095 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
4097         * target.def (max_noce_ifcvt_seq_cost): New.
4098         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
4099         * doc/tm.texi: Regenerate.
4100         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
4101         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
4102         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
4103         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
4104         * doc/invoke.texi: Document new params.
4106 2016-07-21  Richard Biener  <rguenther@suse.de>
4108         PR tree-optimization/71947
4109         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
4110         ranges have useful limit_vr information.
4112 2016-07-21  Richard Biener  <rguenther@suse.de>
4114         * function-tests.c (build_trivial_generic_function): Set
4115         BLOCK_SUPERCONTEXT of DECL_INITIAL.
4116         * omp-low.c (create_omp_child_function): Likewise.
4117         (grid_expand_target_grid_body): Likewise.
4118         * cgraphunit.c (init_lowered_empty_function): Likewise.
4119         (cgraph_node::expand_thunk): Likewise.
4120         * tree-parloops.c (create_loop_fn): Likewise.
4121         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
4123 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4125         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
4126         in comment.
4128 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
4130         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
4131         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
4132         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
4133         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
4134         values for insn attribute.
4135         * config/avr/avr.c (avr_out_insert_notbit): New function.
4136         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
4137         ADJUST_LEN_INSV_NOTBIT_0/_7.
4138         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
4140 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
4142         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
4143         (chrec_convert_1, chrec_convert): Ditto.
4144         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
4145         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
4146         * tree-vrp.c (adjust_range_with_scev): Ditto.
4147         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
4148         (scev_var_range_cant_overflow): New function.
4149         (scev_probably_wraps_p): New parameter.  Call above function.
4150         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
4152 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
4154         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
4155         by removing computation of may_be_zero.
4157 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
4159         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
4161 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
4163         Improving concepts performance and diagnostics.
4164         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
4165         for constraint satisfaction and subsumption.
4166         * timevar.h (auto_timevar): New constructor that matches the push/pop
4167         pattern of usage in pt.c.
4169 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
4171         * hwint.h (HOST_WIDE_INT_0): New define.
4172         (HOST_WIDE_INT_0U): Ditto.
4173         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
4174         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
4175         * simplify-rtx.c: Ditto.
4176         * tree-object-size.c: Ditto.
4178 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4180         * config/s390/s390.c (s390_encode_section_info): Remove mode size
4181         check.
4183 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
4185         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
4186         * combine.c: Use HOST_WIDE_INT_M1U instead of
4187         ~(unsigned HOST_WIDE_INT) 0.
4188         * double-int.h: Ditto.
4189         * dse.c: Ditto.
4190         * dwarf2asm.c:Ditto.
4191         * expmed.c: Ditto.
4192         * genmodes.c: Ditto.
4193         * match.pd: Ditto.
4194         * read-rtl.c: Ditto.
4195         * tree-ssa-loop-ivopts.c: Ditto.
4196         * tree-ssa-loop-prefetch.c: Ditto.
4197         * tree-vect-generic.c: Ditto.
4198         * tree-vect-patterns.c: Ditto.
4199         * tree.c: Ditto.
4201 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
4203         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
4204         constant addresses outside [0,0xc0] into a register.
4205         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
4206         cases where the base address register is unused after.
4207         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
4208         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
4209         (avr_out_store_psi_reg_disp_tiny): Same.
4211 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
4213         Implement attribute progmem on reduced Tiny cores by adding
4214         flash offset 0x4000 to respective symbols.
4216         PR target/71948
4217         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
4218         documentation how it works on reduced Tiny cores.
4219         (AVR Named Address Spaces): No support for reduced Tiny.
4220         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
4221         (avr_address_tiny_pm_p): New static function.
4222         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
4223         if the address is in progmem.
4224         (avr_assemble_integer): Same.
4225         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
4226         for symbol_ref in progmem.
4227         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
4228         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
4229         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
4231 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
4233         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
4234         * configure: Regenerate.
4235         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
4236         (USE_THIN_ARCHIVES): New variable.
4237         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
4238         this archive as a thin archive.
4240 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
4242         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
4243         same location as last time, don't skip if we have fix-it hints.
4244         Clarify the skipping logic by converting it from one "if" clause
4245         to repeated "if" clauses.
4246         * spellcheck-tree.c: Include "cpplib.h".
4247         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
4248         (best_macro_match::best_macro_match): New constructor.
4249         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
4250         Move here from c/c-decl.c.
4251         (class best_macro_match): Move here from c/c-decl.c, converting
4252         from a typedef to a subclass, gaining a ctor.
4254 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
4256         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
4257         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
4258         define...
4259         (avr_addr_space_diagnose_usage): ...and implementation.
4260         (avr_addr_space_supported_p): New function.
4261         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
4262         report bad address space usage if that space is supported.
4263         (avr_insert_attributes): Same.  No more complain about unsupported
4264         address spaces.
4265         * config/avr/avr-c.c (tm_p.h): Include it.
4266         (avr_cpu_cpp_builtins): Only define addr-space related built-in
4267         macro if avr_addr_space_supported_p.
4269 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
4271         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
4272         flag_toplevel_reorder.
4274 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
4276         * gcc-rich-location.c
4277         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
4278         a const char *.
4279         * gcc-rich-location.h
4280         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
4282 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
4284         * target.def (addr_space): Add new diagnose_usage to hook vector.
4285         * targhooks.c (default_addr_space_diagnose_usage): Add default
4286         implementation and...
4287         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
4288         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
4289         is some address space, call targetm.addr_space.diagnose_usage.
4290         * doc/tm.texi.in (Named Address Spaces): Add anchor for
4291         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
4292         * doc/tm.texi: Regenerate.
4294 2016-07-20  Martin Liska  <mliska@suse.cz>
4296         PR middle-end/71898
4297         * graphite-isl-ast-to-gimple.c (later_of_the_two):
4298         Properly handly PHI stmts.
4300 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
4302         PR tree-optimization/71503
4303         PR tree-optimization/71683
4304         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
4305         and break.
4307 2016-07-20  Martin Liska  <mliska@suse.cz>
4309         * doc/invoke.texi (-fipa-ra): Document when the option is
4310         disabled. Fix a typo.
4312 2016-07-20  Martin Liska  <mliska@suse.cz>
4314         * Makefile.in: Include fibonacci_heap.c
4315         * fibonacci_heap.c: New file.
4316         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
4317         (fibonacci_heap::union_with): Fix deletion of the second heap.
4318         * selftest-run-tests.c (selftest::run_tests): Incorporate
4319         fibonacci heap tests.
4320         * selftest.h: Declare fibonacci_heap_c_tests.
4322 2016-07-20  Martin Liska  <mliska@suse.cz>
4324         * selftest-run-tests.c (selftest::run_tests): New function.
4325         * selftest.h (sreal_c_tests): Declare.
4326         * sreal.c (sreal_verify_basics): New function.
4327         (verify_aritmetics): Likewise.
4328         (sreal_verify_arithmetics): Likewise.
4329         (verify_shifting): Likewise.
4330         (sreal_verify_shifting): Likewise.
4331         (void sreal_c_tests): Likewise.
4333 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
4335         PR rtl-optimization/71916
4336         * cfgrtl.c (contains_no_active_insn_p): Return false also for
4337         bb which have a single succ fake edge.
4339 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
4341         PR debug/71855
4342         * dwarf2out.c (gen_subprogram_die): Only call
4343         gen_unspecified_parameters_die while dumping early dwarf.
4345 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
4347         PR middle-end/71874
4348         * gimple-fold.c (fold_builtin_memory_op): Use
4349         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
4351 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
4353         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
4354         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
4355         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
4356         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
4357         * combine.c: Ditto.
4358         * cse.c: Ditto.
4359         * dojump.c: Ditto.
4360         * double-int.c: Ditto.
4361         * dse.c: Ditto.
4362         * dwarf2out.c: Ditto.
4363         * expmed.c: Ditto.
4364         * expr.c: Ditto.
4365         * fold-const.c: Ditto.
4366         * function.c: Ditto.
4367         * fwprop.c: Ditto.
4368         * genmodes.c: Ditto.
4369         * hwint.c: Ditto.
4370         * hwint.h: Ditto.
4371         * ifcvt.c: Ditto.
4372         * loop-doloop.c: Ditto.
4373         * loop-invariant.c: Ditto.
4374         * loop-iv.c: Ditto.
4375         * match.pd: Ditto.
4376         * optabs.c: Ditto.
4377         * real.c: Ditto.
4378         * reload.c: Ditto.
4379         * rtlanal.c: Ditto.
4380         * simplify-rtx.c: Ditto.
4381         * stor-layout.c: Ditto.
4382         * toplev.c: Ditto.
4383         * tree-ssa-loop-ivopts.c: Ditto.
4384         * tree-vect-generic.c: Ditto.
4385         * tree-vect-patterns.c: Ditto.
4386         * tree.c: Ditto.
4387         * tree.h: Ditto.
4388         * ubsan.c: Ditto.
4389         * varasm.c: Ditto.
4390         * wide-int-print.cc: Ditto.
4391         * wide-int.cc: Ditto.
4392         * wide-int.h: Ditto.
4394 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
4396         * selftest.c (selftest::assert_streq): Handle NULL values of
4397         val_actual and val_expected.
4399 2016-07-19  Martin Jambor  <mjambor@suse.cz>
4401         PR fortran/71688
4402         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
4403         rather than cgraph_create_node to get a call graph node.
4405 2016-07-19  Richard Biener  <rguenther@suse.de>
4407         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
4408         handle all tcc_constant bases and valueize SSA names.
4409         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
4410         tcc_constant bases.
4412 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
4414         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
4415         the flags of the exit block and bb2, not just the entry block.
4417 2016-07-19  Richard Biener  <rguenther@suse.de>
4419         PR tree-optimization/71901
4420         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
4421         align member, group stuff with the bitfield.
4422         (vn_ref_op_align_unit): New inline.
4423         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
4424         record element alignment and operand 3 unchanged.
4425         (ao_ref_init_from_vn_reference): Adjust.
4426         (valueize_refs_1): Likewise.
4427         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4429 2016-07-19  Richard Biener  <rguenther@suse.de>
4431         PR tree-optimization/71908
4432         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
4433         symbolic constants in a more reliable way.
4435 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
4437         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
4438         comment.
4439         (vect_update_inits_of_drs): Likewise.
4440         (vect_create_cond_for_alias_checks): Likewise.
4441         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
4443 2016-07-19  Richard Biener  <rguenther@suse.de>
4445         PR lto/71907
4446         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
4447         with an abstract origin that is not an inlined function outer
4448         scope add a self-reference as abstract origin.
4449         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
4451 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4453         PR target/71493
4454         * config/rs6000/rs6000.c (rs6000_function_value): Fix
4455         unintentional System V.4 structure return breakage for structures
4456         with a single floating point element.
4458 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
4460         PR tree-optimization/71734
4461         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
4462         contains REF, use it to check safelen, assume that safelen value
4463         must be greater 1, fix style.
4464         (ref_indep_loop_p_2): Add REF_LOOP argument.
4465         (ref_indep_loop_p): Pass LOOP as additional argument to
4466         ref_indep_loop_p_2.
4468 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4470         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
4471         allocation in the prologue.
4472         * explow.c (get_dynamic_stack_base): New function to return an address
4473         expression for the dynamic stack base.
4474         (get_dynamic_stack_size): New function to do the required dynamic stack
4475         space size calculations.
4476         (allocate_dynamic_stack_space): Use new functions.
4477         (align_dynamic_address): Move some code from
4478         allocate_dynamic_stack_space to new function.
4479         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
4481 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4483         * config/s390/s390.c (s390_encode_section_info): Always set
4484         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
4485         found.
4487 2016-07-18  Richard Biener  <rguenther@suse.de>
4489         PR tree-optimization/71893
4490         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
4491         for sizetype cast added by array_ref_element_size.
4492         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4494 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
4496         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
4497         register parameters.  Remove code to initialize argument pointer
4498         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
4499         using a pc-relative branch.  Cleanup conditional code.
4500         * config/pa/pa.md (call_mcount): New expander.
4501         (call_mcount_nonpic): New insn.
4502         (call_mcount_pic): New insn and split.
4503         (call_mcount_pic_post_reload): New insn.
4504         (call_mcount_64bit): New insn and split.
4505         (call_mcount_64bit_post_reload): New insn.
4507 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
4509         * config/avr/predicates.md (const_m255_to_m1_operand): New.
4510         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
4511         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
4512         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
4513         (*usum_widenqihi3, *udiff_widenqihi3)
4514         (*addhi3_zero_extend.const): New combiner insns.
4515         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
4516         just 1 bit is affected.
4517         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
4518         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
4520 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
4522         * omp-low.c (lower_omp_target): Mark data clauses with
4523         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
4524         zero-length subarrays.
4526 2016-07-15  Richard Biener  <rguenther@suse.de>
4528         PR tree-optimization/71881
4529         * tree-loop-distribution.c (destroy_loop): Remove blocks in
4530         reverse DOM order to make debug temp generation happy.
4532 2016-07-15  Richard Biener  <rguenther@suse.de>
4534         PR tree-optimization/71887
4535         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
4536         verify it is not zero for division / modulo handling.
4537         (value_replacement): Adjust.
4539 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
4540             Julian Brown  <julian@codesourcery.com>
4542         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
4543         * config/aarch64/aarch64-cost-tables.h
4544         (vulcan_extra_costs): New variable.
4545         * config/aarch64/aarch64.c
4546         (vulcan_addrcost_table): Likewise.
4547         (vulcan_regmove_cost): Likewise.
4548         (vulcan_vector_cost): Likewise.
4549         (vulcan_branch_cost): Likewise.
4550         (vulcan_tunings): Likewise.
4552 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
4554         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
4555         (output_in_order): Loop over undefined variables too.  Output them
4556         via assemble_undefined_decl.  Skip variables that correspond to hard
4557         registers or have value-exprs.
4558         * varpool.c (symbol_table::output_variables): Handle undefined
4559         variables together with defined ones.
4561 2016-07-15  Richard Biener  <rguenther@suse.de>
4563         * tree-ssa-pre.c (get_representative_for): Make sure to return
4564         the value number of SSA names.
4565         (phi_translate_1): get_representative_for cannot return NULL.
4566         (do_pre_regular_insertion): Remove redundant call to
4567         fully_constant_expression.
4568         (do_pre_partial_partial_insertion): Likewise.
4570 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
4572         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
4573         (derive_simple_iv_with_niters): New function.
4574         (simple_iv): Rewrite using simple_iv_with_niters.
4575         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
4576         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
4577         function.
4578         (number_of_iterations_exit): Rewrite using above function.
4579         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
4580         Decl.
4582 2016-07-15  Richard Biener  <rguenther@suse.de>
4584         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
4585         vec_construct cost.
4587 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
4589         PR tree-optimization/71872
4590         * tree-data-ref.c (get_references_in_stmt): Ignore references
4591         with is_gimple_constant get_base_address.
4593 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4595         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
4596         (TARGET_HAVE_LDACQD): New macro.
4597         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
4598         than TARGET_HAVE_LDACQ.
4599         (arm_load_acquire_exclusivedi): Likewise.
4600         (arm_store_release_exclusivedi): Likewise.
4602 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4604         PR rtl-optimization/71878
4605         * lra-constraints.c (match_reload): Pass information about other
4606         output operands.  Create new unique register value if matching input
4607         operand shares same register value as output operand being considered.
4608         (curr_insn_transform): Record output operands already processed.
4610 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4612         PR target/65951
4613         PR tree-optimization/70923
4614         * tree-vect-patterns.c: Include mult-synthesis.h.
4615         (target_supports_mult_synth_alg): New function.
4616         (synth_lshift_by_additions): Likewise.
4617         (apply_binop_and_append_stmt): Likewise.
4618         (vect_synth_mult_by_constant): Likewise.
4619         (target_has_vecop_for_code): Likewise.
4620         (vect_recog_mult_pattern): Use above functions to synthesize vector
4621         multiplication by integer constants.
4623 2016-07-14  Alan Modra  <amodra@gmail.com>
4625         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
4626         gpr alternatives.  Correct '*' placement on Y,r alternative.
4627         Add '*' on operand 1 of r,r alternative.
4629 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4631         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
4632         * expmed.h: ... Here.
4634 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
4636         * gimple.h (stmt_can_terminate_bb_p): New function.
4637         * tree-cfg.c (need_fake_edge_p): Rename to ...
4638         (stmt_can_terminate_bb_p): ... this; return true if stmt can
4639         throw external; handle const and pure calls.
4640         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
4642 2016-07-14  Richard Biener  <rguenther@suse.de>
4644         PR tree-optimization/71866
4645         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
4646         (do_hoist_insertion): Avoid endless recursion when we
4647         didn't insert anything because we managed to simplify
4648         things down to a constant or SSA name.
4649         (fully_constant_expression): Re-write in terms of ...
4650         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
4651         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
4652         vn_nary_build_or_lookup_1.
4653         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
4654         (vn_nary_build_or_lookup): ... this which now wraps it.
4656 2016-07-14  Alan Modra  <amodra@gmail.com>
4658         PR target/71733
4659         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
4660         with p9_vector override before power9-dform override.
4662 2016-07-13  Andi Kleen  <ak@linux.intel.com>
4664         * value-prof.c (gimple_value_profile_transformations): Don't run
4665         when auto_profile is on.
4667 2016-07-13  Andi Kleen  <ak@linux.intel.com>
4669         * auto-profile.c (update_inlined_ind_target,
4670         afdo_indirect_call): Print information to dump file.
4672 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
4674         * genrecog.c (special_predicate_operand_p): New function.
4675         (predicate_name): Move function.
4676         (validate_pattern): Don't warn about missing mode for all
4677         define_special_predicate predicates.
4679 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
4681         * tree-vect-data-refs.c (vect_no_alias_p): New function.
4682         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
4683         resolve alias checks which are known at compilation time.
4684         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
4685         alias checks are resolved.  Move dump info for too many runtime
4686         alias checks to here...
4687         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
4689 2016-07-13  Richard Biener  <rguenther@suse.de>
4691         PR tree-optimization/24574
4692         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
4693         position and add shift, rotate, divison and modulo support
4694         for left zero.
4695         (value_replacement): Pass in argument position to absorbing_element_p.
4697 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
4699         PR ipa/71633
4700         * ipa-inline-transform.c (inline_call): Support
4701         instrumented thunks.
4703 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4705         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
4706         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
4707         divide feature.
4708         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
4709         Baseline.  Make initial alternative TARGET_32BIT only.
4710         (udivsi3): Likewise.
4711         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
4712         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
4713         target.
4715 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4717         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
4718         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
4719         availability with TARGET_HAVE_MOVT.
4720         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
4721         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
4722         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
4723         UINTVAL.
4724         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
4725         extra instruction if MOVW is available.  Use a cost variable
4726         incremented by COSTS_N_INSNS (1) when the condition match rather than
4727         returning an arithmetic expression based on COSTS_N_INSNS.  Make
4728         constant with bottom half word zero cost 2 instruction if MOVW is
4729         available.
4730         * config/arm/arm.md (define_attr "arch"): Add v8mb.
4731         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
4732         target is ARMv8-M Baseline.
4733         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
4734         (arm_movtas_ze): Likewise.
4735         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
4736         alternative for constants satisfying j constraint.
4737         (thumb1_movsi_insn): Likewise.
4738         (movsi splitter for K alternative): Tighten condition to not trigger
4739         if movt is available and j constraint is satisfied.
4740         (Pe immediate splitter): Likewise.
4741         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
4742         constant fitting in an halfword to use MOVW.
4743         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
4744         effective target.
4746 2016-07-13  Richard Biener  <rguenther@suse.de>
4748         PR middle-end/71104
4749         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
4750         gimplifying the LHS.  Make sure to gimplify a returning twice
4751         call LHS without using SSA names.
4753 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4755         * tree-data-ref.c (find_data_references_in_stmt): Remove
4756         unnecessary call to vec::release.
4757         (graphite_find_data_references_in_stmt): Likewise.
4758         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
4759         * tree-vect-stmts.c (vectorizable_condition): Likewise.
4761 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4763         * cfgexpand.c (expand_used_vars): Make the type of a local
4764         variable auto_vec.
4765         * genmatch.c (lower_for): Likewise.
4766         * haifa-sched.c (haifa_sched_init): Likewise.
4767         (add_to_speculative_block): Likewise.
4768         (create_check_block_twin): Likewise.
4769         * predict.c (handle_missing_profiles): Likewise.
4770         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
4771         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
4772         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
4773         Likewise.
4774         (maybe_lower_iteration_bound): Likewise.
4775         * tree-ssa-sccvn.c (DFS): Likewise.
4776         * tree-stdarg.c (reachable_at_most_once): Likewise.
4777         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
4778         (vectorizable_store): Likewise.
4780 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4782         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
4783         (sccvn_dom_walker): make cond_stack an auto_vec.
4785 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4787         * ree.c (struct ext_state): Make type of members auto_vec.
4788         (find_and_remove_re): Adjust.
4790 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4792         * cfgexpand.c (struct stack_vars_data): Make type of fields
4793         auto_vec.
4794         (expand_used_vars): Adjust.
4796 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4798         * ipa.c (record_cdtor_fn): Adjust.
4799         (build_cdtor_fns): Likewise.
4800         (ipa_cdtor_merge): Make static_ctors and static_dtors local
4801         variables.
4803 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4805         * genextract.c (struct accum_extract): Add constructor and make
4806         members auto_vec.
4807         (gen_insn): Adjust.
4809 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4811         * tree.c (struct free_lang_data_d): Add constructor and change
4812         types of members to ones that automatically manage resources.
4813         (fld_worklist_push): Adjust.
4814         (find_decls_types): Likewise.
4815         (find_decls_types_in_eh_region): Likewise.
4816         (free_lang_data_in_cgraph): Stop manually creating and
4817         destroying members of free_lang_data_d.
4819 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
4821         PR rtl-optimization/68961
4822         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
4823         peephole variant.  Use sse_reg_operand predicates.
4825 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
4827         * config/i386/predicates.md (x86_64_immediate_operand)
4828         <case CONST_INT>: Remove unneeded truncation to DImode.
4829         <case CONST>: Ditto.
4830         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
4832 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4834         PR target/71805
4835         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
4836         The xxperm and xxpermr instructions require that the 2nd input
4837         operand overlap with the output operand, and not the 1st.
4838         (altivec_vperm_v8hiv16qi): Likewise.
4839         (altivec_vperm_<mode>_uns_internal): Likewise.
4840         (altivec_vpermr_<mode>_internal): Likewise.
4841         (vperm_v8hiv4si): Likewise.
4842         (vperm_v16qiv8hi): Likewise.
4844 2016-07-12  Nathan Sidwell  <nathan@acm.org>
4846         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
4847         when -mno-pic-data-is-text-relative is in effect, by default.
4848         * doc/invoke.texi (mpic-data-is-text-relative): Document new
4849         behavior and clarify.
4851 2016-07-12  Martin Liska  <mliska@suse.cz>
4853         * params.def: Add avg-loop niter.
4854         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
4855         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4856         * doc/invoke.texi: Document the new parameter.
4858 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4860         PR middle-end/71700
4861         * expr.c (store_constructor): Mask sign-extended bits when widening
4862         sub-word constructor element at the start of a word.
4864 2016-07-12  Martin Liska  <mliska@suse.cz>
4866         * Makefile.in: Append rule for params-options.h.
4867         * params-options.h: New file.
4869 2016-07-12  Martin Liska  <mliska@suse.cz>
4871         * ira-build.c (mark_loops_for_removal): Properly iterate
4872         loops.
4874 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
4875             Richard Biener  <rguenther@suse.de>
4877         PR tree-optimization/23286
4878         PR tree-optimization/70159
4879         * doc/invoke.texi: Document -fcode-hoisting.
4880         * common.opt (fcode-hoisting): New flag.
4881         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
4882         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
4883         (do_regular_insertion): Rename to ...
4884         (do_pre_regular_insertion): ... this and amend general comments
4885         on insertion strathegy.
4886         (do_partial_partial_insertion): Rename to ...
4887         (do_pre_partial_partial_insertion): ... this.
4888         (do_hoist_insertion): New function.
4889         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
4890         and call do_hoist_insertion properly.
4891         (insert): Adjust.
4892         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
4893         (pass_pre::execute): Register hoist_insert stats.
4895 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
4897         PR middle-end/71716
4898         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
4899         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
4900         is different from mode's bitsize.  Small cleanup.
4902 2016-07-12  Richard Biener  <rguenther@suse.de>
4904         PR rtl-optimization/68961
4905         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
4906         to simplify to a non-constant.
4908 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
4910         PR middle-end/71758
4911         * omp-low.c (expand_omp_target): Gimplify device.
4913         PR tree-optimization/71823
4914         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
4915         to get vec_oprnds2 from op2.
4917 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
4919         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
4920         Hoist common subexpressions.
4921         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
4923 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
4925         PR target/71800
4926         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
4927         prevent generation of 'stxsiwx' on pre Power8 hardware.
4929 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
4931         * input.c: Include cpplib.h.
4932         (selftest::temp_source_file): New class.
4933         (selftest::temp_source_file::temp_source_file): New ctor.
4934         (selftest::temp_source_file::~temp_source_file): New dtor.
4935         (selftest::should_have_column_data_p): New function.
4936         (selftest::test_should_have_column_data_p): New function.
4937         (selftest::temp_line_table): New class.
4938         (selftest::temp_line_table::temp_line_table): New ctor.
4939         (selftest::temp_line_table::~temp_line_table): New dtor.
4940         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
4941         it to create a temp_line_table.
4942         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
4943         locations that are known to have column data.
4944         (selftest::line_table_case): New struct.
4945         (selftest::test_reading_source_line): Move tempfile handling
4946         to class temp_source_file.
4947         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
4948         (selftest::assert_token_loc_eq): New function.
4949         (ASSERT_TOKEN_LOC_EQ): New macro.
4950         (selftest::test_lexer): New function.
4951         (selftest::boundary_locations): New array.
4952         (selftest::input_c_tests): Call test_should_have_column_data_p.
4953         Loop over a test matrix of interesting values of location and
4954         default_range_bits, calling test_lexer on each case in the matrix.
4955         Move call to test_accessing_ordinary_linemaps into the matrix.
4956         * selftest.h (ASSERT_EQ): Reimplement in terms of...
4957         (ASSERT_EQ_AT): New macro.
4959 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
4961         PR target/71801
4962         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
4963         Don't convert TImode in debug insn.
4965 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4967         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
4968         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
4969         (tree_type_common::lang_flag_7): New.
4970         (tree_type_common::spare): Reduce size.
4971         * tree.h (TYPE_ALIGN_OK): Remove.
4972         (TYPE_LANG_FLAG_7): New.
4973         (get_inner_reference): Adjust header.
4974         * print-tree.c (print_node): Adjust.
4975         * expr.c (get_inner_reference): Remove parameter keep_aligning.
4976         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
4977         calls to get_inner_reference.
4978         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
4979         handling of TYPE_ALIGN_OK.
4980         * builtins.c (get_object_alignment_2): Adjust call to
4981         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
4982         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
4983         TYPE_ALIGN_OK.
4984         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
4985         * cfgexpand.c (expand_debug_expr): Likewise.
4986         * dbxout.c (dbxout_expand_expr): Likewise.
4987         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
4988         loc_list_from_tree, fortran_common): Likewise.
4989         * fold-const.c (optimize_bit_field_compare,
4990         decode_field_reference, fold_unary_loc, fold_comparison,
4991         split_address_to_core_and_offset): Likewise.
4992         * gimple-laddress.c (execute): Likewise.
4993         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
4994         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
4995         * hsa-gen.c (gen_hsa_addr): Likewise.
4996         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
4997         * tsan.c (instrument_expr): Likewise.
4998         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
4999         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
5000         * tree-affine.c (tree_to_aff_combination,
5001         get_inner_reference_aff): Adjust calls to get_inner_reference.
5002         * tree-data-ref.c (split_constant_offset_1,
5003         dr_analyze_innermost): Likewise.
5004         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
5005         * tree-sra.c (ipa_sra_check_caller): Likewise.
5006         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
5007         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
5008         bswap_replace): Likewise.
5009         * tree-vect-data-refs.c (vect_check_gather,
5010         vect_analyze_data_refs): Likewise.
5011         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
5012         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
5013         TYPE_ALIGN_OK.
5015 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
5017         * Makefile.in (selftest-valgrind): New phony target.
5018         * function-tests.c (selftest::build_cfg): Delete pass instances
5019         created by the test.
5020         (selftest::convert_to_ssa): Likewise.
5021         (selftest::test_expansion_to_rtl): Likewise.
5022         * tree-cfg.c (selftest::test_linear_chain): Release dominator
5023         vectors.
5024         (selftest::test_diamond): Likewise.
5026 2016-07-11  Richard Biener  <rguenther@suse.de>
5028         PR tree-optimization/71816
5029         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
5030         than replacing all of its operands.
5032 2016-07-11  Alan Modra  <amodra@gmail.com>
5034         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
5035         (ctr<mode>): Add unspec.
5036         (ctr<mode>_internal*): Likewise.
5038 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
5040         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
5041         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
5043 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
5045         PR rtl-optimization/71621
5046         * lra-constraints.c (process_alt_operands): Check combination of
5047         reg class and mode.
5049 2016-07-08  Jason Merrill  <jason@redhat.com>
5050             Richard Biener  <rguenther@suse.de>
5052         P0145: Refining Expression Order for C++.
5053         * gimplify.c (initial_rhs_predicate_for): New.
5054         (gimplfy_modify_expr): Gimplify RHS before LHS.
5056 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5058         PR target/71297
5059         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5060         Allow standard error handling to take over when a wrong number
5061         of arguments is presented to __builtin_vec_ld () or
5062         __builtin_vec_st ().
5064 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
5066         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
5067         variants.
5068         (smin): Likewise.
5069         (fmax): New entry.
5070         (fmin): Likewise.
5071         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
5072         __builtin_aarch64_fmaxv2sf.
5073         (vmaxnmq_f32): Likewise.
5074         (vmaxnmq_f64): Likewise.
5075         (vminnm_f32): Likewise.
5076         (vminnmq_f32): Likewise.
5077         (vminnmq_f64): Likewise.
5079 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
5081         PR target/71806
5082         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
5083         enable -mfloat128-hardware by default.
5084         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
5085         that IEEE 128-bit hardware support needs.
5086         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
5087         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
5088         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
5089         floating point requires.
5090         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5091         -mfloat128 and -mfloat128-hardware changes.
5093 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
5095         PR tree-optimization/71667
5096         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
5098 2016-07-08  Martin Liska  <mliska@suse.cz>
5100         PR middle-end/71606
5101         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
5102         folding produces SAVE_EXPRs, thus return false for the type.
5104 2016-07-07  Martin Liska  <mliska@suse.cz>
5106         * file-find.c (remove_prefix): New function.
5107         * file-find.h (remove_prefix): Declare the function.
5108         * gcc-ar.c (main): Skip a folder of the wrapper if
5109         a wrapped binary would point to the same file.
5111 2016-07-07  Jan Hubicka  <jh@suse.cz>
5113         * tree-scalar-evolution.c (iv_can_overflow_p): export.
5114         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
5115         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
5117 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
5119         PR ipa/71624
5120         * ipa-inline-analysis.c (compute_inline_parameters): Set
5121         local.can_change_signature to false for intrumentation
5122         thunk callees.
5124 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5126         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
5127         with TARGET_HAVE_MOVT.
5128         (TARGET_HAVE_MOVT): Define.
5129         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
5130         availability with TARGET_HAVE_MOVT.
5131         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
5132         availability.
5133         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
5134         TARGET_THUMB2.
5135         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
5136         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
5137         * config/arm/constraints.md (define_constraint "j"): Use
5138         TARGET_HAVE_MOVT to check MOVT availability.
5140 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5142         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
5144 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5146         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
5147         (armv8-m.main): Likewise.
5148         (armv8-m.main+dsp): Likewise.
5149         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
5150         (FL_FOR_ARCH8M_MAIN): Likewise.
5151         * config/arm/arm-tables.opt: Regenerate.
5152         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
5153         armv8-m.main+dsp to BE8_LINK_SPEC.
5154         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
5155         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
5156         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
5157         Baseline and Mainline.
5158         (arm_option_override_internal): Also disable arm_restrict_it when
5159         !arm_arch_notm.  Update comment for -munaligned-access to also cover
5160         ARMv8-M Baseline.
5161         (arm_file_start): Increase buffer size for printing architecture name.
5162         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
5163         and armv8-m.main+dsp.
5164         (mno-unaligned-access): Clarify that this is disabled by default for
5165         ARMv8-M Baseline architectures as well.
5167 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5169         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
5170         decide whether to prevent some libgcc routines being included for some
5171         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
5172         link between this condition and the one in
5173         libgcc/config/arm/lib1func.S.
5175 2016-07-07  Richard Biener  <rguenther@suse.de>
5177         * tree-ssa-pre.c: Include alias.h.
5178         (compute_avail): If we have multiple VN_REFERENCEs with the
5179         same hashtable entry adjust that to make it a valid replacement
5180         for all of them with respect to alignment and aliasing
5181         when doing insertion.
5182         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
5183         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
5185 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
5187         PR target/70098
5188         PR target/71763
5189         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
5190         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
5191         constraint.
5193 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5195         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
5196         (adjust_mems): Adjust.
5197         (adjust_insn): Likewise.
5198         (prepare_call_arguments): Likewise.
5200 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5202         * gcse.c (struct ls_expr): Make stores field a vector.
5203         (ldst_entry): Adjust.
5204         (free_ldst_entry): Likewise.
5205         (print_ldst_list): Likewise.
5206         (compute_ld_motion_mems): Likewise.
5207         (update_ld_motion_stores): Likewise.
5209 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5211         * gcse.c (struct ls_expr): Remove loads field.
5212         (ldst_entry): Adjust.
5213         (free_ldst_entry): Likewise.
5214         (print_ldst_list): Likewise.
5215         (compute_ld_motion_mems): Likewise.
5217 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5219         * store-motion.c (struct st_expr): Make antic_stores a vector.
5220         (st_expr_entry): Adjust.
5221         (free_st_expr_entry): Likewise.
5222         (print_store_motion_mems): Likewise.
5223         (find_moveable_store): Likewise.
5224         (compute_store_table): Likewise.
5225         (remove_reachable_equiv_notes): Likewise.
5226         (replace_store_insn): Likewise.
5227         (build_store_vectors): Likewise.
5229 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5231         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
5232         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
5234 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
5236         PR tree-optimization/71518
5237         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
5238         misalign also for outer loops with negative step.
5240 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
5242         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
5243         (cortex_a53_shift): Add mov_shift.
5244         (cortex_a53_shift_reg): Add new reservation for register shifts.
5245         (cortex_a53_alu): Remove bfm.
5246         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
5247         (cortex_a53_alu_extr): Add new reservation for EXTR.
5248         (bypasses): Improve bypass modelling.
5250 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5252         PR target/50739
5253         * config/avr/avr.c (avr_asm_select_section): Strip off
5254         SECTION_DECLARED from flags when calling get_section.
5256 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
5258         * tree-vectorizer.h (vect_memory_access_type): Add
5259         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
5260         * tree-vect-stmts.c (compare_step_with_zero): New function.
5261         (perm_mask_for_reverse): Move further up file.
5262         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
5263         step is negative.
5264         (get_negative_load_store_type): New function.
5265         (get_load_store_type): Call it.  Add an ncopies argument.
5266         (vectorizable_mask_load_store): Update call accordingly and
5267         remove tests for negative steps.
5268         (vectorizable_store, vectorizable_load): Likewise.  Handle new
5269         memory_access_types.
5271 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
5273         * tree-vectorizer.h (vect_memory_access_type): New enum.
5274         (_stmt_vec_info): Add a memory_access_type field.
5275         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
5276         (vect_model_store_cost): Take an access type instead of a boolean.
5277         (vect_model_load_cost): Likewise.
5278         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
5279         vect_model_store_cost and vect_model_load_cost.
5280         * tree-vect-stmts.c (vec_load_store_type): New enum.
5281         (vect_model_store_cost): Take an access type instead of a
5282         store_lanes_p boolean.  Simplify tests.
5283         (vect_model_load_cost): Likewise, but for load_lanes_p.
5284         (get_group_load_store_type, get_load_store_type): New functions.
5285         (vectorizable_store): Use get_load_store_type.  Record the access
5286         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
5287         (vectorizable_load): Likewise.
5288         (vectorizable_mask_load_store): Likewise.  Replace is_store
5289         variable with vls_type.
5291 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
5293         * tree-vectorizer.h (vect_grouped_load_supported): Add a
5294         single_element_p parameter.
5295         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
5296         Check the PR65518 case here rather than in vectorizable_load.
5297         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
5298         * tree-vect-stmts.c (vectorizable_load): Likewise.
5300 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
5302         * tree-vectorizer.h (gather_scatter_info): New structure.
5303         (vect_check_gather_scatter): Return a bool rather than a decl.
5304         Replace return-by-pointer arguments with a single
5305         gather_scatter_info *.
5306         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
5307         (vect_analyze_data_refs): Update call accordingly.
5308         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
5309         (vectorizable_mask_load_store): Likewise.  Also record the
5310         offset dt and vectype in the gather_scatter_info.
5311         (vectorizable_store): Likewise.
5312         (vectorizable_load): Likewise.
5314 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
5316         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
5317         strided groups, use the cost of N scalar accesses instead
5318         of ncopies vector accesses.
5319         (vect_model_load_cost): Likewise.
5321 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
5323         * tree-vect-stmts.c (vect_cost_group_size): Delete.
5324         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
5325         variable to indicate when once-per-group costs are being used.
5326         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
5328 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
5330         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
5331         peeling-for-gaps condition.
5333 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5335         * config/s390/s390.c (s390_expand_vec_init): Force initializer
5336         element to register if it doesn't match general_operand.
5338 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
5339             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5341         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
5342         prototype.
5343         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
5344         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
5345         (SIGNBIT): New mode iterator.
5346         (Fsignbit): New mode attribute.
5347         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
5348         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
5349         when direct moves are available.
5350         (signbit<mode>2_dm): New define_insn_and_split).
5351         (signbit<mode>2_dm2): New define_insn.
5353 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5355         PR rtl-optimization/71594
5356         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
5357         into subregs of appropriate mode before trying to emit a conditional
5358         move.
5360 2016-07-05  Jan Hubicka  <jh@suse.cz>
5362         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
5363         (simple_iv): Use it.
5365 2016-07-05  Jan Hubicka  <jh@suse.cz>
5367         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
5369 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
5371         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
5372         "offmemok".
5374 2016-07-05  Jan Hubicka  <jh@suse.cz>
5376         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
5377         IV can overflow.
5379 2016-07-05  Richard Biener  <rguenther@suse.de>
5381         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
5382         Handle empty else block.
5383         (is_feasible_trace): Likewise.
5384         (split_paths): Likewise.
5386 2016-07-05  Richard Biener  <rguenther@suse.de>
5388         * tree-loop-distribution.c (distribute_loop): Fix issue with
5389         the cost model loop.
5391 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
5393         * config/arm/neon-testgen.ml: Delete.
5394         * config/arm/neon.ml: Delete.
5396 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
5398         PR c++/71739
5399         * tree.c (attribute_value_equal): Use get_attribute_name instead of
5400         directly using TREE_PURPOSE.
5402 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
5404         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
5405         * config/aarch64/aarch64_neon.h: Likewise.
5406         * config/aarch64/arm_neon.h: Likewise.
5407         * config/aarch64/atomics.md: Likewise.
5408         * config/aarch64/aarch64-simd-builtins.def: Likewise.
5409         * doc/invoke.texi: Likewise.
5411 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5413         * config/s390/s390.md: Add "z13" cpu_facility.
5414         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
5415         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
5416         condition" type instructions.
5418 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5419             Jeff Law  <law@redhat.com>
5421         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
5422         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
5424 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
5426         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
5427         permutation for TARGET_AVX512F.
5428         (ix86_expand_vec_one_operand_perm_avx512): New function.
5429         (expand_vec_perm_1): Invoke introduced function.
5430         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
5431         it may be not valid after vectorization.
5433 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5435         PR target/63874
5436         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
5437         typo in comment.  Only force to memory if it is a weak
5438         external reference.
5440 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
5441             Jiong Wang  <jiong.wang@arm.com>
5443         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
5444         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
5445         (AARCH64_FL_F16): New.
5446         (AARCH64_FL_FOR_ARCH8_2): New.
5447         (AARCH64_ISA_8_2): New.
5448         (AARCH64_ISA_F16): New.
5449         (TARGET_FP_F16INST): New.
5450         (TARGET_SIMD_F16INST): New.
5451         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
5452         ("fp"): Disabling "fp" also disables "fp16".
5453         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
5454         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
5455         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
5456         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
5458 2016-07-04  Jan Beulich  <jbeulich@suse.com>
5460         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
5462 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
5464         PR target/71720
5465         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
5466         the insns, use an insn form that does not adjust the offset on
5467         little endian systems.
5469 2016-07-01  Jan Beulich  <jbeulich@suse.com>
5471         * varasm.c (get_variable_section): Validate initializer in
5472         named .bss-like sections.
5474 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5476         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
5477         Exchange the order of the second and third operands in the vpermr
5478         instruction tmeplate.
5480 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
5482         PR target/71698
5483         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
5484         Disallow TDmode values.
5486 2016-07-01  Alan Modra  <amodra@gmail.com>
5488         PR rtl-optimization/71709
5489         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
5490         being set, not referenced.
5492 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
5494         PR tree-optimization/70729
5495         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
5496         of loop since it can be not valid after transformation.
5498 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5500         * config/arm/arm.c (thumb_reload_in_hi): Delete.
5501         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
5503 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
5505         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
5506         for NULL decl.
5508 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
5510         PR target/71677
5511         * config/rs6000/constraints.md (wY constraint): New constraint to
5512         match the requirements for the LXSD and STXSD instructions.
5513         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
5514         predicate to match the requirements for the LXSD and STXSD
5515         instructions.
5516         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
5517         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
5518         to make sure that the bottom 2 bits of offset are 0, the address
5519         form is offsettable, and no updating is done in the address mode.
5520         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
5521         (movdi_internal32): Likewise
5522         (movdi_internal64): Likewise.
5524 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
5526         PR tree-optimization/71707
5527         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
5528         strinfo even for ADDR_EXPR ptr.
5530 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5532         * config/rs6000/altivec.md (darn_32): Change the condition to
5533         TARGET_P9_MISC instead of TARGET_MODULO.
5534         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
5535         condition expression.
5536         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
5537         condition expression.
5538         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
5539         (DFP_TEST): New code iterator.
5540         (dfptstsfi_<code>_mode>): New define_expand.
5541         (*dfp_sgnfcnc_<mode>): New define_insn.
5542         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
5543         definition next to BU_P9_MISC_1 definition and change the MASK
5544         value to RS6000_BTM_P9_MISC.
5545         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
5546         (BU_P9_64BIT_MISC_0): Likewise.
5547         (BU_P9_DFP_MISC_0): New macro definition.
5548         (BU_P9_DFP_MISC_1): New macro definition.
5549         (BU_P9_DFP_MISC_2): New macro definition.
5550         (BU_P9_DFP_OVERLOAD_1): New macro definition.
5551         (BU_P9_DFP_OVERLOAD_2): New macro definition.
5552         (BU_P9_DFP_OVERLOAD_3): New macro definition.
5553         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
5554         (TSTSFI_LT_TD): Likewise.
5555         (TSTSFI_EQ_DD): Likewise.
5556         (TSTSFI_EQ_TD): Likewise.
5557         (TSTSFI_GT_DD): Likewise.
5558         (TSTSFI_GT_TD): Likewise.
5559         (TSTSFI_OV_DD): Likewise.
5560         (TSTSFI_OV_TD): Likewise.
5561         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
5562         (TSTSFI_LT_DD): Likewise.
5563         (TSTSFI_LT_TD): Likewise.
5564         (TSTSFI_EQ): Likewise.
5565         (TSTSFI_EQ_DD): Likewise.
5566         (TSTSFI_EQ_TD): Likewise.
5567         (TSTSFI_GT): Likewise.
5568         (TSTSFI_GT_DD): Likewise.
5569         (TSTSFI_GT_TD): Likewise.
5570         (TSTSFI_OV): Likewise.
5571         (TSTSFI_OV_DD): Likewise.
5572         (TSTSFI_OV_TD): Likewise.
5573         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5574         overloaded test significance functions.
5575         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
5576         OPTION_MASK_P9_MISC into the representation of this mask.
5577         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
5578         of this mask.
5579         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
5580         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
5581         non-zero.
5582         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
5583         argument is a 6-bit unsigned literal value if the icode argument
5584         represents a DFP test significance built-in call.
5585         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
5586         flag used independently and in combination with the
5587         RS6000_BTM_64BIT flag.
5588         (rs6000_opt_masks): Add entry for power9-misc command-line option.
5589         (rs6000_builtin_mask_names): Add entry for power9-misc
5590         command-line option.
5591         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
5592         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
5593         RS6000_BTM_P9_MISC macros.
5594         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
5595         option and change the description of the -mpower9-vector option to
5596         enable only vector instructions, removing its erroneously claimed
5597         support for scalar instructions.
5598         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
5599         the ISA 3.0 digital floating point test significance built-in
5600         functions.
5602 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
5604         * config/aarch64/aarch64.c (cortexa35_tunings):
5605         Enable AES fusion.  Use cortexa57_branch_cost.
5606         (cortexa53_tunings): Use cortexa57_branch_cost.
5607         (cortexa72_tunings): Use cortexa57_branch_cost.
5608         Use AUTOPREFETCHER_WEAK.
5609         (cortexa73_tunings): Use cortexa57_branch_cost.
5611 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5612             James Greenhalgh  <james.greenhalgh@arm.com>
5614         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
5615         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
5616         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
5617         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
5618         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
5619         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
5620         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
5621         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
5622         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
5623         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
5624         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
5625         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
5626         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
5627         New intrinsics.
5629 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
5630             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5632         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
5633         New define_insn.
5634         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
5636 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
5638         PR driver/71651
5639         * gcc.c (driver::build_option_suggestions): Pass "option" to
5640         add_misspelling_candidates.
5641         * opts-common.c (add_misspelling_candidates): Add "option" param;
5642         use it to avoid adding negated forms for options marked with
5643         RejectNegative.
5644         * opts.h (add_misspelling_candidates): Add "option" param.
5646 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
5648         PR middle-end/71693
5649         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
5650         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
5651         first when permuting bitwise operation with rotate.  Cast
5652         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
5654 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
5656         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
5657         for misspelled param names.
5658         * params.c: Include spellcheck.h.
5659         (find_param_fuzzy): New function.
5660         * params.h (find_param_fuzzy): New prototype.
5661         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
5662         * spellcheck.h (struct edit_distance_traits<const char *>):
5663         ...here.
5665 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
5667         * config/rs6000/predicates.md (const_0_to_7_operand): New
5668         predicate, recognize 0..7.
5669         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5670         support for doing extracts from V16QImode, V8HImode, V4SImode
5671         under ISA 3.0.
5672         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
5673         vector extract support.
5674         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
5675         for ISA 3.0 vector extract.
5676         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
5677         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
5678         extracts of a constant element number from small integer vectors
5679         on 64-bit ISA 3.0 systems.
5680         (vsx_extract_<mode>_di): Likewise.
5681         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
5682         say when we can do ISA 3.0 vector extracts.
5683         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
5684         registers, using the stxsiwx instruction.
5686 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
5688         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
5689         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
5690         qdf24xx_regmove_cost, qdf24xx_tunings): New.
5691         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
5692         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
5693         * config/arm/arm.c (arm_qdf24xx_tune): New.
5695 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
5697         * config/aarch64/aarch64.c (cortexa53_tunings):
5698         Increase loop alignment to 8.  Set function alignment to 16.
5699         (cortexa35_tunings): Likewise.
5700         (cortexa57_tunings): Increase loop alignment to 8.
5701         (cortexa72_tunings): Likewise.
5702         (cortexa73_tunings): Likewise.
5704 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
5706         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
5707         for arm_fp16_ok and arm_fp16_hw.
5708         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
5709         arm_fp16_alternative.
5711 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
5713         PR tree-optimization/71655
5714         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
5715         types when swapping operands.
5717 2016-06-29  Martin Liska  <mliska@suse.cz>
5719         PR middle-end/71585
5720         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
5721         * ipa-inline-transform.c (inline_call): Remove unnecessary call
5722         of build_optimization_node.
5724 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
5726         PR tree-optimization/70729
5727         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
5728         independent in loops having positive safelen value.
5729         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
5730         it may be not valid after vectorization.
5732 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
5734         PR tree-optimization/71625
5735         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
5736         is sorted by ascending list->offset.  If PTR is non-NULL and there is
5737         previous strinfo, call get_stridx_plus_constant.
5738         (get_stridx): Pass exp as second argument to get_addr_stridx.
5739         (addr_stridxptr): Add missing list = list->next, so that there can be
5740         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
5741         the list is sorted by ascending list->offset.
5742         (get_stridx_plus_constant): Adjust so that it can be also called with
5743         ADDR_EXPR instead of SSA_NAME as PTR.
5744         (handle_char_store): Pass NULL_TREE as second argument to
5745         get_addr_stridx.
5747 2016-06-29  Richard Biener  <rguenther@suse.de>
5749         PR rtl-optimization/68961
5750         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
5752 2016-06-29  Richard Biener  <rguenther@suse.de>
5754         PR middle-end/71002
5755         * alias.c (component_uses_parent_alias_set_from): Handle
5756         type punning through union accesses by using the union alias set.
5757         * gimple.c (gimple_get_alias_set): Remove union type punning case.
5759 2016-07-29  Richard Biener  <rguenther@suse.de>
5761         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
5762         precision not matching mode precision.
5764 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
5766         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
5767         pa_output_arg_descriptor.
5768         (call_val_symref_64bit_post_reload): Likewise.
5769         (call_val_powf_64bit_post_reload): Likewise.
5770         (sibcall_internal_symref_64bit): Likewise.
5771         (sibcall_value_internal_symref_64bit): Likewise.
5773 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
5775         PR middle-end/71626
5776         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
5777         a constant, force its SUBREG_REG into memory or register instead
5778         of whole op1.
5780 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5782         PR target/58655
5783         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
5784         * doc/invoke.texi (AVR Options): Document it.
5786 2016-06-28  Walter Lee  <walt@tilera.com>
5788         * config/tilegx/linux.h: Do not include arch/icache.h
5789         (CLEAR_INSN_CACHE): Provide inlined definition directly.
5790         * config/tilepro/linux.h: Do not include arch/icache.h
5791         (CLEAR_INSN_CACHE): Provide inlined definition directly.
5793 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
5795         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
5796         for big-endian BIT_FIELD_REF.
5798 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
5800         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
5801         ('size' attribute): Add '128'.
5802         Include power9.md.
5803         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
5804         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
5805         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
5806         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
5807         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
5808         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
5809         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
5810         *trunc<mode>df2_odd): Set size attribute to '128'.
5811         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
5812         * config/rs6000/power6.md (power6-fp): Include dfp type.
5813         * config/rs6000/power7.md (power7-fp): Likewise.
5814         * config/rs6000/power8.md (power8-fp): Likewise.
5815         * config/rs6000/power9.md: New file.
5816         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
5817         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
5818         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
5819         htmsimple.
5820         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
5821         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
5822         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
5823         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
5824         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
5825         dfp_dscri_<mode>): Change type attribute to dfp.
5826         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
5827         attribute to vecsimple.
5828         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
5829         and prefetch streams.
5830         (rs6000_option_override_internal): Remove temporary code setting
5831         tuning to power8.  Don't set rs6000_sched_groups for power9.
5832         (last_scheduled_insn): Change to rtx_insn *.
5833         (divide_cnt, vec_load_pendulum): New variables.
5834         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
5835         (rs6000_issue_rate): Set issue rate for Power9.
5836         (is_power9_pairable_vec_type): New.
5837         (power9_sched_reorder2): New.
5838         (rs6000_sched_reorder2): Call new function for Power9 specific
5839         reordering.
5840         (insn_must_be_first_in_group): Remove Power9.
5841         (insn_must_be_last_in_group): Likewise.
5842         (force_new_group): Likewise.
5843         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
5844         Initialize divide_cnt/vec_load_pendulum.
5845         (_rs6000_sched_context, rs6000_init_sched_context,
5846         rs6000_set_sched_context): Handle context save/restore of new
5847         variables.
5849 2016-06-28  Richard Biener  <rguenther@suse.de>
5851         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
5852         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
5853         COMPONENT_REF operand.
5854         (nonoverlapping_component_refs_p): Likewise.
5855         * stor-layout.c (start_bitfield_representative): Mark
5856         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
5858 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
5860         * Makefile.in: Don't cat ../stage_current if it does not exist.
5862         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
5863         last argument is a bit-field.
5865         PR rtl-optimization/71673
5866         * internal-fn.c (expand_arith_overflow_result_store): Use
5867         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
5868         expand_simple_binop.
5870         PR middle-end/66867
5871         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
5872         expand_ifn_atomic_compare_exchange): New functions.
5873         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
5874         * tree.h (build_call_expr_internal_loc): Rename to ...
5875         (build_call_expr_internal_loc_array): ... this.  Fix up type of
5876         last argument.
5877         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
5878         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
5879         ATOMIC_COMPARE_EXCHANGE result.
5880         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
5881         * gimple-fold.h (optimize_atomic_compare_exchange_p,
5882         fold_builtin_atomic_compare_exchange): New prototypes.
5883         * gimple-fold.c (optimize_atomic_compare_exchange_p,
5884         fold_builtin_atomic_compare_exchange): New functions..
5885         * tree-ssa.c (execute_update_addresses_taken): If
5886         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
5887         of call when finding addressable vars, and if such var becomes
5888         non-addressable, call fold_builtin_atomic_compare_exchange.
5890 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
5892         PR target/71670
5893         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
5894         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
5896 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
5898         * config/rs6000/rs6000.md ('type' attribute): Add
5899         veclogical,veccmpfx,vecexts,vecmove insn types.
5900         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
5901         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
5902         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
5903         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
5904         *nabs<mode>2_hw): Change type to vecmove.
5905         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
5906         *boolcc<mode>3_internal, *eqv<mode>3_internal,
5907         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
5908         *ieee_128bit_vsx_abs<mode>2_internal,
5909         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
5910         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
5911         *ieee128_mtvsrd_32bit): Change type to veclogical.
5912         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
5913         *movdi_internal32, *movdi_internal64): Update insn types.
5914         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
5915         vsx_extract_<mode>): Change type to veclogical.
5916         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
5917         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
5918         *vsx_sign_extend_si_v2di): Change type to vecexts.
5919         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
5920         type to veclogical.
5921         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
5922         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
5923         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
5924         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
5925         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
5926         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
5927         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
5928         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
5929         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
5930         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
5931         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
5932         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
5933         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
5934         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
5935         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
5936         (ppc7450-vecsimple): Add veclogical, vecmove.
5937         (ppc7450-veccmp): Add veccmpfx.
5938         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
5939         vecmove.
5940         (ppc8540_vector_compare): Add veccmpfx.
5941         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
5942         * config/rs6000/cell.md (cell-fp): Add fpsimple.
5943         (cell-vecsimple): Add veclogical, vecmove.
5944         (cell-veccmp): Add veccmpfx.
5945         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
5946         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
5947         veccmpfx.
5948         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
5949         * config/rs6000/power4.md (power4-fp): Add fpsimple.
5950         (power4-vecsimple): Add veclogical, vecmove.
5951         (power4-veccmp): Add veccmpfx.
5952         * config/rs6000/power5.md (power5-fp): Add fpsimple.
5953         * config/rs6000/power6.md (power6-fp): Add fpsimple.
5954         (power6-vecsimple): Add veclogical, vecmove.
5955         (power6-veccmp): Add veccmpfx.
5956         * config/rs6000/power7.md (power7-fp): Add fpsimple.
5957         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
5958         * config/rs6000/power8.md (power8-fp): Add fpsimple.
5959         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
5960         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
5961         * config/rs6000/titan.md (titan_fp): Add fpsimple.
5962         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
5963         fpsimple.
5964         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
5966 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
5968         PR target/71656
5969         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
5970         OPTION_MASK_P9_DFORM_VECTOR.
5971         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
5972         disable -mpower9-dform-vector when using reload.
5973         (quad_address_p): Remove 'gpr_p' argument and all associated code.
5974         New 'strict' argument.  Update all callers.  Add strict addressing
5975         support.
5976         (rs6000_legitimate_offset_address_p): Remove call to
5977         virtual_stack_registers_memory_p.
5978         (rs6000_legitimize_reload_address): Add quad address support.
5979         (rs6000_legitimate_address_p): Move call to quad_address_p above
5980         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
5981         to account for new strict usage.
5982         (rs6000_output_move_128bit): Adjust quad_address_p args to account
5983         for new strict usage.
5984         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
5986 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
5988         PR target/70902
5989         PR target/71453
5990         PR target/71555
5991         PR target/71596
5992         PR target/71657
5993         * config/i386/i386.c (ix86_spill_class): Disable condition to
5994         always return NO_REGS.
5996 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
5998         * predict.c: Include gimple-pretty-print.h
5999         (predicted_by_loop_heuristics_p): Check also
6000         PRED_LOOP_EXIT_WITH_RECURSION
6001         (predict_loops): Find self recursive calls and use special purpose
6002         predictors for them; dump log about decisions.
6003         (pass_profile::execute): Dump info about #of iterations.
6004         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
6005         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
6007 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
6009         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
6010         output_asm_insn calls and shorten long lines.  Output .CALL
6011         argument descriptor using pa_output_arg_descriptor.  Add various
6012         inline $$dyncall and other optimizations.
6013         (pa_attr_length_indirect_call): Adjust ordering and lengths.
6015 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
6017         PR tree-optimization/71643
6018         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
6019         EH preds.
6021         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
6022         leak a bitmap if dep_bb is NULL.
6024         PR tree-optimization/71631
6025         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
6026         to rewrite_expr_tree even if negate_result, move new_lhs var
6027         declaration and initialization earlier, for powi_result set afterwards
6028         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
6029         if new_lhs != lhs, and don't shadow gsi var.
6031 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
6033         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
6034         Add in_loop parameter.
6035         (predict_loops): Add loop guard heuristics.
6036         * predict.def (PRED_LOOP_GUARD): New heuristics.
6038 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
6040         * predict.c: Include ipa-utils.h
6041         (tree_bb_level_prediction): Predict recursive calls.
6042         (tree_estimate_probability_bb): Skip inexpensive calls for call
6043         predictor.
6044         * predict.def (PRED_RECURSIVE_CALL): New.
6046 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6048         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
6049         (BU_FLOAT128_1): Likewise.
6050         (FABSQ): Likewise.
6051         (COPYSIGNQ): Likewise.
6052         (RS6000_BUILTIN_NANQ): Likewise.
6053         (RS6000_BUILTIN_NANSQ): Likewise.
6054         (RS6000_BUILTIN_INFQ): Likewise.
6055         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
6056         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
6057         (TARGET_FOLD_BUILTIN): New #define.
6058         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
6059         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
6060         (rs6000_fold_builtin): New target hook implementation, handling
6061         folding of 128-bit NaNs and infinities.
6062         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
6063         entries are filled in to avoid problems during bootstrap
6064         self-test; define builtins for 128-bit NaNs and infinities.
6065         (rs6000_opt_mask): Add entry for float128.
6066         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
6067         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
6068         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
6069         (const_str_type_node): New #define.
6070         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
6071         to a define_expand that dispatches to either copysign<mode>3_soft
6072         or copysign<mode>3_hard.
6073         (copysign<mode>3_hard): Rename from copysign<mode>3.
6074         (copysign<mode>3_soft): New define_insn.
6075         * doc/extend.texi: Document new builtins.
6077 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
6079         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
6080         PRIu64 instead of lu.
6082 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
6084         PR debug/71642
6085         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
6086         copy the type name.
6088 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
6090         PR tree-optimization/71647
6091         * omp-low.c (lower_rec_input_clauses): Convert
6092         omp_clause_aligned_alignment (c) to size_type_node for the
6093         last argument of __builtin_assume_aligned.
6095 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
6097         * configure.ac (calling ___tls_get_addr via GOT): New
6098         assembler/linker check.
6099         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
6100         assembler and linker supports calling ___tls_get_addr via GOT.
6101         Otherise, defined to 0.
6102         * config.in: Regenerated.
6103         * configure: Likewise.
6104         * config/i386/constraints.md (Yb): New constraint.
6105         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
6106         (REG_CLASS_NAMES): Likewise.
6107         (REG_CLASS_CONTENTS): Likewise.
6108         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
6109         the b constraint with the Yb constraint.  Call ___tls_get_addr
6110         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
6111         is 1.
6112         (*tls_local_dynamic_base_32_gnu): Likewise.
6113         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
6114         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
6115         (*tls_local_dynamic_base_64_<mode>): Likewise.
6117 2016-06-24  Martin Liska  <mliska@suse.cz>
6119         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
6120         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
6121         few functions.
6122         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
6123         argument to true if the expected number of iterations is
6124         loop-based.
6126 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
6128         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
6129         assemble for 32bit target.
6130         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
6131         and $ld_ix86_gld_32_opt to link for 32bit target.
6132         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
6133         * configure: Regenerate.
6135 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6137         * config/arm/arm.c (int_log2): Delete definition and prototype.
6138         (shift_op): Use exact_log2 instead of int_log2.
6139         (vfp3_const_double_for_fract_bits): Likewise.
6141 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
6143         * internal-fn.c (expand_arith_set_overflow): New function.
6144         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
6145         Use it.
6146         (expand_arith_overflow_result_store): Likewise.  Handle precision
6147         smaller than mode precision.
6148         * tree-vrp.c (extract_range_basic): For imag part, handle
6149         properly signed 1-bit precision result.
6150         * doc/extend.texi (__builtin_add_overflow): Document that last
6151         argument can't be pointer to enumerated or boolean type.
6152         (__builtin_add_overflow_p): Document that last argument can't
6153         have enumerated or boolean type.
6155 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
6156             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6158         * config/rs6000/predicates.md (splat_input_operand): Rework.
6159         Don't allow constants, since the insns that use this predicate
6160         don't support constants.  Constants are handled by other insns
6161         that are created via combine.  During and after register
6162         allocation, only allow indexed or indirect addresses, and not
6163         general addresses.  Only allow modes supported by the hardware.
6164         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
6165         comment.  Move check for using VSPLTIS<x> to a common location,
6166         instead of doing it in two different places.
6168 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
6170         * config/i386/driver-i386.c (host_detect_local_cpu): Set
6171         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
6172         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
6173         signature_CENTAUR_ebx.
6175 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
6177         PR target/66232
6178         PR target/67400
6179         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
6180         (as_ix86_gas_32_opt): This.
6181         (ld_ix86_tls_ldm_opt): Renamed to ...
6182         (ld_ix86_gld_32_opt): This.
6183         (R_386_TLS_LDM reloc): Updated.
6184         (R_386_GOT32X reloc): New assembler/linker check.
6185         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
6186         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
6187         defined to 0.
6188         * config.in: Regenerated.
6189         * configure: Likewise.
6190         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
6191         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
6192         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
6193         if ix86_force_load_from_GOT_p returns true.
6194         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
6195         ix86_force_load_from_GOT_p returns true.
6196         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
6197         the external function address via the GOT slot.
6198         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
6199         HAVE_AS_IX86_GOT32X before returning false.
6200         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
6201         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
6203 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
6205         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
6207 2016-06-23  Andi Kleen  <ak@linux.intel.com>
6209         * Makefile.in: Regenerate.
6210         * doc/install.texi: Document autoprofiledbootstrap.
6212 2016-06-23  Andi Kleen  <ak@linux.intel.com>
6214         * config/i386/gcc-auto-profile: New file.
6216 2016-06-23  Martin Liska  <mliska@suse.cz>
6218         PR middle-end/71619
6219         * predict.c (predict_loops): Revert the hunk that was removed
6220         in r237103.
6222 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
6224         * config.gcc: Add support for arm*-*-phoenix* targets.
6225         * config/arm/t-phoenix: New.
6226         * config/phoenix.h: New.
6228 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
6229             H.J. Lu  <hongjiu.lu@intel.com>
6231         PR target/67400
6232         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
6233         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
6234         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
6235         ix86_force_load_from_GOT_p returns true.
6236         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
6237         ix86_force_load_from_GOT_p returns true.
6238         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
6239         ix86_force_load_from_GOT_p returns true.
6240         (ix86_expand_move): Load the external function address via the
6241         GOT slot if ix86_force_load_from_GOT_p returns true.
6242         * config/i386/predicates.md (x86_64_immediate_operand): Return
6243         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
6244         (x86_64_zext_immediate_operand): Ditto.
6246 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
6248         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
6250 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
6252         PR c/70339
6253         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
6254         * diagnostic.c (pedwarn_at_rich_loc): New function.
6255         * spellcheck.h (best_match::best_match): Add a
6256         "best_distance_so_far" optional parameter.
6257         (best_match::set_best_so_far): New method.
6258         (best_match::get_best_distance): New accessor.
6259         (best_match::get_best_candidate_length): New accessor.
6261 2016-06-22  Nick Clifton  <nickc@redhat.com>
6263         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
6264         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
6265         modes are accepted as well.
6266         (ucompare_loc_descriptor): Likewise.
6267         (minmax_loc_descriptor): Likewise.
6268         (clz_loc_descriptor): Likewise.
6269         (popcount_loc_descriptor): Likewise.
6270         (bswap_loc_descriptor): Likewise.
6271         (rotate_loc_descriptor): Likewise.
6272         (mem_loc_descriptor): Likewise.
6273         (loc_descriptor): Likewise.
6275 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
6277         * common.opt (fdiagnostics-parseable-fixits): New option.
6278         * diagnostic.c: Include "selftest.h".
6279         (print_escaped_string): New function.
6280         (print_parseable_fixits): New function.
6281         (diagnostic_report_diagnostic): Call print_parseable_fixits.
6282         (selftest::assert_print_escaped_string): New function.
6283         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
6284         (selftest::test_print_escaped_string): New function.
6285         (selftest::test_print_parseable_fixits_none): New function.
6286         (selftest::test_print_parseable_fixits_insert): New function.
6287         (selftest::test_print_parseable_fixits_remove): New function.
6288         (selftest::test_print_parseable_fixits_replace): New function.
6289         (selftest::diagnostic_c_tests): New function.
6290         * diagnostic.h (struct diagnostic_context): Add field
6291         "parseable_fixits_p".
6292         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
6293         -fdiagnostics-parseable-fixits.
6294         (-fdiagnostics-parseable-fixits): New option.
6295         * opts.c (common_handle_option): Handle
6296         -fdiagnostics-parseable-fixits.
6297         * selftest-run-tests.c (selftest::run_tests): Call
6298         selftest::diagnostic_c_tests.
6299         * selftest.h (selftest::diagnostic_c_tests): New prototype.
6301 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
6303         PR tree-optimization/71488
6304         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
6305         comparison of boolean vectors.
6306         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
6307         of boolean vectors using bitwise operations.
6309 2016-06-22  Andreas Schwab  <schwab@suse.de>
6311         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
6312         Remove declaration.
6314 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
6316         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
6318 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6320         * config/i386/i386.c (print_reg): Emit an error message on attempt to
6321         print FLAGS_REG.
6323 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6325         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
6326         * config/arm/arm-cores.def (cortex-a73): New entry.
6327         (cortex-a73.cortex-a35): Likewise.
6328         (cortex-a73.cortex-a53): Likewise.
6329         * config/arm/arm-tables.opt: Regenerate.
6330         * config/arm/arm-tune.md: Likewise.
6331         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
6332         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
6333         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
6334         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
6335         * doc/invoke.texi (ARM Options): Document cortex-a73,
6336         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
6338 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6340         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
6341         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
6342         (cortex-a73.cortex-a35): Likewise.
6343         (cortex-a73.cortex-a53): Likewise.
6344         * config/aarch64/aarch64-tune.md: Regenerate.
6345         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
6346         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
6347         -mcpu and -mtune.
6349 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6351         * configure.ac (gcc_cv_as_compress_debug): Remove
6352         --compress-debug-sections as extra as switch.
6353         Handle gas --compress-debug-sections=type.
6354         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
6355         Handle gld --compress-debug-sections=type.
6356         * configure: Regenerate.
6358 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
6360         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
6362 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
6364         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
6365         (do_rewrite): likewise.
6367 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6369         * common/config/mep/mep-common.c: Remove.
6370         * config.gcc: Remove mep-* support.
6371         * config/mep/constraints.md: Remove.
6372         * config/mep/default.h: Remove.
6373         * config/mep/intrinsics.h: Remove.
6374         * config/mep/intrinsics.md: Remove.
6375         * config/mep/ivc2-template.h: Remove.
6376         * config/mep/mep-c5.cpu: Remove.
6377         * config/mep/mep-core.cpu: Remove.
6378         * config/mep/mep-default.cpu: Remove.
6379         * config/mep/mep-ext-cop.cpu: Remove.
6380         * config/mep/mep-intrin.h: Remove.
6381         * config/mep/mep-ivc2.cpu: Remove.
6382         * config/mep/mep-pragma.c: Remove.
6383         * config/mep/mep-protos.h: Remove.
6384         * config/mep/mep.c: Remove.
6385         * config/mep/mep.cpu: Remove.
6386         * config/mep/mep.h: Remove.
6387         * config/mep/mep.md: Remove.
6388         * config/mep/mep.opt: Remove.
6389         * config/mep/predicates.md: Remove.
6390         * config/mep/t-mep: Remove.
6391         * doc/install.texi: Remove mep-* documentation.
6392         * doc/md.texi: Likewise.
6394 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6396         * config.gcc: Remove support for avr-rtems.
6397         * config/avr/gen-avr-mmcu-specs.c: Likewise.
6398         * config/avr/rtems.h: Remove.
6399         * config/avr/t-rtems: Remove.
6401 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6403         * config.gcc: Remove m32r-rtems support.
6404         * config/m32r/rtems.h: Remove.
6406 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6408         * config.gcc: Remove h8300-rtems support.
6409         * config/h8300/rtems.h: Remove.
6410         * config/h8300/t-rtems: Remove.
6412 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6414         * config.gcc: Remove support for knetbsd.
6415         * configure.ac: Likewise.
6416         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
6417         * config/knetbsd-gnu.h: Remove.
6418         * configure: Regenerate.
6420 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6422         * config.gcc: Remove support for openbsd 2 and 3.
6423         * config/openbsd-oldgas.h: Remove.
6425 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6427         * config.gcc: Remove interix support.
6428         * config/i386/i386-interix.h: Remove.
6429         * config/i386/interix.opt: Remove.
6430         * config/i386/t-interix: Remove.
6431         * configure: Regenerate.
6432         * configure.ac: Remove interix support.
6433         * doc/install.texi: Remove interix documentation.
6435 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6437         * config/rs6000/rs6000.h: Add conditional preprocessing directives
6438         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
6439         not defined.
6441 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
6443         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
6444         they are both PLACEHOLDER_EXPRs.
6446 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6448         * stor-layout.c (layout_type): Move setting complex MODE to
6449         layout_type, instead of setting it ahead of time by the caller.
6450         * tree.c (build_complex_type): Likewise.
6452 2016-06-21  Martin Liska  <mliska@suse.cz>
6454         * predict.c (force_edge_cold): Replace imposisble with
6455         impossible.
6457 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
6459         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
6460         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
6462 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
6464         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
6466 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
6467             Ilya Enkovich  <ilya.enkovich@intel.com>
6469         PR target/71549
6470         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
6471         New member function to convert V1TImode register to SUBREG
6472         TImode in debug insn.
6473         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
6474         after changing register mode to V1TImode.
6476 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
6478         * config/aarch64/aarch64-cores.def (vulcan): New core.
6479         * config/aarch64/aarch64-tune.md: Regenerate.
6480         * doc/invoke.texi: Document vulcan as an available option.
6482 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
6484         * cse.c (canon_asm_operands): New function extracted from...
6485         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
6486         either standalone or member of a PARALLEL.
6488 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
6490         PR target/30417
6491         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
6492         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
6493         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
6495 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
6497         PR target/71103
6498         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
6499         constant addresses if can_create_pseudo_p.
6501 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
6503         PR tree-optimization/71588
6504         * tree-ssa-strlen.c (valid_builtin_call): New function.
6505         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
6506         it.
6508 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
6510         PR middle-end/71581
6511         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
6512         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
6513         for conversion of scalar user var to complex type and use the
6514         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
6515         punt.
6517         PR rtl-optimization/71591
6518         * toplev.c (toplev::run_self_tests): If no_backend, complain and
6519         don't run any tests.
6521 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
6523         PR target/71571
6524         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
6525         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
6526         space for PIC with non-v32 and the common non-PIC "jump".
6528 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
6530         PR target/71559
6531         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
6532         returned values and add UN*/LTGT/*ORDERED cases with values matching
6533         D operand modifier on vcmp for AVX.
6535 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
6537         * config/aarch64/aarch64.opt
6538         (mpc-relative-literal-loads): Rename internal option name.
6539         * config/aarch64/aarch64.c
6540         (aarch64_nopcrelative_literal_loads): Rename to
6541         aarch64_pcrelative_literal_loads.
6542         (aarch64_expand_mov_immediate): Likewise.
6543         (aarch64_secondary_reload): Likewise.
6544         (aarch64_can_use_per_function_literal_pools_p): Likewise.
6545         (aarch64_override_options_after_change_1): Rename and simplify logic.
6546         (aarch64_classify_symbol): Merge large model checks into switch,
6547         remove pc-relative load check.
6549 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
6551         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
6552         costs relative to the cost of a register move.
6554 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
6556         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
6557         (vcvt_n_f64_u64): Likewise.
6558         (vcvt_n_s64_f64): Likewise.
6559         (vcvt_n_u64_f64): Likewise.
6560         (vcvt_f64_s64): Likewise.
6561         (vrecpe_f64): Likewise.
6562         (vcvt_f64_u64): Likewise.
6563         (vrecps_f64): Likewise.
6565 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
6567         * config/aarch64/aarch64.md
6568         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
6569         iterators.
6570         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
6571         attributes.
6572         * config/aarch64/aarch64-builtins.c
6573         (aarch64_types_binop_uss_qualifiers): Delete.
6574         (TYPES_BINOP_USS): Likewise.
6575         (aarch64_types_binop_sus_qualifiers): Likewise.
6576         (TYPES_BINOP_SUS): Likewise.
6577         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
6578         (TYPES_FCVTIMM_SUS): Likewise.
6579         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
6580         rather than BINOP.
6581         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
6582         (fcvtzs): Use SHIFTIMM rather than BINOP.
6583         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
6585 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
6587         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
6588         costs relative to the cost of a register move.
6590 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
6592         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
6593         Allow scalar/single vector modes to be tieable.
6595 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
6597         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
6599 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6601         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
6602         "alignement".
6603         * tree.h (TYPE_ALIGN): Likewise.
6605 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
6607         PR target/71103
6608         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
6610 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
6612         * config/avr/avr.c (avr_print_operand): Fix "format not a string
6613         literal" build warnings.
6614         (avr_print_operand_address): Dito.
6616 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
6618         PR target/71375
6619         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
6620         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
6622 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
6624         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
6626 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
6628         PR bootstrap/71435
6629         * reload1.c (reload): Pass 0 to finish_spills when called because
6630         update_eliminables_and_spill returns true and remove did_spill.
6631         (finish_spills): Adjust comment and document GLOBAL parameter.
6633 2016-06-17  DJ Delorie  <dj@redhat.com>
6635         PR target/71338
6636         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
6637         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
6638         (umulqihi3_virt): Likewise.
6639         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
6640         (umulqihi3_real): Likewise.
6642 2016-06-17  Martin Liska  <mliska@suse.cz>
6644         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
6646 2016-06-17  Martin Liska  <mliska@suse.cz>
6648         * predict.def: PRED_LOOP_EXIT from 92 to 85.
6650 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
6652         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
6653         __FAST_MATH__.
6654         (vaddq_f32): Likewise.
6655         (vmul_f32): Likewise.
6656         (vmulq_f32): Likewise.
6657         (vsub_f32): Likewise.
6658         (vsubq_f32): Likewise.
6660 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
6662         PR tree-optimization/71347
6663         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
6664         cost for all uses in group.
6666 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
6668         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
6669         insert gimple seq if it's not empty.
6671 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
6673         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
6674         member OFFSET.
6675         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
6676         rather than OFFSET.
6677         (comp_dr_with_seg_len_pair): Ditto.
6678         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
6679         struct dr_with_seg_len_pair against DR_OFFSET.
6680         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
6681         DR_OFFSET directly.
6683 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6685         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
6687 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
6689         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
6690         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
6691         (pa_output_millicode_call): Likewise.
6692         (pa_output_call): Likewise.
6693         (pa_output_indirect_call): Likewise.
6694         (pa_asm_output_mi_thunk): Likewise.
6696 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6698         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
6700 2016-06-16  Martin Liska  <mliska@suse.cz>
6702         * predict.c (combine_predictions_for_insn): When we find a first
6703         match predictor, we should consider just predictors with
6704         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
6705         DS theory predictor.
6706         (combine_predictions_for_bb): Likewise.
6708 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
6710         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
6711         with base of reference to struct.
6713 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
6715         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
6717 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6719         PR target/71151
6720         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
6721         progmem_swtable_section.
6722         (progmem_swtable_section): Remove.
6723         (avr_asm_function_rodata_section): Remove.
6724         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
6725         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
6727 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
6729         * config/i386/driver-i386.c (host_detect_local_cpu): Set
6730         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
6731         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
6732         signature_CENTAUR_ebx.
6733         * config/i386/i386.c (ix86_option_override_internal): Add
6734         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
6735         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
6736         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
6738 2016-06-16  Martin Liska  <mliska@suse.cz>
6740         * predict.def: Add fortran loop preheader predictor.
6741         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
6742         fold IFN_BUILTIN_EXPECT with a known constant argument.
6744 2016-06-16  Martin Liska  <mliska@suse.cz>
6746         * predict.def: Add 'Fortran' to display text of all
6747         PRED_FORTRAN_* predictors.
6749 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
6751         PR target/71242
6752         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
6753         [IA64_BUILTIN_NANSQ]: Ditto.
6754         (ia64_fold_builtin): New function.
6755         (TARGET_FOLD_BUILTIN): New define.
6756         (ia64_init_builtins) Declare const_string_type node.
6757         Add __builtin_nanq and __builtin_nansq builtin functions.
6758         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
6760 2016-06-16  Nick Clifton  <nickc@redhat.com>
6762         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
6763         MSP430_HWMULT_ prefix to enum values.
6764         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
6765         * config/msp430/msp430.c: Update use of enum values.
6766         * config/msp430/msp430.md: Likewise.
6767         * config/msp430/msp430.opt: Likewise.
6769 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
6771         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
6772         of comparsions in the last iteration.
6774 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
6775             Joern Rennecke  <joern.rennecke@embecosm.com>
6777         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
6778         addresses.
6779         (arc_needs_pcl_p): Add GOTOFFPC.
6780         (arc_legitimate_pic_addr_p): Likewise.
6781         (arc_output_pic_addr_const): Likewise.
6782         (arc_legitimize_pic_address): Generate a pc-relative address using
6783         GOTOFFPC.
6784         (arc_output_libcall): Use @pcl syntax.
6785         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
6786         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
6787         (*movsi_insn): Use @pcl syntax.
6788         (doloop_begin_i): Likewise.
6790 2016-06-16  Martin Liska  <mliska@suse.cz>
6792         * predict.def: Define a new predictor.
6794 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
6796         * config/arc/arc.opt (mtp-regno): Update text.
6798 2016-06-16  Renlin Li  <renlin.li@arm.com>
6800         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
6802 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
6804         PR target/71554
6805         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
6806         (setcc + and peephole2): Likewise.
6808         PR rtl-optimization/71532
6809         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
6810         memory slots.
6812 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
6814         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
6815         DImode constants with XXSPLTIB in vector registers.
6816         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
6817         vsx_extract_<mode>_internal{1,2} into a single insn that handles
6818         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
6819         extraction of the element at the top of the register as a scalar
6820         value.
6821         (vsx_extract_<mode>_internal1): Likewise.
6822         (vsx_extract_<mode>_internal2): Likewise.
6823         * config/rs6000/constraints.md (wi constraint): Remove a comment
6824         about DImode not being allowed in Altivec registers.
6825         (wB constraint): New constraint for constants that can be
6826         generated in Altivec registers with VSPLTISW/VUPKHSW.
6827         * config/rs6000/predicates.md (xxspltib_constant_split): Update
6828         comments.
6829         (xxspltib_constant_nosplit): Likewise.
6830         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
6831         support for -mupper-regs-di to enable DImode to go into Altivec
6832         registers.
6833         (POWERPC_MASKS): Likewise.
6834         (power7 cpu): Likewise.
6835         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
6836         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
6837         for DImode being allowed in Altivec registers.  Update wi/wj
6838         constraints.  Set scalar_in_vmx_p flag.
6839         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
6840         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
6841         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
6842         (rs6000_opt_masks): Add -mupper-regs-di.
6843         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
6844         direct move to use wi and not wj.
6845         (lfiwzx): Likewise.
6846         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
6847         alternative.
6848         (floatunssi<mode>2_lfiwzx_mem): Likewise.
6849         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
6850         any VSX register, instead of just Altivec registers, to allow
6851         either operand to be an Altivec register or both.
6852         (fixuns_trunc<mode>di2_fctiduz): Likewise.
6853         (movdi_internal32): Add support for -mupper-regs-di.  Add support
6854         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
6855         the alternatives and attributes to be lined up to be easier to
6856         read.
6857         (movdi_internal64): Likewise.
6858         (64-bit DImode splitters): Change predicates to only split loading
6859         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
6860         load constants in ISA 3.0 or ISA 2.07 respectively.
6861         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6862         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
6863         mention -mcpu=power9 sets these options.
6864         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
6865         wB constraint.
6867 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
6869         PR target/67353
6870         * config/avr/avr.c (avr_set_current_function): Warn misspelled
6871         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
6872         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
6873         by default to warn misspelled interrupt/ signal handler.
6874         * doc/invoke.texi (AVR Options): Document it. Update description
6875         for -nodevicelib option.
6877 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6879         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
6880         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
6881         (aarch64_<sur>shll2_n<mode>): Likewise.
6883 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
6885         PR middle-end/71529
6886         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
6887         DECL_CONTEXT for copied arguments.
6889 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
6891         PR tree-optimization/71483
6892         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
6893         for slp
6895 2016-06-15  Martin Liska  <mliska@suse.cz>
6897         * predict.c (tree_predict_by_opcode): Call predict_edge_def
6898         instead of predict_edge w/o a probability.
6900 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
6902         PR tree-optimization/71439
6903         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
6904         live PHIs.
6906 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6908         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
6909         register subregs in SET_SRC.
6911 2016-06-15  Richard Biener  <rguenther@suse.de>
6913         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
6914         store restrictions.
6916 2016-06-15  Richard Biener  <rguenther@suse.de>
6918         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
6919         not consider dependences between accesses that belong to the
6920         same group.
6921         (vect_analyze_data_ref_dependences): Do not analyze read-read
6922         or self-dependences.
6924 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
6926         * spellcheck-tree.c: Include spellcheck-tree.h rather than
6927         spellcheck.h.
6928         (find_closest_identifier): Reimplement in terms of
6929         best_match<tree,tree>.
6930         * spellcheck-tree.h: New file.
6931         * spellcheck.c (struct edit_distance_traits<const char *>): New
6932         struct.
6933         (find_closest_string): Reimplement in terms of
6934         best_match<const char *, const char *>.
6935         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
6936         overload to spellcheck-tree.h.
6937         (find_closest_identifier): Likewise.
6938         (struct edit_distance_traits<T>): New template.
6939         (class best_match): New class.
6941 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
6943         * selftest-run-tests.c (selftest::run_tests): Call
6944         selftest::spellcheck_tree_c_tests.
6945         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
6946         * spellcheck-tree.c: Include selftest.h and stringpool.h.
6947         (selftest::test_find_closest_identifier): New function.
6948         (selftest::spellcheck_tree_c_tests): New function.
6949         * spellcheck.c (selftest::test_find_closest_string): Verify that
6950         the order of the vec does not affect the results for this case.
6951         (selftest::test_data): New array.
6952         (selftest::test_metric_conditions): New function.
6953         (selftest::spellcheck_c_tests): Add a test of case-comparison.
6954         Call selftest::test_metric_conditions.
6956 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6958         * config/rs6000/rs6000-builtin.def (commentary): Typo.
6959         (BU_P9_MISC_1): Likewise.
6960         (BU_P9_64BIT_MISC_0): Likewise.
6961         (BU_P9_MISC_0): Likewise.
6963 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
6965         * gcc-rich-location.c
6966         (gcc_rich_location::add_fixit_misspelled_id): New method.
6967         * gcc-rich-location.h
6968         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
6970 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
6972         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
6973         FreeBSD 11 and above.
6975 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
6977         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
6979 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6981         * expmed.h: Close parenthesis in "at your option" in copyright
6982         boilerplate.
6983         * lower-subreg.h: Likewise.
6985 2016-06-14  Richard Biener  <rguenther@suse.de>
6987         PR middle-end/71526
6988         * genmatch.c (expr::gen_transform): Use in_type for comparisons
6989         if available.
6991 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6993         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
6994         New function.
6995         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
6996         mask+shift version.
6997         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
6998         New prototype.
6999         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
7000         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
7002 2016-06-14  Richard Biener  <rguenther@suse.de>
7004         PR tree-optimization/71522
7005         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
7006         copying into float copying.
7008 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
7010         PR tree-optimization/71520
7011         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
7012         (replace_block_by): Move user labels from bb1 to bb2.
7014 2016-06-14  Richard Biener  <rguenther@suse.de>
7016         PR middle-end/71310
7017         PR bootstrap/71510
7018         * expr.h (get_bit_range): Declare.
7019         * expr.c (get_bit_range): Export.
7020         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
7021         word_mode again to constrain the bitfield access.
7023 2016-06-14  Richard Biener  <rguenther@suse.de>
7025         PR tree-optimization/71521
7026         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
7027         division int_const_binop against zero divisor.
7029 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
7031         * config/i386/i386.md (signbittf2): New expander.
7032         * config/i386/sse.md (ptesttf2): New insn pattern.
7034 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
7036         PR bootstrap/71481
7037         * input.c (selftest::test_reading_source_line): Avoid reading from
7038         __FILE__ by creating a tempfile with known content and reading
7039         from that instead.
7041 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
7043         * pretty-print.c (assert_pp_format_colored): Skip the test if
7044         GCC_COLORS is set.
7045         (test_pp_format): Remove comment about GCC_COLORS.
7047 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
7049         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
7050         * pretty-print.c (assert_pp_format_va): Add location param and use
7051         it with ASSERT_STREQ_AT.
7052         (assert_pp_format): Add location param and pass it to
7053         assert_pp_format_va.
7054         (assert_pp_format_colored): Likewise.
7055         (ASSERT_PP_FORMAT_1): New.
7056         (ASSERT_PP_FORMAT_2): New.
7057         (ASSERT_PP_FORMAT_3): New.
7058         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
7059         explicitly, or implicitly via the above macros.
7060         * selftest.c (selftest::pass): Use a selftest::location rather
7061         than file and line.
7062         (selftest::fail): Likewise.  Print the function name.
7063         (selftest::fail_formatted): Likewise.
7064         (selftest::assert_streq): Use a selftest::location rather than
7065         file and line.
7066         * selftest.h (selftest::location): New struct.
7067         (SELFTEST_LOCATION): New macro.
7068         (selftest::pass): Accept a const location & rather than file
7069         and line.
7070         (selftest::fail): Likewise.
7071         (selftest::fail_formatted): Likewise.
7072         (selftest::assert_streq): Likewise.
7073         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
7074         (ASSERT_FALSE): Likewise.
7075         (ASSERT_EQ): Likewise.
7076         (ASSERT_NE): Likewise.
7077         (ASSERT_STREQ): Likewise.
7078         (ASSERT_PRED1): Likewise.
7079         (ASSERT_STREQ_AT): New macro.
7081 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
7083         * selftest.c (selftest::fail_formatted): New function.
7084         (selftest::assert_streq): New function.
7085         * selftest.h (selftests::fail_formatted): New decl.
7086         (selftest::assert_streq): New decl.
7087         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
7089 2016-06-13  Jeff Law  <law@redhat.com>
7091         PR tree-optimization/71403
7092         * tree-ssa-threadbackward.c
7093         (convert_and_register_jump_thread_path): No longer accept reference
7094         to path.  Do not pop items off the path anymore.
7095         (fsm_find_control_statement_thread_paths): Do not allow threading
7096         to a deeper loop nest.  Pop the last item off the path here rather
7097         than in convert_and_register_jump_thread_path.
7099 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
7100             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
7102         [AArch64] Emit division using the Newton series
7104         * config/aarch64/aarch64-protos.h
7105         (cpu_approx_modes): Add new member "division".
7106         (aarch64_emit_approx_div): Declare new function.
7107         * config/aarch64/aarch64.c
7108         (generic_approx_modes): New member "division".
7109         (exynosm1_approx_modes): Likewise.
7110         (xgene1_approx_modes): Likewise.
7111         (aarch64_emit_approx_div): Define new function.
7112         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
7113         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
7114         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
7115         * doc/invoke.texi (-mlow-precision-div): Describe new option.
7117 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
7118             Wilco Dijkstra  <wilco.dijkstra@arm.com>
7120         [AArch64] Emit square root using the Newton series
7122         * config/aarch64/aarch64-protos.h
7123         (aarch64_emit_approx_rsqrt): Replace with new function
7124         "aarch64_emit_approx_sqrt".
7125         (cpu_approx_modes): New member "sqrt".
7126         * config/aarch64/aarch64.c
7127         (generic_approx_modes): New member "sqrt".
7128         (exynosm1_approx_modes): Likewise.
7129         (xgene1_approx_modes): Likewise.
7130         (aarch64_emit_approx_rsqrt): Replace with new function
7131         "aarch64_emit_approx_sqrt".
7132         (aarch64_override_options_after_change_1): Handle new option.
7133         * config/aarch64/aarch64-simd.md
7134         (rsqrt<mode>2): Use new function instead.
7135         (sqrt<mode>2): New expansion and insn definitions.
7136         * config/aarch64/aarch64.md: Likewise.
7137         * config/aarch64/aarch64.opt
7138         (mlow-precision-sqrt): Add new option description.
7139         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
7141 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
7143         [AArch64] Add more choices for the reciprocal square root approximation
7145         Allow a target to prefer such operation depending on the operation mode.
7147         * config/aarch64/aarch64-protos.h
7148         (AARCH64_APPROX_MODE): New macro.
7149         (AARCH64_APPROX_{NONE,ALL}): Likewise.
7150         (cpu_approx_modes): New structure.
7151         (tune_params): New member "approx_modes".
7152         * config/aarch64/aarch64-tuning-flags.def
7153         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
7154         * config/aarch64/aarch64.c
7155         (generic_approx_modes): New core "cpu_approx_modes" structure.
7156         (exynosm1_approx_modes): Likewise.
7157         (xgene1_approx_modes): Likewise.
7158         (generic_tunings): New member "approx_modes".
7159         (cortexa35_tunings): Likewise.
7160         (cortexa53_tunings): Likewise.
7161         (cortexa57_tunings): Likewise.
7162         (cortexa72_tunings): Likewise.
7163         (exynosm1_tunings): Likewise.
7164         (thunderx_tunings): Likewise.
7165         (xgene1_tunings): Likewise.
7166         (use_rsqrt_p): New argument for the mode and use new member from
7167         "tune_params".
7168         (aarch64_builtin_reciprocal): Devise mode from builtin.
7169         (aarch64_optab_supported_p): New argument for the mode.
7170         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
7172 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7174         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
7175         RS6000_BTM_MODULO flag into the set of flags that are considered
7176         to be part of the common configuration.
7178 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7180         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
7181         difference unsigned.
7182         (vec_absdb): New macro for vector absolute difference unsigned
7183         byte.
7184         (vec_absdh): New macro for vector absolute difference unsigned
7185         half-word.
7186         (vec_absdw): New macro for vector absolute difference unsigned word.
7187         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
7188         (vadu<mode>3): New insn.
7189         (*p9_vadu<mode>3): New insn.
7190         * config/rs6000/rs6000-builtin.def (vadub): New built-in
7191         definition.
7192         (vaduh): New built-in definition.
7193         (vaduw): New built-in definition.
7194         (vadu): New overloaded built-in definition.
7195         (vadub): New overloaded built-in definition.
7196         (vaduh): New overloaded built-in definition.
7197         (vaduw): New overloaded built-in definition.
7198         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7199         overloaded vector absolute difference unsigned functions.
7200         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7201         the ISA 3.0 vector absolute difference unsigned built-in functions.
7203 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
7205         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
7206         update shared_lookup_references only once after changing operands.
7208 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
7210         PR middle-end/71373
7211         * tree-nested.c (convert_nonlocal_omp_clauses)
7212         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
7214         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
7215         * tree.def (CASE_LABEL_EXPR): Likewise.
7217 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7219         PR bootstrap/71481
7220         * input.c (test_builtins): Fix an assertion.
7222 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
7224         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
7225         (paritysi2): Ditto.
7226         (isinfxf2): Ditto.
7227         (isinf<mode>2): Ditto.
7229 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
7231         * ggc-tests.c (test_finalization): Only test need_finalization_p
7232         for GCC_VERSION >= 4003.
7234 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7236         * config/s390/vecintrin.h: Fix file description in comment.
7238 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7240         * config/s390/s390-builtin-types.def: Change builtin type naming
7241         scheme to match builtin-types.def.
7243 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
7245         * fold-const.c (optimize_minmax_comparison): Remove.
7246         (fold_comparison): Remove call to the above.
7247         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
7248         New transformations.
7250 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
7252         PR tree-optimization/71416
7253         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
7254         multiple entries
7256 2016-06-13  Martin Liska  <mliska@suse.cz>
7258         * predict.c (enum predictor_reason): Prefix enum with REASON_.
7259         (combine_predictions_for_insn): Likewise.
7260         (prune_predictions_for_bb): Likewise.
7261         (combine_predictions_for_bb): Likewise.
7263 2016-06-13  Richard Biener  <rguenther@suse.de>
7265         PR tree-optimization/71505
7266         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
7267         assert match comment.
7269 2016-06-13  Marek Polacek  <polacek@redhat.com>
7271         PR middle-end/71476
7272         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
7273         gimplify_switch_expr.
7274         (warn_switch_unreachable_r): New function.
7276 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7278         PR target/71379
7279         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
7280         one.
7282 2016-06-13  Richard Biener  <rguenther@suse.de>
7284         PR middle-end/64516
7285         * fold-const.c (fold_unary_loc): Preserve alignment when
7286         folding a VIEW_CONVERT_EXPR into a MEM_REF.
7288 2016-06-13  Martin Liska  <mliska@suse.cz>
7290         PR sanitizer/71458
7291         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
7292         w/ -fsanitize=bounds.
7294 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
7296         * config/i386/i386.c (ix86_init_builtins): Calculate
7297         FLOAT128_FTYPE_CONST_STRING function type only once.
7298         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
7299         built-in functions are available for x86-32 and x86-64 targets.
7301 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
7303         PR target/71241
7304         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
7305         New primitive type.
7306         (FLOAT128_FTYPE_CONST_STRING): New function type.
7307         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
7308         [IX86_BUILTIN_NANSQ]: Ditto.
7309         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
7310         (ix86_init_builtin_types): Declare const_string_type_node.
7311         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
7312         builtin functions.
7313         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
7314         * doc/extend.texi (x86 Built-in Functions): Document
7315         __builtin_nanq and __builtin_nansq.
7317 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
7319         PR target/71061
7320         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
7321         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
7322         length for pop patterns.
7323         (arm_attr_length_push_multi): Update comments.
7324         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
7325         attribute.
7326         (*pop_multiple_with_writeback_and_return): Likewise.
7327         (*pop_multiple_with_return): Likewise.
7329 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
7331         PR middle-end/71310
7332         * fold-const.c (optimize_bit_field_compare): Don't try to use
7333         word_mode unconditionally for reading the bit field, look at
7334         DECL_BIT_FIELD_REPRESENTATIVE instead.
7336 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
7338         PR middle-end/71478
7339         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
7340         vector integer type.
7342 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
7344         PR middle-end/71494
7345         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
7346         without LABEL_DECL, set *handled_ops_p to false instead of true.
7348 2016-06-10  Martin Sebor  <msebor@redhat.com>
7350         PR c/71392
7351         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
7352         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
7353         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
7354         them.
7355         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
7356         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
7357         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
7358         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
7359         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
7360         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
7361         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
7362         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
7364 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7366         * config/arm/arm.h (pool_vector_label,
7367         return_used_this_function): Remove.
7369 2016-06-10  Jeff Law  <law@redhat.com>
7371         PR tree-optimization/71335
7372         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
7373         zero length paths here.
7374         (convert_and_register_jump_thread_path): Remove hacks related to
7375         duplicated blocks in the jump thread path.
7376         (fsm_find_control_statement_thread_paths): Avoid putting the same
7377         block on the thread path twice, but ensure the thread path is
7378         unchanged from the caller's point of view.
7380 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
7382         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
7383         * predict.def (PRED_LOOP_BRANCH): Remove.
7385 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
7387         * Makefile.in (OBJS): Add ggc-tests.o.
7388         (GTFILES): Add ggc-tests.c.
7389         * ggc-tests.c: New file.
7390         * selftest-run-tests.c (selftest::run_tests): Call
7391         selftest::ggc_tests_c_tests.
7392         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
7394 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
7396         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
7398 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
7400         PR sanitizer/71480
7401         * varasm.c (place_block_symbol): Adjust alignment for asan protected
7402         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
7404 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
7406         * profile.c: Include cfgloop.h.
7407         (branch_prob): Compute estimated number of iterations.
7408         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
7409         recompute estimate number of iterations from profile.
7411 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7413         PR inline-asm/68843
7414         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
7415         must be grouped on top of stack.  Don't force early clobber
7416         on ordinary reg outputs.
7418 2016-06-10  Richard Biener  <rguenther@suse.de>
7420         * targhooks.c (default_builtin_vectorization_cost): Adjust
7421         vec_construct cost.
7423 2016-06-10  Richard Biener  <rguenther@suse.de>
7425         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
7426         to fold the RHS to a constant if possible.
7428 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
7430         PR middle-end/71373
7431         * tree-nested.c (convert_nonlocal_omp_clauses)
7432         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
7433         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
7434         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
7436         * gimplify.c (gimplify_adjust_omp_clauses): Discard
7437         OMP_CLAUSE_TILE.
7438         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
7440         * omp-low.c (scan_sharing_clauses): Don't expect
7441         OMP_CLAUSE__CACHE_.
7443 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
7445         PR tree-optimization/71407
7446         PR tree-optimization/71416
7447         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
7448         BIT_FIELD_REF type.
7450 2016-06-10  Richard Biener  <rguenther@suse.de>
7452         PR middle-end/71477
7453         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
7455 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
7457         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
7459 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
7460             Jiong Wang  <jiong.wang@arm.com>
7462         PR rtl-optimization/70751
7463         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
7464         spilled into memory.
7466 2016-06-09  Jonathan Yong  <10walls@gmail.com>
7468         Revert:
7469         2015-09-21  Jonathan Yong  <10walls@gmail.com>
7471         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
7472         sysroot/usr/lib/32api for additional win32 libraries,
7473         fixes failing Cygwin bootstrapping.
7475 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
7477         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
7478         Delete.
7480 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
7482         PR bootstrap/71471
7483         * pretty-print.c (pp_indent): Specify that %p is printed in a
7484         host-dependent manner.
7485         (test_pp_format): Remove the test for %p.
7487 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
7489         * config/mips/mips.c (mips_output_jump): Fix formatting.
7491 2016-06-09  Richard Biener  <rguenther@suse.de>
7493         PR tree-optimization/71462
7494         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
7495         removed blocks.
7497 2016-06-09  Martin Liska  <mliska@suse.cz>
7499         * predict.c (dump_prediction): Add new argument.
7500         (enum predictor_reason): New enum.
7501         (struct predictor_hash): New struct.
7502         (predictor_hash::hash): New function.
7503         (predictor_hash::equal): Likewise.
7504         (not_removed_prediction_p): New function.
7505         (prune_predictions_for_bb): Likewise.
7506         (combine_predictions_for_bb): Prune predictions.
7508 2016-06-09  Martin Liska  <mliska@suse.cz>
7510         * predict.c (filter_predictions): New function.
7511         (remove_predictions_associated_with_edge): Use the filter
7512         function.
7513         (equal_edge_p): New function.
7515 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
7517         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
7518         Correct usage of @samp vs @option, add @samp where appropriate.
7519         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
7520         Add armv6s-m and document it, as it is no official ARM name.
7522 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7524         * ifcvt.c (struct noce_if_info): Add transform_name field.
7525         (noce_try_move): Set if_info->transform_name to the function name.
7526         (noce_try_ifelse_collapse): Likewise.
7527         (noce_try_store_flag): Likewise.
7528         (noce_try_inverse_constants): Likewise.
7529         (noce_try_store_flag_constants): Likewise.
7530         (noce_try_addcc): Likewise.
7531         (noce_try_store_flag_mask): Likewise.
7532         (noce_try_cmove): Likewise.
7533         (noce_try_cmove_arith): Likewise.
7534         (noce_try_minmax): Likewise.
7535         (noce_try_abs): Likewise.
7536         (noce_try_sign_mask): Likewise.
7537         (noce_try_bitop): Likewise.
7538         (noce_convert_multiple_sets): Likewise.
7539         (noce_process_if_block): Print if_info->transform_name to
7540         dump_file if transformation succeeded.
7542 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7544         * config/arm/cortex-a57.md (cortex_a57_alu):
7545         Handle csel type.
7547 2016-06-08  Martin Sebor  <msebor@redhat.com>
7548             Jakub Jelinek  <jakub@redhat.com>
7550         PR c++/70507
7551         PR c/68120
7552         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
7553         BUILT_IN_MUL_OVERFLOW_P): New builtins.
7554         * builtins.c: Include gimple-fold.h.
7555         (fold_builtin_arith_overflow): Handle
7556         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
7557         (fold_builtin_3): Likewise.
7558         * doc/extend.texi (Integer Overflow Builtins): Document
7559         __builtin_{add,sub,mul}_overflow_p.
7561 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
7563         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
7564         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
7566 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
7568         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
7569         Rewrite, looking one level down for records and arrays.
7571 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
7573         * pretty-print.c: Include "selftest.h".
7574         (pp_format): Fix comment.
7575         (identifier_to_locale): Likewise.
7576         (selftest::test_basic_printing): New function.
7577         (selftest::assert_pp_format): New function.
7578         (selftest::test_pp_format): New function.
7579         (selftest::pretty_print_c_tests): New function.
7580         * selftest-run-tests.c (selftest::run_tests): Call
7581         selftest::pretty_print_c_tests.
7582         * selftest.h (pretty_print_c_tests): New declaration.
7584 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
7586         * invoke.texi (max-loop-headers-insns): Document.
7587         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
7588         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
7589         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
7591 2016-06-08  Richard Biener  <rguenther@suse.de>
7593         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
7594         on strided SLP loads and fall back to scalar loads in case
7595         we can't chunk them.
7597 2016-06-08  Richard Biener  <rguenther@suse.de>
7599         PR tree-optimization/71452
7600         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
7601         type used for the SSA rewrite has enough precision to cover
7602         the dynamic type of the location.
7604 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
7605             Richard Biener  <rguenther@suse.de>
7607         PR c++/71448
7608         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
7609         the same as DECL_P (base0) for indirect_base0.  Use equality_code
7610         in one further place.
7612 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
7614         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
7615         to one word if the field is known to overlap other words.
7616         (extract_bit_field_1): Likewise.
7617         (store_split_bit_field): Remove compensating code.
7618         (extract_split_bit_field): Likewise.
7620 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
7622         PR debug/71432
7623         PR ada/71413
7624         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
7626 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
7628         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
7629         VDQF.
7630         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
7631         (arch64_addpv4sf): Delete.
7632         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
7633         "gen_aarch64_addpv4sf".
7634         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
7635         builtin.
7636         (vpadds_f32): Likewise.
7637         (vpaddq_f32): Likewise.
7638         (vpaddq_f64): Likewise.
7640 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
7642         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
7643         VALLF.
7644         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
7645         to VALLF.  Rename to "fabd<mode>3".
7646         "*fabd_scalar<mode>3): Delete.
7647         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
7648         Use builtin.
7649         (vabdd_f64): Likewise.
7650         (vabd_f32): Likewise.
7651         (vabd_f64): Likewise.
7652         (vabdq_f32): Likewise.
7653         (vabdq_f64): Likewise.
7655 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
7657         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
7658         VALLF.
7659         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
7660         "aarch64_rsqrts<mode>".
7661         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
7662         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
7663         builtin.
7664         (vrsqrtsd_f64): Likewise.
7665         (vrsqrts_f32): Likewise.
7666         (vrsqrts_f64): Likewise.
7667         (vrsqrtsq_f32): Likewise.
7668         (vrsqrtsq_f64): Likewise.
7670 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
7672         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
7673         VALLF.
7674         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
7675         "aarch64_rsqrte<mode>".
7676         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
7677         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
7678         builtin.
7679         (vrsqrted_f64): Likewise.
7680         (vrsqrte_f32): Likewise.
7681         (vrsqrte_f64): Likewise.
7682         (vrsqrteq_f32): Likewise.
7683         (vrsqrteq_f64): Likewise.
7685 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
7687         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
7688         (ucvtf): Likewise.
7689         (fcvtzs): Likewise.
7690         (fcvtzu): Likewise.
7691         * config/aarch64/aarch64-simd.md
7692         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
7693         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
7694         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
7695         Use builtin.
7696         (vcvt_n_f32_u32): Likewise.
7697         (vcvt_n_s32_f32): Likewise.
7698         (vcvt_n_u32_f32): Likewise.
7699         (vcvtq_n_f32_s32): Likewise.
7700         (vcvtq_n_f32_u32): Likewise.
7701         (vcvtq_n_f64_s64): Likewise.
7702         (vcvtq_n_f64_u64): Likewise.
7703         (vcvtq_n_s32_f32): Likewise.
7704         (vcvtq_n_s64_f64): Likewise.
7705         (vcvtq_n_u32_f32): Likewise.
7706         (vcvtq_n_u64_f64): Likewise.
7707         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
7708         (VSDQ_SDI): Likewise.
7709         (fcvt_target): Support V4DI, V4SI and V2SI.
7710         (FCVT_TARGET): Likewise.
7712 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
7714         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
7715         (TYPES_BINOP_SUS): Likewise.
7716         (aarch64_simd_builtin_data): Update include file name.
7717         (aarch64_builtins): Likewise.
7718         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
7719         for conversion between scalar float-point and fixed-point.
7720         (ucvtf): Likewise.
7721         (fcvtzs): Likewise.
7722         (fcvtzu): Likewise.
7723         * config/aarch64/aarch64.md
7724         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
7725         pattern for conversion between scalar float to fixed-pointer.
7726         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
7727         (UNSPEC_FCVTZS): New UNSPEC enumeration.
7728         (UNSPEC_FCVTZU): Likewise.
7729         (UNSPEC_SCVTF): Likewise.
7730         (UNSPEC_UCVTF): Likewise.
7731         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
7732         Use builtin.
7733         (vcvtd_n_f64_u64): Likewise.
7734         (vcvtd_n_s64_f64): Likewise.
7735         (vcvtd_n_u64_f64): Likewise.
7736         (vcvtd_n_f32_s32): Likewise.
7737         (vcvts_n_f32_u32): Likewise.
7738         (vcvtd_n_s32_f32): Likewise.
7739         (vcvts_n_u32_f32): Likewise.
7740         * config/aarch64/iterators.md (fcvt_target): Support integer to float
7741         mapping.
7742         (FCVT_TARGET): Likewise.
7743         (FCVT_FIXED2F): New iterator.
7744         (FCVT_F2FIXED): Likewise.
7745         (fcvt_fixed_insn): New define_int_attr.
7747 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
7749         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
7750         some statements was removed.
7752 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
7754         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
7755         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
7756         (vect_can_advance_ivs_p): likewise.
7757         (vect_update_ivs_after_vectorizer): likewise.
7758         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
7759         (vect_analyze_scalar_cycles_1): likewise.
7760         (vect_analyze_loop_operations): likewise.
7761         (report_vect_op): likewise.
7762         (vect_is_slp_reduction): likewise.
7763         (vect_is_simple_reduction): likewise.
7764         (get_initial_def_for_induction): likewise.
7765         (vect_transform_loop): likewise.
7766         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
7767         (vect_recog_sad_pattern): likewise.
7768         (vect_recog_widen_sum_pattern): likewise.
7769         (vect_recog_widening_pattern): likewise.
7770         (vect_recog_divmod_pattern): likewise.
7771         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
7772         (vect_analyze_slp_instance): likewise.
7773         (vect_transform_slp_perm_load): likewise.
7774         (vect_schedule_slp_instance): likewise.
7776 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
7778         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
7779         (return_prediction): PRED_CONST_RETURN predict return as not taken.
7780         * predict.def (PRED_CONTINUE): Change hitrate 50->67
7781         (PRED_LOOP_BRANCH): Document predictor as broken.
7782         (PRED_LOOP_EXIT): Change hitrate 91->92.
7783         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
7784         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
7785         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
7786         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
7787         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
7788         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
7789         (PRED_CALL): Chane hitrate 71->67.
7790         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
7791         (PRED_GOTO): Document as unused right now.
7792         (PRED_CONST_RETURN): Change hitrate 67->69
7793         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
7794         (PRED_NULL_RETURN): Change hitrate 91->90.
7795         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
7796         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
7797         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
7799 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
7801         * config/rs6000/altivec.h: Add __builtin_vec_mul.
7802         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
7803         special case Altivec builtin.
7804         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
7805         VSX_BUILTIN_VEC_MUL (replaced with special case code).
7806         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
7807         code for ALTIVEC_BUILTIN_VEC_MUL.
7808         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
7809         for __builtin_vec_mul.
7811 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
7813         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
7814         -mno-htm.
7816 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
7818         * spellcheck.c (selftest::test_find_closest_string): New function.
7819         (spellcheck_c_tests): Call the above.
7821 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7823         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
7825 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
7827         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
7828         Yv=Yv,C alternatives.
7830 2016-06-07  Richard Biener  <rguenther@suse.de>
7832         PR c/61564
7833         * common.opt (ffast-math): Make Optimization.
7835 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
7836             Prachi Godbole  <prachi.godbole@imgtec.com>
7838         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
7839         `fabs' and `fneg' type attributes.
7840         (p5600_fpu_fabs): Add `fmove' to the comment.
7842 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
7844         * gimple.c: Include builtins.h
7845         (gimple_inexpensive_call_p): New function.
7846         * gimple.h (gimple_inexpensive_call_p): Declare.
7847         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
7848         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
7849         fix formatting.
7851 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
7853         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
7854         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
7855         warning_at_rich_loc, warning_n, pedwarn, permerror,
7856         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
7857         sorry, fatal_error, internal_error, internal_error_no_backtrace):
7858         Use the above.
7860 2016-06-07  Richard Biener  <rguenther@suse.de>
7862         PR tree-optimization/71428
7863         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
7864         BIT_FIELD_REF op vs. load.
7866 2016-06-07  Richard Biener  <rguenther@suse.de>
7868         PR middle-end/71423
7869         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
7870         for signed ops.
7872 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
7874         * config/pa/pa.md (call): Generate indirect long calls to non-local
7875         functions on TARGET_64BIT.
7876         (call_value): Likewise.
7878 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
7880         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
7881         pattern and subsequent splitters.
7882         (call_val_reg_64bit_post_reload): Likewise.
7884 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
7886         PR middle-end/71408
7887         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
7888         propagate_op_to_single_use.
7890 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
7892         PR middle-end/71281
7893         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
7895 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
7897         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
7898         (enum x86_dirflag_state): New enum.
7899         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
7900         (machine_function): Remove needs_cld.
7901         (ix86_current_function_needs_cld): Remove.
7902         * config/i386/i386.c (ix86_set_func_type): Set
7903         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
7904         (ix86_expand_prologue): Do not emit CLD here.
7905         (ix86_dirflag_mode_needed): New function.
7906         (ix86_dirflag_mode_entry): Ditto.
7907         (ix86_mode_needed): Handle X86_DIRFLAG entity.
7908         (ix86_mode_after): Ditto.
7909         (ix86_mode_entry): Ditto.
7910         (ix86_mode_exit): Ditto.
7911         (ix86_emit_mode_set): Ditto.
7912         * config/i386/i386.md (strmov_singleop): Set
7913         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
7914         Do not set ix86_current_function_needs_cld.
7915         (rep_mov): Ditto.
7916         (strset_singleop): Ditto.
7917         (rep_stos): Ditto.
7918         (cmpstrnqi_nz_1): Ditto.
7919         (cmpstrnqi_1): Ditto.
7920         (strlenqi_1): Ditto.
7922 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
7924         PR tree-optimization/71259
7925         * tree-vect-slp.c (vect_get_constant_vectors): For
7926         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
7927         one for constant op, and use COND_EXPR for non-constant.
7929 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
7931         * Makefile.in (OBJS): Add function-tests.o,
7932         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
7933         selftest-run-tests.o.
7934         (OBJS-libcommon): Add selftest.o.
7935         (OBJS-libcommon-target): Add selftest.o.
7936         (all.internal): Add "selftest".
7937         (all.cross): Likewise.
7938         (selftest): New phony target.
7939         (s-selftest): New target.
7940         (selftest-gdb): New phony target.
7941         (COLLECT2_OBJS): Add selftest.o.
7942         * bitmap.c: Include "selftest.h".
7943         (selftest::test_gc_alloc): New function.
7944         (selftest::test_set_range): New function.
7945         (selftest::test_clear_bit_in_middle): New function.
7946         (selftest::test_copying): New function.
7947         (selftest::test_bitmap_single_bit_set_p): New function.
7948         (selftest::bitmap_c_tests): New function.
7949         * common.opt (fself-test): New.
7950         * diagnostic-show-locus.c: Include "selftest.h".
7951         (make_range): New function.
7952         (test_range_contains_point_for_single_point): New function.
7953         (test_range_contains_point_for_single_line): New function.
7954         (test_range_contains_point_for_multiple_lines): New function.
7955         (assert_eq): New function.
7956         (test_get_line_width_without_trailing_whitespace): New function.
7957         (selftest::diagnostic_show_locus_c_tests): New function.
7958         * et-forest.c: Include "selftest.h".
7959         (selftest::test_single_node): New function.
7960         (selftest::test_simple_tree): New function.
7961         (selftest::test_disconnected_nodes): New function.
7962         (selftest::et_forest_c_tests): New function.
7963         * fold-const.c: Include "selftest.h".
7964         (selftest::assert_binop_folds_to_const): New function.
7965         (selftest::assert_binop_folds_to_nonlvalue): New function.
7966         (selftest::test_arithmetic_folding): New function.
7967         (selftest::fold_const_c_tests): New function.
7968         * function-tests.c: New file.
7969         * gimple.c: Include "selftest.h".
7970         Include "gimple-pretty-print.h".
7971         (selftest::verify_gimple_pp): New function.
7972         (selftest::test_assign_single): New function.
7973         (selftest::test_assign_binop): New function.
7974         (selftest::test_nop_stmt): New function.
7975         (selftest::test_return_stmt): New function.
7976         (selftest::test_return_without_value): New function.
7977         (selftest::gimple_c_tests): New function.
7978         * hash-map-tests.c: New file.
7979         * hash-set-tests.c: New file.
7980         * input.c: Include "selftest.h".
7981         (selftest::assert_loceq): New function.
7982         (selftest::test_accessing_ordinary_linemaps): New function.
7983         (selftest::test_unknown_location): New function.
7984         (selftest::test_builtins): New function.
7985         (selftest::test_reading_source_line): New function.
7986         (selftest::input_c_tests): New function.
7987         * rtl-tests.c: New file.
7988         * selftest-run-tests.c: New file.
7989         * selftest.c: New file.
7990         * selftest.h: New file.
7991         * spellcheck.c: Include "selftest.h".
7992         (selftest::levenshtein_distance_unit_test_oneway): New function,
7993         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
7994         (selftest::levenshtein_distance_unit_test): Likewise.
7995         (selftest::spellcheck_c_tests): Likewise.
7996         * toplev.c: Include selftest.h.
7997         (toplev::run_self_tests): New.
7998         (toplev::main): Handle -fself-test.
7999         * toplev.h (toplev::run_self_tests): New.
8000         * tree.c: Include "selftest.h".
8001         (selftest::test_integer_constants): New function.
8002         (selftest::test_identifiers): New function.
8003         (selftest::test_labels): New function.
8004         (selftest::tree_c_tests): New function.
8005         * tree-cfg.c: Include "selftest.h".
8006         (selftest::push_fndecl): New function.
8007         (selftest::test_linear_chain): New function.
8008         (selftest::test_diamond): New function.
8009         (selftest::test_fully_connected): New function.
8010         (selftest::tree_cfg_c_tests): New function.
8011         * vec.c: Include "selftest.h".
8012         (selftest::safe_push_range): New function.
8013         (selftest::test_quick_push): New function.
8014         (selftest::test_safe_push): New function.
8015         (selftest::test_truncate): New function.
8016         (selftest::test_safe_grow_cleared): New function.
8017         (selftest::test_pop): New function.
8018         (selftest::test_safe_insert): New function.
8019         (selftest::test_ordered_remove): New function.
8020         (selftest::test_unordered_remove): New function.
8021         (selftest::test_block_remove): New function.
8022         (selftest::reverse_cmp): New function.
8023         (selftest::test_qsort): New function.
8024         (selftest::vec_c_tests): New function.c.
8025         * wide-int.cc: Include selftest.h and wide-int-print.h.
8026         (selftest::from_int <wide_int>): New function.
8027         (selftest::from_int <offset_int>): New function.
8028         (selftest::from_int <widest_int>): New function.
8029         (selftest::assert_deceq): New function.
8030         (selftest::assert_hexeq): New function.
8031         (selftest::test_printing <VALUE_TYPE>): New function template.
8032         (selftest::test_ops <VALUE_TYPE>): New function template.
8033         (selftest::test_comparisons <VALUE_TYPE>): New function template.
8034         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
8035         template.
8036         (selftest::wide_int_cc_tests): New function.
8038 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8040         PR middle-end/37780
8041         * ifcvt.c (noce_try_ifelse_collapse): New function.
8042         Declare prototype.
8043         (noce_process_if_block): Call noce_try_ifelse_collapse.
8044         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
8045         (simplify_ternary_operation): Use the above to simplify
8046         conditional CLZ/CTZ expressions.
8048 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8050         PR middle-end/37780
8051         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
8052         define_insn_and_split.
8054 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8056         PR middle-end/37780
8057         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
8059 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8061         PR c/24414
8062         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
8063         Implicitly clobber memory for basic asm with non-empty assembler
8064         string.  Use targetm.md_asm_adjust also here.
8065         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
8066         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
8067         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
8068         non-empty assembler string.
8069         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
8070         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
8071         (decode_asm_operands): Handle basic asm in PARALLEL block.
8072         (extract_insn): Handle basic asm in PARALLEL block.
8073         * doc/extend.texi: Mention new behavior of basic asm.
8074         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
8075         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
8076         branch_needs_nop_p): Use asm_noperands.
8078 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
8080         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
8081         Include the M7 SPARC DFA scheduler.
8082         New attribute v3pipe.
8083         Annotate insns with v3pipe where appropriate.
8084         Define cpu_feature vis4.
8085         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
8086         Add (V8QI "8") to vbits.
8087         Add insns {add,sub}v8qi3
8088         Add insns ss{add,sub}v8qi3
8089         Add insns us{add,sub}{v8qi,v4hi}3
8090         Add insns {min,max}{v8qi,v4hi,v2si}3
8091         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
8092         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
8093         * config/sparc/niagara4.md: Add a comment explaining the
8094         discrepancy between the documented latenty numbers and the
8095         implemented ones.
8096         * config/sparc/niagara7.md: New file.
8097         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
8098         supports SPARC5 and VIS 4.0 instructions.
8099         * configure: Regenerate.
8100         * config.in: Likewise.
8101         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
8102         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
8103         TARGET_CPU_niagara7.
8104         (ASM_CPU64_DEFAULT_SPEC): Likewise.
8105         (CPP_CPU_SPEC): Handle niagara7.
8106         (ASM_CPU_SPEC): Likewise.
8107         * config/sparc/sparc-opts.h (processor_type): Add
8108         PROCESSOR_NIAGARA7.
8109         (mvis4): New option.
8110         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
8111         (AS_NIAGARA7_FLAG): Define.
8112         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
8113         (CPP_CPU64_DEFAULT_SPEC): Likewise.
8114         (CPP_CPU_SPEC): Handle niagara7.
8115         (ASM_CPU_SPEC): Likewise.
8116         * config/sparc/sparc.c (niagara7_costs): Define.
8117         (sparc_option_override): Handle niagara7 and adjust cache-related
8118         parameters with better values for niagara cpus.  Also support VIS4.
8119         (sparc32_initialize_trampoline): Likewise.
8120         (sparc_use_sched_lookahead): Likewise.
8121         (sparc_issue_rate): Likewise.
8122         (sparc_register_move_cost): Likewise.
8123         (dump_target_flag_bits): Support VIS4.
8124         (sparc_vis_init_builtins): Likewise.
8125         (sparc_builtins): Likewise.
8126         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
8127         VIS4 4.0.
8128         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
8129         UltraSparc M7.
8130         * config/sparc/sparc.opt (sparc_processor_type): New value
8131         niagara7.
8132         * config/sparc/visintrin.h (__attribute__): Prototypes for the
8133         VIS4 builtins.
8134         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
8135         -mvis4.
8136         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
8137         VIS4 builtins.
8139 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
8141         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
8143 2016-06-06  Richard Biener  <rguenther@suse.de>
8145         PR tree-optimization/71398
8146         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
8147         remove edges.
8149 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
8151         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
8152         ft32_expand_prolog, ft32_expand_epilogue):
8153         Handle pretend_args.
8154         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
8155         * config/ft32/ft32.md: Add pretend_returner.
8157 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
8159         PR target/71389
8160         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
8161         Copy op1 RTX to avoid invalid sharing.
8162         (ix86_expand_vector_move_misalign): Ditto.
8164 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
8166         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
8167         ATTRIBUTE_UNUSED.
8169 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
8171         * predict.c (predicted_by_loop_heuristics_p): New function.
8172         (predict_iv_comparison): Use it.
8173         (predict_loops): Walk from innermost loops; do not predict edges
8174         leaving multiple loops multiple times; implement
8175         PRED_LOOP_ITERATIONS_MAX heuristics.
8176         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
8178 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
8180         * cfg.c (check_bb_profile): Do not report mismatched profiles when
8181         only edges out of BB are EH edges.
8183 2016-06-04  Martin Sebor  <msebor@redhat.com>
8184             Marcin Baczyński  <marbacz@gmail.com>
8186         PR c/48116
8187         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
8188         a void expression in a void function.
8190 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
8192         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
8193         aux; dump reasons of decisions.
8194         (should_duplicate_loop_header_p): Likewise.
8195         (do_while_loop_p): Likewise.
8196         (ch_base::copy_headers): Dump asi num insns duplicated.
8198 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
8200         PR tree-optimization/71405
8201         * tree-ssa.c (execute_update_addresses_taken): For clobber with
8202         incompatible type, build a new clobber with the right type instead
8203         of building a VIEW_CONVERT_EXPR around it.
8205 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
8207         PR tree-optimization/52171
8208         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
8209         by_pieces_ninsns instead of move_by_pieces_ninsns.
8211 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
8213         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
8214         for reg+reg addressing mode.
8216 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8218         * rs6000-c.c (c/c-tree.h): Add #include.
8219         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
8220         in C++ when found in the base position of vec_ld or vec_st.
8222 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
8224         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
8225         use of profile unless profile status is PROFILE_READ.
8226         * profile.c (compute_branch_probabilities): Set profile status
8227         only after reporting predictor hitrates.
8229 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
8231         PR target/71276
8232         PR target/71277
8233         * common.opt (ffp-int-builtin-inexact): New option.
8234         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
8235         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
8236         (ceil@var{m}2): Document dependence on this option.
8237         * ipa-inline-transform.c (inline_call): Handle
8238         flag_fp_int_builtin_inexact.
8239         * ipa-inline.c (can_inline_edge_p): Likewise.
8240         * config/i386/i386.md (rintxf2): Do not test
8241         flag_unsafe_math_optimizations.
8242         (rint<mode>2_frndint): New define_insn.
8243         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
8244         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
8245         for 387 instead of extending and truncating.
8246         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
8247         !flag_trapping_math instead of flag_unsafe_math_optimizations.
8248         Change to frndint<mode>2_<rounding>.
8249         (frndintxf2_<rounding>_i387): Likewise.  Change to
8250         frndint<mode>2_<rounding>_i387.
8251         (<rounding_insn>xf2): Likewise.
8252         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
8253         !flag_trapping_math instead of flag_unsafe_math_optimizations for
8254         x87.  Test TARGET_ROUND || !flag_trapping_math ||
8255         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
8256         SSE.  Use ROUND_NO_EXC in constant operand of
8257         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
8258         for 387 instead of extending and truncating.
8260 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
8261             Julia Koval  <julia.koval@intel.com>
8263         PR target/66960
8264         PR target/67630
8265         PR target/67634
8266         PR target/67841
8267         PR target/68037
8268         PR target/68618
8269         PR target/68661
8270         PR target/69575
8271         PR target/69596
8272         PR target/69734
8273         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
8274         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
8275         all registers, except for function return registers if there are
8276         no caller-saved registers.
8277         (ix86_set_func_type): New function.
8278         (ix86_set_current_function): Call ix86_set_func_type to set
8279         no_caller_saved_registers and func_type.  Call reinit_regs if
8280         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
8281         nor x87 instructions in interrupt handler nor function with
8282         no_caller_saved_registers attribute.
8283         (ix86_function_ok_for_sibcall): Return false if there are no
8284         caller-saved registers.
8285         (type_natural_mode): Don't warn ABI change for MMX in interrupt
8286         handler.
8287         (ix86_function_arg_advance): Skip for callee in interrupt handler.
8288         (ix86_function_arg): Return special arguments in interrupt handler.
8289         (ix86_promote_function_mode): Promote pointer to word_mode only
8290         for normal functions.
8291         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
8292         interrupt handler.
8293         (ix86_epilogue_uses): New function.
8294         (ix86_hard_regno_scratch_ok): Likewise.
8295         (ix86_save_reg): Preserve all registers in interrupt handler
8296         after reload.  Preserve all registers, except for function return
8297         registers, if there are no caller-saved registers after reload.
8298         (find_drap_reg): Always use callee-saved register if there are
8299         no caller-saved registers.
8300         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
8301         for interrupt handler.
8302         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
8303         Emit cld instruction if stringops are used in interrupt handler
8304         or interrupt handler isn't a leaf function.
8305         (ix86_expand_epilogue): Generate interrupt return for interrupt
8306         handler and pop the 'ERROR_CODE' off the stack before interrupt
8307         return in exception handler.
8308         (ix86_expand_call): Disallow calling interrupt handler directly.
8309         If there are no caller-saved registers, mark all registers that
8310         are clobbered by the call which returns as clobbered.
8311         (ix86_handle_no_caller_saved_registers_attribute): New function.
8312         (ix86_handle_interrupt_attribute): Likewise.
8313         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
8314         attributes.
8315         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
8316         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
8317         accumulation in interrupt function if stack may be realigned to
8318         avoid DRAP.
8319         (EPILOGUE_USES): New.
8320         (function_type): New enum.
8321         (machine_function): Add func_type and no_caller_saved_registers.
8322         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
8323         (interrupt_return): New pattern.
8324         * doc/extend.texi: Document x86 interrupt and
8325         no_caller_saved_registers attributes.
8327 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
8329         PR tree-optimization/52171
8330         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
8331         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
8332         Look for constant strings.  Move some code to emit_block_cmp_hints
8333         and use it.
8334         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
8335         * defaults.h (COMPARE_MAX_PIECES): New macro.
8336         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
8337         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
8338         (clear_by_pieces_1): Don't declare.  Move definition before use.
8339         (can_do_by_pieces): New static function.
8340         (can_move_by_pieces): Use it.  Return bool.
8341         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
8342         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
8343         (class pieces_addr); New.
8344         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
8345         pieces_addr::adjust, pieces_addr::increment_address,
8346         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
8347         functions for it.
8348         (class op_by_pieces_d): New.
8349         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
8350         functions for it.
8351         (class move_by_pieces_d, class compare_by_pieces_d,
8352         class store_by_pieces_d): New subclasses of op_by_pieces_d.
8353         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
8354         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
8355         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
8356         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
8357         compare_by_pieces_d::finish_mode): New member functions.
8358         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
8359         functions.
8360         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
8361         (emit_block_cmp_hints): New function.
8362         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
8363         use the newly defined classes.
8364         * expr.h (by_pieces_constfn): New typedef.
8365         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
8366         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
8367         (move_by_pieces_ninsns): Don't declare.
8368         (can_move_by_pieces): Change return value to bool.
8369         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
8370         (compare_by_pieces_branch_ratio): New hook.
8371         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
8372         (by_pieces_ninsns): Declare.
8373         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
8374         COMPARE_BY_PIECES.
8375         (default_compare_by_pieces_branch_ratio): New function.
8376         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
8377         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
8378         * doc/tm.texi: Regenerate.
8379         * tree-ssa-strlen.c: Include "builtins.h".
8380         (handle_builtin_memcmp): New static function.
8381         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
8382         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
8384 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
8386         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
8387         relevant stmts which are simple and invariant.
8388         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
8389         instead of simple and invariant
8391 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
8393         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
8394         (vectorizable_reduction): Check for new relevant state.
8395         (vectorizable_live_operation): vectorize live stmts using
8396         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
8397         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
8398         (vect_stmt_relevant_p): Check for stmts which are only used live.
8399         (process_use): Use of a stmt does not inherit it's live value.
8400         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
8401         (vect_analyze_stmt): Check for new relevant state.
8402         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
8403         outside the loop, but not inside it.
8405 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
8407         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
8408         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
8409         (vect_get_vec_def_for_operand): Split out code.
8411 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
8413         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
8415 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
8417         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
8419 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8421         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
8423 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
8425         PR middle-end/71387
8426         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
8427         to noreturn e->callee->decl that has void return type and void
8428         arguments, adjust gimple_call_fntype and remove lhs even if it had
8429         previously addressable type.
8431 2016-06-02  Jeff Law  <law@redhat.com>
8433         PR tree-optimization/71328
8434         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
8435         error when checking for a jump back onto the copied path.
8437 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
8439         * config/microblaze/microblaze.c (get_branch_target): Add return
8440         NULL_RTX for the non-CALL_P case.
8441         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
8442         (insert_wic): Remove unused local "j".
8444 2016-06-02  Martin Liska  <mliska@suse.cz>
8446         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
8448 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
8449             Julia Koval  <julia.koval@intel.com>
8451         * function.c (assign_parm_setup_stack): Force source into a
8452         register if needed.
8453         * target.def (function_incoming_arg): Update documentation to
8454         allow arbitrary address computation based on hard register.
8455         * doc/tm.texi: Regenerated.
8457 2016-06-02  Martin Liska  <mliska@suse.cz>
8459         * predict.c (combine_predictions_for_bb): Fix first match in
8460         cases where a first predictor contains more than one occurence
8461         in list of predictors.  Take the best value in such case.
8463 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8465         PR rtl-optimization/71295
8466         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
8467         offset would go over the size of the inner mode reject it.
8469 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
8471         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
8472         x=x,x and v=v,m instead of x=x,m.
8474         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
8475         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
8476         alternative to v=rm,C.
8478         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
8479         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
8480         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
8481         instead of vex for the last two above mentioned alternatives.
8483 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8485         PR target/70830
8486         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
8488 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
8490         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
8492 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
8494         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
8495         from int to unsigned.
8497 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
8499         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
8500         alternatives, eliminating preferred register class.  Add support
8501         for the MTVSRDD instruction in ISA 3.0.
8502         (vsx_splat_v4si_internal): Use splat_input_operand instead of
8503         reg_or_indexed_operand.
8504         (vsx_splat_v4sf_internal): Likewise.
8506 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
8508         PR target/71186
8509         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
8510         for loading up all 0's or all 1's.
8512 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8514         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
8516 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
8518         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
8519         extension.
8520         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
8521         * gcc.c (set_source_date_epoch_envvar): New function, sets
8522         the SOURCE_DATE_EPOCH environment variable to the current time.
8524 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
8526         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
8527         the factor for live Phi nodes.
8529 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
8531         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
8532         * tree-parloops.c (parallelize_loops): likewise.
8533         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
8534         tree_unswitch_outer_loop): likewise.
8536 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
8538         PR middle-end/71371
8539         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
8540         around creation of the temporary.
8542 2016-06-01  Richard Biener  <rguenther@suse.de>
8544         PR tree-optimization/71366
8545         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
8546         (unloop_loops): Move removing edges here ...
8547         (try_unroll_loop_completely): ... from here.
8548         (try_peel_loop): ... and here.
8549         (tree_unroll_loops_completely_1): Track parent loops via
8550         bitmap of header BBs.
8551         (tree_unroll_loops_completely): Adjust for that.
8553 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8555         * config/rs6000/altivec.h (vec_slv): New macro.
8556         (vec_srv): New macro.
8557         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
8558         (UNSPEC_VSRV): New value.
8559         (vslv): New insn.
8560         (vsrv): New insn.
8561         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
8562         (vsrv): New builtin definition.
8563         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
8564         define argument types for new builtin.
8565         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
8566         new builtin.
8567         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
8568         functions.
8570 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
8571             Jocelyn Mayer  <l_indien@magic.fr>
8573         PR target/67310
8574         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
8575         detect processor family for signature_CENTAUR_ebx.
8576         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
8577         signature_CENTAUR_ebx.
8578         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
8579         <default>: Pass x86-64 for has_longmode.
8581 2016-06-01  Nathan Sidwell  <nathan@acm.org>
8583         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
8584         undefined weak.
8586 2016-06-01  Richard Biener  <rguenther@suse.de>
8588         PR tree-optimization/71261
8589         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
8590         of stmts successfully put in the bool pattern.  Remove
8591         single-use restriction.
8592         (adjust_bool_pattern_cast): Add cast at the use site via the
8593         pattern def sequence.
8594         (adjust_bool_pattern): Remove recursion, maintain a hash-map
8595         of patterned defs.  Use the pattern def seqence instead of
8596         multiple independent patterns.
8597         (sort_after_uid): New qsort compare function.
8598         (adjust_bool_stmts): New function to process stmts in the bool
8599         pattern in IL order.
8600         (vect_recog_bool_pattern): Adjust.
8601         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
8602         (ifcvt_walk_pattern_tree): Likewise.
8603         (stmt_is_root_of_bool_pattern): Likewise.
8604         (ifcvt_repair_bool_pattern): Likewise.
8605         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
8607 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
8609         * loop-unroll.c (decide_unroll_constant_iterations,
8610         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
8611         likely upper bounds.
8612         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
8614 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
8616         * tree-core.h (enum omp_clause_code): Remove
8617         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
8619 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8621         * config/arm/sync.md (arm_store_exclusive<mode>):
8622         Use 'H' output modifier on operands[2] rather than creating a new
8623         entry in out-of-bounds memory of the operands array.
8624         (arm_store_release_exclusivedi): Likewise.
8626 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8628         * config/arm/arm.c (arm_fusion_enabled_p): New function.
8629         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
8630         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
8631         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
8633 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
8635         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
8636         into account live statements for mask producers.
8638 2016-06-01  Richard Biener  <rguenther@suse.de>
8640         PR tree-optimization/71311
8641         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
8642         restrict to non-INTEGER_CST @0.
8644 2016-06-01  Richard Biener  <rguenther@suse.de>
8646         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
8647         (relational patterns): Use :c to avoid pattern duplications.
8649 2016-06-01  Richard Biener  <rguenther@suse.de>
8651         * genmatch.c (comparison_code_p): New predicate.
8652         (swap_tree_comparison): New function.
8653         (commutate): Add for_vec parameter to append new for entries.
8654         Support commutating relational operators by swapping it alongside
8655         operands.
8656         (lower_commutative): Adjust.
8657         (dt_simplify::gen): Do not pass artificial operators to gen
8658         functions.
8659         (decision_tree::gen): Do not add artificial operators as parameters.
8660         (parser::parse_expr): Verify operator commutativity when :c is
8661         applied.  Allow :C to override this.
8662         * match.pd: Adjust patterns to use :C instead of :c where required.
8664 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
8666         PR tree-optimization/71077
8667         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
8668         the combining step, use boolean_false_node and boolean_true_node
8669         as the designated false/true return values.
8671 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
8673         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
8674         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
8675         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
8676         PRED_LOOP_EXIT.
8678 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
8680         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
8681         of flags impliying the register renaming.
8682         * toplev.c (process_options): Do not imply flag_rename_registers with
8683         loop peeling.
8685 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
8687         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
8688         default implementation.
8690 2016-05-31  Nathan Sidwell  <nathan@acm.org>
8692         * dwarf2out.c (cur_line_info_table): Add GTY marker.
8694 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
8696         * config/sh/constraints.md (b): Remove constraint.
8697         * config/sh/predicates.md (arith_reg_operand): Remove
8698         TARGET_REGISTER_P.
8699         * config/sh/sh-modes.def (PDI): Remove.
8700         * config/sh/sh.c (sh_target_reg_class,
8701         sh_optimize_target_register_callee_saved): Remove functions.
8702         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
8703         (sh_expand_epilogue): Update comment.
8704         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
8705         sh_secondary_reload): Remove TARGET_REGS related code.
8706         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
8707         TARGET_REGISTER_P): Remove macros.
8708         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
8709         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
8710         TR1_REG, TR2_REG): Remove constants.
8711         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
8713 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
8715         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
8716         define_expand patterns.
8717         (adddi3_compact): Rename to adddi3.
8718         (subdi3_compact): Rename to subdi3.
8719         (*negdi2): Rename to negdi2.
8720         (*abs<mode>2): Rename to abs<mode>2.
8722 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
8724         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
8725         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
8726         (atomic_sub_fetchsi): ... this new pattern.
8727         (mvtc): Add CC_REG clobber.
8729 2016-05-31  Marek Polacek  <polacek@redhat.com>
8731         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
8733 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8735         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
8736         aarch64_fusion_enabled_p to check for fusion capabilities.
8738 2016-05-31  Richard Biener  <rguenther@suse.de>
8740         PR tree-optimization/71352
8741         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
8742         minus one and a negate.
8744 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8746         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
8747         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
8748         Delete prototype.
8749         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
8750         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
8751         Remove use of aarch64_simd_attr_length_move, set length attribute
8752         directly.
8753         (*aarch64_be_movoi): Likewise.
8754         (*aarch64_be_movci): Likewise.
8755         (*aarch64_be_movxi): Likewise.
8757 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
8759         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
8760         It no longer does that.
8761         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
8763 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
8765         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
8766         attribute __unused__.
8768 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8770         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
8771         * config/arm/arm.c (arm_arch_thumb1): Define.
8772         (arm_option_override): Initialize arm_arch_thumb1.
8773         * config/arm/arm.h (arm_arch_thumb1): Declare.
8774         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
8775         support Thumb-1 ISA.
8777 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
8779         PR target/71346
8780         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
8781         `Yv' for scalar operand.
8783 2016-05-31  Tom de Vries  <tom@codesourcery.com>
8785         PR tree-optimization/69068
8786         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
8787         phis with more than two args.
8789 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
8791         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
8792         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
8793         target.
8795 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
8797         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
8798         tune_64.
8799         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
8800         support on SPARC.
8801         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
8802         cpu_32, cpu_64, tune_32 and tune_64.
8803         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
8805 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
8807         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
8809 2016-05-30  Andi Kleen  <ak@linux.intel.com>
8811         * auto-profile.c (read_profile): Replace asserts with errors
8812         when file does not exist.
8813         * gcov-io.c (gcov_read_words): Dito.
8815 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
8817         * tree-cfg.c (print_loop): Print likely upper bounds.
8819 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
8821         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
8822         * opts.c (default_options): Enable peel loops at -O3.
8823         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
8824         (try_peel_loop): Do not re-peel already peeled loops;
8825         use likely upper bounds; fix profile updating.
8826         (pass_complete_unroll::execute): Initialize peeled_loops.
8828 2016-05-30  Martin Liska  <mliska@suse.cz>
8830         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
8831         computed costs by frequency of BB they belong to.
8832         (get_scaled_computation_cost_at): New function.
8834 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
8835             Marc Glisse  <marc.glisse@inria.fr>
8837         PR tree-optimization/71289
8838         * match.pd (-1 / B < A, A > -1 / B): New transformations.
8840 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
8842         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
8844 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
8846         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
8847         for peeled copies; avoid underflow when updating estimates; correctly
8848         scale loop profile.
8850 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
8852         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
8853         r236875. Corrected oe3 to oe2 as obvious.
8855 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
8857         PR middle-end/71269
8858         PR middle-end/71252
8859         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
8860         that inserted stmt will not dominate stmts that defines its operand.
8861         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
8862         (rewrite_expr_tree_parallel): Likewise.
8864 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
8866         PR middle-end/71252
8867         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
8868         all fields including stmt_to_insert are swapped.
8870 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
8872         * predict.h (force_edge_cold): Declare.
8873         * predict.c (force_edge_cold): New function.
8874         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
8875         updating.
8876         (canonicalize_loop_induction_variables): Fix formating.
8878 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
8880         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
8881         (visium_expand_copysign): Use gen_int_mode directly.
8882         (visium_compute_frame_size): Minor tweaks.
8884 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
8886         * tree-vect-loop.c (vect_analyze_loop_2): Use
8887         likely_max_stmt_executions_int.
8889 2016-05-30  Tom de Vries  <tom@codesourcery.com>
8891         PR tree-optimization/69067
8892         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
8894 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
8896         PR target/71245
8897         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
8898         New peepholes to remove unneeded fild/fistp pairs.
8899         (define_peephole2 atomic_loaddi_fpu): Ditto.
8901 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8903         * predict.c (maybe_hot_frequency_p): Avoid division.
8905 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
8907         * doc/install.texi: Use https for shop.fsf.org.
8909 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8911         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
8912         likely_max_stmt_executions_int.
8914 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8916         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
8917         likely_max_stmt_executions_int.
8919 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8921         * profile.c (compute_branch_probabilities): Do not report hitrates
8922         here.
8923         (branch_prob): Report hitrates here.
8924         * predict.c (gimple_predict_edge): Do not assert profile status;
8925         fix formatting issues.
8927 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8929         * predict.c (edge_predicted_by_p): New function.
8930         (predict_paths_for_bb): Do not put multiple predictions of the same type
8931         on one edge.
8933 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
8935         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
8936         commit.
8938 2016-05-28  Alan Modra  <amodra@gmail.com>
8940         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
8942 2016-05-28  Alan Modra  <amodra@gmail.com>
8944         PR rtl-optimization/71275
8945         * ira.c (ira): Free dominance info.
8947 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
8949         * doc/sourcebuild.texi: New address for upstream Go repository.
8951 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8953         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
8954         (TARGET_ARM_V7M): Likewise.
8956 2016-05-26  Jeff Law  <law@redhat.com>
8958         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
8959         (thread_across_edge): Remove calls to find_jump_threads_backwards.
8960         * passes.def: Add jump threading passes before DOM/VRP.
8961         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
8962         argument to a basic block from an edge.  Remove tests which are
8963         handled elsewhere.
8964         (pass_data_thread_jumps, class pass_thread_jumps): New.
8965         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
8966         (make_pass_thread_jumps): Likewise.
8967         * tree-pass.h (make_pass_thread_jumps): Declare.
8969 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
8971         * config/visium/visium-protos.h (split_double_move): Rename into...
8972         (visium_split_double_move): ...this.
8973         (visium_split_double_add): Declare.
8974         * config/visium/visium.c (split_double_move): Rename into...
8975         (visium_split_double_move): ...this.
8976         (visium_split_double_add): New function.
8977         (visium_expand_copysign): Renumber operands for consistency.
8978         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
8979         (DFmode move splitter): Likewise.
8980         (*addi3_insn): Split by means of visium_split_double_add.
8981         (*adddi3_insn_flags): Delete.
8982         (*plus_plus_sltu<subst_arith>): New insn.
8983         (*subdi3_insn): Split by means of visium_split_double_add.
8984         (subdi3_insn_flags): Delete.
8985         (*minus_minus_sltu<subst_arith>): New insn.
8986         (*negdi2_insn): Split by means of visium_split_double_add.
8987         (*negdi2_insn_flags): Delete.
8989 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
8991         * configure.ac: Treat a --with-headers option without argument
8992         the same as the default (i.e. consult sys-include directory).
8993         * configure: Regenerate.
8995 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8997         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
8998         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
8999         prototype.
9000         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
9001         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
9003 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
9005         PR target/63596
9006         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
9007         tree-stdarg analysis results.
9008         (aarch64_setup_incoming_varargs): Likewise.
9010 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
9012         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
9013         va_list_gpr_counter_field and va_list_fpr_counter_field.
9015 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
9017         PR67609
9018         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
9019         * config/aarch64/aarch64.c
9020         (aarch64_cannot_change_mode_class): Remove function.
9021         * config/aarch64/aarch64-protos.h
9022         (aarch64_cannot_change_mode_class): Remove.
9024 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
9026         * cfgloop.c (record_niter_bound): Record likely upper bounds.
9027         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
9028         get_likely_max_loop_iterations_int): New.
9029         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
9030         any_likely_upper_bound.
9031         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
9032         Declare.
9033         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
9034         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
9035         upper bound.
9036         (unroll_loop_constant_iterations): Likewise.
9037         (unroll_loop_runtime_iterations): Likewise.
9038         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
9039         * lto-streamer-out.c (output_cfg): Likewise.
9040         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
9041         bounds.
9042         (canonicalize_loop_induction_variables): Dump likely upper bounds.
9043         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
9044         (likely_max_loop_iterations): New.
9045         (likely_max_loop_iterations_int): New.
9046         (likely_max_stmt_executions): New.
9047         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
9048         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
9049         likely_max_stmt_executions): Declare.
9051 2016-05-27  Marek Polacek  <polacek@redhat.com>
9053         PR middle-end/71308
9054         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
9056 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9058         * config/s390/s390.md (2x risbg splitters): Use
9059         reg_overlap_mentioned_p instead of rtx_equal_p.
9061 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9063         * combine.c (make_compound_operation): Take known zero bits into
9064         account when checking for possible zero_extend.
9066 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9068         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
9069         Use const_int_operand for operand 2 predicate.  Simplify expand code
9070         as a result.
9072 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
9074         PR middle-end/71279
9075         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
9076         into comparison.
9078 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9080         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
9081         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
9082         that returns CC_SESWPmode and CC_ZESWPmode.
9083         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
9084         and CC_SESWPmode.
9085         (aarch64_rtx_costs): Likewise.
9087 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
9089         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
9090         for ISA 3.0 min/max support.
9091         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
9092         conditional move support.
9093         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
9094         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
9095         available.
9096         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
9097         conditional moves where the comparison type is different from move
9098         type.
9099         (fp_minmax): New code iterator for smin/smax.
9100         (minmax): New code attributes for min/max.
9101         (SMINMAX): Likewise.
9102         (smax<mode>3): Combine min, max insns into one insn using the
9103         fp_minmax code iterator.  Add support for ISA 3.0 min/max
9104         instructions that don't need -ffast-math.
9105         (s<minmax><mode>3): Likewise.
9106         (smax<mode>3_vsx): Likewise.
9107         (smin<mode>3): Likewise.
9108         (s<minmax><mode>3_vsx): Likewise.
9109         (smin<mode>3_vsx): Likewise.
9110         (pre-VSX min/max splitters): Likewise.
9111         (s<minmax><mode>3_fpr): Likewise.
9112         (movsfcc): Rewrite floating point conditional moves to combine
9113         SFmode/DFmode into a single insn.
9114         (mov<mode>cc): Likewise.
9115         (movdfcc): Likewise.
9116         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
9117         SFDF2 iterators to handle all combinations.
9118         (fseldfsf4): Likewise.
9119         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
9120         (fseldfdf4): Likewise.
9121         (fselsfdf4): Likewise.
9122         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
9123         comparison instructions that set a 0/-1 mask, and use it for
9124         floating point conditional move via XXSEL.
9125         (fpmask<mode>): Likewise.
9126         (xxsel<mode>): Likewise.
9127         * config/rs6000/predicates.md (min_max_operator): Delete, no
9128         longer used.
9129         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
9130         instructions that generate a 0/-1 mask for use with XXSEL.
9131         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
9132         say whether floating point min/max is available, either through
9133         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
9134         (TARGET_MINMAX_DF): Likewise.
9136 2016-05-27  Alan Modra  <amodra@gmail.com>
9138         PR rtl-optimization/71275
9139         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
9140         for update_equiv_regs and combine_and_move_insns.
9142 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
9144         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
9145         if_then_else or cond RTXes to calculate attribute value.
9146         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
9147         <attr "length_immediate>: Ditto.
9148         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
9149         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
9150         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
9151         <attr "type">: Ditto.
9152         <attr "prefix_data16">: Ditto.
9153         <attr "prefix_extra">: Ditto.
9154         <attr "length_immediate">: Ditto.
9155         <attr "prefix">: Ditto.
9156         (vec_set<mode>_0) <attr "isa">: Ditto.
9157         <attr "prefix_extra">: Ditto.
9158         <attr "length_immediate">: Ditto.
9159         <attr "prefix">: Ditto.
9160         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
9161         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
9162         (sse2_storelpd) <attr "prefix_data16">: Ditto.
9163         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
9164         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
9165         <attr "length_immediate">: Ditto.
9166         <attr "prefix">: Ditto.
9167         (sse2_movsd) <attr "length_immediate">: Ditto.
9168         <attr "prefix">: Ditto.
9169         (vec_concatv2df)  <attr "isa">: Ditto.
9170         <attr "prefix">: Ditto.
9171         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
9172         (*vec_extractv2di_1) <attr "isa">: Ditto.
9173         <attr "type">: Ditto.
9174         <attr "length_immediate">: Ditto.
9175         <attr "prefix_rex">: Ditto.
9176         <attr "prefix_extra">: Ditto.
9177         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
9178         <attr "prefix_extra">: Ditto.
9179         <attr "length_immediate">: Ditto.
9180         (vec_concatv2di) <attr "isa">: Ditto.
9181         <attr "prefix_extra">: Ditto.
9182         <attr "length_immediate">: Ditto.
9183         <attr "prefix">: Ditto.
9185 2016-05-26  Martin Liska  <mliska@suse.cz>
9187         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
9188         function.
9189         (operator+): Likewise.
9190         (operator-): Likewise.
9191         (comp_cost::operator+=): Likewise.
9192         (comp_cost::operator-=): Likewise.
9193         (comp_cost::operator/=): Likewise.
9194         (comp_cost::operator*=): Likewise.
9195         (operator<): Likewise.
9196         (operator==): Likewise.
9197         (operator<=): Likewise.
9198         (new_cost): Remove.
9199         (infinite_cost_p): Likewise.
9200         (add_costs): Likewise.
9201         (sub_costs): Likewise.
9202         (compare_costs): Likewise.
9203         (set_group_iv_cost): Use the newly introduced functions.
9204         (get_address_cost): Likewise.
9205         (get_shiftadd_cost): Likewise.
9206         (force_expr_to_var_cost): Likewise.
9207         (split_address_cost): Likewise.
9208         (ptr_difference_cost): Likewise.
9209         (difference_cost): Likewise.
9210         (get_computation_cost_at): Likewise.
9211         (determine_group_iv_cost_generic): Likewise.
9212         (determine_group_iv_cost_address): Likewise.
9213         (determine_group_iv_cost_cond): Likewise.
9214         (autoinc_possible_for_pair): Likewise.
9215         (determine_group_iv_costs): Likewise.
9216         (cheaper_cost_pair): Likewise.
9217         (iv_ca_recount_cost): Likewise.
9218         (iv_ca_set_no_cp): Likewise.
9219         (iv_ca_set_cp): Likewise.
9220         (iv_ca_cost): Likewise.
9221         (iv_ca_new): Likewise.
9222         (iv_ca_dump): Likewise.
9223         (iv_ca_narrow): Likewise.
9224         (iv_ca_prune): Likewise.
9225         (iv_ca_replace): Likewise.
9226         (try_add_cand_for): Likewise.
9227         (try_improve_iv_set): Likewise.
9228         (find_optimal_iv_set): Likewise.
9230 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
9232         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
9233         that internal functions will clobber all caller-saved registers.
9235 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
9237         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
9238         Return a better case_values_threshold when optimizing.
9240 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
9242         * config/aarch64/aarch64-simd.md (aarch64_combinez):
9243         Add ? to integer variant.
9244         (aarch64_combinez_be): Likewise.
9246 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
9248         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
9249         instead of x constraint.
9250         (vcvtps2ph256<mask_name>): Likewise.
9252         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
9253         alternative.  Formatting fix.
9255         * config/i386/sse.md
9256         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
9257         to ...
9258         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
9259         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
9260         maybe_evex prefix instead of vex.
9261         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
9262         EXT_REX_SSE_REG_P (op0) case in the splitter.
9264 2016-05-25  Jeff Law  <law@redhat.com>
9266         PR tree-optimization/71272
9267         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
9268         Update comments.  Add test for empty path.
9270 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
9272         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
9273         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
9274         special case builtin.
9275         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
9276         code for ALTIVEC_BUILTIN_VEC_CMPNE.
9277         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
9278         for __builtin_vec_cmpne.
9280 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
9282         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
9283         redundant test and bail out if the type of the new operand is not
9284         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
9286 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
9288         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
9289         (x_ix86_target_flags_explicit): Remove.
9290         * config/i386/i386.c (ix86_function_specific_save): Do not copy
9291         x_ix86_target_flags_explicit.
9292         (ix86_function_specific_restore): Ditto.
9294 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
9295             H.J. Lu  <hongjiu.lu@intel.com>
9297         PR target/70738
9298         * common/config/i386/i386-common.c
9299         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
9300         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
9301         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
9302         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
9303         (-mgeneral-regs-only): Add new option.
9304         * config/i386/i386.c (ix86_option_override_internal): Don't enable
9305         x87 instructions if only general registers are allowed.
9306         (ix86_target_string): Add ix86_flags argument. Handle additional
9307         flags options through ix86_flags argument.  Update all callers.
9308         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
9310 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9312         PR rtl-optimization/66940
9313         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
9314         decrementing desired_val will not overflow before performing these
9315         operations.
9317 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
9319         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
9320         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
9321         * config/i386/i386.c (enum ix86_builtins): Add
9322         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
9323         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
9324         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
9325         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
9326         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
9327         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
9328         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
9329         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
9330         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
9331         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
9332         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
9333         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
9334         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
9335         __builtin_ia32_cvtps2dq512_mask.
9336         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
9337         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
9338         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
9339         * config/i386/sse.md
9340         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
9341         Rename to ...
9342         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
9343         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
9344         to ...
9345         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
9346         (avx512f_vec_pack_sfix_v8df): New define_expand.
9347         (avx512f_roundpd512): Rename to ...
9348         (avx512f_round<castmode>512): ... this.  Change iterator.
9349         (avx512f_roundps512_sfix): New define_expand.
9350         (round<mode>2_sfix): Change iterator.
9352 2016-05-25  Nick Clifton  <nickc@redhat.com>
9354         * config/msp430/msp430.c (msp430_attr): Produce an error if a
9355         static interrupt handler is detected.
9356         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
9357         default linker script.
9358         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
9359         the low part of a symbolic pointer.
9361 2016-05-25  Richard Biener  <rguenther@suse.de>
9363         PR tree-optimization/71261
9364         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
9365         interesting stmt instead of immediate uses when looking
9366         for the use operand to replace.
9368 2016-05-25  Martin Liska  <mliska@suse.cz>
9370         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
9372 2016-05-25  Richard Biener  <rguenther@suse.de>
9374         PR tree-optimization/71264
9375         * tree-vect-stmts.c (vect_init_vector): Properly deal with
9376         vector type val.
9378 2016-05-25  Martin Liska  <mliska@suse.cz>
9380         PR tree-optimization/71239
9381         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
9382         if DECL_SIZE is NULL.
9384 2016-05-25  Richard Biener  <rguenther@suse.de>
9386         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
9387         * tree-if-conv.c (pass_data_if_conversion): Use it.
9389 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9391         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
9392         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
9393         * varpool.c (varpool_node::get_availability): Likewise.
9395 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9397         * config/rs6000/altivec.md (VNEG iterator): New iterator for
9398         VNEGW/VNEGD instructions.
9399         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
9400         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
9401         support for ISA 3.0 VNEGW/VNEGD instructions.
9403 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
9405         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
9406         pointers inside OACC_DATA regions.
9407         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
9408         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
9409         (gimplify_adjust_omp_clauses): Fix typo in comment.
9411 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9413         * config/rs6000/altivec.md (VParity): New mode iterator for vector
9414         parity built-in functions.
9415         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
9416         zeros.
9417         (p9v_parity<mode>2): Likewise.
9418         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
9419         parity.
9420         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
9421         (parity<mode>2): ISA 3.0 expander for vector parity.
9422         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
9423         power9 built-ins.
9424         (BU_P9_64BIT_MISC_0): Likewise.
9425         (BU_P9_MISC_0): Likewise.
9426         (BU_P9V_AV_1): Likewise.
9427         (BU_P9V_AV_2): Likewise.
9428         (BU_P9V_AV_3): Likewise.
9429         (BU_P9V_AV_P): Likewise.
9430         (BU_P9V_VSX_1): Likewise.
9431         (BU_P9V_OVERLOAD_1): Likewise.
9432         (BU_P9V_OVERLOAD_2): Likewise.
9433         (BU_P9V_OVERLOAD_3): Likewise.
9434         (VCTZB): Add vector count trailing zeros support.
9435         (VCTZH): Likewise.
9436         (VCTZW): Likewise.
9437         (VCTZD): Likewise.
9438         (VPRTYBD): Add vector parity support.
9439         (VPRTYBQ): Likewise.
9440         (VPRTYBW): Likewise.
9441         (VCTZ): Add overloaded vector count trailing zeros support.
9442         (VPRTYB): Add overloaded vector parity support.
9443         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9444         overloaded vector count trailing zeros and parity instructions.
9445         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
9446         vector parity support.
9447         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
9448         trailing zeros support.
9449         (vec_cntlz): Likewise.
9450         (vec_vctzb): Likewise.
9451         (vec_vctzd): Likewise.
9452         (vec_vctzh): Likewise.
9453         (vec_vctzw): Likewise.
9454         (vec_vprtyb): Add ISA 3.0 vector parity support.
9455         (vec_vprtybd): Likewise.
9456         (vec_vprtybw): Likewise.
9457         (vec_vprtybq): Likewise.
9458         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9459         the ISA 3.0 vector count trailing zeros and vector parity built-in
9460         functions.
9462 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
9464         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
9465         when there is stmt_to_insert.
9467 2016-05-24  Martin Sebor  <msebor@redhat.com>
9469         PR c++/71147
9470         * tree.h (complete_or_array_type_p): New inline function.
9472 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
9474         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
9475         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
9476         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
9478         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
9479         Limit 1st alternative to noavx isa, split 2nd alternative into one
9480         noavx and one avx alternative, use *x and Bm in the former and
9481         x and m in the latter.
9483         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
9484         of sse4 for the first alternative, drop %v from the template
9485         and d operand modifier.  Split second alternative into one sse4_noavx
9486         and one avx alternative, use *x instead of *v in the former and v
9487         instead of *v in the latter.
9488         (*sse4_1_extractps): Use noavx isa instead of * for the first
9489         alternative, drop %v from the template.  Split second alternative into
9490         one noavx and one avx alternative, use *x instead of *v in the
9491         former and v instead of *v in the latter.
9492         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
9493         with noavx and the last one with avx.
9494         (sse4_1_phminposuw): Guard first alternative with noavx isa,
9495         split the second one into one noavx and one avx alternative,
9496         use *x and Bm in the former and x and m in the latter one.
9497         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
9498         alternatives.
9500         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
9501         first two alternatives to noavx, use *x instead of *v in the second
9502         one, add avx alternative without *.
9503         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
9504         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
9505         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
9507 2016-05-24  Jeff Law  <law@redhat.com>
9509         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
9510         New function, extracted from...
9511         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
9512         Allow simple copies and constant initializations in the SSA chain.
9514 2016-05-24  Marek Polacek  <polacek@redhat.com>
9516         PR c/71249
9517         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
9518         scope.
9520 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
9522         PR c++/71257
9523         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
9524         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
9525         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
9526         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
9527         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
9529 2016-05-24  Richard Biener  <rguenther@suse.de>
9531         PR tree-optimization/71240
9532         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
9533         has integral type.
9535 2016-05-24  Richard Biener  <rguenther@suse.de>
9537         PR tree-optimization/71230
9538         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
9540 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
9542         * tree-vectorizer.h (vectorizable_comparison): Delete.
9543         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
9544         PURE_SLP_STMT check.
9545         * tree-vect-stmts.c (vectorizable_call): Likewise.
9546         (vectorizable_simd_clone_call): Likewise.
9547         (vectorizable_conversion): Likewise.
9548         (vectorizable_assignment): Likewise.
9549         (vectorizable_shift): Likewise.
9550         (vectorizable_operation): Likewise.
9551         (vectorizable_load): Likewise.
9552         (vectorizable_condition): Likewise.
9553         (vectorizable_store): Likewise.  Assert that we don't have
9554         hybrid SLP.
9555         (vectorizable_comparison): Make static.  Remove redundant
9556         PURE_SLP_STMT check.
9557         (vect_transform_stmt): Assert that we always have an slp_node
9558         if PURE_SLP_STMT.
9560 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9562         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
9563         operands[2] against 1 with comparison against CONST1_RTX.
9564         (<shift>di3_neon): Likewise.
9565         * config/arm/predicates.md (const0_operand): Replace with comparison
9566         against CONST0_RTX.
9568 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9570         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
9571         operands[2] against 1 with comparison against CONST1_RTX.
9572         (ashrdi3): Likewise.
9573         (lshrdi3): Likewise.
9574         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
9575         UINTVAL.
9576         (ashrsi3): Likewise.
9577         (lshrsi3): Likewise.
9578         (rotrsi3): Likewise.
9579         (define_split above *compareqi_eq0): Likewise.
9580         (define_split above "prologue"): Likewise.
9581         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
9582         * config/arm/predicates.md (shift_operator): Likewise.
9583         (shift_nomul_operator): Likewise.
9584         (sat_shift_operator): Likewise.
9585         (thumb1_cmp_operand): Likewise.
9586         (const_neon_scalar_shift_amount_operand): Replace manual range
9587         check with IN_RANGE.
9588         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
9589         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
9591 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9593         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
9594         with HOST_WIDE_INT_1.
9595         (insv): Likewise.
9596         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
9597         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
9598         (arm_canonicalize_comparison): Likewise.
9599         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
9600         HOST_WIDE_INT_1.
9601         (thumb1_size_rtx_costs): Likewise.
9602         (vfp_const_double_index): Replace cast of 1 to unsigned
9603         HOST_WIDE_INT with HOST_WIDE_INT_1U.
9604         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
9605         HOST_WIDE_INT_1.
9606         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
9607         HOST_WIDE_INT with HOST_WIDE_INT_1U.
9608         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
9609         HOST_WIDE_INT with HOST_WIDE_INT_1.
9611 2016-05-24  Marek Polacek  <polacek@redhat.com>
9613         * tree-cfg.h (should_remove_lhs_p): New predicate.
9614         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
9615         * gimplify.c (gimplify_modify_expr): Likewise.
9616         * tree-cfg.c (verify_gimple_call): Likewise.
9617         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
9618         * gimple-fold.c: Include "tree-cfg.h".
9619         (gimple_fold_call): Use should_remove_lhs_p.
9621 2016-05-24  Richard Biener  <rguenther@suse.de>
9623         PR tree-optimization/71253
9624         * cfganal.h (control_dependences): Make robust against edge
9625         and BB removal.
9626         (control_dependences::control_dependences): Remove edge_list argument.
9627         (control_dependences::get_edge): Remove.
9628         (control_dependences::get_edge_src): Add.
9629         (control_dependences::get_edge_dest): Likewise.
9630         (control_dependences::m_el): Make a vector of edge src/dest index.
9631         * cfganal.c (control_dependences::find_control_dependence): Adjust.
9632         (control_dependences::control_dependences): Likewise.
9633         (control_dependences::~control_dependence): Likewise.
9634         (control_dependences::get_edge): Remove.
9635         (control_dependences::get_edge_src): Add.
9636         (control_dependences::get_edge_dest): Likewise.
9637         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
9638         get_edge_src.
9639         (perform_tree_ssa_dce): Adjust.
9640         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
9641         get_edge_src.
9642         (pass_loop_distribution::execute): Adjust.  Do loop destroying
9643         conditional on changed.
9645 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9647         PR target/69857
9648         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
9649         return.  Reindent transformation comment and mention the ARM state
9650         behavior.
9652 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
9654         PR middle-end/71252
9655         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
9656         after build_and_add_sum creates new use stmt.
9658 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
9660         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
9661         load_lanes/grouped_load classification comes first.  Don't check
9662         whether the vectorization factor is a multiple of the group size
9663         for load_lanes.
9665 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
9667         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
9668         GROUP_GAP for single-element interleaving.
9669         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
9670         variable.
9672 2016-05-24  Richard Biener  <rguenther@suse.de>
9674         PR middle-end/70434
9675         PR c/69504
9676         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
9677         bases which are accessed with non-invariant indices.
9678         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
9679         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
9681 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
9683         PR middle-end/71170
9684         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
9685         (add_to_ops_vec): Add stmt_to_insert.
9686         (add_repeat_to_ops_vec): Init stmt_to_insert.
9687         (insert_stmt_before_use): New.
9688         (transform_add_to_multiply): Remove mult_stmt insertion and add it
9689         to ops vector.
9690         (get_ops): Init stmt_to_insert.
9691         (maybe_optimize_range_tests): Likewise.
9692         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
9693         (rewrite_expr_tree_parallel): Likewise.
9694         (reassociate_bb): Likewise.
9696 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
9698         PR target/71201
9699         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
9700         ISA 3.0 xxperm fusion alternative.
9701         (altivec_vperm_v8hiv16qi): Likewise.
9702         (altivec_vperm_<mode>_uns_internal): Likewise.
9703         (vperm_v8hiv4si): Likewise.
9704         (vperm_v16qiv8hi): Likewise.
9706 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
9707             Kelvin Nilsen  <kelvin@gcc.gnu.org>
9709         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
9710         vpermr/xxpermr on ISA 3.0.
9711         (altivec_expand_vec_perm_le): Likewise.
9712         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
9713         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
9714         ISA 3.0.
9716 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
9718         * config/i386/i386.h (IS_STACK_MODE): Enable for
9719         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
9720         SSE_FLOAT_MODE_P macros.
9721         * config/i386/i386.c (ix86_preferred_reload_class): Use
9722         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
9723         Cleanup regclass processing for CONST_DOUBLE_P.
9724         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
9725         (ix86_rtx_costs): Remove redundant TARGET_80387 check
9726         with IS_STACK_MODE macro.
9727         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
9728         with TARGET_SSE2.
9729         (*movdf_internal): Use IS_STACK_MODE macro.
9730         (*movsf_internal): Ditto.
9732 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
9734         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
9735         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
9737 2016-05-23  Jeff Law  <law@redhat.com>
9739         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
9740         extracted from ...
9741         (fsm_find_control_statement_thread_paths): Call it.
9743 2016-05-23  Martin Jambor  <mjambor@suse.cz>
9745         PR ipa/71234
9746         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
9747         from_global_constant if t is not NULL.
9749 2016-05-23  Marek Polacek  <polacek@redhat.com>
9751         PR c/49859
9752         * common.opt (Wswitch-unreachable): New option.
9753         * doc/invoke.texi: Document -Wswitch-unreachable.
9754         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
9755         warning.
9757 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
9759         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
9760         TMR_INDEX is non-NULL.
9762 2016-05-23  Richard Biener  <rguenther@suse.de>
9764         PR tree-optimization/71230
9765         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
9766         (try_special_add_to_ops): ... here.  Always test for single-use.
9768 2016-05-23  Martin Jambor  <mjambor@suse.cz>
9770         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
9771         default block if a PHI node in the original one would be resized.
9773 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9775         PR tree-optimization/58135
9776         * tree-vect-slp.c: When group size is not multiple
9777         of vector size, allow splitting of store group at
9778         vector boundary.
9780 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
9782         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
9784 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
9786         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
9787         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
9788         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
9789         of 64x2.
9791         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
9792         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
9793         v constraint instead of x and vinserti32x4 insn.
9795         * config/i386/sse.md (i128vldq): New mode iterator.
9796         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
9797         avx512dq and avx512vl alternatives.
9799         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
9800         constraint, use maybe_evex prefix instead of vex.
9801         (vec_dupv4sf): Use v constraint instead of x for output
9802         operand except for noavx alternative, use Yv constraint
9803         instead of x for input.  Use maybe_evex prefix instead of vex.
9804         (*vec_dupv4si): Likewise.
9805         (*vec_dupv2di): Likewise.
9807 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
9809         PR middle-end/40921
9810         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
9811         (linearize_expr_tree): Call try_special_add_to_ops.
9812         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
9814 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9816         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
9817         to computed stack_usage.
9819 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9821         PR target/71103
9822         * config/avr/avr.md (define_expand "mov<mode>"): If the source
9823         operand is subreg (symbol_ref) then move the symbol ref to register.
9825 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
9827         * tree.c (array_at_struct_end_p): Look through MEM_REF.
9829 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
9831         PR middle-end/71179
9832         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
9833         VECTOR type.
9835 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
9837         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
9838         ranges by calling get_single_symbol and tidy up.  Look more closely
9839         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
9841 2016-05-20  Jeff Law  <law@redhat.com>
9843         * bitmap.c (bitmap_find_bit): Remove useless test.
9845 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
9847         * function.c (thread_prologue_and_epilogue_insns): Commit the
9848         insertion of the epilogue.
9850 2016-05-20  Martin Jambor  <mjambor@suse.cz>
9852         PR tree-optimization/70884
9853         * tree-sra.c (initialize_constant_pool_replacements): Do not check
9854         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
9855         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
9856         of constant pool data as a reason for scalarization.
9858 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
9860         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
9861         for naked functions.
9862         (thumb1_expand_prologue): Likewise.
9864 2016-05-20  Nathan Sidwell  <nathan@acm.org>
9866         * config/nvptx/nptx.c (nvptx_option_override): Only set
9867         flag_toplevel_reorder, if not explicitly specified.  Set
9868         flag_no_common, unless explicitly specified.
9870 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
9872         * calls.c (can_implement_as_sibling_call_p): Mark param
9873         reg_parm_stack_space with ATTRIBUTE_UNUSED.
9875 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
9877         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
9878         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
9879         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
9880         constants.
9881         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
9882         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
9883         and CASE_CONST_ANY.
9885 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
9887         * config/nvptx/nvptx.md (sincossf3): New pattern.
9889 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
9891         * calls.c (maybe_complain_about_tail_call): New function.
9892         (initialize_argument_information): Call
9893         maybe_complain_about_tail_call when clearing *may_tailcall.
9894         (can_implement_as_sibling_call_p): Call
9895         maybe_complain_about_tail_call when returning false.
9896         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
9897         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
9898         if tail-call optimization fails.
9899         * cfgexpand.c (expand_call_stmt): Initialize
9900         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
9901         * gimple-pretty-print.c (dump_gimple_call): Dump
9902         gimple_call_must_tail_p.
9903         * gimple.c (gimple_build_call_from_tree): Call
9904         gimple_call_set_must_tail with the value of
9905         CALL_EXPR_MUST_TAIL_CALL.
9906         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
9907         (gimple_call_set_must_tail): New function.
9908         (gimple_call_must_tail_p): New function.
9909         * print-tree.c (print_node): Update printing of TREE_STATIC
9910         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
9911         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
9912         trailing comment listing applicable flags.
9913         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
9915 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
9917         * calls.c (expand_call): Move "Rest of purposes for tail call
9918         optimizations to fail" to...
9919         (can_implement_as_sibling_call_p): ...this new function, and
9920         split into multiple "if" statements.
9922 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
9924         * cfgloop.h (expected_loop_iterations_unbounded,
9925         expected_loop_iterations): Unconstify.
9926         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
9927         profile with known upper bound; return 3 when profile is absent.
9928         (expected_loop_iterations): Update.
9930 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
9932         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
9933         and get_max_loop_iterations_int.
9935 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
9937         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
9938         realistic upper bounds here.
9940 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
9942         PR c++/71210
9943         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
9944         calls if the LHS is variable length or has addressable type.
9945         If targets[0]->decl is a noreturn call with void return type and
9946         zero arguments, adjust fntype and remove lhs in that case.
9948 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
9950         PR tree-optimization/71079
9951         PR tree-optimization/71206
9952         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
9954 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9956         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
9957         (get_vec_alignment_for_array_decl): Likewise.
9958         (get_vec_alignment_for_record_decl): Likewise.
9959         (increase_alignment::execute): Move code to find alignment to
9960         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
9961         (type_align_map): New hash_map.
9963 2016-05-20  Richard Guenther  <rguenther@suse.de>
9965         PR tree-optimization/29756
9966         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
9967         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
9968         * fold-const.c (operand_equal_p): Likewise.
9969         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
9970         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
9971         * tree-inline.c (estimate_operator_cost): Likewise.
9972         * tree-pretty-print.c (dump_generic_node): Likewise.
9973         * tree-ssa-operands.c (get_expr_operands): Likewise.
9974         * cfgexpand.c (expand_debug_expr): Likewise.
9975         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
9976         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
9977         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
9978         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
9979         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
9980         (execute_update_addresses_taken): Do it.
9982 2016-05-20  Richard Biener  <rguenther@suse.de>
9984         PR tree-optimization/71185
9985         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
9986         register operations.
9988 2016-05-20  Richard Biener  <rguenther@suse.de>
9990         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
9991         gimple_seq_add_seq_without_update.
9992         (release_bb_predicate): Assert we have no operands to free.
9993         (if_convertible_loop_p_1): Calculate post dominators later.
9994         Do not free BB predicates here.
9995         (combine_blocks): Do not recompute BB predicates.
9996         (version_loop_for_if_conversion): Save BB predicates around
9997         loop versioning.
9999 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
10001         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
10002         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
10003         code.  Ignore sibcalls on EDGE_IGNORE edges.
10004         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
10005         on edges for sibcalls that run without prologue.  The rest of the
10006         function is combined from...
10007         (fix_fake_fallthrough_edge): ... this, and ...
10008         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
10009         function argument, make it a local variable.
10011 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
10013         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
10014         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
10015         for 32-bit mode and SEH for 64-bit.
10016         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
10017         TARGET_64BIT_DEFAULT.
10019 2016-05-19  Ryan Burn  <contact@rnburn.com>
10021         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
10022         * gengtype.c (open_base_files): Add cilk.h to ifiles.
10024 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
10026         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
10027         force pending loads from memory.
10029 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10031         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
10032         (UNSPEC_DARN_32): New unspec constant.
10033         (UNSPEC_DARN_RAW): New unspec constant.
10034         (darn_32): New instruction.
10035         (darn_raw): New instruction.
10036         (darn): New instruction.
10037         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
10038         support and documentation for this macro.
10039         (BU_P9_MISC_1): New macro definition.
10040         (BU_P9_64BIT_MISC_0): New macro definition.
10041         (BU_P9_MISC_0): New macro definition.
10042         (darn_32): New builtin definition.
10043         (darn_raw): New builtin definition.
10044         (darn): New builtin definition.
10045         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
10046         RS6000_BUILTIN_0 directives to surround each occurrence of
10047         #include "rs6000-builtin.def".
10048         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
10049         RS6000_BTM_64BIT flags to the returned mask, depending on
10050         configuration.
10051         (def_builtin): Correct an error in the assignments made to the
10052         debugging variable attr_string.
10053         (rs6000_expand_builtin): Add support for no-operand built-in
10054         functions.
10055         (builtin_function_type): Remove fatal_error assertion that is no
10056         longer valid.
10057         (rs6000_common_init_builtins): Add support for no-operand built-in
10058         functions.
10059         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
10060         definition.
10061         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
10062         definition.
10063         (RS6000_BTM_64BIT): New macro definition.
10064         * doc/extend.texi: Document __builtin_darn (void),
10065         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
10066         functions.
10068 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
10070         * tree-vect-loop.c (vect_analyze_loop_2): Use also
10071         max_loop_iterations_int.
10073 2016-05-19  Marek Polacek  <polacek@redhat.com>
10075         PR tree-optimization/71031
10076         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
10077         condition and adjust the code a bit.
10079 2016-05-19  Martin Liska  <mliska@suse.cz>
10081         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
10082         auto_vec instead of vec.
10084 2016-05-19  Martin Liska  <mliska@suse.cz>
10086         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
10088 2016-05-19  Martin Liska  <mliska@suse.cz>
10090         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
10092 2016-05-19  Martin Liska  <mliska@suse.cz>
10094         * ipa-pure-const.c (set_function_state): Remove an existing
10095         funct_state.
10096         (remove_node_data): Do not free it as it's released
10097         in set_function_state.
10099 2016-05-19  Martin Liska  <mliska@suse.cz>
10101         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
10102         bitmap.
10104 2016-05-19  Martin Liska  <mliska@suse.cz>
10106         * omp-simd-clone.c (simd_clone_adjust): Release vector.
10108 2016-05-19  Martin Liska  <mliska@suse.cz>
10110         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
10111         an auto_vec instead of re-creating it.
10113 2016-05-19  Martin Liska  <mliska@suse.cz>
10115         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
10116         auto_vec instead of vec.
10118 2016-05-19  Martin Liska  <mliska@suse.cz>
10120         * lto-section-in.c (lto_get_section_data): Call
10121         lto_check_version with additional argument.
10122         * lto-streamer.c (lto_check_version): Add new argument.
10123         * lto-streamer.h (lto_check_version): Likewise.
10125 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10127         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
10128         Don't add cost of inner memory when handling sign-extended loads.
10130 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
10132         PR rtl-optimization/71148
10133         * cse.c (cse_main): Free dominance info.
10134         (rest_of_handle_cse): Don't free dominance info.
10135         (rest_of_handle_cse2): Likewise.
10136         (rest_of_handle_cse_after_global_opts): Likewise.
10138 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10140         PR target/71056
10141         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
10142         NULL_TREE early if NEON is not available.  Remove now redundant check
10143         in ARM_CHECK_BUILTIN_MODE.
10145 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
10147         PR sanitizer/64354
10148         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
10149         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
10150         * doc/cpp.texi: Document new macros.
10152 2016-05-19  Bin Cheng  <bin.cheng@arm.com>
10154         PR tree-optimization/69848
10155         * tree-vect-loop.c (vectorizable_reduction): Don't factor
10156         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
10158 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
10160         * function.c (thread_prologue_and_epilogue_insn): Move the
10161         "goto epilogue_done" one block later.
10163 2016-05-19  Richard Biener  <rguenther@suse.de>
10165         PR tree-optimization/70729
10166         * passes.def: Move LIM pass before PRE.  Remove no longer
10167         required copyprop and move first DCE out of the loop pipeline.
10169 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
10171         PR driver/69265
10172         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
10173         (OBJS-libcommon-target): ...here.
10174         * opts-common.c: Include spellcheck.h.
10175         (cmdline_handle_error): Build a vec of valid options and use it
10176         to suggest provide hints for misspelled arguments.
10178 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
10180         PR c++/71100
10181         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
10182         lhs if it has TREE_ADDRESSABLE type.
10184 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
10186         PR target/71145
10187         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
10188         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
10190 2016-05-18  Martin Jambor  <mjambor@suse.cz>
10192         PR ipa/69708
10193         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
10194         input for NOP_EXPR pass-through functions.
10195         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
10196         aggregate global constant VAR_DECLs in constant jump functions.
10198 2016-05-18  Martin Jambor  <mjambor@suse.cz>
10200         PR ipa/69708
10201         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
10202         from TREE_READONLY parameters.
10204 2016-05-18  Martin Jambor  <mjambor@suse.cz>
10206         PR ipa/69708
10207         * cgraph.h (cgraph_indirect_call_info): New field
10208         guaranteed_unmodified.
10209         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
10210         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
10211         appropriate.
10212         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
10213         pass the parameter value to ipa_find_agg_cst_for_param.
10214         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
10215         guaranteed_unmodified, store AA results there instead of bailing out
10216         if present.
10217         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
10218         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
10219         (find_constructor_constant_at_offset): New function.
10220         (ipa_find_agg_cst_from_init): Likewise.
10221         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
10222         static initializers of contants, report back through a new paameter
10223         from_global_constant if that was the case.
10224         (try_make_edge_direct_simple_call): Also pass parameter value to
10225         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
10226         appropriate.
10227         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
10228         (ipa_read_indirect_edge_info): Likewise.
10229         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
10230         (ipa_load_from_parm_agg): Likewise.
10232 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
10234         PR rtl-optimization/71150
10235         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
10236         check.
10238 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
10240         PR target/70915
10241         * config/rs6000/constraints.md (wE constraint): New constraint
10242         for a vector constant that can be loaded with XXSPLTIB.
10243         (wM constraint): New constraint for a vector constant of a 1's.
10244         (wS constraint): New constraint for a vector constant that can be
10245         loaded with XXSPLTIB and a vector sign extend instruction.
10246         * config/rs6000/predicates.md (xxspltib_constant_split): New
10247         predicates for wE/wS constraints.
10248         (xxspltib_constant_nosplit): Likewise.
10249         (easy_vector_constant): Add support for constants that can be
10250         loaded via XXSPLTIB.
10251         (all_ones_constant): New predicate for vector constant with all
10252         1's set.
10253         (splat_input_operand): Add support for ISA 3.0 word splat operations.
10254         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
10255         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
10256         instruction and possibly with a sign extension.
10257         (output_vec_const_move): Add support for XXSPLTIB. If we are
10258         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
10259         instead of XXLXOR/XXLORC.
10260         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
10261         operations.
10262         (rs6000_legitimize_reload_address): Likewise.
10263         (rs6000_output_move_128bit): Use output_vec_const_move to emit
10264         constants.
10265         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
10266         combine VSX_M and VSX_M2 into one iterator.
10267         (VSX_M2): Likewise.
10268         (VSINT_84): New iterators for loading constants with XXSPLTIB.
10269         (VSINT_842): Likewise.
10270         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
10271         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
10272         XXSPLTIB instruction.
10273         (xxspltib_<mode>_nosplit): Likewise.
10274         (xxspltib_<mode>_split): New insn to load up constants with
10275         XXSPLTIB and a sign extend instruction.
10276         (vsx_mov<mode>): Replace single move that handled all vector types
10277         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
10278         moves (when -mvsx-timode is in effect) into the main vector
10279         moves.  Eliminate separate moves for <VSr> <VSa>, where the
10280         preferred register class (<VSr>) is listed first, and the
10281         secondary register class (<VSa>) is listed second with a '?' to
10282         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
10283         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
10284         that if the register was involved in a slow operation, the
10285         clear/set operation does not wait for the slow operation to
10286         finish.  Adjust the length attributes for 32-bit mode.  Use
10287         rs6000_output_move_128bit and drop the use of the string
10288         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
10289         spacing so that the alternatives and attributes don't generate
10290         long lines, and put things in columns, so that it is easier to
10291         match up the operands and attributes with the insn alternatives.
10292         (vsx_mov<mode>_64bit): Likewise.
10293         (vsx_mov<mode>_32bit): Likewise.
10294         (vsx_movti_64bit): Fold movti into normal vector moves.
10295         (vsx_movti_32bit): Likewise.
10296         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
10297         splat instructions.
10298         (vsx_splat_v4si_internal): Likewise.
10299         (vsx_splat_v4sf_internal): Likewise.
10300         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
10301         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
10302         extend vector elements.
10303         (vsx_sign_extend_hi_<mode>): Likewise.
10304         (vsx_sign_extend_si_v2di): Likewise.
10305         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
10306         declaration.
10307         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
10308         constraints.  Add trailing period to wL documentation.
10310 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
10312         PR middle-end/71020
10313         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
10314         * tree-dfa.c (replace_abnormal_ssa_names): New function.
10315         * tree-call-cdce.c: Include tree-dfa.h.
10316         (can_guard_call_p): New function, extracted from...
10317         (can_use_internal_fn): ...here.
10318         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
10319         and return void.
10320         (shrink_wrap_one_built_in_call): Likewise.
10321         (use_internal_fn): Likewise.
10322         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
10323         and return void.  Call replace_abnormal_ssa_names.
10324         (pass_call_cdce::execute): Check can_guard_call_p during the
10325         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
10326         will always change something.
10328 2016-05-18  Martin Jambor  <mjambor@suse.cz>
10330         PR ipa/70646
10331         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
10332         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
10334 2016-05-18  Martin Jambor  <mjambor@suse.cz>
10336         PR ipa/70646
10337         * ipa-inline.h (condition): New field size.
10338         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
10339         for comaprison and store it into the new condition.
10340         (evaluate_conditions_for_known_args): Use condition size to check
10341         access sizes for all but CHANGED conditions.
10342         (unmodified_parm_1): New parameter size_p, store access size into it.
10343         (unmodified_parm): Likewise.
10344         (unmodified_parm_or_parm_agg_item): Likewise.
10345         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
10346         (set_cond_stmt_execution_predicate): Extract access sizes and store
10347         them to conditions.
10348         (set_switch_stmt_execution_predicate): Likewise.
10349         (will_be_nonconstant_expr_predicate): Likewise.
10350         (will_be_nonconstant_predicate): Likewise.
10351         (inline_read_section): Stream condition size.
10352         (inline_write_summary): Likewise.
10354 2016-05-18  Richard Biener  <rguenther@suse.de>
10356         * tree-ssa-loop-im.c (determine_max_movement): Properly add
10357         condition cost to PHI cost instead of total_cost.
10359 2016-05-18  Martin Liska  <mliska@suse.cz>
10361         PR fortran/70856
10362         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
10363         merged variables.
10365 2016-05-18  Richard Biener  <rguenther@suse.de>
10367         * lto-streamer.h (LTO_major_version): Bump to 6.
10369 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
10371         * function.c (make_split_prologue_seq, make_prologue_seq,
10372         make_epilogue_seq): New functions, factored out from...
10373         (thread_prologue_and_epilogue_insns): Here.
10375 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
10377         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
10378         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
10379         of before.  Add a comment.
10381 2016-05-18  Bin Cheng  <bin.cheng@arm.com>
10383         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
10384         expression pointer, not pointer to the pointer.
10386 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
10388         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
10389         (avx2_pbroadcast<mode>): Add another alternative with v instead
10390         of x constraints in it, using <pbroadcast_evex_isa> isa.
10391         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
10393         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
10394         constraint x instead of v in second alternative, add avx512bw
10395         alternative.
10397         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
10398         constraint x instead of v in second alternative, add avx512bw
10399         alternative.
10401         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
10402         constraint x instead of v in second alternative, add avx512bw
10403         alternative.
10405         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
10406         avx512bw alternative.
10408 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
10410         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
10411         array to 128 chars.
10412         (define_insn "*andnottf3"): Ditto.
10413         (define_insn "*<code><mode>3"/any_logic): Ditto.
10414         (define_insn "*<code>tf3"/any_logic): Ditto.
10415         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
10416         operand to block AVX-512VL insn variant emit when it is not enabled.
10418 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
10420         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
10421         constraint fot SF mode.
10423 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
10424             Kirill Yukhin  <kirill.yukhin@intel.com>
10426         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
10427         modifiers.
10428         (define_insn "rsqrt14<mode>"): Ditto.
10429         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
10430         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
10431         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
10432         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
10433         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
10434         Ditto.
10435         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
10436         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
10437         * config/i386/i386.c (ix86_print_operand): Expand check for size
10438         override codes for Intel syntax.
10440 2016-05-18  Richard Biener  <rguenther@suse.de>
10442         PR tree-optimization/71168
10443         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
10444         initialization earlier.
10446 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
10448         * config/aarch64/aarch64-simd.md
10449         (aarch64_reduc_plus_internal<mode>): Rename to...
10450         (reduc_plus_scal): ...This, and remove previous implementation.
10452 2016-05-18  Richard Biener  <rguenther@suse.de>
10454         * passes.def: Put late dse and cd_dce in canonical order.
10456 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
10458         * ipa-inline-transform.c (preserve_function_body_p): Look for
10459         first non-thunk clone.
10460         (save_function_body): Save into first non-thunk.
10461         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
10462         up call stmt id.
10463         (lto_output_node): Inline thunks don't need body in every
10464         partition.
10465         * lto-streamer-in.c: Do not fixup thunk clones.
10466         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
10467         thunks.
10468         * tree-inline.c (copy_bb): Be prepared for target node to be new after
10469         folding suceeds.
10471 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
10473         PR middle-end/63586
10474         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
10475         (reassociate_bb): Call transform_add_to_multiply.
10477 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
10479         * config/aarch64/aarch64.c (all_extensions): Removed unused
10480         static variable.
10482 2016-05-17  Nathan Sidwell  <nathan@acm.org>
10484         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
10485         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
10487 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
10489         PR tree-optimization/54579
10490         PR middle-end/55299
10491         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
10493 2016-05-17  Marek Polacek  <polacek@redhat.com>
10495         PR ipa/71146
10496         * tree-inline.c (expand_call_inline): Call
10497         maybe_remove_unused_call_args.
10499 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
10501         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
10502         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
10503         * doc/md.texi (fmin@var{m}3): Likewise.
10505 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
10507         * match.pd (X & C): New transformation.
10509 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
10511         * match.pd (~X & Y): New transformation.
10513 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
10515         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
10516         information for new SSA_NAME.
10517         (simplify_conversion_using_ranges): Get range through get_range_info
10518         instead of get_value_range.
10520 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
10522         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
10523         Remove inline assembly.
10524         (vmvn_s16): Likewise.
10525         (vmvn_s32): Likewise.
10526         (vmvn_u8): Likewise.
10527         (vmvn_u16): Likewise.
10528         (vmvn_u32): Likewise.
10529         (vmvnq_s8): Likewise.
10530         (vmvnq_s16): Likewise.
10531         (vmvnq_s32): Likewise.
10532         (vmvnq_u8): Likewise.
10533         (vmvnq_u16): Likewise.
10534         (vmvnq_u32): Likewise.
10535         (vmvn_p8): Likewise.
10536         (vmvnq_p16): Likewise.
10538 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
10540         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
10541         Use builtin.
10542         (vmul_n_s16): Likewise.
10543         (vmul_n_s32): Likewise.
10544         (vmul_n_u16): Likewise.
10545         (vmul_n_u32): Likewise.
10546         (vmulq_n_f32): Likewise.
10547         (vmulq_n_f64): Likewise.
10548         (vmulq_n_s16): Likewise.
10549         (vmulq_n_s32): Likewise.
10550         (vmulq_n_u16): Likewise.
10551         (vmulq_n_u32): Likewise.
10553 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
10555         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
10556         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
10558 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
10560         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
10561         to *aarch64_fma4_elt_from_dup<mode>.
10562         (*aarch64_fnma4_elt_to_128df): Rename to
10563         *aarch64_fnma4_elt_from_dup<mode>.
10564         * config/aarch64/arm_neon.h (vfma_n_f64): New.
10565         (vfms_n_f32): Likewise.
10566         (vfms_n_f64): Likewise.
10567         (vfmsq_n_f32): Likewise.
10568         (vfmsq_n_f64): Likewise.
10570 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
10572         * wide-int.h: Change fixed_wide_int_storage from class to struct.
10574 2016-05-17  Richard Biener  <rguenther@suse.de>
10576         PR tree-optimization/71132
10577         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
10578         Only add control dependences for blocks in the loop.
10579         (build_rdg): Adjust.
10580         (generate_code_for_partition): Return whether loop should
10581         be destroyed and delay that.
10582         (distribute_loop): Likewise.
10583         (pass_loop_distribution::execute): Record loops to be destroyed
10584         and perform delayed destroying of loops.
10586 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10588         PR target/70809
10589         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
10591 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
10593         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
10595 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
10597         PR target/71114
10598         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
10599         insertion point for instructions generated by validize_mem.
10601 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
10603         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
10604         in brackets.
10606 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
10608         * config/aarch64/aarch64.c
10609         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
10610         rather than a macro.
10612 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
10614         * doc/invoke.texi (AArch64 Options): Various updates.
10616 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
10618         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
10619         into instrumentation thunks.
10620         * cif-code.def (CIF_CHKP): New.
10622 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
10624         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
10626 2016-05-16  Martin Jambor  <mjambor@suse.cz>
10628         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
10629         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
10631 2016-05-16  Marek Polacek  <polacek@redhat.com>
10633         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
10634         commentary.
10636 2016-05-16  Martin Jambor  <mjambor@suse.cz>
10638         PR hsa/70857
10639         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
10640         the outlined kernel function.
10642 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
10644         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
10645         (ISA_HAS_DLSA): Ditto.
10647 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
10649         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
10651 2016-05-16  Nathan Sidwell  <nathan@acm.org>
10653         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
10654         (nvptx_name_replacement): Restore.  Add comment.
10655         (write_fn_proto, write_fn_proto_from_insn,
10656         nvptx_output_call_insn): Restore
10657         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
10659 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
10661         * config/aarch64/aarch64.md
10662         (add<mode>3_compareC_cconly_imm): Remove use of %w.
10663         (add<mode>3_compareC_imm): Likewise.
10664         (<optab>si3_uxtw): Split into register and immediate variants.
10665         (andsi3_compare0_uxtw): Likewise.
10666         (and<mode>3_compare0): Likewise.
10667         (and<mode>3nr_compare0): Likewise.
10668         (stack_protect_test_<mode>): Don't use %x for memory operands.
10670 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
10672         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
10674 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
10676         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
10677         Split integer shifts into shift_reg and bfm.
10678         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
10679         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
10680         (ror<mode>3_insn): Likewise.
10681         (<optab>si3_insn_uxtw): Likewise.
10682         (<optab><mode>3_insn): Change to rotate_imm.
10683         (extr<mode>5_insn_alt): Likewise.
10684         (extrsi5_insn_uxtw): Likewise.
10685         (extrsi5_insn_uxtw_alt): Likewise.
10687 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
10689         * doc/tm.texi: Regenerate.
10690         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
10691         (TARGET_INVALID_RETURN_TYPE): Remove.
10692         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
10693         TARGET_INVALID_RETURN_TYPE.
10694         * target.def (invalid_parameter_type): Remove.
10695         (invalid_return_type): Remove.
10697 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
10699         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
10700         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
10701         calls from thunk.
10702         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
10703         gimple body.
10704         (preserve_function_body_p): No need to preserve function body
10705         * cif-codes.def (CIF_THUNK): Remove.
10706         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
10708 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
10710         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
10712 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
10714         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
10715         for thunks.
10717 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
10719         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
10720         (inline_small_functions): Do not look for function symbol when
10721         resetting caches.
10723 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
10725         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
10726         of inline thunks
10728 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
10729             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10730             Jiong Wang  <jiong.wang@arm.com>
10732         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
10733         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
10734         Define __ARM_FP16_ARGS when appropriate.
10735         * config/arm/arm.c (arm_invalid_parameter_type): Remove
10736         declaration.
10737         (arm_invalid_return_type): Likewise.
10738         (TARGET_INVALID_PARAMETER_TYPE): Remove.
10739         (TARGET_INVALID_RETURN_TYPE): Remove.
10740         (aapcs_vfp_sub_candidate): Allow HFmode.
10741         (aapcs_vfp_allocate): Add comment.  Support HFmode.
10742         (aapcs_vfp_allocate_return_reg): Likewise.
10743         (struct aapcs_cp_arg_layout): Slightly reword comments for
10744         is_return_candidate and allocate_return_reg.
10745         (output_mov_vfp): Update assert.
10746         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
10747         condition.
10748         (arm_invalid_parameter_type): Remove.
10749         (amr_invalid_return_type): Remove.
10750         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
10751         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
10752         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
10754 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
10756         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
10757         * config/aarch64/arch64-protos.h
10758         (aarch64_legitimize_reload_address): Remove.
10759         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
10760         Remove.
10762 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
10764         * configure.ac: Add ACX_NONCANONICAL_HOST.
10765         * configure: Regenerate.
10766         * Makefile.in: Set host_noncanonical.
10768 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
10770         PR target/71097
10771         * config/i386/i386.md (*movtf_internal): Before register allocation,
10772         do not allow FP constants for CM_MEDIUM memory model, allow only
10773         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
10774         (*movxf_internal): Ditto.
10775         (*movdf_internal): Ditto.
10776         (*movsf_internal): Ditto.
10778 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
10780         PR rtl-optimization/67483
10781         * combine.c (make_compound_operation): Don't call extract_left_shift
10782         with negative shift amounts.
10784 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
10786         PR bootstrap/71071
10787         * fold-const.c (fold_checksum_tree): Allow modification
10788         of TYPE_ALIAS_SET during folding.
10790         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
10791         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
10792         (ix86_split_to_parts): Likewise.  Fix up formatting.
10794 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
10796         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
10797         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
10798         printf format.
10800 2016-05-13  Nathan Sidwell  <nathan@acm.org>
10802         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
10803         (nvptx_name_replacement): Delete.
10804         (write_fn_proto, write_fn_proto_from_insn,
10805         nvptx_output_call_insn): Remove nvptx_name_replacement call.
10806         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
10807         * langhooks.c (add_builtin_funcction_common): Call
10808         targetm.mangle_decl_assembler_name.
10810         * config/nvptx/nvptx.c (write_fn_proto): Handle
10811         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
10813 2016-05-13  Martin Liska  <mliska@suse.cz>
10815         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
10816         and PRIu64 in printf format.
10818 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10820         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
10821         comment.
10823 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10825         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
10826         Change --param max-completely-peeled-times to
10827         --param max-completely-peel-times in dump file printing.
10829 2016-05-13  Richard Biener  <rguenther@suse.de>
10831         PR tree-optimization/42587
10832         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
10833         (find_bswap_or_nop_1): Likewise.
10834         (bswap_replace): Likewise.
10836 2016-05-13  Martin Liska  <mliska@suse.cz>
10838         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
10839         Initialize a variable with default value.
10841 2016-05-13  Martin Liska  <mliska@suse.cz>
10843         * doc/invoke.texi: Enhance explanation of error recovery
10844         of sanitizers.
10846 2016-05-13  Martin Liska  <mliska@suse.cz>
10848         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
10849         (struct cost_pair): Change inv_expr_id (int) to inv_expr
10850         (iv_inv_expr_ent *).
10851         (struct iv_inv_expr_ent): Comment struct fields.
10852         (sort_iv_inv_expr_ent): New function.
10853         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
10854         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
10855         a hash_map between iv_inv_expr_ent and number of usages.
10856         (niter_for_exit): Fix coding style.
10857         (tree_ssa_iv_optimize_init): Use renamed variable.
10858         (determine_base_object): Fix coding style.
10859         (alloc_iv): Likewise.
10860         (find_interesting_uses_outside): Likewise.
10861         (add_candidate_1): Likewise.
10862         (add_standard_iv_candidates): Likewise.
10863         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
10864         (prepare_decl_rtl): Fix coding style.
10865         (get_address_cost): Likewise.
10866         (get_shiftadd_cost): Likewise.
10867         (force_expr_to_var_cost): Likewise.
10868         (compare_aff_trees): Likewise.
10869         (get_expr_id): Restructure the function.
10870         (get_loop_invariant_expr_id): Renamed to
10871         get_loop_invariant_expr.
10872         (get_computation_cost_at): Replace usage of inv_expr_id with
10873         inv_expr.
10874         (get_computation_cost): Likewise.
10875         (determine_group_iv_cost_generic): Likewise.
10876         (determine_group_iv_cost_address): Likewise.
10877         (iv_period): Fix coding style.
10878         (iv_elimination_compare_lt): Likewise.
10879         (may_eliminate_iv): Likewise.
10880         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
10881         inv_expr.
10882         (determine_group_iv_costs): Dump invariant expressions.
10883         (iv_ca_recount_cost): Use the newly added hash_map.
10884         (iv_ca_set_remove_invariants): Fix coding style.
10885         (iv_ca_set_add_invariants): Fix coding style.
10886         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
10887         invariants.
10888         (iv_ca_set_cp): Likewise.
10889         (iv_ca_new): Initialize the newly added hash_map and remove
10890         initialization of fields.
10891         (iv_ca_free): Delete the hash_map.
10892         (iv_ca_dump): Dump invariant expressions.
10893         (iv_ca_extend): Fix coding style.
10894         (try_add_cand_for): Likewise.
10895         (create_new_ivs): Dump information about # of avg iterations and
10896         # of used invariant expressions.
10897         (rewrite_use_compare): Fix coding style.
10898         (free_loop_data): Set default value for max_inv_expr_id.
10900 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
10902         * cse.c (rest_of_handle_cse): Use cleanup_cfg
10903         returned value cse_cfg_altered computation.
10904         (rest_of_handle_cse2): Likewise.
10905         (rest_of_handle_cse_after_global_opts): Likewise.
10907 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10909         PR target/53440
10910         * config/arm/arm.c (arm32_output_mi_thunk): New.
10911         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
10912         to split Thumb1 vs TARGET_32BIT functionality.
10913         (arm_thumb1_mi_thunk): New.
10915 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10917         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
10918         to true.
10920 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10922         PR target/71080
10923         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
10925 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
10927         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
10928         (expand_builtin_trap): Emit a regular call.
10929         (set_builtin_user_assembler_name): Remove obsolete cases.
10930         * dse.c (scan_insn): Adjust.
10931         * except.c: Include calls.h.
10932         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
10933         emit a regular call to setjmp.
10934         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
10935         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
10936         (emit_block_move_via_libcall): Delete.
10937         (block_move_fn): Delete.
10938         (init_block_move_fn): Likewise.
10939         (emit_block_move_libcall_fn): Likewise.
10940         (emit_block_op_via_libcall): New function.
10941         (set_storage_via_libcall): Tidy up and use memset builtin.
10942         (block_clear_fn): Delete.
10943         (init_block_clear_fn): Likewise.
10944         (clear_storage_libcall_fn): Likewise.
10945         (expand_assignment): Call emit_block_move_via_libcall.
10946         Do not include gt-expr.h.
10947         * expr.h (emit_block_op_via_libcall): Declare.
10948         (emit_block_copy_via_libcall): New inline function.
10949         (emit_block_move_via_libcall): Likewise.
10950         (emit_block_comp_via_libcall): Likewise.
10951         (block_clear_fn): Delete.
10952         (init_block_move_fn): Likewise.
10953         (init_block_clear_fn): Likewise.
10954         (emit_block_move_via_libcall): Likewise.
10955         (set_storage_via_libcall): Add default parameter value.
10956         * libfuncs.h (enum libfunc_index): Remove obsolete values.
10957         (abort_libfunc): Delete.
10958         (memcpy_libfunc): Likewise.
10959         (memmove_libfunc): Likewise.
10960         (memcmp_libfunc): Likewise.
10961         (memset_libfunc): Likewise.
10962         (setbits_libfunc): Likewise.
10963         (setjmp_libfunc): Likewise.
10964         (longjmp_libfunc): Likewise.
10965         (profile_function_entry_libfunc): Likewise.
10966         (profile_function_exit_libfunc): Likewise.
10967         (gcov_flush_libfunc): Likewise.
10968         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
10969         and DECL_VISIBILITY on the declaration.
10970         (init_optabs): Do not initialize obsolete libfuncs.
10971         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
10972         * tree-core.h (ECF_RET1): Define.
10973         (ECF_TM_PURE): Adjust.
10974         (ECF_TM_BUILTIN): Likewise.
10975         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
10976         (build_common_builtin_nodes): Initialize abort builtin.
10977         Add ECF_RET1 on memcpy, memmove and memset builtins.
10978         Pass final flags for alloca and alloca_with_align builtins.
10979         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
10980         obsolete builtins.
10981         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
10982         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
10983         set_storage_via_libcall and call emit_block_copy_via_libcall.
10985 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
10987         * config/i386/i386.md (*call_got_x32): Change operand 0 to
10988         DImode before it is passed to ix86_output_call_operand.
10989         (*call_value_got_x32): Ditto for operand 1.
10991 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
10993         PR rtl-optimization/70904
10994         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
10995         reload for wide mode.
10997 2016-05-12  Marek Polacek  <polacek@redhat.com>
10999         PR c/70756
11000         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
11001         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
11002         * langhooks.h (incomplete_type_error): Likewise.
11003         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
11004         parameter, pass it down to incomplete_type_error.
11005         * tree.h (size_in_bytes): New inline overload.
11006         (size_in_bytes_loc): Renamed from size_in_bytes.
11008 2016-05-12  Richard Biener  <rguenther@suse.de>
11010         PR tree-optimization/71059
11011         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
11012         nary before looking up or entering the expression into the VN
11013         hashes.
11014         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
11015         Make sure to re-use NARYs without result as inserted by
11016         phi-translation.
11018 2016-05-12  Richard Biener  <rguenther@suse.de>
11020         PR tree-optimization/71062
11021         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
11022         field.
11023         * tree-ssa-structalias.c (set_uids_in_ptset): Set
11024         vars_contains_restrict if the var is a restrict tag.
11025         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
11026         do not disambiguate pointers against it.
11027         (dump_points_to_solution): Re-structure and adjust for new
11028         vars_contains_restrict flag.
11029         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
11031 2016-05-12  Martin Liska  <mliska@suse.cz>
11033         * doc/invoke.texi: Explain connection between
11034         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
11036 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
11038         PR tree-optimization/71006
11039         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
11040         consider COND_EXPR as a mask producer.
11042 2016-05-12  Marek Polacek  <polacek@redhat.com>
11044         PR driver/71063
11045         * opts.c (common_handle_option): Detect missing argument for --help^.
11047 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11049         PR target/70830
11050         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
11051         when popping the PC and within an interrupt handler routine.
11052         Add missing tab to output of "ldmfd".
11053         (output_return_instruction): Output LDMFD with SP update rather
11054         than POP when returning from interrupt handler.
11056 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
11058         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
11059         TARGET_64BIT && TARGET_AVX512DQ.
11060         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
11061         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
11062         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
11063         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
11064         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
11065         (*vec_extractv4si_zext): Add avx512dq alternative.
11066         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
11067         use v instead of x constraint in other alternatives where possible.
11069         * config/i386/sse.md (sse2_loadld): Use v instead of x
11070         constraint in alternatives 0,1,4.
11072         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
11073         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
11074         v constraints instead of x and <pinsr_evex_isa> isa attribute.
11076         PR target/71019
11077         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
11078         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
11079         is not emitted unless TARGET_AVX512BW.
11080         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
11081         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
11082         for the result operand.
11084         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
11085         constraint instead of x in avx alternatives.  Use maybe_evex instead
11086         of vex prefix.
11088         * config/i386/constraints.md (Yv): New constraint.
11089         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
11090         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
11091         * config/i386/i386.md (avx512fvecmode): New mode attr.
11092         (*pushtf): Use v constraint instead of x.
11093         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
11094         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
11095         (*absneg<mode>2): Use Yv constraint instead of x constraint.
11096         (*absnegtf2_sse): Likewise.
11097         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
11098         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
11099         avx512f alternatives.
11100         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
11102 2016-05-12  Richard Biener  <rguenther@suse.de>
11104         PR tree-optimization/71060
11105         * tree-data-ref.c (initialize_data_dependence_relation): Do not
11106         require exact match of DR_BASE_OBJECT but only matching address and
11107         type.
11109 2016-05-12  Richard Biener  <rguenther@suse.de>
11111         PR tree-optimization/70986
11112         * cfganal.c: Include cfgloop.h.
11113         (dfs_find_deadend): Prefer to take edges exiting loops.
11115 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11117         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
11118         compile and run time.
11120 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
11122         PR c/43651
11123         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
11125 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
11127         * config/i386/i386.c (legitimize_pic_address): Use
11128         copy_to_suggested_reg instead of gen_movsi.
11130 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11132         * config/rs6000/predicates.md (quad_memory_operand): Move most of
11133         the code into quad_address_p and call it to share code with
11134         vsx_quad_dform_memory_operand.
11135         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
11136         d-form support.
11137         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
11138         bit instead of being a separate word.  Split -mpower9-dform into
11139         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
11140         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
11141         for the register class supporting 128-bit quad word memory offsets.
11142         (mode_supports_vsx_dform_quad): Helper function to return if the
11143         register class uses quad word memory offsets.
11144         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
11145         (rs6000_debug_reg_global): Always print if we are using LRA or not.
11146         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
11147         instructions are enabled, set up the appropriate addr_masks for
11148         128-bit types.
11149         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
11150         -mpower9-dform-scalar, instead of -mpower9-dform.
11151         (rs6000_option_override_internal): Split -mpower9-dform into two
11152         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
11153         -mpower9-dform switch sets or clears both.  If we are not using
11154         the LRA register allocator, do not enable -mpower9-dform-vector by
11155         default.  If we are using LRA, enable -mpower9-dform-vector and
11156         -mvsx-timode if it is appropriate.  Issue a warning if either
11157         -mpower9-dform-vector or -mvsx-timode are explicitly used without
11158         enabling LRA.
11159         (quad_address_offset_p): New helper function to return if the
11160         offset is legal for quad word memory instructions.
11161         (quad_address_p): New function to determin if GPR or vector
11162         register quad word memory addresses are legal.
11163         (mem_operand_gpr): Validate quad word address offsets.
11164         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
11165         d-form (register + offset) instructions.
11166         (offsettable_ok_by_alignment): Likewise.
11167         (rs6000_legitimate_offset_address_p): Likewise.
11168         (legitimate_lo_sum_address_p): Likewise.
11169         (rs6000_legitimize_address): Likewise.
11170         (rs6000_legitimize_reload_address): Add more debug statements for
11171         -mdebug=addr.
11172         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
11173         d-form instructions.
11174         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
11175         d-form instructions.  Distinguish different cases in debug
11176         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
11177         d-form instructions.
11178         (rs6000_preferred_reload_class): Likewise.
11179         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
11180         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
11181         of the ISA 2.06 indexed memory instructions.
11182         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
11183         use them to save/restore the saved vector registers instead of
11184         using Altivec instructions.
11185         (rs6000_emit_epilogue): Likewise.
11186         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
11187         (rs6000_opt_masks): Split -mpower9-dform into
11188         -mpower9-dform-scalar and -mpower9-dform-vector.
11189         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
11190         was not selected.
11191         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
11192         ISA 3.0 vector indexed memory instructions, and fold the code into
11193         the normal mov<mode> patterns.
11194         (p9_vecstore_<mode>): Likewise.
11195         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
11196         instructions.
11197         (vsx_movti_64bit): Likewise.
11198         (vsx_movti_32bit): Likewise.
11199         * config/rs6000/constraints.md (wO constraint): New constraint for
11200         ISA 3.0 vector d-form support.
11201         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
11202         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
11203         include -mpower9-dform-vector until we switch over to LRA.
11204         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
11205         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
11206         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
11207         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
11208         for -mpower9-dform and -mlra.
11209         * doc/md.texi (wO constraint): Document wO constraint.
11211 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
11213         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
11214         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
11215         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
11216         Move handling of non-insn arguments inline into the sole user:
11217         (output_trans_func): ...here.
11218         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
11219         in emitted function prototype.
11220         (output_internal_insn_latency_func): Ditto.  Simplify.
11221         (output_internal_maximal_insn_latency_func): Ditto.  Delete
11222         always-unused argument.
11223         (output_insn_latency_func): Ditto.
11224         (output_maximal_insn_latency_func): Ditto.
11226 2016-05-11  Richard Biener  <rguenther@suse.de>
11228         PR tree-optimization/71055
11229         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
11230         sth with precision not equal to access size verify we don't chop
11231         off bits.
11233 2016-05-11  Richard Biener  <rguenther@suse.de>
11235         PR debug/71057
11236         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
11237         (dwarf2out_finish): Move retry_incomplete_types call ...
11238         (dwarf2out_early_finish): ... here.
11240 2016-05-11  Richard Biener  <rguenther@suse.de>
11242         PR middle-end/71002
11243         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
11244         if the langhook insists on it.
11245         * fold-const.c (make_bit_field_ref): Add arg for the original
11246         reference and preserve its alias-set.
11247         (decode_field_reference): Take exp by reference and adjust it
11248         to the original memory reference.
11249         (optimize_bit_field_compare): Adjust callers.
11250         (fold_truth_andor_1): Likewise.
11251         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
11253 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
11255         PR middle-end/70807
11256         * cfgrtl.h (delete_insn_and_edges): Now return bool.
11257         * cfgrtl.c (delete_insn_and_edges): Likewise.
11258         * config/i386/i386.c (convert_scalars_to_vector): Remove
11259         redundant code.
11260         * cse.c (cse_insn): Compute cse_cfg_altered.
11261         (delete_trivially_dead_insns): Likewise.
11262         (cse_cc_succs): Likewise.
11263         (rest_of_handle_cse): Free dominance info if required.
11264         (rest_of_handle_cse2): Likewise.
11265         (rest_of_handle_cse_after_global_opts): Likewise.
11267 2016-05-11  Alan Modra  <amodra@gmail.com>
11269         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
11270         abi_v4_pass_in_fpr): New functions.
11271         (rs6000_function_arg_boundary): Exclude complex IBM long double
11272         from 64-bit alignment when ABI_V4.
11273         (rs6000_function_arg, rs6000_function_arg_advance_1,
11274         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
11276 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
11278         PR rtl-optimization/71028
11279         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
11280         jump with just a return in the fallthrough block if the branch
11281         block contains just a return as well.
11283 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
11285         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
11286         * match.pd ((X & Y) ^ Y): ... this.
11287         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
11288         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
11290 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
11292         * read-md.c (require_char_ws): New function.
11293         (read_string): Simplify using require_char_ws.
11294         (handle_constants): Likewise.
11295         (handle_enum): Likewise.
11296         (handle_file): Likewise.
11297         * read-md.h (require_char_ws): New declaration.
11298         * read-rtl.c (read_conditions): Simplify using require_char_ws.
11299         (read_mapping): Likewise.
11300         (read_rtx_code): Likewise.
11301         (read_nested_rtx): Likewise.
11303 2016-05-10  James Norris  <jnorris@codesourcery.com>
11305         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
11306         if offloading is enabled and -fopenacc or -fopenmp is specified.
11307         (CRTOFFLOADEND): Likewise.
11308         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
11309         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
11311 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
11313         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
11314         gotoff_operand code paths.  Use copy_to_suggested_regs and
11315         expand_simple_binop where appropriate.  Cleanup.
11317 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
11319         PR target/70799
11320         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
11321         integer constants.
11322         (dimode_scalar_chain::vector_const_cost): New.
11323         (dimode_scalar_chain::compute_convert_gain): Handle constants.
11324         (dimode_scalar_chain::convert_op): Likewise.
11325         (dimode_scalar_chain::convert_insn): Likewise.
11327 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
11329         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
11330         unary operation, not a binary one.
11332 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
11334         PR middle-end/70877
11335         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
11336         calls with type casted fndecl.
11338 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
11340         PR tree-optimization/70786
11341         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
11342         * calls.c (initialize_argument_information): Bind bounds
11343         with corresponding args passed by reference.
11345 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
11347         PR target/70927
11348         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
11349         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
11350         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
11351         accordingly.
11353 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11355         PR target/70963
11356         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
11357         code for a zero scale factor.
11358         (vsx_xvcvdpuxds_scale): Likewise.
11360 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
11362         * diagnostic-show-locus.c (layout::layout): Call show_ruler
11363         if show_ruler_p was set on the context.
11364         (layout::show_ruler): New method.
11365         * diagnostic.h (struct diagnostic_context): Add field
11366         "show_ruler_p".
11368 2016-05-10  Richard Biener  <rguenther@suse.de>
11370         PR tree-optimization/71039
11371         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
11372         (chk_uses): New function.
11373         (propagate_with_phi): Verify we can safely replicate the lhs of an
11374         aggregate assignment on all incoming edges.
11376 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
11378         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
11379         Forward declare.
11380         (rx_atomic_sequence): New class.
11381         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
11382         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
11383         non-inline.
11384         (rx_atomic_sequence::rx_atomic_sequence,
11385         rx_atomic_sequence::~rx_atomic_sequence): New functions.
11386         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
11387         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
11388         CTRLREG_INTB): New constants.
11389         (FETCHOP): New code iterator.
11390         (fethcop_name, fetchop_name2): New iterator code attributes.
11391         (QIHI): New mode iterator.
11392         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
11393         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
11394         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
11396 2016-05-10  Martin Liska  <mliska@suse.cz>
11398         * tree-inline.c (remap_dependence_clique): Do not remap
11399         debugging statements.
11401 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11403         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
11404         ("*fixuns_truncdfdi2_z13")
11405         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
11406         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
11407         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
11409 2016-05-10  Richard Biener  <rguenther@suse.de>
11411         PR tree-optimization/70497
11412         PR tree-optimization/28367
11413         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
11414         split out from ...
11415         (visit_reference_op_load): ... here.
11416         (vn_reference_lookup_3): Use it to handle subreg-like accesses
11417         with simplified BIT_FIELD_REFs.
11418         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
11419         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
11420         correctly.
11422 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
11424         * dwarf2out.c (add_abstract_origin_attribute): Adjust
11425         documentation comment.  For BLOCK nodes, add a
11426         DW_AT_abstract_origin attribute that points to the DIE generated
11427         for the origin BLOCK.
11428         (gen_lexical_block_die): Call add_abstract_origin_attribute for
11429         blocks from inlined functions.
11431 2016-05-10  Alan Modra  <amodra@gmail.com>
11433         PR target/70947
11434         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
11435         regrename modifying insns saving lr before __morestack call.
11436         * config/rs6000/rs6000.md (split_stack_return): Similarly for
11437         insns restoring lr after __morestack call.
11439 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
11441         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
11442         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
11443         expanders.
11444         * config/i386/sse.md (vec_interleave_high<mode>,
11445         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
11446         <avx512>_vpermt2var<mode>3_maskz): Likewise.
11448 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
11450         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
11451         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
11452         parallel reassociation for power8 and forward.
11454 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
11456         * config/i386/i386.md (absneg splitters with general regs): Use
11457         general_reg_operand predicate.
11458         (btsq peephole2): Use x86_64_immediate_operand to check if new
11459         value is suitable for immediate operand.  Generate emitted insn
11460         using RTL expressions.
11461         (btcq peephole2): Ditto.
11462         (btrq peephole2): Ditto.  Generate correct immediate operand
11463         for AND masking.
11465 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
11467         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
11468         bitpos.
11470 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
11472         * tree-affine.c (wide_int_constant_multiple_p): Add missing
11473         pointer dereference.
11475 2016-05-09  Richard Biener  <rguenther@suse.de>
11477         PR tree-optimization/70985
11478         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
11479         op0 isn't a gimple register.
11481 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
11483         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
11484         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
11485         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
11486         (i6400_fpu_mult): New cpu units.
11487         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
11488         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
11489         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
11490         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
11491         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
11492         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
11493         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
11494         (i6400_msa_long_float4, i6400_msa_long_float5)
11495         (i6400_msa_long_float8, i6400_msa_fdiv_df)
11496         (i6400_msa_fdiv_sf): New reservations.
11497         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
11498         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
11499         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
11500         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
11501         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
11502         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
11503         (msa_short_cmp, msa_short_float2, msa_short_logic3)
11504         (msa_short_store4, msa_long_load, msa_short_store)
11505         (msa_long_logic, msa_long_float2, msa_long_float4)
11506         (msa_long_float5, msa_long_float8, msa_long_mult)
11507         (msa_long_fdiv, msa_long_div): New reservations.
11509 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
11510             Sameera Deshpande  <sameera.deshpande@imgtec.com>
11511             Matthew Fortune  <matthew.fortune@imgtec.com>
11512             Graham Stott  <graham.stott@imgtec.com>
11513             Chao-ying Fu  <chao-ying.fu@imgtec.com>
11515         * config.gcc: Add MSA header file for mips*-*-* target.
11516         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
11517         (Ubv8i, Urv8):  New constraints.
11518         * config/mips/mips-ftypes.def: Add function types for MSA
11519         builtins.
11520         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
11521         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
11522         * config/mips/mips-msa.md: New file.
11523         * config/mips/mips-protos.h
11524         (mips_split_128bit_const_insns): New prototype.
11525         (mips_msa_idiv_insns): Likewise.
11526         (mips_split_128bit_move): Likewise.
11527         (mips_split_128bit_move_p): Likewise.
11528         (mips_split_msa_copy_d): Likewise.
11529         (mips_split_msa_insert_d): Likewise.
11530         (mips_split_msa_fill_d): Likewise.
11531         (mips_expand_msa_branch): Likewise.
11532         (mips_const_vector_same_val_p): Likewise.
11533         (mips_const_vector_same_bytes_p): Likewise.
11534         (mips_const_vector_same_int_p): Likewise.
11535         (mips_const_vector_shuffle_set_p): Likewise.
11536         (mips_const_vector_bitimm_set_p): Likewise.
11537         (mips_const_vector_bitimm_clr_p): Likewise.
11538         (mips_msa_vec_parallel_const_half): Likewise.
11539         (mips_msa_output_division): Likewise.
11540         (mips_ldst_scaled_shift): Likewise.
11541         (mips_expand_vec_cond_expr): Likewise.
11542         * config/mips/mips.c (enum mips_builtin_type): Add
11543         MIPS_BUILTIN_MSA_TEST_BRANCH.
11544         (mips_gen_const_int_vector_shuffle): New prototype.
11545         (mips_const_vector_bitimm_set_p): New function.
11546         (mips_const_vector_bitimm_clr_p): Likewise.
11547         (mips_const_vector_same_val_p): Likewise.
11548         (mips_const_vector_same_bytes_p): Likewise.
11549         (mips_const_vector_same_int_p): Likewise.
11550         (mips_const_vector_shuffle_set_p): Likewise.
11551         (mips_symbol_insns): Forbid loading symbols via immediate for
11552         MSA.
11553         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
11554         stores.
11555         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
11556         MSA.
11557         (mips_lx_address_p): Add support load indexed address for MSA.
11558         (mips_address_insns): Add calculation of instructions needed for
11559         stores and loads for MSA.
11560         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
11561         CONST_VECTOR for MSA and let it fall through.
11562         (mips_ldst_scaled_shift): New function.
11563         (mips_subword_at_byte): Likewise.
11564         (mips_msa_idiv_insns): Likewise.
11565         (mips_legitimize_move): Validate MSA moves.
11566         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
11567         calculation of costs for MSA division.
11568         (mips_split_move_p): Check if MSA moves need splitting.
11569         (mips_split_move): Split MSA moves if necessary.
11570         (mips_split_128bit_move_p): New function.
11571         (mips_split_128bit_move): Likewise.
11572         (mips_split_msa_copy_d): Likewise.
11573         (mips_split_msa_insert_d): Likewise.
11574         (mips_split_msa_fill_d): Likewise.
11575         (mips_output_move): Handle MSA moves.
11576         (mips_expand_msa_branch): New function.
11577         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
11578         Reinstate 'y' modifier.
11579         (mips_file_start): Add MSA .gnu_attribute.
11580         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
11581         FPRs.
11582         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
11583         (mips_class_max_nregs): Add register size for MSA supported mode.
11584         (mips_cannot_change_mode_class): Allow conversion between MSA
11585         vector modes and TImode.
11586         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
11587         instruction.
11588         (mips_secondary_reload_class): Force MSA loads/stores via memory.
11589         (mips_preferred_simd_mode): Add preffered modes for MSA.
11590         (mips_vector_mode_supported_p): Add MSA supported modes.
11591         (mips_autovectorize_vector_sizes): New function.
11592         (mips_msa_output_division): Likewise.
11593         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
11594         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
11595         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
11596         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
11597         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
11598         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
11599         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
11600         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
11601         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
11602         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
11603         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
11604         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
11605         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
11606         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
11607         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
11608         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
11609         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
11610         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
11611         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
11612         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
11613         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
11614         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
11615         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
11616         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
11617         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
11618         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
11619         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
11620         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
11621         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
11622         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
11623         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
11624         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
11625         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
11626         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
11627         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
11628         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
11629         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
11630         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
11631         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
11632         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
11633         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
11634         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
11635         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
11636         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
11637         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
11638         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
11639         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
11640         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
11641         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
11642         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
11643         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
11644         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
11645         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
11646         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
11647         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
11648         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
11649         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
11650         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
11651         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
11652         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
11653         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
11654         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
11655         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
11656         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
11657         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
11658         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
11659         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
11660         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
11661         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
11662         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
11663         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
11664         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
11665         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
11666         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
11667         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
11668         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
11669         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
11670         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
11671         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
11672         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
11673         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
11674         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
11675         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
11676         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
11677         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
11678         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
11679         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
11680         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
11681         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
11682         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
11683         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
11684         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
11685         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
11686         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
11687         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
11688         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
11689         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
11690         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
11691         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
11692         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
11693         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
11694         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
11695         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
11696         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
11697         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
11698         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
11699         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
11700         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
11701         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
11702         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
11703         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
11704         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
11705         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
11706         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
11707         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
11708         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
11709         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
11710         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
11711         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
11712         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
11713         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
11714         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
11715         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
11716         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
11717         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
11718         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
11719         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
11720         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
11721         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
11722         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
11723         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
11724         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
11725         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
11726         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
11727         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
11728         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
11729         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
11730         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
11731         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
11732         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
11733         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
11734         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
11735         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
11736         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
11737         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
11738         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
11739         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
11740         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
11741         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
11742         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
11743         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
11744         move_v builtins.
11745         (mips_get_builtin_decl_index): New array.
11746         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
11747         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
11748         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
11749         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
11750         (mips_init_builtins): Initialize mips_get_builtin_decl_index
11751         array.
11752         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
11753         hook.
11754         (mips_expand_builtin_insn): Prepare operands for
11755         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
11756         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
11757         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
11758         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
11759         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
11760         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
11761         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
11762         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
11763         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
11764         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
11765         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
11766         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
11767         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
11768         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
11769         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
11770         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
11771         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
11772         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
11773         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
11774         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
11775         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
11776         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
11777         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
11778         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
11779         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
11780         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
11781         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
11782         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
11783         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
11784         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
11785         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
11786         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
11787         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
11788         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
11789         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
11790         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
11791         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
11792         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
11793         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
11794         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
11795         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
11796         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
11797         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
11798         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
11799         These are set implicitly and an error is reported if overridden.
11800         (mips_expand_builtin_msa_test_branch): New function.
11801         (mips_expand_msa_shuffle): Likewise.
11802         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
11803         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
11804         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
11805         (mips_expand_vec_unpack): Add support for MSA.
11806         (mips_expand_vector_init): Likewise.
11807         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
11808         instead of const0_rtx.
11809         (mips_msa_vec_parallel_const_half): New function.
11810         (mips_gen_const_int_vector): Likewise.
11811         (mips_gen_const_int_vector_shuffle): Likewise.
11812         (mips_expand_msa_cmp): Likewise.
11813         (mips_expand_vec_cond_expr): Likewise.
11814         * config/mips/mips.h
11815         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
11816         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
11817         specified.
11818         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
11819         (ISA_HAS_MSA): New macro.
11820         (UNITS_PER_MSA_REG): Likewise.
11821         (BITS_PER_MSA_REG): Likewise.
11822         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
11823         (MSA_REG_FIRST): New macro.
11824         (MSA_REG_LAST): Likewise.
11825         (MSA_REG_NUM): Likewise.
11826         (MSA_REG_P): Likewise.
11827         (MSA_REG_RTX_P): Likewise.
11828         (MSA_SUPPORTED_MODE_P): Likewise.
11829         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
11830         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
11831         * config/mips/mips.md: Include mips-msa.md.
11832         (alu_type): Add simd_add.
11833         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
11834         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
11835         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
11836         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
11837         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
11838         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
11839         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
11840         simd_move, simd_load, simd_store.  Choose "multi" for moves
11841         for "qword_mode".
11842         (qword_mode): New attribute.
11843         (insn_count): Add instruction count for quad moves.
11844         Increase the count for MIPS SIMD division.
11845         (UNITMODE): Add UNITMODEs for vector types.
11846         (addsub): New code iterator.
11847         * config/mips/mips.opt (mmsa): New option.
11848         * config/mips/msa.h: New file.
11849         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
11850         specified.
11851         * config/mips/mti-linux.h: Likewise.
11852         * config/mips/predicates.md
11853         (const_msa_branch_operand): New constraint.
11854         (const_uimm3_operand): Likewise.
11855         (const_uimm4_operand): Likewise.
11856         (const_uimm5_operand): Likewise.
11857         (const_uimm8_operand): Likewise.
11858         (const_imm5_operand): Likewise.
11859         (aq10b_operand): Likewise.
11860         (aq10h_operand): Likewise.
11861         (aq10w_operand): Likewise.
11862         (aq10d_operand): Likewise.
11863         (const_m1_operand): Likewise.
11864         (reg_or_m1_operand): Likewise.
11865         (const_exp_2_operand): Likewise.
11866         (const_exp_4_operand): Likewise.
11867         (const_exp_8_operand): Likewise.
11868         (const_exp_16_operand): Likewise.
11869         (const_vector_same_val_operand): Likewise.
11870         (const_vector_same_simm5_operand): Likewise.
11871         (const_vector_same_uimm5_operand): Likewise.
11872         (const_vector_same_uimm6_operand): Likewise.
11873         (const_vector_same_uimm8_operand): Likewise.
11874         (par_const_vector_shf_set_operand): Likewise.
11875         (reg_or_vector_same_val_operand): Likewise.
11876         (reg_or_vector_same_simm5_operand): Likewise.
11877         (reg_or_vector_same_uimm6_operand): Likewise.
11878         * doc/extend.texi (MIPS SIMD Architecture Functions): New
11879         section.
11880         * doc/invoke.texi (-mmsa): Document new option.
11882 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11884         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
11885         * configure: Regenerate.
11886         * config.in: Regenerate.
11887         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
11888         on -fvtable-verify.
11889         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
11890         (ENDFILE_VTV_SPEC): Define.
11892 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
11894         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
11895         registers in all interrupt handlers if necessary.
11896         (rl78_option_override): Add warning.
11897         (MUST_SAVE_MDUC_REGISTERS): New macro.
11898         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
11899         * config/rl78/rl78.c (check_mduc_usage): New function.
11900         (mduc_regs): New structure to hold MDUC register data.
11901         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
11902         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
11903         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
11904         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
11905         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
11906         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
11908 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
11910         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
11911         (tree-ssa-loop-niter.h): Ditto.
11912         (idx_within_array_bound, ref_within_array_bound): New functions.
11913         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
11914         Factor out check on writable base object to ...
11915         (base_object_writable): ... here.
11917 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11919         * config/arm/arm.md (probe_stack): Add modes to set source
11920         and destination.
11922 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
11924         * regrename.c (base_reg_class_for_rename): New static function.
11925         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
11927 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
11929         * cgraph.c (thunk_adjust): Export.
11930         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
11931         * cgraphunit.c (thunk_adjust): Export.
11932         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
11933         thunks.
11934         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
11935         inlinable.
11936         * tree-inline.c (expand_call_inline): Expand thunks inline.
11938 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
11940         PR target/70998
11941         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
11942         (*sse2_vd_cvtss2sd): Ditto.
11943         * config/i386/i386.md
11944         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
11945         Generate *sse2_vd_cvtsd2ss pattern.
11946         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
11947         Generate *sse2_vd_cvtss2sd pattern.
11949 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
11951         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
11952         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
11953         users.
11955 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
11957         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
11958         * config/sh/sh.c: Define and declare variables on first use throughout
11959         the file.
11960         (current_function_interrupt): Change to bool type.
11961         (frame_insn): Rename to emit_frame_insn and update users.
11962         (push_regs): Use bool for 'interrupt_handler' argument.
11963         (save_schedule_s): Remove.
11964         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
11965         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
11966         targetm.asm_out.unaligned_op.di.
11967         (gen_far_branch): Remove redundant forward declaration.
11968         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
11969         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
11970         (sh_set_return_address, sh_function_ok_for_sibcall,
11971         scavenge_reg): Update comments.
11972         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
11973         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
11974         (sh_attr_renesas_p): Remove unnecessary parentheses.
11975         (branch_dest): Simplify.
11976         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
11977         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
11978         (CUMULATIVE_ARGS): Change macro to typedef.
11979         (current_function_interrupt): Change to bool type.
11980         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
11981         Surround with __cplusplus ifdef.
11982         (sh_compare_op0, sh_compare_op1): Remove.
11983         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
11985 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
11987         * config/arm/arm.md: (arch): Add neon.
11988         (arch_enabled): Return yes for arch neon when TARGET_NEON.
11989         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
11990         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
11991         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
11992         attributes for alt renumbering.  Mark alt 3 as non-predicable.
11993         (thumb2_movdf_vfp): Likewise.
11995 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
11997         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
11998         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
11999         (*andqi_1): Add preferred_for_speed attribute to disparage
12000         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
12001         (*<code>qi_1): Ditto.
12002         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
12003         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
12004         (*ashlqi3_1): Ditto.
12005         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
12006         Add preferred_for_size attribute to disparage alternative 0 and
12007         preferred_for_speed attribute to disparage alternative 1 for
12008         TARGET_PARTIAL_REG_STALL targets.
12010 2016-05-07  Tom de Vries  <tom@codesourcery.com>
12012         PR tree-optimization/70956
12013         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
12014         def.
12016 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
12018         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
12019         * config/sh/sh.c (sh_cbranch_distance): Implement it.
12020         * config/sh/sh.md (branch_zero): Remove define_attr.
12021         (define_delay): Disable delay slot if branch distance is one insn.
12023 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
12025         * config/i386/i386.md (LEAMODE): New mode attribute.
12026         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
12027         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
12028         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
12029         operand 2 predicate.
12030         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
12031         (*lea<mode>_general_3): Ditto.
12032         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
12034 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
12036         * genmddump.c (main): Convert argv from char ** to const char **.
12038 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
12040         * coretypes.h (OVERRIDE): New macro.
12041         (FINAL): New macro.
12043 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
12045         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
12046         allow coalescing if the types are compatible.
12048 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
12050         * pass_manager.h (pass_manager::register_pass_name): New method.
12051         (pass_manager::get_pass_by_name): New method.
12052         (pass_manager::create_pass_tab): New method.
12053         (pass_manager::m_name_to_pass_map): New field.
12054         * passes.c (name_to_pass_map): Delete global in favor of field
12055         "m_name_to_pass_map" of pass_manager.
12056         (register_pass_name): Rename from a function to...
12057         (pass_manager::register_pass_name): ...this method, updating
12058         for renaming of global "name_to_pass_map" to field
12059         "m_name_to_pass_map".
12060         (create_pass_tab): Rename from a function to...
12061         (pass_manager::create_pass_tab): ...this method, updating
12062         for renaming of global "name_to_pass_map" to field.
12063         (get_pass_by_name): Rename from a function to...
12064         (pass_manager::get_pass_by_name): ...this method.
12065         (enable_disable_pass): Convert use of get_pass_by_name to
12066         a method call, locating the pass_manager singleton.
12068 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
12070         * genattr-common.c (main): Convert argv from char ** to const char **.
12071         * genattr.c (main): Likewise.
12072         * genattrtab.c (main): Likewise.
12073         * genautomata.c (initiate_automaton_gen): Likewise.
12074         (main): Likewise.
12075         * gencodes.c (main): Likewise.
12076         * genconditions.c (main): Likewise.
12077         * genconfig.c (main): Likewise.
12078         * genconstants.c (main): Likewise.
12079         * genemit.c (main): Likewise.
12080         * genenums.c (main): Likewise.
12081         * genextract.c (main): Likewise.
12082         * genflags.c (main): Likewise.
12083         * genmddeps.c (main): Likewise.
12084         * genopinit.c (main): Likewise.
12085         * genoutput.c (main): Likewise.
12086         * genpeep.c (main): Likewise.
12087         * genpreds.c (main): Likewise.
12088         * genrecog.c (main): Likewise.
12089         * gensupport.c (init_rtx_reader_args_cb): Likewise.
12090         (init_rtx_reader_args): Likewise.
12091         * gensupport.h (init_rtx_reader_args_cb): Likewise.
12092         (init_rtx_reader_args): Likewise.
12093         * gentarget-def.c (main): Likewise.
12094         * read-md.c (read_md_files): Likewise.
12095         * read-md.h (read_md_files): Likewise.
12097 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
12099         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
12100         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
12101         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
12102         Remove unused predicate.
12103         (register_and_not_fp_reg_operand): Ditto.
12105 2016-05-06  Martin Liska  <mliska@suse.cz>
12107         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
12108         instead of vec as the vector is local to the function.
12110 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
12112         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
12113         avx512bw alternative.
12115         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
12116         before the ashr<mode>3 pattern.
12118         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
12119         v instead of x in vex or maybe_vex alternatives, use
12120         maybe_evex instead of vex in prefix.
12122         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
12123         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
12124         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
12125         in vex or maybe_vex alternatives, use maybe_evex instead of vex
12126         in prefix.
12128         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
12129         v instead of x in vex or maybe_vex alternatives, use
12130         maybe_evex instead of vex in prefix.
12132         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
12133         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
12134         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
12135         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
12136         alternatives, use maybe_evex instead of vex in prefix.
12138         * config/i386/sse.md (vec_interleave_lowv4sf,
12139         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
12140         v instead of x in vex or maybe_vex alternatives, use
12141         maybe_evex instead of vex in prefix.
12143         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
12144         v instead of x in vex or maybe_vex alternatives, use
12145         maybe_evex instead of vex in prefix.
12147         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
12148         v constraint instead of x.
12150 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
12152         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
12153         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
12154         equality first.
12156 2016-05-06  Richard Biener  <rguenther@suse.de>
12158         PR tree-optimization/70948
12159         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12160         Properly clobber all fields of va_list for __builtin_va_start.
12162 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
12164         PR debug/70935
12165         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
12166         loop latch destination.
12168 2016-05-06  Martin Liska  <mliska@suse.cz>
12170         * tree-ssa-uninit.c: Apply manual changes
12171         to the GNU coding style.
12172         (prune_uninit_phi_opnds): Rename from
12173         prune_uninit_phi_opnds_in_unrealizable_paths.
12175 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
12177         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
12178         mspace): Remove deprecated options.
12179         * doc/invoke.texi (SH options): Remove -mspace.
12181 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
12183         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
12185 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
12187         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
12188         corresponding combine split pattern.
12190 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
12192         PR target/58219
12193         * config/sh/predicates.md (long_displacement_mem_operand): New.
12194         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
12195         Add movi20, movi20s alternatives.  Adjust length attribute for
12196         alternatives.
12197         (movsi_ie): Allow for any FPU.  Adjust length attribute for
12198         alternatives.
12199         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
12200         attribute for alternatives.
12201         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
12202         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
12203         length attribute for alternatives.
12205 2016-05-06  Richard Biener  <rguenther@suse.de>
12207         PR tree-optimization/70960
12208         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
12210 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
12212         PR target/52933
12213         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
12214         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
12216 2016-05-06  Marek Polacek  <polacek@redhat.com>
12218         PR sanitizer/70875
12219         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
12221 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
12223         PR target/54089
12224         * config/sh/sh.md (*rotcr): Add another variant.
12226 2016-05-06  Richard Biener  <rguenther@suse.de>
12228         PR middle-end/70931
12229         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
12231 2016-05-06  Richard Biener  <rguenther@suse.de>
12233         PR middle-end/70941
12234         * fold-const.c (split_tree): Always convert to the original type
12235         before negating.
12237 2016-05-06  Richard Biener  <rguenther@suse.de>
12239         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
12240         (fwprop_addr): Likewise.
12242 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
12244         PR target/70873
12245         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
12246         New prototype.
12247         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
12248         * config/i386/i386.md (push mem splitter): Use find_constant_src in
12249         the splitter condition.
12250         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
12251         the splitter condition.
12252         (FP float_extend load splitter): Ditto.
12254 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
12256         * config/i386/i386.md (peehole2 patterns): Change true_regnum
12257         to REGNO in all peephole2 patterns.
12258         (post-reload splitters): Change true_regnum to REGNO in
12259         post-reload splitters.
12260         (zero_extend splitters): Use general_reg_operand and
12261         nonimmediate_gr_operand predicates.
12263 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
12265         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
12266         v constraint instead of x.
12268 2016-05-05  Alan Modra  <amodra@gmail.com>
12270         PR target/68662
12271         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
12272         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
12273         TARGET_NO_FP_IN_TOC for -mrelocatable.
12274         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
12275         TARGET_RELOCATABLE test.
12276         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
12277         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
12278         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
12279         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
12280         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
12281         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
12282         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
12283         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
12284         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
12285         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
12286         Likewise.
12287         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
12288         (rs6000_stack_info): Likewise.
12289         (rs6000_elf_asm_out_constructor): Likewise.
12290         (rs6000_elf_asm_out_destructor): Likewise.
12291         (rs6000_elf_declare_function_name): Likewise.
12292         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
12293         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
12294         Don't define.
12296 2016-05-05  Alan Modra  <amodra@gmail.com>
12298         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
12300 2016-05-05  Alan Modra  <amodra@gmail.com>
12302         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
12303         out-of-line gpr restore for one or two regs if that would add
12304         a save of lr.
12306 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
12308         PR target/70873
12309         * config/i386/i386.md
12310         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
12311         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
12312         as operand 0 predicate.
12313         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
12314         Ditto.
12315         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
12316         Ditto.  Emit the pattern using RTX.
12318         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
12319         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
12320         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
12321         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
12322         Ditto.
12323         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
12324         sse_reg_operand as operand 0 predicate.
12326         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
12327         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
12328         instead of gen_rtx_REG.
12329         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
12330         Ditto.
12332 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
12334         * function.c (emit_use_return_register_into_block): Delete.
12335         (gen_return_pattern): Delete.
12336         (emit_return_into_block): Delete.
12337         (active_insn_between): Delete.
12338         (convert_jumps_to_returns): Delete.
12339         (emit_return_for_exit): Delete.
12340         (thread_prologue_and_epilogue_insns): Delete all code dealing with
12341         simple_return for shrink-wrapped blocks.
12342         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
12343         end of blocks that need one.
12344         (get_unconverted_simple_return): Delete.
12345         (convert_to_simple_return): Delete.
12346         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
12347         (convert_to_simple_return): Ditto.
12349 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
12351         * cfgcleanup.c (bb_is_just_return): New function.
12352         (try_optimize_cfg): Simplify jumps to return, branches to return,
12353         and branches around return.
12355 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
12357         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
12358         branch to a return.
12360 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
12362         PR c++/70906
12363         PR c++/70933
12364         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
12365         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
12366         assert flags & OEP_HASH_CHECK, instead of asserting it
12367         never happens.  Handle TARGET_EXPR.
12368         * fold-const.c (operand_equal_p): For hash verification,
12369         or in OEP_HASH_CHECK into flags.
12371 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
12373         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
12374         comment.
12375         (compute_samebase_partition_bases): Fix typo.
12377 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
12379         * config/i386/sse.md (vec_interleave_highv8sf,
12380         vec_interleave_lowv8sf, vec_interleave_highv4df,
12381         vec_interleave_lowv4df): Remove constraints from expanders.
12383         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
12385 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
12387         * tree-inline.c (expand_call_inline): Fix path dealing with
12388         making lhs of call statement undefined.
12390 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
12392         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
12393         Check availability on NODE, too.
12394         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
12395         (cgraph_node::call_for_symbol_and_aliases): Likewise.
12396         (varpool_node::call_for_symbol_and_aliase): Likewise.
12397         * ipa-pure-const.c (add_new_function): Analyze all bodies.
12398         (propagate_pure_const): Propagate across interposable functions, too.
12399         (skip_function_for_local_pure_const): Do not skip interposable bodies
12400         with aliases.
12401         (pass_local_pure_const::execute): Update.
12403 2016-05-04  Marek Polacek  <polacek@redhat.com>
12405         * doc/invoke.texi: Document -Wdangling-else.
12407 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12409         * config.gcc: Error out when conflicting multilib is detected.  Do not
12410         loop over multilibs since no combination is legal.
12412 2016-05-04  Alan Modra  <amodra@gmail.com>
12414         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
12415         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
12416         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
12417         Align .toc.
12419 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
12421         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
12422         Clean up p5600 comments.
12424 2016-05-04  Richard Biener  <rguenther@suse.de>
12426         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
12427         constructor simplifications.
12428         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
12430 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
12432         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
12433         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
12434         result.set_rtx is null instead of aborting.
12435         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
12436         Always enable.
12437         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
12438         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
12439         *mov<mode>_store_postinc): New patterns.
12441 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
12443         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
12444         as commutative.  Check both conversions are NOP.
12445         ((A & B) OP (C & B)): Remove.
12447 2016-05-04  Alan Modra  <amodra@gmail.com>
12449         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
12451 2016-05-04  Alan Modra  <amodra@gmail.com>
12453         PR target/70866
12454         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
12455         when cr2,3,4 are all fixed regs.
12457 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
12459         PR rtl-optimization/57193
12460         * opts.c (default_options_table): Revert OPT_frename_registers change.
12461         * doc/invoke.texi (-frename-registers, -O2): Likewise.
12463 2016-05-03  Martin Sebor  <msebor@redhat.com>
12465         PR c++/66561
12466         * builtins.c (fold_builtin_FILE): New function.
12467         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
12468         (fold_builtin_0): Call them.
12469         * gimplify.c (gimplify_call_expr): Remove the handling of
12470         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
12472         PR c++/66561
12473         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
12474         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
12475         constants.
12477         PR c++/66639
12478         * doc/extend.texi (Function Names as Strings): Update __func__,
12479         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
12480         constants.
12482 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
12483             Richard Biener  <rguenther@suse.de>
12485         PR tree-optimization/70916
12486         * tree-if-conv.c: Include cfganal.h.
12487         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
12488         and remove_fake_exit_edges around the optimization pass.
12490 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
12492         * cgraph.c (symbol_table::create_edge): Set inline_failed.
12493         (cgraph_edge::make_direct): Likewise.
12494         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
12495         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
12496         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
12497         (CIF_THUNK): New code.
12498         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
12499         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
12500         (compute_inline_parameters): Set inline_failed for thunks.
12501         (inline_analyze_function): Cleanup.
12502         * ipa-inline.c (can_inline_edge_p): Do not deal with
12503         call_stmt_cannot_inline_p.
12504         (can_early_inline_edge_p): Likewise.
12505         (early_inliner): Initialize inline_failed.
12506         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
12508 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
12510         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
12511         from nonimm_ssenomem_operand.
12512         (nonimm_ssenomem_operand): New predicate.
12513         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
12514         as operand 0 predicate.
12515         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
12516         Disable unsupported alternatives using "enabled" attribute.
12517         Use register_ssemem_operand as operand 0 predicate.
12518         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
12520 2016-05-03  Marek Polacek  <polacek@redhat.com>
12522         PR c/70859
12523         * input.c (expansion_point_location): New function.
12524         * input.h (expansion_point_location): Declare.
12526 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
12528         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
12529         occurence with frame_offset_ ones.
12531 2016-05-03  Alan Modra  <amodra@gmail.com>
12533         PR rtl-optimization/70890
12534         * ira.c (combine_and_move_insns): When moving def_insn, remove
12535         equivs on use_insn.
12537 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12539         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
12540         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
12541         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
12542         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
12544 2016-05-03  Alan Modra  <amodra@gmail.com>
12546         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
12547         for SAVE_MULTIPLE/STORE_MULTIPLE.
12549 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
12551         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
12552         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
12554 2016-05-03  Richard Biener  <rguenther@suse.de>
12556         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
12557         default true.
12558         (gimplify_arg): Likewise.
12559         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
12560         re-writing the result to a decl if required.
12561         (internal_get_tmp_var): Add allow_ssa parameter
12562         and override into_ssa with it.
12563         (get_formal_tmp_var): Adjust.
12564         (get_initialized_tmp_var): Add allow_ssa parameter.
12565         (gimplify_arg): Add allow_ssa parameter and avoid generating
12566         SSA names for the result false.
12567         (gimplify_call_expr): If the call may return twice do not
12568         gimplify parameters into SSA.
12569         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
12570         (gimplify_modify_expr): Adjust assert.  For noreturn calls
12571         with a SSA name LHS adjust its def.
12572         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
12573         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
12574         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
12575         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
12576         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
12577         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
12578         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
12579         (optimize_target_teams): Do not allow SSA names for clause operands.
12580         (gimplify_expr): Likewise for where we mark the result addressable.
12581         * passes.def (pass_init_datastructures): Remove.
12582         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
12583         (rewrite_stmt): Likewise.
12584         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
12585         (replace_locals_op): Replace SSA names.
12586         (copy_gimple_seq_and_replace_locals): Init src_cfun.
12587         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
12588         * cgraph.c (release_function_body): Free CFG annotations only
12589         when we have a CFG.  Simplify.
12590         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
12591         force_gimple_operand instead of get_initialized_tmp_var.
12592         * tree-pass.h (make_pass_init_datastructures): Remove.
12593         * tree-ssa.c (execute_init_datastructures): Remove.
12594         (pass_data_init_datastructures): Likewise.
12595         (class pass_init_datastructures): Likewise.
12596         (make_pass_init_datastructures): Likewise.
12597         * omp-low.c (create_omp_child_function): Init SSA data structures.
12598         (grid_expand_target_grid_body): Likewise.
12599         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
12600         name before adding it to names_to_release.
12601         (remove_bb): Always release SSA defs.
12602         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
12603         before dereferencing it.
12604         * cgraphunit.c (init_lowered_empty_function): Always
12605         int SSA data structures.
12606         * tree-ssanames.c (release_defs): Remove assert that we are in
12607         SSA form.
12608         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
12610 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
12611             Uros Bizjak  <ubizjak@gmail.com>
12613         PR rtl-optimization/70467
12614         * config/i386/predicates.md (x86_64_hilo_int_operand,
12615         x86_64_hilo_general_operand): New predicates.
12616         * config/i386/constraints.md (Wd): New constraint.
12617         * config/i386/i386.md (mode attr di): Use Wd instead of e.
12618         (general_hilo_operand): New mode attr.
12619         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
12620         instead of <general_operand>.
12621         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
12622         x86_64_hilo_general_operand instead of <general_operand>.
12624 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
12626         PR tree-optimization/70916
12627         * tree-if-conv.c (constant_or_ssa_name): Removed.
12628         (fold_build_cond_expr): Use is_gimple_val instead of
12629         constant_or_ssa_name.
12631         PR tree-optimization/70916
12632         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
12633         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
12635         PR target/49244
12636         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
12637         (optimize_atomic_bit_test_and): New function.
12638         (pass_fold_builtins::execute): Use it.
12639         * optabs.def (atomic_bit_test_and_set_optab,
12640         atomic_bit_test_and_complement_optab,
12641         atomic_bit_test_and_reset_optab): New optabs.
12642         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
12643         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
12644         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
12645         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
12646         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
12647         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
12648         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
12649         * doc/md.texi (atomic_bit_test_and_set@var{mode},
12650         atomic_bit_test_and_complement@var{mode},
12651         atomic_bit_test_and_reset@var{mode}): Document.
12652         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
12653         atomic_bit_test_and_complement<mode>,
12654         atomic_bit_test_and_reset<mode>): New expanders.
12655         (atomic_bit_test_and_set<mode>_1,
12656         atomic_bit_test_and_complement<mode>_1,
12657         atomic_bit_test_and_reset<mode>_1): New insns.
12659 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
12661         PR rtl-optimization/70687
12662         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
12663         instead of unsigned HOST_WIDE_INT.
12665 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
12667         PR rtl-optimization/44281
12668         * hard-reg-set.h (struct target_hard_regs): New field
12669         x_fixed_nonglobal_reg_set.
12670         (fixed_nonglobal_reg_set): New macro.
12671         * reginfo.c (init_reg_sets_1): Initialize it.
12672         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
12673         of fixed_reg_set.
12674         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
12676 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
12678         PR tree-optimization/56541
12679         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
12680         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
12681         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
12682         (any_complicated_phi): new static variable.
12683         (aggressive_if_conv): delete.
12684         (if_convertible_phi_p): support phis with more than two arguments.
12685         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
12686         critical pred edges.
12687         (ifcvt_split_critical_edges): support phis with more than two
12688         arguments by checking new parameter.  only split critical edges
12689         if needed.
12690         (tree_if_conversion): handle simd pragma marked loop using new
12691         local variable aggressive_if_conv.  check any_complicated_phi.
12693 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
12695         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
12696         before using it.
12698 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
12700         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
12701         cbase.
12703 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
12705         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
12706         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
12707         define_insn_and_split.
12708         (mulsi3_i): New define_insn_and_split.
12709         (mulsi3_call): Convert to define_insn.
12710         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
12711         Remove constraints.
12713 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12715         * machmode.h (mode_complex): Add support to give the complex mode
12716         for a given mode.
12717         (GET_MODE_COMPLEX_MODE): Likewise.
12718         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
12719         stored by build_complex_type and gfc_build_complex_type instead of
12720         trying to figure out the appropriate mode based on the size. Raise
12721         an assertion error, if the type was not set.
12722         * genmodes.c (struct mode_data): Add field for the complex type of
12723         the given type.
12724         (blank_mode): Likewise.
12725         (make_complex_modes): Remember the complex mode created in the
12726         base type.
12727         (emit_mode_complex): Write out the mode_complex array to map a
12728         type mode to the complex version.
12729         (emit_insn_modes_c): Likewise.
12730         * tree.c (build_complex_type): Set the complex type to use before
12731         calling layout_type.
12732         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
12733         support for __float128 complex datatypes.
12734         (rs6000_hard_regno_mode_ok): Likewise.
12735         (rs6000_setup_reg_addr_masks): Likewise.
12736         (rs6000_complex_function_value): Likewise.
12737         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
12738         __float128 and __ibm128 complex.
12739         (FLOAT128_IBM_P): Likewise.
12740         (ALTIVEC_ARG_MAX_RETURN): Likewise.
12741         * doc/extend.texi (Additional Floating Types): Document that
12742         -mfloat128 must be used to enable __float128.  Document complex
12743         __float128 and __ibm128 support.
12745 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
12747         PR target/49244
12748         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
12749         char/short arguments promoted to int because of promote_prototypes.
12751 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
12753         * config/i386/predicates.md (register_ssemem_operand): New predicate.
12754         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
12755         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
12756         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
12757         alternatives using "enabled" attribute.  Use register_ssemem_operand
12758         as operand 1 predicate.
12759         (*cmpi<unord>xf_i387): Split XFmode pattern from
12760         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
12761         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
12762         *absneg<mode>2_i387.  Disable unsupported alternatives using
12763         "enabled" attribute.
12764         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
12766 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
12768         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
12769         marker.
12770         (oacc_loop_process): Check mask for loop termination.
12772 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
12774         * cif-code.def (CIF_THUNK): Add.
12775         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
12776         accidental change.
12778 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
12780         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
12781         (dump_inline_summary): Dump it.
12782         (fp_expression_p): New predicate.
12783         (estimate_function_body_sizes): Use it.
12784         (inline_merge_summary): Merge fp_expressions.
12785         (inline_read_section): Read fp_expressions.
12786         (inline_write_summary): Write fp_expressions.
12787         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
12788         codegen boundary if either caller or callee is !fp_expressions.
12789         * ipa-inline.h (inline_summary): Add fp_expressions.
12790         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
12791         to fp_expressions be sure the fp generation flags are updated.
12793 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
12795         PR rtl-optimization/70467
12796         * cse.c (cse_insn): Handle no-op MEM moves after folding.
12798         PR rtl-optimization/70467
12799         * ipa-pure-const.c (check_call): Handle internal calls even in
12800         ipa mode like in local mode.
12802 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12804         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
12806 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
12808         * match.pd (X u< X, X u> X): New transformations.
12810 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
12812         * flag-types.h (enum warn_strict_overflow_code): Move ...
12813         * coretypes.h: ... here.
12814         * fold-const.h (fold_overflow_warning): Declare.
12815         * fold-const.c (fold_overflow_warning): Make non-static.
12816         (fold_comparison): Move the transformation of X +- C1 CMP C2
12817         into X CMP C2 -+ C1 ...
12818         * match.pd: ... here.
12819         * gimple-fold.c (fold_stmt_1): Protect with
12820         fold_defer_overflow_warnings.
12822 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
12824         * omp-low.c (struct oacc_loop): Add 'inner' field.
12825         (new_oacc_loop_raw): Initialize it to zero.
12826         (oacc_loop_fixed_partitions): Initialize it.
12827         (oacc_loop_auto_partitions): Partition outermost loop to outermost
12828         available partitioning.
12830 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
12832         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
12833         register_operand.
12834         (umulsidi3): Likewise.
12835         (indirect_jump): Fix jump instruction assembly patterns.
12837 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
12839         PR target/70860
12840         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
12841         (nvptx_function_value): Assert non-NULL cfun.
12843 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
12845         PR rtl-optimization/70886
12846         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
12848         * cselib.h (rtx_equal_for_cselib_1): Declare.
12849         (rtx_equal_for_cselib_p: New inline function.
12850         * cselib.c (rtx_equal_for_cselib_p): Delete.
12851         (rtx_equal_for_cselib_1): Make public.
12853 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
12855         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
12856         (register_mixssei387nonimm_operand): Remove predicate.
12857         * config/i386/i386.md (*fop_<mode>_comm): Merge from
12858         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
12859         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
12860         for TARGET_MIX_SSE_I387 alternatives.
12861         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
12862         Disable unsupported alternatives using "enabled" attribute.  Use
12863         nonimm_ssenomem_operand as operand 1 predicate.  Also check
12864         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
12866 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
12868         * tree.c (cst_and_fits_in_hwi): Simplify.
12870 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
12872         * tree.h (wi::to_wide): New function.
12873         * expr.c (expand_expr_real_1): Use wi::to_wide.
12874         * fold-const.c (int_const_binop_1): Likewise.
12875         (extract_muldiv_1): Likewise.
12877 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
12879         * wide-int.h: Update offset_int and widest_int documentation.
12880         (WI_SIGNED_SHIFT_RESULT): New macro.
12881         (wi::binary_shift): Define signed_shift_result_type for
12882         shifts on offset_int- and widest_int-like types.
12883         (generic_wide_int): Support <<= and >>= if << and >> are supported.
12884         * tree.h (int_bit_position): Use shift operators instead of wi::
12885          shifts.
12886         * alias.c (adjust_offset_for_component_ref): Likewise.
12887         * expr.c (get_inner_reference): Likewise.
12888         * fold-const.c (fold_comparison): Likewise.
12889         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
12890         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
12891         * tree-dfa.c (get_ref_base_and_extent): Likewise.
12892         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
12893         (stmt_kills_ref_p): Likewise.
12894         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
12895         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
12896         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
12897         (ao_ref_init_from_vn_reference): Likewise.
12899 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
12901         * wide-int.h: Update offset_int and widest_int documentation.
12902         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
12903         (wi::binary_traits): Allow ordered comparisons between offset_int and
12904         offset_int, between widest_int and widest_int, and between either
12905         of these types and basic C types.
12906         (operator <, <=, >, >=): Define for the same combinations.
12907         * tree.h (tree_int_cst_lt): Use comparison operators instead
12908         of wi:: comparisons.
12909         (tree_int_cst_le): Likewise.
12910         * gimple-fold.c (fold_array_ctor_reference): Likewise.
12911         (fold_nonarray_ctor_reference): Likewise.
12912         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
12913         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
12914         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
12915         * tree-sra.c (completely_scalarize): Likewise.
12916         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
12917         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
12918         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
12919         (check_for_binary_op_overflow): Likewise.
12920         (search_for_addr_array): Likewise.
12921         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
12923 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
12925         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
12926         (arc_save_restore): Likewise.
12927         (arc_dwarf_register_span): Likewise.
12928         (arc_output_pic_addr_const): Initialize suffix variable.
12930 2016-05-02  Martin Liska  <mliska@suse.cz>
12932         * symbol-summary.h (function_summary::function_summary):
12933         Remove checking assert for all cgraph nodes.
12934         (function_summary::get): Check summary_uid.
12935         (symtab_insertion): Check summary_uid.
12937 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
12939         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
12940         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
12941         bmaskn instruction.
12942         (arc_dwarf_register_span): Remove enum keyword.
12943         (compact_memory_operand_p): New function.
12944         * config/arc/arc.h (reg_class): Add code density register classes.
12945         (REG_CLASS_NAMES): Likewise.
12946         (REG_CLASS_CONTENTS): Likewise.
12947         * config/arc/arc.md (*movqi_insn): Add code density instructions.
12948         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
12949         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
12950         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
12951         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
12952         constraints.
12953         (h, Rcd, Rsd, Rzd): New register constraints.
12954         (T): Use compact_memory_operand_p function.
12955         * config/arc/predicates.md (compact_load_memory_operand): Remove.
12957 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
12959         * config/sh/sh.md (*negnegt, *movtt): Remove.
12961 2016-05-02  Marek Polacek  <polacek@redhat.com>
12962             Tom de Vries  <tom@codesourcery.com>
12964         PR tree-optimization/70700
12965         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
12966         bigger than FIRST_REF_NODE.
12968 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
12970         PR target/52898
12971         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
12972         TARGET_CMPEQDI_T.
12973         (prepare_cbranch_operands): Don't use scratch register.  Assume that
12974         function is used when pseudos can be created.
12975         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
12976         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
12977         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
12978         define_expand.  Allow it only when pseudos can be created.
12979         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
12981 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
12983         * config/i386/constraints.md (BC): Only allow -1 operands.
12984         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
12985         Add "enabled" attribute.  Update XI mode attribute calculation.
12986         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
12987         (*movoi_internal_avx): Update XI mode attribute calculation.
12988         (*movti_internal): Ditto.
12990 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
12992         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
12993         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
12995 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
12997         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
12998         statement on instruction code.  Remove trailing spaces.
12999         (altivec_expand_stv_builtin): Likewise.
13001 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
13003         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
13004         (TARGET_FPU_DOUBLE): Simplify.
13005         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
13006         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
13007         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
13008         with 'TARGET_FPU_DOUBLE'.
13009         * config/sh/sh.md: Likewise.
13011 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
13013         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
13014         SH_DIV_STR_FOR_SIZE): Remove.
13015         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
13016         SH_DIV_STR_FOR_SIZE): Remove.
13018 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
13020         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
13021         logical_reg_operand): Delete.
13022         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
13023         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
13024         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
13025         match_operand and match_test.
13026         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
13027         variables on their first use.  Return bool values.
13028         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
13029         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
13030         arith_reg_operand for input operand.  Remove empty constraints.
13031         (xorsi3): Delete.
13032         (*xorsi3_compact): Rename to xorsi3.
13033         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
13034         (*zero_extend<mode>si2_disp_mem): Update comment.
13035         (mov_nop): Delete.
13037 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
13039         * config/sh/t-sh: Remove SH5 support.
13040         * config.gcc: Likewise.
13041         * configure: Likewise.
13043 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13045         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
13047 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
13049         * config/sh/sh.c (register_sh_passes, sh_option_override,
13050         sh_print_operand, prepare_move_operands,
13051         sh_can_follow_jump): Remove TARGET_SH1 checks.
13052         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
13053         PROMOTE_MODE): Likewise.
13054         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
13055         movdi): Likewise.
13057 2016-04-30  Alan Modra  <amodra@gmail.com>
13059         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
13060         restoring when fixed_reg_p, but allow out-of-line or stmw save.
13061         Check for user regs later to avoid unnecessary looping over regs.
13062         Merge user reg check with non-saved reg check.  Don't force
13063         inline VR restore when static chain used.
13064         (rs6000_frame_related): Omit eh_frame info for user regs when
13065         saving.
13066         (fixed_regs_p): Delete.
13068 2016-04-30  Alan Modra  <amodra@gmail.com>
13070         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
13071         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
13072         Update all uses.
13074 2016-04-30  Alan Modra  <amodra@gmail.com>
13076         PR target/69645
13077         * config/rs6000/rs6000.c (fixed_reg_p): New function.
13078         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
13079         Update all uses.
13081 2016-04-30  Alan Modra  <amodra@gmail.com>
13083         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13084         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
13085         flag_pic test for Darwin.
13087 2016-04-30  Alan Modra  <amodra@gmail.com>
13089         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
13090         throw_calls_crossed.
13091         (REG_FREQ_CALLS_CROSSED): Delete.
13092         (REG_N_THROWING_CALLS_CROSSED): Delete.
13093         * regstat.c (regstat_bb_compute_ri): Don't calculate
13094         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
13095         (dump_reg_info): Don't print call cross frequency.
13096         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
13097         and REG_N_THROWING_CALLS_CROSSED.
13099 2016-04-30  Alan Modra  <amodra@gmail.com>
13101         * regs.h (struct reg_info_t): Delete live_length.
13102         (REG_LIVE_LENGTH): Delete macro.
13103         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
13104         local_live, local_processed and local_live_last_luid params.
13105         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
13106         Formatting fixes.
13107         (regstat_compute_ri): Adjust for above.  Don't set
13108         REG_LIVE_LENGTH.
13109         (dump_reg_info): Don't print live length.
13110         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
13111         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
13112         Localize loop_depth var.
13114 2016-04-30  Alan Modra  <amodra@gmail.com>
13116         * ira.c (enum valid_equiv): New.
13117         (validate_equiv_mem): Return enum.
13118         (update_equiv_mem): Create replacement in more cases.
13119         (add_store_equivs): Update validate_equiv_mem call.
13121 2016-04-30  Alan Modra  <amodra@gmail.com>
13123         * ira.c (combine_and_move_insns): Rather than scanning insns,
13124         use DF infrastucture to find use and def insns.
13126 2016-04-30  Alan Modra  <amodra@gmail.com>
13128         ira.c (combine_and_move_insns): Move invariant conditions..
13129         (ira.c): ..to here.  Call combine_and_move_insns before
13130         add_store_equivs.  Call grow_reg_equivs later.  Allocate
13131         req_equiv later using max_reg_num() rather than global max_regno.
13132         (contains_replace_regs): Delete.
13133         (add_store_equivs): Remove contains_replace_regs test.
13135 2016-04-30  Alan Modra  <amodra@gmail.com>
13137         * ira.c (struct equiv_mem_data): New.
13138         (equiv_mem, equiv_mem_modified): Delete static vars.
13139         (validate_equiv_mem_from_store): Use "data" param to communicate..
13140         (validate_equiv_mem): ..from here.
13142 2016-04-30  Alan Modra  <amodra@gmail.com>
13144         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
13145         split out from..
13146         (update_reg_equivs): ..here.  Move allocation and freeing of
13147         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
13148         end_alias_analysis to..
13149         (ira): ..here.
13151 2016-04-30  Alan Modra  <amodra@gmail.com>
13153         * ira.c (pdx_subregs): Delete.
13154         (struct equivalence): Add pdx_subregs field.
13155         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
13156         pdx_subregs access.
13157         (update_equiv_regs): Don't create or free pdx_subregs.  Update
13158         pdx_subregs access.
13160 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13162         * config/rs6000/altivec.h: Change definitions of vec_xl and
13163         vec_xst.
13164         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
13165         (LD_ELEMREV_V2DI): New.
13166         (LD_ELEMREV_V4SF): New.
13167         (LD_ELEMREV_V4SI): New.
13168         (LD_ELEMREV_V8HI): New.
13169         (LD_ELEMREV_V16QI): New.
13170         (ST_ELEMREV_V2DF): New.
13171         (ST_ELEMREV_V2DI): New.
13172         (ST_ELEMREV_V4SF): New.
13173         (ST_ELEMREV_V4SI): New.
13174         (ST_ELEMREV_V8HI): New.
13175         (ST_ELEMREV_V16QI): New.
13176         (XL): New.
13177         (XST): New.
13178         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13179         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
13180         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
13181         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
13182         (altivec_expand_builtin): Add handling for
13183         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
13184         (rs6000_invalid_builtin): Add error-checking for
13185         RS6000_BTM_P9_VECTOR.
13186         (altivec_init_builtins): Define builtins used to implement vec_xl
13187         and vec_xst.
13188         (rs6000_builtin_mask_names): Define power9-vector.
13189         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
13190         (RS6000_BTM_P9_VECTOR): Define.
13191         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
13192         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
13193         (vsx_ld_elemrev_v2df): Likewise.
13194         (vsx_ld_elemrev_v4sf): Likewise.
13195         (vsx_ld_elemrev_v4si): Likewise.
13196         (vsx_ld_elemrev_v8hi): Likewise.
13197         (vsx_ld_elemrev_v16qi): Likewise.
13198         (vsx_st_elemrev_v2df): Likewise.
13199         (vsx_st_elemrev_v2di): Likewise.
13200         (vsx_st_elemrev_v4sf): Likewise.
13201         (vsx_st_elemrev_v4si): Likewise.
13202         (vsx_st_elemrev_v8hi): Likewise.
13203         (vsx_st_elemrev_v16qi): Likewise.
13204         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
13205         grammar.
13207 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
13209         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
13210         out into ...
13211         (simplify_control_stmt_condition_1): ... here.  Recurse into
13212         BIT_AND_EXPRs and BIT_IOR_EXPRs.
13214 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
13216         PR target/69810
13217         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
13218         (zero_extendqi<mode>2_dot): Revert earlier conversion from
13219         define_insn_and_split to define_insn.
13220         (zero_extendqi<mode>2_dot2): Same.
13221         (extendqi<mode>2_dot): Same.
13222         (extendqi<mode>2_dot2): Same.
13224 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
13226         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
13227         (probe_stack): New expander.
13228         (probe_stack_<mode>): New insn pattern.
13230 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
13232         * config/i386/i386.md
13233         (operations with memory inputs setting flags peephole2):
13234         Remove uneeded REG_P checks.  Cleanup pattern generation.
13236 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
13238         * tree-vect-loop.c (vect_transform_loop): Fix
13239         nb_iterations_upper_bound computation for vectorized loop.
13241 2016-04-29  Marek Polacek  <polacek@redhat.com>
13242             Jakub Jelinek  <jakub@redhat.com>
13244         PR sanitizer/70342
13245         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
13246         TARGET_EXPR_SLOT as a base.
13248 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
13250         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
13251         with 'rCm2' constraints to limit possible immediate size.
13252         (*load_zeroextendqisi_update): Likewise.
13253         (*load_signextendqisi_update): Likewise.
13254         (*loadhi_update): Likewise.
13255         (*load_zeroextendhisi_update): Likewise.
13256         (*load_signextendhisi_update): Likewise.
13257         (*loadsi_update): Likewise.
13258         (*loadsf_update): Likewise.
13260 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
13262         * config/i386/predicates.md (constm1_operand): Fix comparison.
13264 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
13266         * testsuite/gcc.target/arc/ieee_eq.c: New test.
13268 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
13270         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
13271         remaining SH5 related settings.
13272         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
13273         shmedia_prepare_call_address): Delete.
13274         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
13275         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
13276         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
13277         UNSUPPORTED_SH2A): Remove m5 checks.
13278         (sh_divide_strategy_e): Remove SH5 division strategies.
13279         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
13280         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
13282 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13284         * config/s390/s390.c (s390_rtx_costs): Update documentation.
13286 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13288         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
13289         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
13290         Change lder to ldr.
13291         * config/s390/vector.md ("mov<mode>"): Likewise.
13293 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
13295         * config/s390/constraints.md ("U", "W"): Invoke
13296         s390_mem_constraint with "ZR" and "ZT".
13297         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
13298         addresses when using LRA.  Accept also short displacements for S
13299         and T constraints.  Do not check for long displacement target for
13300         S and T constraints.
13301         (s390_mem_constraint): Remove handling of U and W constraints.
13302         * config/s390/s390.md (various patterns): Remove the short
13303         displacement constraints (Q and R) if a long displacement
13304         constraint is present.  Add longdisp as required CPU capability.
13305         * config/s390/vector.md: Likewise.
13306         * config/s390/vx-builtins.md: Likewise.
13308 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13310         PR target/60040
13311         * reload1.c (reload): Call finish_spills before
13312         restarting reload loop. Skip select_reload_regs
13313         if update_eliminables_and_spill returns true.
13315 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
13317         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
13318         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
13319         (umulhisi3_imm): Update predicates and constraint letters.
13320         (umulhisi3_reg): Declare instruction as commutative.
13321         * config/arc/constraints.md (J12, J16): New constraints.
13322         * config/arc/predicates.md (short_unsigned_const_operand): New
13323         predicate.
13324         (arc_short_operand): Likewise.
13325         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
13327 2016-04-29  Richard Biener  <rguenther@suse.de>
13329         PR tree-optimization/13962
13330         PR tree-optimization/65686
13331         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
13332         * tree-ssa-alias.c (ptrs_compare_unequal): New function
13333         using PTA to compare pointers.
13334         * match.pd: Add pattern for pointer equality compare simplification
13335         using ptrs_compare_unequal.
13337 2016-04-29  Richard Biener  <rguenther@suse.de>
13339         * stor-layout.c (layout_type): Do not build a pointer-to-element
13340         type for arrays.
13342 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
13344         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
13345         Use SWI mode iterator.  Use general_reg_operand predicate.
13346         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
13347         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
13348         predicates.
13350 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
13352         PR middle-end/70843
13353         * fold-const.c (operand_equal_p): Don't verify hash value equality
13354         if arg0 == arg1.
13355         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
13356         and OMP_CLAUSE.
13358 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
13360         PR target/70858
13361         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
13362         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
13363         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
13364         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
13365         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
13367 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
13369         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
13370         to info.  Don't initialize separate fields to 0.  Clean up
13371         formatting a bit.
13373 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
13375         * config/i386/i386.md (peephole2s for operations with memory inputs):
13376         Use SWI mode iterator.
13377         (peephole2s for operations with memory outputs): Ditto.
13378         Do not check for stack checking probe.
13380         (probe_stack): Remove expander.
13382 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
13383             Andrew Burgess  <andrew.burgess@embecosm.com>
13385         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
13386         operands as 32-bits.
13388 2016-04-28  Jason Merrill  <jason@redhat.com>
13390         * gdbinit.in: Skip line-map.h.
13392 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
13393             Andrew Burgess  <andrew.burgess@embecosm.com>
13395         * config/arc/arc.c (arc_conditional_register_usage): Take
13396         TARGET_RRQ_CLASS into account.
13397         (arc_print_operand): Support printing 'p' and 's' operands.
13398         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
13399         as 0.
13400         (TARGET_RRQ_CLASS): Define.
13401         (IS_POWEROF2_OR_0_P): Define.
13402         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
13403         alternatives.
13404         (*tst_movb): New define_insn.
13405         (*tst): Avoid recognition if it could prevent '*tst_movb'
13406         combination; replace c/CnL with c/Chs alternative.
13407         (*tst_bitfield_tst): New define_insn.
13408         (*tst_bitfield_asr): New define_insn.
13409         (*tst_bitfield): New define_insn.
13410         (andsi3_i): Add Rrq variant.
13411         (extzv): New define_expand.
13412         (insv): New define_expand.
13413         (*insv_i): New define_insn.
13414         (*movb): New define_insn.
13415         (*movb_signed): New define_insn.
13416         (*movb_high): New define_insn.
13417         (*movb_high_signed): New define_insn.
13418         (*movb_high_signed + 1): New define_split pattern.
13419         (*mrgb): New define_insn.
13420         (*mrgb + 1): New define_peephole2 pattern.
13421         (*mrgb + 2): New define_peephole2 pattern.
13422         * config/arc/arc.opt (mbitops): New option for nps400, uses
13423         TARGET_NPS_BITOPS_DEFAULT.
13424         * config/arc/constraints.md (q): Make register class conditional.
13425         (Rrq): New register constraint.
13426         (Chs): New constraint.
13427         (Clo): New constraint.
13428         (Chi): New constraint.
13429         (Cbf): New constraint.
13430         (Cbn): New constraint.
13431         (C18): New constraint.
13432         (Cbi): New constraint.
13434 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
13436         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
13437         dst->popcount.
13438         (bitmap_intersection_of_preds): Ditto.
13439         (bitmap_union_of_succs): Ditto.
13440         (bitmap_union_of_preds): Ditto.
13441         * sbitmap.c (do_popcount): Delete.
13442         (BITMAP_DEBUGGING): Delete.
13443         (sbitmap_verify_popcount): Delete.
13444         (sbitmap_alloc): Don't initialize the popcount field.
13445         (sbitmap_alloc_with_popcount): Delete.
13446         (sbitmap_resize): Don't resize the popcount array.
13447         (sbitmap_vector_alloc): Don't initialize the popcount field.
13448         (bitmap_copy): Don't copy the popcount array.
13449         (bitmap_clear): Don't clear the popcount array.
13450         (bitmap_clear): Delete the popcount array handling.
13451         (bitmap_ior_and_compl): Delete the popcount assert.
13452         (bitmap_not): Ditto.
13453         (bitmap_and_compl): Ditto.
13454         (bitmap_and): Delete the popcount array handling.
13455         (bitmap_xor): Ditto.
13456         (bitmap_ior): Ditto.
13457         (bitmap_or_and): Delete the popcount assert.
13458         (bitmap_and_or): Ditto.
13459         (popcount_table): Delete.
13460         (sbitmap_elt_popcount): Delete.
13461         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
13462         (bitmap_set_bit): Delete the popcount assert.
13463         (bitmap_clear_bit): Ditto.
13464         (sbitmap_free): Don't free the popcount array.
13465         (sbitmap_alloc_with_popcount): Delete declaration.
13466         (sbitmap_popcount): Ditto.
13468 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
13469             Andrew Burgess  <andrew.burgess@embecosm.com>
13471         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
13472         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
13473         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
13474         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
13475         * config/arc/arc.opt (mcmem): New option.
13476         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
13477         supply length for r/m alternative.
13478         (*extendqisi2_ac): Likewise.
13479         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
13480         r/Uex alternative.
13481         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
13482         (movhi_insn): Likewise.
13483         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
13484         (*zero_extendqihi2_i): Add r/Ucm alternative.
13485         (*zero_extendqisi2_ac): Likewise.
13486         (*zero_extendhisi2_i): Likewise.
13487         * config/arc/constraints.md (Uex): New memory constraint.
13488         (Ucm): New define_constraint.
13489         * config/arc/predicates.md (long_immediate_loadstore_operand):
13490         Return 0 for MEM with cmem_address address.
13491         (cmem_address_0): New predicates.
13492         (cmem_address_1): Likewise.
13493         (cmem_address_2): Likewise.
13494         (cmem_address): Likewise.
13496 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
13498         * config/rs6000/rs6000.c (machine_function): Rename
13499         insn_chain_scanned_p to spe_insn_chain_scanned_p.
13500         (rs6000_stack_info): Adjust.
13502 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
13503             Andrew Burgess  <andrew.burgess@embecosm.com>
13505         * config/arc/constraints.md (Usd): Convert to define_constraint.
13506         (Us<): Likewise.
13507         (Us>): Likewise.
13509 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
13511         PR target/70821
13512         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
13513         Add new peephole2 where the first insn is *mov<mode>_or instead of
13514         *mov<mode>_internal.
13516 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
13518         * tracer.c (bb_seen): Make static.
13520 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
13522         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
13523         support, setup defaults.
13524         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
13525         * config/arc/arc.c (arc_init): Add NPS400 support.
13526         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
13527         (TARGET_ARC700): NPS400 is also an ARC700.
13528         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
13530 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
13532         PR target/70668
13533         * config/nds32/nds32.md (casesi): Don't access the operands array
13534         out of bounds.
13536 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
13538         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
13539         (or $-1,reg peephole2): Ditto.
13540         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
13542 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
13544         * doc/extend.texi (Common Function Attributes) [optimize]:
13545         Discourage use of the optimize attribute.
13547 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
13549         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
13550         special case builtin.
13551         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
13552         ALTIVEC_BUILTIN_VEC_ADDE.
13553         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
13554         support for ALTIVEC_BUILTIN_VEC_ADDE.
13555         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
13556         for __builtin_vec_adde.
13558 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
13560         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
13561         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
13563 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13565         PR testsuite/70595
13566         * doc/sourcebuild.texi (Effective-Target Keywords, Other
13567         attributes): Document cilkplus_runtime.
13569 2016-04-28  Martin Jambor  <mjambor@suse.cz>
13571         * tree-cfg.c (verify_expr): Verify that local declarations belong to
13572         this function.  Call verify_expr on MEM_REFs and bases of other
13573         handled_components.
13575 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13577         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
13578         for WORD_REGISTER_OPERATIONS to runtime check.
13580 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
13582         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
13584 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
13586         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
13587         big-endian compilation.
13588         * config/arc/arc.md (addf3): Likewise.
13589         (subdf3): Likewise.
13590         (muldf3): Likewise.
13592 2016-04-28  Richard Biener  <rguenther@suse.de>
13594         PR tree-optimization/70840
13595         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
13596         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
13597         Mark x * pow(x,c) -> pow(x,c+1) commutative.
13598         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
13600 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13602         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
13603         and explain why in a comment.
13605 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
13607         * config/arc/arc.md (cpu_facility): Add fpx variant.
13608         (subdf3): Prohibit use reverse sub when assist operations option
13609         is enabled.
13610         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
13611         instructions only when FPX is enabled.
13612         * testsuite/gcc.target/arc/trsub.c: New test.
13614 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
13616         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
13617         mult_operator when calculating "type" attribute.
13618         (*fop_<mode>_1_i387): Ditto.
13619         (*fop_xf_1_i387): Ditto.
13620         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
13621         Use std::swap to swap operands.  Use RTL expressions to generate
13622         converted pattern.
13624 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
13625             Joern Rennecke  <joern.rennecke@embecosm.com>
13627         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
13628         declaration.
13629         (emit_pic_move): Remove.
13630         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
13631         * config/arc/arc.c (emit_pic_move): Removed.
13632         (TARGET_HAVE_TLS): Define.
13633         (arc_conditional_register_usage): Test for arc_tp_regno.
13634         (arc_print_operand, arc_print_operand_address): Handle TLS
13635         unspecs.
13636         (arc_needs_pcl_p): New function.
13637         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
13638         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
13639         (arc_raw_symbolic_reference_mentioned_p): Likewise.
13640         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
13641         (arc_legitimize_tls_address): Likewise.
13642         (DTPOFF_ZERO_SYM): Define.
13643         (arc_legitimize_pic_address): Make it static, handle TLS cases.
13644         (arc_output_pic_addr_const): Print TLS unspecs.
13645         (prepare_pic_move): New function, replaces emit_pic_move.
13646         (arc_legitimate_constant_p): Handle TLS unspecs.
13647         (arc_legitimate_address_p): Likewise.
13648         (arc_rewrite_small_data_p): Use assert for TLS constants.
13649         (prepare_move_operands): Use prepare_pic_move.
13650         (arc_legitimize_address): Legitimize tls addresses.
13651         (arc_epilogue_uses): Check for arc_tp_regno.
13652         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
13653         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
13654         Define.
13655         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
13656         Likewise.
13657         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
13658         %(arc_tls_extra_start_spec).
13659         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
13660         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
13661         (EH_USES): Define.
13662         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
13663         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
13664         (UNSPEC_TLS_OFF): Add.
13665         (R10_REG): Define.
13666         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
13667         (get_thread_pointersi): New patterns.
13668         * config/arc/arc.opt (mtp-regno): New option.
13669         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
13670         (move_dest_operand): Likewise.
13671         * configure: Regenerate.
13672         * configure.ac: Add arc*-*-* case to test for tls.
13673         * doc/invoke.texi (ARC options): Document mtp-regno.
13675 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
13677         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
13678         the new ARC HS SIMD instructions.
13679         (arc_preferred_simd_mode): New function.
13680         (arc_autovectorize_vector_sizes): Likewise.
13681         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
13682         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13683         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
13684         (arc_init_builtins): Add new SIMD builtin types.
13685         (arc_split_move): Handle 64 bit vector moves.
13686         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
13687         (TARGET_PLUS_QMACW): Define.
13688         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
13689         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
13690         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
13691         (VSUBADD4H): New builtins.
13692         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
13693         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
13695 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
13696             Matthias Klose  <doko@debian.org>
13698         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
13700 2016-04-28  Richard Biener  <rguenther@suse.de>
13702         PR middle-end/70777
13703         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
13704         canonicalization.
13706 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
13708         * common/config/sh/sh-common.c: Remove SH5 support.
13709         * config/sh/constraints.md: Likewise.
13710         * config/sh/config/sh/elf.h: Likewise.
13711         * config/sh/linux.h: Likewise.
13712         * config/sh/netbsd-elf.h: Likewise.
13713         * config/sh/predicates.md: Likewise.
13714         * config/sh/sh-c.c: Likewise.
13715         * config/sh/sh-protos.h: Likewise.
13716         * config/sh/sh.c: Likewise.
13717         * config/sh/sh.h: Likewise.
13718         * config/sh/sh.md: Likewise.
13719         * config/sh/sh.opt: Likewise.
13720         * config/sh/sync.md: Likewise.
13721         * config/sh/sh64.h: Delete.
13722         * config/sh/shmedia.h: Likewise.
13723         * config/sh/shmedia.md: Likewise.
13724         * config/sh/sshmedia.h: Likewise.
13725         * config/sh/t-netbsd-sh5-64: Likewise.
13726         * config/sh/t-sh64: Likewise.
13727         * config/sh/ushmedia.h: Likewise.
13729 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
13731         * config/i386/i386.md (sign_extend to memory peephole2s): Use
13732         general_reg_operand instead of register_operand predicate.
13734 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13736         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
13738 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
13740         * match.pd (A - B > A, A + B < A): New transformations.
13742 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
13744         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
13745         which defaults to true.  Emit an outer pair of parentheses only if
13746         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
13747         don't emit parentheses for the right-hand operand.
13749 2016-04-27  Jeff Law  <law@redhat.com>
13751         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
13753 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13755         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
13756         (altivec_lvx_<mode>_internal): Document.
13757         (altivec_lvx_<mode>_2op): New define_insn.
13758         (altivec_lvx_<mode>_1op): Likewise.
13759         (altivec_lvx_<mode>_2op_si): Likewise.
13760         (altivec_lvx_<mode>_1op_si): Likewise.
13761         (altivec_stvx_<mode>): Remove.
13762         (altivec_stvx_<mode>_internal): Document.
13763         (altivec_stvx_<mode>_2op): New define_insn.
13764         (altivec_stvx_<mode>_1op): Likewise.
13765         (altivec_stvx_<mode>_2op_si): Likewise.
13766         (altivec_stvx_<mode>_1op_si): Likewise.
13767         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13768         Expand vec_ld and vec_st during parsing.
13769         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
13770         changes.
13771         (altivec_expand_stvx_be): Likewise.
13772         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
13773         address-masking behavior in RTL.
13774         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
13775         address-masking behavior in RTL.
13776         (altivec_expand_builtin): Change builtin code arguments for calls
13777         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
13778         (insn_is_swappable_p): Avoid incorrect swap optimization in the
13779         presence of lvx/stvx patterns.
13780         (alignment_with_canonical_addr): New function.
13781         (alignment_mask): Likewise.
13782         (find_alignment_op): Likewise.
13783         (recombine_lvx_pattern): Likewise.
13784         (recombine_stvx_pattern): Likewise.
13785         (recombine_lvx_stvx_patterns): Likewise.
13786         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
13787         stvx patterns from expand.
13788         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
13789         expansions.
13790         (vector_altivec_store_<mode>): Likewise.
13792 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
13794         * config/aarch64/aarch64.md
13795         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
13796         remove the "fp" attributes.
13797         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
13798         add the "simd" attributes.
13799         (*movdf_aarch64): Likewise.
13800         (*movtf_aarch64): Remove the "fp" attributes.
13801         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
13802         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
13804 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
13806         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
13807         rtx to rtx_code_label *.
13808         * rtl.h (maybe_set_first_label_num): Likewise.
13810 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
13812         * df-core.c (df_add_problem): Make the problem param be const.
13813         (df_remove_problem): Make local "problem" be const.
13814         * df-problems.c (problem_RD): Make const.
13815         (problem_LR): Likewise.
13816         (problem_LIVE): Likewise.
13817         (problem_MIR): Likewise.
13818         (problem_CHAIN): Likewise.
13819         (problem_WORD_LR): Likewise.
13820         (problem_NOTE): Likewise.
13821         (problem_MD): Likewise.
13822         * df-scan.c (problem_SCAN): Likewise.
13823         * df.h (struct df_problem): Make field "dependent_problem" be
13824         const.
13825         (struct dataflow): Likewise for field "problem".
13826         (df_add_problem): Make param const.
13828 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
13830         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
13831         inter-unit moves to/from vector registers are enabled.  Do not disable
13832         for TARGET_MMX.
13834 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
13836         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
13837         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
13838         #define to...
13839         (enum df_problem_id): ...this new enum.
13840         (struct df_problem): Convert field "id" from "int" to
13841         enum df_problem_id.
13843 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
13845         * rtl.def: Update comment for "things in the instruction chain" to
13846         reflect the removal of the leading "i" field for INSN_UID in
13847         r210360.  Fix bogus apostrophe.
13849 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
13851         * config/i386/i386.md
13852         (lea arith with mem operand + setcc peephole2): Set operator mode.
13854 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
13856         PR target/70155
13857         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
13858         (dimode_scalar_to_vector_candidate_p): This.
13859         (timode_scalar_to_vector_candidate_p): New function.
13860         (scalar_to_vector_candidate_p): Likewise.
13861         (timode_check_non_convertible_regs): Likewise.
13862         (timode_remove_non_convertible_regs): Likewise.
13863         (remove_non_convertible_regs): Likewise.
13864         (remove_non_convertible_regs): Renamed to ...
13865         (dimode_remove_non_convertible_regs): This.
13866         (scalar_chain::~scalar_chain): Make it virtual.
13867         (scalar_chain::compute_convert_gain): Make it pure virtual.
13868         (scalar_chain::mark_dual_mode_def): Likewise.
13869         (scalar_chain::convert_insn): Likewise.
13870         (scalar_chain::convert_registers): Likewise.
13871         (scalar_chain::add_to_queue): Make it protected.
13872         (scalar_chain::emit_conversion_insns): Likewise.
13873         (scalar_chain::replace_with_subreg): Likewise.
13874         (scalar_chain::replace_with_subreg_in_insn): Likewise.
13875         (scalar_chain::convert_op): Likewise.
13876         (scalar_chain::convert_reg): Likewise.
13877         (scalar_chain::make_vector_copies): Likewise.
13878         (scalar_chain::convert_registers): New pure virtual function.
13879         (class dimode_scalar_chain): New class.
13880         (class timode_scalar_chain): Likewise.
13881         (scalar_chain::mark_dual_mode_def): Renamed to ...
13882         (dimode_scalar_chain::mark_dual_mode_def): This.
13883         (timode_scalar_chain::mark_dual_mode_def): New function.
13884         (timode_scalar_chain::convert_insn): Likewise.
13885         (dimode_scalar_chain::convert_registers): Likewise.
13886         (scalar_chain::compute_convert_gain): Renamed to ...
13887         (dimode_scalar_chain::compute_convert_gain): This.
13888         (scalar_chain::replace_with_subreg): Renamed to ...
13889         (dimode_scalar_chain::replace_with_subreg): This.
13890         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
13891         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
13892         (scalar_chain::make_vector_copies): Renamed to ...
13893         (dimode_scalar_chain::make_vector_copies): This.
13894         (scalar_chain::convert_reg): Renamed to ...
13895         (dimode_scalar_chain::convert_reg ): This.
13896         (scalar_chain::convert_op): Renamed to ...
13897         (dimode_scalar_chain::convert_op): This.
13898         (scalar_chain::convert_insn): Renamed to ...
13899         (dimode_scalar_chain::convert_insn): This.
13900         (scalar_chain::convert): Call convert_registers.
13901         (convert_scalars_to_vector): Change to scalar_chain pointer to
13902         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
13903         in 32-bit mode.  Delete scalar_chain pointer.  Call
13904         free_dominance_info in 64-bit mode.
13905         (pass_stv::gate): Remove TARGET_64BIT check.
13906         (ix86_option_override): Put the 64-bit STV pass before the CSE
13907         pass.
13909 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
13911         * dwarf2out.h (struct dw_loc_descr_node): Remove the
13912         dw_loc_frame_offset field.
13913         * dwarf2out.c (new_loc_descr): Likewise.
13914         (resolve_args_picking_1): Turn the VISITED hash set into a
13915         FRAME_OFFSET hash map. Use it to associate a frame offset to
13916         visited nodes. Remove uses of the CHECKING_P macro.
13917         (resolve_args_picking): Update call to resolve_args_picking_1.
13919 2016-04-27  Martin Liska  <mliska@suse.cz>
13921         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
13922         (free_loop_data): Release vuses of groups.
13924 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
13926         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
13927         instead of redundant use_id and boolean have_use_for.
13928         (struct iv_use): Change sub_id into group_id.  Remove field next.
13929         Move fields: related_cands, n_map_members, cost_map and selected
13930         to ...
13931         (struct iv_group): ... here.  New structure.
13932         (struct iv_common_cand): Use structure declaration directly.
13933         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
13934         (MAX_CONSIDERED_USES): Rename macro to ...
13935         (MAX_CONSIDERED_GROUPS): ... here.
13936         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
13937         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
13938         (dump_uses): Rename to ...
13939         (dump_groups): ... here.  Update all uses.
13940         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
13941         (find_induction_variables): Refactor format of dump information.
13942         (record_sub_use): Delete.
13943         (record_use): Update all uses.
13944         (record_group): New function.
13945         (record_group_use, find_interesting_uses_op): Call above functions.
13946         Update all uses.
13947         (find_interesting_uses_cond): Ditto.
13948         (group_compare_offset): New function.
13949         (split_all_small_groups): Rename to ...
13950         (split_small_address_groups_p): ... here.  Update all uses.
13951         (split_address_groups):  Update all uses.
13952         (find_interesting_uses): Refactor format of dump information.
13953         (add_candidate_1): Update all uses.  Remove redundant check on iv,
13954         base and step.
13955         (add_candidate, record_common_cand): Remove redundant assert.
13956         (add_iv_candidate_for_biv): Update use.
13957         (add_iv_candidate_derived_from_uses): Update all uses.
13958         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
13959         (alloc_use_cost_map): Ditto.
13960         (set_use_iv_cost, get_use_iv_cost): Rename to ...
13961         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
13962         (determine_use_iv_cost_generic): Ditto.
13963         (determine_group_iv_cost_generic): Ditto.
13964         (determine_use_iv_cost_address): Ditto.
13965         (determine_group_iv_cost_address): Ditto.
13966         (determine_use_iv_cost_condition): Ditto.
13967         (determine_group_iv_cost_cond): Ditto.
13968         (determine_use_iv_cost): Ditto.
13969         (determine_group_iv_cost): Ditto.
13970         (set_autoinc_for_original_candidates): Update all uses.
13971         (find_iv_candidates): Update all uses.  Refactor dump information.
13972         (determine_use_iv_costs): Ditto.
13973         (determine_iv_costs): Ditto.
13974         (iv_ca_cand_for_use): Rename to ...
13975         (iv_ca_cand_for_group): ... here.  Update all uses.
13976         (iv_ca_add_use, iv_ca_add_group): Ditto.
13977         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
13978         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
13979         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
13980         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
13981         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
13982         (create_new_iv, adjust_iv_update_pos): Ditto.
13983         (rewrite_use_address): Delete.
13984         (rewrite_use_address_1): Rename to ...
13985         (rewrite_use_address): ... here.
13986         (rewrite_use_compare): Update all uses.
13987         (rewrite_use): Delete.
13988         (rewrite_uses): Rename to ...
13989         (rewrite_groups): ... here.  Update all uses.
13990         (remove_unused_ivs, free_loop_data): Update all uses.
13991         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
13993 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13995         * rtlanal.c (nonzero_bits1): Convert preprocessor check
13996         for WORD_REGISTER_OPERATIONS to runtime check.
13998 2016-04-27  Richard Biener  <rguenther@suse.de>
14000         PR ipa/70760
14001         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
14002         aggregate_value_p to determine if a function result is
14003         returned by reference.
14004         (ipa_pta_execute): Functions having their address taken are
14005         not automatically nonlocal.
14007 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
14009         PR sanitizer/70683
14010         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
14011         * fold-const.c (operand_equal_p): If flag_checking and
14012         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
14013         and if it returns non-zero, assert iterative_hash_expr on both
14014         args is the same.
14016 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
14018         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
14020 2016-04-27  Nick Clifton  <nickc@redhat.com>
14022         PR middle-end/49889
14023         * varasm.c (merge_weak): Generate an error if an attempt is made
14024         to convert a non-weak static function into a weak, public function.
14026 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14028         * params.def (MAX_PARTITION_SIZE): New param.
14029         * doc/invoke.texi: Document lto-max-partition.
14031 2016-04-27  Richard Biener  <rguenther@suse.de>
14033         PR ipa/70785
14034         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
14035         function cummulating used_from_other_partition, externally_visible
14036         and force_output from aliases.
14037         (refered_from_nonlocal_var): Likewise.
14038         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
14039         node flags properly.
14041 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
14043         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
14044         (-Wmemset-elt-size): New item.
14046 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
14048         PR ada/70759
14049         * stor-layout.h (internal_reference_types): Delete.
14050         * stor-layout.c (reference_types_internal): Likewise.
14051         (internal_reference_types): Likewise.
14052         (layout_type) <REFERENCE_TYPE>: Adjust.
14054 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
14056         PR sanitizer/70683
14057         * tree.h (inchash::add_expr): Add FLAGS argument.
14058         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
14059         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
14060         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
14061         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
14062         if swap_tree_comparison (code) is smaller than code, hash that
14063         and arguments in the other order.  Hash CONVERT_EXPR the same
14064         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
14065         of ADDR_EXPR of decl as the decl itself.  Add or remove
14066         OEP_ADDRESS_OF from recursive flags as needed.  For
14067         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
14068         operands commutatively and only the third one normally.
14069         For internal CALL_EXPR hash in CALL_EXPR_IFN.
14071 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14073         * config/rtems.h (LIB_SPEC): Add -latomic.
14075 2016-04-27  Joel Sherrill  <joel@rtems.org>
14077         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
14078         xilink.ld and flags not relevant to RTEMS.
14080 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
14082         * toplev.c (backend_init_target): Avoid calling init_reload when using
14083         LRA.
14085 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
14087         * reorg.c (try_merge_delay_insns): Declare i and j inside the
14088         for loops rather than one for the whole function.
14090 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
14092         * match.pd (X + CST CMP X): New transformation.
14094 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
14096         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
14097         * fold-const.c (fold_binary_loc): Remove 2 transformations
14098         superseded by match.pd.
14099         * match.pd (x+x -> x*2): Generalize to integers.
14101 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
14103         * config/i386/i386.md (operation on memory peephole): Duplicate an
14104         existing peephole and adapt it to match lea rather than an operation
14105         that clobbers CC.
14107         PR rtl-optimization/57193
14108         * opts.c (default_options_table): Add OPT_frename_registers at -O2
14109         and above.
14110         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
14112 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
14114         * tree-if-conv.c (any_pred_load_store): New static variable.
14115         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
14116         any_pred_load_store instead of and_mask_load_store.
14117         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
14118         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
14119         (combine_blocks, tree_if_conversion): Ditto.
14121 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
14123         PR tree-optimization/70771
14124         PR tree-optimization/70775
14125         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
14126         virtual PHI nodes.  Delete parameter.
14127         (if_convertible_loop_p_1): Delete argument to above function.
14128         (predicate_all_scalar_phis): Delete code handling single-argument
14129         PHIs.
14130         (tree_if_conversion): Mark and update virtual SSA.
14132 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14134         PR target/61821
14135         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
14136         (x86_elf_aligned_common): Rename to ...
14137         (x86_elf_aligned_decl_common): ... this.
14138         Add decl arg.  Switch to .lbss for largecomm object.  Use
14139         LARGECOMM_SECTION_ASM_OP.
14140         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
14141         renaming.
14142         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
14143         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
14144         Pass new decl arg.
14145         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14146         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
14148 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14150         PR target/59407
14151         * config/i386/i386.c (SECTION_LARGE): Define.
14152         (x86_64_elf_select_section): Set it for large data/bss sections.
14153         Only clear SECTION_WRITE for .lrodata.
14154         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
14155         data/bss sections.
14156         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
14157         * varasm.c (default_elf_asm_named_section): Grow flagchars.
14158         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
14159         SECTION_MACH_DEP.
14160         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
14161         * doc/tm.texi: Regenerate.
14163 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
14165         PR bootstrap/70704
14166         * configure.ac (--enable-checking): Document extra flag, for
14167         non-release builds default to --enable-checking=yes,extra.
14168         If misc checking and extra checking, define CHECKING_P to 2 instead
14169         of 1.
14170         * common.opt (fchecking=): Add.
14171         * doc/invoke.texi (-fchecking=): Document.
14172         * doc/install.texi: Document --enable-checking changes.
14173         * configure: Regenerated.
14174         * config.in: Regenerated.
14176 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
14178         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
14179         attribute instead of which_alternative.
14180         * config/i386/sse.md (*mov<mode>_internal): Ditto.
14181         Use EXT_REX_SSE_REG_P where appropriate.
14183 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
14185         * config/i386/predicates.md (const0_operand): Do not match
14186         const_wide_int code.
14187         (const1_operand): Ditto.
14189 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
14191         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
14192         for SSE constm1 operands and TARGET_AVX512VL.
14193         (*movti_internal): Ditto.
14194         (*mov<mode>_or): Use constm1_operand predicate.
14195         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
14196         for SSE vector_all_ones operands and TARGET_AVX512VL.
14197         * config/i386/predicates.md (constm1_operand): New predicate.
14198         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
14199         emission of constant -1 load.
14201 2016-04-25  Jason Merrill  <jason@redhat.com>
14203         * gdbinit.in: Skip is-a.h.
14205         * attribs.c (register_scoped_attributes): Fix logic.
14206         * attribs.h: Declare register_scoped_attributes.
14208 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14210         * config/rs6000/rs6000-builtin.def: Correct pasto error for
14211         stxvd2x and stxvw4x built-in functions.
14213 2016-04-25  DJ Delorie  <dj@redhat.com>
14215         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
14216         (ashrhi3): Likewise.
14217         (lshrhi3): Likewise.
14219 2016-04-25  Richard Biener  <rguenther@suse.de>
14221         PR tree-optimization/70780
14222         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
14223         wasn't visited yet.
14224         (compute_antic): Mark blocks with abnormal preds as visited as
14225         they have a final empty antic-in solution already.
14227 2016-04-25  Michael Collison  <michael.collison@linaro.org>
14229         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
14231 2016-04-25  Michael Collison  <michael.collison@linaro.org>
14233         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
14234         mode is VQI to improve mixed mode vectorization.
14235         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
14236         define_insn to match low half of signed vaddw.
14237         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
14238         define_insn to match high half of signed vaddw.
14239         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
14240         define_insn to match low half of unsigned vaddw.
14241         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
14242         define_insn to match high half of unsigned vaddw.
14243         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
14244         (arm_simd_check_vect_par_cnst_half_p): Likewise.
14245         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
14246         for new function.
14247         (arm_simd_check_vect_par_cnst_half_p): Likewise.
14248         * config/arm/predicates.md (vect_par_constant_high): Support
14249         big endian and simplify by calling
14250         arm_simd_check_vect_par_cnst_half
14251         (vect_par_constant_low): Likewise.
14253 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
14255         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
14256         predicate for operand 2.
14258 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
14259             H.J. Lu  <hongjiu.lu@intel.com>
14261         * config/i386/i386-protos.h (standard_sse_constant_p): Add
14262         machine_mode argument.
14263         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
14264         constm1_rtx operands.  For VOIDmode constants, get mode from
14265         pred_mode.  Check mode size if the mode is supported by ABI.
14266         (standard_sse_constant_opcode): Do not use standard_constant_p.
14267         Strictly check ABI support for all-ones operands.
14268         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
14269         immediates. Update calls to standard_sse_constant_p.
14270         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
14271         (ix86_rtx_costs): Ditto.
14272         * config/i386/i386.md (*movxi_internal_avx512f): Use
14273         nonimmediate_or_sse_const_operand instead of vector_move_operand.
14274         Use (v,BC) alternative instead of (v,C). Use register_operand
14275         checks instead of MEM_P.
14276         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
14277         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
14278         isa attribute.  Use register_operand checks instead of MEM_P.
14279         (*movti_internal): Use nonimmediate_or_sse_const_operand for
14280         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
14281         alternative and corresponding sse2 isa attribute.
14282         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
14283         to standard_sse_constant_p.
14284         (FP constant splitters): Ditto.
14285         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
14286         (C): Ditto.
14287         * config/i386/predicates.md (constm1_operand): Remove.
14288         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
14289         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
14290         vector_all_ones_operand instead of constm1_operand.
14292 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14294         * print-rtl.c (print_rtx_insn_vec): New function.
14295         * print-rtl.h: New prototype.
14296         * store-motion.c (struct st_expr): Make avail_stores a vector.
14297         (st_expr_entry): Adjust.
14298         (free_st_expr_entry): Likewise.
14299         (print_store_motion_mems): Likewise.
14300         (find_moveable_store): Likewise.
14301         (compute_store_table): Likewise.
14302         (delete_store): Likewise.
14303         (build_store_vectors): Likewise.
14305 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14307         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
14309 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14311         * vec.h (vec_safe_contains): New function.
14312         (vec::contains): Likewise.
14313         (vec::begin): Likewise.
14314         (vec::end): Likewise.
14316 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
14318         PR sanitizer/70712
14319         * cfgexpand.c (expand_stack_vars): Fix typo.
14321 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14323         * system.h (list, map, set, vector): Include conditionally.
14324         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
14325         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
14326         * ipa-icf.c (INCLUDE_LIST): Define.
14327         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
14328         * config/sh/sh.c (INCLUDE_VECTOR): Define.
14329         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
14330         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
14331         * cp/logic.cc (INCLUDE_LIST): Define.
14332         * fortran/trans-common.c (INCLUDE_MAP): Define.
14334 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14336         * auto-profile.c: Remove <string.h> include.
14337         * ipa-icf-gimple.c: Remove <list> include.
14338         * diagnostic.c: Remove <new> include.
14339         * genmatch.c: Likewise.
14340         * pretty-print.c: Likewise.
14341         * toplev.c: Likewise
14342         * c/c-objc-common.c: Likewise.
14343         * cp/error.c: Likewise.
14344         * fortran/error.c: Likewise.
14346 2016-04-22  Richard Biener  <rguenther@suse.de>
14348         * lto-streamer-in.c (input_ssa_names): Do not allocate
14349         GIMPLE_NOP for all SSA names.
14350         * lto-streamer-out.c (output_ssa_names): Do not output
14351         SSA names that should have been released.
14353 2016-04-22  Richard Biener  <rguenther@suse.de>
14355         PR tree-optimization/70740
14356         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
14357         VDEF.
14359 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
14361         PR target/70750
14362         * config/i386/predicates.md (call_insn_operand): Replace
14363         sibcall_memory_operand with memory_operand.
14365 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
14367         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
14368         has_single_use() tests.
14369         (register_edge_assert_for_1): Likewise.
14370         (find_assert_locations_1): Check the liveness bitmap instead of
14371         checking has_single_use().
14373 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
14375         PR target/70728
14376         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
14377         Extract AVX-512BW constraint from AVX.
14379 2016-04-21  Richard Biener  <rguenther@suse.de>
14381         PR tree-optimization/70725
14382         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
14383         for phi_convertible_by_degenerating_args.
14384         (predicate_all_scalar_phis): Handle single-argument PHIs.
14386 2016-04-21  Richard Biener  <rguenther@suse.de>
14388         PR middle-end/70747
14389         * fold-const.c (fold_comparison): Return properly typed
14390         constant boolean.
14392 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
14394         PR tree-optimization/70715
14395         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
14396         after expanding BASE using expand_simple_operations.
14398 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
14400         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
14401         New transformations.
14403 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
14405         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
14407 2016-04-20  Jan Hubicka  <jh@suse.cz>
14409         * ipa-inline.c (can_inline_edge_p): Pass caller info to
14410         ultiimate_alias_target.
14411         (update_callee_keys): Likewise.
14412         (lookup_recursive_calls): Likewise.
14413         (speculation_useful_p): Likewise.
14415 2016-04-20  Jan Hubicka  <jh@suse.cz>
14417         PR ipa/70018
14418         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
14419         (set_nothrow_flag_1): ... this; handle interposition correctly;
14420         recurse on aliases and thunks.
14421         (cgraph_node::set_nothrow_flag): New.
14422         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
14423         functions compiled with non-call exceptions that binds to current
14424         def.
14425         (propagate_nothrow): Be safe WRT interposition.
14426         * cgraph.h (set_nothrow_flag): Update prototype.
14428 2016-04-18  Jan Hubicka  <jh@suse.cz>
14430         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
14431         max_loop_iterations_int.
14432         (tree_unswitch_outer_loop): Likewise.
14434 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
14436         PR tree-optimization/69489
14437         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
14438         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
14439         Revise dump message.
14440         (if_convertible_bb_p): Remove check on edge count of basic block's
14441         predecessors.
14443 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
14445         PR tree-optimization/56625
14446         PR tree-optimization/69489
14447         * tree-data-ref.h (DR_INNERMOST): New macro.
14448         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
14449         hashing struct innermost_loop_behavior.
14450         (ref_DR_map): Remove.
14451         (innermost_DR_map): New map.
14452         (baseref_DR_map): Revise comment.
14453         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
14454         to innermost_DR_map accroding to its innermost loop behavior.
14455         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
14456         to its innermost loop behavior.
14457         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
14458         Add initialization for innermost_DR_map.  Record memory reference
14459         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
14460         have innermost loop behavior.
14461         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
14462         innermost_DR_map.
14464 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
14466         * config/i386/i386.md (*lea<mode>_general_1): Rename from
14467         *lea_general_1.  Use explicit SWI12 mode interator.
14468         (*lea<mode>_general_2): Rename from *lea_general_2.
14469         Use explicit SWI12 mode interator.
14470         (*lea<mode>_general_3): Rename from *lea_general_3.
14471         Use explicit SWI12 mode interator.
14472         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
14473         Use explicit SWI12 mode interator.
14474         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
14475         Use explicit SWI48 mode interator.
14477 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
14479         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
14480         Short-cut unaligned load and store cases.  Handle all integer
14481         vector modes.
14482         (ix86_expand_vector_move_misalign): Short-cut unaligned load
14483         and store cases.  Call ix86_avx256_split_vector_move_misalign
14484         directly without checking mode class.
14486 2016-04-20  Andrew Pinski  <apinski@cavium.com>
14487             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14489         PR target/64971
14490         * config/aarch64/aarch64.md (sibcall): Force call
14491         address to be DImode for ILP32.
14492         (sibcall_value): Likewise.
14494 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
14496         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
14498 2016-04-20  Richard Biener  <rguenther@suse.de>
14500         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
14501         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
14502         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
14503         (maybe_push_res_to_seq): Adjust.
14504         * gimple-fold.c (maybe_build_generic_op): Likewise.
14506 2016-04-20  Marek Polacek  <polacek@redhat.com>
14508         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
14509         rather than true.
14511 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
14513         * config/i386/sse.md (vec_unpacks_lo_hi): Always
14514         use kmovw to support AVX512F target.
14516 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
14518         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
14520 2016-04-20  Marek Polacek  <polacek@redhat.com>
14522         PR tree-optimization/70725
14523         * tree-if-conv.c (is_false_predicate): New function.
14524         (predicate_mem_writes): Use it.
14526 2016-04-20  Richard Biener  <rguenther@suse.de>
14528         PR tree-optimization/70726
14529         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
14530         shift amounts from a pattern stmt operand.
14532 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14534         PR target/70674
14535         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
14536         stack_restore_from_fpr pattern when restoring r15.
14537         (s390_optimize_prologue): Strip away the memory barrier in the
14538         parallel when trying to get rid of restore insns.
14539         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
14540         definition for loading the stack pointer from an FPR.  Compared to
14541         the normal move insn this pattern includes a full memory barrier.
14543 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
14545         PR middle-end/70680
14546         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
14547         implicitly linear or lastprivate iterator on the outer context.
14549 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
14551         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
14552         alignment check.
14553         * config/i386/i386.md (ssememalign): Removed.
14554         * config/i386/sse.md: Remove ssememalign attribute from patterns.
14556 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
14558         PR target/69201
14559         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
14560         const short * to __builtin_ia32_loaddquhi512_mask.
14561         (_mm512_maskz_loadu_epi16): Likewise.
14562         (_mm512_mask_storeu_epi16): Pass short * to
14563         __builtin_ia32_storedquhi512_mask.
14564         (_mm512_mask_loadu_epi8): Pass const char * to
14565         __builtin_ia32_loaddquqi512_mask.
14566         (_mm512_maskz_loadu_epi8): Likewise.
14567         (_mm512_mask_storeu_epi8): Pass char * to
14568         __builtin_ia32_storedquqi512_mask.
14569         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
14570         const double * to __builtin_ia32_loadupd512_mask.
14571         (_mm512_mask_loadu_pd): Likewise.
14572         (_mm512_maskz_loadu_pd): Likewise.
14573         (_mm512_storeu_pd): Pass double * to
14574         __builtin_ia32_storeupd512_mask.
14575         (_mm512_mask_storeu_pd): Likewise.
14576         (_mm512_loadu_ps): Pass const float * to
14577         __builtin_ia32_loadups512_mask.
14578         (_mm512_mask_loadu_ps): Likewise.
14579         (_mm512_maskz_loadu_ps): Likewise.
14580         (_mm512_storeu_ps): Pass float * to
14581         __builtin_ia32_storeups512_mask.
14582         (_mm512_mask_storeu_ps): Likewise.
14583         (_mm512_mask_loadu_epi64): Pass const long long * to
14584         __builtin_ia32_loaddqudi512_mask.
14585         (_mm512_maskz_loadu_epi64): Likewise.
14586         (_mm512_mask_storeu_epi64): Pass long long *
14587         to __builtin_ia32_storedqudi512_mask.
14588         (_mm512_loadu_si512): Pass const int * to
14589         __builtin_ia32_loaddqusi512_mask.
14590         (_mm512_mask_loadu_epi32): Likewise.
14591         (_mm512_maskz_loadu_epi32): Likewise.
14592         (_mm512_storeu_si512): Pass int * to
14593         __builtin_ia32_storedqusi512_mask.
14594         (_mm512_mask_storeu_epi32): Likewise.
14595         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
14596         char * to __builtin_ia32_storedquqi256_mask.
14597         (_mm_mask_storeu_epi8): Likewise.
14598         (_mm256_mask_loadu_epi16): Pass const short * to
14599         __builtin_ia32_loaddquhi256_mask.
14600         (_mm256_maskz_loadu_epi16): Likewise.
14601         (_mm_mask_loadu_epi16): Pass const short * to
14602         __builtin_ia32_loaddquhi128_mask.
14603         (_mm_maskz_loadu_epi16): Likewise.
14604         (_mm256_mask_loadu_epi8): Pass const char * to
14605         __builtin_ia32_loaddquqi256_mask.
14606         (_mm256_maskz_loadu_epi8): Likewise.
14607         (_mm_mask_loadu_epi8): Pass const char * to
14608         __builtin_ia32_loaddquqi128_mask.
14609         (_mm_maskz_loadu_epi8): Likewise.
14610         (_mm256_mask_storeu_epi16): Pass short * to.
14611         __builtin_ia32_storedquhi256_mask.
14612         (_mm_mask_storeu_epi16): Pass short * to.
14613         __builtin_ia32_storedquhi128_mask.
14614         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
14615         const double * to __builtin_ia32_loadupd256_mask.
14616         (_mm256_maskz_loadu_pd): Likewise.
14617         (_mm_mask_loadu_pd): Pass onst double * to
14618         __builtin_ia32_loadupd128_mask.
14619         (_mm_maskz_loadu_pd): Likewise.
14620         (_mm256_mask_storeu_pd): Pass double * to
14621         __builtin_ia32_storeupd256_mask.
14622         (_mm_mask_storeu_pd): Pass double * to
14623         __builtin_ia32_storeupd128_mask.
14624         (_mm256_mask_loadu_ps): Pass const float * to
14625         __builtin_ia32_loadups256_mask.
14626         (_mm256_maskz_loadu_ps): Likewise.
14627         (_mm_mask_loadu_ps): Pass const float * to
14628         __builtin_ia32_loadups128_mask.
14629         (_mm_maskz_loadu_ps): Likewise.
14630         (_mm256_mask_storeu_ps): Pass float * to
14631         __builtin_ia32_storeups256_mask.
14632         (_mm_mask_storeu_ps): ass float * to
14633         __builtin_ia32_storeups128_mask.
14634         (_mm256_mask_loadu_epi64): Pass const long long * to
14635         __builtin_ia32_loaddqudi256_mask.
14636         (_mm256_maskz_loadu_epi64): Likewise.
14637         (_mm_mask_loadu_epi64): Pass const long long * to
14638         __builtin_ia32_loaddqudi128_mask.
14639         (_mm_maskz_loadu_epi64): Likewise.
14640         (_mm256_mask_storeu_epi64): Pass long long * to
14641         __builtin_ia32_storedqudi256_mask.
14642         (_mm_mask_storeu_epi64): Pass long long * to
14643         __builtin_ia32_storedqudi128_mask.
14644         (_mm256_mask_loadu_epi32): Pass const int * to
14645         __builtin_ia32_loaddqusi256_mask.
14646         (_mm256_maskz_loadu_epi32): Likewise.
14647         (_mm_mask_loadu_epi32): Pass const int * to
14648         __builtin_ia32_loaddqusi128_mask.
14649         (_mm_maskz_loadu_epi32): Likewise.
14650         (_mm256_mask_storeu_epi32): Pass int * to
14651         __builtin_ia32_storedqusi256_mask.
14652         (_mm_mask_storeu_epi32): Pass int * to
14653         __builtin_ia32_storedqusi128_mask.
14654         * config/i386/i386-builtin-types.def (PCSHORT): New.
14655         (PINT64): Likewise.
14656         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
14657         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
14658         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
14659         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
14660         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
14661         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
14662         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
14663         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
14664         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
14665         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
14666         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
14667         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
14668         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
14669         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
14670         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
14671         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
14672         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
14673         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
14674         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
14675         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
14676         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
14677         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
14678         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
14679         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
14680         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
14681         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
14682         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
14683         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
14684         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
14685         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
14686         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
14687         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
14688         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
14689         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
14690         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
14691         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
14692         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
14693         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
14694         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
14695         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
14696         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
14697         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
14698         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
14699         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
14700         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
14701         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
14702         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
14703         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
14704         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
14705         use UNSPEC_STOREU.
14706         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
14707         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
14708         load nor store.
14709         (ix86_expand_vector_move_misalign): Likewise.
14710         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
14711         to scalar function prototype for unaligned load/store builtins.
14712         (ix86_expand_special_args_builtin): Updated.
14713         * config/i386/sse.md (UNSPEC_LOADU): Removed.
14714         (UNSPEC_STOREU): Likewise.
14715         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
14716         (VI_ULOADSTORE_F_AVX512VL): Likewise.
14717         (ssescalarsize): Handle V4TI, V2TI and V1TI.
14718         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
14719         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
14720         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
14721         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
14722         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
14723         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
14724         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
14725         (<avx512>_storedqu<mode>_mask): Likewise.
14726         (*sse4_2_pcmpestr_unaligned): Likewise.
14727         (*sse4_2_pcmpistr_unaligned): Likewise.
14728         (*mov<mode>_internal): Renamed to ...
14729         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
14730         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
14731         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
14732         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
14734 2016-04-19  Richard Biener  <rguenther@suse.de>
14736         PR tree-optimization/70171
14737         * tree-ssa-phiprop.c: Include stor-layout.h.
14738         (phiprop_insert_phi): Handle the aggregate copy case.
14739         (propagate_with_phi): Likewise.
14741 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
14743         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
14744         instead of simplify_gen_subreg (... , 0).
14745         (ix86_delegitimize_address): Ditto.
14746         (ix86_split_divmod): Ditto.
14747         (ix86_split_copysign_const): Ditto.
14748         (ix86_split_copysign_var): Ditto.
14749         (ix86_expand_args_builtin): Ditto.
14750         (ix86_expand_round_builtin): Ditto.
14751         (ix86_expand_special_args_builtin): Ditto.
14752         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
14753         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
14754         (udivmodqi4): Ditto.
14755         (absneg splitters): Ditto.
14756         (*jcc_bt<mode>_1): Ditto.
14758 2016-04-19  Richard Biener  <rguenther@suse.de>
14760         PR tree-optimization/70724
14761         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
14762         restoring out from ...
14763         (free_scc_vn): ... here.
14764         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
14765         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
14766         tail merging.
14767         (pass_fre::execute): Restore SSA info.
14769 2016-04-19  Richard Biener  <rguenther@suse.de>
14771         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
14772         * gimple-walk.c (walk_gimple_op): Initialize it.
14773         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
14774         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
14775         remapping SSA names of defs.
14776         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
14777         adjustment.
14779 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
14781         PR middle-end/70689
14782         * lra-constraints.c (equiv_substition_p): New.
14783         (process_alt_operands): Use it.
14784         (swap_operands): Swap it.
14785         (curr_insn_transform): Update it.
14787 2016-04-18  Michael Matz  <matz@suse.de>
14789         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
14790         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
14791         * tree-core.h (tree_type_common.align): Use bit-field.
14792         (tree_type_common.spare): New.
14793         (tree_decl_common.off_align): Make smaller.
14794         (tree_decl_common.align): Use bit-field.
14796         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
14797         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
14798         (scan_sharing_clauses): Ditto.
14799         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
14800         (omp_finish_file): Ditto.
14801         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
14802         (layout_decl): Ditto.
14803         (relayout_decl): Ditto.
14804         (finalize_record_size): Use SET_TYPE_ALIGN.
14805         (finalize_type_size): Ditto.
14806         (finish_builtin_struct): Ditto.
14807         (layout_type): Ditto.
14808         (initialize_sizetypes): Ditto.
14809         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
14810         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
14811         (lookup_field_for_decl): Use SET_DECL_ALIGN.
14812         (get_chain_field): Ditto.
14813         (get_trampoline_type): Ditto.
14814         (get_nl_goto_field): Ditto.
14815         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
14816         SET_DECL_ALIGN.
14817         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
14818         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
14819         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
14820         (build_qualified_type): Use SET_TYPE_ALIGN.
14821         (build_aligned_type, build_range_type_1): Ditto.
14822         (build_atomic_base): Ditto.
14823         (build_common_tree_nodes): Ditto.
14824         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
14825         (expand_one_stack_var_at): Ditto.
14826         * coverage.c (build_var): Use SET_DECL_ALIGN.
14827         * except.c (init_eh): Ditto.
14828         * function.c (assign_parm_setup_block): Ditto.
14829         * symtab.c (increase_alignment_1): Ditto.
14830         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
14831         * tree-vect-stmts.c (ensure_base_align): Ditto.
14832         * varasm.c (align_variable): Ditto.
14833         (assemble_variable): Ditto.
14834         (build_constant_desc): Ditto.
14835         (output_constant_def_contents): Ditto.
14837         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
14838         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
14839         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
14840         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
14841         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
14843 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
14845         PR target/70708
14846         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
14847         replace %vmovsd with "%vmovq".
14848         (vec_concatv2df): Likewise.
14850 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
14852         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
14853         (*vec_extractv2si_0): Ditto.
14854         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
14855         (zero_extended_scalar_load_operand splitters): Ditto.
14856         (vec_extract splitters): Ditto.
14857         (*vec_extractv4si_0_zext): Ditto.
14858         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
14859         and lowpart_subreg.
14860         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
14861         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
14862         (*sse4_1_extractps): Use lowpart_subreg.
14863         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
14865 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14867         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
14868         gld requirements.
14869         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
14870         Mention Solaris 11 packaging changes.
14871         Update gas and gld requirements.
14872         Remove reference to pre-Solaris 10 bug.
14873         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
14874         systems and bugs.
14875         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
14876         with cc.
14878 2016-04-17  Jan Hubicka  <jh@suse.cz>
14880         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
14881         max_loop_iterations_int.
14883 2016-04-18  Richard Biener  <rguenther@suse.de>
14885         PR tree-optimization/43434
14886         * tree-ssa-structalias.c (struct vls_data): New.
14887         (visit_loadstore): Handle all pointer-based accesses.
14888         (compute_dependence_clique): Compute a bitmap of restrict tags
14889         assigned bases and pass it to visit_loadstore.
14891 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
14893         PR target/70711
14894         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
14895         armv8.1-a and armv8.1-a+crc.
14897 2016-04-18  Richard Biener  <rguenther@suse.de>
14899         PR tree-optimization/70701
14900         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
14901         references after translating through a memcpy.
14903 2016-04-18  Richard Biener  <rguenther@suse.de>
14905         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
14906         (compute_antic): ... here.  For partial antic use regular
14907         postorder and scrap iteration.
14908         (compute_partial_antic_aux): Remove unused return value.
14909         (init_pre): Do not allocate postorder.
14910         (fini_pre): Do not free postorder.
14912 2016-04-18  Richard Biener  <rguenther@suse.de>
14914         PR middle-end/37870
14915         * expmed.c (extract_bit_field_1): Remove broken case
14916         using a wider MODE_INT mode.
14918 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
14920         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
14921         unless compiling with at least GCC-4.8.
14923 2016-04-17  Jan Hubicka  <jh@suse.cz>
14925         PR bootstrap/70706
14926         * graphite.c (graphite_finalize): Update call to
14927         tree_estimate_probability.
14928         * predict.h (tree_estimate_probability): Update prototype.
14930 2016-04-17  Jan Hubicka  <jh@suse.cz>
14932         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
14933         (tree_estimate_probability): Likewise.
14934         (pass_profile::execute): Update.
14935         (report_predictor_hitrates): New function.
14936         * profile.c (compute_branch_probabilities): Use it.
14937         * predict.h (report_predictor_hitrates): Declare.
14939 2016-04-17  Jan Hubicka  <jh@suse.cz>
14941         PR ipa/70018
14942         * cgraph.h (cgraph_node::set_const_flag,
14943         cgraph_node::set_pure_flag): Update prototype to return bool;
14944         update comment.
14945         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
14946         of interposable symbol are interposable, too.
14947         (cgraph_set_const_flag_1): Rename to ...
14948         (set_const_flag_1): ... this one; change to self recursive function
14949         instead of call_for_symbol_thunks_and_aliases. Handle correctly
14950         clearnig the flag in all variants and also virtual thunks of const
14951         functions are pure; track if any change was done.
14952         (cgraph_node::set_const_flag): Update.
14953         (struct set_pure_flag_info): New struct.
14954         (cgraph_set_pure_flag_1): Rename to ...
14955         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
14956         rather than pointer encoded flags; track if any changes was done;
14957         handle correctly clearning flag and setting flag of aliases already
14958         declared const.
14959         (cgraph_node::set_pure_flag): Update.
14960         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
14962 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14964         PR other/70433
14965         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
14966         backslash in label.
14968 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14970         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
14971         '{}<> ' as escape-for-record.
14973 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14975         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
14976         structure.
14978 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14980         PR other/70185
14981         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
14982         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
14983         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
14984         * passes.c (finish_optimization_passes): Only call
14985         finish_graph_dump_file if dfi->graph_dump_initialized.
14986         (execute_function_dump, pass_init_dump_file): Use
14987         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
14989 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14991         PR tree-optimization/70256
14992         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
14993         (debug_varmap): New function.
14995 2016-04-17  Tom de Vries  <tom@codesourcery.com>
14997         PR other/70183
14998         * passes.c (pass_manager::register_pass): Propagate pflags.
15000 2016-04-17  Tom de Vries  <tom@codesourcery.com>
15002         PR other/68875
15003         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
15004         * passes.c (pass_manager::pass_manager): Declare and init p_start in
15005         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
15006         check if it's equal to p_start.
15007         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
15009 2016-04-15  Jan Hubicka  <jh@suse.cz>
15011         PR ipa/70018
15012         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
15013         function does not bind to current def.
15014         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
15015         handle conservatively calls to functions that does not need to bind
15016         to current def.
15017         (check_call): Update call of worse_state.
15018         (ignore_edge_for_nothrow): Update.
15019         (ignore_edge_for_pure_const): Likewise.
15020         (propagate_pure_const): Update calls to worse_state.
15021         (skip_function_for_local_pure_const): Reformat comments.
15023 2016-04-15  Jan Hubicka  <jh@suse.cz>
15025         PR ipa/70018
15026         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
15027         (cgraph_node::function_symbol): Likewise.
15028         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
15029         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
15030         (symtab_node::ultimate_alias_target): Add REF parameter.
15031         (symtab_node::binds_to_current_def_p): Declare.
15032         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
15033         (cgraph_node::function_symbol): Likewise.
15034         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
15035         (cgraph_node::get_availability): Likewise.
15036         (cgraph_edge::binds_to_current_def_p): New inline function.
15037         (varpool_node::get_availability): Add REF parameter.
15038         (varpool_node::ultimate_alias_target): Likewise.
15039         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
15040         (symtab_node::binds_to_current_def_p): Likewise.
15041         * varpool.c (varpool_node::get_availability): Likewise.
15043 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
15045         PR target/70662
15046         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
15047         Fix mode size check.
15049 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
15051         * BASE-VER: Set to 7.0.0.
15053 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
15055         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
15057 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15059         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
15060         architecture revisions.
15062 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
15064         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
15065         * config/i386/i386.c (ix86_using_red_zone): No longer static.
15066         * config/i386/i386.md (stack decrement to push peepholes): Guard
15067         with !x86_using_red_zone ().
15069 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
15071         PR c++/70675
15072         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
15073         to dump_generic_node.
15074         (NIY): Pass also flags to do_niy.
15076 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
15078         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
15079         (simd_clone_vector_of_formal_parm_types)
15080         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
15081         (simd_clone_mangle, simd_clone_create)
15082         (simd_clone_adjust_return_type, create_tmp_simd_array)
15083         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
15084         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
15085         (ipa_simd_modify_function_body, simd_clone_linear_addend)
15086         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
15087         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
15088         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
15089         * omp-simd-clone.c: ... this new file.
15090         (simd_clone_vector_of_formal_parm_types): Make it static.
15091         * Makefile.in (OBJS): Add omp-simd-clone.o.
15093 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
15095         PR target/70662
15096         * config/i386/sse.md: Use proper memory operand modifiers.
15099 2016-04-15  Richard Biener  <rguenther@suse.de>
15100         Alan Modra  <amodra@gmail.com>
15102         PR tree-optimization/70130
15103         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
15104         when alignment stays not the same and no not use the realign
15105         scheme then.
15107 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15109         PR target/70669
15110         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
15111         direct move handlers for KFmode. Change TFmode handlers test from
15112         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
15114 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
15116         PR c++/70594
15117         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
15118         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
15119         (inlined_polymorphic_ctor_dtor_block_p): Use it.
15120         * tree-ssa-live.c (remove_unused_scope_block_p): When
15121         in_ctor_dtor_block, avoid discarding not just BLOCKs with
15122         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
15123         block_ultimate_origin is FUNCTION_DECL.
15124         (remove_unused_locals): If current_function_decl is
15125         polymorphic_ctor_dtor_p, pass initial true to
15126         remove_unused_scope_block_p' is_ctor_dtor_block.
15128 2016-04-14  Martin Sebor  <msebor@redhat.com>
15130         PR c++/69517
15131         PR c++/70019
15132         PR c++/70588
15133         * doc/extend.texi (Variable Length): Revert.
15135 2016-04-14  Marek Polacek  <polacek@redhat.com>
15136             Jan Hubicka  <hubicka@ucw.cz>
15138         PR c++/70029
15139         * tree.c (verify_type): Disable the canonical type of main variant
15140         check.
15142 2016-04-14  Jason Merrill  <jason@redhat.com>
15144         * cfgexpand.c, expr.c: Revert previous change.
15146 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
15148         PR middle-end/70643
15149         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
15150         when building a mem ref for the incoming reduction variable.
15152 2016-04-14  Richard Biener  <rguenther@suse.de>
15154         PR tree-optimization/70614
15155         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
15156         loop if the evolution dropped to chrec_dont_know.
15157         (interpret_condition_phi): Likewise.
15159 2016-04-14  Richard Biener  <rguenther@suse.de>
15161         PR tree-optimization/70623
15162         * tree-ssa-pre.c (changed_blocks): Make global ...
15163         (compute_antic): ... local here.  Move and fix worklist
15164         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
15165         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
15166         worklist handling, dump when ANTIC_IN changed.
15167         (compute_partial_antic_aux): Remove worklist handling.
15168         (init_pre): Do not compute post dominators.  Add a comment about
15169         the CFG order chosen.
15170         (fini_pre): Do not free post dominators.
15172 2016-04-13  Martin Sebor  <msebor@redhat.com>
15174         PR c++/69517
15175         PR c++/70019
15176         PR c++/70588
15177         * doc/extend.texi (Variable Length): Document C++ specifics.
15179 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
15181         PR c++/70641
15182         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
15183         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
15184         eh edges have been purged.
15186         PR c++/70594
15187         * tree-sra.c (create_access_replacement,
15188         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
15189         gets fancy name.
15190         * tree-pretty-print.c (dump_fancy_name): New function.
15191         (dump_decl_name, dump_generic_node): Use it.
15193 2016-04-13  Jason Merrill  <jason@redhat.com>
15195         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
15196         * expr.c (expand_expr_real_1): Likewise.
15198 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
15200         * config/i386/i386.md (kunpckhi): Swap operands.
15201         (kunpcksi): Likewise.
15202         (kunpckdi): Likewise.
15203         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
15204         (vec_pack_trunc_<mode>): Likewise.
15206 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
15208         PR debug/70628
15209         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
15211         PR middle-end/70633
15212         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
15213         gimplification turns some element into non-constant.
15215         PR debug/70628
15216         * rtl.h (convert_memory_address_addr_space_1): New prototype.
15217         * explow.c (convert_memory_address_addr_space_1): No longer static,
15218         add NO_EMIT argument and don't call convert_modes if true, pass
15219         it down recursively, remove break after return.
15220         (convert_memory_address_addr_space): Adjust caller.
15221         * simplify-rtx.c (simplify_unary_operation_1): Call
15222         convert_memory_address_addr_space_1 instead of convert_memory_address,
15223         if it returns NULL, don't simplify.
15225 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
15227         PR target/70630
15228         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
15230 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
15232         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
15233         Bump the upper SIMDLEN limits, so that if the return type or
15234         characteristic type if the return type is void can be passed in
15235         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
15236         allowed.
15238 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
15240         PR target/70640
15241         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
15242         Do not use "=" constraint on an input constraint.
15243         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
15244         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
15245         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
15246         generates (neg (abs ...)) instead of (abs ...).
15248 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
15250         PR rtl-optimization/70596
15251         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
15252         just invalidate LRA data and reset them.  Adjust dump wording.
15254 2016-04-12  Martin Liska  <mliska@suse.cz>
15256         Revert
15257         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
15259         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
15260         estimates here.
15261         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
15262         max_loop_iterations_int.
15263         (tree_unswitch_outer_loop): Likewise.
15264         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
15265         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
15267 2016-04-12  Tom de Vries  <tom@codesourcery.com>
15269         PR tree-optimization/68756
15270         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
15271         instead of new_name.
15273 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
15275         PR tree-optimization/70602
15276         * tree-sra.c (generate_subtree_copies): Don't write anything into
15277         constant pool decls.
15279         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
15280         regardless whether there are depend clauses or not.
15282 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
15284         PR target/70381
15285         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
15286         target attribute and pragma from changing the -mfloat128
15287         and -mfloat128-hardware options.
15289         * doc/extend.texi (Additional Floating Types): Document PowerPC
15290         __float128 restrictions.
15292 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
15294         PR target/70133
15295         * config/aarch64/driver-aarch64.c
15296         (aarch64_get_extension_string_for_isa_flags): New.
15297         (arch_extension): Rename to...
15298         (aarch64_arch_extension): ...This.
15299         (ext_to_feat_string): Rename to...
15300         (aarch64_extensions): ...This.
15301         (aarch64_core_data): Keep track of architecture extension flags.
15302         (cpu_data): Rename to...
15303         (aarch64_cpu_data): ...This.
15304         (aarch64_arch_driver_info): Keep track of architecture extension
15305         flags.
15306         (get_arch_name_from_id): Rename to...
15307         (get_arch_from_id): ...This, change return type.
15308         (host_detect_local_cpu): Update and reformat for renames, handle
15309         extensions through common infrastructure.
15311 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
15313         PR target/70133
15314         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
15315         track of a canonical flag name.
15316         (all_extensions): Likewise.
15317         (arch_to_arch_name): Also track extension flags enabled by the arch.
15318         (all_architectures): Likewise.
15319         (aarch64_parse_extension): Move to here.
15320         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
15321         rework.
15322         (aarch64_rewrite_selected_cpu): Update for above change.
15323         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
15324         are handled, such that the single explicit value enabled by an
15325         extension is kept seperate from the implicit values it also enables.
15326         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
15327         to here.
15328         (aarch64_parse_extension): New.
15329         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
15330         here to config/aarch64/aarch64-protos.h.
15331         (aarch64_parse_extension): Move from here to
15332         common/config/aarch64/aarch64-common.c.
15333         (aarch64_option_print): Update.
15334         (aarch64_declare_function_name): Likewise.
15335         (aarch64_start_file): Likewise.
15336         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
15337         the canonical flag for extensions.
15338         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
15339         flags.
15341 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
15343         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
15344         AARCH64_FL_CRC.
15346 2016-04-09  Tom de Vries  <tom@codesourcery.com>
15348         PR tree-optimization/68953
15349         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
15350         first to last subscript.
15352 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
15354         PR tree-optimization/70586
15355         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
15356         for any calls.
15358 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
15360         PR lto/70289
15361         PR ipa/70348
15362         PR tree-optimization/70373
15363         PR middle-end/70533
15364         PR middle-end/70534
15365         PR middle-end/70535
15366         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
15367         clauses for acc parallel reductions as necessary.  Error on those
15368         that are private.
15369         * omp-low.c (scan_sharing_clauses): Don't install variables which
15370         are used in acc parallel reductions.
15371         (lower_rec_input_clauses): Remove dead code.
15372         (lower_oacc_reductions): Add support for reference reductions.
15373         (lower_reduction_clauses): Remove dead code.
15374         (lower_omp_target): Don't remap variables appearing in acc parallel
15375         reductions.
15376         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
15378 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
15380         PR middle-end/70593
15381         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
15382         with multiple SSA_NAME defs, force the outputs other than first
15383         to be live before calling live_track_process_def on each output.
15385         PR rtl-optimization/70574
15386         * fwprop.c (forward_propagate_and_simplify): Don't add
15387         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
15388         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
15389         paradoxical subregs within *loc.
15391 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
15393         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
15394         -ftree-parallelize-loops={0,1}.
15395         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
15396         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
15397         * config/ia64/hpux.h (LIB_SPEC): Likewise.
15398         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
15399         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
15401 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
15403         PR sanitizer/70541
15404         * asan.c (instrument_derefs): If we get unknown location, extract it
15405         with EXPR_LOCATION.
15406         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
15408 2016-04-08  Tom de Vries  <tom@codesourcery.com>
15410         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
15411         implicit firstprivate clause.
15413 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15415         PR target/70566
15416         * config/arm/thumb2.md (tst + branch-> lsls + branch
15417         peephole below *orsi_not_shiftsi_si): Require that condition
15418         register is dead after the peephole.
15419         (second peephole after the above): Likewise.
15421 2016-04-08  Alan Modra  <amodra@gmail.com>
15423         PR target/70117
15424         * builtins.c (fold_builtin_classify): For IBM extended precision,
15425         look at just the high-order double to test for NaN.
15426         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
15427         test just the high double for Inf but both doubles for subnormal
15428         limit.
15430 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
15432         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
15433         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
15434         node->simdclone->mask_mode != VOIDmode masks.
15435         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
15436         earlier, use it instead of node->simdclone.
15437         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
15438         Set clonei->mask_mode.
15440 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
15442         PR c/70436
15443         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
15444         Pass it through to cp_parser_already_scoped_statement.
15445         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
15446         it through to cp_parser_statement.
15447         (cp_parser_statement): Pass IF_P through to
15448         cp_parser_iteration_statement.
15449         (cp_parser_pragma): Adjust call to
15450         cp_parser_iteration_statement.
15452 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
15454         PR c/70436
15455         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
15456         resolve a future -Wparentheses warning.
15457         * omp-low.c (scan_sharing_clauses): Likewise.
15458         * tree-parloops.c (eliminate_local_variables): Likewise.
15460 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
15462         PR rtl-optimization/70398
15463         * lra-constraints.c (process_address_1): Check zero scale and code
15464         for reloading with zero scale.
15466 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
15468         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
15469         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
15471 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
15473         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
15474         Add support for AVX512F clones, include them by default for
15475         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
15476         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
15477         up to 128.
15479         PR middle-end/70550
15480         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
15481         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
15482         firstprivate clauses.
15483         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
15484         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
15485         (lower_omp_target): Set TREE_NO_WARNING for
15486         non-addressable possibly uninitialized vars which are copied into
15487         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
15489 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
15491         * config/pa/predicates.md (integer_store_memory_operand): Accept
15492         REG+D operands with a large offset when reload_in_progress is true.
15493         (floating_point_store_memory_operand): Likewise.
15495 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
15497         PR c++/70336
15498         * match.pd (nested int casts): Limit to GIMPLE.
15500 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
15502         PR ipa/66223
15503         * ipa-devirt.c (maybe_record_node): Fix comment; use
15504         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
15506 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
15508         PR rtl-optimization/70542
15509         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
15510         if there are any uses other than insn or debug insns.
15512 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
15513             Jakub Jelinek  <jakub@redhat.com>
15515         PR tree-optimization/70509
15516         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
15517         Shift HOST_WIDE_INT_1U instead of 1.
15519 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
15521         PR tree-optimization/70509
15522         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
15523         of the vector base type for index.
15525 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
15527         PR target/70510
15528         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
15530 2016-04-05  Richard Biener  <rguenther@suse.de>
15532         PR tree-optimization/70526
15533         * tree-sra.c (build_ref_for_offset): Use prev_base to
15534         extract the alias pointer type.
15536 2016-04-05  Richard Biener  <rguenther@suse.de>
15538         * dse.c (struct store_info): Remove alias_set member.
15539         (struct read_info_type): Likewise.
15540         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
15541         spill_deleted, clear_alias_set_lookup): Remove.
15542         (get_group_info): Remove dead base == NULL_RTX case.
15543         (dse_step0): Remove initialization of removed variables.
15544         (delete_dead_store_insn): Reomve alias set dumping.
15545         (free_read_records): Remove alias_set handling.
15546         (canon_address): Remove alias_set_out parameter.
15547         (record_store): Remove spill_alias_set, it's always zero.
15548         (check_mem_read_rtx): Likewise.
15549         (dse_step2): Rename from ...
15550         (dse_step2_nospill): ... this.  Adjust.
15551         (scan_stores): Rename from ...
15552         (scan_stores_nospill): ... this.
15553         (scan_reads): Rename from ...
15554         (scan_reads_nospill): ... this.
15555         (scan_stores_spill, scan_reads_spill): Remove.
15556         (dse_step3_scan): Remove for_spills argument which is always false.
15557         (dse_step3): Likewise.
15558         (dse_step5): Rename from ...
15559         (dse_step5_nospill): ... this.  Remove alias_set handling.
15560         (rest_of_handle_dse): Adjust.
15562 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
15564         PR target/70525
15565         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
15566         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
15567         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
15568         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
15570 2016-04-05  Richard Biener  <rguenther@suse.de>
15572         PR middle-end/70499
15573         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
15574         non-register type temporaries into SSA.
15576 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
15578         PR ipa/66223
15579         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
15580         calls when sanitizing.
15581         (possible_polymorphic_call_target_p): Fix formatting.
15583 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15584             Jakub Jelinek  <jakub@redhat.com>
15586         PR middle-end/70457
15587         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
15588         to ensure a call statement is compatible with a built-in's
15589         prototype.
15590         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
15591         Likewise.
15593 2016-04-04  Richard Biener  <rguenther@suse.de>
15595         PR rtl-optimization/70484
15596         * rtl.h (canon_output_dependence): Declare.
15597         * alias.c (canon_output_dependence): New function.
15598         * dse.c (record_store): Use canon_output_dependence rather
15599         than canon_true_dependence.
15601 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
15603         PR ipa/68881
15604         * cgraph.h (symtab_node::copy_visibility_from): New function.
15605         * symtab.c (symtab_node::copy_visibility_from): New function.
15606         * ipa-visibility.c (optimize_weakref): New function.
15607         (function_and_variable_visibility): Use it.
15609 2016-04-04  Martin Liska  <mliska@suse.cz>
15611         PR hsa/70402
15612         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
15613         value that is really in range handled by SBR instruction.
15614         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
15615         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
15616         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
15618 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
15620         PR target/70416
15621         PR target/67391
15622         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
15623         set, but not for SP_REG operands.
15625 2016-04-02  Martin Sebor  <msebor@redhat.com>
15627         PR c++/67376
15628         * fold-const.c (maybe_nonzero_address): New function.
15629         (fold_comparison): Call it.  Fold equality and relational
15630         expressions involving null pointers.
15631         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
15633 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
15635         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
15636         the "Y" constraint (scalar FP 0.0 immediate).
15638         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
15639         Add the "const_double" to the list of operand constraints.
15641 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
15643         PR rtl-optimization/70467
15644         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
15645         If low word of the last operand is 0, just emit addition/subtraction
15646         for the high word.
15648 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15650         PR target/70404
15651         * config/s390/s390.c (s390_expand_insv): Check for everything
15652         constant instead of just VOIDmode stuff.
15654 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15656         PR target/70496
15657         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
15659 2016-04-01  Nathan Sidwell  <nathan@acm.org>
15661         * tree.def (TRY_CATCH_EXPR): Correct documentation.
15663 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
15665         PR rtl-optimization/70461
15666         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
15667         is necessary.
15669 2016-03-31  Martin Liska  <mliska@suse.cz>
15671         PR hsa/70399
15672         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
15673         a tree value or an immediate integer value to a buffer
15674         that is eventually copied to a BRIG section.
15675         (emit_immediate_operand): Call the function here.
15676         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
15677         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
15678         of class' fields that are removed.
15679         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
15680         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
15681         m_brig_repr_size fields.
15683 2016-03-31  Martin Liska  <mliska@suse.cz>
15685         PR hsa/70391
15686         * hsa-gen.c (hsa_function_representation::update_dominance): New
15687         function.
15688         (convert_addr_to_flat_segment): Likewise.
15689         (gen_hsa_memory_set): New alignment argument.
15690         (gen_hsa_ctor_assignment): Likewise.
15691         (gen_hsa_insns_for_single_assignment): Provide alignment
15692         to gen_hsa_ctor_assignment.
15693         (gen_hsa_insns_for_direct_call): Add new argument.
15694         (expand_lhs_of_string_op): New function.
15695         (expand_string_operation_builtin): Likewise.
15696         (expand_memory_copy): New function.
15697         (expand_memory_set): New function.
15698         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
15699         (convert_switch_statements): Change signature.
15700         (generate_hsa): Use a return value of the function.
15701         (pass_gen_hsail::execute): Do not call
15702         convert_switch_statements here.
15703         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
15704         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
15705         (hsa_function_representation::update_dominance): New function.
15707 2016-03-31  Martin Liska  <mliska@suse.cz>
15709         PR hsa/70391
15710         * hsa-brig.c (emit_directive_variable): Emit alignment
15711         according to hsa_symbol::m_align.
15712         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
15713         (dump_hsa_symbol): Dump alignment of HSA symbols.
15714         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
15715         (gen_hsa_addr_with_align): New function.
15716         (hsa_bitmemref_alignment): Use newly added function.
15717         (gen_hsa_insns_for_load): Likewise.
15718         (gen_hsa_insns_for_store): Likewise.
15719         (gen_hsa_memory_copy): New argument added.
15720         (gen_hsa_insns_for_single_assignment): Respect
15721         alignment for assignments processed via gen_hsa_memory_copy.
15722         (gen_hsa_insns_for_direct_call): Likewise.
15723         (gen_hsa_insns_for_return): Likewise.
15724         (gen_function_def_parameters): Set default alignment.
15725         * hsa.c (hsa_object_alignment): New function.
15726         (hsa_byte_alignment): Pasted function.
15727         * hsa.h (hsa_symbol::m_align): New field.
15729 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
15731         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
15732         scratch field for goto case.
15734 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
15736         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
15738 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
15740         PR target/70442
15741         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
15742         (scalar_chain::convert_insn): Call convert_op for reg
15743         moves to handle undefined registers.
15745 2016-03-31  Nathan Sidwell  <nathan@acm.org>
15747         PR c++/70393
15748         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
15749         Assert we don't want to move backwards.
15751 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
15753         PR target/70453
15754         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
15756 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
15758         PR rtl-optimization/70460
15759         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
15760         with operand from REG_LABEL_OPERAND, instead substitute
15761         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
15762         Don't do anything for REG_NON_LOCAL_GOTO jumps.
15764 2016-03-31  Martin Liska  <mliska@suse.cz>
15766         * passes.c (execute_one_pass): Do not call
15767         todo_after for a discarded function.
15769 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
15771         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
15772         (no_cost, infinite_cost): Initialize the new field.
15773         (get_computation_cost_at): Record setup cost.
15774         (determine_use_iv_cost_address): Skip cost computation for sub
15775         uses if we can estimate it without losing accuracy.
15777 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
15779         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
15780         estimates here.
15781         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
15782         max_loop_iterations_int.
15783         (tree_unswitch_outer_loop): Likewise.
15784         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
15785         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
15787 2016-03-30  Richard Biener  <rguenther@suse.de>
15789         PR middle-end/70450
15790         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
15792 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
15794         PR target/70421
15795         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
15796         in gen_blendm expander.
15798 2016-03-30  Nick Clifton  <nickc@redhat.com>
15800         PR target/62254
15801         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
15802         case where we are already provided with an SImode SUBREG.
15804 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
15806         PR target/70439
15807         * config/i386/i386.c (ix86_expand_epilogue): Properly check
15808         conflict between DRAP register and __builtin_eh_return.
15810 2016-03-30  Michael Matz  <matz@suse.de>
15811             Richard Biener  <rguenther@suse.de>
15813         PR ipa/12392
15814         * ipa-polymorphic-call.c (struct type_change_info): Change
15815         speculative to an unsigned allowing to limit the work we do.
15816         (csftc_abort_walking_p): New inline function..
15817         (check_stmt_for_type_change): Limit the number of may-defs
15818         skipped for speculative devirtualization to
15819         max-speculative-devirt-maydefs.
15820         * params.def (max-speculative-devirt-maydefs): New param.
15821         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
15823 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
15825         PR target/63890
15826         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
15827         and TARGET_MACHO.
15829 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
15831         PR tree-optimization/59124
15832         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
15833         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
15835 2016-03-29  Jeff Law  <law@redhat.com>
15837         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
15839 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
15841         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
15842         to HOST_WIDE_INT.
15844 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
15846         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
15847         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
15848         gcrt0.o if linking dynamically.
15850 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
15852         PR ipa/70283
15853         * ipa-devirt.c (methods_equal_p): New function.
15854         (compare_virtual_tables): Use it.
15855         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
15856         * cgraphclones.c (clone_function_name_1): Use
15857         symbol_table::symbol_suffix_separator.
15858         * coverage.c (build_var): Likewise.
15859         * symtab.c (symbol_table::symbol_suffix_separator): New.
15861 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
15863         PR rtl-optimization/70429
15864         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
15865         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
15866         mode != result_mode.
15868         PR c++/70353
15869         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
15871         PR tree-optimization/70405
15872         * ssa-iterators.h (num_imm_uses): Add missing braces.
15874 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
15876         PR rtl-optimization/68695
15877         * ira-color.c (allocno_copy_cost_saving): New.
15878         (improve_allocation): Use it.
15880 2016-03-29  Richard Henderson  <rth@redhat.com>
15882         PR middle-end/70355
15883         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
15885 2016-03-29  Richard Biener  <rguenther@suse.de>
15887         PR middle-end/70424
15888         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
15889         use alignment returned by get_pointer_alignment_1 if it is
15890         bigger than BITS_PER_UNIT.
15891         * builtins.c (get_pointer_alignment_1): Do not return true
15892         for alignment extracted from SSA info.
15894 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
15896         * config/ft32/ft32.opt (mnodiv): New.
15897         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
15898         * doc/invoke.texi (FT32 Options -mnodiv): New.
15900 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
15902         PR target/70406
15903         * config/i386/i386.md (define_split, andn): Fix modes.
15905 2016-03-26  Richard Biener  <rguenther@suse.de>
15906             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15908         PR ipa/70366
15909         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
15910         instead of
15911         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
15912         as 2nd argument to cl_optimization_restore().
15914 2016-03-25  Richard Henderson  <rth@redhat.com>
15916         PR target/70120
15917         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
15918         * config/aarch64/aarch64-protos.h: Declare it.
15919         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
15921 2016-03-25  Alan Modra  <amodra@gmail.com>
15923         PR target/70052
15924         * config/rs6000/constraints.md (j): Simplify.
15925         * config/rs6000/predicates.md (easy_fp_constant): Exclude
15926         decimal float 0.D.
15927         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
15928         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
15929          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
15930         in all constraint alternatives.
15931         (movtd_64bit_nodm): Delete "j" constraint alternative.
15933 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
15935         * tree-ssa-propagate.c: Enhance docs for
15936         SSA_PROP_NOT_INTERESTING.
15938 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
15940         * doc/extend.texi: Fix typo in documentation to pure attribute.
15942 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
15944         PR target/70319
15945         * config/pa/pa.md (bswapdi2): Use a scratch register.
15947 2016-03-24  Richard Henderson  <rth@redhat.com>
15949         PR middle-end/69845
15950         * fold-const.c (extract_muldiv_1): Correct test for multiplication
15951         overflow.
15953 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
15955         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
15956         using ix86_expand_binary_operator instead of gen_andsi3.
15958 2016-03-24  Richard Biener  <rguenther@suse.de>
15960         PR tree-optimization/70396
15961         * tree-vect-stmts.c (vectorizable_comparison): Use
15962         get_vectype_for_scalar_type.
15964 2016-03-24  Richard Biener  <rguenther@suse.de>
15966         PR middle-end/70370
15967         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
15968         with register bases.
15970 2016-03-24  Richard Biener  <rguenther@suse.de>
15972         PR tree-optimization/70372
15973         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
15974         build_all_ones_cst to also handle vector types correctly.
15976 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
15978         PR target/70381
15979         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
15980         -mfloat128 here.
15982 2016-03-23  Marek Polacek  <polacek@redhat.com>
15984         PR c++/69884
15985         * doc/invoke.texi: Document -Wignored-attributes.
15987 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
15989         PR tree-optimization/69042
15990         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
15991         parameter from 30 to 40.
15993 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
15995         PR tree-optimization/69042
15996         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
15997         for use with constant offset stripped in base.
15999 2016-03-23  Richard Biener  <rguenther@suse.de>
16001         PR middle-end/70251
16002         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
16003         mode compatibility check.
16004         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
16006 2016-03-23  Jeff Law  <law@redhat.com>
16008         PR tree-optimization/64058
16009         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
16010         CONFLICT_COUNT.
16011         (struct ssa_conflicts): Move up earlier in the file.
16012         (conflicts_, var_map_): New static variables.
16013         (initialize_conflict_count): New function to initialize the
16014         CONFLICT_COUNT field for each conflict pair.
16015         (compare_pairs): Lazily initialize the conflict count and use it
16016         as the first tie-breaker.
16017         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
16018         and wipe conflicts_ and map_ around the call to qsort.  Remove
16019         special case for 2 coalesce pairs.
16020         * bitmap.c (bitmap_count_unique_bits): New function.
16021         (bitmap_count_bits_in_word): New function, extracted from
16022         bitmap_count_bits.
16023         (bitmap_count_bits): Use bitmap_count_bits_in_word.
16024         * bitmap.h (bitmap_count_unique_bits): Declare it.
16026 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
16028         PR target/69917
16029         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
16030         transparent alias chain for decl assembler name.
16031         * config/sol2.c (solaris_assemble_visibility): Likewise.
16033 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16035         * config/arm/arm1020e.md (1020call_op): Reduce reservation
16036         duration.
16037         (v10_fdivs): Likewise.
16038         (v10_fdivd): Likewise.
16040 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16042         PR driver/70132
16043         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
16044         to not call fclose twice on file.
16046 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
16048         PR tree-optimization/70354
16049         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
16050         oprnd0 is wider than oprnd1 and there is a cast from the wider
16051         type to oprnd1, mask it with the mask of the narrower type.
16053         PR target/70321
16054         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
16055         Optimize TARGET_STV splitters, if high or low word of last argument
16056         is 0 or -1.
16058 2016-03-22  Jeff Law  <law@redhat.com>
16060         PR target/70232
16061         tree-ssa-threadbackward.c
16062         (fsm_find_control_statement_thread_paths): Correctly distinguish
16063         between old style jump threads vs FSM jump threads.
16065 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
16067         PR target/70302
16068         * config/i386/i386.c (scalar_chain::convert_op): Support
16069         uninitialized register usage case.
16071 2016-03-22  Richard Biener  <rguenther@suse.de>
16073         PR middle-end/70251
16074         * genmatch.c (gen_transform): Adjust last parameter to a three-state
16075         int...
16076         (capture::gen_transform): ... to change behavior when substituting
16077         a condition into cond or not-cond expr context.
16078         (dt_simplify::gen_1): Adjust.
16079         * gimple-match-head.c: Include gimplify.h for unshare_expr.
16080         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
16081         last change and instead change to
16082         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
16083         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
16085 2016-03-22  Anthony Green  <green@moxielogic.com>
16087         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
16088         issue for moxiebox targets.
16089         (CC1PLUS_SPEC): Ditto.
16091 2016-03-22  Richard Biener  <rguenther@suse.de>
16093         PR middle-end/70333
16094         * fold-const.c (extract_muldiv_1): Properly perform multiplication
16095         in the wide type.
16097 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
16099         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
16101 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
16103         PR target/70325
16104         * config/i386/i386.c (def_builtin): Handle
16105         OPTION_MASK_ISA_AVX512VL to be and-ed with other
16106         bits.
16107         (const struct builtin_description bdesc_special_args[]):
16108         Remove duplicate ISA bits.
16110 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
16112         PR target/70329
16113         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
16114         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
16115         in a way that works also for AVX512BW.
16117         PR target/70300
16118         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
16119         instead of source if operands[1] is xmm16 and above and
16120         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
16121         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
16123         PR c++/70295
16124         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
16125         on assign if (*from_p) is a comparison, set it to
16126         TREE_NO_WARNING (*from_p).
16128 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
16130         PR middle-end/70326
16131         * lra.c (restore_scratches): Ignore deleted insns.
16133 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
16134             Jakub Jelinek  <jakub@redhat.com>
16136         PR tree-optimization/70317
16137         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
16138         to HONOR_NANS.
16140 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
16142         PR target/70327
16143         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
16144         of ix86_expand_move.
16145         (movoi): Ditto.
16146         (movti): Use general_operand for operand 1 predicate.
16148 2016-03-21  Martin Liska  <mliska@suse.cz>
16150         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
16151         insns.
16152         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
16154 2016-03-21  Martin Liska  <mliska@suse.cz>
16156         PR ipa/70306
16157         * ipa-icf.c (sem_function::parse): Skip static
16158         constructors and destructors.
16160 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
16162         PR target/70296
16163         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
16164         function-like macro, peek following token(s) if it is followed
16165         by CPP_OPEN_PAREN token with optional padding in between, and
16166         if not, don't treat it like a macro.
16168 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
16169             Alexander Monakov  <amonakov@ispras.ru>
16171         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
16172         for the stabs debug format.
16174 2016-03-21  Richard Biener  <rguenther@suse.de>
16176         PR tree-optimization/70310
16177         * tree-vect-generic.c (expand_vector_condition): Fold the built
16178         condition.
16180 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
16182         PR target/70293
16183         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
16184         Block third alternative for AVX-512VL target,
16186 2016-03-21  Martin Liska  <mliska@suse.cz>
16188         PR hsa/70234
16189         * hsa-brig.c (emit_function_directives): Mark unemitted
16190         global variables for emission.
16191         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
16192         (get_symbol_for_decl): Likewise.
16193         * hsa.h (struct hsa_symbol): New flag.
16195 2016-03-21  Richard Biener  <rguenther@suse.de>
16197         PR tree-optimization/70288
16198         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
16199         we do not estimate unsimplified all-constant conditionals or
16200         switches as optimized away.
16202 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
16204         PR rtl-optimization/69102
16205         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
16206         when we have a readonly dependency context.
16208 2016-03-18  Jeff Law  <law@redhat.com>
16210         PR rtl-optimization/70263
16211         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
16212         (update_equiv_regs): When trying to move a store to after the insn
16213         that sets the source of the store, make sure the store occurs after
16214         the insn that sets the source of the store.  When successful note
16215         the REG_EQUIV note created in the dump file.
16217 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
16218             Bernd Schmidt  <bschmidt@redhat.com>
16220         * doc/extend.texi: Document more potential problems with basic asms.
16222 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
16224         PR rtl-optimization/70278
16225         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
16226         VOIDmode.
16228 2016-03-18  Jason Merrill  <jason@redhat.com>
16230         * calls.c (load_register_parameters): Fix zero size sibcall logic.
16232 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
16234         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
16235         values to 128b regs.
16237 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
16239         PR tree-optimization/70252
16240         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
16241         boolean vector has a proper number of elements.
16242         (supportable_narrowing_operation): Likewise.
16244 2016-03-18  Tom de Vries  <tom@codesourcery.com>
16246         PR ipa/70269
16247         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
16249 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
16251         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
16252         instead of replace_rtx for DEBUG_INSNs.
16254 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
16256         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
16257         load type reservations.
16259 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
16261         PR target/70188
16262         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
16263         define_constraint for "Q" and "T" constraints.
16265 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
16267         Tweak the pipeline model for Exynos M1
16269         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
16270         model.
16272 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
16274         PR c/70264
16275         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
16276         where one or both locations aren't within a line_map.
16278 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
16280         PR driver/70192
16281         * opts.c (finish_options): Don't set flag_pie to the default if
16282         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
16283         if it is -1.
16285 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
16287         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
16288         true as ALL_REGS argument to replace_rtx.
16290 2016-03-17  Richard Biener  <rguenther@suse.de>
16292         PR debug/70271
16293         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
16294         last.
16296 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
16298         PR target/70245
16299         * rtl.h (replace_rtx): Add ALL_REGS argument.
16300         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
16301         equality and assert mode is the same, instead of just rtx pointer
16302         equality.
16303         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
16304         true as ALL_REGS argument to replace_rtx.
16306 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
16308         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
16309         for boolean vector with vector mode only.
16310         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
16312 2016-03-17  Nick Clifton  <nickc@redhat.com>
16314         PR target/70162
16315         * config/rx/rx.c (rx_print_integer): Print negative constants in
16316         decimal.
16318 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
16320         PR target/70261
16321         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
16323 2016-03-16  Richard Henderson  <rth@redhat.com>
16324             Richard Biener  <rguenth@suse.de>
16326         PR middle-end/70240
16327         PR middle-end/68215
16328         PR tree-opt/68714
16329         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
16330         first operand as is_gimple_condexpr.
16332         PR middle-end/70240
16333         PR middle-end/68215
16334         Revert r231575
16335         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
16336         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
16337         Do not gimplify the result.
16338         (do_unop): Adjust call to tree_vec_extract.
16339         (do_binop): Likewise.
16340         (do_compare): Likewise.
16341         (do_plus_minus): Likewise.
16342         (do_negate): Likewise.
16343         (expand_vector_condition): Likewise.
16344         (do_cond): Likewise.
16346 2016-03-16  Richard Henderson  <rth@redhat.com>
16348         PR target/70048
16349         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
16350         (aarch64_classify_address): Use it.
16351         (aarch64_legitimize_address): Force all subexpressions of PLUS
16352         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
16354 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
16355             Richard Biener  <rguenth@suse.de>
16357         PR target/70245
16358         * rtlanal.c (replace_rtx): For REG, if from is a REG,
16359         return to even if only REGNO is equal, and assert
16360         mode is the same.
16362 2016-03-11  Jeff Law  <law@redhat.com>
16364         PR rtl-optimization/70224
16365         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
16367 2016-03-16  Richard Henderson  <rth@redhat.com>
16369         PR middle-end/70199
16370         * function.h (struct function): Add has_forced_label_in_static.
16371         * gimplify.c (force_labels_r): Set it.
16372         * lto-streamer-in.c (input_struct_function_base): Read it.
16373         * lto-streamer-out.c (output_struct_function_base): Write it.
16374         * tree-inline.c (has_label_address_in_static_1): Remove.
16375         (copy_forbidden): Remove fndecl parameter; test
16376         has_forced_label_in_static.
16377         (inline_forbidden_p): Update call to copy_forbidden.
16378         (tree_versionable_function_p): Likewise.
16379         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
16380         (chkp_versioning): Likewise.
16381         * tree-inline.h (copy_forbidden): Update decl.
16383 2016-03-16  Marek Polacek  <polacek@redhat.com>
16385         PR c/70093
16386         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
16387         function being thunked if the result type doesn't have fixed size.
16388         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
16389         doesn't have fixed size.
16391 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
16393         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
16394         reporting malformed loop nest.
16396 2016-03-16  Tom de Vries  <tom@codesourcery.com>
16398         PR lto/70187
16399         * ipa-devirt.c (possible_polymorphic_call_targets): Move
16400         nodes.length () == 1 test to before first nodes[0] access.
16402 2016-03-16  Tom de Vries  <tom@codesourcery.com>
16404         PR tree-optimization/68715
16405         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
16406         single_pred_p test.
16408 2016-03-16  Tom de Vries  <tom@codesourcery.com>
16410         PR tree-optimization/68809
16411         * graphite-scop-detection.c (same_close_phi_node): Test if result types
16412         are the same.
16414 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
16415             Sandra Loosemore  <sandra@codesourcery.com>
16417         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
16418         on leaf attribute. Mention ELF interposition problems.
16420 2016-03-16  Alan Modra  <amodra@gmail.com>
16422         PR rtl-optimization/69195
16423         PR rtl-optimization/47992
16424         * ira.c (indirect_jump_optimize): Ignore artificial defs.
16425         Add comments.
16427 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
16429         PR bootstrap/69513
16430         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
16432 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16434         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
16436 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
16438         PR rtl-optimization/70222
16439         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
16440         optimization if mode is different from result_mode, queue up masking
16441         of the result in outer_op.  Formatting fix.
16443         PR middle-end/70239
16444         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
16445         of safe_grow.
16447 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
16449         PR rtl-optimization/69032
16450         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
16451         looping backwards over basic block insns.
16453 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
16455         PR target/66660
16456         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
16457         to non-speculative when propagating trap bits.
16459 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
16461         PR rtl-optimization/63384
16462         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
16463         DEBUG_INSN_P insns.
16465 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
16467         PR target/64411
16468         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
16469         factored out from ...
16470         (sched_analyze_insn): ... here.
16471         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
16472         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
16473         get_implicit_reg_pending_clobbers in it.
16474         (setup_id_reg_sets): Use setup_id_implicit_regs.
16475         (deps_init_id): Ditto.
16477 2016-03-15  Tom de Vries  <tom@codesourcery.com>
16479         PR ipa/70161
16480         * cgraph.c (cgraph_node::get_body): Save, reset and restore
16481         dump_file_name.
16482         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
16483         execute_function_dump.
16484         (execute_one_pass): Don't dump function if it will be dumped after ipa
16485         transform.
16487 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
16489         * genrecog.c (match_pattern_2): If pred is NULL don't call
16490         safe_predicate_mode on it.
16492 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
16494         PR middle-end/70219
16495         * lra-constraints.c (delete_move_and_clobber): Change assertion
16496         to also allow dregno == 0.
16498 2016-03-14  Richard Henderson  <rth@redhat.com>
16500         PR tree-opt/68714
16501         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
16502         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
16503         (reassociate_bb): Use optimize_vec_cond_expr; avoid
16504         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
16505         on vectors.
16507 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
16509         PR target/70083
16510         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
16511         regs.
16512         (lra_create_live_ranges_1): initialize hard register biggest_mode to
16513         VOIDmode.
16514         * lra-constraints.c (split_reg): For hard regs, try to find the
16515         biggest single-register mode used in the function.
16517 2016-03-14  Richard Biener  <rguenther@suse.de>
16519         PR tree-optimization/56365
16520         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
16521         constants to compare against.
16523 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
16525         PR target/70098
16526         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
16527         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
16528         (define_split for the GPR case): Use int_reg_operand instead of
16529         gpc_reg_operand for the output.
16531 2016-03-14  Tom de Vries  <tom@codesourcery.com>
16533         PR tree-optimization/70045
16534         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
16535         create_empty_if_region_on_edge argument.
16537 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
16539         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
16540         (STACK_CHECK_PROTECT): Likewise.
16541         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
16542         (STACK_CHECK_PROTECT): Likewise.
16543         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
16544         (STACK_CHECK_PROTECT): Likewise.
16545         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
16546         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16547         (STACK_CHECK_PROTECT): Likewise.
16549 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
16551         PR rtl-optimization/69307
16552         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
16553         registers in modes that span more than one register.
16555 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
16557         PR target/69614
16558         * lra-constraints.c (delete_move_and_clobber): New.
16559         (remove_inheritance_pseudos): Use it.
16561 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
16563         PR ada/70017
16564         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
16565         the libcall is LCT_THROW.
16566         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
16567         for the checking routine.
16569 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
16571         PR target/70131
16572         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
16573         optimization if we have direct move.
16574         (roundu32<mode>2_fprs): Likewise.
16576 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
16578         PR target/70123
16579         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
16580         be rematerialized.
16581         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
16582         Arguments swapped.  All callers changed.  Take reg_renumber into
16583         account, and Calculate and compare register ranges for hard regs.
16585 2016-03-11  Jeff Law  <law@redhat.com>
16587         PR tree-optimization/70190
16588         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16589         Handle cases where we can not extract the taken edge, even though we
16590         found a constant value.
16592         PR tree-optimization/64058
16593         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
16594         (num_coalesce_pairs): Move up earlier in file.
16595         (find_coalesce_pair): Initialize the INDEX field for each pair
16596         discovered.
16597         (compare_pairs): No longer sort on the elements in each pair.
16598         Instead break ties with the index of the coalesce pair.
16600 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16602         PR target/70002
16603         * config/aarch64/aarch64-protos.h
16604         (aarch64_save_restore_target_globals): New prototype.
16605         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
16606         Call the above when popping pragma.
16607         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
16608         New function.
16609         (aarch64_set_current_function): Rewrite using the above.
16611 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
16613         PR tree-optimization/70177
16614         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
16615         (extract_ops_from_tree): ... this.  In the 2 argument
16616         overload remove _1 suffix.
16617         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
16618         (extract_ops_from_tree): ... this.
16619         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
16620         Adjust callers.
16621         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
16622         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
16623         extract_ops_from_tree instead of 2 operand one.
16625 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
16627         PR tree-optimization/70013
16628         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
16629         for constant-pool entries.
16631 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
16633         PR rtl-optimization/70174
16634         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
16635         followed by gen_lowpart on force_reg instead of just gen_lowpart.
16637         PR tree-optimization/70169
16638         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
16639         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
16640         for unknown codes.
16642 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
16643             Jakub Jelinek  <jakub@redhat.com>
16645         PR target/70160
16646         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
16647         of uninitialized values.
16649 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16651         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
16652         define_expand.
16653         ("*trunctddd2"): New pattern definition.
16654         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
16655         TD->DD truncation.
16657 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16659         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
16660         definitions for BFP and DFP rounding modes.
16661         ("fixuns_truncdddi2", "fixuns_trunctddi2")
16662         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
16663         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
16664         ("fix_trunctf<mode>2"): Use the new constants instead of magic
16665         numbers.
16667 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16669         * config/s390/constraints.md: Adjust comment.
16670         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
16671         s390_decompose_addrstyle_without_index.
16672         * config/s390/predicates.md (shift_count_or_setmem_operand):
16673         Rename to setmem_operand.
16674         * config/s390/s390-protos.h
16675         (s390_decompose_shift_count): Rename to
16676         s390_decompose_addrstyle_without_index.
16677         * config/s390/s390.c (s390_decompose_shift_count)
16678         (s390_mem_constraint, print_shift_count_operand)
16679         (print_operand_address, print_operand): Rename
16680         s390_decompose_shift_count to
16681         s390_decompose_addrstyle_without_index and rename
16682         print_shift_count_operand to print_addrstyle_operand troughout the
16683         file.
16684         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
16685         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
16686         Rename shift_count_or_setmem_operand to setmem_operand.
16687         * config/s390/vx-builtins.md ("vec_insert<mode>")
16688         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
16689         nonmemory_operand.
16691 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16693         PR target/70168
16694         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
16695         Handle overlapping retval and newval.
16697 2016-03-10  Nick Clifton  <nickc@redhat.com>
16699         PR target/7044
16700         * config/aarch64/aarch64.c
16701         (aarch64_override_options_after_change_1): When forcing
16702         flag_omit_frame_pointer to be true, use a special value that can
16703         be detected if this function is called again, thus preventing
16704         flag_omit_leaf_frame_pointer from being forced to be false.
16706 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16708         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
16709         Set x_flag_omit_leaf_frame_pointer when handling
16710         -momit-leaf-frame-pointer.
16712 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
16714         PR lto/69589
16715         * cgraph.c (cgraph_node::dump): Dump split_part and
16716         indirect_call_target.
16717         * cgraph.h (cgraph_node): Add indirect_call_target flag.
16718         * ipa.c (has_addr_references_p): Cleanup.
16719         (is_indirect_call_target_p): New.
16720         (walk_polymorphic_call_targets): Do not mark virtuals that may be
16721         called indirectly as local.
16722         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
16724 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
16726         PR ipa/69630
16727         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
16728         on cxa_pure_virtual.
16730 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
16732         PR lto/69589
16733         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
16735 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
16737         PR lto/69589
16738         * tree.c (need_assembler_name_p): Only record main variant type names.
16740 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
16742         PR target/70113.
16743         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
16744         Always define to 0 or 1.
16745         (TARGET_FIX_ERR_A53_843419): New macro.
16746         * config/aarch64/aarch64-elf-raw.h
16747         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
16748         * config/aarch64/aarch64-linux.h: Likewise.
16749         * config/aarch64/aarch64.c
16750         (aarch64_override_options_after_change_1): Do not default
16751         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
16752         843419 is on.
16753         (aarch64_attributes): Handle fix-cortex-a53-843419.
16754         (aarch64_can_inline_p): Likewise.
16755         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
16757 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
16758             Jakub Jelinek  <jakub@redhat.com>
16760         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
16761         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
16762         DECL_COMMONS if flag_unconstrained_commons is set.
16763         * tree-dfa.c (get_ref_base_and_extent): Likewise.
16764         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
16765         (funconstrained-commons): Document.
16767 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
16769         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
16770         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
16772 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
16774         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
16775         has a proper number of elements.
16777 2016-03-10  Alan Modra  <amodra@gmail.com>
16779         PR rtl-optimization/69195
16780         PR rtl-optimization/47992
16781         * ira.c (recorded_label_ref): Delete.
16782         (update_equiv_regs): Return void.
16783         (indirect_jump_optimize): New function.
16784         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
16785         before regstat_compute_ri.  Don't rebuild_jump_labels here.
16786         Delete update_regstat.
16788 2016-03-10  Richard Biener  <rguenther@suse.de>
16790         PR tree-optimization/70128
16791         * tree-ssa-structalias.c (set_uids_in_ptset): Set
16792         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
16794 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
16796         PR tree-optimization/70152
16797         * tree-sra.c (replace_removed_params_ssa_names): Copy over
16798         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
16800         PR target/70086
16801         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
16802         instead of gen_sse2_loadlpd.
16803         * config/i386/sse.md (*vec_concatv2df): Rename to...
16804         (vec_concatv2df): ... this.
16806         PR tree-optimization/70127
16807         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
16809 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
16811         PR c/68473
16812         PR c++/70105
16813         * diagnostic-show-locus.c (compatible_locations_p): New function.
16814         (layout::layout): Sanitize ranges using compatible_locations_p.
16816 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
16818         PR c/68473
16819         PR c++/70105
16820         * diagnostic-show-locus.c (layout_range::layout_range): Replace
16821         location_range param with three const expanded_locations * and a
16822         bool.
16823         (layout::layout): Replace call to
16824         rich_location::lazily_expand_location with get_expanded_location.
16825         Extract the range and perform location expansion here, passing
16826         the results to the layout_range ctor.
16827         * diagnostic.c (source_range::debug): Delete.
16828         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
16829         of rich_location::get_expanded_location.
16830         * gcc-rich-location.c (get_range_for_expr): Delete.
16831         (gcc_rich_location::add_expr): Reimplement to avoid the
16832         rich_location::add_range overload that took a location_range,
16833         passing a location_t instead.
16835 2016-03-09  Richard Biener  <rguenther@suse.de>
16836         Jakub Jelinek  <jakub@redhat.com>
16838         PR tree-optimization/70138
16839         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
16840         Also skip vect_double_reduction_def.
16842 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
16844         PR target/70049
16845         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
16846         if the operand is "m".
16848 2016-03-09  Nathan Sidwell  <nathan@acm.org>
16850         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
16852 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
16854         * config/i386/i386.c (processor_target_table): Fix cost table
16855         intialization order for znver1.
16857 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
16859         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
16860         - becuase -> because.
16861         * ipa-reference.c (ignore_module_statics): Likewise.
16862         * cgraph.c (cgraph_node::get_body): Likewise.
16863         * ipa-inline.c (early_inliner): Likewise.
16864         * ipa-devirt.c (types_same_for_odr): Likewise.
16865         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
16866         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
16868 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16870         * tree-ssa-math-opts.c: Fix typo in comment.
16872 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
16874         PR target/70110
16875         * config/i386/i386.c (scalar_chain::make_vector_copies,
16876         scalar_chain::convert_reg): Call end_sequence in between
16877         get_insns and emit_conversion_insns rather than after both
16878         calls.
16880 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
16882         PR target/70064
16883         * config/i386/i386.h (machine_function): Add
16884         pc_thunk_call_expanded flag.
16885         (ix86_pc_thunk_call_expanded): New define.
16886         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
16887         (*set_got): Rename insn pattern from set_got.
16888         (*set_got_labelled): Rename inst pattern from set_got_labelled.
16889         * config/i386/i386.c (ix86_compute_frame_layout): Use
16890         ix86_pc_thunk_call_expanded to prevent red-zone.
16892 2016-03-07  Martin Jambor  <mjambor@suse.cz>
16894         * hsa.h (hsa_get_ctor_statements): Declare.
16895         (hsa_get_dtor_statements): Likewise.
16896         (hsa_get_kernel_dispatch_type): Likewise.
16897         * hsa.c (hsa_get_ctor_statements): New function.
16898         (hsa_get_dtor_statements): Likewise.
16899         (hsa_get_kernel_dispatch_type): Likewise.
16900         * hsa-brig.c (hsa_cdtor_statements): Removed.
16901         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
16902         hsa_get_dtor_statements.
16903         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
16904         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
16906 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
16908         * config/arm/arm-cores.def (cortex-r8): New.
16909         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
16910         * config/arm/arm-tune.md: Likewise.
16911         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
16913 2016-03-07  Martin Sebor  <msebor@redhat.com>
16915         PR rtl-optimization/19705
16916         * doc/invoke.texi (Options That Control Optimization): Clarify
16917         -fno-branch-count-reg.
16919 2016-02-26  Richard Biener  <rguenther@suse.de>
16920             Jeff Law  <law@redhat.com>
16922         PR tree-optimization/69740
16923         * cfghooks.c (remove_edge): Request loop fixups if we delete
16924         an edge that might turn an irreducible loop into a natural
16925         loop.
16926         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
16927         Move after definition of loops_state_clear.
16929 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
16931         PR rtl-optimization/69052
16932         * rtlanal.c (commutative_operand_precedence): Set higher precedence
16933         to CONST_WIDE_INT.
16935 2016-03-07  Tom de Vries  <tom@codesourcery.com>
16937         PR tree-optimization/70116
16938         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
16939         is_tm_ending stmts and ubsan/asan internal functions.
16940         (find_duplicate): Use it.  Don't test is_tm_ending here.
16942 2016-03-07  Richard Biener  <rguenther@suse.de>
16944         PR tree-optimization/70115
16945         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
16946         (propagate_constants_for_unrolling): Use replace_uses_by.
16948 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
16950         PR middle-end/69916
16951         * omp-low.c (struct oacc_loop): Add ifns.
16952         (new_oacc_loop_raw): Initialize it.
16953         (finish_oacc_loop): Clear mask & flags if no ifns.
16954         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
16955         (oacc_loop_xform_loop): Add ifns arg & adjust.
16956         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
16958 2016-03-07  Richard Henderson  <rth@redhat.com>
16960         PR rtl-opt/70061
16961         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
16962         (insert_value_copy_on_edge): Likewise.
16964 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16966         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
16968 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16970         PR target/62281
16971         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
16973 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
16975         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
16977 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
16979         Fix sseimul type attribute.
16980         * config/i386/znver1.md
16981         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
16982         znver1_sseimul_avx256_load) : Fix the type attribute.
16983         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
16984         pipe usage and latency.
16986 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
16988         PR c++/70084
16989         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
16990         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
16991         to the right type.
16993 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
16995         PR c/69973
16996         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
16998         PR rtl-optimization/69941
16999         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
17000         the reg share its mode.
17002 2016-03-04  Jeff Law  <law@redhat.com>
17004         PR tree-optimization/69196
17005         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
17006         If the both SSA_NAMEs are anonymous, then consider them unassociated
17007         and include the PHI in the statement count.
17009 2016-03-05  Tom de Vries  <tom@codesourcery.com>
17011         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
17012         construct in oacc routine.  Check for oacc region in oacc routine.
17014 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
17016         PR target/70062
17017         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
17018         2016-02-22 changes, instead don't recurse if RECUR is already true.
17019         Don't change *dynamic_check if RECUR.  Adjust recursive caller
17020         to pass true to the new argument.
17021         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
17023         PR target/70059
17024         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
17025         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
17026         fixes.
17027         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
17029 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
17031         PR rtl-optimization/57676
17032         * lra-assigns.c (lra_assign): Guard test for maximum iterations
17033         with flag_checking.
17035 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
17037         * tree-vect-patterns.c (search_type_for_mask): Handle
17038         comparison of booleans.
17040 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
17042         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
17043         Fix @xref usage.
17045         PR debug/69947
17046         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
17047         all other ops that have dw_val_class_die_ref operands,
17048         and DW_OP_GNU_entry_value.
17050 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17052         PR rtl-optimization/69904
17053         * config/arm/arm.c (arm_cannot_copy_insn_p):
17054         Return true for load-exclusive instructions.
17056 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
17058         PR target/70021
17059         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
17060         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
17061         the pattern no matter if it is used just by non-pattern, pattern
17062         or mix thereof.
17063         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
17064         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
17065         oprnd1 def_stmt is in pattern, don't look through it.
17067 2016-03-03  Marek Polacek  <polacek@redhat.com>
17069         PR middle-end/70050
17070         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
17072 2016-03-03  Martin Liska  <mliska@suse.cz>
17074         PR tree-optimization/70043
17075         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
17076         previous statement if we see a debug statement.
17078 2016-03-03  Richard Biener  <rguenther@suse.de>
17080         PR tree-optimization/55936
17081         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
17082         parameter and guard unsafe equivalence use.
17083         (vrp_evaluate_conditional_warnv_with_ops): Always use
17084         safe equivalences but not via the quadratic compare_names
17085         helper.
17087 2016-03-03  Michael Collison  <michael.collison@linaro.org>
17089         PR target/70014
17090         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
17091         for operand 1 to s_register_operand. Change predicate for operand
17092         2 to arm_not_immediate_operand.
17094 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
17096         * doc/tm.texi: Regenerated.
17098 2016-03-02  Richard Henderson  <rth@redhat.com>
17100         PR rtl-opt/67145
17101         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
17102         simplification when all args are positive non-fixed registers.
17104 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17106         * target.def (lra_p): Specify that new ports should use LRA.
17108 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
17110         PR libgomp/69555
17111         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
17112         gimplify_type_sizes the type they refer to.
17113         (omp_notice_variable): Handle reference vars to VLAs.
17114         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
17115         reference to VLA decls in the second pass instead of first pass.
17117 2016-03-02  Tom de Vries  <tom@codesourcery.com>
17119         PR tree-optimization/68659
17120         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
17121         new_expr == NULL_TREE.
17122         (get_new_name): Handle ADDR_EXPR.
17124 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
17126         PR rtl-optimization/69052
17127         * loop-invariant.c (canonicalize_address): New function.
17128         (inv_can_prop_to_addr_use): Check validity of address expression
17129         which is canonicalized by above function.
17131 2016-03-02  Alan Modra  <amodra@gmail.com>
17133         PR ipa/69990
17134         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
17135         larger alignment.
17137 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
17139         PR target/70028
17140         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
17141         (*movhi_internal): Put mask moves from and to memory separately
17142         from moves from/to GPRs.
17144 2016-03-02  Richard Biener  <rguenther@suse.de>
17146         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
17147         GENERIC expressions in GIMPLE.
17149 2016-03-02  Richard Biener  <rguenther@suse.de>
17151         * config/i386/i386.c (type_natural_mode): Fix typo.
17153 2016-03-02  Nick Clifton  <nickc@redhat.com>
17155         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
17157 2016-03-02  Richard Biener  <rguenther@suse.de>
17158             Uros Bizjak  <ubizjak@gmail.com>
17160         PR target/67278
17161         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
17163 2016-03-02  Richard Biener  <rguenther@suse.de>
17165         PR middle-end/67278
17166         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
17168 2016-03-02  Marek Polacek  <polacek@redhat.com>
17170         PR c/67854
17171         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
17172         "is promoted to" warning.
17174 2016-03-01  DJ Delorie  <dj@redhat.com>
17176         * config.gcc: Deprecate mep-*.
17178 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
17180         PR middle-end/70025
17181         * lra-constraints.c (regno_val_use_in): New.
17182         (match_reload): Use it instead of regno_use_in.
17184 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
17186         PR rtl-optimization/70007
17187         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
17188         references present in REG_EQUAL notes attached to non-SET patterns.
17190 2016-03-01  Jeff Law  <law@redhat.com>
17192         PR tree-optimization/69196
17193         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
17194         Appropriately clamp the number of statements to copy when the
17195         thread path does not traverse a loop backedge.
17197         PR tree-optimization/69196
17198         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
17199         Do count some PHIs in the thread path against the insn count.  Decrease
17200         final statement count by one as the control statement in the last
17201         block will get removed.  Remove special cased code for handling PHIs
17202         in the last block.
17204 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
17206         PR target/70027
17207         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
17208         asm dialect alternatives to explicit GOTPCREL calls.
17210 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
17212         PR ada/70017
17213         * ira.c (do_reload): Issue warning for generic stack checking here...
17214         * reload1.c (reload): ...instead of here and streamline it.
17216 2016-03-01  Nick Clifton  <nickc@redhat.com>
17218         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
17220 2016-03-01  Richard Biener  <rguenther@suse.de>
17222         PR tree-optimization/69983
17223         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
17224         types and fall back to operand_equal_p.
17226 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17228         Revert
17229         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17231         * config/s390/constraints.md ("jm8"): New constraint.
17232         * config/s390/predicates.md ("const_int_8bitset_operand"): New
17233         predicate.
17234         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
17235         into ...
17236         ("*setmem_long<setmem_and>"): New pattern.
17237         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
17238         into ...
17239         ("*setmem_long_31z<setmem_and>"): New pattern.
17240         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
17241         New substitution rules with the required attributes.
17244 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17246         Revert
17247         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17249         * gensupport.c (process_substs_on_one_elem): Split loop to
17250         complete mark_operands_used_in_match_dup on all expressions in the
17251         vector first.
17252         (adjust_operands_numbers): Inline into process_substs_on_one_elem
17253         and remove function.
17255 2016-03-01  Richard Biener  <rguenther@suse.de>
17257         PR middle-end/70022
17258         * fold-const.c (fold_indirect_ref_1): Fix range checking for
17259         vector BIT_FIELD_REF extract.
17261 2016-03-01  Richard Biener  <rguenther@suse.de>
17263         PR tree-optimization/69994
17264         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
17266 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
17268         PR tree-optimization/69956
17269         * tree-vect-stmts.c (supportable_widening_operation): Support
17270         multi-step conversion of boolean vectors.
17271         (supportable_narrowing_operation): Likewise.
17273 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17275         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
17276         anymore.
17278 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17280         * config/s390/subst.md (DSI_VI): New mode iterator.
17281         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
17282         * config/s390/vector.md ("vec_set<mode>"): Move expander before
17283         the insn definition.
17284         ("*vec_set<mode>"): Change predicate and add alternative to
17285         support only either register or const_int operands as element
17286         selector.
17287         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
17288         operands.
17289         ("vec_extract<mode>"): New expander.
17290         ("*vec_extract<mode>"): New insn definition supporting reg and
17291         const_int element selectors.
17292         ("*vec_extract<mode>_plus"): New insn definition supporting
17293         reg+const_int element selectors.
17294         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
17295         following expander+insn definition.
17296         ("<vec_shifts_name><mode>3"): New expander.
17297         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
17299 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17301         * config/s390/s390.md ("*tabort_1"): Change predicate to
17302         nonmemory_operand.  Add a second alternative to cover
17303         register as well as const int operands.
17304         ("*tabort_1_plus"): New pattern definition.
17306 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17308         * config/s390/s390.md ("*ashrdi3_cc_31")
17309         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
17310         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
17311         Merge insn definitions into ...
17312         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
17313         New pattern definition.
17314         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
17315         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
17316         ("*ashr<mode>3_and"): Merge insn definitions into ...
17317         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
17318         New pattern definition.
17319         * config/s390/subst.md ("addr_style_op_cc_subst")
17320         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
17321         substitutions patterns plus attributes.
17322         Add ashiftrt to SUBST iterator.
17324 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17326         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
17327         op2 to nonmemory_operand.
17328         ("*<shift>di3_31", "*<shift>di3_31_and"):
17329         Merge into single pattern definition ...
17330         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
17331         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
17332         pattern definition ...
17333         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
17334         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
17335         iterator.
17337 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17339         * config/s390/predicates.md (const_int_6bitset_operand): New
17340         predicate.
17341         * config/s390/s390.md: Include subst.md.
17342         ("rotl<mode>3"): New expander.
17343         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
17344         ...
17345         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
17346         * config/s390/subst.md: New file.
17348 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17350         * config/s390/s390.md ("op_type", "atype", "length" attributes):
17351         Remove RRR type.  It doesn't really exist.
17352         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
17353         attributes.
17354         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
17355         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
17356         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
17357         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
17358         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
17359         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
17360         `enabled' attribute.
17362 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17364         * gensupport.c (process_substs_on_one_elem): Split loop to
17365         complete mark_operands_used_in_match_dup on all expressions in the
17366         vector first.
17367         (adjust_operands_numbers): Inline into process_substs_on_one_elem
17368         and remove function.
17370 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
17372         PR target/69706
17373         * config/sparc/sparc.c (NWORDS_UP): Rename to...
17374         (CEIL_NWORDS): ...this.  Use CEIL macro.
17375         (compute_fp_layout): Adjust to above renaming.
17376         (function_arg_union_value): Likewise.
17377         (sparc_arg_partial_bytes): Likewise.
17378         (sparc_function_arg_advance): Likewise.
17380 2016-02-29  Jeff Law  <law@redhat.com>
17382         PR tree-optimization/70005
17383         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
17384         where an object with a boolean range is compared against a value
17385         outside [0..1].
17387         PR tree-optimization/69999
17388         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
17389         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
17390         loop cleanups.
17392 2016-02-29  Richard Biener  <rguenther@suse.de>
17394         PR tree-optimization/69994
17395         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
17396         (get_unary_op): Look through nop conversions.
17397         (ops_equal_values_p): New function, look for equality diregarding
17398         nop conversions.
17399         (eliminate_plus_minus_pair): Use ops_equal_values_p
17400         (repropagate_negates): Do not use get_unary_op here.
17402 2016-02-29  Martin Liska  <mliska@suse.cz>
17404         * system.h: Poison ENABLE_CHECKING macro.
17406 2016-02-29  Martin Liska  <mliska@suse.cz>
17408         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
17409         is presented in dump flags.
17410         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
17411         (hsa_regalloc): Likewise.
17413 2016-02-19  Richard Biener  <rguenther@suse.de>
17415         PR tree-optimization/69980
17416         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
17417         permutation of those we need to keep.
17419 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
17421         PR target/69706
17422         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
17423         (NWORDS_UP): ...this
17424         (init_cumulative_args): Minor tweaks.
17425         (sparc_promote_function_mode): Likewise.
17426         (scan_record_type): Delete.
17427         (traverse_record_type): New function template.
17428         (classify_data_t): New structure type.
17429         (classify_registers): New inline function.
17430         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
17431         exhausted.  Instantiate traverse_record_type on classify_registers and
17432         deal with the case of a structure passed in slot #15 with no FP field
17433         in the first word.
17434         (assign_data_t): New structure type.
17435         (compute_int_layout): New static function.
17436         (compute_fp_layout): Likewise.
17437         (count_registers): New inline function.
17438         (assign_int_registers): New static function.
17439         (assign_fp_registers): Likewise.
17440         (assign_registers): New inline function.
17441         (function_arg_record_value_1): Delete.
17442         (function_arg_record_value_2): Likewise.
17443         (function_arg_record_value_3): Likewise.
17444         (function_arg_record_value): Adjust to above changes.  Instantiate
17445         traverse_record_type on count_registers to first count the number of
17446         registers to be used and then on assign_registers to assign them.
17447         (function_arg_union_value): Adjust to above renaming.
17448         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
17449         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
17450         case of a structure passed in slot #15
17451         (sparc_function_arg_advance): Likewise.
17452         (function_arg_padding): Minor tweak.
17454 2016-02-29  Richard Biener  <rguenther@suse.de>
17456         PR tree-optimization/69720
17457         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
17458         the adjustment_def path for possibly vectorized defs.
17459         (vect_create_epilog_for_reduction): Handle vectorized initial
17460         defs properly.
17462 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
17464         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
17466 2016-02-27  Jeff Law  <law@redhat.com>
17468         Revert
17469         2016-02-26  Richard Biener  <rguenther@suse.de>
17470                     Jeff Law  <law@redhat.com>
17472         PR tree-optimization/69740
17473         * cfghooks.c (remove_edge): Request loop fixups if we delete
17474         an edge that might turn an irreducible loop into a natural
17475         loop.
17477 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
17479         PR rtl-optimization/69896
17480         * tree-vect-generic.c (get_compute_type): Avoid single element
17481         vector types.
17483 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
17485         Rename the AArch64 tuning option and related functions to enable the
17486         Newton series for the reciprocal square root to reflect its
17487         approximative characteristic.
17489         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
17490         function to "aarch64_emit_approx_rsqrt".
17491         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
17492         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
17493         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
17494         (xgene1_tunings): Likewise.
17495         (use_rsqrt_p): Likewise.
17496         (aarch64_emit_swrsqrt): Use new function name.
17497         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
17498         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
17499         text explaining this option.
17500         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
17502 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
17504         PR target/69969
17505         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17506         complain about -mallow-movmisalign without -mvsx if
17507         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
17509 2016-02-26  Joel Sherrill  <joel@rtems.org>
17511         * config.gcc: Add x86_64-*-rtems*.
17512         * config/i386/rtems-64.h: New file.
17514 2016-02-26  Joel Sherrill  <joel@rtems.org>
17516         * config.gcc: Add aarch64-*-rtems*.
17517         * config/aarch64/rtems.h: New file.
17519 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
17521         PR target/69946
17522         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
17523         shift amount using %h.  Add comment.
17525 2016-02-26  Richard Biener  <rguenther@suse.de>
17526             Jeff Law  <law@redhat.com>
17528         PR tree-optimization/69740
17529         * cfghooks.c (remove_edge): Request loop fixups if we delete
17530         an edge that might turn an irreducible loop into a natural
17531         loop.
17533 2016-02-26  Martin Jambor  <mjambor@suse.cz>
17535         PR middle-end/69920
17536         * tree-sra.c (sra_modify_assign): Do not remove loads of
17537         uninitialized aggregates to SSA_NAMEs.
17539 2016-02-26  Richard Henderson  <rth@redhat.com>
17541         PR target/69709
17542         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
17543         pseudo in case the target rtx matches the source of the left
17544         shift.
17546 2016-02-26  Martin Jambor  <mjambor@suse.cz>
17548         PR hsa/69568
17549         * hsa.h (hsa_type_packed_p): Declare.
17550         * hsa.c (hsa_type_packed_p): New function.
17551         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
17552         loads.
17553         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
17554         * hsa-brig.c (emit_basic_insn): Likewise.
17556 2016-02-26  Martin Jambor  <mjambor@suse.cz>
17558         pr hsa/69674
17559         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
17560         pointers.
17561         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
17563 2016-02-26  Martin Jambor  <mjambor@suse.cz>
17565         * hsa.h (is_a_helper): New overload for hsa_op_immed for
17566         hsa_op_with_type operands.
17567         (hsa_unsigned_type_for_type): Declare.
17568         * hsa.c (hsa_unsigned_type_for_type): New function.
17569         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
17570         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
17571         the finalizer.  Do not emit extra move.
17573 2016-02-26  Martin Jambor  <mjambor@suse.cz>
17575         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
17576         atomic operations in private segment.
17578 2016-02-26  Martin Jambor  <mjambor@suse.cz>
17580         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
17581         statements to wi->info.  Also disallow omp simd constructs.
17582         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
17583         for not gridifying.  Dump special string for omp_for.
17585 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17587         PR target/69245
17588         * config/aarch64/aarch64.c (aarch64_set_current_function):
17589         Save/restore target globals when switching to
17590         target_option_default_node.
17592 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17594         PR target/69613
17595         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
17596         Return 0 if !SHIFT_COUNT_TRUNCATED.
17598 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
17599             Eric Botcazou  <ebotcazou@adacore.com>
17601         PR rtl-optimization/69891
17602         * dse.c (scan_insn): If we can't figure out memset arguments
17603         or they are non-constant, call clear_rhs_from_active_local_stores.
17605 2016-02-26  Martin Liska  <mliska@suse.cz>
17607         * doc/extend.texi: Mention clog10, clog10f an clog10l
17608         in Builtins section.
17610 2016-02-26  Martin Liska  <mliska@suse.cz>
17612         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
17613         CHECKING_P.
17614         (resolve_args_picking_1): Likewise.
17615         * dwarf2out.h (struct GTY): Likewise.
17617 2016-02-26  Martin Liska  <mliska@suse.cz>
17619         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
17620         with flag_checking.
17621         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
17623 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
17624             Martin Liska  <mliska@suse.cz>
17626         * doc/install.texi: Mention --enable-valgrind-annotations.
17628 2016-02-26  Richard Biener  <rguenther@suse.de>
17630         PR tree-optimization/69551
17631         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
17632         looking through aliases adjust DECL_PT_UID to refer to the
17633         ultimate alias target.
17635 2016-02-25  Martin Liska  <mliska@suse.cz>
17637         PR middle-end/69919
17638         * alloc-pool.c (after_memory_report): New variable.
17639         * alloc-pool.h (base_pool_allocator ::release): Do not use
17640         the infrastructure if after_memory_report.
17641         * toplev.c (toplev::main): Mark after memory report.
17643 2016-02-25  Richard Biener  <rguenther@suse.de>
17645         PR tree-optimization/48795
17646         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
17648 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
17650         PR driver/68463
17651         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
17652         offloading is enabled and -fopenacc or -fopenmp is specified.
17653         (CRTOFFLOADEND): Likewise.
17654         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
17655         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
17656         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
17657         (offload_objects_file_name): New static var.
17658         (tool_cleanup): Remove offload_objects_file_name file.
17659         (find_offloadbeginend): Replace with ...
17660         (find_crtoffloadtable): ... this.
17661         (run_gcc): Remove offload_argc and offload_argv.
17662         Get offload_objects_file_name from -foffload-objects=... option.
17663         Read names of object files with offload from this file, pass them to
17664         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
17665         don't pass offloadbegin and offloadend to the linker.  Don't pass
17666         offload non-LTO files to the linker, because now they're not claimed.
17668 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
17670         PR ipa/69630
17671         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
17672         on builtin_unreachable.
17674 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
17676         PR rtl-optimization/69896
17677         * regcprop.c: Include cfgrtl.h.
17678         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
17679         than remembered mode, either delete it (if noop_move_p), or
17680         treat like copy_p but not noop_p instruction.
17682 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
17684         PR debug/69705
17685         * dwarf2out.c (gen_variable_die): Work around buggy LTO
17686         - allow NULL decl for Fortran DW_TAG_common_block variables.
17688 2016-02-24  Jason Merrill  <jason@redhat.com>
17690         * common.opt (flifetime-dse): Add -flifetime-dse=1.
17692 2016-02-24  Richard Biener  <rguenther@suse.de>
17693             Jakub Jelinek  <jakub@redhat.com>
17695         PR middle-end/69760
17696         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
17697         conditionally executed ops to well-defined overflow behavior.
17699 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
17701         PR middle-end/69915
17702         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
17703         elements.
17705 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17707         PR rtl-optimization/69886
17708         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
17709         argument.  Use it when checking validity of set instructions.
17710         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
17711         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
17712         callsite.
17713         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
17714         * store-motion.c (find_moveable_store): Update
17715         can_assign_to_reg_without_clobbers_p callsite.
17717 2016-02-24  Richard Biener  <rguenther@suse.de>
17719         PR middle-end/68963
17720         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
17721         bogus check.
17722         (record_nonwrapping_iv): Do not fall back to the low/high bound
17723         for non-constant IV bases if the stmt is not always executed.
17725 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17727         * config/arm/arm-cores.def (cortex-a32): New entry.
17728         * config/arm/arm-tables.opt: Regenerate.
17729         * config/arm/arm-tune.md: Regenerate.
17730         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
17731         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
17732         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
17733         for -mcpu and -mtune.
17735 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17737         PR target/69875
17738         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
17739         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
17740         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
17741         (atomic_loaddi_1): Delete.
17742         (atomic_loaddi): Rewrite expander using the above changes.
17744 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
17746         PR c/69918
17747         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
17748         2 to 3.
17750 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
17751             Richard Biener  <rguenth@suse.de>
17753         PR middle-end/69909
17754         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
17755         set_mem_attributes if tem is SSA_NAME which got expanded
17756         as a MEM.
17758 2016-02-24  Richard Biener  <rguenther@suse.de>
17760         PR tree-optimization/69907
17761         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
17762         end of permutations for BB vectorization.
17764 2016-02-24  Christian Bruel  <christian.bruel@st.com>
17766         * config/arm/arm-c.c (arm_option_override): Initialize
17767         target_option_current_node.
17768         * config/arm/arm.c (arm_pragma_target_parse): Replace
17769         build_target_option_node call by target_option_current_node.
17770         Set target_option_current_node.
17771         Fix comments.
17773 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
17775         PR target/69810
17776         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
17777         define_insn_and_split to define_insn.
17778         (zero_extendqi<mode>2_dot2): Same.
17779         (extendqi<mode>2_dot): Same.
17780         (extendqi<mode>2_dot2): Same.
17782 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
17784         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
17785         and add bypass for AES{D,E} and AESMC pairs.
17786         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
17787         and AESMC pairs.
17789 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
17791         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
17792         series for reciprocal square root in Exynos M1.
17794 2016-02-23  Martin Sebor  <msebor@redhat.com>
17796         PR c/69759
17797         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
17798         __builtin_alloca_with_align.
17800 2016-02-23  Richard Henderson  <rth@redhat.com>
17802         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
17803         (ix86_register_pragmas): Remove __seg_tls.
17804         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
17805         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
17806         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
17807         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
17808         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
17809         * doc/extend.texi (__seg_tls): Remove item.
17811 2016-02-23  Richard Biener  <rguenther@suse.de>
17813         * alloc-pool.h (struct allocation_object): Make id member
17814         conditional on CHECKING_P again.
17815         (get_instance): Adjust.
17816         (base_pool_allocator): Likewise.
17818 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
17820         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
17821         (parallelize_loops): In OpenACC kernels mode, set n_threads to
17822         zero.
17823         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
17824         flag_openacc.
17825         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
17827 2016-02-23  Richard Biener  <rguenther@suse.de>
17829         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
17830         * bitmap.h (struct bitmap_usage): Likewise.
17831         (bitmap_move): Declare.
17832         * bitmap.c (register_overhead): Take size_t argument.
17833         (bitmap_move): New function.
17834         * df-problems.c (df_rd_transfer_function): Use bitmap_move
17835         to properly account overhead.
17836         * tree.c (free_node): Use tree_size.
17838 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
17840         PR c++/69902
17841         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
17842         when inverting comparison.
17844         PR c/69900
17845         * common.opt (Wunreachable-code): Add Warning flag.
17847 2016-02-23  Mark Wielaard  <mjw@redhat.com>
17848             Jakub Jelinek  <jakub@redhat.com>
17850         PR c/69911
17851         * cgraphunit.c (check_global_declaration): Check main_input_filename
17852         and DECL_SOURCE_FILE are not NULL.
17854 2016-02-23  Martin Jambor  <mjambor@suse.cz>
17856         PR tree-optimization/69666
17857         * tree-sra.c (sra_modify_assign): Do not attempt to create
17858         default_def replacements for unscalarizable regions.
17860 2016-02-20  Mark Wielaard  <mjw@redhat.com>
17862         PR c/28901
17863         * cgraphunit.c (check_global_declaration): Check level of
17864         warn_unused_const_variable and main_input_filename.
17865         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
17866         (-Wunused-variable): For C implies -Wunused-const-variable=1.
17867         (-Wunused-const-variable): Explain levels 1 and 2.
17869 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
17871         PR target/69888
17872         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
17873         identical arguments.  Formatting and spelling fixes.
17875         PR target/69885
17876         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
17877         be specified.
17879         PR target/69894
17880         PR target/69895
17881         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
17882         and m68k-devices.def.
17883         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
17884         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
17886 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
17888         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
17889         and HImode registers.
17891 2016-02-22  Richard Biener  <rguenther@suse.de>
17893         PR tree-optimization/69882
17894         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
17895         preserve permutations present because of gaps.
17896         (vect_supported_load_permutation_p): Always continue checking
17897         permutations after vect_attempt_slp_rearrange_stmts.
17899 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
17901         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
17902         min_profitable_estimate, rather than min_profitable_iters.
17904 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
17906         PR target/69885
17907         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
17908         SImode for last match_operand.
17910 2016-02-22  Martin Liska  <mliska@suse.cz>
17912         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
17913         return bitsize - 1 as the return value.
17915 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
17917         PR target/69806
17918         PR target/54089
17919         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
17920         Handle negative shift counts.
17921         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
17922         force_reg on the shift constant.
17923         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
17924         (lshrsi3_d): Handle negative shift counts.
17926 2016-02-22  Richard Biener  <rguenther@suse.de>
17927             Tom de Vries  <tom@codesourcery.com>
17929         * graph.c: Include dumpfile.h.
17930         (print_graph_cfg): Split into three overloads.
17931         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
17933 2016-02-22  Tom de Vries  <tom@codesourcery.com>
17935         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
17936         dump-fn.
17938 2016-02-22  Richard Biener  <rguenther@suse.de>
17940         PR ipa/37448
17941         * ipa-inline-transform.c (inline_call): When not updating
17942         overall summaries adjust self size by the growth estimate.
17943         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
17944         hash-set, do not update overall summaries here.  Renamed from ...
17945         (inline_to_all_callers): ... this which is now wrapping the
17946         above and performing delayed overall summary update.
17947         (early_inline_small_functions): Delay updating of the overall
17948         summary.
17950 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
17952         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
17953         variable.
17955 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
17957         PR driver/69805
17958         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
17959         :%* in %:gt() argument.
17960         (greater_than_spec_func): Adjust for expecting only numbers,
17961         if there are more than two numbers, compare the last two.
17963 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
17965         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
17966         -Wnarrowing with -std.
17968 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
17970         PR c++/69851
17971         * expr.c (store_field): Don't use bit-field path if exp is
17972         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
17973         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
17974         and the assignment can be performed by bitwise copy.  Formatting
17975         fix.
17977         PR middle-end/69838
17978         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
17979         call copy_reg_eh_region_note_forward on before and/or after sequences
17980         and remove note from insn if it no longer can throw.
17982         PR target/69820
17983         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
17984         if TARGET_AVX512BW.
17986 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17988         * config/s390/vector.md: Add missing commutative operand markers
17989         to the patterns which qualify for one.
17990         * config/s390/vx-builtins.md: Likewise.
17992 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17994         * config/s390/vector.md (VI, VI_QHS): Add single element vector
17995         types to mode iterators.
17996         (vec_double): ... and mode attribute.
17997         * config/s390/vx-builtins.md (non_vec_int): Likewise.
17999 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18001         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
18002         Change the predicate of op2 from nonimmediate to general and let
18003         reload fix it if necessary.
18005 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18007         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
18009 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18011         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
18012         mode.
18014 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18016         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
18017         * config/s390/s390.c (s390_expand_vec_movstr): New function.
18018         * config/s390/s390.md ("movstr<P:mode>"): Call
18019         s390_expand_vec_movstr.
18021 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18023         * config/s390/s390.md: Add missing output modifier for operand 1
18024         to print it as address properly.
18026 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18028         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
18029         * config/s390/2964.md: New file.
18030         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
18031         of insn grouping attributes depending on the CPU level.
18032         (s390_get_unit_mask): New function.
18033         (s390_sched_score): Remove the OOO from the scheduling macros.
18034         Add loop to calculate a score for the instruction mix.
18035         (s390_sched_reorder): Likewise plus improve debug output.
18036         (s390_sched_variable_issue): Rename macros as above.  Calculate
18037         the unit distances after actually scheduling an insn.  Improve
18038         debug output.
18039         (s390_sched_init): Clear last_scheduled_unit_distance array.
18040         * config/s390/s390.md: Include 2964.md.
18042 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
18044         PR target/69671
18045         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
18046         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
18047         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
18048         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
18049         *avx512f_<code>v8div16qi2_mask_1): New insns.
18051 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
18053         PR target/68404
18054         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
18055         2016-02-09 change.
18057         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
18058         earlyclobber from target.  Use wF constraint for fused memory
18059         address.
18060         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
18062 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
18063             Martin Liska  <mliska@suse.cz>
18065         PR sanitizer/69863
18066         * cfgexpand.c (asan_sanitize_stack_p): New function.
18067         (partition_stack_vars): Use the function.
18068         (expand_stack_vars): Likewise.
18069         (defer_stack_allocation): Likewise.
18070         (expand_used_vars): Likewise.
18072 2016-02-18  Richard Biener  <rguenther@suse.de>
18074         PR middle-end/69553
18075         * fold-const.c (operand_equal_p): Properly compare offsets for
18076         IMAGPART_EXPR and ARRAY_REF.
18078 2016-02-18  Nick Clifton  <nickc@redhat.com>
18080         PR target/62254
18081         PR target/69610
18082         * config/arm/arm.c (arm_option_override_internal): Disable
18083         interworking if the target does not support thumb instructions.
18084         (arm_reload_in_hi): Handle the case where a register to register
18085         move needs reloading because there is no simple pattern to handle
18086         it.
18087         (arm_reload_out_hi): Likewise.
18089 2016-02-18  Richard Biener  <rguenther@suse.de>
18091         PR middle-end/69854
18092         * match.pd: Don't use fold_binary or fold_unary for folding
18093         constants.
18095 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
18097         PR c++/69850
18098         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
18099         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
18100         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
18101         warn on gimple_no_warning_p statements.
18103 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
18105         * doc/extend.texi (C++ Attributes): Correct description of
18106         warn_unused type attribute.
18108 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18110         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
18111         correct instruction.
18113 2016-02-17  Richard Biener  <rguenther@suse.de>
18115         PR rtl-optimization/69609
18116         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
18117         (find_traces_1_round): When ending a trace update cached priority
18118         of successors.
18119         (bb_to_key): Use cached priority when available.
18120         (copy_bb): Initialize cached priority.
18121         (reorder_basic_blocks_software_trace_cache): Likewise.
18123 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18125         PR target/69161
18126         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
18127         New predicate.
18128         (aarch64_comparison_operator): Break overly long line into two.
18129         (aarch64_comparison_operation): Likewise.
18130         * config/aarch64/aarch64.md (cstorecc4): Use
18131         aarch64_comparison_operator_mode instead of
18132         aarch64_comparison_operator.
18133         (cstore<mode>4): Likewise.
18134         (aarch64_cstore<mode>): Likewise.
18135         (*cstoresi_insn_uxtw): Likewise.
18136         (cstore<mode>_neg): Likewise.
18137         (*cstoresi_neg_uxtw): Likewise.
18139 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18141         PR target/69161
18142         * config/arm/predicates.md (arm_comparison_operator_mode):
18143         New predicate.
18144         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
18145         instead of arm_comparison_operator.
18146         (*mov_negscc): Likewise.
18147         (*mov_notscc): Likewise.
18148         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
18149         (*thumb2_mov_negscc): Likewise.
18150         (*thumb2_mov_negscc_strict_it): Likewise.
18151         (*thumb2_mov_notscc): Likewise.
18152         (*thumb2_mov_notscc_strict_it): Likewise.
18154 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
18156         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
18157         Add missing return.
18159 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
18161         * config/visium/visium.c (machine_libfunc_index): New enum.
18162         (machine_libfuncs): New structure.
18163         (visium_libfuncs): New static variable.
18164         (TARGET_INIT_LIBFUNCS): Define to...
18165         (visium_init_libfuncs): ...this.  New function.
18166         (expand_block_move_4): Use the appropriate libfunc.
18167         (expand_block_move_2): Likewise.
18168         (expand_block_move_1): Likewise.
18169         (expand_block_set_4): Likewise.
18170         (expand_block_set_2): Likewise.
18171         (expand_block_set_1): Likewise.
18172         (visium_trampoline_init): Likewise.
18174 2016-02-17  Nick Clifton  <nickc@redhat.com>
18176         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
18177         TI's devices.csv file as of March 2016.
18179 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
18181         PR Target/48344
18182         * opts-global.c (handle_common_deferred_options): Introduce and
18183         initialize two global variables to remember command-line options
18184         specifying a stack-limiting register.
18185         * opts.h: Add extern declarations of the two new global variables.
18186         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
18187         variable based on the values of the two new global variables.
18189 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
18191         PR c/69835
18192         * common.opt (Wnonnull-compare): New warning.
18193         * doc/invoke.texi (-Wnonnull): Remove text about comparison
18194         of arguments against NULL.
18195         (-Wnonnull-compare): Document.
18196         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
18197         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
18198         * passes.def (pass_warn_nonnull_compare): Add.
18199         * gimple-ssa-nonnull-compare.c: New file.
18201 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
18203         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
18204         AARCH64_EXTRA_TUNE_RECIP_SQRT.
18206 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
18208         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
18209         reciprocal sqrt for -mlow-precision-recip-sqrt.
18211 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
18212             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18214         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
18215         always use lane loads to construct non-constant vectors.
18217 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
18219         * config/aarch64/aarch64.md
18220         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
18221         constraints for operand 3.
18222         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
18224 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
18225             Richard Biener  <rguenther@suse.de>
18227         PR tree-optimization/69820
18228         * tree-vect-patterns.c (type_conversion_p): Return false if
18229         *orig_type is unsigned single precision or boolean.
18230         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
18231         Formatting fix.
18233 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
18235         PR rtl-optimization/69764
18236         PR rtl-optimization/69771
18237         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
18238         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
18240 2016-02-16  Richard Biener  <rguenther@suse.de>
18242         PR tree-optimization/69776
18243         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
18244         sets from caller.
18245         (indirect_refs_may_alias_p): Likewise.
18246         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
18247         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
18248         according to tbaa_p.
18249         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
18250         (optimize_stmt): For redundant store discovery do not allow tbaa.
18252 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
18254         PR tree-optimization/69714
18255         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
18256         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
18258 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
18260         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
18261         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
18262         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
18263         * config/arc/arc.c (arc_init): Check FPU options.
18264         (get_arc_condition_code): Handle new CC_FPU* modes.
18265         (arc_select_cc_mode): Likewise.
18266         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
18267         register pair only. Allow access for ARCv2 accumulator.
18268         (gen_compare_reg): Whenever we have FPU support use FPU compare
18269         instructions.
18270         (arc_reorg): Don't generate brcc insns when FPU compare
18271         instructions are involved.
18272         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
18273         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
18274         floating point emulation.
18275         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
18276         (REVERSE_CONDITION): Add new CC_FPU* modes.
18277         (TARGET_FP_SP_BASE): Define.
18278         (TARGET_FP_DP_BASE): Likewise.
18279         (TARGET_FP_SP_FUSED): Likewise.
18280         (TARGET_FP_DP_FUSED): Likewise.
18281         (TARGET_FP_SP_CONV): Likewise.
18282         (TARGET_FP_DP_CONV): Likewise.
18283         (TARGET_FP_SP_SQRT): Likewise.
18284         (TARGET_FP_DP_SQRT): Likewise.
18285         (TARGET_FP_DP_AX): Likewise.
18286         * config/arc/arc.md (ARCV2_ACC): New constant.
18287         (type): New fpu type attribute.
18288         (SDF): Conditional iterator.
18289         (cstore<mode>, cbranch<mode>): Change expand condition.
18290         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
18291         handles FPU/FPX cases as well.
18292         * config/arc/arc.opt (mfpu): New option.
18293         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
18294         Renamed.
18295         (adddf3, muldf3, subdf3): Removed.
18296         * config/arc/predicates.md (proper_comparison_operator): Recognize
18297         CC_FPU* modes.
18298         * config/arc/fpu.md: New file.
18299         * doc/invoke.texi (ARC Options): Document mfpu option.
18301 2016-02-16  Richard Biener  <rguenther@suse.de>
18303         PR rtl-optimization/69291
18304         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
18305         noce_operand_ok check.
18307 2016-02-16  Tom de Vries  <tom@codesourcery.com>
18309         PR lto/67709
18310         * omp-low.c (simd_clone_create): Remove call to
18311         symtab->call_cgraph_insertion_hooks.
18313 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
18315         PR tree-optimization/69802
18316         * tree-ssa-reassoc.c (update_range_test): If op is
18317         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
18318         op == 1 test of precision 1 integral op, otherwise handle
18319         that case as op itself.  Fix up formatting.
18320         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
18321         up formatting.
18323 2016-02-16  Richard Biener  <rguenther@suse.de>
18325         PR tree-optimization/69586
18326         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
18327         types for conversion sources.
18329 2016-02-16  Richard Biener  <rguenther@suse.de>
18331         PR middle-end/69801
18332         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
18333         mask OEP_ADDRESS_OF.
18335 2016-02-16  Alan Modra  <amodra@gmail.com>
18337         PR target/68973
18338         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
18339         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
18340         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
18341         (p8_mtvsrwz): New.
18342         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
18343         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
18344         (p8_fmrgow_<mode>): Likewise.
18345         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
18346         changes.
18347         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
18348         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
18349         to use movdi_internal64.  Remove op0_di.
18350         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
18352 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
18354         Add support for the FCCMP insn types
18356         * config/aarch64/aarch64.md (fccmp): Change insn type.
18357         (fccmpe): Likewise.
18358         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
18359         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
18360         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
18361         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
18362         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
18363         * config/arm/types.md (fccmps): Add new insn type.
18364         (fccmpd): Likewise.
18366 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18368         * alias.c (get_alias_set): Fix a typo in comment.
18370 2016-02-15  Richard Biener  <rguenther@suse.de>
18372         PR tree-optimization/69595
18373         * match.pd: Complete range test simplification to true.
18375 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
18377         PR rtl-optimization/69648
18378         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
18379         pic_offset_table_rtx.
18381         PR rtl-optimization/69752
18382         * ira.c (update_equiv_regs): When looking for more than a single SET,
18383         also take other side effects into account.
18385 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
18387         * config/s390/s390.c (s390_function_profiler): Add a new sequence
18388         for z900+ CPUs in 31-bit mode.
18390 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
18392         * common/config/s390/s390-common.c (s390_supports_split_stack):
18393         New function.
18394         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
18395         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
18396         * config/s390/s390.c (struct machine_function): New field
18397         split_stack_varargs_pointer.
18398         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
18399         in s390_emit_prologue.
18400         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
18401         vararg pointer.
18402         (morestack_ref): New global.
18403         (SPLIT_STACK_AVAILABLE): New macro.
18404         (s390_expand_split_stack_prologue): New function.
18405         (s390_live_on_entry): New function.
18406         (s390_va_start): Use split-stack vararg pointer if appropriate.
18407         (s390_asm_file_end): Emit the split-stack note sections.
18408         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
18409         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
18410         (UNSPECV_SPLIT_STACK_CALL): New unspec.
18411         (UNSPECV_SPLIT_STACK_DATA): New unspec.
18412         (split_stack_prologue): New expand.
18413         (split_stack_space_check): New expand.
18414         (split_stack_data): New insn.
18415         (split_stack_call): New expand.
18416         (split_stack_call_*): New insn.
18417         (split_stack_cond_call): New expand.
18418         (split_stack_cond_call_*): New insn.
18420 2016-02-15  Richard Biener  <rguenther@suse.de>
18422         PR tree-optimization/69783
18423         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
18424         Add trivially correct cases.
18426 2016-02-15  Tom de Vries  <tom@codesourcery.com>
18428         PR lto/69655
18429         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
18430         do_force_output.
18431         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
18433 2016-02-15  Richard Biener  <rguenther@suse.de>
18435         PR tree-optimization/69776
18436         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
18437         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
18438         indicate whether we can use TBAA to disambiguate against stores.
18439         Use alias-set zero if not.
18440         (visit_reference_op_store): Do not use TBAA when looking up
18441         redundant stores.
18442         * tree-ssa-pre.c (compute_avail): Use TBAA here.
18443         (eliminate_dom_walker::before_dom_children): But not when looking
18444         up redundant stores.
18446 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
18448         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
18450 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18452         *  config/i386/znver1.md
18453         (znver1_pop, znver1_pop_mem,
18454         znver1_load_imov_double_store,
18455         znver1_load_imov_direct_store,
18456         znver1_load_imov_direct_load,
18457         znver1_load_imov_double_load): Add new.
18458         (znver1_insn, znver1_insn_load): Add icmov type.
18459         (znver1_sseavx_fma,
18460         znver1_sseavx_fma_load,
18461         znver1_avx256_fma,
18462         znver1_avx256_fma_load): Fix pipe usage.
18464 2016-02-14  Alan Modra  <amodra@gmail.com>
18466         PR target/68973
18467         * reload.c (find_reloads_address_1): For pre/post-inc/dec
18468         with an invalid hard reg, reload just the reg not the entire
18469         pre/post-inc/dec address expression.
18471 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
18473         PR target/67260
18474         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
18475         fixed R1_REG scratch reg.
18476         (sibcall_value_pcrel_fdpic): Likewise.
18478 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
18480         PR target/67636
18481         PR target/64345
18482         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
18484 2016-02-12  Walter Lee  <walt@tilera.com>
18486         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
18487         * config/tilegx/t-tilegx: Likewise.
18489 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
18491         PR other/69554
18492         * diagnostic-show-locus.c (struct line_span): New struct.
18493         (layout::get_first_line): Delete.
18494         (layout::get_last_line): Delete.
18495         (layout::get_num_line_spans): New member function.
18496         (layout::get_line_span): Likewise.
18497         (layout::print_heading_for_line_span_index_p): Likewise.
18498         (layout::get_expanded_location): Likewise.
18499         (layout::calculate_line_spans): Likewise.
18500         (layout::m_first_line): Delete.
18501         (layout::m_last_line): Delete.
18502         (layout::m_line_spans): New field.
18503         (layout::layout): Update comment.  Replace m_first_line and
18504         m_last_line with m_line_spans, replacing their initialization
18505         with a call to calculate_line_spans.
18506         (diagnostic_show_locus): When printing source lines and
18507         annotations, rather than looping over a single span
18508         of lines, instead loop over each line_span within
18509         the layout, with an inner loop over the lines within them.
18510         Call the context's start_span callback when changing line spans.
18511         * diagnostic.c (diagnostic_initialize): Initialize start_span.
18512         (diagnostic_build_prefix): Break out the building of the location
18513         part of the string into...
18514         (diagnostic_get_location_text): ...this new function, rewriting
18515         it from nested ternary expressions to a sequence of "if"
18516         statements.
18517         (default_diagnostic_start_span_fn): New function.
18518         * diagnostic.h (diagnostic_start_span_fn): New typedef.
18519         (diagnostic_context::start_span): New field.
18520         (default_diagnostic_start_span_fn): New prototype.
18522 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
18524         PR driver/69779
18525         * gcc.c (driver::finalize): Fix cleanup of "specs".
18527 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
18529         PR driver/69265
18530         PR driver/69453
18531         * gcc.c (driver::driver): Initialize m_option_suggestions.
18532         (driver::~driver): Clean up m_option_suggestions.
18533         (suggest_option): Convert to...
18534         (driver::suggest_option): ...this, and split out into
18535         driver::build_option_suggestions and find_closest_string.
18536         (driver::build_option_suggestions): New function, from
18537         first half of suggest_option.  Special-case
18538         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
18539         the sanitizer_opts array.  For options of enum types, add the
18540         various enum values to the candidate strings.
18541         (driver::handle_unrecognized_options): Remove "const".
18542         * gcc.h (driver::handle_unrecognized_options): Likewise.
18543         (driver::build_option_suggestions): New decl.
18544         (driver::suggest_option): New decl.
18545         (driver::m_option_suggestions): New field.
18546         * opts-common.c (add_misspelling_candidates): New function.
18547         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
18548         and make non-static.
18549         * opts.h (sanitizer_opts): New array decl.
18550         (add_misspelling_candidates): New function decl.
18551         * spellcheck.c (find_closest_string): New function.
18552         * spellcheck.h (find_closest_string): New function decl.
18554 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
18556         PR rtl-optimization/69764
18557         PR rtl-optimization/69771
18558         * optabs.c (expand_binop_directly): For shift_optab_p, force
18559         convert_modes with VOIDmode if xop1 has VOIDmode.
18561 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
18563         PR target/69729
18564         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
18565         to correctly determine instrumentation thunks.
18567 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
18569         PR ipa/69241
18570         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
18571         type by reference, force lhs on the call.
18573         PR ipa/68672
18574         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
18575         Compute retval and retbnd early in all cases if split_part_return_p
18576         and return_bb is not EXIT.  Remove all clobber stmts and reset
18577         all debug stmts that refer to SSA_NAMEs defined in split part,
18578         except if it is retval, in that case replace the old retval with the
18579         lhs of the call to the split part.
18581 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
18583         revert:
18584         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
18586         PR middle-end/66726
18587         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
18588         whose result is used in PHI.
18589         (maybe_optimize_range_tests): Likewise.
18590         (final_range_test_p): Likweise.
18592 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
18594         PR middle-end/66726
18595         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
18596         whose result is used in PHI.
18597         (maybe_optimize_range_tests): Likewise.
18598         (final_range_test_p): Likweise.
18600 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
18602         * cgraph.c: Spelling fixes - behaviour -> behavior and
18603         neighbour -> neighbor.
18604         * target.def: Likewise.
18605         * sel-sched.c: Likewise.
18606         * config/mips/mips.c: Likewise.
18607         * config/arc/arc.md: Likewise.
18608         * config/arm/cortex-a57.md: Likewise.
18609         * config/arm/arm.c: Likewise.
18610         * config/arm/neon.md: Likewise.
18611         * config/arm/arm-c.c: Likewise.
18612         * config/vms/vms-c.c: Likewise.
18613         * config/s390/s390.c: Likewise.
18614         * config/i386/znver1.md: Likewise.
18615         * config/i386/i386.c: Likewise.
18616         * config/ia64/hpux-unix2003.h: Likewise.
18617         * config/msp430/msp430.md: Likewise.
18618         * config/rx/rx.c: Likewise.
18619         * config/rx/rx.md: Likewise.
18620         * config/aarch64/aarch64-simd.md: Likewise.
18621         * config/aarch64/aarch64.c: Likewise.
18622         * config/nvptx/nvptx.c: Likewise.
18623         * config/bfin/bfin.c: Likewise.
18624         * config/cris/cris.opt: Likewise.
18625         * config/rs6000/rs6000.c: Likewise.
18626         * target.h: Likewise.
18627         * spellcheck.c: Likewise.
18628         * ira-build.c: Likewise.
18629         * tree-inline.c: Likewise.
18630         * builtins.c: Likewise.
18631         * lra-constraints.c: Likewise.
18632         * explow.c: Likewise.
18633         * hwint.h: Likewise.
18634         * targhooks.c: Likewise.
18635         * tree-vect-data-refs.c: Likewise.
18636         * expr.c: Likewise.
18637         * doc/tm.texi: Likewise.
18638         * doc/extend.texi: Likewise.
18639         * doc/install.texi: Likewise.
18640         * doc/md.texi: Likewise.
18641         * tree-ssa-tail-merge.c: Likewise.
18642         * sched-int.h: Likewise.
18643         * match.pd: Likewise.
18644         * sched-ebb.c: Likewise.
18645         * target.def (omit_struct_return_reg): Likewise.
18646         * gimple-ssa-isolate-paths.c: Likewise.
18647         (find_implicit_erroneous_behaviour): Renamed to...
18648         (find_implicit_erroneous_behavior): ... this.
18649         (find_explicit_erroneous_behaviour): Renamed to...
18650         (find_explicit_erroneous_behavior): ... this.
18651         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
18653 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
18655         PR rtl-optimization/64682
18656         PR rtl-optimization/69567
18657         PR rtl-optimization/69737
18658         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
18659         in I2 as well, just lose it.
18661 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18663         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
18664         New variable.
18665         (aarch64_last_printed_tune_string): Likewise.
18666         (aarch64_declare_function_name): Only output .arch assembler
18667         directive if it will be different from the previously output
18668         directive.  Same for .tune comment but only if -dA is set.
18669         (aarch64_start_file): New function.
18670         (TARGET_ASM_FILE_START): Define.
18672 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
18674         PR plugins/69758
18675         * Makefile.in (PLUGIN_HEADERS): Add params.list.
18677 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
18679         PR target/65313
18680         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
18681         -Wmaybe-uninitialized warning.
18683 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
18685         PR target/69713
18686         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
18688 2016-02-11  Richard Biener  <rguenther@suse.de>
18690         PR rtl-optimization/69291
18691         * ifcvt.c (noce_try_store_flag_constants): Do not allow
18692         subexpressions affected by changing the result.
18694 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
18696         PR target/69148
18697         * lra-constraints.c (curr_insn_transform): Find in/out operands
18698         for secondary memory moves.  Update dups.
18700 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
18702         PR tree-optimization/69652
18703         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
18704         to nested loop, did source re-formatting, skip debug statements,
18705         add check on statement with volatile operand, remove dead scalar
18706         statements.
18708 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
18709             Patrick Palka  <ppalka@gcc.gnu.org>
18711         PR ipa/69241
18712         PR c++/69649
18713         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
18714         calls if the return type is TREE_ADDRESSABLE.
18715         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
18716         * ipa-split.c (split_function): Fix doubled "we" in comment.
18717         Use void return type for the split part even if
18718         !split_point->split_part_set_retval.
18720 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
18722         PR tree-optimization/68021
18723         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
18724         when computing the value of biv cand by itself.
18726 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
18728         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
18729         (cortexa57_tunings): Likewise.
18730         (cortexa72_tunings): Likewise.
18731         (arch_macro_fusion_pair_p): Add support for AES fusion.
18732         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
18733         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
18734         Allow virtual registers before reload so early scheduling works.
18735         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
18736         correct latency and pipeline.
18737         (cortex_a57_crypto_complex): Likewise.
18738         (cortex_a57_crypto_xor): Likewise.
18739         (define_bypass): Add AES bypass.
18741 2016-02-10  Richard Biener  <rguenther@suse.de>
18743         PR tree-optimization/69726
18744         * passes.def: Add DCE pass before late uninit.
18745         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
18746         really fixup if-conversions job.
18748 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
18750         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
18751         (arm_cortex_a57_tune): Likewise.
18752         (aarch_macro_fusion_pair_p): Add support for AES fusion.
18753         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
18755 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
18757         * timevar.def (TV_PHASE_DBGINFO): Delete.
18758         (TV_PHASE_CHECK_DBGINFO): Likewise.
18759         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
18761 2016-02-10  Richard Biener  <rguenther@suse.de>
18763         PR tree-optimization/69719
18764         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
18765         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
18767 2016-02-09  Andrew Pinski  <apinski@cavium.com>
18769         PR tree-opt/69282
18770         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
18771         get_vcond_mask_icode returns false.
18773 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
18775         PR target/68404
18776         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
18777         an ADDIS that adds a pointer to a large constant that sets the
18778         upper16 bits with a load operation.
18780 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
18782         PR target/68532
18783         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
18784         order.
18785         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
18786         endian.
18787         (vzipq_s16): Likewise.
18788         (vzipq_s32): Likewise.
18789         (vzipq_f32): Likewise.
18790         (vzipq_u8): Likewise.
18791         (vzipq_u16): Likewise.
18792         (vzipq_u32): Likewise.
18793         (vzipq_p8): Likewise.
18794         (vzipq_p16): Likewise.
18796 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
18798         PR target/68532
18799         * config/arm/arm.c (neon_endian_lane_map): New function.
18800         (neon_vector_pair_endian_lane_map): New function.
18801         (arm_evpc_neon_vuzp): Allow for big endian lane order.
18802         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
18803         endian.
18804         (vuzpq_s16): Likewise.
18805         (vuzpq_s32): Likewise.
18806         (vuzpq_f32): Likewise.
18807         (vuzpq_u8): Likewise.
18808         (vuzpq_u16): Likewise.
18809         (vuzpq_u32): Likewise.
18810         (vuzpq_p8): Likewise.
18811         (vuzpq_p16): Likewise.
18813 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
18815         PR target/69634
18816         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
18817         debug insns.
18819 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
18821         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
18822         truncate const_int operand 1 to QImode.
18824 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
18826         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
18827         corresponding to an abnormal edge.
18829 2016-02-09  Tom de Vries  <tom@codesourcery.com>
18831         PR tree-optimization/69599
18832         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
18833         function.
18834         (find_func_aliases_for_builtin_call, find_func_clobbers)
18835         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
18836         partition.
18838 2016-02-09  Richard Biener  <rguenther@suse.de>
18840         PR tree-optimization/69715
18841         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
18842         LHS on calls as non-rewritable.
18844 2016-02-09  Tom de Vries  <tom@codesourcery.com>
18846         PR lto/69707
18847         * lto-wrapper.c (append_diag_options): New function.
18848         (compile_offload_image): Call append_diag_options.
18850 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
18852         PR other/69722
18853         * doc/extend.texi (Flag Output Operands): Correct sectioning.
18854         Minor copy-edit to fix verb tenses.
18856 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
18858         PR tree-optimization/69209
18859         * ipa-split.c (split_function): If split part is not
18860         returning retval, retval has gimple type but is not
18861         gimple value, force it into a SSA_NAME first.
18863 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
18865         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
18866         outdated section.
18868 2016-02-08  Jason Merrill  <jason@redhat.com>
18870         PR c++/69631
18871         * convert.c (convert_to_integer_1): Check dofold on truncation
18872         distribution.
18873         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
18874         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
18875         Rename from *_nofold.
18876         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
18877         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
18879 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
18881         PR target/60410
18882         * tree.c (build_common_tree_nodes): Remove short_double argument.
18883         All callers changed.
18884         * tree.h (build_common_tree_nodes): Adjust declaration.
18885         * doc/invoke.texi (-fshort-double): Remove documentation.
18886         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
18887         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
18888         * lto-wrapper.c (merge_and_complain, append_compiler_options)
18889         (append_linker_options): Don't handle OPT_fshort_double.
18891         PR rtl-optimization/68730
18892         * lra-remat.c (insn_to_cand_activation): New static variable.
18893         (lra_remat): Allocate and free it.
18894         (create_cand): New arg activation. Initialize a field in
18895         insn_to_cand_activation if it is nonnull.
18896         (create_cands): Pass the activation insn to create_cand when making
18897         a candidate involving an output reload.  Reorganize code a little.
18898         (do_remat): Keep track of active status of candidates in a separate
18899         bitmap.
18901 2016-02-08  Richard Biener  <rguenther@suse.de>
18903         PR tree-optimization/69719
18904         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
18905         Properly use absolute of the difference of the two offsets to
18906         compare or adjust the segment length.
18908 2016-02-08  Richard Biener  <rguenther@suse.de>
18909             Jeff Law  <law@redhat.com>
18911         PR target/68273
18912         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
18913         types for anonymous SSA names.
18915 2016-02-08   Richard Biener  <rguenther@suse.de>
18917         PR rtl-optimization/69274
18918         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
18920 2016-02-08  Jeff Law  <law@redhat.com>
18922         PR tree-optimization/65917
18923         * tree-ssa-dom.c (record_temporary_equivalences): Record both
18924         equivalences from if (x == y) style conditionals.
18925         (loop_depth_of_name): Remove.
18926         (record_equality): Remove loop depth check.
18927         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
18928         (const_and_copies::record_const_or_copy_raw): New member function.
18929         * tree-ssa-scopedtables.c
18930         (const_and_copies::record_const_or_copy_raw): New, factored out of
18931         (const_and_copies::record_const_or_copy): Call new member function.
18933 2016-02-05  Jeff Law  <law@redhat.com>
18935         PR tree-optimization/68541
18936         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
18937         (count_stmts_in_block): New function.
18938         (poor_ifcvt_candidate_code): Likewise.
18939         (is_feasible_trace): Add some heuristics to determine when path
18940         splitting is profitable.
18941         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
18942         is a diamond with a single exit.
18944 2016-02-05  Martin Sebor  <msebor@redhat.com>
18946         PR c++/69662
18947         * doc/invoke.texi: Update -Wplacement-new to take an optional
18948         argument.
18950 2016-02-06  Richard Henderson  <rth@redhat.com>
18952         PR c/69643
18953         * tree.c (tree_nop_conversion_p): Do not strip casts into or
18954         out of non-standard address spaces.
18956 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
18958         PR rtl-optimization/69691
18959         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
18961 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
18963         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
18964         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
18965         (*ieee128_mfvsrd_64bit): Likewise.
18966         (*ieee128_mfvsrd_32bit): Likewise.
18968 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
18970         PR target/69369
18971         Revert r232560:
18972         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
18974         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
18975         instrumented_version.
18977 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
18979         * doc/invoke.texi (Optimize Options): In table of --param options
18980         rename second occurrence of tracer-min-branch-ratio to
18981         tracer-min-branch-probability, rename
18982         tracer-min-branch-ratio-feedback to
18983         tracer-min-branch-probability-feedback and clarify description,
18984         rename sched-spec-state-edge-prob-cutoff to
18985         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
18986         to selsched-insns-to-rename, rename lto-minpartition to
18987         lto-min-partition, delete reorder-blocks-duplicate and
18988         reorder-blocks-duplicate-feedback.
18990 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18992         * config/s390/s390.c (s390_register_info_set_ranges): Remove
18993         superfluous loops.
18995 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18997         * doc/extend.texi: S/390: Correct some typos.
18999 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19001         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
19003 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19005         PR target/69625
19006         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
19007         (s390_register_info_gprtofpr): Use new macros above.
19008         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
19009         its name.
19010         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
19011         its name.  Adjust restore and save gpr ranges.
19012         (s390_register_info_set_ranges): New function.
19013         (s390_register_info): Use new macros above.  Call
19014         s390_register_info_set_ranges.
19015         (s390_optimize_register_info): Likewise.
19016         (s390_hard_regno_rename_ok): Use new macros.
19017         (s390_hard_regno_scratch_ok): Likewise.
19018         (s390_emit_epilogue): Likewise.
19019         (s390_can_use_return_insn): Likewise.
19020         (s390_optimize_prologue): Likewise.
19021         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
19023 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
19025         PR bootstrap/69677
19026         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
19027         alignment fixes.
19028         (ix86_option_override_internal): Disable TARGET_STV even for
19029         -m{incoming,preferred}-stack-boundary=3.
19031 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19033         * config.gcc: Mark deprecated rtems targets as obsolete.
19035 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
19037         PR rtl-optimization/64682
19038         PR rtl-optimization/69567
19039         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
19040         before I2 only if the register is both used and set in I2.
19042 2016-02-04  DJ Delorie  <dj@redhat.com>
19044         * config/msp430/msp430.c (msp430_start_function): Add function type.
19046 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
19048         PR fortran/69368
19049         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
19051 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
19053         PR rtl-optimization/69577
19054         Revert:
19055         2015-10-29  Richard Henderson  <rth@redhat.com>
19057         PR target/68124
19058         PR rtl-opt/67609
19059         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
19060         sse check to the exact conditions of PR 67609.
19062 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
19064         PR target/69667
19065         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
19066         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
19067         not allowed into the traditional Altivec registers.
19068         (movtd_64bit_nodm): Likewise.
19069         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
19071 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
19073         * config/aarch64/cortex-a57-fma-steering.c
19074         (aarch64_register_fma_steering): Remove "static" from arguments
19075         to register_pass.
19077 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
19079         PR target/69619
19080         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
19081         twice when complex.
19083 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
19085         * doc/invoke.texi: Delete -mno-fma4.
19087 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
19089         PR rtl-optimization/69577
19090         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
19091         (find_subregs_of_mode): Update accordingly.  Iterate over partial
19092         definitions.
19094 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
19096         * config/arm/arm-protos.h (neon_reinterpret): Remove.
19097         * config/arm/arm.c (neon_reinterpret): Remove.
19098         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
19099         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
19100         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
19101         vreinterpretti): Remove.
19102         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
19103         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
19104         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
19105         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
19106         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
19107         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
19108         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
19109         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
19110         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
19111         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
19112         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
19113         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
19114         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
19115         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
19116         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
19117         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
19118         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
19119         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
19120         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
19121         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
19122         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
19123         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
19124         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
19125         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
19126         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
19127         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
19128         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
19129         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
19130         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
19131         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
19132         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
19133         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
19134         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
19135         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
19136         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
19137         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
19138         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
19139         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
19140         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
19141         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
19142         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
19143         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
19144         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
19145         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
19146         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
19147         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
19148         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
19149         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
19150         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
19151         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
19152         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
19153         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
19154         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
19155         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
19156         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
19157         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
19158         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
19159         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
19160         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
19161         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
19162         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
19163         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
19164         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
19165         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
19166         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
19167         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
19168         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
19169         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
19170         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
19171         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
19172         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
19173         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
19174         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
19175         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
19176         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
19177         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
19178         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
19179         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
19180         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
19181         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
19182         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
19183         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
19184         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
19185         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
19186         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
19187         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
19188         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
19189         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
19190         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
19191         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
19192         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
19193         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
19194         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
19195         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
19196         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
19197         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
19198         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
19199         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
19200         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
19201         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
19202         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
19203         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
19204         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
19206 2016-02-04  Martin Liska  <mliska@suse.cz>
19208         PR sanitizer/69276
19209         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
19210         that are gimple_store_p.
19211         (maybe_instrument_call): Likewise.
19213 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
19215         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
19216         register scaling out of memory reference and comment why.
19218 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19220         PR target/65932
19221         PR target/67714
19222         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
19223         folding the source of a SET.
19225 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19227         PR target/65932
19228         PR target/67714
19229         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
19230         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
19232 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
19234         PR target/65932
19235         PR target/67714
19236         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
19237         HImode.
19239 2016-02-04  Christian Bruel  <christian.bruel@st.com>
19241         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
19242         * config/arm/arm.c (arm_set_current_function): Likewise.
19244 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
19245             Ilya Enkovich  <enkovich.gnu@gmail.com>
19246             H.J. Lu  <hongjiu.lu@intel.com>
19248         PR target/69454
19249         * config/i386/i386.c (convert_scalars_to_vector): Remove
19250         stack alignment fixes.
19251         (ix86_option_override_internal): Disable TARGET_STV if stack
19252         might not be aligned enough.
19253         (ix86_minimum_alignment): Assert that TARGET_STV is false.
19255 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
19257         * config/i386/x86-tune.def: Disable default prefetching
19258         for -march=znver1.
19260 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
19261             Vladimir Makarov  <vmakarov@redhat.com>
19263         PR target/69461
19264         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
19265         in validating fused toc addresses.
19267 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
19269         PR c/69627
19270         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
19271         range->m_caret fields if range->m_show_caret_p is false.
19273         PR target/69644
19274         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
19275         Force oldval into register if it does not satisfy reg_or_short_operand
19276         predicate.  Fix up formatting.
19278 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
19279             Alexandre Oliva  <aoliva@redhat.com>
19281         PR target/69461
19282         * lra-constraints.c (simplify_operand_subreg): Check additionally
19283         address validity after potential reloading.
19284         (process_address_1): Check insns validity.  In case of failure do
19285         nothing.
19287 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
19289         PR target/69118
19290         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
19291         Fix target.
19293 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
19295         * wide-int.cc (canonize_uhwi): New function.
19296         (wi::divmod_internal): Use it.
19298 2016-02-02  James Norris  <jnorris@codesourcery.com>
19300         * gimplify.c (omp_notice_variable): Add usage check.
19302 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
19304         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
19305         like LE, GE, LT, GT when emitting relational operator.
19307 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
19309         * ira-costs.c (find_costs_and_classes): Add extra argument.
19310         * target.def (ira_change_pseudo_allocno_class): Add parameter.
19311         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
19312         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
19313         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
19314         Add best_class parameter, and return it if not ALL_REGS.
19315         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
19316         Add parameter.
19317         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
19318         Update target hook.
19320 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
19322         * config/aarch64/aarch64.c
19323         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
19324         (aarch64_ira_change_pseudo_allocno_class): New function.
19326 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
19328         PR target/67032
19329         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
19331 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
19333         * config/avr/avr.c (avr_option_override): Set
19334         PARAM_ALLOW_STORE_DATA_RACES to 1.
19336 2016-02-02  Richard Biener  <rguenther@suse.de>
19338         PR tree-optimization/69595
19339         * match.pd: Add range test simplifications to true/false.
19341 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
19343         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
19344         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
19345         instead.
19347 2016-02-02  Richard Biener  <rguenther@suse.de>
19349         PR tree-optimization/69606
19350         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
19351         info on the result before moving a stmt.
19353 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
19355         PR middle-end/68542
19356         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
19357         branch with vector comparison.
19358         * config/i386/sse.md (VI48_AVX): New mode iterator.
19359         (define_expand "cbranch<mode>4): Add support for conditional branch
19360         with vector comparison.
19361         * tree-vect-loop.c (optimize_mask_stores): New function.
19362         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
19363         has_mask_store field of vect_info.
19364         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
19365         vectorized loops having masked stores after vec_info destroy.
19366         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
19367         correspondent macros.
19368         (optimize_mask_stores): Add prototype.
19370 2016-02-02  Alan Modra  <amodra@gmail.com>
19372         PR target/69548
19373         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
19374         allow subregs.
19376 2016-02-02  Alan Modra  <amodra@gmail.com>
19378         PR target/68662
19379         * config/rs6000/rs6000.c (need_toc_init): New var, set it
19380         whenever toc_label_name used.
19381         (rs6000_file_start): Don't set up toc section here,
19382         (rs6000_output_function_epilogue): do so here instead,
19383         (rs6000_xcoff_file_start): and here.
19384         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
19385         (load_toc_aix_di): Likewise.
19387 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
19389         PR rtl-optimization/69592
19390         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
19391         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
19392         (num_sign_bit_copies_binary_arith_p): New inline function.
19393         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
19395 2016-02-01  Jeff Law  <law@redhat.com>
19397         PR tree-optimization/69580
19398         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
19399         * tree-ssa-threadbackward.c
19400         (fsm_find_control_statement_thread_paths): Do not try to walk
19401         through large PHI nodes.
19403 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
19405         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
19406         when count is incremented above limit, don't analyze further
19407         insns afterwards.
19409         * omp-low.c (oacc_parse_default_dims): Avoid
19410         -Wsign-compare warning, make sure value fits into int
19411         rather than just unsigned int.
19413 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
19415         PR tree-optimization/67921
19416         * fold-const.c (split_tree): New parameters.  Convert pointer
19417         type variable part to proper type before negating.
19418         (fold_binary_loc): Pass new arguments to split_tree.
19420 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
19422         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
19423         (nvptx_goacc_validate_dims): Extend to handle global defaults.
19424         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
19425         * doc/tm.texti: Rebuilt.
19426         * doc/invoke.texi (fopenacc-dim): Document.
19427         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
19428         (append_compiler_options): Likewise.
19429         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
19430         (oacc_parse_default_dims): New.
19431         (oacc_validate_dims): Add USED arg.  Select non-unity default when
19432         possible.
19433         (oacc_loop_fixed_partitions): Return mask of used partitions.
19434         (oacc_loop_auto_partitions): Emit dump info.
19435         (oacc_loop_partition): Return mask of used partitions.
19436         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
19437         loop partitioning and validation calls.
19439 2016-02-01  Richard Biener  <rguenther@suse.de>
19441         PR middle-end/69556
19442         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
19444 2016-02-01  Richard Biener  <rguenther@suse.de>
19446         PR tree-optimization/69574
19447         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
19448         of asserting return chrec_dont_know.
19450 2016-02-01  Martin Liska  <mliska@suse.cz>
19452         * mem-stats-traits.h: Add copyright header.
19453         * mem-stats.h: Likewise.
19455 2016-02-01  Richard Biener  <rguenther@suse.de>
19457         PR tree-optimization/69579
19458         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
19459         Do not propagate through abnormal PHI results.
19461 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
19463         * postreload.c (reload_cse_simplify): Remove dead code.
19465 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
19467         PR rtl-optimization/69570
19468         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
19469         if there is more than one set, not if there is a single set.
19471 2016-02-01  Richard Henderson  <rth@redhat.com>
19473         PR rtl-opt/69535
19474         * combine.c (make_compound_operation): When looking through a
19475         subreg, make sure to re-extend to the width of the outer mode.
19477 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
19479         PR tree-optimization/69546
19480         * wide-int.cc (wi::divmod_internal): For unsigned division
19481         where both operands fit into uhwi, if o1 is 1 and o0 has
19482         msb set, if divident_prec is larger than bits per hwi,
19483         clear another quotient word and return 2 instead of 1.
19484         Similarly for remainder with msb in HWI set, if dividend_prec
19485         is larger than bits per hwi.
19487 2016-01-29  Martin Jambor  <mjambor@suse.cz>
19489         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
19490         Use short lowercase names.
19491         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
19492         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
19493         acq_rel one.  Protect warning agains segfaults if
19494         get_memory_order_name returns NULL.
19495         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
19496         with release semantics.  Do not warn if get_memory_order already did.
19497         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
19498         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
19499         if get_memory_order already did.
19501 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
19503         * doc/install.texi: Document that isl-0.16 is supported.
19505 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
19507         PR target/69299
19508         * config/i386/constraints.md (Bm): Describe as special memory
19509         constraint.
19510         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
19511         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
19512         * genpreds.c (struct constraint_data): Add is_special_memory.
19513         (have_special_memory_constraints, special_memory_start): New
19514         static vars.
19515         (special_memory_end): Ditto.
19516         (add_constraint): Add new arg is_special_memory.  Add code to
19517         process its true value.  Update have_special_memory_constraints.
19518         (process_define_constraint): Pass the new arg.
19519         (process_define_register_constraint): Ditto.
19520         (choose_enum_order): Process special memory.
19521         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
19522         function insn_extra_special_memory_constraint.
19523         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
19524         * gensupport.c (process_rtx): Process
19525         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
19526         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
19527         * ira-lives.c (single_reg_class): Use
19528         insn_extra_special_memory_constraint.
19529         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
19530         * lra-constraints.c (process_alt_operands): Ditto.
19531         (curr_insn_transform): Use insn_extra_special_memory_constraint.
19532         * recog.c (asm_operand_ok, preprocess_constraints): Process
19533         CT_SPECIAL_MEMORY.
19534         * reload.c (find_reloads): Ditto.
19535         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
19536         * stmt.c (parse_input_constraint): Use
19537         insn_extra_special_memory_constraint.
19539 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
19541         PR target/69530
19542         * lra-splill.c (lra_final_code_change): Revert r229087 by
19543         removing all sub-registers.
19545 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
19547         PR target/65604
19548         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
19550 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
19552         PR target/69551
19553         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
19554         SSE1, copy target into the temporary reg first before recursing
19555         on it.
19557 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
19559         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
19560         with vm.
19562 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
19564         * ginclude/stdarg.h: Test __cplusplus instead of
19565         __GXX_EXPERIMENTAL_CXX0X__.
19567 2016-01-29  Richard Biener  <rguenther@suse.de>
19569         PR tree-optimization/69547
19570         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
19571         Do not mark clobbers necessary.
19572         (mark_all_reaching_defs_necessary_1): Likewise.
19574 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19576         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
19577         declaration name with %qs and print it in both error messages.
19578         Also fix indentation.
19580 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19582         PR other/69006
19583         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
19584         trailing blank line from error message.
19586 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
19588         PR c++/69462
19589         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
19590         for C++-11.
19592 2016-01-29  Richard Biener  <rguenther@suse.de>
19594         PR middle-end/69537
19595         * match.pd: Allow all integral types when simplifying a
19596         widening or sign-changing conversion.
19598 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
19600         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
19601         back to setting codegen_error to fail codegen.
19603 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
19605         PR target/69459
19606         * config/i386/constraints.md (C): Only accept constant zero operand.
19607         (BC): New constraint.
19608         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
19609         instead of C constraint.
19610         * doc/md.texi (Machine Constraints): Update description
19611         of C constraint.
19613 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
19615         PR target/68400
19616         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
19618 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
19620         PR middle-end/69542
19621         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
19622         non-debug insns.
19624 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
19626         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
19627         branches if using guessed profile.
19629 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
19631         * graphite-optimize-isl.c (optimize_isl): Fix dump.
19633 2016-01-28  Richard Henderson  <rth@redhat.com>
19635         PR target/69305
19636         * config/aarch64/aarch64-modes.def (CC_Cmode): New
19637         * config/aarch64/aarch64-protos.h: Update.
19638         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
19639         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
19640         (aarch64_get_condition_code_1): Handle CC_Cmode.
19641         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
19642         (*add<mode>3_compareC_cconly_imm): New.
19643         (*add<mode>3_compareC_cconly): New.
19644         (*add<mode>3_compareC_imm): New.
19645         (add<mode>3_compareC): New.
19646         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
19647         to be first.  Use aarch64_carry_operation.
19648         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
19649         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
19650         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
19651         (subti3): Use subdi3_compare1.
19652         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
19653         (sub<mode>3_compare1): New.
19654         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
19655         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
19656         (*subsi3_carryin_uxtw): Likewise.
19657         (*ngc<mode>, *ngcsi_uxtw): Likewise.
19658         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
19659         * config/aarch64/iterators.md (DWI): New.
19660         * config/aarch64/predicates.md (aarch64_carry_operation): New.
19661         (aarch64_borrow_operation): New.
19663 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
19665         * graphite-optimize-isl.c (optimize_isl): Print a different debug
19666         message when isl does not return a valid schedule.
19668 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
19670         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
19671         Remove comments from class declarations: they are already in the code
19672         close by the defs.
19674 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
19676         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
19677         codegen_error_p.
19678         (ternary_op_to_tree): Same.
19679         (unary_op_to_tree): Same.
19680         (nary_op_to_tree): Same.
19681         (gcc_expression_from_isl_expr_op): Same.
19682         (gcc_expression_from_isl_expression): Same.
19683         (graphite_create_new_loop): Same.
19684         (graphite_create_new_loop_guard): Same.
19685         (build_iv_mapping): Same.
19686         (graphite_create_new_guard): Same.
19687         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
19688         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
19690 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
19692         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
19693         instead of setting codegen_error to fail codegen.
19695 2016-01-28  Jason Merrill  <jason@redhat.com>
19697         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
19699 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
19701         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
19702         Remove CONST_INT_P check in CCMP cost calculation.
19704 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
19706         * config/aarch64/aarch64.c (generic_vector_cost):
19707         Set vec_permute_cost.
19708         (cortexa57_vector_cost): Likewise.
19709         (exynosm1_vector_cost): Likewise.
19710         (xgene1_vector_cost): Likewise.
19711         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
19712         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
19713         Add vec_permute_cost entry.
19715 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
19717         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
19718         immediate as %1.
19719         (add<mode>3_compare0): Likewise.
19720         (addsi3_compare0_uxtw): Likewise.
19721         (add<mode>3nr_compare0): Likewise.
19722         (compare_neg<mode>): Likewise.
19723         (<optab><mode>3): Likewise.
19725 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
19727         * tree-vect-stmts.c (vectorizable_comparison): Add
19728         NULL check for vectype.
19730 2016-01-28  Richard Biener  <rguenther@suse.de>
19732         PR tree-optimization/69466
19733         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
19734         Account for PHIs we couldn't duplicate.
19736 2016-01-28  Martin Liska  <mliska@suse.cz>
19738         PR pch/68758
19739         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
19740         instead of ENABLE_VALGRIND_CHECKING.
19742 2016-01-27  Richard Henderson  <rth@redhat.com>
19744         PR rtl-opt/69447
19745         * lra-remat.c (subreg_regs): New.
19746         (dump_candidates_and_remat_bb_data): Dump it.
19747         (operand_to_remat): Reject if operand in subreg_regs.
19748         (set_bb_regs): Collect subreg_regs.
19749         (lra_remat): Init and free subreg_regs.  Compute
19750         calculate_local_reg_remat_bb_data before create_cands.
19752 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
19754         PR target/68986
19755         * config/i386/i386.c (ix86_update_stack_boundary): Don't
19756         change stack_alignment_needed for __tls_get_addr call.
19758 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
19760         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
19762 2016-01-27  Jeff Law  <law@redhat.com>
19764         PR tree-optimization/68398
19765         PR tree-optimization/69196
19766         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
19767         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
19768         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19769         Only count PHIs in the last block in the path.  The others will
19770         const/copy propagate away.  Add heuristic to allow more irreducible
19771         subloops to be created when it is likely profitable to do so.
19773         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19774         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
19775         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
19777 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
19779         PR lto/69254
19780         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
19781         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
19782         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
19783         * tree-streamer-in.c: Include asan.h.
19784         (streamer_get_builtin_tree): For builtins in sanitizer
19785         range call initialize_sanitizer_builtins and retry.
19787 2016-01-27  Ian Lance Taylor  <iant@google.com>
19789         * common.opt (fkeep-gc-roots-live): New undocumented option.
19790         * tree-ssa-loop-ivopts.c (add_candidate_1): If
19791         -fkeep-gc-roots-live, skip pointers.
19792         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
19793         NULL.
19795 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
19797         PR target/69512
19798         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
19799         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
19801 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
19803         PR target/68380
19804         * configure.ac: NetBSD provides SSP in its C library.
19805         * configure: Updated.
19807 2016-01-27  Richard Biener  <rguenther@suse.de>
19809         PR tree-optimization/69166
19810         * tree-vect-loop.c (vect_is_simple_reduction): Always check
19811         reduction code for commutativity / associativity.
19813 2016-01-27  Martin Jambor  <mjambor@suse.cz>
19815         PR tree-optimization/69355
19816         * tree-sra.c (analyze_access_subtree): Correct hole detection when
19817         total_scalarization fails.
19819 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
19821         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
19822         power9.
19824 2016-01-27  Christian Bruel  <christian.bruel@st.com>
19826         PR target/69245
19827         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
19828         Move arm_reset_previous_fndecl and set_target_option_current_node in
19829         the conditional part.  Call save_restore_target_globals.
19830         * config/arm/arm.c (arm_set_current_function):
19831         Refactor to better support #pragma target and attribute mix.
19832         Call save_restore_target_globals.
19833         * config/arm/arm-protos.h (save_restore_target_globals): New function.
19835 2016-01-27  Martin Liska  <mliska@suse.cz>
19837         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
19838         reference for an HSA kernel and its host function.
19840 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
19842         PR tree-optimization/69399
19843         * wide-int.h (wi::lrshift): For larger precisions, only
19844         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
19846 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
19848         * config/arc/predicates.md (proper_comparison_operator): Reject
19849         constant-constant comparison.
19851 2016-01-26  Tom de Vries  <tom@codesourcery.com>
19853         PR tree-optimization/69110
19854         * tree-data-ref.c (initialize_data_dependence_relation): Handle
19855         DR_NUM_DIMENSIONS == 0.
19857 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
19858             Sebastian Pop  <s.pop@samsung.com>
19860         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
19861         isl_ast_op_cond and isl_ast_op_select.
19862         (gcc_expression_from_isl_expr_op): Same.
19864 2016-01-26  Jason Merrill  <jason@redhat.com>
19866         PR c++/68782
19867         * tree.c (recompute_constructor_flags): Split out from
19868         build_constructor.
19869         (verify_constructor_flags): New.
19870         * tree.h: Declare them.
19872 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
19874         PR rtl-optimization/69217
19875         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
19876         are no TYPE_FIELDS set for the record type.
19878 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
19880         PR target/68662
19881         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
19882         toc_label_name unconditionally.
19883         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
19884         SYMBOL_REF string.  Use toc_label_name instead of constructing
19885         LCTOC1.
19886         (rs6000_elf_declare_function_name): Use toc_label_name instead of
19887         constructing LCTOC1.
19889 2016-01-26  Martin Sebor  <msebor@redhat.com>
19891         PR other/69477
19892         * doc/extend.texi (Common Type Attributes): Move text that talks about
19893         attribute packed from attribute aligned to the section discussing
19894         the former attribute for clarity.
19896 2016-01-26  Richard Henderson  <rth@redhat.com>
19898         PR middle-end/60908
19899         * trans-mem.c (tm_region_init): Mark entry block as visited.
19901 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
19903         PR other/69006
19904         * diagnostic-show-locus.c (layout::print_source_line): Replace
19905         call to pp_newline with call to layout::print_newline.
19906         (layout::print_annotation_line): Likewise.
19907         (layout::move_to_column): Likewise.
19908         (layout::print_any_fixits): After printing any fixits, print a
19909         trailing newline, if necessary.
19910         (layout::print_newline): New method, resetting any colorization
19911         before a newline.
19912         (diagnostic_show_locus): Move the pp_newline to before the
19913         early bailout.  Remove dummy block enclosing the layout instance.
19914         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
19915         of pp_newline_and_flush with pp_flush.
19916         (diagnostic_append_note): Delete use of pp_newline.
19917         (diagnostic_append_note_at_rich_loc): Delete.
19918         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
19919         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
19920         when newline characters are added to the buffer.
19922 2016-01-26  Michael Matz  <matz@suse.de>
19924         * configure.ac (ac_cv_std_swap_in_utility): New test.
19925         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
19926         * configure: Regenerate.
19927         * config.in: Regenerate.
19929 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
19931         * config/arc/arc.md (cstoresi4): Force operand into register.
19932         (arcset<code>): Fix predicate.
19933         (arcsetltu): Likewise.
19934         (arcsetgeu): Likewise.
19935         (arcsethi): Likewise.
19936         (arcsetls): Likewise.
19938 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
19940         PR tree-optimization/69483
19941         * gimple-fold.c (canonicalize_constructor_val): Return NULL
19942         if base has error_mark_node type.
19944 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
19946         PR target/68620
19947         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
19948         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
19949         New helper macros.
19950         (vget_lane_f16): Handle big-endian.
19951         (vgetq_lane_f16): Likewise.
19952         (vset_lane_f16): Likewise.
19953         (vsetq_lane_f16): Likewise.
19954         * config/arm/iterators.md (VQXMOV): Add V8HF.
19955         (VDQ): Add V4HF and V8HF.
19956         (V_reg): Handle V4HF and V8HF.
19957         (Is_float_mode): Likewise.
19958         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
19959         neon_vdup_nv8hf): New patterns.
19960         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
19961         Use VD_LANE iterator.
19962         (neon_vld1_dup<mode>): Use VQ2 iterator.
19964 2016-01-26  Nathan Sidwell  <nathan@acm.org>
19966         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
19967         (set_oacc_fn_attrib): Add IS_KERNEL arg.
19968         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
19969         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
19970         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
19971         (oacc_validate_dims): Add LEVEL arg, don't return level.
19972         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
19973         oacc_validate_dims.
19974         (execute_oacc_device_lower): Adjust, add more dump output.
19975         * tree-ssa-loop.c (gate_oacc_kernels): Use
19976         oacc_fn_attrib_kernels_p.
19977         * tree-parloops.c (create_parallel_loop): Adjust
19978         set_oacc_fn_attrib call.
19980 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
19982         PR lto/69254
19983         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
19984         (append_compiler_options): Handle -fcilkplus.
19985         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
19987 2016-01-26  Nick Clifton  <nickc@redhat.com>
19989         PR target/66655
19990         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
19991         been marked as DECL_ONE_ONLY but we do not the means to make it
19992         so, then do not allow it to bind locally.
19994 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
19996         PR lto/69254
19997         * opts.h (parse_sanitizer_options): New prototype.
19998         * opts.c (sanitizer_opts): New array.
19999         (parse_sanitizer_options): New function.
20000         (common_handle_option): Use parse_sanitizer_options.
20002 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
20004         PR target/68986
20005         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
20006         alignment adjustment to ...
20007         (ix86_update_stack_boundary): Here.  Don't over-align stack for
20008         __tls_get_addr.
20009         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
20010         if __tls_get_addr is called.
20012 2016-01-26  Christian Bruel  <christian.bruel@st.com>
20014         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
20016 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
20018         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
20020 2016-01-26  Richard Biener  <rguenther@suse.de>
20022         PR middle-end/69467
20023         * match.pd: Guard X * CST CMP 0 pattern with single_use.
20025 2016-01-26  Richard Biener  <rguenther@suse.de>
20027         PR tree-optimization/69452
20028         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
20029         (move_computations_dom_walker::before_dom_children): Rename
20030         to ...
20031         (move_computations_worker): This.
20032         (move_computations): Perform an RPO rather than a DOM walk.
20034 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
20036         PR target/69442
20037         * combine.c (combine_instructions): For REG_EQUAL note with
20038         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
20039         to the underlying register.
20040         * doc/rtl.texi (REG_EQUAL): Document the behavior of
20041         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
20043 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
20045         PR target/67896
20046         * config/aarch64/aarch64-builtins.c
20047         (aarch64_init_simd_builtin_types): Do not set structural
20048         equality to __Poly{8,16,64,128}_t types.
20050 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
20052         PR tree-optimization/69400
20053         * wide-int.cc (wi_pack): Take the precision as argument and
20054         perform canonicalization here rather than in the callers.
20055         Use the main loop to handle all full-width HWIs.  Add a
20056         zero HWI if in_len isn't a full result.
20057         (wi::divmod_internal): Update accordingly.
20058         (wi::mul_internal): Likewise.  Simplify.
20060 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
20061             Sebastian Pop  <s.pop@samsung.com>
20063         * graphite-poly.c (apply_poly_transforms): Simplify.
20064         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
20065         (print_isl_map): Same.
20066         (print_isl_union_map): Same.
20067         (print_isl_schedule): New.
20068         (debug_isl_schedule): New.
20069         * graphite-dependences.c (scop_get_reads): Do not call
20070         isl_union_map_add_map that is undocumented isl functionality.
20071         (scop_get_must_writes): Same.
20072         (scop_get_may_writes): Same.
20073         (scop_get_original_schedule): Remove.
20074         (scop_get_dependences): Do not call isl_union_map_compute_flow that
20075         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
20076         (compute_deps): Remove.
20077         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
20078         (debug_schedule_ast): New.
20079         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
20080         set_separate_option.
20081         (graphite_regenerate_ast_isl): Add dump.
20082         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
20083         from scop->transformed_schedule.
20084         (graphite_regenerate_ast_isl): Add more dump.
20085         * graphite-optimize-isl.c (optimize_isl): Set
20086         scop->transformed_schedule.  Check whether schedules are equal.
20087         (apply_poly_transforms): Move here.
20088         * graphite-poly.c (apply_poly_transforms): ... from here.
20089         (free_poly_bb): Static.
20090         (free_scop): Static.
20091         (pbb_number_of_iterations_at_time): Remove.
20092         (print_isl_ast): New.
20093         (debug_isl_ast): New.
20094         (debug_scop_pbb): New.
20095         * graphite-scop-detection.c (print_edge): Move.
20096         (print_sese): Move.
20097         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
20098         (build_scop_scattering): Remove.
20099         (create_pw_aff_from_tree): Assert instead of bailing out.
20100         (add_condition_to_pbb): Remove unused code, do not fail.
20101         (add_conditions_to_domain): Same.
20102         (add_conditions_to_constraints): Remove.
20103         (build_scop_context): New.
20104         (add_iter_domain_dimension): New.
20105         (build_iteration_domains): Initialize pbb->iterators.
20106         Call add_conditions_to_domain.
20107         (nested_in): New.
20108         (loop_at): New.
20109         (index_outermost_in_loop): New.
20110         (index_pbb_in_loop): New.
20111         (outermost_pbb_in): New.
20112         (add_in_sequence): New.
20113         (add_outer_projection): New.
20114         (outer_projection_mupa): New.
20115         (add_loop_schedule): New.
20116         (build_schedule_pbb): New.
20117         (build_schedule_loop): New.
20118         (embed_in_surrounding_loops): New.
20119         (build_schedule_loop_nest): New.
20120         (build_original_schedule): New.
20121         (build_poly_scop): Call build_original_schedule.
20122         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
20123         (free_poly_dr): Remove.
20124         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
20125         (free_poly_bb): Remove.
20126         (debug_loop_vec): Remove.
20127         (print_isl_ast): Declare.
20128         (debug_isl_ast): Declare.
20129         (scop_do_interchange): Remove.
20130         (scop_do_strip_mine): Remove.
20131         (scop_do_block): Remove.
20132         (flatten_all_loops): Remove.
20133         (optimize_isl): Remove.
20134         (pbb_number_of_iterations_at_time): Remove.
20135         (debug_scop_pbb): Declare.
20136         (print_schedule_ast): Declare.
20137         (debug_schedule_ast): Declare.
20138         (struct scop): Remove schedule.  Add original_schedule,
20139         transformed_schedule.
20140         (free_gimple_poly_bb): Remove.
20141         (print_generated_program): Remove.
20142         (debug_generated_program): Remove.
20143         (unify_scattering_dimensions): Remove.
20144         * sese.c (print_edge): ... here.
20145         (print_sese): ... here.
20146         (debug_edge): ... here.
20147         (debug_sese): ... here.
20148         * sese.h (print_edge): Declare.
20149         (print_sese): Declare.
20150         (dump_edge): Declare.
20151         (dump_sese): Declare.
20153 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
20154             Sebastian Pop  <s.pop@samsung.com>
20156         * Makefile.in: Set ISLVER in site.exp.
20158 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
20160         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
20161         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
20162         through DECL_VALUE_EXPR for expansion.
20164 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20166         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
20167         the frame info after reload completed.
20169 2016-01-25  Jeff Law  <law@redhat.com>
20171         PR tree-optimization/69196
20172         PR tree-optimization/68398
20173         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
20174         tree-ssa-threadupdate.c.
20175         (determine_bb_domination_status): Prototype
20176         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
20177         (determine_bb_domination_status): No longer static.
20178         (valid_jump_thread_path): Remove code to detect characteristics
20179         of the jump thread path not associated with correctness.
20180         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
20181         Correct test for thread path length.  Count PHIs for real operands as
20182         statements that need to be copied.  Do not count ASSERT_EXPRs.
20183         Look at all the blocks in the thread path.  Compute and selectively
20184         filter thread paths based on threading through the latch, threading
20185         a multiway branch or crossing a multiway branch.
20187 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20189         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
20190         decl with __attribute__ ((unused)) annotation.
20192 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
20194         PR target/69421
20195         * tree-vect-stmts.c (vectorizable_condition): Check vectype
20196         of operands is compatible with a statement vectype.
20198 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
20200         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
20201         improve wording for mixed storage order support.
20203 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
20205         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
20206         (vcvt_u64_f64): Likewise.
20207         (vcvta_s64_f64): Likewise.
20208         (vcvta_u64_f64): Likewise.
20209         (vcvtm_s64_f64): Likewise.
20210         (vcvtm_u64_f64): Likewise.
20211         (vcvtn_s64_f64): Likewise.
20212         (vcvtn_u64_f64): Likewise.
20213         (vcvtp_s64_f64): Likewise.
20214         (vcvtp_u64_f64): Likewise.
20216 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
20218         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
20219         (arc_init): Check validity mll64 option.
20220         (arc_save_restore): Use double load/store instruction.
20221         (arc_expand_movmem): Likewise.
20222         (arc_split_move): Don't split if we have double load/store
20223         instructions. Returns a boolean.
20224         (arc_process_double_reg_moves): Change function to return boolean
20225         instead of a sequence of instructions.
20226         (arc_dwarf_register_span): New function.
20227         * config/arc/arc-protos.h (arc_split_move): Change prototype.
20228         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
20229         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
20230         (*movdf_insn): Likewise.
20231         * config/arc/arc.opt (mll64): New option.
20232         * config/arc/predicates.md (even_register_operand): New predicate.
20233         * doc/invoke.texi (ARC Options): Add mll64 documentation.
20235 2016-01-25  Richard Biener  <rguenther@suse.de>
20237         PR lto/69393
20238         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
20239         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
20240         DECL_NAMELESS.
20241         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
20243 2016-01-25  Richard Biener  <rguenther@suse.de>
20245         PR tree-optimization/69376
20246         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
20247         flag.
20248         (VN_INFO_ANTI_RANGE_P): New inline.
20249         (VN_INFO_RANGE_TYPE): Likewise.
20250         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
20251         SSA_NAME_ANTI_RANGE_P.
20252         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
20253         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20254         Properly query VN_INFO_RANGE_TYPE.
20256 2016-01-25  Nick Clifton  <nickc@redhat.com>
20258         PR target/66655
20259         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
20261 2016-01-23  Tom de Vries  <tom@codesourcery.com>
20263         PR tree-optimization/69426
20264         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
20265         removed clobber.
20267 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
20269         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
20270         "the the" with "the" in the comments.
20271         * ipa-devirt.c (build_type_inheritance_graph,
20272         update_type_inheritance_graph): Likewise.
20273         * tree.c (build_function_type_list_1): Likewise.
20274         * cfgloopmanip.c (scale_loop_profile): Likewise.
20275         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
20276         * gimple-ssa-split-paths.c
20277         (find_block_to_duplicate_for_splitting_paths): Likewise.
20278         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
20279         * expr.c (convert_move): Likewise.
20280         * var-tracking.c (vt_stack_adjustments): Likewise.
20281         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
20282         * tree-vrp.c (test_for_singularity): Likewise.
20284         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
20285         directly instead of building a temporary tree.
20287         PR bootstrap/69434
20288         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
20289         remove <algorithm> include.
20291 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
20293         PR target/69432
20294         * config/i386/i386.c: Include dojump.h.
20295         (expand_small_movmem_or_setmem,
20296         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
20297         fixes.
20298         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
20299         if dynamic_check != -1.
20301 2016-01-21  Jeff Law  <law@redhat.com>
20303         PR middle-end/69347
20304         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
20305         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
20306         into dominated_by_p.
20307         (cprop_into_successor_phis): Avoid unnecessary tests.
20309 2016-01-22  Richard Henderson  <rth@redhat.com>
20311         PR target/69416
20312         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
20313         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
20315 2016-01-22  Michael Matz  <matz@suse.de>
20317         * system.h (string, algorithm): Include only conditionally.
20318         (new): Include always under C++.
20319         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
20320         * final.c (toplevel): Ditto.
20321         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
20322         * genconditions.c (write_header): Make gencondmd.c define
20323         INCLUDE_STRING.
20324         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
20326         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
20327         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
20329 2016-01-22  Christian Bruel  <christian.bruel@st.com>
20331         PR target/68674
20332         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
20334 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20336         PR target/69403
20337         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
20338         define_insn_and_split.  Ensure operands[1] and operands[0] do not
20339         get assigned the same register.
20341 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
20343         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
20345 2016-01-22  Christian Bruel  <christian.bruel@st.com>
20347         * config/arm/arm-c.c (arm_pragma_target_parse):
20348         Remove warn_builtin_macro_redefined overwrite.
20350 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
20352         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
20353         flag_non_call_exceptions compatibility.
20355 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
20357         PR debug/66668
20358         * dwarf2out.c (add_child_die_after): New function.
20359         (dwarf_qual_info_t): New type.
20360         (dwarf_qual_info): New variable.
20361         (qualified_die_p): New function.
20362         (modified_type_die): For -fdebug-types-section, ensure
20363         canonical order of qualifiers.  Put qualified DIEs adjacent
20364         to the corresponding non-qualified type DIE and search there
20365         for existing qualified DIEs.
20367 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
20369         * doc/extend.texi (scalar_storage_order type attribute): Document
20370         restriction on type punning and aliasing, and remove future tense.
20372 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
20374         PR target/69252
20375         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
20376         first stage.
20378 2016-01-21  Jeff Law  <law@redhat.com>
20380         PR middle-end/69347
20381         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
20382         useless call to record_temporary_equivalences.
20383         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
20384         allocate 10 slots in the bb_path vector and let it grow as needed.
20385         (fsm_find_control_statement_thread_paths): Similarly for the next_path
20386         vector.
20388 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
20390         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
20391         Detangle.
20392         * configure: Regenerate.
20394 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
20396         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
20397         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
20399 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
20401         PR middle-end/66178
20402         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
20403         drop EXPAND_INITIALIZER.
20404         * rtl.h (contains_symbolic_reference_p): Declare.
20405         * rtlanal.c (contains_symbolic_reference_p): New function.
20406         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
20407         a subtraction into a NOT if symbolic constants are involved.
20409 2016-01-21  Anton Blanchard  <anton@samba.org>
20410             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20412         PR target/63354
20413         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
20414         #define.
20415         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
20416         function.
20418 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
20420         * config/microblaze/microblaze.c
20421         (get_branch_target): New.
20422         (insert_wic_for_ilb_runout): New.
20423         (insert_wic): New.
20424         (microblaze_machine_dependent_reorg): New.
20425         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
20426         * config/microblaze/microblaze.md
20427         (UNSPEC_IPREFETCH): Define.
20428         (iprefetch): New pattern
20429         * config/microblaze/microblaze.opt
20430         (mxl-prefetch): New flag.
20432 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
20434         * config/microblaze/microblaze.h
20435         (FIXED_REGISTERS): Update in macro.
20436         (CALL_USED_REGISTERS): Update in macro.
20438 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
20440         PR rtl-optimization/68920
20441         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
20442         moves.
20444 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
20446         PR rtl-optimization/68990
20447         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
20448         pseudo instead of inheritance ones.
20450 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20451             Nick Clifton  <nickc@redhat.com>
20453         PR target/69129
20454         PR target/69012
20455         * config/mips/mips.c (mips_compute_frame_info): Initialise
20456         args_size and hard_frame_pointer_offset fields of the frame
20457         structure before calling mips_global_pointer.
20459 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
20461         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
20462         label reference.
20463         * configure: Regenerate.
20465 2016-01-21  Richard Biener  <rguenther@suse.de>
20467         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
20469 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
20471         * config/s390/s390.c (s390_asm_declare_function_size): Add code
20472         to actually emit the .size directive.
20474 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
20475              Jakub Jelinek  <jakub@redhat.com>
20477         PR target/69187
20478         PR target/65624
20479         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
20480         args array size by one to avoid buffer overflow.
20482 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
20484         * config/s390/s390.md (pool_section_start): Use switch_to_section
20485         to select proper read-only data section instead of hardcoding
20486         .rodata.
20487         (pool_section_end): Use switch_to_section to match the above.
20489 2016-01-21  Richard Biener  <rguenther@suse.de>
20491         PR tree-optimization/69378
20492         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
20493         (set_ssa_val_to): Use it for dominance checks taking into
20494         account not executable edges.
20496 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
20498         PR c++/69355
20499         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
20500         for bitsize instead of GET_MODE_PRECISION (mode).
20502 2016-01-20  Martin Sebor  <msebor@redhat.com>
20504         PR c/52291
20505         * extend.texi (__sync Builtins): Clarify the semantics of
20506         __sync_fetch_and_OP built-ins on pointers.
20507         (__atomic Builtins): Same.
20509 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20510             Sebastian Pop  <s.pop@samsung.com>
20512         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
20513         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
20514         (is_valid_rename): Same.
20515         (translate_isl_ast_to_gimple::get_rename): Same.
20516         (translate_isl_ast_to_gimple::rename_all_uses): Same.
20517         (translate_isl_ast_to_gimple::rename_uses): Same.
20518         (get_new_name): Check for close_phi nodes.
20519         (copy_loop_phi_args): Use phi_node_kind.
20520         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
20521         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
20523 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20524             Sebastian Pop  <s.pop@samsung.com>
20526         Revert commit r229783.
20527         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
20528         Remove use of parameter_rename_map.
20529         (copy_def): Remove.
20530         (copy_internal_parameters): Remove.
20531         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
20532         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
20533         (free_sese_info): Do not free parameter_rename_map.
20534         (set_rename): Do not use parameter_rename_map.
20535         (rename_uses): Update call to set_rename.
20536         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
20537         * sese.h (parameter_rename_map_t): Remove.
20538         (struct sese_info_t): Remove field parameter_rename_map.
20540 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20541             Sebastian Pop  <s.pop@samsung.com>
20543         * graphite-isl-ast-to-gimple.c: Fix comment.
20544         * graphite-scop-detection.c (defined_in_loop_p): New.
20545         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
20546         names defined in loop.
20548 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20549             Sebastian Pop  <s.pop@samsung.com>
20551         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
20552         Discard unstructured if-then-else regions.
20554 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20555             Sebastian Pop  <s.pop@samsung.com>
20557         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
20558         (cleanup_loop_iter_dom): Remove.
20559         (build_loop_iteration_domains): Remove.
20560         (build_scop_context): Remove.
20561         (build_scop_iteration_domain): Remove.
20562         (add_loop_constraints): New.
20563         (build_iteration_domains): New.
20564         (build_poly_scop): Call build_iteration_domains.
20566 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20567             Sebastian Pop  <s.pop@samsung.com>
20569         * graphite-scop-detection.c
20570         (scop_detection::harmful_loop_in_region): Free dom and loops.
20571         (scop_detection::loop_body_is_valid_scop): Free bbs.
20573 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20574             Sebastian Pop  <s.pop@samsung.com>
20576         * graphite-scop-detection.c (record_loop_in_sese): New.
20577         (gather_bbs::before_dom_children): Call record_loop_in_sese.
20578         (build_scops): Remove call to build_sese_loop_nests.
20579         * sese.c (sese_record_loop): Remove.
20580         (build_sese_loop_nests): Remove.
20581         (new_sese_info): Remove region->loops.
20582         (free_sese_info): Same.
20583         * sese.h (sese_contains_loop): Same.
20584         (build_sese_loop_nests): Remove.
20585         (sese_contains_loop): Remove.
20587 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20588             Sebastian Pop  <s.pop@samsung.com>
20590         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
20591         loop_is_valid_in_scop.
20592         (scop_detection::harmful_stmt_in_region): Renamed
20593         harmful_loop_in_region.
20594         Call loop_is_valid_in_scop.
20596 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20597             Sebastian Pop  <s.pop@samsung.com>
20599         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
20600         isl_ast_node_mark.
20602 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20603             Sebastian Pop  <s.pop@samsung.com>
20605         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
20606         * graphite.h (struct poly_bb): Remove field is_reduction.
20607         (PBB_IS_REDUCTION): Remove.
20609 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
20610             Sebastian Pop  <s.pop@samsung.com>
20612         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
20613         (add_pdr_constraints): Same.
20614         (scop_get_reads): Same.
20615         (scop_get_must_writes): Same.
20616         (scop_get_may_writes): Same.
20617         (scop_get_original_schedule): Same.
20618         (extend_schedule): Same.
20619         (apply_schedule_on_deps): Same.
20620         (carries_deps): Same.
20621         (compute_deps): Same.
20622         (scop_get_dependences): Same.
20623         * graphite-isl-ast-to-gimple.c
20624         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
20625         * graphite-optimize-isl.c (get_schedule_for_band): Same.
20626         (get_schedule_for_band_list): Same.
20627         (get_schedule_map): Same.
20628         (apply_schedule_map_to_scop): Same.
20629         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
20630         (build_loop_iteration_domains): Same.
20631         (add_condition_to_pbb): Same.
20632         (add_param_constraints): Same.
20633         (pdr_add_memory_accesses): Same.
20634         (pdr_add_data_dimensions): Same.
20636 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
20638         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
20639         requirements.
20641 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
20643         * common.opt (feliminate-dwarf2-dups): Replace references to
20644         "DWARF 2" with just "DWARF".
20645         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
20646         * doc/extend.texi: Likewise.
20647         * doc/cpp.texi: Likewise.
20648         * doc/invoke.texi: Likewise.
20649         (Option Summary): Add -gdwarf to list of Debugging Options.
20650         (Debugging Options): Document -gdwarf.
20651         * doc/contrib.texi: Spell "DWARF" like that.
20653 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
20655         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
20656         warning.  Fix up formatting.
20658         PR middle-end/67653
20659         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
20660         attempt to mark memory input operand addressable and
20661         call prepare_gimple_addressable in that case.  Don't adjust
20662         input_location for diagnostics, use error_at instead.
20664 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
20666         * config/rs6000/ppc-auxv.h: New file.
20667         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
20668         (cpu_is): Likewise.
20669         (cpu_supports): Likewise.
20670         * config/rs6000/rs6000.c: include "ppc-auxv.h".
20671         (cpu_is_info): New variable.
20672         (cpu_supports_info): Likewise.
20673         (tcb_verification_symbol): Likewise.
20674         (cpu_builtin_p): Likewise.
20675         (cpu_expand_builtin): New function.
20676         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
20677         (rs6000_init_builtins): Likewise.
20678         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
20679         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
20680         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
20681         * configure: Regenerate.
20682         * config.in: Likewise.
20683         * doc/extend.texi (PowerPC Built-in Functions): Document
20684         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
20686 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
20688         PR target/68609
20689         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
20690         domain check.
20691         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
20692         for V4SFmode.
20694 2016-01-20  Richard Henderson  <rth@redhat.com>
20696         PR bootstrap/69343
20697         PR bootstrap/69339
20698         PR tree-opt/68964
20699         Revert:
20700         * tree.c (tm_define_builtin): New.
20701         (find_tm_vector_type): New.
20702         (build_tm_vector_builtins): New.
20703         (build_common_builtin_nodes): Call it.
20705 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
20707         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
20708         (arm_fp_ok): Likewise.
20709         (arm_fp): Likewise.
20710         (arm_crypto): Likewise.
20712 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
20713             Richard Biener  <rguenther@suse.de>
20715         PR tree-optimization/69328
20716         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
20717         vectors have same number of elements.
20718         (vectorizable_condition): Fix masked version recognition.
20720 2016-01-20  Richard Biener  <rguenther@suse.de>
20722         PR tree-optimization/69345
20723         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
20724         (VN_INFO_PTR_INFO): Likewise.
20725         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
20726         info when it is equal between non-dominating SSA names.
20727         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20728         Make sure to look at original SSA infos.
20730 2016-01-20  Jeff Law  <law@redhat.com>
20732         PR target/25114
20733         * config/m68k/predicates.md (pow2_m1_operand): New predicate
20734         extracted from ...
20735         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
20736         (pc_or_label_operand): New predicate.
20737         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
20738         tests for small integers that are 2^n - 1.
20740 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
20742         * doc/invoke.texi (Options Summary): Add '.' after @xref.
20744 2016-01-19  Jeff Law  <law@redhat.com>
20746         PR middle-end/69347
20747         * tree-ssa-threadbackwards.c
20748         (fsm_find_control_statement_thread_paths): Do not try to lookup
20749         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
20751 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
20753         * doc/lto.texi: Remove text that says only Gold has linker plugin
20754         support.
20756 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
20758         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
20759         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
20760         the DIE accordingly.
20761         (modified_type_die): Add REVERSE parameter and pass it recursively,
20762         as well as to base_type_die.  Adjust presence check accordingly.
20763         (base_type_for_mode): Adjust call to modified_type_die.
20764         (add_type_attribute): Add REVERSE parameter and pass it to
20765         modified_type_die.
20766         (generic_parameter_die): Adjust call to add_type_attribute.
20767         (add_scalar_info): Likewise.
20768         (add_subscript_info): Likewise.
20769         (gen_array_type_die): Likewise.
20770         (gen_descr_array_type_die): Likewise.
20771         (gen_entry_point_die): Likewise.
20772         (gen_enumeration_type_die): Likewise.
20773         (gen_formal_parameter_die): Likewise.
20774         (gen_subprogram_die): Likewise.
20775         (gen_variable_die ): Likewise.
20776         (gen_const_die): Likewise.
20777         (gen_field_die): Likewise.
20778         (gen_pointer_type_die): Likewise.
20779         (gen_reference_type_die): Likewise.
20780         (gen_ptr_to_mbr_type_die): Likewise.
20781         (gen_inheritance_die): Likewise.
20782         (gen_subroutine_type_die): Likewise.
20783         (gen_typedef_die): Likewise.
20784         (force_type_die): Adjust call to modified_type_die.
20786 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
20788         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
20789         flow throughout the file.  Fix broken link to Objective-C 2.0
20790         documentation.
20791         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
20792         errors.
20794 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
20796         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
20798 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
20800         PR ipa/66223
20801         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
20802         (maybe_record_node): Record cxa_pure_virtual as the only possible
20803         target if there are not ohter candidates.
20804         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
20806 2016-01-19  Richard Biener  <rguenther@suse.de>
20808         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
20809         (get_memory_order): Likewise.
20811 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
20813         * tree-vect-stmts.c (vectorizable_store): Check
20814         rhs vectype.
20816 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
20818         PR jit/68446
20819         * gcc.c (driver::decode_argv): Add call to
20820         init_opts_obstack before init_options_struct.
20821         * opts.c (init_opts_obstack): Remove idempotency.
20822         (init_options_struct): Replace call to init_opts_obstack
20823         with a gcc_assert to verify that it has already been called.
20824         * toplev.c (toplev::main): Add call to init_opts_obstack before
20825         calls to init_options_struct.
20826         (toplev::finalize): Move cleanup of opts_obstack next to
20827         cleanup of save_decoded_options, clearing the latter, and
20828         save_decoded_options_count.
20830 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20832         PR target/69135
20833         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
20834         attribute to unconditional.  Remove %? from output template.
20836 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
20837             Jiong Wang  <jiong.wang@arm.com>
20839         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
20840         generated from different expand order.
20842 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
20844         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
20845         Add support for CCMP costing.
20847 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
20849         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
20850         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
20851         (fccmpe<mode>): Likewise.
20852         (fcmp): Rename to fcmp and globalize pattern.
20853         (fcmpe): Likewise.
20854         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
20855         (aarch64_gen_ccmp_next): Add FP support.
20857 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
20859         * target.def (gen_ccmp_first): Update documentation.
20860         (gen_ccmp_next): Likewise.
20861         * doc/tm.texi (gen_ccmp_first): Update documentation.
20862         (gen_ccmp_next): Likewise.
20863         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
20864         expand_ccmp_expr_1.  Improve comments.
20865         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
20866         (ccmp_ior<mode>): Remove pattern.
20867         (cmp<mode>): Remove expand.
20868         (cmp): Globalize pattern.
20869         (cstorecc4): Use cc_register.
20870         (mov<mode>cc): Remove ccmp_cc_register check.
20871         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
20872         Simplify after removal of CC_DNE/* modes.
20873         (aarch64_ccmp_mode_to_code): Remove.
20874         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
20875         In 'k' case use integer as condition.
20876         (aarch64_nzcv_codes): Remove inverted cases.
20877         (aarch64_code_to_ccmode): Remove.
20878         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
20879         comparison with CC register to be used in folowing CCMP/branch/CSEL.
20880         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
20881         pattern.  Return the comparison with CC register.  Invert conditions
20882         when bitcode is OR.
20883         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
20884         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
20886 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
20888         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
20889         instrumented_version.
20891 2016-01-19  Richard Biener  <rguenther@suse.de>
20893         PR tree-optimization/69336
20894         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
20895         handled components with get_ref_base_and_extent.
20896         (equal_mem_array_ref_p): Adjust.
20898 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
20900         PR debug/65779
20901         * shrink-wrap.c: Include valtrack.h.
20902         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
20903         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
20904         in between insn and where it will be moved to.  Call
20905         dead_debug_insert_temp.
20906         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
20907         first and dead_debug_local_finish at the end.
20908         For uses and defs bitmap, handle all regs in between REGNO and
20909         END_REGNO, not just the first one.
20911 2016-01-19  Richard Biener  <rguenther@suse.de>
20913         PR tree-optimization/69352
20914         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
20915         (equal_mem_array_ref_p): Constrain size and max size properly.
20916         Compare the reverse flag.
20918 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
20920         * ira.c (ira): Update regstat data if we deleted insns.
20922 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
20924         PR rtl-optimization/68955
20925         PR rtl-optimization/64557
20926         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
20927         here.  Fix up formatting.
20928         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
20930 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
20932         PR lto/69133
20933         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
20934         assume that the node has body.
20935         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
20936         check.
20938 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
20940         * lto-streamer-out.c (lto_output): Do not stream instrumentation
20941         thunks.
20943 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
20945         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
20946         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
20948 2016-01-19  Martin Jambor  <mjambor@suse.cz>
20949             Martin Liska  <mliska@suse.cz>
20950             Michael Matz  <matz@suse.de>
20952         * Makefile.in (OBJS): Add new source files.
20953         (GTFILES): Add hsa.c.
20954         * common.opt (disable_hsa): New variable.
20955         (-Whsa): New warning.
20956         * config.in (ENABLE_HSA): New.
20957         * configure.ac: Treat hsa differently from other accelerators.
20958         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
20959         $enable_offloading.
20960         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
20961         * doc/install.texi (Configuration): Document --with-hsa-runtime,
20962         --with-hsa-runtime-include, --with-hsa-runtime-lib and
20963         --with-hsa-kmt-lib.
20964         * doc/invoke.texi (-Whsa): Document.
20965         (hsa-gen-debug-stores): Likewise.
20966         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
20967         to invoke offload compiler for hsa acclerator.
20968         * opts.c (common_handle_option): Determine whether HSA offloading
20969         should be performed.
20970         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
20971         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
20972         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
20973         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
20974         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
20975         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
20976         GF_OMP_FOR_KIND_GRID_LOOP.
20977         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
20978         (pp_gimple_stmt_1): Likewise.
20979         * gimple-walk.c (walk_gimple_stmt): Likewise.
20980         * gimple.c (gimple_build_omp_grid_body): New function.
20981         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
20982         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
20983         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
20984         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
20985         GF_OMP_TEAMS_GRID_PHONY.
20986         (gimple_statement_omp_single_layout): Updated comments.
20987         (gimple_build_omp_grid_body): New function.
20988         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
20989         (gimple_omp_for_grid_phony): New function.
20990         (gimple_omp_for_set_grid_phony): Likewise.
20991         (gimple_omp_parallel_grid_phony): Likewise.
20992         (gimple_omp_parallel_set_grid_phony): Likewise.
20993         (gimple_omp_teams_grid_phony): Likewise.
20994         (gimple_omp_teams_set_grid_phony): Likewise.
20995         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
20996         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
20997         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
20998         (BUILT_IN_GOMP_TARGET): Updated type.
20999         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
21000         (adjust_for_condition): New function.
21001         (get_omp_for_step_from_incr): Likewise.
21002         (extract_omp_for_data): Moved parts to adjust_for_condition and
21003         get_omp_for_step_from_incr.
21004         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
21005         (fixup_child_record_type): Bail out if receiver_decl is NULL.
21006         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
21007         (scan_omp_parallel): Do not create child functions for phony
21008         constructs.
21009         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
21010         (scan_omp_1_op): Checking assert we are not remapping to
21011         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
21012         (parallel_needs_hsa_kernel_p): New function.
21013         (expand_parallel_call): Register apprpriate parallel child
21014         functions as HSA kernels.
21015         (grid_launch_attributes_trees): New type.
21016         (grid_attr_trees): New variable.
21017         (grid_create_kernel_launch_attr_types): New function.
21018         (grid_insert_store_range_dim): Likewise.
21019         (grid_get_kernel_launch_attributes): Likewise.
21020         (get_target_argument_identifier_1): Likewise.
21021         (get_target_argument_identifier): Likewise.
21022         (get_target_argument_value): Likewise.
21023         (push_target_argument_according_to_value): Likewise.
21024         (get_target_arguments): Likewise.
21025         (expand_omp_target): Call get_target_arguments instead of looking
21026         up for teams and thread limit.
21027         (grid_expand_omp_for_loop): New function.
21028         (grid_arg_decl_map): New type.
21029         (grid_remap_kernel_arg_accesses): New function.
21030         (grid_expand_target_kernel_body): New function.
21031         (expand_omp): Call it.
21032         (lower_omp_for): Do not emit phony constructs.
21033         (lower_omp_taskreg): Do not emit phony constructs but create for them
21034         a temporary variable receiver_decl.
21035         (lower_omp_taskreg): Do not emit phony constructs.
21036         (lower_omp_teams): Likewise.
21037         (lower_omp_grid_body): New function.
21038         (lower_omp_1): Call it.
21039         (grid_reg_assignment_to_local_var_p): New function.
21040         (grid_seq_only_contains_local_assignments): Likewise.
21041         (grid_find_single_omp_among_assignments_1): Likewise.
21042         (grid_find_single_omp_among_assignments): Likewise.
21043         (grid_find_ungridifiable_statement): Likewise.
21044         (grid_target_follows_gridifiable_pattern): Likewise.
21045         (grid_remap_prebody_decls): Likewise.
21046         (grid_copy_leading_local_assignments): Likewise.
21047         (grid_process_kernel_body_copy): Likewise.
21048         (grid_attempt_target_gridification): Likewise.
21049         (grid_gridify_all_targets_stmt): Likewise.
21050         (grid_gridify_all_targets): Likewise.
21051         (execute_lower_omp): Call grid_gridify_all_targets.
21052         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
21053         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
21054         (tree_omp_clause): Added union field dimension.
21055         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
21056         * tree.c (omp_clause_num_ops): Added number of arguments of
21057         OMP_CLAUSE__GRIDDIM_.
21058         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
21059         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
21060         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
21061         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
21062         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
21063         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
21064         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
21065         * tree-pass.h (make_pass_gen_hsail): Declare.
21066         (make_pass_ipa_hsa): Likewise.
21067         * ipa-hsa.c: New file.
21068         * lto-section-in.c (lto_section_name): Add hsa section name.
21069         * lto-streamer.h (lto_section_type): Add hsa section.
21070         * timevar.def (TV_IPA_HSA): New.
21071         * hsa-brig-format.h: New file.
21072         * hsa-brig.c: New file.
21073         * hsa-dump.c: Likewise.
21074         * hsa-gen.c: Likewise.
21075         * hsa.c: Likewise.
21076         * hsa.h: Likewise.
21077         * toplev.c (compile_file): Call hsa_output_brig.
21078         * hsa-regalloc.c: New file.
21080 2016-01-18  Jeff Law  <law@redhat.com>
21082         PR tree-optimization/69320
21083         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
21084         ranged object, do nothing if the RHS constant is not [0..1].
21085         (optimize_stmt): Comparing a boolean ranged object against a
21086         constant outside [0..1] results in a compile-time constant.
21088         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
21089         test.
21091 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
21093         * doc/invoke.texi (Invoking GCC): Add new section to menu.
21094         (Option Summary): Update to reflect new section and moved options.
21095         (C++ Dialect Options): Move -fstats to new section.
21096         (Debugging Options): Move all dump, statistics, and other GCC
21097         developer options to new section.  Rewrite section introduction
21098         and re-order remaining options to put the more basic ones first.
21099         (Optimization Options): Move -fira-verbose and -flto-report* to
21100         new section.
21101         (Developer Options): New section incorporating moved options.
21102         * doc/cppopts.texi (-dM): Update cross-reference.
21104 2016-01-18  Richard Henderson  <rth@redhat.com>
21106         PR target/69176
21107         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
21108         operands to pseudo only if CSE is expected.  Split long immediate
21109         operands only after reload, and for the stack pointer.
21110         (*add<GPI>3_pluslong): Remove.
21111         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
21112         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
21113         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
21114         (*add<GPI>3 peepholes): New.
21115         (*add<GPI>3 splitters): New.
21116         * config/aarch64/constraints.md (Upl): New.
21117         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
21119 2016-01-18  Richard Biener  <rguenther@suse.de>
21121         PR tree-optimization/69297
21122         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
21123         stmt at most once.
21124         (vect_bb_vectorization_profitable_p): Clear visited flag again.
21126 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
21128         PR middle-end/68542
21129         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
21130         of mixind vector and scalar types.
21131         (fold_relational_const): Add handling of vector
21132         comparison with boolean result.
21133         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
21134         comparison of vector operands with boolean result for EQ/NE only.
21135         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
21136         (verify_gimple_cond): Likewise.
21137         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
21138         valid type of VAL.
21140 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
21142         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
21143         !TARGET_OCTEON.
21145 2016-01-18  Richard Biener  <rguenther@suse.de>
21147         PR middle-end/69308
21148         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
21150 2016-01-18  Tom de Vries  <tom@codesourcery.com>
21152         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
21154 2016-01-18  Tom de Vries  <tom@codesourcery.com>
21156         * omp-low.c (set_oacc_fn_attrib): Make extern.
21157         * omp-low.h (set_oacc_fn_attrib): Declare.
21158         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
21159         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
21160         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
21161         Add and handle function parameter oacc_kernels_p.
21162         (find_reduc_addr, get_omp_data_i_param): New function.
21163         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
21164         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
21165         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
21166         Calculate dominance info.  Skip loops that are not in a kernels region
21167         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
21168         (pass_parallelize_loops::execute): Call parallelize_loops with
21169         oacc_kernels_p argument.
21170         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
21171         New member function.
21172         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
21173         * passes.def: Add argument to pass_parallelize_loops instantation.
21175 2016-01-18  Tom de Vries  <tom@codesourcery.com>
21177         * tree-parloops.c (pass_parallelize_loops::execute): Allow
21178         pass_parallelize_loops to be run outside the loop pipeline.
21180 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
21182         * tree-scalar-evolution.c (follow_copies_to_constant): New.
21183         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
21185 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
21187         PR target/63679
21188         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
21189         using get_ref_base_and_extent.
21190         (equal_mem_array_ref_p): New.
21191         (hashable_expr_equal_p): Add call to previous.
21193 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
21195         PR target/63679
21196         * tree-sra.c (disqualified_constants, constant_decl_p): New.
21197         (sra_initialize): Allocate disqualified_constants.
21198         (sra_deinitialize): Free disqualified_constants.
21199         (disqualify_candidate): Update disqualified_constants when appropriate.
21200         (create_access): Scan for constant-pool entries as we go along.
21201         (scalarizable_type_p): Add check against type_contains_placeholder_p.
21202         (maybe_add_sra_candidate): Allow constant-pool entries.
21203         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
21204         (initialize_constant_pool_replacements): New.
21205         (sra_modify_assign): Avoid mangling assignments created by previous,
21206         and don't generate writes into constant pool.
21207         (sra_modify_function_body): Call initialize_constant_pool_replacements.
21209 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
21211         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
21212         andnot instruction.
21213         (scalar_chain::convert_op): Likewise.
21214         * config/i386/i386.md (*andndi3_doubleword): New.
21216 2016-01-18  Richard Biener  <rguenther@suse.de>
21218         PR tree-optimization/69170
21219         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
21220         building a vector from scalar results of a pattern stmt.
21222 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
21224         * haifa-sched.c (autopref_multipass_init): Work around
21225         -Wmaybe-uninitialized warning.
21227 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21229         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
21230         against the constant 0.
21232 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21234         PR tree-optimization/68799
21235         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
21236         look up phi candidates in the statement-candidate map.
21237         (phi_add_costs): Likewise.
21238         (record_phi_increments): Likewise.
21239         (phi_incr_cost): Likewise.
21240         (ncd_with_phi): Likewise.
21241         (all_phi_incrs_profitable): Likewise.
21243 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
21245         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
21246         -Wmaybe-uninitialized warning.
21248 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
21250         * doc/invoke.texi (Invoking GCC): Add new section to menu.
21251         (Option Summary): Update to reflect new section and moved options.
21252         (C++ Dialect Options): Move -fvtable-verify and related options.
21253         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
21254         and profiling-related options.
21255         (Optimization Options): Move profile generation options and
21256         -fstack-protector and related options.
21257         (Instrumentation Options): New section incorporating moved options.
21258         (Code Generation Options): Move -finstrument-functions and
21259         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
21261 2016-01-16  Tom de Vries  <tom@codesourcery.com>
21263         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
21265 2016-01-16  Tom de Vries  <tom@codesourcery.com>
21267         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
21269 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
21271         * hash-table.h (hash_table::empty): Turn into an inline wrapper
21272         that checks whether the table is already empty.  Rename the
21273         original implementation to...
21274         (hash_table::empty_slot): ...this new private function.
21276 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
21278         PR diagnostic/68899
21279         * diagnostic-show-locus.c (layout::print_source_line): Move x
21280         offset of line until after call to
21281         get_line_width_without_trailing_whitespace.
21283 2016-01-15  Jeff Law  <law@redhat.com>
21285         PR tree-optimization/69270
21286         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
21287         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
21288         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
21289         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
21290         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
21291         ssa_name_has_boolean_range and constant_boolean_node.
21293 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
21295         PR rtl-optimization/69030
21296         * lra-spills.c (remove_pseudos): Check nrefs and make the function
21297         returning bool.
21298         (spill_pseudos): Delete debug insn for dead pseudo.
21299         (lra_spill): Initiate spill_hard_reg and slots memory separately.
21301 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
21303         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
21304         New.
21305         (TYPES_UNOPUS): Likewise.
21306         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
21307         builtin type, from UNOP to UNOPUS.
21308         (lbtruncuv4sf): Likewise.
21309         (lbtruncuv2df): Likewise.
21310         (lrounduv2sf): Likewise.
21311         (lrounduv4sf): Likewise.
21312         (lrounduv2df): Likewise.
21313         (lroundusf): Likewise.
21314         (lroundusf): Likewise.
21315         (lceiluv2sf): Likewise.
21316         (lceiluv4sf): Likewise.
21317         (lceiluv2df): Likewise.
21318         (lceilusf): Likewise.
21319         (lceiludf): Likewise.
21320         (lflooruv2sf): Likewise.
21321         (lflooruv4sf): Likewise.
21322         (lflooruv2df): Likewise.
21323         (lfloorusf): Likewise.
21324         (lfloorudf): Likewise.
21325         (lfrintnuv2sf): Likewise.
21326         (lfrintnuv4sf): Likewise.
21327         (lfrintnuv2df): Likewise.
21328         (lfrintnusf): Likewise.
21329         (lfrintnudf): Likewise.
21330         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
21331         conversion.
21332         (vcvtq_u32_f32): Likewise.
21333         (vcvtq_u64_f64): Likewise.
21334         (vcvta_u32_f32): Likewise.
21335         (vcvtaq_u32_f32): Likewise.
21336         (vcvtaq_u64_f64): Likewise.
21337         (vcvtm_u32_f32): Likewise.
21338         (vcvtmq_u32_f32): Likewise.
21339         (vcvtmq_u64_f64): Likewise.
21340         (vcvtn_u32_f32): Likwise.
21341         (vcvtnq_u32_f32): Likewise.
21342         (vcvtnq_u64_f64): Likewise.
21343         (vcvtp_u32_f32): Likewise.
21344         (vcvtpq_u32_f32): Likewise.
21345         (vcvtpq_u64_f64): Likewise.
21346         (vcvtmd_u64_f64): Likewise.
21347         (vcvtms_u32_f32): Likewise.
21348         (vcvtad_u64_f64): Likewise.
21349         (vcvtas_u32_f32): Likewise.
21350         (vcvtnd_u64_f64): Likewise.
21351         (vcvtns_u32_f32): Likewise.
21352         (vcvtpd_u64_f64): Likewise.
21353         (vcvtps_u32_f32): Likewise.
21355 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21357         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
21358         CSEL of zero_extended registers.
21360 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21362         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
21363         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
21365 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21367         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
21368         false when argument string is not found in the attributes table
21369         at all.
21371 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
21373         PR target/68609
21374         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
21375         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
21376         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
21377         precision estimate.
21379 2016-01-15  Richard Biener  <rguenther@suse.de>
21381         PR tree-optimization/66856
21382         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
21383         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
21384         (vect_create_new_slp_node): Increment stmt reference count.
21385         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
21386         an SLP tree before swapping operands.
21387         (vect_build_slp_tree): Likewise.
21388         (destroy_bb_vec_info): Free stmt info after SLP instances.
21389         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
21390         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
21391         (STMT_VINFO_NUM_SLP_USES): New macro.
21393 2016-01-15  Richard Biener  <rguenther@suse.de>
21395         PR debug/69137
21396         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
21397         (add_linkage_name): ... here.
21398         (gen_typedef_die): Use add_linkage_name_raw instead of
21399         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
21400         if necessary.
21402 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
21404         * gimplify.c (oacc_default_clause): Decode reference and pointer
21405         types for both kernels and parallel regions.
21407 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
21409         PR middle-end/69246
21410         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
21412 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
21414         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
21415         (convert_scalars_to_vector): Likewise.
21417 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
21419         * doc/extend.texi (Type Traits): Fix grammar.
21421 2016-01-15  Martin Jambor  <mjambor@suse.cz>
21423         * tree-inline.c (remap_decl): Use existing dclarations if
21424         remapping a type and prevent_decl_creation_for_types.
21425         (replace_locals_stmt): Do an initial remapping of non-VLA typed
21426         decls first.  Do real remapping with
21427         prevent_decl_creation_for_types set.
21428         * tree-inline.h (copy_body_data): New field
21429         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
21430         padding.
21432 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21434         * config/s390/s390.opt (mmvcle): More verbose help text.
21436 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21438         * config/s390/s390.opt: Add period to -mzvector option text.
21440 2016-01-15  Richard Biener  <rguenther@suse.de>
21442         PR tree-optimization/68961
21443         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
21444         of invariants in stores again.
21446 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21448         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
21450 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
21452         * config/i386/i386.c (ix86_expand_branch): Don't split
21453         DI mode xor instruction to SI mode.
21455 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
21457         PR ipa/68148
21458         * ipa-icf.c (sem_function::merge): Virtual functions may become
21459         reachable even if they address is not taken and there are no
21460         idrect calls.
21462 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
21464         * lto-streamer-out.c (subtract_estimated_size): New function.
21465         (get_symbol_initial_value): Use it.
21467 2016-01-15  Christian Bruel  <christian.bruel@st.com>
21469         PR target/65837
21470         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
21471         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
21472         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
21473         use add_builtin_function_ext_scope instead of add_builtin_function.
21474         (neon_set_p, neon_crypto_set_p): Remove.
21475         (arm_init_builtins): Always call arm_init_neon_builtins and
21476         arm_init_crypto_builtins.
21477         (arm_expand_builtin): Check that builtins are allowed for the arch.
21478         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
21479         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
21480         arm_init_neon_builtins call.
21482 2016-01-15  Richard Biener  <rguenther@suse.de>
21484         PR tree-optimization/69117
21485         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
21486         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
21487         of the leader conservatively.
21488         (free_scc_vn): Restore original SSA name infos.
21490 2016-01-14  Jeff Law  <law@redhat.com>
21492         PR tree-optimization/69270
21493         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
21494         single bit of precision, verify it's also unsigned.
21495         (record_edge_info): Use constant_boolean_node rather than fold_convert
21496         to convert boolean_true/boolean_false to the right type.
21498 2016-01-14  Richard Henderson  <rth@redhat.com>
21500         PR rtl-opt/69014
21501         * loop-doloop.c (record_reg_sets): New.
21502         (doloop_optimize): Reject the transform if the sequence
21503         clobbers registers live at the end of the loop block.
21504         (doloop_optimize_loops): Enable df_live if needed.
21506 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
21508         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
21509         * config/rs6000/rs6000.c: Likewise.
21510         * config/rs6000/rs6000.h: Likewise.
21511         * config/rs6000/rs6000.md: Likewise.
21512         * doc/extend.texi: Likewsie.
21514 2016-01-14  Jeff Law  <law@redhat.com>
21516         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
21517         typo.
21519 2016-01-14  Richard Henderson  <rth@redhat.com>
21521         PR c/69272
21522         PR tree-opt/68964
21523         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
21524         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
21525         instead of builtin_decl_declared_p to test for declaration.
21527 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
21529         * doc/loop.texi (Loop Analysis and Representation): Document
21530         loop_depth function.
21532 2016-01-14  Tom de Vries  <tom@codesourcery.com>
21534         PR tree-optimization/68773
21535         * omp-low.c (expand_omp_target): Don't set force_output.
21536         * varpool.c (varpool_node::get_create): Same.
21537         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
21538         offload_funcs with force_output.
21540 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
21542         PR debug/69244
21543         * lra-eliminations.c (move_plus_up): Don't change anything if either
21544         the outer or inner subreg mode is not MODE_INT.
21545         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
21546         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
21548 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
21550         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
21551         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
21552         reduc_uplus_@var{m}): Remove.
21553         * expr.c (expand_expr_real_2): Remove expansion path for
21554         reduc_[us](min|max|plus) optabs.
21555         * optabs-tree.c (scalar_reduc_to_vector): Remove.
21556         * optabs-tree.h (scalar_reduc_to_vector): Remove.
21557         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
21558         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
21559         * tree-vect-loop.c (vectorizable_reduction): Remove test for
21560         reduc_[us](min|max|plus) optabs.
21562 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
21564         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
21565         (reduc_plus_scal_v2sf): New.
21566         (reduc_smax_v2sf): Rename to...
21567         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
21568         (reduc_smin_v2sf): Rename to...
21569         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
21571 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
21573         * alias.c (compare_base_symbol_refs): New function.
21574         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
21575         it.
21577 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
21579         PR middle-end/68146
21580         PR tree-optimization/69155
21581         * tree-complex.c: Include cfganal.h.
21582         (phis_to_revisit): New variable.
21583         (extract_component): Add phiarg_p argument.  Assert that returned
21584         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
21585         (update_phi_components): Partly rewrite to use loop over real/imag
21586         components instead of code duplication.  If extract_component returns
21587         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
21588         create_tmp_reg into the PHI node instead, and mention the phi triplet
21589         in phis_to_revisit.
21590         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
21591         in phis_to_revisit at the end.
21593 2016-01-14  Richard Biener  <rguenther@suse.de>
21595         PR tree-optimization/68060
21596         * tree-vect-loop.c (vect_is_simple_reduction): Check the
21597         outer loop reduction is only used in the inner loop before
21598         detecting a double reduction.
21600 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
21602         PR target/68269
21603         * combine.c (expand_field_assignment): Punt if compute_mode is
21604         unsupported scalar mode.
21606 2016-01-14  Richard Biener  <rguenther@suse.de>
21608         PR tree-optimization/66856
21609         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
21610         SLP node only if it built successfully.
21611         (vect_analyze_slp_instance): Adjust.
21613 2016-01-14  Jeff Law  <law@redhat.com>
21615         PR tree-optimization/69270
21616         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
21617         (record_edge_info): Use it.  Convert boolean_{true,false}_node
21618         to the type of op0.
21620 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
21622         PR ipa/66487
21623         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
21624         use block_ultimate_origin
21625         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
21627 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
21629         * doc/invoke.texi (Submodel Options): Rename section to
21630         "Machine-Dependent Options" to better reflect its content.
21631         Rewrite introductory text to remove archaic CPU names.
21632         Update references.
21634 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
21636         * doc/invoke.texi (Code Gen Options): Move section up in file,
21637         before target-specific options.  Update menu and option summary
21638         to reflect the new section ordering.
21640 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
21642         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
21643         (C++ Dialect Options): Add cross-reference to -std option.
21644         * doc/standards.texi (C++ Language): Document C++14 support.
21646 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
21648         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
21649         for pack/unpack functions for __ibm128.
21650         (PACK_IF): Likewise.
21651         (UNPACK_IF): Likewise.
21653         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
21654         support for __ibm128 pack/unpack functions.
21655         (rs6000_invalid_builtin): Likewise.
21656         (rs6000_init_builtins): Likewise.
21657         (rs6000_opt_masks): Likewise.
21659         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
21660         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
21661         functions
21662         (RS6000_BTM_COMMON): Likewise.
21664         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
21665         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
21666         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
21667         128-bit floating point.  Add support for the double values to be
21668         in Altivec registers for TF/IF packing and unpacking, but restrict
21669         TD packing sub-fields to be FPR registers.  Don't allow overlapped
21670         register support for packing.  Allow pack inputs to be memory
21671         locations.  Don't build generator functions for unpack<mode>_dm
21672         and unpack<mode>_nodm.
21673         (unpack<mode>_dm): Likewise.
21674         (unpack<mode>_nodm): Likewise.
21675         (pack<mode>): Likewise.
21677         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
21678         built-in functions to pack/unpack explicit __ibm128 values.
21679         (__builtin_unpack_ibm128): Likewise.
21681         * doc/extend.texi (PowerPC Built-in Functions): Document
21682         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
21684 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
21686         PR c/66208
21687         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
21688         Add new arg loc and pass it down as context.
21689         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
21690         to the location to use for the warning.
21691         (check_function_arguments): New arg loc.  All callers changed.  Pass
21692         it to check_function_nonnull.
21693         * c-common.h (check_function_arguments): Adjust declaration.
21695 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
21697         PR tree-optimization/69156
21698         * gimple.c (validate_type): Removed.
21699         (gimple_builtin_call_types_compatible_p): Use
21700         useless_type_conversion_p instead of validate_type.
21701         * value-prof.c (gimple_stringop_fixed_value): Fold
21702         icall_size to correct type.
21704 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
21706         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
21707         effects.
21709 2016-01-13  Richard Henderson  <rth@redhat.com>
21711         PR tree-opt/68964
21712         * target.def (builtin_tm_load, builtin_tm_store): Remove.
21713         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
21714         (ix86_builtin_tm_store): Remove.
21715         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
21716         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
21717         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
21718         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
21719         * doc/tm.texi: Rebuild.
21721         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
21722         (BUILT_IN_TM_MEMCPY_RTWN): New.
21723         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
21724         fallback from vector to integer helpers.
21725         (build_tm_load): Handle vector types directly, instead of
21726         via target hook.
21727         (build_tm_store): Likewise.
21728         (expand_assign_tm): Prepare for register types not handled by
21729         the above.  Copy them to memory and use memcpy.
21730         * tree.c (tm_define_builtin): New.
21731         (find_tm_vector_type): New.
21732         (build_tm_vector_builtins): New.
21733         (build_common_builtin_nodes): Call it.
21735 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
21737         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
21738         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
21740 2016-01-13  Tom de Vries  <tom@codesourcery.com>
21742         PR tree-optimization/69169
21743         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
21744         handled_struct_type param.
21745         (create_variable_info_for, intra_create_variable_infos): Call
21746         create_variable_info_for_1 with extra arg.
21748 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
21750         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
21751         and "armv8.1-a+crc" entries.
21753 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
21755         PR target/69228
21756         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
21757         Change first operand predicate from register_or_constm1_operand
21758         to register_operand.
21759         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
21760         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
21761         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
21762         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
21763         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
21764         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
21765         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
21766         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
21767         comparison with constm1_rtx from vec_prefetch_gen part.
21769 2016-01-13  Richard Biener  <rguenther@suse.de>
21771         PR tree-optimization/69013
21772         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
21773         Exchange assert for a test.
21775 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21777         PR target/69247
21778         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
21780 2016-01-13  Richard Biener  <rguenther@suse.de>
21782         PR tree-optimization/69242
21783         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
21784         assert with a check.
21786 2016-01-13  Richard Biener  <rguenther@suse.de>
21788         PR tree-optimization/69186
21789         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21790         Properly guard vect_update_misalignment_for_peel call.
21792 2016-01-12  Jeff Law  <law@redhat.com>
21794         PR tree-optimization/pr67755
21795         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
21796         "need_profile_correction".
21797         (thread_block_1): Initialize new field to false by default.  If we
21798         have multiple thread paths through a common joiner to different
21799         final targets, then set new field to true.
21800         (compute_path_counts): Only do count adjustment when it's really
21801         needed.
21803 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
21805         * doc/invoke.texi (Spec Files): Move section down in file, past
21806         all command-line option descriptions.
21808 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21810         PR middle-end/54809
21811         * doc/gty.texi: Remove documentation of mark_hook.
21812         * gengtype.c (struct write_types_data): Remove code to support
21813         mark_hook attribute.
21814         (walk_type): Likewise.
21815         (write_func_for_structure): Likewise.
21817 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
21819         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
21820         Directory Options, and -specs= to Overall Options.
21821         (Overall Options): Adjust similarly.  Reorder to group related
21822         options together.  Make -specs= cross-reference the spec file details.
21823         (Directory Options): Adjust similarly.
21825 2016-01-12  Jeff Law  <law@redhat.com>
21827         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
21829 2016-01-12  Olivier Hainque  <hainque@adacore.com>
21831         * gcc.c (spec_undefvar_allowed): New global.
21832         (process_command): Set to true when running for --version or --help,
21833         alone or together.
21834         (getenv_spec_function): When the variable is not defined, use the
21835         variable name as the variable value if we're allowed not to issue
21836         a fatal error.
21838 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
21840         PR tree-optimization/68911
21841         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
21842         information computed for expression "init + nit * step".
21844 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
21846         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
21847         about name of GCC executable.  Remove deleted node from menu.
21848         (Directory Options) <-B>: Remove cross-reference to deleted node.
21849         (Target Options): Delete section.
21851 2016-01-12  Christian Bruel  <christian.bruel@st.com>
21853         PR target/69180
21854         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
21855         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
21857 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
21859         PR target/69198
21860         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
21861         aligned_mem is properly set for AVX512-VL floating point masked
21862         stores.
21864         PR target/69175
21865         * ifcvt.c (cond_exec_process_if_block): When removing the last
21866         insn from then_bb, remove also any possible barriers that follow it.
21868 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
21870         PR target/68456
21871         PR target/69226
21872         * config/i386/iamcu.h (SIZE_TYPE): New macro.
21873         (PTRDIFF_TYPE): Likewise.
21874         (WCHAR_TYPE): Likewise.
21875         (WCHAR_TYPE_SIZE): Likewise.
21876         (STDINT_LONG32): Likewise.
21878 2016-01-12  Richard Biener  <rguenther@suse.de>
21880         PR tree-optimization/69053
21881         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
21882         convert initial value for cond reductions.
21884 2016-01-12  Richard Biener  <rguenther@suse.de>
21886         PR tree-optimization/69007
21887         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
21888         widen_sum after dot_prod and sad.
21890 2016-01-12  Richard Biener  <rguenther@suse.de>
21892         PR tree-optimization/69168
21893         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
21894         pattern stmt SLP type.
21895         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
21896         end up unused so cope with that case.
21898 2016-01-12  Richard Biener  <rguenther@suse.de>
21900         PR tree-optimization/69157
21901         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
21902         stmts def type only during analyze phase.
21903         (vectorizable_call): Likewise.
21904         (vectorizable_simd_clone_call): Likewise.
21905         (vectorizable_conversion): Likewise.
21906         (vectorizable_assignment): Likewise.
21907         (vectorizable_shift): Likewise.
21908         (vectorizable_operation): Likewise.
21909         (vectorizable_store): Likewise.
21910         (vectorizable_load): Likewise.
21912 2016-01-12  Richard Biener  <rguenther@suse.de>
21914         PR tree-optimization/69174
21915         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
21916         space.
21917         (vectorizable_load): Properly compute the number of loads needed
21918         for permuted strided SLP loads and do not spuriously assign
21919         to SLP_TREE_VEC_STMTS.
21921 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
21923         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
21924         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
21925         (MD_EXEC_PREFIX): Remove.
21926         (MD_STARTFILE_PREFIX) Removee.
21927         (FILE_NAME_ABSOLUTE_P): Remove.
21928         (CPP_SPEC): Do not read macros from sys/version.h.
21929         (LINK_COMMAND_SPEC): Remove.
21930         (LOCAL_INCLUDE_DIR): Remove.
21931         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
21932         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
21933         (POST_LINK_SPEC): Define to invoke stubify after linker
21934         (LIBSTDCXX): Remove define
21935         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
21936         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
21937         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
21938         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
21939         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
21940         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
21941         (i386_djgpp_asm_named_section): Add propotype of new procedure
21943         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
21944         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
21945         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
21946         in config/i386/djgpp.h).
21947         (STANDARD_STARTFILE_PREFIX_2): Define identical to
21948         STANDARD_STARTFILE_PREFIX_1.
21949         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
21950         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
21951         installation errors.
21952         (MAX_OFILE_ALIGNMENT): Define to 128.
21953         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
21955         * config/i386/djgpp.c: New file. Add implementation of
21956         i386_djgpp_asm_named_section.
21958         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
21960         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
21961         Add rule for building djgpp.o.
21963 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21965         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
21966         (rtx_is_swappable_p): Reductions are swappable.
21967         (insn_is_swappable_p): V2DF reductions are swappable.
21969 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
21971         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
21972         reloads for other unsupported memory operands.
21974 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21975             Jim Wilson  <jim.wilson@linaro.org>
21977         PR target/69194
21978         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
21979         copy_to_mode_reg instead of force_reg.
21981 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
21983         PR target/69225
21984         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
21985         TARGET_80387 is true.
21987 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
21989         PR target/69071
21990         * lra-eliminations.c (move_plus_up): Only move plus up
21991         if subreg of the constant can be simplified into constant
21992         and use the simplified subreg of the constant instead of
21993         the original constant.
21995         * fold-const.c (fold_convertible_p): Don't return true
21996         for conversion of VECTOR_TYPE to same sized integral type.
21997         (fold_convert_loc): Fix up formatting.  Fold conversion of
21998         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
21999         instead of NOP_EXPR.
22001         PR tree-optimization/69214
22002         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
22003         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
22004         Formatting fix.
22006         PR tree-optimization/69207
22007         * tree-vect-slp.c (vect_get_constant_vectors): For
22008         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
22009         fold_convertible_p to vector_type's element type, and always
22010         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
22012 2016-01-11  Richard Biener  <rguenther@suse.de>
22014         PR tree-optimization/69173
22015         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
22016         fixup the cycle if all stmts are in a pattern.
22018 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
22020         PR middle-end/68999
22021         * alias.c (base_alias_check): Move check for addresses with
22022         alignment ANDs before the call for compare_base_decls.
22023         (memrefs_conflict_p): Return -1 for different decls
22024         that went through alignment adjustments.
22026 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22028         PR rtl-optimization/68796
22029         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
22030         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
22031         and QImode comparisons against zero with CC_NZmode.
22032         * config/aarch64/iterators.md (short_mask): New mode_attr.
22034 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
22036         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
22037         (<avx512>_store<mode>_mask): Likewise.
22039 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
22040             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22042         PR rtl-optimization/68841
22043         * ifcvt.c (struct noce_if_info): Add orig_x field.
22044         (bbs_ok_for_cmove_arith): Add to_rename parameter.
22045         Don't record conflicts on to_rename if it's present.
22046         Allow memory destinations in sets.
22047         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
22048         blocks, passing orig_x to the checks.
22049         (noce_process_if_block): Set if_info->orig_x appropriately.
22051 2016-01-11  Tom de Vries  <tom@codesourcery.com>
22053         PR tree-optimization/69069
22054         * tree-parloops.c (create_parallel_loop): Add missing phi args.
22056 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
22058         PR rtl-optimization/68920
22059         * config/i386/i386.c (ix86_option_override_internal): Restrict number
22060         of conditional moves for  RTL if-conversion to 1 for
22061         TARGET_ONE_IF_CONV_INSN.
22062         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
22063         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
22064         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
22065         parameter to restirct number of conditional moves for
22066         RTL if-conversion.
22067         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
22068         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
22069         conditionl moves.
22071 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
22073         PR bootstrap/69123
22074         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
22075         onepart vars.  Fix typo in comment.  Fix reversed condition in
22076         unshare test.
22077         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
22079         PR bootstrap/69123
22080         * var-tracking.c (dump_onepart_variable_differences): New.
22081         (dataflow_set_different): If a detailed dump is requested,
22082         delay early returns and dump differences between onepart
22083         variables present before and after, and added variables.
22085 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
22087         PR target/69010
22088         * expr.c (expand_expr_real_1): For boolean vector constants
22089         with a scalar mode use const_scalar_mask_from_tree.
22090         (const_scalar_mask_from_tree): New.
22091         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
22092         assigned to a mask type to handle constants.
22094 2016-01-11  Martin Jambor  <mjambor@suse.cz>
22096         PR ipa/69044
22097         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
22098         useless parameters if we cannot change function signature.
22100 2016-01-11  Martin Jambor  <mjambor@suse.cz>
22102         PR ipa/66616
22103         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
22104         flag.
22106 2016-01-11  Tom de Vries  <tom@codesourcery.com>
22108         PR tree-optimization/69109
22109         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
22110         latch with phi.
22112 2016-01-11  Tom de Vries  <tom@codesourcery.com>
22114         PR tree-optimization/69108
22115         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
22116         res is not used in a phi.
22118 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
22120         PR 67425
22121         * common.opt (frandom-seed): Fix parameter name.
22122         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
22124 2016-01-11  Tom de Vries  <tom@codesourcery.com>
22126         PR tree-optimization/69058
22127         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
22128         not supported.
22130 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
22132         * config/arc/arc.opt (mdiv-rem): Add period to the end.
22133         (mcode-density): Likewise.
22135 2016-01-10  Tom de Vries  <tom@codesourcery.com>
22137         PR tree-optimization/69062
22138         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
22139         (parallelize_loops): Don't paralelize loop that has phi with address
22140         arg.
22142 2016-01-10  Tom de Vries  <tom@codesourcery.com>
22144         PR tree-optimization/69039
22145         * tree-parloops.c (try_create_reduction_list): Only allow single exit
22146         phi for reduction.
22148 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
22150         PR middle-end/68743
22151         * match.pd: Require target has function_c99_misc before doing
22152         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
22154 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
22156         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
22157         use GMPINC.
22158         * configure: Regenerate.
22160 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
22162         PR middle-end/50865
22163         PR tree-optimization/69097
22164         * fold-const.h (expr_not_equal_to): New prototype.
22165         * fold-const.c: Include stringpool.h and tree-ssanames.h.
22166         (expr_not_equal_to): New function.
22167         * match.pd (X % -Y is the same as X % Y): Don't optimize
22168         unless X is known not to be equal to minimum or Y is known
22169         not to be equal to -1.
22170         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
22171         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
22172         (simplify_stmt_using_ranges): Adjust caller.
22173         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
22174         substitute_and_fold.
22176 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
22178         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
22179         w/o DECL_NAME.
22181 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
22183         PR tree-optimization/69167
22184         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
22185         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
22186         ops[0] comparison.
22187         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
22189 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
22190             Richard Biener  <rguenther@suse.de>
22192         PR tree-optimization/68707
22193         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
22194         instances that can be handled via vect_load_lanes.
22196 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
22198         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
22199         if we can't determine address equivalence.
22200         * alias.c (compare_base_decl): Update for changed return value of
22201         symtab_node::equal_address_to.
22203 2016-01-08  Jason Merrill  <jason@redhat.com>
22205         PR c++/68983
22206         PR c++/67557
22207         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
22208         * expr.c (store_field): Not here.
22209         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
22210         call with TREE_ADDRESSABLE type.
22211         * tree-cfg.c (verify_gimple_call): Adjust.
22213 2016-01-08  Olivier Hainque  <hainque@adacore.com>
22215         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
22216         libc_internal.
22218 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
22220         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
22221         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
22222         (reduc_smin_v2sf): Rename to...
22223         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
22224         (reduc_splus_v2sf): Rename to...
22225         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
22227 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
22229         PR tree-optimization/69162
22230         * gimplify.c (gimplify_va_arg_expr): Encode original type of
22231         valist argument in another argument.
22232         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
22233         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
22234         to determine the va_list type, build a MEM_REF instead of
22235         build_fold_indirect_ref.
22237         PR tree-optimization/69172
22238         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
22239         gimple_build.
22241 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22243         PR tree-optimization/67781
22244         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
22245         and cmpnop in two steps: first the ones not accessed in original
22246         gimple expression in a endian independent way and then the ones not
22247         accessed in the final result in an endian-specific way.
22249 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
22251         PR tree-optimization/69083
22252         * tree-vect-slp.c (vect_get_constant_vectors): For
22253         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
22254         element type.  If op is fold_convertible_p to vector_type's element
22255         type, use NOP_EXPR instead of VCE.
22257 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
22259         PR rtl-optimization/67778
22260         PR rtl-optimization/68634
22261         PR rtl-optimization/68909
22262         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
22263         block from the stack until done with it.  Remove a superfluous
22264         bitmap set.  Remove a superfluous bitmap test.
22266 2016-01-07  Martin Sebor  <msebor@redhat.com>
22268         PR c/68966
22269         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
22270         constraint on the type of arguments.
22272 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
22274         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
22275         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
22276         unaligned_access on the gcc_options set.
22277         * config/arm/arm.c (arm_option_override_internal): Use
22278         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
22280 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
22282         PR target/69140
22283         * config/i386/i386.c (ix86_frame_pointer_required): Enable
22284         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
22286 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
22288         Revert
22289         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
22291         PR target/69140
22292         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
22293         depending on frame_pointer_needed before remaining integer and SSE
22294         registers are saved.
22296 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
22298         PR 1078
22299         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
22301 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
22303         PR target/69171
22304         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
22305         Use the "xBm" constraint.
22306         (float<sseintvecmodelower><mode>2<mask_name><round_name):
22307         Likewise.
22308         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
22309         (sse_cvtsi2ssq<round_name>): Likewise.
22310         (sse_cvtss2si<round_name>): Likewise.
22311         (sse_cvtss2siq<round_name>): Likewise.
22312         (sse2_cvtsi2sdq<round_name>): Likewise.
22313         (sse2_cvtsd2si<round_name>): Likewise.
22314         (sse2_cvtsd2siq<round_name>): Likewise.
22315         * config/i386/subst.md (round_nimm_scalar_predicate): New
22316         predicate.
22318 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
22320         PR middle-end/67639
22321         * varasm.c (make_decl_rtl): Mark invalid register vars as
22322         DECL_EXTERNAL.
22324         PR rtl-optimization/66206
22325         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
22326         All callers changed.
22328 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
22330         PR tree-optimization/69141
22331         * tree-ssa-pre.c: Include langhooks.h.
22332         (eliminate_dom_walker::before_dom_children): Use
22333         lang_hooks.decl_printable_name instead of
22334         cgraph_node::get ()->name ().
22336         PR middle-end/68960
22337         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
22338         it and DECL_ALIGN too.
22340 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
22342         * config/mips/mips-ftypes.def: Sort to lexicographical order.
22344 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
22346         PR target/69140
22347         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
22348         depending on frame_pointer_needed before remaining integer and SSE
22349         registers are saved.
22351 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22353         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
22354         mode iterator with VSX_M2.
22355         (*p9_vecstore_<mode>): Likewise.
22356         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
22357         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
22358         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
22359         (define_split for VSX_LE128 stores): Likewise.
22360         (define_peephole2 for TImode LE swaps): Likewise.
22361         (define_split for VSX_LE128 post-reload stores): Likewise.
22363 2016-01-06  Marek Polacek  <polacek@redhat.com>
22365         PR sanitizer/69099
22366         * convert.c (convert_to_integer_1): Adjust call to
22367         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
22368         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
22369         EXPR instead of ARG.
22370         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
22372 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
22374         PR 1078
22375         * doc/extend.texi (RL78 Variable Attributes): New section.
22377 2016-01-05  Marek Polacek  <polacek@redhat.com>
22379         PR c/69104
22380         * builtins.c (get_memmodel): Use expansion point location rather than
22381         the input location.  Call warning_at rather than warning.
22382         (expand_builtin_atomic_compare_exchange): Likewise.
22383         (expand_builtin_atomic_load): Likewise.
22384         (expand_builtin_atomic_store): Likewise.
22385         (expand_builtin_atomic_clear): Likewise.
22387 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
22389         PR target/68991
22390         * config/i386/i386.c (ix86_expand_vector_logical_operator):
22391         Replace nonimmediate_operand with vector_operand.
22392         * config/i386/predicates.md (vector_operand): New predicate.
22393         (general_vector_operand): Replace nonimmediate_operand with
22394         vector_operand.
22395         * config/i386/sse.md: Replace nonimmediate_operand with
22396         vector_operand and m constraint with Bm constraint on SSE
22397         patterns with 16-byte memory operand.
22398         * config/i386/subst.md (round_nimm_predicate): Replace
22399         nonimmediate_operand with vector_operand.
22400         (round_saeonly_nimm_predicate): Likewise.
22401         (round_saeonly_nimm_scalar_predicate): New.
22403 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
22405         PR target/68991
22406         * config/i386/constraints.md (Bm): New constraint.
22407         * config/i386/predicates.md (vector_memory_operand): New
22408         predicate.
22409         * config/i386/sse.md: Replace xm with xBm in plusminus and
22410         any_logic patterns.
22412 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
22414         PR 1078
22415         * doc/extend.texi (V850 Function Attributes): New section.
22416         (V850 Variable Attributes): New section.
22418 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
22420         PR 1078
22421         * doc/extend.texi (MicroBlaze Function Attributes): Document
22422         interrupt_handler and fast_interrupt attributes.
22424 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
22426         PR other/60465
22427         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
22428         for local symbolic operands.
22429         * config/ia64/predicates.md (local_symbolic_operand64): New
22430         predicate.
22432 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22434         PR rtl-optimization/68651
22435         * combine.c (combine_simplify_rtx): Canonicalize x + x into
22436         x << 1.
22438 2016-01-05  Nathan Sidwell  <nathan@acm.org>
22440         * alias.c (compare_base_decls): Use symtab_node::get.
22442 2016-01-05  Nick Clifton  <nickc@redhat.com>
22444         PR target/68770
22445         * ira-costs.c (copy_cost): Initialise the t_icode field of the
22446         secondary_reload_info structure.
22448         PR target/66655
22449         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
22450         decls if weak support is available.
22452 2016-01-04  Martin Sebor  <msebor@redhat.com>
22454         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
22456 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
22458         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
22459         OPTION_MASK_P9_DFORM.
22461         * config/rs6000/constraints.md (wo constraint): New constraint for
22462         ISA 3.0 (power9).
22464         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
22465         for wo constraint.
22466         (rs6000_init_hard_regno_mode_ok): Likewise.
22468         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
22469         wo constraint.
22471         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
22472         expanders not to have constraints.  Add support for ISA 3.0 xxperm
22473         instruction.  Add support for fusing xxlor with xxperm.
22474         (altivec_vperm_<mode>_internal): Likewise.
22475         (altivec_vperm_v8hiv16qi): Likewise.
22476         (altivec_vperm_<mode>v16q): Likewise.
22477         (altivec_vperm_<mode>_uns): Likewise.
22478         (vperm_v8hiv4si): Likewise.
22479         (vperm_v16qiv8hi): Likewise.
22481         * doc/md.texi (RS/6000 constraints): Document wo constraint.
22483 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
22485         Update copyright years.
22487         * gcc.c (process_command): Update copyright notice dates.
22488         * gcov-dump.c (print_version): Ditto.
22489         * gcov.c (print_version): Ditto.
22490         * gcov-tool.c (print_version): Ditto.
22491         * gengtype.c (create_file): Ditto.
22492         * doc/cpp.texi: Bump @copying's copyright year.
22493         * doc/cppinternals.texi: Ditto.
22494         * doc/gcc.texi: Ditto.
22495         * doc/gccint.texi: Ditto.
22496         * doc/gcov.texi: Ditto.
22497         * doc/install.texi: Ditto.
22498         * doc/invoke.texi: Ditto.
22500 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
22502         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
22503         modes larger than TImode as TImode if NEON is not enabled.
22505 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
22507         PR target/69100
22508         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
22509         mode for %f0-%f31 only if TARGET_FPU.
22511 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
22513         PR target/69072
22514         * config/sparc/sparc.c (scan_record_type): Take into account subfields
22515         to compute the PACKED_P predicate.
22516         (function_arg_record_value): Minor tweaks.
22518 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22520         * doc/install.texi (--with-multilib-list): Describe the meaning of the
22521         option for arm*-*-* targets.
22523 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
22525         * doc/extend.texi (Common Function Attributes): Move docs for
22526         MSP430-specific attributes to....
22527         (MSP430 Function Attributes): ...here.  Delete the redundant
22528         entries and copy-edit the remaining text.
22529         (MSP430 Variable Attributes): Use uniform format for index
22530         entries and add a cross-reference to the corresponding function
22531         attribute docs.
22533 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
22535         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
22536         -finite-math typo.
22537         (x86 Options): Likewise.
22539 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
22541         PR 1078
22543         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
22544         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
22545         to corresponding attribute.
22547 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
22549         * doc/extend.texi (Common Function Attributes) <noplt>: Move
22550         to correct alphabetization of table.  Copy-edit and correct
22551         markup.
22552         <stack_protect>: Likewise.
22553         <target_clones>: Likewise.
22554         <simd>: Likewise.
22555         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
22556         Correct punctuation.
22557         (Code Gen Options) <-fno-plt>: Copy-edit.
22559 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22561         PR target/68917
22562         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
22563         SI values.  Explicitly convert SI to DI and vice-versa.
22565 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
22567         PR tree-optimization/69070
22568         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
22569         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
22571         PR sanitizer/69055
22572         * ubsan.c (ubsan_instrument_float_cast): Call
22573         initialize_sanitizer_builtins.
22575         PR target/69015
22576         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
22578 Copyright (C) 2016 Free Software Foundation, Inc.
22580 Copying and distribution of this file, with or without modification,
22581 are permitted in any medium without royalty provided the copyright
22582 notice and this notice are preserved.