2016-10-06 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blobcf7505c41c1f78a4ba1ed637f6a9d0748b93f4cb
1 2016-10-06  Richard Biener  <rguenther@suse.de>
3         PR tree-optimization/77855
4         * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
5         instead of removing the current item while iterating over the set
6         which is not safe.
8 2016-10-06  James Clarke  <jrtc27@jrtc27.com>
9             Eric Botcazou  <ebotcazou@adacore.com>
11         PR target/77759
12         * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
13         (classify_registers): Don't set it
14         (function_arg_slotno): Don't initialize and test it.  Tidy up.
16 2016-10-06  Richard Biener  <rguenther@suse.de>
18         PR tree-optimization/77839
19         * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
20         lattice transition.
22 2016-10-06  Martin Liska  <mliska@suse.cz>
24         * gcc.c: Set -fprofile-update=atomic when profiling is
25         enabled and -pthread is set.  Warn when one combines
26         -pthread and -fprofile-update=single for an app using
27         profiling code.
29 2016-10-06  Martin Liska  <mliska@suse.cz>
31         PR bootstrap/77788
32         * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
33         * gimple-ssa-strength-reduction.c (slsr_process_cast):
34         Initialize a pointer to NULL.
35         (slsr_process_copy): Likewise.
36         * input.c (location_get_source_line): Likewise.
37         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
39 2016-10-05  Andrew Senkevich  <andrew.senkevich@intel.com>
41         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
42         OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
43         (ix86_handle_option): Deleted handle of OPT_mpcommit.
44         * config.gcc: Deleted pcommitintrin.h
45         * config/i386/pcommitintrin.h: Deleted file.
46         * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
47         * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
48         detection.
49         * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
50         __PCOMMIT__.
51         * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
52         (PTA_PCOMMIT): Deleted define.
53         (ix86_option_override_internal): Deleted handle of option.
54         (ix86_valid_target_attribute_inner_p): Deleted pcommit.
55         * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
56         __builtin_ia32_pcommit): Deleted.
57         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
58         * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
59         (pcommit): Deleted instruction.
60         * config/i386/i386.opt: Mention -mpcommit deprecation.
61         * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
63 2016-10-05  Uros Bizjak  <ubizjak@gmail.com>
65         PR target/77874
66         * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
67         Remove wrong assert.
68         (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
69         Use <round_constraint> as operand 1 constraint.
71 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
73         PR sanitizer/66343
74         * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
75         (ubsan_instrument_float_cast): And not here.
77         PR sanitizer/66343
78         * ubsan.c (ubsan_ids): New GTY(()) array.
79         (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
80         instead of static local counters.
82 2016-10-05  Martin Sebor  <msebor@redhat.com>
84         PR bootstrap/77819
85         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
86         * config/linux.c (gnu_libc_printf_pointer_format): Remove.
87         * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
88         (default_printf_pointer_format): Define function.
89         * targhooks.c (linux_printf_pointer_format): Define new function.
90         * targhooks.h (linux_printf_pointer_format): Declare.
91         (gnu_libc_printf_pointer_format): Remove declaration.
93 2016-10-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
95         * fold-const.c (native_encode_real): Fix logic for selecting offset
96         to write to when BYTES_BIG_ENDIAN.
98 2016-10-05  Wilco Dijkstra  <wdijkstr@arm.com>
100         * builtins.c (fold_builtin_strchr): Remove function.
101         (fold_builtin_strrchr): Likewise.
102         (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
103         * gimple-fold.c (target_char_cst_p): New function.
104         (gimple_fold_builtin_strchr) Add more foldings.
105         (gimple_fold_builtin): Add index, strrchr, rindex cases.
107 2016-10-05  Richard Biener  <rguenther@suse.de>
109         PR middle-end/77863
110         * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
111         capture ids in c-exprs.
113 2016-10-05  Richard Biener  <rguenther@suse.de>
115         PR middle-end/77826
116         * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
117         with types_match for GIMPLE code gen to handle type mismatched
118         constants properly.
119         (dt_operand::gen): Adjust.
120         * match.pd ((X /[ex] A) * A -> X): Properly handle converted
121         and constant A.
123 2016-10-05  Richard Biener  <rguenther@suse.de>
125         * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
127 2016-10-05  Richard Biener  <rguenther@suse.de>
129         PR middle-end/77842
130         * genmatch.c (parser::parse_c_expr): Handle premature EOF.
132 2016-10-05  Pierre-Marie de Rodat  <derodat@adacore.com>
134         * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
135         version check to protect only DW_TAG_imported_module generation.
137 2016-10-05  Richard Biener  <rguenther@suse.de>
139         PR middle-end/55152
140         * match.pd (min(a,-a) -> -abs(a)): New pattern.
142 2016-10-04  Ian Lance Taylor  <iant@golang.org>
144         * explow.c (allocate_dynamic_stack_space): Call
145         do_pending_stack_adjust before handling flag_split_stack.
147 2016-10-04  David Malcolm  <dmalcolm@redhat.com>
149         * genattrtab.c (make_internal_attr): Supply dummy column number to
150         file_location ctor.
151         (main): Likewise.
152         * genoutput.c (init_insn_for_nothing): Likewise.
153         * gensupport.c (add_define_attr): Likewise.
154         * read-md.c (message_at_1): Print column number.
155         (fatal_with_file_and_line): Likewise.
156         (rtx_reader::read_char): Track column numbers.
157         (rtx_reader::unread_char): Likewise.
158         (rtx_reader::rtx_reader): Initialize m_read_md_colno.
159         (rtx_reader::handle_include): Stash and restore m_read_md_colno.
160         (rtx_reader::handle_file): Initialize m_read_md_colno.
161         (rtx_reader::get_current_location): Supply column number to
162         file_location ctor.
163         * read-md.h (struct file_location): Add field "colno".
164         (file_location::file_location): Likewise.
165         (rtx_reader::get_colno): New accessor.
166         (rtx_reader::m_read_md_colno): New field.
167         (rtx_reader::m_last_line_colno): New field.
169 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
171         * doc/extend.texi (Java Exceptions): Remove.
172         (java_interface): Remove.
174 2016-10-04  Doug Gilmore  <doug.gilmore@imgtec.com>
176         PR tree-optimization/77808
177         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
178         and addr are different before copying points-to information.
180 2016-10-04  Uros Bizjak  <ubizjak@gmail.com>
182         * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
183         * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
184         * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
185         of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
187 2016-10-04  Richard Biener  <rguenther@suse.de>
189         PR tree-optimization/77399
190         * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
191         verify the target can convert.
193 2016-10-04  Richard Biener  <rguenther@suse.de>
195         PR middle-end/77833
196         * explow.c (plus_constant): Verify the mode of the constant
197         pool offset before calling plus_constant.
199 2016-10-04  Richard Biener  <rguenther@suse.de>
201         PR middle-end/77407
202         * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
203         type support, mark with :C.
204         (X / -X -> -1): Mark with :C.
206 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
208         * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
209         * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
210         * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
211         * doc/tm.texi: Regenerated.
212         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
213         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
214         * config/darwin.h (JCR_SECTION_NAME): Remove.
215         * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
216         * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
217         * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
218         * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
219         * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
220         * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
222 2016-10-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
224         * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
225         between "because" and "param" in dump message in call to fprintf.
227 2016-10-03  Jeff Law  <law@redhat.com>
229         PR tree-optimization/71550
230         PR tree-optimization/71403
231         * tree-ssa-threadbackward.c: Include tree-vectorizer.h
232         (profitable_jump_thread_path): Also return boolean indicating if
233         the realized path will create an irreducible loop.
234         Remove loop depth tests from 71403.
235         (fsm_find_control_statement_thread_paths): Remove loop depth tests
236         from 71403.  If threading will create an irreducible loop, then
237         throw away loop iteration and related information.
239 2016-10-03  Uros Bizjak  <ubizjak@gmail.com>
241         * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
242         -Woverloaded-virtual checks for warning options.
243         * configure: Regenerate.
245 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
247         PR preprocessor/77699
248         * input.c (maybe_grow): Don't allocate one byte extra headroom.
249         (get_next_line): Return false on error.
250         (read_next_line): Removed, use get_next_line instead.
251         (read_line_num): Don't copy the line.
252         (location_get_source_line): Don't use static data.
253         (selftest::test_reading_source_line): Add more test cases.
255 2016-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
257         Revert
258         2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
260         * ifcvt.c (noce_try_avoid_const_materialization): New function.
261         (noce_process_if_block): Use it.
263 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
265         * doc/invoke.texi: Update -Wint-in-bool-context.
267 2016-10-02  Jakub Jelinek  <jakub@redhat.com>
269         * dwarf2out.c (output_fde, output_call_frame_info,
270         dwarf2out_do_cfi_startproc, set_indirect_string,
271         gen_internal_sym, output_die, output_line_info): Use
272         MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
273         ASM_GENERATE_INTERNAL_LABEL output.
275 2016-10-01  Richard Biener  <rguenther@suse.de>
277         PR middle-end/77798
278         * genmatch.c (get_operand_type): Add operand position arg
279         and handle COND_EXPR comparison operand with fixed boolean_type_node.
280         (expr::gen_transform): Adjust.
281         (dt_simplify::gen_1): Likewise.
283 2016-10-01  Jakub Jelinek  <jakub@redhat.com>
285         * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
286         comments.  Simplify asserts, remove unnecessary conditions.
287         Formatting fixes.
288         (*<code><mode>3): Likewise.
290 2016-09-30  Jakub Jelinek  <jakub@redhat.com>
292         * doc/invoke.texi (-Wregister): Document.
294 2016-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
296         * configure.ac: Split CHECKING_P into CHECKING_P and
297         ENABLE_EXTRA_CHECKING.
298         * configure: Regenerated.
299         * config.in: Adjust commment of CHECKING_P.  Add ENABLE_EXTRA_CHECKING.
300         * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
302 2016-09-30  Prasad Ghangal  <prasad.ghangal@gmail.com>
304         PR other/31566
305         * gcc.c (process_command): For @filename handling, output
306         the correct name if the file does not exist.
308 2016-09-30  Marek Polacek  <polacek@redhat.com>
310         * config/aarch64/aarch64-simd.md: Adjust fall through comments.
311         * config/alpha/predicates.md: Likewise.
313 2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
315         * ifcvt.c (noce_try_avoid_const_materialization): New function.
316         (noce_process_if_block): Use it.
318 2016-09-30  Martin Liska  <mliska@suse.cz>
320         * doc/invoke.texi: Document asan-use-after-return that
321         it's disabled by default in runtime.
323 2016-09-30  Richard Biener  <rguenther@suse.de>
325         * tree-vrp.c (intersect_ranges): If we failed to handle
326         the intersection choose a constant singleton range if available.
328 2016-09-30  Richard Biener  <rguenther@suse.de>
330         PR tree-optimization/77399
331         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
332         float <-> int conversions.
334 2016-09-30  Alan Modra  <amodra@gmail.com>
336         * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
338 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
340         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
341         ext_level before calling CPUID with 0x80000008.
342         Simplify xgetbv checks.
344 2016-09-29  David Malcolm  <dmalcolm@redhat.com>
346         * Makefile.in (OBJS): Add print-rtl-function.o.
347         * print-rtl-function.c: New file.
348         * print-rtl.h (print_rtx_function): New decl.
350 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
352         PR target/77756
353         * config/i386/cpuid.h (__get_cpuid_count): New.
354         (__get_cpuid): Rename __level to __leaf.
356 2016-09-29  Marek Polacek  <polacek@redhat.com>
358         * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
360 2016-09-29  Bernd Schmidt  <bschmidt@redhat.com>
362         * builtins.c (expand_builtin_memcmp): don't swap args unless
363         result is only being compared with zero.
365 2016-09-29  Marek Polacek  <polacek@redhat.com>
367         * dwarf2out.c (loc_descriptor): Add fall through comment.
368         (add_const_value_attribute): Likewise.
370 2016-09-29  Matthew Wahab  <matthew.wahab@arm.com>
372         * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
373         with "v6t2".  Move "arch" attribute above "pool_range".
374         * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
375         with "v6t2".
376         (*thumb2_movhi_vfp): Likewise.
377         (*arm_movhi_fp16): Likewise.
378         (*thumb2_movhi_fp16): Likewise.
379         (*arm_movsi_vfp): Remove "arch" attribute.
380         (*thumb2_movsi_vfp): Likewise.
382 2016-09-29  Martin Liska  <mliska@suse.cz>
384         * doc/extend.texi: Remove limitation of Objective C for
385         __attribute__((constructor)) and __attribute__((destructor)).
387 2016-09-29  Richard Biener  <rguenther@suse.de>
389         PR tree-optimization/77768
390         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
391         Handle stores to readonly memory when removing redundant stores.
393 2016-09-29  Richard Biener  <rguenther@suse.de>
395         PR middle-end/77407
396         * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
397         X / -X -> -1 simplifications.
399 2016-09-29  Richard Biener  <rguenther@suse.de>
401         PR middle-end/55152
402         * match.pd: Add max(a,-a) -> abs(a) pattern.
403         * tree-ssa-phiopt.c (minmax_replacement): Disable for
404         HONOR_SIGNED_ZEROS types.
406 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
408         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
409         * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
411 2016-09-29  Richard Biener  <rguenther@suse.de>
413         * tree-vrp.c (set_defs_to_varying): New helper avoiding
414         writing to vr_const_varying.
415         (vrp_initialize): Call it.
416         (vrp_visit_stmt): Likewise.
417         (evrp_dom_walker::before_dom_children): Likewise.
419 2016-09-29  Richard Biener  <rguenther@suse.de>
421         * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
422         constructors with vector elements.
424 2016-09-29  Richard Biener  <rguenther@suse.de>
426         PR tree-optimization/77768
427         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
428         with stores to a place we know has a constant value.
430 2016-09-29  Alan Modra  <amodra@gmail.com>
432         * config/rs6000/sysv4.opt (mgnu-attribute): New option.
433         * doc/invoke.texi: Document it.
434         * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
435         (rs6000_passes_float): Comment.
436         (rs6000_passes_long_double): New static var.
437         (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
438         (init_cumulative_args): Set up to emit fp .gnu_attribute for
439         ELF 64-bit ABIs as well as 32-bit ELF.  Correct rs6000_passes_float
440         to include fp values returned in vectors.
441         Set rs6000_passes_long_double.
442         (rs6000_function_arg_advance_1): Likewise for function args.
443         (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
444         and SPE.  Emit long double tag value too.
445         (rs6000_opt_vars): Add gnu-attr.
446         * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
447         * configure: Regenerate.
448         * config.in: Regenerate.
450 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
452         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
453         of 0 < x.
454         (format_floating, format_string, format_directive,
455         get_destination_size, pass_sprintf_length::handle_gimple_call):
456         Likewise.
458 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
460         * gimple-ssa-sprintf.c: Fix comment formatting.
461         (format_integer): Use is_gimple_assign.
462         (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
463         and gimple_call_fndecl.  Reorder case BUILT_IN_SPRINTF_CHK.  Fix up
464         BUILT_IN_SNPRINTF_CHK comment.  Replace "to to" with "to" in comment.
465         (pass_sprintf_length::execute): Use is_gimple_call.
467 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
469         * gimple-fold.c (gimple_fold_builtin): After failing to fold
470         strchr, also try the generic folding.
472 2016-09-28  Martin Sebor  <msebor@redhat.com>
474         PR c/77762
475         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
476         Fix typos.
478 2016-09-28  Martin Sebor  <msebor@redhat.com>
480         PR middle-end/77683
481         * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
482         length modifier is not expected.
483         (format_floating): Ignore l length modifier and fail gracefuly
484         when it isn't one of the other expected ones.
486 2016-09-28  Martin Sebor  <msebor@redhat.com>
488         PR bootstrap/77753
489         * varasm.c (assemble_addr_to_section): Increase local buffer size.
491 2016-09-27  Richard Biener  <rguenther@suse.de>
493         * dwarf2out.c (cu_die_list): New global.
494         (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs.  Add
495         main_comp_unit_die to cu_die_list if we created it.
496         Move break_out_includes ...
497         (dwarf2out_early_finish): ... here.  Push created CU DIEs onto
498         the cu_die_list.
500 2016-09-28  Richard Biener  <rguenther@suse.de>
502         * dwarf2out.c (struct die_struct): Add removed flag.
503         (lookup_type_die): If the DIE is marked as removed, clear
504         TYPE_SYMTAB_DIE and return NULL.
505         (lookup_decl_die): If the DIE is marked as removed, remove it
506         from the hash and return NULL.
507         (mark_removed): New helper.
508         (prune_unused_types_prune): Call it for removed DIEs.
509         (gen_subprogram_die): Move the premark_used_types call to after
510         DIEs for the functions scopes are generated.
511         (process_scope_var): Do not re-create pruned types or type decls.
512         Make sure to also re-parent type decls.
513         (dwarf2out_finish): Move unused type pruning and debug_types
514         handling ...
515         (dwarf2out_early_finish): ... here.
517 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
519         * config/arc/arc-c.c: New file.
520         * config/arc/arc-c.def: Likewise.
521         * config/arc/t-arc: Likewise.
522         * config.gcc: Include arc-c.o as c and cpp object.
523         * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
524         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
525         arc_cpu_cpp_builtins.
527 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
529         * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
530         (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
532 2016-09-28  Nathan Sidwell  <nathan@acm.org>
534         * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
535         printing.
537 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
539         PR tree-optimization/61056
540         * gimple-fold.c (gimple_fold_builtin_strchr):
541         New function to optimize strchr (s, 0) to strlen.
542         (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
544 2016-09-27  Robin Dapp  <rdapp@linux.vnet.ibm.com>
546         PR tree-optimization/77724
547         * tree-vect-loop-manip.c (create_intersect_range_checks_index):
548         Add tree_fits_shwi_p check.
550 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
552         * auto-inc-dec.c (try_merge): Remove break after return.
553         * cselib.c (autoinc_split): Likewise.
554         * explow.c (promote_mode): Likewise.
555         * fixed-value.c (fixed_arithmetic): Likewise.
556         * hsa.c (hsa_internal_fn::get_arity): Likewise.
557         * rtlanal.c (modified_between_p, modified_in_p): Likewise.
558         * trans-mem.c (get_attrs_for): Likewise.
559         * tree-if-conv.c (if_convertible_stmt_p): Likewise.
560         * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
561         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
562         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
563         * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
564         * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
565         * config/cris/cris.c (cris_op_str): Likewise.
566         * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
567         * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
569 2016-09-27  Nathan Sidwell  <nathan@codesourcery.com>
571         * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
572         IFN_GOACC_REDUCTION_CODES): New.
573         (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
574         ifn_goacc_reduction_kind): Use them.
575         * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
576         of internal functions, when applicable.
578 2016-09-27  Maciej W. Rozycki  <macro@imgtec.com>
580         * config/mips/constraints.md (d): Fix documentation.
581         * doc/md.texi (Machine Constraints): Update accordingly.
583 2016-09-27  Richard Biener  <rguenther@suse.de>
585         * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
586         cur_line_info_table initialization ...
587         (dwarf2out_assembly_start): ... here.
589 2016-09-27  Matthew Wahab  <matthew.wahab@arm.com>
591         * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
592         * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
593         (*thumb2_movhi_vfp): Likewise.
594         (*arm_movhi_fp16): Remove predication operand from VMOV.F16
595         template.  Expand predicable attribute to mark VMOV.F16 as not
596         predicable.  Add "arch" attribute.
597         (*thumb2_movhi_fp16): Likewise.
598         (*arm_movsi_vfp): Break a long line.  Add "arch" attribute.
599         (*thumb2_movsi_vfp): Add "arch" attribute.
601 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
603         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
604         VAR_DECL string.
606 2016-09-27  Marek Polacek  <polacek@redhat.com>
608         * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
609         comment.
611         * config/c6x/c6x.h: Adjust fall through comment.
612         * config/sh/sh.c (final_prescan_insn): Likewise.
613         * config/visium/visium.c (visium_expand_int_cstore): Likewise.
614         (visium_expand_fp_cstore): Likewise.
616 2016-09-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
618         * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
619         expected by -Wimplicit-fallthrough.
620         (thumb1_size_rtx_costs): Likewise.
621         (thumb2_reorg): Likewise.
622         (tls_mentioned_p): Add "Fall through" comment.
623         (thumb2_reorg): Likewise.
624         * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
625         comment form expected by -Wimplicit-fallthrough.
627 2016-09-27  Martin Liska  <mliska@suse.cz>
629         PR gcov-profile/46266
630         * input.h (RESERVED_LOCATION_P): New macro.
631         * profile.c (branch_prob): Use RESERVED_LOCATION_P and
632         instread of comparison with UNKNOWN_LOCATION.
634 2016-09-27  Richard Biener  <rguenther@suse.de>
636         PR tree-optimization/77745
637         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
638         When removing redundant stores make sure to check compatibility
639         of the TBAA state for downstream accesses.
640         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
641         value-numbering virtual operands for store matches.
643 2016-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
645         PR target/51244
646         * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
647         movrt patterns.  Match them before anything else in the SET case.
649 2016-09-27  Martin Liska  <mliska@suse.cz>
651         PR gcov-profile/7970
652         PR gcov-profile/16855
653         PR gcov-profile/44779
654         * coverage.c (build_gcov_exit_decl): New function.
655         (coverage_obj_init): Call the function and generate __gcov_exit
656         destructor.
657         * doc/gcov.texi: Document when __gcov_exit function is called.
659 2016-09-27  Marek Polacek  <polacek@redhat.com>
661         PR bootstrap/77751
662         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
663         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
664         -Wno-error instead of -Wno-implicit-fallthrough.
666 2016-09-27  Martin Liska  <mliska@suse.cz>
668         PR bootstrap/77749
669         * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
671 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
673         * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
674         * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
675         comments.  Remove break after return.
676         (ix86_fp_compare_code_to_integer, has_dispatch,
677         ix86_simd_clone_usable): Remove break after return.
679 2016-09-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
681         PR rlt-optimization/77714
682         * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
683         REG_EQUAL note.
685 2016-09-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
687         PR ipa/77677
688         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
689         extract_range_from_unary_expr to convert value_range.
690         * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
691         (extract_range_from_unary_expr): This.
692         * tree-vrp.h (extract_range_from_unary_expr): Declare.
694 2016-09-27  Segher Boessenkool  <segher@kernel.crashing.org>
696         * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
698 2016-09-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
700         * config/i386/i386.c (ix86_print_operand)
701         [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
702         * config/sparc/sparc.c (check_pic): Add fallthrough comment.
703         (epilogue_renumber): Likewise.
705 2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
707         PR middle-end/77719
708         * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
709         to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
711 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
713         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
714         is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
715         is_mm_seq_cst, is_mm_sync): Move to ...
716         * memmodel.h: This.  New file.
717         * builtins.c: Include memmodel.h.
718         * optabs.c: Likewise.
719         * tsan.c: Likewise.
720         * config/aarch64/aarch64.c: Likewise.
721         * config/alpha/alpha.c: Likewise.
722         * config/arm/arm.c: Likewise.
723         * config/i386/i386.c: Likewise.
724         * config/ia64/ia64.c: Likewise.
725         * config/mips/mips.c: Likewise.
726         * config/rs6000/rs6000.c: Likewise.
727         * config/sparc/sparc.c: Likewise.
728         * genconditions.c: Include memmodel.h in generated file.
729         * genemit.c: Likewise.
730         * genoutput.c: Likewise.
731         * genpeep.c: Likewise.
732         * genpreds.c: Likewise.
733         * genrecog.c: Likewise.
735 2016-09-26  David Malcolm  <dmalcolm@redhat.com>
737         * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
738         "c" instead when parsing characters.  Move operand parsing into...
739         (read_rtx_operand): ...this new function, renaming "i" to "idx",
740         and tightening the scope of various locals.
742 2016-09-26  Liu Hao  <lh_mouse@126.com>
744         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
746 2016-09-26  Marek Polacek  <polacek@redhat.com>
748         * system.h: Use __has_attribute to check whether the fallthrough
749         attribute is supported.
751 2016-09-26  Marek Polacek  <polacek@redhat.com>
753         * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
754         gimple_call_internal_p.
755         * ipa-split.c (find_return_bb): Likewise.
756         (execute_split_functions): Likewise.
757         * omp-low.c (dump_oacc_loop_part): Likewise.
758         (oacc_loop_xform_head_tail): Likewise.
759         * predict.c (predict_loops): Likewise.
760         * sanopt.c (pass_sanopt::execute): Likewise.
761         * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
762         * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
763         * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
764         (expand_ifn_va_arg_1): Use gimple_call_internal_p.
765         (expand_ifn_va_arg): Likewise.
766         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
767         (optimize_mask_stores): Likewise.
768         * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
769         (vect_transform_stmt): Likewise.
770         * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
771         * tsan.c (instrument_memory_accesses): Likewise.
773 2016-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
774             Alexander Monakov  <amonakov@ispras.ru>
776         * regrename.c (rename_chains): Check
777         HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
778         HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
779         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
781 2016-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
783         * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
784         (s390_sched_score): Likewise.
786 2016-09-26  Martin Liska  <mliska@suse.cz>
788         * doc/gcov.texi: Update program output of gcov tool.
790 2016-09-26  Martin Liska  <mliska@suse.cz>
792         PR gcov-profile/23332
793         * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
794         * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
795         * value-prof.c (dump_histogram_value): Do not handle
796         HIST_TYPE_CONST_DELTA.
797         (stream_in_histogram_value): Likewise.
798         (gimple_find_values_to_profile): Likewise.
799         * value-prof.h (enum hist_type): Likewise.
801 2016-09-26  Martin Liska  <mliska@suse.cz>
803         * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
804         from default sanitize recover values.
805         * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
806         -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
807         * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
808         consistent.
809         * opts.c (finish_options): Do a generic loop over options
810         that can be recovered.
811         (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
812         SANITIZE_RETURN.
813         (common_handle_option): Likewise.
814         * opts.h: Declare can_recover to sanitizer_opts_s.
816 2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>
818         * target.def(elf_flags_numeric): Change documentation to present tense.
819         * doc/tm.texi: Regenerate.
821 2016-09-26  Marek Polacek  <polacek@redhat.com>
823         PR c/7652
824         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
825         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
826         -Wno-switch-fallthrough.
827         * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
828         (expand_builtin): Likewise.
829         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
830         * convert.c (convert_to_real_1): Likewise.
831         (convert_to_integer_1): Likewise.
832         * final.c (output_alternate_entry_point): Likewise.
833         * genattrtab.c (make_canonical): Likewise.
834         (write_test_expr): Likewise.
835         * genpreds.c (validate_exp): Likewise.
836         * gimple-ssa-strength-reduction.c
837         (find_candidates_dom_walker::before_dom_children): Likewise.
838         * godump.c (go_format_type): Likewise.
839         * reload1.c (elimination_effects): Likewise.
840         * resource.c (mark_referenced_resources): Likewise.
841         (mark_set_resources): Likewise.
842         * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
843         * varasm.c (output_addressed_constants): Likewise.
845 2016-09-26  Marek Polacek  <polacek@redhat.com>
847         PR c/7652
848         * common.opt (Wimplicit-fallthrough): New option.
849         * doc/extend.texi: Document statement attributes and the fallthrough
850         attribute.
851         * doc/invoke.texi: Document -Wimplicit-fallthrough.
852         * gimple.h (gimple_call_internal_p): New function.
853         * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
854         (struct label_entry): New struct.
855         (find_label_entry): New function.
856         (case_label_p): New function.
857         (collect_fallthrough_labels): New function.
858         (last_stmt_in_scope): New function.
859         (should_warn_for_implicit_fallthrough): New function.
860         (warn_implicit_fallthrough_r): New function.
861         (maybe_warn_implicit_fallthrough): New function.
862         (expand_FALLTHROUGH_r): New function.
863         (expand_FALLTHROUGH): New function.
864         (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
865         expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
866         (gimplify_label_expr): New function.
867         (gimplify_case_label_expr): Set location.
868         (gimplify_expr): Call gimplify_label_expr.
869         * internal-fn.c (expand_FALLTHROUGH): New function.
870         * internal-fn.def (FALLTHROUGH): New internal function.
871         * langhooks.c (lang_GNU_OBJC): New function.
872         * langhooks.h (lang_GNU_OBJC): Declare.
873         * system.h (gcc_fallthrough): Define.
874         * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
875         * tree.h (FALLTHROUGH_LABEL_P): Define.
877 2016-09-26  Richard Biener  <rguenther@suse.de>
879         * dwarf2out.c (stripattributes): Remove unused function.
880         (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
881         Push dwarf_split_debug_info handling into init_sections_and_labels.
882         (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
883         (DEBUG_MACRO_SECTION_FLAGS): Remove.
884         (debug_macinfo_section_name): New global.
885         (output_macinfo): Use debug_macinfo_section_name.
886         (init_sections_and_labels): Split out section and label generation
887         from dwarf2out_init.  Set debug_macinfo_section_name.
888         (dwarf2out_init): Move text section label generation and emission
889         to ...
890         (dwarf2out_assembly_start): ... here.
891         (dwarf2out_finish): Call init_sections_and_labels before DWARF
892         output starts.
894 2016-09-26  Richard Biener  <rguenther@suse.de>
896         PR debug/77692
897         * cgraphunit.c (analyze_functions): Before early removing
898         global vars calls the late_global_decl debug handler mark
899         the variable as readonly.
901 2016-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
903         PR target/51244
904         * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
905         (sh_rtx_costs): Handle SET of movt and movrt patterns.
906         * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
907         declare new overloads.
908         * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
909         operand.
911 2016-09-24  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
913         * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
914         Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
916 2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
918         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
919         * configure: Regenerate.
921 2016-09-24  Marek Polacek  <polacek@redhat.com>
923         PR c/77490
924         * doc/invoke.texi: Document -Wbool-operation.
926 2016-09-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
928         * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
929         * config/rs6000/rs6000.c (expand_block_compare): New function used by
930         cmpmemsi pattern to do builtin expansion of memcmp ().
931         (compute_current_alignment): Add helper function for
932         expand_block_compare used to compute alignment as the compare proceeds.
933         (select_block_compare_mode): Used by expand_block_compare to select
934         the mode used for reading the next chunk of bytes in the compare.
935         (do_load_for_compare): Used by expand_block_compare to emit the load
936         insns for the compare.
937         (rs6000_emit_dot_insn): Moved this function to avoid a forward
938         reference from expand_block_compare ().
939         * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
940         prototype for this function.
941         * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
942         target option for controlling how much code inline expansion of
943         memcmp() will be allowed to generate.
945 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
947         * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
948         hook_bool_mode_false, hook_bool_mode_true,
949         hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
950         hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
951         hook_bool_const_rtx_insn_const_rtx_insn_true,
952         hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
953         hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
954         hook_bool_const_tree_hwi_hwi_const_tree_false,
955         hook_bool_const_tree_hwi_hwi_const_tree_true,
956         default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
957         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
958         hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
959         hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
960         hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
961         hook_bool_const_tree_true, hook_bool_tree_tree_false,
962         hook_bool_tree_tree_true, hook_bool_tree_bool_false,
963         hook_bool_rtx_insn_true, hook_bool_rtx_false,
964         hook_bool_uintp_uintp_false,
965         hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
966         hook_rtx_tree_int_null, hook_uint_mode_0,
967         hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
968         hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
969         hook_constcharptr_const_rtx_insn_null,
970         hook_constcharptr_const_tree_const_tree_null,
971         hook_constcharptr_int_const_tree_null,
972         hook_constcharptr_int_const_tree_const_tree_null,
973         hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
974         hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
975         ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
977         * vec.h (vNULL): Extend comment to say = vNULL initialization
978         isn't needed for static vars.
980         * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
981         loop_nests, s_i_d, last_added_blocks): Remove unnecessary
982         = vNULL initialization of file scope vec.
983         * passes.c (pass_tab, enabled_pass_uid_range_tab,
984         disabled_pass_uid_range_tab): Likewise.
985         * haifa-sched.c (sched_luids, h_i_d): Likewise.
986         * tree-chkp-opt.c (check_infos): Likewise.
987         * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
989         * vec.h (vnull::operator vec): Add constexpr keyword for
990         C++11 and later.
992 2016-09-23  Doug Gilmore  <doug.gilmore@imgtec.com>
994         PR tree-optimization/77654
995         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
996         to duplicate_ssa_name_ptr_info.
998 2016-09-23  David Malcolm  <dmalcolm@redhat.com>
1000         PR preprocessor/77672
1001         * input.c (selftest::test_lexer_string_locations_simple): Update
1002         test to expect location information of the terminator character
1003         at the location of the final closing quote.
1004         (selftest::test_lexer_string_locations_hex): Likewise.
1005         (selftest::test_lexer_string_locations_oct): Likewise.
1006         (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
1007         (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
1008         (selftest::test_lexer_string_locations_ucn4): Likewise.
1009         (selftest::test_lexer_string_locations_ucn8): Likewise.
1010         (selftest::test_lexer_string_locations_u8): Likewise.
1011         (selftest::test_lexer_string_locations_utf8_source): Likewise.
1012         (selftest::test_lexer_string_locations_concatenation_1): Likewise.
1013         (selftest::test_lexer_string_locations_concatenation_2): Likewise.
1014         (selftest::test_lexer_string_locations_concatenation_3): Likewise.
1015         (selftest::test_lexer_string_locations_macro): Likewise.
1016         (selftest::test_lexer_string_locations_long_line): Likewise.
1018 2016-09-23  Richard Biener  <rguenther@suse.de>
1020         * tree-ssa-sccvn.c (visit_reference_op_call): Value number
1021         virtual definition to virtual use if the call devirtualizes
1022         to a const or pure function.
1023         (visit_use): Also visit calls we can devirtualize to a
1024         const or pure function.
1026 2016-09-23  Richard Biener  <rguenther@suse.de>
1028         PR tree-optimization/77697
1029         * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
1030         signal error if we have sth ternary or unhandled.
1032 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1034         * config/arm/arm_neon.h (vabd_f16): New.
1035         (vabdq_f16): New.
1036         (vabs_f16): New.
1037         (vabsq_f16): New.
1038         (vadd_f16): New.
1039         (vaddq_f16): New.
1040         (vcage_f16): New.
1041         (vcageq_f16): New.
1042         (vcagt_f16): New.
1043         (vcagtq_f16): New.
1044         (vcale_f16): New.
1045         (vcaleq_f16): New.
1046         (vcalt_f16): New.
1047         (vcaltq_f16): New.
1048         (vceq_f16): New.
1049         (vceqq_f16): New.
1050         (vceqz_f16): New.
1051         (vceqzq_f16): New.
1052         (vcge_f16): New.
1053         (vcgeq_f16): New.
1054         (vcgez_f16): New.
1055         (vcgezq_f16): New.
1056         (vcgt_f16): New.
1057         (vcgtq_f16): New.
1058         (vcgtz_f16): New.
1059         (vcgtzq_f16): New.
1060         (vcle_f16): New.
1061         (vcleq_f16): New.
1062         (vclez_f16): New.
1063         (vclezq_f16): New.
1064         (vclt_f16): New.
1065         (vcltq_f16): New.
1066         (vcltz_f16): New.
1067         (vcltzq_f16): New.
1068         (vcvt_f16_s16): New.
1069         (vcvt_f16_u16): New.
1070         (vcvt_s16_f16): New.
1071         (vcvt_u16_f16): New.
1072         (vcvtq_f16_s16): New.
1073         (vcvtq_f16_u16): New.
1074         (vcvtq_s16_f16): New.
1075         (vcvtq_u16_f16): New.
1076         (vcvta_s16_f16): New.
1077         (vcvta_u16_f16): New.
1078         (vcvtaq_s16_f16): New.
1079         (vcvtaq_u16_f16): New.
1080         (vcvtm_s16_f16): New.
1081         (vcvtm_u16_f16): New.
1082         (vcvtmq_s16_f16): New.
1083         (vcvtmq_u16_f16): New.
1084         (vcvtn_s16_f16): New.
1085         (vcvtn_u16_f16): New.
1086         (vcvtnq_s16_f16): New.
1087         (vcvtnq_u16_f16): New.
1088         (vcvtp_s16_f16): New.
1089         (vcvtp_u16_f16): New.
1090         (vcvtpq_s16_f16): New.
1091         (vcvtpq_u16_f16): New.
1092         (vcvt_n_f16_s16): New.
1093         (vcvt_n_f16_u16): New.
1094         (vcvtq_n_f16_s16): New.
1095         (vcvtq_n_f16_u16): New.
1096         (vcvt_n_s16_f16): New.
1097         (vcvt_n_u16_f16): New.
1098         (vcvtq_n_s16_f16): New.
1099         (vcvtq_n_u16_f16): New.
1100         (vfma_f16): New.
1101         (vfmaq_f16): New.
1102         (vfms_f16): New.
1103         (vfmsq_f16): New.
1104         (vmax_f16): New.
1105         (vmaxq_f16): New.
1106         (vmaxnm_f16): New.
1107         (vmaxnmq_f16): New.
1108         (vmin_f16): New.
1109         (vminq_f16): New.
1110         (vminnm_f16): New.
1111         (vminnmq_f16): New.
1112         (vmul_f16): New.
1113         (vmul_lane_f16): New.
1114         (vmul_n_f16): New.
1115         (vmulq_f16): New.
1116         (vmulq_lane_f16): New.
1117         (vmulq_n_f16): New.
1118         (vneg_f16): New.
1119         (vnegq_f16): New.
1120         (vpadd_f16): New.
1121         (vpmax_f16): New.
1122         (vpmin_f16): New.
1123         (vrecpe_f16): New.
1124         (vrecpeq_f16): New.
1125         (vrnd_f16): New.
1126         (vrndq_f16): New.
1127         (vrnda_f16): New.
1128         (vrndaq_f16): New.
1129         (vrndm_f16): New.
1130         (vrndmq_f16): New.
1131         (vrndn_f16): New.
1132         (vrndnq_f16): New.
1133         (vrndp_f16): New.
1134         (vrndpq_f16): New.
1135         (vrndx_f16): New.
1136         (vrndxq_f16): New.
1137         (vrsqrte_f16): New.
1138         (vrsqrteq_f16): New.
1139         (vrecps_f16): New.
1140         (vrecpsq_f16): New.
1141         (vrsqrts_f16): New.
1142         (vrsqrtsq_f16): New.
1143         (vsub_f16): New.
1144         (vsubq_f16): New.
1146 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1148         * config.gcc (extra_headers): Add arm_fp16.h
1149         * config/arm/arm_fp16.h: New.
1150         * config/arm/arm_neon.h: Include "arm_fp16.h".
1152 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1154         * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
1155         variants).
1156         (vmulf): New (v8hf, v4hf variants).
1157         (vfma): New (v8hf, v4hf variants).
1158         (vfms): New (v8hf, v4hf variants).
1159         (vsub): New (v8hf, v4hf variants).
1160         (vcage): New (v8hf, v4hf variants).
1161         (vcagt): New (v8hf, v4hf variants).
1162         (vcale): New (v8hf, v4hf variants).
1163         (vcalt): New (v8hf, v4hf variants).
1164         (vceq): New (v8hf, v4hf variants).
1165         (vcgt): New (v8hf, v4hf variants).
1166         (vcge): New (v8hf, v4hf variants).
1167         (vcle): New (v8hf, v4hf variants).
1168         (vclt): New (v8hf, v4hf variants).
1169         (vceqz): New (v8hf, v4hf variants).
1170         (vcgez): New (v8hf, v4hf variants).
1171         (vcgtz): New (v8hf, v4hf variants).
1172         (vcltz): New (v8hf, v4hf variants).
1173         (vclez): New (v8hf, v4hf variants).
1174         (vabd): New (v8hf, v4hf variants).
1175         (vmaxf): New (v8hf, v4hf variants).
1176         (vmaxnm): New (v8hf, v4hf variants).
1177         (vminf): New (v8hf, v4hf variants).
1178         (vminnm): New (v8hf, v4hf variants).
1179         (vpmaxf): New (v4hf variant).
1180         (vpminf): New (v4hf variant).
1181         (vpadd): New (v4hf variant).
1182         (vrecps): New (v8hf, v4hf variants).
1183         (vrsqrts): New (v8hf, v4hf variants).
1184         (vabs): New (v8hf, v4hf variants).
1185         (vneg): New (v8hf, v4hf variants).
1186         (vrecpe): New (v8hf, v4hf variants).
1187         (vrnd): New (v8hf, v4hf variants).
1188         (vrnda): New (v8hf, v4hf variants).
1189         (vrndm): New (v8hf, v4hf variants).
1190         (vrndn): New (v8hf, v4hf variants).
1191         (vrndp): New (v8hf, v4hf variants).
1192         (vrndx): New (v8hf, v4hf variants).
1193         (vrsqrte): New (v8hf, v4hf variants).
1194         (vmul_lane): Add v4hf and v8hf variants.
1195         (vmul_n): Add v4hf and v8hf variants.
1196         (vext): New (v8hf, v4hf variants).
1197         (vcvts): New (v8hi, v4hi variants).
1198         (vcvts): New (v8hf, v4hf variants).
1199         (vcvtu): New (v8hi, v4hi variants).
1200         (vcvtu): New (v8hf, v4hf variants).
1201         (vcvts_n): New (v8hf, v4hf variants).
1202         (vcvtu_n): New (v8hi, v4hi variants).
1203         (vcvts_n): New (v8hi, v4hi variants).
1204         (vcvtu_n): New (v8hf, v4hf variants).
1205         (vbsl): New (v8hf, v4hf variants).
1206         (vcvtas): New (v8hf, v4hf variants).
1207         (vcvtau): New (v8hf, v4hf variants).
1208         (vcvtms): New (v8hf, v4hf variants).
1209         (vcvtmu): New (v8hf, v4hf variants).
1210         (vcvtns): New (v8hf, v4hf variants).
1211         (vcvtnu): New (v8hf, v4hf variants).
1212         (vcvtps): New (v8hf, v4hf variants).
1213         (vcvtpu): New (v8hf, v4hf variants).
1215 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1217         * config/arm/arm-builtins.c (hf_UP): New.
1218         (si_UP): New.
1219         (vfp_builtin_data): New.  Update comment.
1220         (enum arm_builtins): Include "arm_vfp_builtins.def".
1221         (ARM_BUILTIN_VFP_PATTERN_START): New.
1222         (arm_init_vfp_builtins): New.
1223         (arm_init_builtins): Add arm_init_vfp_builtins.
1224         (arm_expand_vfp_builtin): New.
1225         (arm_expand_builtins): Update for arm_expand_vfp_builtin.  Fix
1226         long line.
1227         * config/arm/arm_vfp_builtins.def: New file.
1228         * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
1229         (arm-builtins.o): Likewise.
1231 2016-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
1233         PR ipa/77677
1234         * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
1235         from constant while creating value range.
1237 2016-09-23  Renlin Li  <renlin.li@arm.com>
1239         * ira.c (ira): Move ira_use_lra_p initialization code to ...
1240         (ira_init_once): Here.
1242 2016-09-23  Uros Bizjak  <ubizjak@gmail.com>
1243             Jakub Jelinek  <jakub@redhat.com>
1245         * hooks.h (hook_uint_uintp_false): Rename to...
1246         (hook_bool_uint_uintp_false): ... this.
1247         * hooks.c (hook_uint_uintp_false): Rename to...
1248         (hook_bool_uint_uintp_false): ... this.
1249         * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
1250         instead of hook_uint_uintp_false.
1252 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1254         * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
1255         (arm_init_builtins): Move body of a loop to the standalone
1256         function arm_init_neon_builtin.
1257         (arm_expand_neon_builtin_1): New.  Update comment.  Function body
1258         moved from arm_neon_builtin with some white-space fixes.
1259         (arm_expand_neon_builtin): Move code into the standalone function
1260         arm_expand_neon_builtin_1.
1262 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1264         * config/arm/iterators.md (VCVTHI): New.
1265         (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE.  Fix a long line.
1266         (NEON_VAGLTE): New.
1267         (VFM_LANE_AS): New.
1268         (VH_CVTTO): New.
1269         (V_reg): Add HF, V4HF and V8HF.  Fix white-space.
1270         (V_HALF): Add V4HF.  Fix white-space.
1271         (V_if_elem): Add HF, V4HF and V8HF.  Fix white-space.
1272         (V_s_elem): Likewise.
1273         (V_sz_elem): Fix white-space.
1274         (V_elem_ch): Likewise.
1275         (VH_elem_ch): New.
1276         (scalar_mul_constraint): Add V8HF and V4HF.
1277         (Is_float_mode): Fix white-space.
1278         (Is_d_reg): Add V4HF and V8HF.  Fix white-space.
1279         (q): Add HF.  Fix white-space.
1280         (float_sup): New.
1281         (float_SUP): New.
1282         (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
1283         (neon_vfm_lane_as): New.
1284         * config/arm/neon.md (add<mode>3_fp16): New.
1285         (sub<mode>3_fp16): New.
1286         (mul<mode>3add<mode>_neon): New.
1287         (fma<VH:mode>4_intrinsic): New.
1288         (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
1289         (fmsub<VH:mode>4_intrinsic): New.
1290         (<absneg_str><mode>2): New.
1291         (neon_v<absneg_str><mode>): New.
1292         (neon_v<fp16_rnd_str><mode>): New.
1293         (neon_vrsqrte<mode>): New.
1294         (neon_vpaddv4hf): New.
1295         (neon_vadd<mode>): New.
1296         (neon_vsub<mode>): New.
1297         (neon_vmulf<mode>): New.
1298         (neon_vfma<VH:mode>): New.
1299         (neon_vfms<VH:mode>): New.
1300         (neon_vc<cmp_op><mode>): New.
1301         (neon_vc<cmp_op><mode>_fp16insn): New
1302         (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
1303         (neon_vca<cmp_op><mode>): New.
1304         (neon_vca<cmp_op><mode>_fp16insn): New.
1305         (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
1306         (neon_vc<cmp_op>z<mode>): New.
1307         (neon_vabd<mode>): New.
1308         (neon_v<maxmin>f<mode>): New.
1309         (neon_vp<maxmin>fv4hf: New.
1310         (neon_<fmaxmin_op><mode>): New.
1311         (neon_vrecps<mode>): New.
1312         (neon_vrsqrts<mode>): New.
1313         (neon_vrecpe<mode>): New (VH variant).
1314         (neon_vdup_lane<mode>_internal): New.
1315         (neon_vdup_lane<mode>): New.
1316         (neon_vcvt<sup><mode>): New (VCVTHI variant).
1317         (neon_vcvt<sup><mode>): New (VH variant).
1318         (neon_vcvt<sup>_n<mode>): New (VH variant).
1319         (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
1320         (neon_vcvt<vcvth_op><sup><mode>): New.
1321         (neon_vmul_lane<mode>): New.
1322         (neon_vmul_n<mode>): New.
1323         * config/arm/unspecs.md (UNSPEC_VCALE): New
1324         (UNSPEC_VCALT): New.
1325         (UNSPEC_VFMA_LANE): New.
1326         (UNSPECS_VFMS_LANE): New.
1328 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1330         * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
1331         ("*extzv<mode><clobbercc_or_nocc>"):
1332         Correct a typo in a comment.
1333         Merged patterns.
1334         ("*insv<mode>_zEC12", "*insv<mode>_z10")
1335         ("*insv<mode><clobbercc_or_nocc>"): Ditto.
1336         ("*insv<mode>_zEC12_appendbitsleft")
1337         ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
1338         ("*insv<mode>_z10_appendbitsleft"): Ditto.
1339         ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
1340         ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
1341         Provide pattern with operands switched.
1342         ("*pre_z10_extv<mode>"):
1343         Use new subst patterns.
1344         ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
1345         ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
1346         ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
1347         ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
1348         ("*<risbg_n>_<mode>_ior_and_lshiftrt")
1349         ("*<risbg_n>_sidi_ior_and_lshiftrt")
1350         ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
1351         New patterns.
1352         ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
1353         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
1354         ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
1355         on zEC12.
1356         ("SINT"): New mode_iterator with SI, HI, QI.
1357         * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
1358         ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
1359         duplication.
1361 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1363         * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
1364         new interface of s390_contiguous_bitmask_p.
1365         ("contiguous_bitmask_nowrap_operand"): New predicate.
1366         ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
1367         * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
1368         of s390_contiguous_bitmask_p.
1369         ("NxxDw"): Rename NxxDq constraint to NxxDw.
1370         ("NxxSw"): New constraint.
1371         * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
1372         * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
1373         interface.
1374         (s390_contiguous_bitmask_nowrap_p): Export.
1375         * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
1376         former s390_contiguous_bitmask_p.
1377         (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
1378         detect contiguous bit ranges with wraparound.  Change signature to
1379         return START and END position instead of POS and LENGTH.
1380         (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
1381         ranges with wraparound.
1382         (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
1383         (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
1384         Adapt to new signature of s390_contiguous_bitmask_p.
1386 2016-09-23  Bin Cheng  <bin.cheng@arm.com>
1388         * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
1389         (create_intersect_range_checks): New.
1390         (vect_create_cond_for_alias_checks): Call above function.
1392 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1394         * config/arm/iterators.md (Code iterators): Fix some white-space
1395         in the comments.
1396         (GLTE): New.
1397         (ABSNEG): New
1398         (FCVT): Moved from vfp.md.
1399         (VCVT_HF_US_N): New.
1400         (VCVT_SI_US_N): New.
1401         (VCVT_HF_US): New.
1402         (VCVTH_US): New.
1403         (FP16_RND): New.
1404         (absneg_str): New.
1405         (FCVTI32typename): Moved from vfp.md.
1406         (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
1407         UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
1408         UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
1409         UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N,  UNSPEC_VCVTH_S_N,
1410         UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
1411         (vcvth_op): New.
1412         (fp16_rnd_str): New.
1413         (fp16_rnd_insn): New.
1414         * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
1415         (UNSPEC_VCVT_HF_U_N): New.
1416         (UNSPEC_VCVT_SI_S_N): New.
1417         (UNSPEC_VCVT_SI_U_N): New.
1418         (UNSPEC_VCVTH_S): New.
1419         (UNSPEC_VCVTH_U): New.
1420         (UNSPEC_VCVTA_S): New.
1421         (UNSPEC_VCVTA_U): New.
1422         (UNSPEC_VCVTM_S): New.
1423         (UNSPEC_VCVTM_U): New.
1424         (UNSPEC_VCVTN_S): New.
1425         (UNSPEC_VCVTN_U): New.
1426         (UNSPEC_VCVTP_S): New.
1427         (UNSPEC_VCVTP_U): New.
1428         (UNSPEC_VCVTP_S): New.
1429         (UNSPEC_VCVTP_U): New.
1430         (UNSPEC_VRND): New.
1431         (UNSPEC_VRNDA): New.
1432         (UNSPEC_VRNDI): New.
1433         (UNSPEC_VRNDM): New.
1434         (UNSPEC_VRNDN): New.
1435         (UNSPEC_VRNDP): New.
1436         (UNSPEC_VRNDX): New.
1437         * config/arm/vfp.md (<absneg_str>hf2): New.
1438         (neon_vabshf): New.
1439         (neon_v<fp16_rnd_str>hf): New.
1440         (neon_vrndihf): New.
1441         (addhf3): New.
1442         (subhf3): New.
1443         (divhf3): New.
1444         (mulhf3): New.
1445         (*mulsf3neghf_vfp): New.
1446         (*negmulhf3_vfp): New.
1447         (*mulsf3addhf_vfp): New.
1448         (*mulhf3subhf_vfp): New.
1449         (*mulhf3neghfaddhf_vfp): New.
1450         (*mulhf3neghfsubhf_vfp): New.
1451         (fmahf4): New.
1452         (neon_vfmahf): New.
1453         (fmsubhf4_fp16): New.
1454         (neon_vfmshf): New.
1455         (*fnmsubhf4): New.
1456         (*fnmaddhf4): New.
1457         (neon_vsqrthf): New.
1458         (neon_vrsqrtshf): New.
1459         (FCVT): Move to iterators.md.
1460         (FCVTI32typename): Likewise.
1461         (neon_vcvth<sup>hf): New.
1462         (neon_vcvth<sup>si): New.
1463         (neon_vcvth<sup>_nhf_unspec): New.
1464         (neon_vcvth<sup>_nhf): New.
1465         (neon_vcvth<sup>_nsi_unspec): New.
1466         (neon_vcvth<sup>_nsi): New.
1467         (neon_vcvt<vcvth_op>h<sup>si): New.
1468         (neon_<fmaxmin_op>hf): New.
1470 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1472         * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
1473         ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
1474         ("*insv<mode>_zEC12_appendbitsleft")
1475         ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
1476         ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
1478 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
1480         * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
1481         * sreal.h (sreal::min, sreal::max): Avoid static local vars,
1482         construct values without normalization.
1483         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
1484         static local lhs_ops to vNULL.
1486 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1487             Jiong Wang <jiong.wang@arm.com>
1489         * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
1490         available when FP16 instructions are available.
1491         (output_move_vfp): Add support for 16-bit data moves.
1492         (arm_validize_comparison): Fix some white-space.  Support HFmode
1493         by conversion to SFmode.
1494         * config/arm/arm.md (truncdfhf2): Fix a comment.
1495         (extendhfdf2): Likewise.
1496         (cstorehf4): New.
1497         (movsicc): Fix some white-space.
1498         (movhfcc): New.
1499         (movsfcc): Fix some white-space.
1500         (*cmovhf): New.
1501         * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
1502         instructions are available.
1503         (*thumb2_movhi_vfp): Likewise.
1504         (*arm_movhi_fp16): New.
1505         (*thumb2_movhi_fp16): New.
1506         (*movhf_vfp_fp16): New.
1507         (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
1508         (*movhf_vfp): Likewise.
1509         (extendhfsf2): Enable when VFP FP16 instructions are available.
1510         (truncsfhf2):  Enable when VFP FP16 instructions are available.
1512 2016-09-23  Martin Liska  <mliska@suse.cz>
1514         * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
1516 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1518         * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
1519         V4HF modes.
1520         (arm_evpc_neon_vtrn): Likewise.
1521         (arm_evpc_neon_vrev): Likewise.
1522         (arm_evpc_neon_vext): Likewise.
1523         * config/arm/arm_neon.h (vbsl_f16): New.
1524         (vbslq_f16): New.
1525         (vdup_n_f16): New.
1526         (vdupq_n_f16): New.
1527         (vdup_lane_f16): New.
1528         (vdupq_lane_f16): New.
1529         (vext_f16): New.
1530         (vextq_f16): New.
1531         (vmov_n_f16): New.
1532         (vmovq_n_f16): New.
1533         (vrev64_f16): New.
1534         (vrev64q_f16): New.
1535         (vtrn_f16): New.
1536         (vtrnq_f16): New.
1537         (vuzp_f16): New.
1538         (vuzpq_f16): New.
1539         (vzip_f16): New.
1540         (vzipq_f16): New.
1541         * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
1542         (vdup_lane): New (v8hf, v4hf variants).
1543         (vext): New (v8hf, v4hf variants).
1544         (vbsl): New (v8hf, v4hf variants).
1545         * config/arm/iterators.md (VDQWH): New.
1546         (VH): New.
1547         (V_double_vector_mode): Add V8HF and V4HF.  Fix white-space.
1548         (Scalar_mul_8_16): Fix white-space.
1549         (Is_d_reg): Add V4HF and V8HF.
1550         * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
1551         (neon_vdup_lane<mode>): New.
1552         (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
1553         (*neon_vtrn<mode>_insn): Likewise.
1554         (neon_vzip<mode>_internal): Likewise. Also fix white-space.
1555         (*neon_vzip<mode>_insn): Likewise
1556         (neon_vuzp<mode>_internal): Likewise.
1557         (*neon_vuzp<mode>_insn): Likewise
1558         * config/arm/vec-common.md (vec_perm_const<mode>): New.
1560 2016-09-23  Jiong Wang  <jiong.wang@arm.com>
1561             Matthew Wahab  <matthew.wahab@arm.com>
1563         * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
1564         (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
1565         * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
1566         available.  Also fix some white-space.
1567         * config/arm/vfp.md (*arm_movhi_vfp): New.
1568         (*thumb2_movhi_vfp): New.
1570 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1572         * config/arm/arm-c.c (arm_cpu_builtins): Define
1573         "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
1574         "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
1576 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1578         * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
1579         arm_v8_1a_neon_ok.  Add entries for arm_v8_2a_fp16_scalar_ok,
1580         arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
1581         arm_v8_2a_fp16_neon_hw.
1582         (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
1583         arm_v8_2a_neon.
1585 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1587         * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
1588         arm_fp16_alternative_ok and arm_fp16_none_ok.
1590 2016-09-23  Martin Liska  <mliska@suse.cz>
1592         * ipa-icf.c (sem_variable::merge): Replace adress with address.
1594 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1596         * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
1597         ("armv8.2-a"): New.
1598         ("armv8.2-a+fp16"): New.
1599         * config/arm/arm-protos.h (FL2_ARCH8_2): New.
1600         (FL2_FP16INST): New.
1601         (FL2_FOR_ARCH8_2A): New.
1602         * config/arm/arm-tables.opt: Regenerate.
1603         * config/arm/arm.c (arm_arch8_2): New.
1604         (arm_fp16_inst): New.
1605         (arm_option_override): Set arm_arch8_2 and arm_fp16_inst.  Check
1606         for incompatible fp16-format settings.
1607         * config/arm/arm.h (TARGET_VFP_FP16INST): New.
1608         (TARGET_NEON_FP16INST): New.
1609         (arm_arch8_2): Declare.
1610         (arm_fp16_inst): Declare.
1611         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
1612         march=armv8.2-a and march=armv8.2-a+fp16.
1613         * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
1614         and armv8.2-a+fp16.
1615         * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
1616         "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
1618 2016-09-23  Martin Liska  <mliska@suse.cz>
1620         * doc/extend.texi: Remove fused-madd from i386 target options.
1622 2016-09-23  Martin Liska  <mliska@suse.cz>
1624         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1625         Handle movbe.
1627 2016-09-23  Martin Liska  <mliska@suse.cz>
1629         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1630         Handle crc32.
1632 2016-09-23  Martin Liska  <mliska@suse.cz>
1634         PR target/71652
1635         * config/i386/i386.c (ix86_option_override_internal): Change
1636         signature and return false when there's an error related to
1637         arch string.
1638         (release_options_strings): New function.
1639         (ix86_valid_target_attribute_tree): Call the function.
1641 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
1643         * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
1644         instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
1645         (gen_hsa_ctor_assignment): Likewise.
1646         * print-tree.c (print_node): Likewise.
1647         * tree-dump.c (dequeue_and_dump): Likewise.
1648         * tree-sra.c (sra_modify_constructor_assign): Likewise.
1649         * expr.c (store_constructor): Likewise.
1650         * fold-const.c (operand_equal_p): Likewise.
1651         * tree-pretty-print.c (dump_generic_node): Likewise.
1652         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
1653         * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
1655 2016-09-23  Richard Biener  <rguenther@suse.de>
1657         * hooks.h (hook_uint_uintp_false): Declare.
1659 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1661         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
1662         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
1664 2016-09-22  Martin Sebor  <msebor@redhat.com>
1666         PR target/77676
1667         * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
1668         HOST_BITS_PER_WIDE_INT, make a static local variable auto.
1669         (target_int_min): Correct computation.
1670         (format_integer): Use long long as the argument for the ll length
1671         modifier.
1672         (format_floating): Use target_int_max().
1673         (get_string_length): Same.
1674         (format_string): Avoid setting the bounded flag for strings
1675         of unknown length.
1676         (try_substitute_return_value): Avoid setting range info when
1677         the result isn't bounded.
1678         * varasm.c (assemble_name): Increase buffer size.
1680 2016-09-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1681             Terry Guo  <terry.guo@arm.com>
1683         * target.def (elf_flags_numeric): New target hook.
1684         * targhooks.h (default_asm_elf_flags_numeric): New.
1685         * varasm.c (default_asm_elf_flags_numeric): New.
1686         (default_elf_asm_named_section): Use new target hook.
1687         * config/arm/arm.opt (mpure-code): New.
1688         * config/arm/arm.h (SECTION_ARM_PURECODE): New.
1689         * config/arm/arm.c (arm_asm_init_sections): Add section
1690         attribute to default text section if -mpure-code.
1691         (arm_option_check_internal): Diagnose use of option with
1692         non supported targets and/or options.
1693         (arm_asm_elf_flags_numeric): New.
1694         (arm_function_section): New.
1695         (arm_elf_section_type_flags): New.
1696         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
1697         for -mpure-code.
1698         * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
1699         * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
1701 2016-09-22  Jan Hubicka  <hubicka@ucw.cz>
1703         * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
1705 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1707         * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
1708         * rtl.h: Adjust prototype.
1710 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1712         * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
1713         (prev_active_insn): Likewise.
1714         (active_insn_p): Likewise.
1715         * rtl.h: Adjust prototypes.
1716         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
1717         * config/arc/arc.md: Likewise.
1718         * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
1719         (branch_needs_nop_p): Likewise.
1720         (use_skip_p): Likewise.
1721         * config/sh/sh.c (gen_block_redirect): Likewise.
1722         (split_branches): Likewise.
1723         * reorg.c (optimize_skip): Likewise.
1724         (fill_simple_delay_slots): Likewise.
1725         (fill_slots_from_thread): Likewise.
1726         (relax_delay_slots): Likewise.
1727         * resource.c (mark_target_live_regs): Likewise.
1729 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1731         * config/cris/cris.c (cris_asm_output_case_end): Change argument
1732         type to rtx_insn *.
1733         * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
1734         (prev_nonnote_nondebug_insn): Likewise.
1735         * config/cris/cris-protos.h: Adjust prototype.
1736         * rtl.h: Likewise.
1737         * jump.c (rtx_renumbered_equal_p): Adjust.
1739 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1741         * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
1742         * rtl.h: Adjust prototype.
1743         * config/sh/sh.md: Adjust.
1744         * dwarf2out.c (add_var_loc_to_decl): Likewise.
1746 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1748         * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
1749         (prev_nondebug_insn): Likewise.
1750         * loop-doloop.c (doloop_condition_get): Likewise.
1751         * rtl.h: Adjust prototype.
1752         * cfgloop.h: Likewise.
1754 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1756         * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
1757         (prev_nonnote_insn): Likewise.
1758         * jump.c (reversed_comparison_code_parts): Likewise.
1759         (reversed_comparison): Likewise.
1760         * rtl.h: Adjust prototypes.
1761         * config/arc/arc.md: Adjust.
1762         * cse.c (find_comparison_args): Likewise.
1763         * reorg.c (redundant_insn): Change return type to rtx_insn *.
1764         (fix_reg_dead_note): Change argument type to rtx_insn *.
1765         (delete_prior_computation): Likewise.
1766         (delete_computation): Likewise.
1767         (fill_slots_from_thread): Adjust.
1768         (relax_delay_slots): Likewise.
1769         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1770         (simplify_relational_operation_1): Likewise.
1771         (simplify_ternary_operation): Likewise.
1773 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1775         * config/arc/arc-protos.h (arc_label_align): Change type of
1776         variables from rtx to rtx_insn *.
1777         * config/arc/arc.c (arc_label_align): Likewise.
1778         * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
1779         * config/bfin/bfin.c (workaround_speculation): Likewise.
1780         * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
1781         (find_last_same_clock): Likewise.
1782         (reorg_split_calls): Likewise.
1783         * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
1784         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
1785         * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
1786         (same_cmp_following_p): Likewise.
1787         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
1788         (same_cmp_following_p): Likwise.
1789         * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
1790         * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
1791         * config/nds32/nds32.c (nds32_target_alignment): Likewise.
1792         * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
1793         (rl78_alloc_physical_registers_cmp): Likewise.
1794         (rl78_alloc_physical_registers_umul): Likewise.
1795         (rl78_calculate_death_notes): Likewise.
1796         * config/s390/s390-protos.h (s390_label_align): Likewise.
1797         * config/s390/s390.c (s390_label_align): Likewise.
1798         * config/sh/sh.c (barrier_align): Likewise.
1799         * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
1800         * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
1801         (emit_cbcond_nop): Likewise.
1803 2016-09-22  Martin Liska  <mliska@suse.cz>
1805         PR ipa/77653
1806         * ipa-icf.c (sem_variable::merge): Yield merge operation if
1807         alias address matters, not necessarily address of original.
1809 2016-09-22  Richard Biener  <rguenther@suse.de>
1811         PR middle-end/77697
1812         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
1813         fold fails.
1815 2016-09-22  Richard Biener  <rguenther@suse.de>
1817         PR middle-end/77677
1818         * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
1819         from constant folding results.
1820         (gimple_resimplify2): Likewise.
1821         (gimple_resimplify3): Likewise.
1823 2016-09-22  Richard Biener  <rguenther@suse.de>
1825         PR middle-end/77678
1826         * expr.c (expand_expr_real_1): Guard array access against negative
1827         offset.
1829 2016-09-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1831         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
1832         of MPFR_RNDN.
1833         (format_floating): Likewise.
1835 2016-09-22  Jakub Jelinek  <jakub@redhat.com>
1837         PR fortran/77665
1838         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
1839         for all IFN_GOMP_SIMD_* internal fns, not just for
1840         IFN_GOMP_SIMD_ORDERED_*.
1842 2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1844         PR target/77670
1845         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
1846         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
1847         instructions when you want to invert the test.
1848         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
1849         correct order for XXSEL.
1850         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
1851         for using XSCMP{EQ,GT,GE}DP.
1853 2016-09-21  David Malcolm  <dmalcolm@redhat.com>
1855         * genconstants.c (main): Introduce noop_reader and convert call
1856         to read_md_files to a method call.
1857         * genenums.c (main): Likewise.
1858         * genmddeps.c (main): Likewise.
1859         * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
1860         rtx_reader_ptr->get_top_level_filename ().
1861         (write_tm_preds_h): Likewise.
1862         (write_insn_preds_c): Likewise.
1863         * gensupport.c (class gen_reader): New subclass of rtx_reader.
1864         (rtx_handle_directive): Convert to...
1865         (gen_reader::handle_unknown_directive): ...this.
1866         (init_rtx_reader_args_cb): Convert return type from bool to
1867         rtx_reader *.  Create a gen_reader instance, using it for the
1868         call to read_md_files.  Return it if no errors occur.
1869         (init_rtx_reader_args): Convert return type from bool to
1870         rtx_reader *.
1871         * gensupport.h (init_rtx_reader_args_cb): Likewise.
1872         (init_rtx_reader_args_cb): Likewise.
1873         * read-md.c (struct file_name_list): Move to class rtx_reader.
1874         (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
1875         (read_md_filename): Delete in favor of
1876         rtx_reader::m_read_md_filename.
1877         (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
1878         (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
1879         (base_dir): Delete in favor of rtx_reader::m_base_dir.
1880         (first_dir_md_include): Delete in favor of
1881         rtx_reader::m_first_dir_md_include.
1882         (last_dir_md_include_ptr): Delete in favor of
1883         rtx_reader::m_last_dir_md_include_ptr.
1884         (max_include_len): Delete.
1885         (rtx_reader_ptr): New.
1886         (fatal_with_file_and_line): Use get_filename and get_lineno
1887         accessors of rtx_reader_ptr.
1888         (require_char_ws): Likewise.
1889         (rtx_reader::read_char): New method, based on ::read_char.
1890         (rtx_reader::unread_char): New method, based on ::unread_char.
1891         (read_escape): Use get_filename and get_lineno accessors of
1892         rtx_reader_ptr.
1893         (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
1894         (read_string): Use get_filename and get_lineno accessors of
1895         rtx_reader_ptr.
1896         (rtx_reader::rtx_reader): New ctor.
1897         (rtx_reader::~rtx_reader): New dtor.
1898         (handle_include): Convert from a function to...
1899         (rtx_reader::handle_include): ...this method, converting
1900         handle_directive from a callback to a virtual function.
1901         (handle_file): Likewise, converting to...
1902         (rtx_reader::handle_file): ...this method.
1903         (handle_toplevel_file): Likewise, converting to...
1904         (rtx_reader::handle_toplevel_file): ...this method.
1905         (rtx_reader::get_current_location): New method.
1906         (parse_include): Convert from a function to...
1907         (rtx_reader::add_include_path): ...this method, dropping redundant
1908         update to unused max_include_len.
1909         (read_md_files): Convert from a function to...
1910         (rtx_reader::read_md_files): ...this method, converting
1911         handle_directive from a callback to a virtual function.
1912         (noop_reader::handle_unknown_directive): New method.
1913         * read-md.h (directive_handler_t): Delete this typedef.
1914         (in_fname): Delete.
1915         (read_md_file): Delete.
1916         (read_md_lineno): Delete.
1917         (read_md_filename): Delete.
1918         (class rtx_reader): New class.
1919         (rtx_reader_ptr): New decl.
1920         (class noop_reader): New subclass of rtx_reader.
1921         (read_char): Reimplement in terms of rtx_reader::read_char.
1922         (unread_char): Reimplement in terms of rtx_reader::unread_char.
1923         (read_md_files): Delete.
1924         * read-rtl.c (read_rtx_code): Update for deletion of globals
1925         read_md_filename and read_md_lineno.
1927 2016-09-21  Jason Merrill  <jason@redhat.com>
1929         * input.h (from_macro_definition_at): New.
1931 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1933         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
1935 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1937         PR tree-optimization/77550
1938         * tree-vect-stmts.c (create_array_ref): Change parameters.
1939         (get_group_alias_ptr_type): New function.
1940         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
1942 2016-09-21  Marek Polacek  <polacek@redhat.com>
1944         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
1945         Add falls through comment.
1947 2016-09-21  Richard Biener  <rguenther@suse.de>
1949         * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
1950         (replace_child): Likewise.
1951         (remove_child_TAG): Adjust.
1952         (move_marked_base_types): Likewise.
1953         (prune_unused_types_prune): Clear die_sib of removed children.
1955 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
1957         PR target/77326
1958         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
1959         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
1961 2016-09-21  Richard Biener  <rguenther@suse.de>
1963         PR tree-optimization/77648
1964         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
1965         with complex RHS.
1966         (make_transitive_closure_constraints): Adjust comment.
1967         (make_any_offset_constraints): New function.
1968         (handle_rhs_call): Make sure to first expand a pointer to all
1969         subfields before transitively closing it.
1970         (handle_const_call): Likewise.  Properly expand returned
1971         pointers as well.
1972         (handle_pure_call): Likewise.
1974 2016-09-21  Richard Biener  <rguenther@suse.de>
1975             Jakub Jelinek  <jakub@redhat.com>
1977         PR tree-optimization/77621
1978         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
1979         group at non-vectorizable stmts.
1981 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
1983         PR tree-optimization/72835
1984         * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
1985         (make_new_ssa_for_all_defs): Likewise.
1986         (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
1988 2016-09-20  Martin Sebor  <msebor@redhat.com>
1990         PR middle-end/49905
1991         * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
1992         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
1993         * config/linux.c (gnu_libc_printf_pointer_format): New function.
1994         * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
1995         * config/sol2.c (solaris_printf_pointer_format): New function.
1996         * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
1997         options.
1998         * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
1999         * doc/tm.texi: Regenerate.
2000         * gimple-fold.h (get_range_strlen): New function.
2001         (get_maxval_strlen): Declare existing function.
2002         * gimple-fold.c (get_range_strlen): Add arguments and compute both
2003         maximum and minimum.
2004          (get_range_strlen): Define overload.
2005         (get_maxval_strlen): Adjust.
2006         * gimple-ssa-sprintf.c: New file and pass.
2007         * passes.def (pass_sprintf_length): Add new pass.
2008         * targhooks.h (default_printf_pointer_format): Declare new function.
2009         (gnu_libc_printf_pointer_format): Same.
2010         (solaris_libc_printf_pointer_format): Same.
2011         * targhooks.c (default_printf_pointer_format): Define new function.
2012         * tree-pass.h (make_pass_sprintf_length): Declare new function.
2013         * print-tree.c: Increase buffer size.
2015 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
2017         * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
2019 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
2021         * common.opt: New option -fipa-vrp.
2022         * ipa-cp.c (ipa_get_vr_lat): New.
2023         (ipcp_vr_lattice::print): Likewise.
2024         (print_all_lattices): Call ipcp_vr_lattice::print.
2025         (ipcp_vr_lattice::meet_with): New.
2026         (ipcp_vr_lattice::meet_with_1): Likewise.
2027         (ipcp_vr_lattice::top_p): Likewise.
2028         (ipcp_vr_lattice::bottom_p): Likewsie.
2029         (ipcp_vr_lattice::set_to_bottom): Likewise.
2030         (set_all_contains_variable): Call VR set_to_bottom.
2031         (initialize_node_lattices): Init VR lattices.
2032         (propagate_vr_accross_jump_function): New.
2033         (propagate_constants_accross_call): Call
2034         propagate_vr_accross_jump_function.
2035         (ipcp_store_vr_results): New.
2036         (ipcp_driver): Handle VR.
2037         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
2038         (ipa_set_jf_unknown): Likewise.
2039         (ipa_compute_jump_functions_for_edge): Likewise.
2040         (ipa_node_params_t::duplicate): Likewise.
2041         (ipa_write_jump_function): Likewise.
2042         (ipa_read_jump_function): Likewise.
2043         (write_ipcp_transformation_info): Likewise.
2044         (read_ipcp_transformation_info): Likewise.
2045         (ipcp_update_vr): New.
2046         (ipcp_transform_function): Handle VR.
2047         * ipa-prop.h (struct ipa_vr): New.
2048         * cgraph.c: Include tree-vrp.h.
2049         * cgraphunit.c: Likewise.
2050         * ipa-utils.c: Likewise.
2051         * ipa.c: Likewise.
2052         * opts.c: Likewise.
2053         * toplev.c: Likewise.
2054         * ipa-devirt.c: Likewise.
2055         * ipa-inline-transform.c: Likewise.
2056         * ipa-inline.c: Likewise.
2057         * ipa-profile.c: Likewise.
2059 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
2061         * doc/invoke.texi: Document -fdump-tree-evrp.
2062         * passes.def: Define new pass_early_vrp.
2063         * timevar.def: Define new TV_TREE_EARLY_VRP.
2064         * tree-pass.h (make_pass_early_vrp): New.
2065         * tree-ssa-propagate.c: Make replace_uses_in non static.
2066         * tree-ssa-propagate.h: Export replace_uses_in.
2067         * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
2068         (extract_range_from_assert): Factor out
2069         extract_range_for_var_from_comparison_expr.
2070         (vrp_initialize_lattice): New.
2071         (vrp_initialize): Factor out vrp_initialize_lattice.
2072         (vrp_valueize): Fix it to reject complex value ranges.
2073         (vrp_free_lattice): New.
2074         (evrp_dom_walker::before_dom_children): Likewise.
2075         (evrp_dom_walker::after_dom_children): Likewise.
2076         (evrp_dom_walker::push_value_range): Likewise.
2077         (evrp_dom_walker::pop_value_range): Likewise.
2078         (execute_early_vrp): Likewise.
2079         (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
2080         (make_pass_early_vrp): New.
2082 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
2084         * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
2085         instead of exact_log2.
2087 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
2089         PR target/77621
2090         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
2091         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
2092         (ix86_add_stmt_cost): Penalize DFmode vector operations
2093         for !TARGET_VECTORIZE_DOUBLE.
2095 2016-09-20  Gerald Pfeifer  <gerald@pfeifer.com>
2097         * doc/invoke.texi (Warning Options): Simplify language.
2098         (Optimize Options): Complete sentence.
2100 2016-09-20  David Edelsohn  <dje.gcc@gmail.com>
2102         * dbxout.c (xcoff_debug_hooks):  Add filename parameter to
2103         early_finish hook.
2105 2016-09-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
2107         PR target/71395
2108         * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
2109         inits on power8 and above, use the VMRGEW instruction instead of a
2110         permute.
2112         * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
2113         (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
2114         initialization.
2116 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
2118         * config/aarch64/arm_neon.h
2119         (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
2120         (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
2121         (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
2123 2016-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2125         * config/var/vax.h (ELIMINABLE_REGS): Define.
2126         (INITIAL_ELIMINATION_OFFSET): Define.
2128 2016-09-20  Jakub Jelinek  <jakub@redhat.com>
2130         PR middle-end/77624
2131         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
2132         cast to void * if the cast is from some other pointer type.
2134 2016-09-20  Richard Biener  <rguenther@suse.de>
2136         PR tree-optimization/77646
2137         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
2138         a VDEF.
2140 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
2142         * config/aarch64/arm_neon.h: Add gnu_inline and artificial
2143         attributes to all inlined functions and make them extern.
2145 2016-09-20  Richard Biener  <rguenther@suse.de>
2147         * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
2148         hook.
2149         * debug.c (do_nothing_debug_hooks): Adjust.
2150         * dbxout.c (dbx_debug_hooks): Likewise.
2151         * sdbout.c (sdb_debug_hooks): Likewise.
2152         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
2153         (dwarf2out_finish): Move producer, filename and
2154         path annotation ...
2155         (dwarf2out_early_finish): ... here.  Remove in_lto_p special-casing.
2156         * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
2158 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2160         PR c++/77434
2161         * doc/invoke.texi: Document -Wint-in-bool-context.
2163         PR middle-end/77421
2164         * dwarf2out.c (output_loc_operands): Fix an assertion.
2166 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
2168         * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
2169         (CR_DECIMAL_DIG): New macro.
2171 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
2173         * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
2174         element.
2176 2016-09-19  Vladimir Makarov  <vmakarov@redhat.com>
2178         PR rtl-optimization/77416
2179         * lra-remat.c (operand_to_remat): Process hard coded insn
2180         registers.
2182 2016-09-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2184         * simplify-rtx.c (simplify_relational_operation_1): Add transformation
2185         (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
2187 2016-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
2189         * target.def (lra_p): Wordsmithing.
2190         * doc/tm.texi: Regenerate.
2192 2016-09-19  Jakub Jelinek  <jakub@redhat.com>
2193             Jan Hubicka  <jh@suse.cz>
2195         PR target/77587
2196         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
2197         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
2198         Call ultimate_alias_target just once, not up to 4 times.
2200 2016-09-19  Richard Biener  <rguenther@suse.de>
2202         * dwarf2out.c (early_dwarf_finished): New global.
2203         (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
2204         is false.
2205         (dwarf2out_early_finish): Set early_dwarf_finished at the end,
2206         if called from LTO exit early.
2207         (dwarf2out_late_global_decl): When being during the early
2208         debug phase do not add locations but only const value attributes.
2209         Adjust the way we generate early DIEs for LTO.
2211 2016-09-19  Richard Biener  <rguenther@suse.de>
2213         PR middle-end/77605
2214         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
2215         proper niter to bound the loops.
2217 2016-09-19  Richard Biener  <rguenther@suse.de>
2219         PR tree-optimization/77514
2220         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
2221         search for folded stmt.
2223 2016-09-17  Jan Hubicka  <hubicka@ucw.cz>
2225         * passes.def (pass_early_thread_jumps): Schedule after forwprop.
2226         * tree-pass.h (make_pass_early_thread_jumps): Declare.
2227         * tree-ssa-threadbackward.c (fsm_find_thread_path,
2228         fsm_find_thread_path, profitable_jump_thread_path,
2229         fsm_find_control_statement_thread_paths,
2230         find_jump_threads_backwards): Add speed_p parameter.
2231         (pass_data_early_thread_jumps): New pass.
2232         (make_pass_early_thread_jumps): New function.
2234 2016-09-17  Andreas Schwab  <schwab@suse.de>
2236         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
2237         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
2239 2016-09-16  Eric Botcazou  <ebotcazou@adacore.com>
2241         * recog.c (rest_of_handle_split_after_reload): Delete.
2242         (pass_split_after_reload::gate): New method.
2243         (pass_split_after_reload::execute): Call split_all_insns directly.
2245 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
2247         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
2248         parameters for functions taking long long arguments.
2250 2016-09-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2252         PR target/77613
2253         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
2254         splat with truncate.
2256 2016-09-16  Jason Merrill  <jason@redhat.com>
2258         * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
2259         New.
2260         * hwint.c (exact_log2): Use pow2p_hwi.
2261         (ctz_hwi, ffs_hwi): Use least_bit_hwi.
2262         * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
2263         * builtins.c (get_object_alignment_2, get_object_alignment)
2264         (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
2265         least_bit_hwi.
2266         * calls.c (compute_argument_addresses, store_one_arg): Use
2267         least_bit_hwi.
2268         * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
2269         * combine.c (force_to_mode): Use least_bit_hwi.
2270         (contains_muldiv, find_split_point, combine_simplify_rtx)
2271         (simplify_if_then_else, simplify_set, force_to_mode)
2272         (if_then_else_cond, simplify_and_const_int_1)
2273         (simplify_compare_const): Use pow2p_hwi.
2274         * cse.c (fold_rtx): Use pow2p_hwi.
2275         * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
2276         Use least_bit_hwi.
2277         * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
2278         (init_expmed_one_conv): Use pow2p_hwi.
2279         * expr.c (is_aligning_offset): Use pow2p_hwi.
2280         * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
2281         (fold_binary_loc): Use pow2p_hwi.
2282         * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
2283         * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
2284         * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
2285         * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
2286         Use least_bit_hwi.
2287         * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
2288         * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
2289         * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
2290         * omp-low.c (oacc_loop_fixed_partitions)
2291         (oacc_loop_auto_partitions): Use least_bit_hwi.
2292         * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
2293         * stor-layout.c (place_field): Use least_bit_hwi.
2294         * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
2295         * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
2296         * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
2297         * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
2298         * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
2299         * tree-vect-data-refs.c (vect_analyze_group_access_1)
2300         (vect_grouped_store_supported, vect_grouped_load_supported)
2301         (vect_permute_load_chain, vect_shift_permute_load_chain)
2302         (vect_transform_grouped_load): Use pow2p_hwi.
2303         * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
2304         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
2305         * tree-vect-stmts.c (vectorizable_mask_load_store): Use
2306         least_bit_hwi.
2307         * tsan.c (instrument_expr): Use least_bit_hwi.
2308         * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
2310 2016-09-16  Andreas Schwab  <schwab@suse.de>
2312         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
2313         OFFSET, not offset.
2314         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
2316 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
2318         PR target/77526
2319         * combine.c (rest_of_handle_combine): If any edges have been purged,
2320         free dominators if available.
2322 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
2323             Eric Botcazou  <ebotcazou@adacore.com>
2325         PR middle-end/77594
2326         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
2327         through into expand_addsub_overflow after expand_neg_overflow.
2329 2016-09-15  David Malcolm  <dmalcolm@redhat.com>
2331         * diagnostic-show-locus.c
2332         (selftest::test_fixit_insert_containing_newline): New function.
2333         (selftest::test_fixit_replace_containing_newline): New function.
2334         (selftest::diagnostic_show_locus_c_tests): Call the above.
2336 2016-09-15  Bin Cheng  <bin.cheng@arm.com>
2338         PR tree-optimization/77503
2339         * tree-vect-loop.c (vectorizable_reduction): Record reduction
2340         code for CONST_COND_REDUCTION at analysis stage and use it at
2341         transform stage.
2342         * tree-vectorizer.h (struct _stmt_vec_info): New field.
2343         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
2344         * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
2345         field.
2347 2016-09-15  Richard Biener  <rguenther@suse.de>
2349         PR middle-end/77544
2350         * fold-const.c (split_tree): Do not split constant ~X.
2352 2016-09-15  Jakub Jelinek  <jakub@redhat.com>
2354         PR rtl-optimization/77425
2355         * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
2356         is NULL.
2358         PR middle-end/77475
2359         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
2360         use %qs instead of %s where desirable, use argument instead of arg in
2361         the diagnostic wording, add list of supported strategies and
2362         spellcheck hint.
2363         (ix86_option_override_internal): Emit target("m...") instead of
2364         option("m...") in the diagnostic.  Use %qs instead of %s in invalid
2365         -march/-mtune option diagnostic.  Add list of supported arches/tunings
2366         and spellcheck hint.  Remove prefix, suffix and sw variables, use
2367         main_args_p ? "..." : "..." in diagnostics to make translation
2368         possible.
2370 2016-09-15  Richard Biener  <rguenther@suse.de>
2372         * dwarf2asm.h (dw2_asm_output_offset): Add overload with
2373         extra offset argument.
2374         * dwarf2asm.c (dw2_asm_output_offset): Implement that.
2375         * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
2376         to reflect new offset parameter.
2377         * doc/tm.texi: Regenerate.
2378         * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
2379         * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
2380         offset argument.
2381         (darwin_asm_output_dwarf_offset): Likewise.
2382         * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
2383         argument.
2384         (darwin_asm_output_dwarf_offset): Pass offset argument through.
2385         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
2386         * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
2388 2016-09-15  Chung-Lin Tang  <cltang@codesourcery.com>
2390         PR fortran/72743
2391         * ipa-icf.c (set_alias_uids): New function.
2392         (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
2393         all the merged variable's referring aliases.
2395 2016-09-15  Richard Biener  <rguenther@suse.de>
2397         PR tree-optimization/77514
2398         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
2399         only forced_stmts sequence.
2401 2016-09-15  Kugan Vivekanandarajah  <kuganv@linaro.org>
2403         * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
2404         * cfgexpand.c (update_alias_info_with_stack_vars): Use
2405         FOR_EACH_SSA_NAME to iterate over SSA variables.
2406         (pass_expand::execute): Likewise.
2407         * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
2408         * tree-cfg.c (dump_function_to_file): Likewise.
2409         * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
2410         (update_ssa): Likewise.
2411         * tree-ssa-alias.c (dump_alias_info): Likewise.
2412         * tree-ssa-ccp.c (ccp_finalize): Likewise.
2413         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
2414         (create_outofssa_var_map): Likewise.
2415         (coalesce_ssa_name): Likewise.
2416         * tree-ssa-operands.c (dump_immediate_uses): Likewise.
2417         * tree-ssa-pre.c (compute_avail): Likewise.
2418         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2419         (scc_vn_restore_ssa_info): Likewise.
2420         (free_scc_vn): Likwise.
2421         (run_scc_vn): Likewise.
2422         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
2423         * tree-ssa-ter.c (new_temp_expr_table): Likewise.
2424         * tree-ssa-copy.c (fini_copy_prop): Likewise.
2425         * tree-ssa.c (verify_ssa): Likewise.
2427 2016-09-14  Matthew Fortune  <matthew.fortune@imgtec.com>
2429         * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
2430         and mips64r2 as default 32-bit and 64-bit architectures.
2431         (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
2432         as default 32-bit and 64-bit architectures.
2434 2016-09-14  Pat Haugen  <pthaugen@us.ibm.com>
2436         * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
2437         of succ edge.
2439 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2441         * target.def (lra_p): Change commentary (for the manual) for the
2442         new default.
2443         * doc/tm.texi: Regenerate.
2445 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2447         * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
2448         * config/arm/arm.c (TARGET_LRA_P): Delete macro.
2449         * config/i386/i386.c (TARGET_LRA_P): Delete macro.
2450         * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
2452 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2454         * targhooks.c (default_lra_p): Return true instead of false.
2456 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2458         * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
2459         hook_bool_void_false.
2460         * config/avr/avr.c: Ditto.
2461         * config/bfin/bfin.c: Ditto.
2462         * config/c6x/c6x.c: Ditto.
2463         * config/cr16/cr16.c: Ditto.
2464         * config/cris/cris.c: Ditto.
2465         * config/epiphany/epiphany.c: Ditto.
2466         * config/fr30/fr30.c: Ditto.
2467         * config/frv/frv.c: Ditto.
2468         * config/h8300/h8300.c: Ditto.
2469         * config/ia64/ia64.c: Ditto.
2470         * config/iq2000/iq2000.c: Ditto.
2471         * config/lm32/lm32.c: Ditto.
2472         * config/m32c/m32c.c: Ditto.
2473         * config/m32r/m32r.c: Ditto.
2474         * config/m68k/m68k.c: Ditto.
2475         * config/mcore/mcore.c: Ditto.
2476         * config/microblaze/microblaze.c: Ditto.
2477         * config/mmix/mmix.c: Ditto.
2478         * config/mn10300/mn10300.c: Ditto.
2479         * config/moxie/moxie.c: Ditto.
2480         * config/msp430/msp430.c: Ditto.
2481         * config/nios2/nios2.c: Ditto.
2482         * config/nvptx/nvptx.c: Ditto.
2483         * config/pa/pa.c: Ditto.
2484         * config/pdp11/pdp11.c: Ditto.
2485         * config/rl78/rl78.c: Ditto.
2486         * config/sparc/sparc.c: Ditto.
2487         * config/spu/spu.c: Ditto.
2488         * config/stormy16/stormy16.c: Ditto.
2489         * config/tilegx/tilegx.c: Ditto.
2490         * config/tilepro/tilepro.c: Ditto.
2491         * config/v850/v850.c: Ditto.
2492         * config/vax/vax.c: Ditto.
2493         * config/visium/visium.c: Ditto.
2494         * config/xtensa/xtensa.c: Ditto.
2496 2016-09-14  Jakub Jelinek  <jakub@redhat.com>
2498         PR sanitizer/68260
2499         * tsan.c: Include target.h.
2500         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
2501         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
2502         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
2503         BUILT_IN_ATOMIC_TEST_AND_SET entries.
2504         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
2506 2016-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2507             Martin Liska  <mliska@suse.cz>
2509         PR middle-end/77574
2510         * predict.c (force_edge_cold): Add braces to a condition.
2512 2016-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2514         PR rtl-optimization/77289
2515         * lra-constraints.c (get_final_hard_regno): Removed.
2516         (get_hard_regno): Add new parameter final_p.
2517         (get_reg_class): Directly call lra_get_elimination_hard_regno.
2518         (operands_match_p): Adjust call to get_hard_regno.
2519         (uses_hard_regs_p): Likewise.
2520         (process_alt_operands): Likewise.
2522 2016-09-13  Joe Seymour  <joe.s@somniumtech.com>
2524         PR target/70713
2525         * config/msp430/msp430.c (msp430_start_function): Emit an error
2526         if a function is both weak and specifies an interrupt number.
2528 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
2530         PR tree-optimization/77454
2531         * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
2532         changing GIMPLE_COND.  Move update_stmt_if_modified call after this.
2533         Formatting fix.
2535 2016-09-13  Tamar Christina  <tamar.christina@arm.com>
2537         * config/aarch64/aarch64-builtins.c
2538         (aarch64_init_simd_builtins): Fix builtin type signature printing.
2540 2016-09-13  Uros Bizjak  <ubizjak@gmail.com>
2542         * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
2543         SFmode and SCmode arguments by reference.
2545 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
2547         * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
2548         Rename to...
2549         (selftest::test_one_liner_fixit_insert_before): ...this, and update
2550         for renaming of add_fixit_insert to add_fixit_insert_before.
2551         (selftest::test_one_liner_fixit_insert_after): New function.
2552         (selftest::test_one_liner_fixit_validation_adhoc_locations):
2553         Update for renaming of add_fixit_insert to add_fixit_insert_before.
2554         (selftest::test_one_liner_many_fixits): Likewise.
2555         (selftest::test_diagnostic_show_locus_one_liner): Update for
2556         renaming, call new test function.
2557         (selftest::test_diagnostic_show_locus_fixit_lines): Update for
2558         renaming of add_fixit_insert to add_fixit_insert_before.
2559         (selftest::test_fixit_consolidation): Likewise.
2560         * diagnostic.c (selftest::test_print_parseable_fixits_insert):
2561         Likewise.
2562         * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
2563         (selftest::test_applying_fixits_insert_before): ...this.
2564         (selftest::test_applying_fixits_insert): Update for renaming of
2565         add_fixit_insert to add_fixit_insert_before.
2566         (selftest::test_applying_fixits_insert_after): New function.
2567         (selftest::test_applying_fixits_insert_after_at_line_end): New
2568         function.
2569         (selftest::test_applying_fixits_insert_after_failure): New function.
2570         (selftest::test_applying_fixits_multiple): Update for renaming of
2571         add_fixit_insert to add_fixit_insert_before.
2572         (selftest::change_line): Likewise.
2573         (selftest::test_applying_fixits_unreadable_file): Likewise.
2574         (selftest::test_applying_fixits_line_out_of_range): Likewise.
2575         (selftest::test_applying_fixits_column_validation): Likewise.
2576         (selftest::test_applying_fixits_column_validation): Likewise.
2577         (selftest::edit_context_c_tests): Update for renamed test function;
2578         call new test functions.
2580 2016-09-13  Pat Haugen  <pthaugen@us.ibm.com>
2582         PR tree-optimization/77536
2583         PR rtl-optimization/68212
2584         * config/rs6000/rs6000.md (div->recip splitter): Remove
2585         optimize_insn_for_speed_p condition.
2587 2016-09-13  Maciej W. Rozycki  <macro@imgtec.com>
2589         * optabs.c (prepare_cmp_insn): Update documentation comment.
2591 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
2592             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2594         PR middle-end/77475
2595         * opts.h (candidates_list_and_hint): Declare.
2596         * opts-common.c (candidates_list_and_hint): New function.
2597         (cmdline_handle_error): Use it.
2599 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
2601         * edit-context.c (edited_line::get_len): New accessor.
2602         (edited_file::print_diff): Split out hunk-printing into...
2603         (edited_file::print_diff_hunk): New method.
2604         (edited_file::print_diff_line): New method.
2606 2016-09-12  Andrew Pinski  <apinski@cavium.com>
2608         * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
2609         New tuning option.
2610         * config/aarch64/aarch64.c (thunderx_tunings): Enable
2611         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
2612         (aarch64_operands_ok_for_ldpstp): Return false if
2613         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
2614         was SImode and the alignment is less than 8 byte.
2615         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
2617 2016-09-12  Orlando Arias  <oarias@knights.ucf.edu>
2619         PR target/77570
2620         * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
2622 2016-09-12  Marek Polacek  <polacek@redhat.com>
2624         * doc/extend.texi: Use lowercase "boolean".
2625         * doc/invoke.texi: Likewise.
2626         * doc/md.texi: Likewise.
2627         * target.def: Likewise.
2628         * doc/tm.texi: Regenerated.
2630 2016-09-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2632         PR middle-end/77426
2633         * expmed.c (synth_mult): Delete duplicate mode check.
2635 2016-09-10  Tom de Vries  <tom@codesourcery.com>
2637         PR C/71602
2638         * builtins.c (std_canonical_va_list_type): Strictly return non-null for
2639         va_list type only.
2640         * config/i386/i386.c (ix86_canonical_va_list_type): Same.
2641         * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
2643 2016-09-09  Peter Bergner  <bergner@vnet.ibm.com>
2645         PR rtl-optimization/77289
2646         * lra-constraints.c (get_final_hard_regno): Add support for non hard
2647         register numbers.  Remove support for subregs.
2648         (get_hard_regno): Use SUBREG_P.  Don't call get_final_hard_regno().
2649         (get_reg_class): Delete removed get_final_hard_regno() argument.
2650         (uses_hard_regs_p): Call get_final_hard_regno().
2652 2016-09-09  Martin Sebor  <msebor@redhat.com>
2654         PR c/77520
2655         PR c/77521
2656         * pretty-print.c (pp_quoted_string): New function.
2657         (pp_format): Call it for %c and %s directives.
2659 2016-09-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2661         * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
2662         (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
2663         INITIAL_ELIMINATION_OFFSET) : Update documentation.
2664         * target.def (frame_pointer_required, can_eliminate): Likewise.
2665         * doc/tm.texi: Regenerated.
2666         * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
2667         ELIMINABLE_REGS.
2668         * df-scan.c (df_hard_reg_init): Likewise.
2669         * ira.c (ira_setup_eliminable_regset): Likewise.
2670         * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
2671         init_elim_table): Likewise.
2672         * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
2673         set_initial_elim_offsets, update_eliminables,
2674         init_elim_table): Likewise.
2675         * rtlanal.c (get_initial_register_offset): Likewise.
2676         * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
2677         * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2678         * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2679         * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2680         * config/fr30/fr30.h: Fix comment.
2681         * config/frv/frv.c: Likewise.
2682         * config/frv/frv.h: Likewise.
2683         * config/ft32/ft32.h: Likewise.
2684         * config/visium/visium.h: Likewise.
2685         * config/pa/pa64-linux.h: Likewise.
2686         * config/v850/v850.h: Likewise.
2687         * config/cris/cris.c: Likewise.
2688         * config/ia64/ia64.h: Likewise.
2689         * config/moxie/moxie.h: Likewise.
2690         * config/m32r/m32r.h: Likewise.
2692 2016-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2694         PR target/77267
2695         * config.in: Regenerate.
2696         * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
2697         New macro.
2698         (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
2699         (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
2700         static-libmpxwrappers case.
2701         (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
2702         MPX_LD_AS_NEEDED_GUARD_POP.
2703         * configure: Regenerate.
2704         * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
2705         defined if linker support "--push-state"/"--pop-state".
2707 2016-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2709         * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
2711 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
2713         * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
2714         (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
2715         (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
2716         (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
2717         (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
2718         (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
2719         (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
2720         Document.
2721         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
2722         width macros from TS 18661-1.
2723         * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
2725 2016-09-08  Jakub Jelinek  <jakub@redhat.com>
2727         PR fortran/77516
2728         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
2729         OMP_CLAUSE_SAFELEN_EXPR.
2731 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
2733         * Makefile.in (OBJS): Add substring-locations.o.
2734         * langhooks-def.h (class substring_loc): New forward decl.
2735         (lhd_get_substring_location): New decl.
2736         (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
2737         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
2738         * langhooks.c (lhd_get_substring_location): New function.
2739         * langhooks.h (class substring_loc): New forward decl.
2740         (struct lang_hooks): Add field get_substring_location.
2741         * substring-locations.c: New file, taking definition of
2742         format_warning_va and format_warning_at_substring from
2743         c-family/c-format.c, making them non-static.
2744         * substring-locations.h (class substring_loc): Move class here
2745         from c-family/c-common.h.  Add and rewrite comments.
2746         (format_warning_va): New decl.
2747         (format_warning_at_substring): New decl.
2748         (get_source_location_for_substring): Add comment.
2750 2016-09-07  Eric Gallager  <egall@gwmail.gwu.edu>
2752         * config/i386/i386.c: Add 'U' suffix to processor feature bits
2753         to avoid -Wnarrowing warning.
2754         * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
2755         * opts.c: Likewise for SANITIZER_OPT bitmasks.
2757 2016-09-07  Wilco Dijkstra  <wdijkstr@arm.com>
2759         * config/aarch64/aarch64.c (aarch64_legitimize_address):
2760         Avoid use of base_offset if offset already in range.
2762 2016-09-07  Kaz Kojima  <kkojima@gcc.gnu.org>
2764         * config/sh/sh-protos.h (struct sh_atomic_model,
2765         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
2766         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
2767         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
2768         * config/sh/sh.h (struct sh_atomic_model,
2769         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
2770         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
2771         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
2772         Guard with __cplusplus.
2774 2016-09-06  Jakub Jelinek  <jakub@redhat.com>
2776         PR target/69255
2777         * config/i386/i386.c (ix86_expand_builtin): For builtin with
2778         unsupported or unknown ISA, use expand_call.
2780 2016-09-06  Martin Liska  <mliska@suse.cz>
2782         PR gcov-profile/77378
2783         PR gcov-profile/77466
2784         * tree-profile.c (tree_profiling): Detect whether target can use
2785         -fprofile-update=atomic.
2787 2016-09-06  Richard Biener  <rguenther@suse.de>
2789         PR tree-optimization/77479
2790         * tree-vrp.c (update_value_range): Extend overflow handling to
2791         VARYING.
2793 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
2795         PR target/77476
2796         * config/i386/i386.md (isa): Add x64_avx512bw.
2797         (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
2798         (kmov_isa): New mode attr.
2799         (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
2800         (*zero_extend<mode>si2): Likewise.
2801         (*zero_extendqihi2): Use avx512dq isa for the last alternative.
2803 2016-09-05  Gerald Pfeifer  <gerald@pfeifer.com>
2805         * doc/invoke.texi (SPU Options): nops -> NOPs.
2806         (x86 Options): Ditto.
2808 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
2810         PR middle-end/77475
2811         * toplev.c (process_options): Temporarily set input_location
2812         to UNKNOWN_LOCATION around targetm.target_option.override () call.
2814 2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
2816         PR rtl-optimization/77452
2817         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
2818         inner-mode reference to a CONST_VECTOR constant in the constant pool.
2820 2016-09-05  Marek Polacek  <polacek@redhat.com>
2822         PR c/77423
2823         * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
2825 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
2827         PR other/77421
2828         * gensupport.c (alter_output_for_subst_insn): Remove redundant
2829         *insn_out == '*' test.  Don't copy unnecessary to yet another
2830         memory buffer, and don't leak it.
2832         PR rtl-optimization/77425
2833         * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
2835 2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
2837         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
2839 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
2841         * common.opt (fdiagnostics-generate-patch): New option.
2842         * diagnostic.c: Include "edit-context.h".
2843         (diagnostic_initialize): Initialize context->edit_context_ptr.
2844         (diagnostic_finish): Delete context->edit_context_ptr.
2845         (diagnostic_report_diagnostic): Add fix-it hints from the
2846         diagnostic to context->edit_context_ptr, if any.
2847         * diagnostic.h (class edit_context): Add forward decl.
2848         (struct diagnostic_context): Add field "edit_context_ptr".
2849         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
2850         -fdiagnostics-generate-patch.
2851         (-fdiagnostics-generate-patch): New item.
2852         * toplev.c: Include "edit-context.h".
2853         (process_options): Set global_dc->edit_context_ptr to a new
2854         edit_context if the options need one.
2855         (toplev::main): Handle -fdiagnostics-generate-patch by using
2856         global_dc->edit_context_ptr.
2858 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2860         PR c/65467
2861         * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
2862         map and firstprivate clauses on target construct for _Atomic
2863         qualified decls.
2864         (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
2865         on target construct for _Atomic qualified decls.
2866         * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
2867         decls.
2868         * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
2869         _Atomic qualified arguments not mentioned in uniform clause.
2871 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
2873         * Makefile.in (OBJS-libcommon): Add edit-context.o.
2874         * diagnostic-color.c (color_dict): Add "diff-filename",
2875         "diff-hunk", "diff-delete", and "diff-insert".
2876         (parse_gcc_colors): Update default value of GCC_COLORS in comment
2877         to reflect above changes.
2878         * doc/invoke.texi (-fdiagnostics-color): Update description of
2879         default GCC_COLORS, and of the supported capabilities.
2880         * edit-context.c: New file.
2881         * edit-context.h: New file.
2882         * input.c (struct fcache): Add field "missing_trailing_newline".
2883         (diagnostics_file_cache_forcibly_evict_file): Initialize it to
2884         true.
2885         (add_file_to_cache_tab): Likewise.
2886         (fcache::fcache): Likewise.
2887         (get_next_line): Update c->missing_trailing_newline.
2888         (location_missing_trailing_newline): New function.
2889         * input.h (location_missing_trailing_newline): New decl.
2890         * selftest-run-tests.c (selftest::run_tests): Call
2891         edit_context_c_tests.
2892         * selftest.h (edit_context_c_tests): New decl.
2894 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2895             Richard Biener  <rguenth@suse.de>
2897         PR tree-optimization/77444
2898         * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
2899         as steptype, remove redundant initialization.
2901 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2903         PR sanitizer/77396
2904         * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
2905         (sanopt_optimize_walker): Optimize away
2906         __asan_before_dynamic_init (...) followed by
2907         __asan_after_dynamic_init () without intervening memory loads/stores.
2908         * ipa-pure-const.c (special_builtin_state): Handle
2909         BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
2910         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
2912 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2914         * cfg.c (free_original_copy_tables): Replace second assignment of
2915         bb_copy = NULL by bb_original = NULL. 
2917 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2919         PR other/77421
2920         * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
2921         assignment added in r216794.
2923 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
2925         * Makefile.in (OBJS): Add typed-splay-tree.o.
2926         * selftest-run-tests.c (selftest::run_tests): Call
2927         typed_splay_tree_c_tests.
2928         * selftest.h (typed_splay_tree_c_tests): New decl.
2929         * typed-splay-tree.c: New file.
2930         * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
2931         (typed_splay_tree::max): New method.
2932         (typed_splay_tree::min): New method.
2933         (typed_splay_tree::foreach): New method.
2934         (typed_splay_tree::closure): New struct.
2935         (typed_splay_tree::inner_foreach_fn): New function.
2937 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2939         * ipa-cp.c (ipcp_store_bits_results): Change option name from
2940         -fipa-cp-bit to -fipa-bit-cp.
2942 2016-09-01  Martin Sebor  <msebor@redhat.com>
2944         PR tree-optimization/71831
2945         * tree-object-size.h: Return bool instead of the size and add
2946         argument for the size.
2947         * tree-object-size.c (compute_object_offset): Update signature.
2948         (addr_object_size): Same.
2949         (compute_builtin_object_size): Return bool instead of the size
2950         and add argument for the size.  Handle POINTER_PLUS_EXPR when
2951         optimization is disabled.
2952         (expr_object_size): Adjust.
2953         (plus_stmt_object_size): Adjust.
2954         (pass_object_sizes::execute): Adjust.
2955         * builtins.c (fold_builtin_object_size): Adjust.
2956         * doc/extend.texi (Object Size Checking): Update.
2957         * ubsan.c (instrument_object_size): Adjust.
2959 2016-09-01  Martin Sebor  <msebor@redhat.com>
2961         * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
2962         it fits the output of the formatted function regardless of its
2963         arguments.
2964         * gcc/genmodes.c (parser::parse_expr): Same.
2965         * gimplify.c (gimplify_asm_expr): Same.
2966         * passes.c (pass_manager::register_one_dump_file): Same.
2967         * print-tree.c (print_node): Same.
2969 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2971         * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
2973 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2975         * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
2977 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2979         * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
2980         * config/rs6000/vector.md: Ditto.
2981         * config/rs6000/vsx.md: Ditto.
2983 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
2985         * ipa-inline-analysis.c (param_change_prob): Get to the base object
2986         first in all cases.
2988 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2990         * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
2991         *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
2992         *return_and_restore_gpregs_<mode>_r11,
2993         *return_and_restore_gpregs_<mode>_r12,
2994         *return_and_restore_gpregs_<mode>_r1,
2995         *return_and_restore_fpregs_<mode>_r11,
2996         *return_and_restore_fpregs_<mode>_r12,
2997         *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
2998         directly instead of via the "l" constraint.  Renumber operands.
2999         Fix whitespace.
3001 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3003         * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
3004         save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
3005         *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
3006         * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
3007         load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
3008         *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
3009         *call_value_nonlocal_darwin64, reload_macho_picbase,
3010         reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
3011         * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
3012         * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
3013         *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
3014         *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
3015         *save_fpregs_<mode>_r1): Ditto.
3016         * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
3017         *return_and_restore_gpregs_spe): Ditto.
3019 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3021         * config/rs6000/rs6000.md
3022         (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
3023         the use of the link register.
3024         (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
3026 2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3027             Michael Meissner  <meissner@linux.vnet.ibm.com>
3029         PR target/72827
3030         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
3031         reg+reg addressing for TImode.
3032         (rs6000_legitimate_address_p): Only allow register indirect
3033         addressing for TImode, even without TARGET_QUAD_MEMORY.
3035 2016-09-01  Richard Biener  <rguenther@suse.de>
3037         PR middle-end/77436
3038         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
3039         check whether the result fits the desired result type.
3041 2016-09-01  Nathan Sidwell  <nathan@acm.org>
3043         * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
3045 2016-09-01  Wilco Dijkstra  <wdijkstr@arm.com>
3047         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
3048         New function.
3049         (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
3051 2016-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3053         * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
3054         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
3055         for comparisons of integer ZERO_EXTEND against zero.
3057 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
3059         * config/i386/i386.c (ix86_option_override_internal): Also disable the
3060         STV pass if -mstackrealign is enabled.
3062 2016-08-31  Ilya Verbin  <iverbin@gmail.com>
3064         * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
3065         AVX512IFMA.
3067 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
3069         * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
3070         (layout_range::intersects_line_p): New method.
3071         (test_range_contains_point_for_single_point): Rename to...
3072         (test_layout_range_for_single_point): ...this, and add testing
3073         for layout_range::intersects_line_p.
3074         (test_range_contains_point_for_single_line): Rename to...
3075         (test_layout_range_for_single_line): ...this,  and add testing
3076         for layout_range::intersects_line_p.
3077         (test_range_contains_point_for_multiple_lines): Rename to...
3078         (test_layout_range_for_multiple_lines): ...this,  and add testing
3079         for layout_range::intersects_line_p.
3080         (layout::layout): Populate m_fixit_hints.
3081         (layout::get_expanded_location): Handle the case of a line-span
3082         for a fix-it hint.
3083         (layout::validate_fixit_hint_p): New method.
3084         (get_line_span_for_fixit_hint): New function.
3085         (layout::calculate_line_spans): Add spans for fixit-hints.
3086         (layout::should_print_annotation_line_p): New method.
3087         (layout::print_any_fixits): Drop param "richloc", instead using
3088         validated fixits in m_fixit_hints.  Add "const" to hint pointers.
3089         (diagnostic_show_locus): Avoid printing blank annotation lines.
3090         (selftest::test_diagnostic_context::test_diagnostic_context):
3091         Initialize show_column and start_span.
3092         (selftest::test_diagnostic_context::start_span_cb): New static
3093         function.
3094         (selftest::test_diagnostic_show_locus_fixit_lines): New function.
3095         (selftest::diagnostic_show_locus_c_tests): Update for function
3096         renamings.  Call test_diagnostic_show_locus_fixit_lines.
3098 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
3100         PR tree-optimization/73714
3101         * match.pd (a * (1 << b)): Revert change from 2016-05-23.
3103 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
3105         * selftest.c: Move "namespace selftest {" to top of file,
3106         removing explicit "selftest::" qualifiers throughout.
3108 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
3110         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
3111         New types.
3112         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
3113         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
3114         Replace builtin with vector extension.
3115         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
3116         New types.
3117         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
3118         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
3119         Replace builtin with vector extension.
3120         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
3121         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
3122         Replace builtin with vector extension.
3123         * config/i386/xmmintrin.h (__m128_u): New type.
3124         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
3125         (_mm_load_ps, _mm_store_ps): Simplify.
3127 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
3129         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
3131 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
3133         * diagnostic-show-locus.c (colorizer::begin_state): Support more
3134         than 3 ranges per diagnostic by alternating between color 1 and
3135         color 2.
3136         (layout::layout): Replace use of rich_location::MAX_RANGES
3137         with richloc->get_num_locations ().
3138         (layout::calculate_line_spans): Replace use of
3139         rich_location::MAX_RANGES with m_layout_ranges.length ().
3140         (layout::print_annotation_line): Handle arbitrary numbers of
3141         ranges in caret-printing by defaulting to '^'.
3142         (selftest::test_one_liner_many_fixits): New function.
3143         (test_diagnostic_show_locus_one_liner): Call it.
3144         * diagnostic.c (diagnostic_initialize): Update for renaming
3145         of rich_location::MAX_RANGES to
3146         rich_location::STATICALLY_ALLOCATED_RANGES.
3147         * diagnostic.h (struct diagnostic_context): Likewise.
3149 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
3151         * selftest.c (selftest::named_temp_file::named_temp_file): New
3152         ctor.
3153         (selftest::temp_source_file::~temp_source_file): Move to...
3154         (selftest::named_temp_file::~named_temp_file): ...here.
3155         (selftest::test_named_temp_file): New function.
3156         (selftest::selftest_c_tests): Call test_named_temp_file.
3157         * selftest.h (class named_temp_file): New class.
3158         (class temp_source_file): Convert to a subclass of named_temp_file.
3160 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
3162         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
3163         USEs of LR_REGNO in returns and sibcalls.
3164         (rs6000_output_mi_thunk): Similar.
3165         (rs6000_sibcall_aix): Similar.
3166         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
3167         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
3168         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
3169         Remove the USE of LR_REGNO from the patterns as well.  Delete an
3170         obsolete comment.
3171         (return_internal_<mode>): Delete.
3173 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
3175         * gcc/config/aarch64/aarch64-simd.md
3176         (aarch64_ld2<mode>_dreg_le): New.
3177         (aarch64_ld2<mode>_dreg_be): New.
3178         (aarch64_ld2<mode>_dreg): Removed.
3179         (aarch64_ld3<mode>_dreg_le): New.
3180         (aarch64_ld3<mode>_dreg_be): New.
3181         (aarch64_ld3<mode>_dreg): Removed.
3182         (aarch64_ld4<mode>_dreg_le): New.
3183         (aarch64_ld4<mode>_dreg_be): New.
3184         (aarch64_ld4<mode>_dreg): Removed.
3185         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
3187 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
3189         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
3190         redundant location param.
3191         (test_one_liner_fixit_remove): Likewise.
3192         (test_one_liner_fixit_replace): Likewise.
3193         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
3194         * gcc-rich-location.c
3195         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
3196         get_range_from_loc.  Drop overload taking a const char *.
3197         * gcc-rich-location.h
3198         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
3199         a const char *.
3201 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3203         * config/linux.c (linux_libc_has_function): Return true on musl.
3205 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3207         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
3209 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
3211         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
3212         used for abnormal egdes.
3214 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
3216         PR tree-optimization/72866
3217         * tree-vect-patterns.c (search_type_for_mask): Turn into
3218         a small wrapper, move all code to ...
3219         (search_type_for_mask_1): ... this new function.  Add caching
3220         and adjust recursive calls.
3222         PR debug/77363
3223         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
3224         instead of lookup_type_die (type_main_variant (type)) even for array
3225         types.
3227         PR middle-end/77377
3228         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
3229         constant pool reference return x instead of c.
3231 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
3233         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
3234         include MQ.
3236 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
3238         * input.c
3239         (selftest::test_make_location_nonpure_range_endpoints): Fix
3240         header comment.
3242 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
3244         * diagnostic-show-locus.c
3245         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
3246         function.
3247         (selftest::test_diagnostic_show_locus_one_liner): Call it.
3248         * input.c (get_pure_location): Move to libcpp/line-map.c.
3249         * input.h (get_pure_location): Convert decl to an inline function
3250         calling implementation in libcpp.
3252 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
3254         PR target/77403
3255         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
3256         template for intel asm dialect.
3257         (vec_set_hi_<mode><mask_name>): Ditto.
3259 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
3261         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
3262         (selftest::fail_formatted): Likewise.
3264 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
3266         * input.c (make_location): Call get_start and get_finish
3267         on the endpoints to avoid storing packed ranges or ad-hoc
3268         ranges in them.
3269         (selftest::test_make_location_nonpure_range_endpoints): New function.
3270         (selftest::input_c_tests): Call it.
3271         * input.h (get_start): New inline function.
3273 2016-08-29  Tom de Vries  <tom@codesourcery.com>
3275         PR c/77398
3276         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
3277         with assert.
3279 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
3281         * Makefile.in (gcov-iov.h): Add dummy recipe.
3283 2016-08-29  Nathan Sidwell  <nathan@acm.org>
3285         * config/nvptx/nvptx.c: #include tree-vrp.h.
3287 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
3289         PR target/77324
3290         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
3291         HIGH+LO construct during reload.
3293 2016-08-28  Tom de Vries  <tom@codesourcery.com>
3295         PR lto/70955
3296         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
3297         'sysv_abi va_list' attribute.
3298         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
3299         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
3300         attributes.
3302 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3304         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
3305         * emit-rtl.c (unshare_all_rtl_1): Adjust.
3306         (unshare_all_rtl_again): Likewise.
3307         * function.c (assign_stack_local_1): Likewise.
3308         (assign_stack_temp_for_type): Likewise.
3310 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3312         * cfgbuild.c (make_edges): Adjust.
3313         * cfgrtl.c (can_delete_label_p): Likewise.
3314         * dwarf2cfi.c (create_trace_edges): Likewise.
3315         * except.c (sjlj_emit_dispatch_table): Likewise.
3316         * function.h (struct expr_status): make x_forced_labels a vector.
3317         * jump.c (rebuild_jump_labels_1): Adjust.
3318         * reload1.c (set_initial_label_offsets): Likewise.
3319         * stmt.c (force_label_rtx): Likewise.
3320         (expand_label): Likewise.
3322 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3324         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
3326 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
3328         PR tree-optimization/71077
3329         PR tree-optimization/68542
3330         * fold-const.c (fold_relational_const): Fix folding of
3331         VECTOR_CST comparisons that have a scalar boolean result type.
3332         (selftest::test_vector_folding): New static function.
3333         (selftest::fold_const_c_tests): Call it.
3335 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
3337         * doc/extend.texi (SPU Built-in Functions): Remove stale
3338         references to material formerly at IBM and Sony.
3340 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
3342         PR target/77349
3343         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
3345 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
3347         * diagnostic-show-locus.c
3348         (selftest::test_fixit_consolidation): New function.
3349         (selftest::diagnostic_show_locus_c_tests): Call it.
3350         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
3351         constructor based on source_range.
3353 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
3355         * diagnostic-color.c (color_dict): Add "fixit-insert" and
3356         "fixit-delete".
3357         (parse_gcc_colors): Update description of default GCC_COLORS.
3358         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
3359         (colorizer::set_fixit_insert): New method.
3360         (colorizer::set_fixit_delete): New method.
3361         (colorizer::get_color_by_name): New method.
3362         (colorizer::STATE_FIXIT_INSERT): New constant.
3363         (colorizer::STATE_FIXIT_DELETE): New constant.
3364         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
3365         fields in favor of new field "m_stop_color".  Add fields
3366         "m_fixit_insert" and "m_fixit_delete".
3367         (colorizer::colorizer): Update for above changes.  Replace
3368         colorize_start calls with calls to get_color_by_name.
3369         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
3370         STATE_FIXIT_DELETE.  Update for field renamings.
3371         (colorizer::finish_state): Simplify by using m_stop_color,
3372         rather than multiple identical "*_ce" fields.
3373         (colorizer::get_color_by_name): New method.
3374         (layout::print_any_fixits): Print insertions and replacements
3375         using the "fixit-insert" color, and deletions using the
3376         "fixit-delete" color.
3377         * doc/invoke.texi (-fdiagnostics-color): Update description of
3378         default GCC_COLORS, and of the supported capabilities.
3380 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
3382         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
3383         current_function_static_stack_size variable with the static
3384         stack frame size of the current function when
3385         flag_stack_usage_info is enabled.
3387 2016-08-26  Nathan Sidwell  <nathan@acm.org>
3389         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
3390         assignment inside if condition.
3392 2016-08-26  Richard Biener  <rguenther@suse.de>
3394         PR tree-optimization/69047
3395         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
3396         extracts similar to what FRE does.
3397         (non_rewritable_mem_ref_base): Likewise.
3399 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
3401         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
3402         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
3403         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3404         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3405         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
3406         Likewise.
3407         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3408         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3409         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3410         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
3411         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3413 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3415         PR target/70473
3416         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
3417         reservation duration to 15 cycles.
3418         (cortex_a8_vfp_macs): Likewise.
3419         (cortex_a8_vfp_macd): Likewise.
3420         (cortex_a8_vfp_divs): Likewise.
3421         (cortex_a8_vfp_divd): Likewise.
3423 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3425         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
3426         (aarch_macro_fusion_pair_p): Use above to avoid early return.
3428 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3429             Martin Jambhor  <mjambor@suse.cz>
3431         * common.opt: New option -fipa-bit-cp.
3432         * doc/invoke.texi: Document -fipa-bit-cp.
3433         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
3434         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
3435         * tree-ssa-ccp.h: New header file.
3436         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
3437         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
3438         Replace all occurences of tree parameter by two new params: signop, int.
3439         (bit_value_unop_1): Change to bit_value_unop and export it.
3440         Replace all occurences of tree parameter by two new params: signop,
3441         int.
3442         (bit_value_binop): Change call from bit_value_binop_1 to
3443         bit_value_binop.
3444         (bit_value_assume_aligned): Likewise.
3445         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
3446         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
3447         to ccp_finalize.
3448         (ccp_finalize): Skip processing if val->mask == 0.
3449         * ipa-cp.c: Include tree-ssa-ccp.h
3450         (ipcp_bits_lattice): New class.
3451         (ipcp_param_lattice (bits_lattice): New member.
3452         (print_all_lattices): Call ipcp_bits_lattice::print.
3453         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
3454         (initialize_node_lattices): Likewise.
3455         (propagate_bits_accross_jump_function): New function.
3456         (propagate_constants_accross_call): Call
3457         propagate_bits_accross_jump_function.
3458         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
3459         (ipcp_store_bits_results): New function.
3460         (ipcp_driver): Call ipcp_store_bits_results.
3461         * ipa-prop.h (ipa_bits): New struct.
3462         (ipa_jump_func): Add new member bits of type ipa_bits.
3463         (ipa_param_descriptor): Change decl to decl_or_type.
3464         (ipa_get_param): Change decl to decl_or_type and assert on
3465         PARM_DECL.
3466         (ipa_get_type): New function.
3467         (ipcp_transformation_summary): New member bits.
3468         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
3469         (ipa_populate_param_decls): Likewise.
3470         (ipa_dump_param): Likewise.
3471         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
3472         function.
3473         (ipa_set_jf_unknown): Set ipa_bits::known to false.
3474         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
3475         propagation.
3476         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
3477         (ipa_write_jump_function): Add streaming for ipa_bits.
3478         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
3479         (write_ipcp_transformation_info): Add streaming for ipa_bits
3480         summary for ltrans.
3481         (read_ipcp_transfomration_info): Add support for reading streamed
3482         ipa_bits.
3483         (ipcp_update_bits): New function.
3484         (ipcp_transform_function): Call ipcp_update_bits.
3486 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3488         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
3489         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
3491 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
3493         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
3495 2016-08-25  Richard Biener  <rguenther@suse.de>
3497         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
3498         Only add locations in late dwarf.
3499         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
3500         (dwarf2out_early_finish): But do it here.
3502 2016-08-24  Michael Collison  <michael.collison@linaro.org>
3503             Michael Collison  <michael.collison@arm.com>
3505         * config/arm/arm-modes.def: Add new condition code mode CC_V
3506         to represent the overflow bit.
3507         * config/arm/arm.c (maybe_get_arm_condition_code):
3508         Add support for CC_Vmode.
3509         (arm_gen_unlikely_cbranch): New function to generate common
3510         rtl conditional branches for overflow patterns.
3511         * config/arm/arm-protos.h: Add prototype for
3512         arm_gen_unlikely_cbranch.
3513         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
3514         addsi3_compareV_upper): New patterns to support signed
3515         builtin overflow add operations.
3516         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
3517         New patterns to support unsigned builtin add overflow operations.
3518         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
3519         builtin overflow subtract operations,
3520         (usubv<mode>4): New patterns to support unsigned builtin subtract
3521         overflow operations.
3522         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
3523         to support builtin overflow negate operations.
3525 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3527         Revert
3528         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3530         * explow.c (get_dynamic_stack_size): Take known alignment of stack
3531         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
3532         needed.
3534 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3536         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
3537         MULTILIB_OPTIONS should be used.  Small wording fixes.
3538         * genmultilib: Memorize set of all option combinations in
3539         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
3540         found in MULTILIB_OPTIONS by checking if option set is listed in
3541         combination_space.  Output new and existing error message to stderr.
3543 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3545         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
3546         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
3547         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
3548         (MULTILIB_REUSE): Remove reuse rules for option set including
3549         -mfpu=fp-armv8 and -mfpu=vfpv4
3551 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3553         * config/arm/t-rtems: Add vfp multilib.
3555 2016-08-23  Ian Lance Taylor  <iant@golang.org>
3557         * config/s390/s390.c (s390_asm_file_start): Call
3558         default_file_start.
3560 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3562         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
3563         initialization of all 0's to the 0 constant, instead of directly
3564         generating XOR.  Add support for V4SImode vector initialization on
3565         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
3566         initialization.  Change variables used in V4SFmode vector
3567         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
3568         any memory addresses are in index form.  Add support for using
3569         VSPLTH/VSPLTB to initialize vector short and vector char vectors
3570         with all of the same element.
3571         (regno_or_subregno): New helper function to return a register
3572         number for either REG or SUBREG.
3573         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
3574         Use regno_or_subregno where possible.
3575         (rs6000_split_v4si_init_di_reg): New helper function to build up a
3576         DImode value from two SImode values in order to generate V4SImode
3577         vector initialization on 64-bit systems with direct move.
3578         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
3579         initialization.
3580         (rtx_is_swappable_p): V4SImode vector initialization insn is not
3581         swappable.
3582         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
3583         declaration.
3584         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
3585         attributes to initialize V8HImode and V16QImode vectors with the
3586         same element.
3587         (VSX_SPLAT_COUNT): Likewise.
3588         (VSX_SPLAT_SUFFIX): Likewise.
3589         (UNSPEC_VSX_VEC_INIT): New unspec.
3590         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
3591         Allow SFmode values to come from Altivec registers.
3592         (vsx_init_v4si): New insn/split for V4SImode vector initialization
3593         on 64-bit systems with direct move.
3594         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
3595         vector initializations, to allow V4SImode vector initializations
3596         on 64-bit systems with direct move.
3597         (vsx_splat_v4si): Likewise.
3598         (vsx_splat_v4si_di): Likewise.
3599         (vsx_splat_v4sf): Likewise.
3600         (vsx_splat_v4sf_internal): Likewise.
3601         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
3602         register classes.
3603         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
3604         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
3605         initializing V8HImode and V16QImode vectors with the same
3606         element.
3607         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
3608         optimization if -maltivec=be.
3610 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
3612         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
3613         attribute for alternatives 3 and 4.
3615 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
3617         * selftest.c (selftest::assert_str_contains): New function.
3618         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
3619         * selftest.h (selftest::assert_str_contains): New decl.
3620         (ASSERT_STR_CONTAINS): New macro.
3622 2016-08-23  Richard Biener  <rguenther@suse.de>
3624         PR tree-optimization/77286
3625         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
3626         the CFG here.
3627         (vect_transform_loop): Split exit edges of loop and scalar
3628         loop if required and at the appropriate time.
3630 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3632         * explow.c (get_dynamic_stack_size): Take known alignment of stack
3633         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
3634         needed.
3635         Correct a typo in a comment.
3637 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3639         * config/s390/s390.md ("*andc_split"): New splitter for and with
3640         complement.
3642 2016-08-23  Richard Biener  <rguenther@suse.de>
3644         PR tree-optimization/27336
3645         * tree-vrp.c (infer_value_range): Handle stmts that can throw
3646         by looking for a non-EH edge.
3647         (process_assert_insertions_for): Likewise.
3649 2016-08-23  Richard Biener  <rguenther@suse.de>
3651         PR middle-end/77305
3652         * statistics.c (statistics_counter_event): Robustify against
3653         NULL current_pass.
3655 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3657         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
3658         for targets amdfam10 and barcelona.
3660 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
3662         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
3663         (zero_extend<mode>di2): Ditto.
3664         (*zero_extend<mode>si2): Ditto.
3665         (*zero_extendqihi2): Ditto.
3667 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
3669         PR middle-end/77269
3670         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
3671         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
3673 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
3675         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
3676         identical consecutive elements.
3677         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
3678         the node's def stmt, avoid printing an unwanted trailing newline by
3679         replacing the call to print_gimple_stmt() with its inlined body and
3680         adjusting it to not set pp_needs_newline and to call pp_flush()
3681         instead of pp_newline_and_flush().
3683 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
3685         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
3686         (float32_type_node, float64_type_node, float32x_type_node)
3687         (float128x_type_node): New macros.
3688         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
3689         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
3690         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
3691         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
3692         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
3693         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
3694         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
3695         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
3696         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
3697         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
3698         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
3699         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
3700         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
3701         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
3702         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
3703         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
3704         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
3705         (copysign, fabs, huge_val, inf, nan, nans): Use it.
3706         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
3707         and copysign.
3708         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
3709         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
3710         * doc/extend.texi (Other Builtins): Document these built-in
3711         functions.
3712         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
3713         for nan and nans.
3715 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
3717         * doc/install.texi (Binaries): www.opencsw.org now uses https.
3719 2016-08-22  Richard Biener  <rguenther@suse.de>
3721         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
3723 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
3725         PR target/77270
3726         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
3727         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
3728         non-SSE2 athlons only, otherwise prefer SSE prefetches.
3730 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3732         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
3733         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
3734         (vrp_visit_switch_stmt): Likewise.
3735         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
3736         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
3737         (vrp_visit_stmt): Use extract_range_from_stmt.
3738         (vrp_visit_phi_node): Use extract_range_from_phi_node.
3740 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3742         * Makefile.in: Add tree-vrp.h to GTFILES.
3743         * gengtype.c (open_base_files): Add tree-vrp.h.
3744         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
3745         * builtins.c: Likewise.
3746         * fold-const.c: Likewise.
3747         * gimple-builder.c: Likewise.
3748         * gimple-laddress.c: Likewise.
3749         * hsa-gen.c: Likewise.
3750         * internal-fn.c: Likewise.
3751         * ssa.h: Likewise.
3752         * targhooks.c: Liewise,
3753         * tree-ssa-address.c: Likewise.
3754         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
3755         * tree-vrp.c (struct value_range): Move to tree-vrp.h
3756         * tree-vrp.h: New file.
3758 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3760         PR tree-optimization/61839
3761         * tree-vrp.c (two_valued_val_range_p): New.
3762         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
3763         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
3764         Also Convert VAR BINOP CST where VAR is two-valued to
3765         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
3767 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
3769         * diagnostic-show-locus.c
3770         (layout::annotation_line_showed_range_p): New method.
3771         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
3772         Reimplement case fixit_hint::REPLACE to cover removals, and
3773         replacements where the range of the replacement isn't one
3774         of the ranges in the rich_location.
3775         (test_one_liner_fixit_replace): Likewise.
3776         (selftest::test_one_liner_fixit_replace_non_equal_range): New
3777         function.
3778         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
3779         New function.
3780         (selftest::test_diagnostic_show_locus_one_liner): Call the new
3781         functions.
3782         * diagnostic.c (print_parseable_fixits): Remove case
3783         fixit_hint::REMOVE.
3785 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
3787         PR target/77270
3788         * config/i386/i386.c (ix86_option_override_internal): Remove
3789         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
3790         Enable SSE prefetch also for TARGET_PREFETCHWT1.
3791         Do not try to enable TARGET_PRFCHW ISA flag here.
3792         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
3793         Rewrite expander function body.
3794         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
3796 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
3798         PR c/32187
3799         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
3800         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
3801         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
3802         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
3803         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
3804         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
3805         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
3806         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
3807         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
3808         tree_index values.
3809         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
3810         macros.
3811         (struct floatn_type_info): New structure type.
3812         (floatn_nx_types): New variable declaration.
3813         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
3814         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
3815         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
3816         * tree.c (floatn_nx_types): New variable.
3817         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
3818         corresponding complex types.
3819         * target.def (floatn_mode): New hook.
3820         * targhooks.c: Include "real.h".
3821         (default_floatn_mode): New function.
3822         * targhooks.h (default_floatn_mode): New prototype.
3823         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
3824         types.
3825         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
3826         effective-target and dg-add-options keywords.
3827         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
3828         Document new effective-target keywords.
3829         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
3830         * doc/tm.texi: Regenerate.
3831         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
3832         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
3833         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
3834         18661-3.
3835         * real.h (struct real_format): Add field ieee_bits.
3836         * real.c (ieee_single_format, mips_single_format)
3837         (motorola_single_format, spu_single_format, ieee_double_format)
3838         (mips_double_format, motorola_double_format)
3839         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
3840         (ieee_extended_intel_128_format)
3841         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
3842         (mips_extended_format, ieee_quad_format, mips_quad_format)
3843         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
3844         (decimal_double_format, decimal_quad_format, ieee_half_format)
3845         (arm_half_format, real_internal_format: Initialize ieee_bits
3846         field.
3847         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
3848         float128_type_node.  Set float80_type_node to float64x_type_node
3849         if appropriate and long_double_type_node not appropriate.
3850         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
3851         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
3852         Initialize ieee_bits field.
3853         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
3854         (rs6000_init_builtins): Set ieee128_float_type_node to
3855         float128_type_node.
3856         (rs6000_floatn_mode): New function.
3858 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
3860         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
3861         _rdseed64_step): Uglify argument names and/or local variable names
3862         in inline functions.
3863         * config/i386/rtmintrin.h (_xabort): Likewise.
3864         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
3865         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
3866         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
3867         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
3868         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
3869         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
3870         _mm_maskz_ternarylogic_epi32): Likewise.
3871         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
3872         __lwpins32, __lwpins64): Likewise.
3873         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
3874         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
3875         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
3876         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
3877         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
3878         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
3879         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
3880         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
3881         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
3882         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
3883         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
3884         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
3885         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
3886         _mm256_mask_i64gather_epi32): Likewise.
3887         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
3888         * config/i386/ia32intrin.h (__writeeflags): Likewise.
3889         * config/i386/pkuintrin.h (_wrpkru): Likewise.
3890         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
3891         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
3892         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
3893         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
3894         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
3895         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
3896         _mm512_mask_prefetch_i64scatter_ps): Likewise.
3897         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
3898         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
3899         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
3900         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
3901         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
3902         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
3903         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
3904         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
3906         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
3907         returning void.
3908         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
3909         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
3910         Likewise.
3911         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
3912         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
3913         function name.
3914         (_rdpkru_u32): Add space after function name.
3916         * config/i386/t-i386 (i386-c.o): Don't depend on
3917         i386-builtin-types.inc.
3918         (i386.o): Depend on i386-builtin-types.inc.
3920 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
3922         PR target/77281
3923         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
3924         Use const_vec_duplicate to check for duplicated elements.
3926 2016-08-19  Richard Biener  <rguenther@suse.de>
3928         PR tree-optimization/77290
3929         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3930         Fix flag_tree_parallelize_loops check.
3932 2016-08-19  Richard Biener  <rguenther@suse.de>
3934         * match.pd (x | 0 -> x): Add.
3936 2016-08-19  Richard Biener  <rguenther@suse.de>
3938         PR tree-optimization/77286
3939         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
3940         Deal with virtual PHIs being out-of-order.
3942 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
3944         * doc/invoke.texi (fverbose-asm): Note that source code lines
3945         are emitted, and provide an example.
3946         * final.c (asm_show_source): New function.
3947         (final_scan_insn): Call asm_show_source.
3949 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
3951         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
3952         param with diagnostic_kind.
3953         (class colorizer): Similarly replace field m_diagnostic with
3954         m_diagnostic_kind.
3955         (colorizer::colorizer): Replace diagnostic
3956         param with diagnostic_kind.
3957         (colorizer::begin_state): Update for above field change.
3958         (layout::layout): Replace diagnostic param with rich_location *
3959         and diagnostic_kind.
3960         (diagnostic_show_locus): Replace diagnostic param with richloc
3961         and diagnostic_kind.
3962         (class selftest::test_diagnostic_context): New class.
3963         (selftest::test_diagnostic_show_locus_unknown_location): New
3964         function.
3965         (selftest::test_one_liner_simple_caret): New function.
3966         (selftest::test_one_liner_caret_and_range): New function.
3967         (selftest::test_one_liner_multiple_carets_and_ranges): New
3968         function.
3969         (selftest::test_one_liner_fixit_remove): New function.
3970         (selftest::test_one_liner_fixit_replace): New function.
3971         (selftest::test_diagnostic_show_locus_one_liner): New function.
3972         (selftest::diagnostic_show_locus_c_tests): Call the new test
3973         functions.
3974         * diagnostic.c (diagnostic_initialize): Initialize
3975         colorize_source_p, show_ruler_p and parseable_fixits_p.
3976         (default_diagnostic_finalizer): Update for change to
3977         diagnostic_show_locus.
3978         (diagnostic_append_note): Likewise.
3979         * diagnostic.h (diagnostic_show_locus): Replace
3980         const diagnostic_info * param with location * and diagnostic_t.
3982 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
3984         * input.c (saved_line_table): New global.
3985         (class selftest::temp_line_table): Rename to line_table_test and
3986         move declaration to selftest.h, and drop field m_old_line_table.
3987         (selftest::temp_line_table::temp_line_table): Rename ctor to...
3988         (selftest::line_table_test::line_table_test): ...this.  Add a
3989         default ctor.  Store current value of line_table within
3990         saved_line_table.
3991         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
3992         (selftest::line_table_test::~line_table_test): ...this, and
3993         restore line_table from the saved_line_table, rather than
3994         m_old_line_table.
3995         (selftest::test_accessing_ordinary_linemaps): Update for above
3996         renaming.
3997         (selftest::test_lexer): Likewise.
3998         (struct selftest::lexer_test): Likewise.
3999         (selftest::lexer_test::lexer_test): Likewise.
4000         (selftest::input_c_tests): Move the looping over test cases from
4001         here into...
4002         (selftest::for_each_line_table_case): New function.
4003         * input.h (saved_line_table): New decl.
4004         * selftest.h (struct selftest::line_table_case): New forward decl.
4005         (class selftest::line_table_test): New class, moved here from
4006         selftest::temp_line_table in input.c, and renamed.
4007         (selftest::for_each_line_table_case): New decl.
4009 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4011         PR target/72839
4012         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
4014 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
4016         PR middle-end/70895
4017         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
4018         enclosing parallel construct for reduction variables on OpenACC loop
4019         directives.
4021 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
4023         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
4024         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
4025         -gdwarf-3.
4026         (function_to_dwarf_procedure): Update comment.
4028 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
4030         * input.c (diagnostics_file_cache_forcibly_evict_file): New
4031         function.
4032         * input.h (diagnostics_file_cache_forcibly_evict_file): New
4033         declaration.
4034         * selftest.c (selftest::temp_source_file::~temp_source_file):
4035         Evict m_filename from the diagnostic file cache.
4037 2016-08-18  Richard Biener  <rguenther@suse.de>
4039         * tree-pass.h (make_pass_materialize_all_clones): Declare.
4040         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
4041         make_pass_materialize_all_clones): New simple IPA pass encapsulating
4042         clone materialization.
4043         * passes.def (all_late_ipa_passes): Start with
4044         pass_materialize_all_clones.
4045         * cgraphunit.c (symbol_table::compile): Remove call to
4046         materialize_all_clones.
4047         * tree-into-ssa.c: Include statistics.h.
4048         (update_ssa): Count number of times we do incremental/rewrite
4049         SSA update.
4051 2016-08-18  Richard Biener  <rguenther@suse.de>
4053         PR tree-optimization/77282
4054         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4055         When doing auto-parallelizing also prevent use of PHIs that
4056         carry dependences across loop backedges.
4058 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
4059             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4061         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
4063 2016-08-18  Richard Biener  <rguenther@suse.de>
4065         * ssa-iterators.h (ssa_vuse_operand): New inline.
4066         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
4067         (predicate_all_scalar_phis): Use remove_phi_node to remove
4068         phi nodes predicated.  Delay removing virtual PHIs.
4069         (predicate_mem_writes): Update virtual operands.
4070         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
4071         (tree_if_conversion): Do not rewrite virtual SSA form.
4072         * tree-phinodes.c (release_phi_node): Make static.
4073         * tree-phinodes.h (release_phi_node): Remove.
4075 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
4077         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
4078         codes that appear in bdesc_* arrays, instead include i386-builtin.def
4079         twice to define those.
4080         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
4081         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
4082         bdesc_multi_arg): Define by including i386-builtin.def the third time.
4083         * config/i386/i386-builtin.def: New file.
4085 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
4087         * input.c (get_source_range_for_char): Rename to...
4088         (selftest::get_source_range_for_char): ...this, and move within
4089         the #if CHECKING_P guard.
4090         (get_num_source_ranges_for_substring): Rename to...
4091         (selftest::get_num_source_ranges_for_substring): ...this, move
4092         within the #if CHECKING_P guard, and make static.
4093         (selftest::assert_num_substring_ranges): Initialize
4094         actual_num_ranges.
4096 2016-08-18  Alan Modra  <amodra@gmail.com>
4098         PR rtl-optimization/72771
4099         * reload.c (find_reloads): Don't assume that a subreg mem is OK
4100         when find_reloads_toplev returns address_reloaded==-1.
4101         (alternative_allows_const_pool_ref): Update comment.
4103 2015-08-17  Alan Hayward  <alan.hayward@arm.com>
4105         PR tree-optimization/71752
4106         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
4107         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
4109 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
4111         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
4112         instead of testing ECF_NORETURN bit in gimple_call_flags.
4113         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
4114         * predict.c (tree_bb_level_predictions): Likewise.
4115         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
4117         PR middle-end/77259
4118         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
4119         turning a call into __builtin_unreachable-like noreturn call, adjust
4120         gimple_call_set_fntype.
4121         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
4122         gimple_call_fntype has void return type.
4124 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
4126         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
4127         maybe_lookup_decl, to handle nested acc loop directives.
4129 2016-08-17  Richard Biener  <rguenther@suse.de>
4131         PR tree-optimization/76490
4132         * tree-vrp.c (update_value_range): Preserve overflow infinities
4133         when intersecting with ranges from get_range_info.
4134         (operand_less_p): Handle overflow infinities correctly.
4135         (value_range_constant_singleton): Use vrp_operand_equal_p
4136         to handle overflow max/min correctly.
4137         (vrp_valueize): Likewise.
4138         (union_ranges): Likewise.
4139         (intersect_ranges): Likewise.
4140         (vrp_visit_phi_node): Improve iteration limitation to only
4141         apply when we'll possibly re-visit the PHI via a changed argument
4142         on the backedge.
4144 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4146         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
4147         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
4148         rather than those that should not be built.
4150 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
4152         PR target/66488
4153         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
4155 2016-08-17  Richard Biener  <rguenther@suse.de>
4157         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
4158         (verify_vssa): New function verifying virtual SSA form.
4159         (verify_ssa): Call it.
4160         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
4161         Do not apply loop-closed SSA handling to virtuals.
4162         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
4163         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
4164         when rewriting their symbol.
4165         (prepare_def_site_for): Likewise.
4166         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
4167         operands of moved stmts.
4169 2016-08-17  Richard Biener  <rguenther@suse.de>
4171         PR tree-optimization/23855
4172         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
4173         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
4174         find guards to hoist.  Do not update SSA form but rewrite virtuals
4175         into loop closed SSA.
4176         (find_loop_guard): Adjust to skip already hoisted guards.  Do
4177         not mark virtuals for renaming or update SSA form.
4179 2016-08-17  Martin Liska  <mliska@suse.cz>
4181         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
4182         a LONG_LONG_TYPE_SIZE comparison.
4183         * gcov-io.h: Remove macro definitions.
4184         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
4185         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
4186         comparison.
4188 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
4190         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
4191         that builtins not mentioned in bdesc_* arrays come first, then
4192         the ones mentioned in bdesc_* arrays in the order they appear in
4193         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
4194         IX86_BUILTIN__BDESC_*_LAST enumerator.
4195         (bdesc_mpx): Fix up a comment typo.
4196         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
4197         __builtin_ia32_vpcomneu[bwdq] builtins.
4198         (BDESC_VERIFY, BDESC_VERIFYS): Define.
4199         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
4200         enum ix86_builtins ordering.
4201         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
4202         for direct bdesc_* array member access instead of searching all the
4203         arrays until an fcode match is found.
4205 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
4207         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
4208         pattern as define_insn_and_split.  Split insn before reload to
4209         ashl<mode>3_1.
4210         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
4211         <shift_insn><mode>3_1.
4212         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
4213         <rotate_insn><mode>3_1.
4215 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
4217         PR c/72857
4218         * input.c (get_source_range_for_substring): Rename to...
4219         (get_source_location_for_substring): ...this, adding param
4220         "caret_idx", and converting output param from source_range * to
4221         location_t *.
4222         (get_source_range_for_char): New function.
4223         (get_num_source_ranges_for_substring): Update comment to reflect
4224         above renaming.
4225         (assert_char_at_range): Update to use get_source_range_for_char
4226         rather than get_source_range_for_substring.
4227         (test_lexer_string_locations_concatenation_2): Likewise.
4228         * substring-locations.h (get_source_range_for_substring): Rename
4229         to...
4230         (get_source_location_for_substring): ...this, and adding param
4231         "caret_idx", and converting output param from source_range * to
4232         location_t *.
4234 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
4236         * input.c (class selftest::temp_source_file): Move to
4237         selftest.h.
4238         (selftest::temp_source_file::temp_source_file): Move to
4239         selftest.c.
4240         (selftest::temp_source_file::~temp_source_file): Likewise.
4241         * selftest.c (selftest::temp_source_file::temp_source_file): Move
4242         here from input.c.
4243         (selftest::temp_source_file::~temp_source_file): Likewise.
4244         * selftest.h (class selftest::temp_source_file): Move here from
4245         input.c
4247 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
4249         PR target/71910
4250         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
4251         inlining, add cgraph edge for the added __builtin_unreachable call.
4253         PR middle-end/67485
4254         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
4255         only cast it to SHWI for the final comparison.
4257 2016-08-16  Martin Liska  <mliska@suse.cz>
4259         PR gcov-profile/36412
4260         * doc/gcov.texi: Document --hash-filenames(-x).
4261         * gcov.c (print_usage): Add the option.
4262         (process_args): Process the option, sort options alphabetically.
4263         (md5sum_to_hex): New function.
4264         (make_gcov_file_name): Do the md5sum and append it to a
4265         filename.
4267 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
4269         PR tree-optimization/69848
4270         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
4271         and swtich operands to avoid additional NOT instruction.
4272         (vcond<v_cmp_mixed><mode>): Ditto.
4273         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
4275 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
4277         * doc/install.texi (*-*-solaris2*): Adjust latest change.
4279 2016-08-16  Richard Biener  <rguenther@suse.de>
4281         PR tree-optimization/76783
4282         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
4283         BB visited flags at start.
4285 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
4287         PR tree-optimization/72817
4288         PR tree-optimization/73450
4289         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
4290         multiple_of_p for adjusted IV.base.
4292 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
4294         PR target/72867
4295         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
4296         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
4297         for !flag_finite_math_only or flag_signed_zeros.
4298         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
4299         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
4300         depend on flag_finite_math_only.
4301         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
4302         New insn pattern.
4303         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
4304         (*ieee_smin<mode>3): Ditto.
4305         (*ieee_smax<mode>3): Ditto.
4306         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
4307         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
4308         flag_signed_zeros.
4309         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
4310         depend on flag_finite_math_only.
4311         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
4312         (*mmx_<code>v2sf3): Remove.
4313         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
4314         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
4315         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
4317 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
4319         PR rtl-optimization/73650
4320         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
4321         it is not a simple move.
4323 2016-08-15  Martin Liska  <mliska@suse.cz>
4325         PR driver/72765
4326         * gcc.c (do_spec_1): Call save_string with the right size.
4327         (save_string): Do an assert about string we copy.
4329 2016-08-15  Richard Biener  <rguenther@suse.de>
4331         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
4332         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
4333         TV_MACH_DEP.
4334         (pass_data_stv): Likewise.
4336 2016-08-15  Richard Biener  <rguenther@suse.de>
4338         PR tree-optimization/73434
4339         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
4340         TBAA info on the base when forwarding a non-invariant address.
4342 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
4344         * dwarf2out.c (struct checksum_attributes): Add
4345         at_string_length_bit_size and at_string_length_byte_size fields.
4346         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
4347         and DW_AT_string_length_byte_size.
4348         (die_checksum_ordered): Handle at_string_length_bit_size and
4349         at_string_length_byte_size.
4350         (gen_array_type_die): For dwarf_version >= 5 emit
4351         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
4352         (adjust_string_types): For dwarf_version >= 5 remove
4353         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
4354         (resolve_addr): Likewise.
4356         PR debug/71906
4357         * dwarf2out.c (string_types): New variable.
4358         (gen_array_type_die): Change early_dwarf handling of
4359         DW_AT_string_length, create DW_OP_call4 referencing the
4360         length var temporarily.  Handle parameters that are pointers
4361         to string length.
4362         (adjust_string_types): New function.
4363         (gen_subprogram_die): Temporarily set string_types to local var,
4364         call adjust_string_types if needed.
4365         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
4366         New functions.
4367         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
4369 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
4371         * doc/install.texi (*-*-solaris2*): Fix version number and document
4372         requirement on GNU make for building libjava with the Solaris linker.
4374 2016-08-15  Martin Liska  <mliska@suse.cz>
4375             Jakub Jelinek  <jakub@redhat.com>
4377         PR tree-optimization/72824
4378         * tree-loop-distribution.c (const_with_all_bytes_same)
4379         <case VECTOR_CST>: Fix a typo.
4381 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
4383         PR target/76342
4384         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
4385         Renamed from _mm512_undefined_si512.
4386         (_mm_undefined_si512): New definition.
4388 2016-08-13  Richard Biener  <rguenther@suse.de>
4390         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
4391         into PHIs and update the lattice for its def.
4393 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
4395         PR c/71512
4396         * ubsan.c (instrument_si_overflow): Pass true instead of false
4397         to gsi_replace.
4398         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
4399         of bbs.  Return TODO_cleanup_cfg if any returned true.
4401 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4403         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
4404         ISA 3.0 MTVSRDD instruction.
4405         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
4406         vecperm.
4408 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4410         PR tree-optimization/71083
4411         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
4412         bitfield access when possible.
4414 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
4416         PR middle-end/71654
4417         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
4418         sign-changing cast from a shorter unsigned type to a wider
4419         signed type.
4421 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
4423         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
4424         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
4425         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
4427 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4429         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4430         Correct costs for vec_construct.
4432 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
4434         PR tree-optimization/69848
4435         * tree-vectorizer.h (enum vect_def_type): New condition reduction
4436         type CONST_COND_REDUCTION.
4437         * tree-vect-loop.c (vectorizable_reduction): Support new condition
4438         reudction type CONST_COND_REDUCTION.
4440 2016-08-12  Richard Biener  <rguenther@suse.de>
4442         PR tree-optimization/57326
4443         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
4444         returning an SSA name.
4445         (phi_translate_1): When fully_constant_expression returns a NAME
4446         make sure we have a leader for it.
4448 2016-08-12  Martin Liska  <mliska@suse.cz>
4449             Adam Fineman  <afineman@afineman.com>
4451         * gcov.c (process_file): Create .gcov file when .gcda
4452         file is missing.
4454 2016-08-12  Marek Polacek  <polacek@redhat.com>
4456         PR c/7652
4457         * alias.c (find_base_value): Adjust fall through comment.
4458         * cfgexpand.c (expand_debug_expr): Likewise.
4459         * combine.c (find_split_point): Likewise.
4460         (expand_compound_operation): Likewise.  Add FALLTHRU.
4461         (make_compound_operation): Adjust fall through comment.
4462         (canon_reg_for_combine): Add FALLTHRU.
4463         (force_to_mode): Adjust fall through comment.
4464         (simplify_shift_const_1): Likewise.
4465         (simplify_comparison): Likewise.
4466         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
4467         FALLTHRU.
4468         * config/aarch64/predicates.md: Likewise.
4469         * config/i386/i386.c (function_arg_advance_32): Likewise.
4470         (ix86_gimplify_va_arg): Likewise.
4471         (print_reg): Likewise.
4472         (ix86_print_operand): Likewise.
4473         (ix86_build_const_vector): Likewise.
4474         (ix86_expand_branch): Likewise.
4475         (ix86_sched_init_global): Adjust fall through comment.
4476         (ix86_expand_args_builtin): Add FALLTHRU.
4477         (ix86_expand_builtin): Likewise.
4478         (ix86_expand_vector_init_one_var): Likewise.
4479         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
4480         (rs6000_adjust_cost): Likewise.
4481         (insn_must_be_first_in_group): Likewise.
4482         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
4483         * dbxout.c (dbxout_symbol): Adjust fall through comment.
4484         * df-scan.c (df_uses_record): Likewise.
4485         * dojump.c (do_jump): Add FALLTHRU.
4486         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
4487         comment.
4488         (resolve_args_picking_1): Adjust fall through comment.
4489         (loc_list_from_tree_1): Likewise.
4490         * expmed.c (make_tree): Likewise.
4491         * expr.c (expand_expr_real_2): Add FALLTHRU.
4492         (expand_expr_real_1): Likewise.  Adjust fall through comment.
4493         * fold-const.c (const_binop): Adjust fall through comment.
4494         (fold_truth_not_expr): Likewise.
4495         (fold_cond_expr_with_comparison): Add FALLTHRU.
4496         (fold_binary_loc): Likewise.
4497         (contains_label_1): Adjust fall through comment.
4498         (multiple_of_p): Likewise.
4499         * gcov-tool.c (process_args): Add FALLTHRU.
4500         * genattrtab.c (check_attr_test): Likewise.
4501         (write_test_expr): Likewise.
4502         * genconfig.c (walk_insn_part): Likewise.
4503         * genpreds.c (validate_exp): Adjust fall through comment.
4504         (needs_variable): Likewise.
4505         * gensupport.c (get_alternatives_number): Add FALLTHRU.
4506         (subst_dup): Likewise.
4507         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
4508         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
4509         (gimplify_scan_omp_clauses): Add FALLTHRU.
4510         (goa_stabilize_expr): Likewise.
4511         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
4512         through comment.
4513         * hsa-gen.c (get_address_from_value): Likewise.
4514         * ipa-icf.c (sem_function::hash_stmt): Likewise.
4515         * ira.c (ira_setup_alts): Add FALLTHRU.
4516         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
4517         comment.
4518         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
4519         * opts.c (common_handle_option): Likewise.
4520         * read-rtl.c (read_rtx_code): Likewise.
4521         * real.c (round_for_format): Likewise.
4522         * recog.c (asm_operand_ok): Likewise.
4523         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
4524         * reload1.c (set_label_offsets): Likewise.
4525         (eliminate_regs_1): Likewise.
4526         (reload_reg_reaches_end_p): Likewise.
4527         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
4528         (rtx_cost): Likewise.
4529         * sched-rgn.c (is_exception_free): Likewise.
4530         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
4531         * stor-layout.c (int_mode_for_mode): Likewise.
4532         * toplev.c (print_to_asm_out_file): Likewise.
4533         (print_to_stderr): Likewise.
4534         * tree-cfg.c (gimple_verify_flow_info): Likewise.
4535         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
4536         (chrec_fold_multiply): Likewise.
4537         (evolution_function_is_invariant_rec_p): Likewise.
4538         (for_each_scev_op): Likewise.
4539         * tree-data-ref.c (siv_subscript_p): Likewise.
4540         (get_references_in_stmt): Likewise.
4541         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
4542         (substitute_in_expr): Likewise.
4543         (type_cache_hasher::equal): Likewise.
4544         (walk_type_fields): Likewise.
4545         * var-tracking.c (adjust_mems): Add FALLTHRU.
4546         (set_dv_changed): Adjust fall through comment.
4547         * varasm.c (default_function_section): Add FALLTHRU.
4549 2016-08-12  Marek Polacek  <polacek@redhat.com>
4551         PR c/7652
4552         * tree-complex.c (expand_complex_division): Add missing break.
4554 2016-08-12  Richard Biener  <rguenther@suse.de>
4556         * passes.c (execute_todo): Do not push/pop TV_TODO.
4557         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
4558         (execute_one_pass): Likewise.
4559         * common.opt (ftime-report-details): New switch.
4560         * doc/invoke.texi (ftime-report-details): Document.
4561         * timevar.h (timer::print_row): Adjust signature.
4562         (timer::all_zero): New static helper.
4563         (timer::child_map_t): New typedef.
4564         (timer::time_var_def): Add children field.
4565         * timevar.c (timer::named_items::print): Adjust.
4566         (timer::~timer): Free timevar recorded children.
4567         (timer::pop_internal): When -ftime-report-details record
4568         time spent in sub-timevars.
4569         (timer::print_row): Adjust.
4570         (timer::print): Print sub-timevar stats, use all_zero.
4571         * timevar.def (TV_TODO): Remove.
4573 2016-08-12  Richard Biener  <rguenther@suse.de>
4575         PR tree-optimization/72851
4576         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
4577         worklists to use bitmaps indexed in execution order.
4578         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
4579         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
4580         (cfg_blocks): Make a bitmap.
4581         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
4582         New globals.
4583         (cfg_blocks_empty_p): Adjust.
4584         (cfg_blocks_add): Likewise.
4585         (cfg_blocks_get): Likewise.
4586         (add_ssa_edge): Likewise.
4587         (add_control_edge): Likewise.
4588         (simulate_stmt): Likewise.
4589         (process_ssa_edge_worklist): Likewise.
4590         (simulate_block): Likewise.
4591         (ssa_prop_init): Compute PRE order and stmt UIDs.
4592         (ssa_prop_fini): Adjust.
4593         (ssa_propagate): Adjust.
4595 2016-08-12  Richard Biener  <rguenther@suse.de>
4597         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
4598         the currently executable edges have fixed ranges.  Always
4599         go through update_value_range.
4601 2016-08-12  Alexandre Oliva  <aoliva@redhat.com>
4603         PR debug/63240
4604         * langhooks-def.h
4605         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
4606         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
4607         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
4608         (LANG_HOOKS_DECLS): Add it.
4609         * langhooks.h (struct lang_hooks_for_decls): Add
4610         function_decl_defaulted.  Const_tree-ify
4611         function_decl_explicit_p and function_decl_deleted_p.
4612         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
4613         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
4614         also at strict DWARF v5.
4616         PR debug/55641
4617         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
4618         TYPE_QUAL_CONST in reference-typed decls.
4620         PR debug/49366
4621         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
4622         in DW_OP_pieces, just enough to handle pointers to member
4623         functions.
4624         (gen_remaining_tmpl_value_param_die_attribute): Use a location
4625         expression on DWARFv5 if a constant value doesn't work.
4627 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
4629         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
4630         * selftest.c (selftest::test_assertions): New function.
4631         (selftest::selftest_c_tests): New function.
4632         * selftest.h (selftest::selftest_c_tests): New declaration.
4634 2016-08-11  Richard Biener  <rguenther@suse.de>
4635             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4637         PR rtl-optimization/72855
4638         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
4640 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4642         PR target/72863
4643         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
4644         (vsx_store_<mode>): Likewise.
4646 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
4648         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
4649         TImode CONST_WIDE_INT store.
4650         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
4652 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
4654         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
4655         mode if unaligned SSE load and store are optimal.
4657 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4659         PR tree-optimization/71083
4660         * tree-predcom.c (ref_at_iteration): Correctly align the
4661         reference type.
4663 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4665         * config/s390/s390-builtin-types.def: Add INT128 types.
4666         * config/s390/s390-builtins.def: Add INT128 variants for the add
4667         sub low-level builtins dealing with TImode.
4668         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
4669         via subreg when expanding a builtin.
4670         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
4671         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
4672         Fix comment.
4673         * config/s390/vecintrin.h: Adjust builtin names accordingly.
4674         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
4675         ("vec_addc<mode>", "vec_addc_u128"): Merge to
4676         "vacc<bhfgq>_<mode>".
4677         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
4678         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
4679         ("vec_subc<mode>", "vec_subc_u128"): Merge to
4680         "vscbi<bhfgq>_<mode>".
4681         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
4682         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
4684 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4686         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
4688 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
4690         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
4691         unused declaration.
4692         (vcond<v_cmp_mixed><mode>): Ditto.
4693         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
4695 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
4697         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
4698         variable explicitly, also assert on it before use.
4700 2016-08-11  Richard Biener  <rguenther@suse.de>
4702         PR tree-optimization/72772
4703         * cfgloopmanip.c (create_preheader): Use split_edge if there
4704         is a single loop entry, avoiding degenerate PHIs.
4706 2016-08-11  Richard Biener  <rguenther@suse.de>
4708         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
4709         unconditional TODO_cleanup_cfg.
4710         (pass_thread_jumps::execute): Initialize loops, perform a CFG
4711         cleanup only if we threaded a jump.
4713 2016-08-11  Alan Modra  <amodra@gmail.com>
4715         PR target/71680
4716         * lra-constraints.c (simplify_operand_subreg): Allow subreg
4717         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
4718         slow.  Emit two reloads for slow mem case, first loading in
4719         fast innermode, then converting to required mode.
4721 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4723         * config/rs6000/altivec.h (vec_extract_exp): New macro.
4724         (vec_extract_sig): New macro.
4725         (vec_insert_exp): New macro.
4726         (vec_test_data_class): New macro.
4727         (scalar_extract_exp): New macro.
4728         (scalar_extract_sig): New macro.
4729         (scalar_insert_exp): New macro.
4730         (scalar_test_data_class): New macro.
4731         (scalar_test_neg): New macro.
4732         (scalar_cmp_exp_gt): New macro.
4733         (scalar_cmp_exp_lt): New macro.
4734         (scalar_cmp_exp_eq): New macro.
4735         (scalar_cmp_exp_unordered): New macro.
4736         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
4737         to enforce constraint that operand is a 7-bit unsigned literal.
4738         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
4739         for power9 built-ins.
4740         (BU_P9V_VSX_2): Likewise.
4741         (BU_P9V_64BIT_VSX_2): Likewise.
4742         (VSEEDP): Add scalar extract exponent support.
4743         (VSEESP): Add scalar extract signature support.
4744         (VSTDCNDP): Add scalar test negative support.
4745         (VSTDCNSP): Likewise.
4746         (VSIEDP): Add scalar insert exponent support.
4747         (VSCEDPGT): Add scalar compare exponent greater than support.
4748         (VSCEDPLT): Add scalar compare exponent less than support.
4749         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
4750         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
4751         (VSTDCDP): Add scalar test data class support.
4752         (VSTDCSP): Likewise.
4753         (VSEEDP): Add overload support for scalar extract exponent
4754         operation.
4755         (VSESDP): Add overload support for scalar extract signature
4756         operation.
4757         (VSTDCN): Add overload support for scalar test negative
4758         operation.
4759         (VSTDCNDP): Add overload support for scalar test negative
4760         operation.
4761         (VSTDCNSP): Add overload support for scalar test negative
4762         operation.
4763         (VSIEDP): Add overload support for scalar insert exponent
4764         operation.
4765         (VSTDC): Add overload support for scalar test data class
4766         operation.
4767         (VSTDCDP): Add overload support for scalar test data class
4768         operation.
4769         (VSTDCSP): Add overload support for scalar test data class
4770         opreation.
4771         (VSCEDPGT): Add overload support for scalar compare exponent
4772         greater than operation.
4773         (VSCEDPLT): Add overload support for scalar compare exponent
4774         less than operation.
4775         (VSCEDPEQ): Add overload support for scalar compare exponent
4776         test-for-equality operation.
4777         (VSCEDPUO): Add overload support for scalar compare exponent
4778         test-for-unordered operation.
4779         (VEEDP): Add vector extract exponent support.
4780         (VEESP): Likewise.
4781         (VESDP): Add vector extract significand support.
4782         (VESSP): Likewise.
4783         (VIEDP): Add vector insert exponent support.
4784         (VIESP): Likewise.
4785         (VTDCDP): Add vector test data class support.
4786         (VTDCSP): Likewise.
4787         (VES): Add overload support for vector extract significand operation.
4788         (VESDP): Likewise.
4789         (VESSP): Likewise
4790         (VEE): Add overload support for vector extract exponent operation.
4791         (VEEDP): Likewise.
4792         (VEESP): Likewise.
4793         (VTDC): Add overload support for vector test data class operation.
4794         (VTDCDP): Likewise.
4795         (VTDCSP): Likewise.
4796         (VIE): Add overload support for vector insert exponent operation.
4797         (VIEDP): Likewise.
4798         (VIESP): Likewise.
4799         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4800         overloaded binary floating point functions.
4801         (altivec_resolve_overloaded_builtin): Improve error messages to
4802         distinguish between functions not supported in the current
4803         compiler configuration and functions that were invoked with an
4804         invalid parameter combination, and include the built-in function
4805         name in both error messages.
4806         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
4807         New prototype.
4808         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
4809         function.
4810         (rs6000_expand_binop_builtin): Add check to enforce that argument
4811         2 of the test data class operations is a 7-bit unsigned literal.
4812         (rs6000_invalid_builtin): Add code to issue an error message if a
4813         built-in function that requires the power9_vector and -m32
4814         command-line options is compiled without these options.
4815         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
4816         (UNSPEC_VSX_SXSIGDP): New value.
4817         (UNSPEC_VSX_SXSIGPDP): New value.
4818         (UNSPEC_VSX_SIEXPDP): New value.
4819         (UNSPEC_VSX_SCMPEXPDP): New value.
4820         (UNSPEC_VSX_STSTDC): New value.
4821         (UNSPEC_VSX_VXEXP): New value.
4822         (UNSPEC_VSX_VXSIG): New value.
4823         (UNSPEC_VSX_VIEXP): New value.
4824         (UNSPEC_VSX_VTSTDC): New value.
4825         (xsxexpdp): New insn for scalar extract exponent.
4826         (xsxsigdp): New insn for scalar extract significand.
4827         (xsiexpdp): New insn for scalar insert exponent.
4828         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
4829         (*xscmpexpdp): New insn for scalar compare exponents.
4830         (xststdc<Fvsx): New expansion for both single- and
4831         double-precision scalar test data class operations.
4832         (xststdcneg<Fvsx>): New expansion for both single- and
4833         double-precision scalar test for negative value operations.
4834         (*xststdc<Fvsx>): New insn for scalar test data class
4835         operation.
4836         (xvxexp<VSs>): New insn for single- and double-precision
4837         vector extract exponent operation.
4838         (xvxsig<VSs>): New insn for single- and double-precision
4839         vector extract significand operation.
4840         (xviexp<VSs>): New insn for single- and double-precision
4841         vector insert exponent operation.
4842         (xvtstdc<VSs>): New insn for single- and double-precision
4843         vector test data class operation.
4844         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4845         built-in functions to represent the Power9 binary floating-point
4846         support instructions.
4848 2016-08-10  bin cheng  <bin.cheng@arm.com>
4850         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
4852 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
4853             Renlin Li  <renlin.li@arm.com>
4854             Bin Cheng  <bin.cheng@arm.com>
4856         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
4857         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
4858         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
4859         (aarch64_vcond_internal<mode><mode>): Delete pattern.
4860         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
4861         (vcond<v_cmp_result><mode>): Ditto.
4862         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
4863         (vcondu<mode><mode>): Ditto.
4864         (vcond<v_cmp_mixed><mode>): New pattern.
4865         (vcondu<mode><v_cmp_mixed>): New pattern.
4866         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
4867         of aarch64_vcond_internal.
4869 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
4870             Renlin Li  <renlin.li@arm.com>
4871             Bin Cheng  <bin.cheng@arm.com>
4873         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
4874         (vec_cmp<mode><v_cmp_result>): New pattern.
4875         (vec_cmpu<mode><mode>): New pattern.
4876         (vcond_mask_<mode><v_cmp_result>): New pattern.
4878 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
4880         PR tree-optimization/71734
4881         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
4882         REF_LOOP, invoke ref_indep_loop_p_1.
4883         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
4884         to ref_indep_loop_p.
4885         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
4886         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
4887         is inside LOOP, do not cache dpendence value for loops with
4888         non-zero SAFELEN.
4889         (ref_indep_loop_p_2): Delete function.
4890         (can_sm_ref_p): Pass LOOP as additional argument to
4891         ref_indep_loop_p.
4893 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
4895         PR target/72853
4896         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
4897         being an offsettable address.
4899 2016-08-10  Martin Liska  <mliska@suse.cz>
4901         PR gcov-profile/58306
4902         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
4903         atomic variants of profile update functions.
4905 2016-08-10  Martin Liska  <mliska@suse.cz>
4907         Cherry picked (and modified) from google-4_7 branch
4908         2012-12-26  Rong Xu  <xur@google.com>
4909         * common.opt (fprofile-update): Add new flag.
4910         * coretypes.h: Define enum profile_update.
4911         * doc/invoke.texi: Document -fprofile-update.
4912         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
4913         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
4914         * tree-profile.c (gimple_init_edge_profiler): Generate
4915         also atomic profiler update.
4916         (gimple_gen_edge_profiler): Likewise.
4918 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
4920         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
4921         stack_usage_file to NULL after fclose calls.
4923 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4925         PR target/71873
4926         * reload.c (push_reload): Compute subreg_in_class for
4927         subregs of constants and plus expressions. Remove special
4928         handling of SYMBOL_REFs.
4930 2016-08-10  Alan Modra  <amodra@gmail.com>
4932         PR target/71680
4933         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
4934         SImode for TARGET_E500_DOUBLE when given SImode.
4936 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
4938         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
4939         unused variable __O.
4941 2016-08-09  Martin Liska  <mliska@suse.cz>
4943         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
4944         _gcov_reset to __gcov_reset.
4945         * doc/gcov-tool.texi: Fix typo.
4947 2016-08-09  Martin Liska  <mliska@suse.cz>
4949         * value-prof.c (gimple_divmod_values_to_profile): Do not
4950         instrument MOD histogram if a value is not a SSA name.
4952 2016-08-09  Martin Liska  <mliska@suse.cz>
4954         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
4955         values.
4957 2016-08-09  Renlin Li  <renlin.li@arm.com>
4959         PR middle-end/64971
4960         * calls.c (prepare_call_address): Convert funexp to Pmode when
4961         necessary.
4962         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
4963         (sibcall_value): Likewise.
4965 2016-08-09  Marek Polacek  <polacek@redhat.com>
4967         PR c/7652
4968         * cselib.c (cselib_expand_value_rtx_1): Add return.
4969         * gengtype.c (dbgprint_count_type_at): Likewise.
4970         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
4971         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
4973 2016-08-09  Martin Jambor  <mjambor@suse.cz>
4975         PR ipa/71981
4976         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
4977         if instance is a MEM_REF.
4979 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
4981         PR target/72843
4982         * config/i386/i386.md (*movtf_internal): Use
4983         lra_in_progress || reload_completed instead of !can_create_pseudo_p
4984         in the insn constraint.
4985         (*movxf_internal): Ditto.
4986         (*movdf_internal): Ditto.
4987         (*movsf_internal): Ditto.
4989 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
4991         PR tree-optimization/72772
4992         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
4993         for expanded base.
4995 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
4997         PR tree-optimization/72772
4998         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
4999         parameter STOP.
5000         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
5001         parameter STOP and update calls.  Move expand_simple_operations
5002         function call from here...
5003         (simplify_using_initial_conditions): ...to here.  Delete parameter
5004         STOP.
5005         (tree_simplify_using_condition): Delete parameter STOP.
5006         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
5007         simplify_using_initial_conditions.
5009 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
5011         PR c/65345
5012         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
5013         Use create_tmp_var_raw instead of create_tmp_var.
5015 2016-08-09  Richard Biener  <rguenther@suse.de>
5017         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
5018         Treat same SSA names related.
5020 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
5022         PR tree-optimization/72824
5023         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
5024         real_zerop is not negative.
5026 2016-08-09  Richard Biener  <rguenther@suse.de>
5028         PR tree-optimization/71802
5029         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
5030         all merge opportunities with the predecessor.
5032 2016-08-09  Richard Biener  <rguenther@suse.de>
5034         PR ipa/68273
5035         * ipa-prop.c (ipa_modify_formal_parameters): Build
5036         parameter types with natural alignment also for the
5037         over-aligned case.
5039 2016-08-08  Andi Kleen  <ak@linux.intel.com>
5041         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
5043 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
5045         PR c/64955
5046         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
5047         do-nothing langhook.
5048         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
5049         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
5050         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
5051         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
5053 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
5055         PR bootstrap/72844
5056         * input.c: Ensure that HAVE_ICONV is defined.
5058 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
5060         PR middle-end/72781
5061         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
5062         private vars for lastprivate and for linear iterator.
5064         PR middle-end/68762
5065         * omp-simd-clone.c: Include varasm.h.
5066         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
5067         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
5068         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
5069         update function name.
5071 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5073         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
5074         (avr_diagnose_devicespecs_error): Remove.
5075         (avr_devicespecs_file): Remove composing absolute path for specfile
5076         and its verbose info. Remove conditions to check specs-file,
5078 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
5080         PR rtl-optimization/72821
5081         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
5082         just return false for them.
5084 2016-08-08  Alan Modra  <amodra@gmail.com>
5086         PR target/72771
5087         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
5088         toc refs created during reload.  Update function comment.
5090 2016-08-08  Alan Modra  <amodra@gmail.com>
5092         PR target/72802
5093         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
5094         alternatives.  Put loads first, then stores, and reg/reg moves
5095         within same class later.  Delete attr length.
5097 2016-08-08  Alan Modra  <amodra@gmail.com>
5099         PR target/72802
5100         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
5101         (mem_operand_ds_form): New predicate.
5102         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
5103         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
5104         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
5105         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
5106         (extendsfdf2_fpr): Replace o constraint with wY.
5108 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
5110         * tree-ssa-threadbackward.c: Include tree-inline.h
5111         (profitable_jump_thread_path): Use estimate_num_insns to estimate
5112         size of copied block; for cold paths reduce duplication.
5113         (find_jump_threads_backwards): Remove redundant tests.
5114         (pass_thread_jumps::gate): Enable for -Os.
5116 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
5118         PR c/72816
5119         * stor-layout.c (layout_decl): Fix up formatting.
5120         (relayout_decl): Allow DECL to be FIELD_DECL.
5122 2016-08-07  Alan Modra  <amodra@gmail.com>
5124         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
5126 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
5128         * data-streamer-in.c (streamer_read_wide_int): New.
5129         (streamer_read_widest_int): Renamed function.
5130         * data-streamer-out.c (streamer_write_wide_int): New
5131         (streamer_write_widest_int): Renamed function.
5132         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
5133         data-stream-in.c.
5134         (input_cfg): Call renamed function.
5135         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
5136         data-stream-out.c.
5137         (output_cfg): Call renamed function.
5138         * data-streamer.h: Add declarations.
5140 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5142         * tree-ssa-ccp.c (extend_mask): New param sgn.
5143         Remove ORing with wi::mask.
5144         (get_default_value): Adjust call to extend_mask to pass sign.
5145         (evaluate_stmt): Likewise.
5147 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
5149         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
5150         INT64_MAX.
5152 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5154         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
5155         transform if operand's type is pointer to function or method.
5157 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
5159         PR tree-optimization/18046
5160         * tree-ssa-threadedge.c: Include cfganal.h.
5161         (simplify_control_statement_condition): If simplifying a
5162         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
5163         with the dominating ASSERT_EXPR before handing it off to VRP.
5164         Mention that a CASE_LABEL_EXPR may be returned.
5165         (thread_around_empty_blocks): Adjust to handle
5166         simplify_control_statement_condition() returning a
5167         CASE_LABEL_EXPR.
5168         (thread_through_normal_block): Likewise.
5169         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
5170         a switch statement by trying to determine which case label
5171         will be taken.
5173 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
5175         PR rtl-optimization/69847
5176         * lra-constraints.c (process_invariant_for_inheritance): Save
5177         pattern instead of src.
5178         (remove_inheritance_pseudos): Use the pattern.  Add assert.
5180 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
5182         * input.c (string_concat::string_concat): New constructor.
5183         (string_concat_db::string_concat_db): New constructor.
5184         (string_concat_db::record_string_concatenation): New method.
5185         (string_concat_db::get_string_concatenation): New method.
5186         (string_concat_db::get_key_loc): New method.
5187         (class auto_cpp_string_vec): New class.
5188         (get_substring_ranges_for_loc): New function.
5189         (get_source_range_for_substring): New function.
5190         (get_num_source_ranges_for_substring): New function.
5191         (class selftest::lexer_test_options): New class.
5192         (struct selftest::lexer_test): New struct.
5193         (class selftest::ebcdic_execution_charset): New class.
5194         (selftest::ebcdic_execution_charset::s_singleton): New variable.
5195         (selftest::lexer_test::lexer_test): New constructor.
5196         (selftest::lexer_test::~lexer_test): New destructor.
5197         (selftest::lexer_test::get_token): New method.
5198         (selftest::assert_char_at_range): New function.
5199         (ASSERT_CHAR_AT_RANGE): New macro.
5200         (selftest::assert_num_substring_ranges): New function.
5201         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
5202         (selftest::assert_has_no_substring_ranges): New function.
5203         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
5204         (selftest::test_lexer_string_locations_simple): New function.
5205         (selftest::test_lexer_string_locations_ebcdic): New function.
5206         (selftest::test_lexer_string_locations_hex): New function.
5207         (selftest::test_lexer_string_locations_oct): New function.
5208         (selftest::test_lexer_string_locations_letter_escape_1): New function.
5209         (selftest::test_lexer_string_locations_letter_escape_2): New function.
5210         (selftest::test_lexer_string_locations_ucn4): New function.
5211         (selftest::test_lexer_string_locations_ucn8): New function.
5212         (selftest::uint32_from_big_endian): New function.
5213         (selftest::test_lexer_string_locations_wide_string): New function.
5214         (selftest::uint16_from_big_endian): New function.
5215         (selftest::test_lexer_string_locations_string16): New function.
5216         (selftest::test_lexer_string_locations_string32): New function.
5217         (selftest::test_lexer_string_locations_u8): New function.
5218         (selftest::test_lexer_string_locations_utf8_source): New function.
5219         (selftest::test_lexer_string_locations_concatenation_1): New
5220         function.
5221         (selftest::test_lexer_string_locations_concatenation_2): New
5222         function.
5223         (selftest::test_lexer_string_locations_concatenation_3): New
5224         function.
5225         (selftest::test_lexer_string_locations_macro): New function.
5226         (selftest::test_lexer_string_locations_stringified_macro_argument):
5227         New function.
5228         (selftest::test_lexer_string_locations_non_string): New function.
5229         (selftest::test_lexer_string_locations_long_line): New function.
5230         (selftest::test_lexer_char_constants): New function.
5231         (selftest::input_c_tests): Call the new test functions once per
5232         case within the line_table test matrix.
5233         * input.h (struct string_concat): New struct.
5234         (struct location_hash): New struct.
5235         (class string_concat_db): New class.
5236         * substring-locations.h: New header.
5238 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
5240         PR tree-optimization/72810
5241         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
5242         the type of the case labels when truncating.
5244 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
5246         PR Target/72819
5247         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
5248         (aarch64_fp16_ptr_type_node): Likewise.
5249         * config/aarch64/aarch64-simd-builtins.c
5250         (aarch64_fp16_ptr_type_node): Define.
5251         (aarch64_init_fp16_types): New, refactored out of...
5252         (aarch64_init_builtins): ...here, update to call
5253         aarch64_init_fp16_types.
5254         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
5255         HFmode.
5256         (aapcs_vfp_sub_candidate): Likewise.
5258 2016-08-05  Martin Liska  <mliska@suse.cz>
5259             Joshua Cranmer  <Pidgeot18@gmail.com>
5261         * gcov.c (line_t::has_block): New function.
5262         (enum loop_type): New enum.
5263         (handle_cycle): New function.
5264         (unblock): Likewise.
5265         (circuit): Likewise.
5266         (get_cycles_count): Likewise.
5267         (accumulate_line_counts): Use new loop detection algorithm.
5269 2016-08-05  Martin Liska  <mliska@suse.cz>
5271         * gcov.c (output_intermediate_file): Rename
5272         function_info::line_next to next_file_fn.
5273         (process_file): Likewise.
5274         (read_graph_file): Likewise.
5275         (accumulate_line_counts): Likewise.
5276         (output_lines): Likewise.
5278 2016-08-05  Richard Biener  <rguenther@suse.de>
5280         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
5281         restriction on threading to a loop header.
5283 2016-08-05  Richard Biener  <rguenther@suse.de>
5285         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
5286         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
5287         adjust loop info accordingly.
5289 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
5291         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
5292         before folding call to __builtin_constant_p with parameters to false.
5294 2016-08-05  Alan Modra  <amodra@gmail.com>
5296         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
5297         code accidentally committed 2016-05-02 providing class when given
5298         NO_REGS.
5300 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
5302         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
5303         the case label ranges that partially overlap with OP's value
5304         range.
5306 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
5308         PR target/72805
5309         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
5310         Cast builtin function result to __mmask16 instead of __mmask8.
5311         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
5312         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
5313         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
5315 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
5317         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
5318         (ASSERT_TRUE_AT): New macro.
5319         (ASSERT_FALSE): Reimplement in terms of...
5320         (ASSERT_FALSE_AT): New macro.
5321         (ASSERT_STREQ_AT): Fix typo in comment.
5323 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
5325         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
5326         labels are exhaustive, designate the label with the widest
5327         range to be the default label.
5329 2016-08-04  Andrew Pinski  <apinski@cavium.com>
5331         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
5332         (thunderx_tunings): Use thunderx_vector_cost instead of
5333         generic_vector_cost.
5335 2016-08-04  Martin Liska  <mliska@suse.cz>
5337         * gcov.c (main): Fix GNU coding style.
5338         (output_intermediate_file): Likewise.
5339         (process_file): Likewise.
5340         (generate_results): Likewise.
5341         (release_structures): Likewise.
5342         (create_file_names): Likewise.
5343         (find_source): Likewise.
5344         (read_graph_file): Likewise.
5345         (find_exception_blocks): Likewise.
5346         (canonicalize_name): Likewise.
5347         (make_gcov_file_name): Likewise.
5348         (mangle_name): Likewise.
5349         (accumulate_line_counts): Likewise.
5350         (output_branch_count): Likewise.
5351         (read_line): Likewise.
5353 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5355         PR rtl-optimization/71779
5356         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
5357         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
5358         or if it was truncated.
5360         PR rtl-optimization/70903
5361         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
5363 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
5365         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
5366         accessing SSA_NAME_PTR_INFO.
5368 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
5370         PR 70677
5371         * common/config/avr/avr-common.c (avr_option_optimization_table)
5372         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
5374 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
5376         PR 55181
5377         * config/avr/avr.md: New pattern to work around do_store_flag
5378         generating shift instructions for bit extractions.
5380 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
5382         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
5383         BITMAP_ALLOC.
5384         (add_equivalence): Likewise.
5385         (get_value_range): Allocate value range with vrp_value_range_pool.
5386         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
5387         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
5389 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
5391         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
5392         the default for the rs6000 port.
5394 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5396         PR middle-end/71876
5397         * calls.c (special_function_p): Remove special handling of
5398         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
5399         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
5400         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
5402 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
5404         PR middle-end/72778
5405         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
5406         Don't stop on regular insns.
5408 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
5410         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
5411         size to DImode boundary.
5412         (nvptx_propagate): Likewise.
5414 2016-08-03  Alan Modra  <amodra@gmail.com>
5416         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
5417         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
5418         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
5419         from -mefficient-unaligned-vector.  Note that this affects fp too.
5421 2016-08-03  Alan Modra  <amodra@gmail.com>
5423         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
5424         cost more.
5426 2016-08-03  Alan Modra  <amodra@gmail.com>
5428         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
5429         to a reg.  Localize vars.
5431 2016-08-03  Alan Modra  <amodra@gmail.com>
5433         * config/rs6000/rs6000.opt: Remove negatives from help strings
5434         and comments.
5436 2016-08-03  Alan Modra  <amodra@gmail.com>
5438         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
5439         Delete duplicated code.
5441 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
5443         PR middle-end/72778
5444         * lra-spills.c (regno_in_use_p): New.
5445         (lra_final_code_change): Use it.
5447 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
5449         PR rtl-optimization/69847
5450         * lra-int.h (struct lra-reg): Use restore_rtx instead of
5451         restore_regno.
5452         (lra_rtx_hash): New.
5453         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
5454         of restore_regno.
5455         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
5456         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
5457         * lra-spills.c (lra_final_code_change): Don't delete insn when the
5458         next insn is USE with the same reg as the current insn source.
5459         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
5460         of restore_regno.
5461         (lra_constraints_init): Call initiate_invariants.
5462         (lra_constraints_finish): Call finish_invariants.
5463         (struct invariant, invariant_t, invariant_ptr_t): New.
5464         (const_invariant_ptr_t, invariants, invariants_pool): New.
5465         (invariant_table, invariant_hash, invariant_eq_p): New.
5466         (insert_invariant, initiate_invariants, finish_invariants): New.
5467         (clear_invariants, invalid_invariant_regs): New.
5468         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
5469         instead of restore_regno.
5470         (invariant_p, process_invariant_for_inheritance): New.
5471         (inherit_in_ebb): Implement invariant inheritance.
5472         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
5473         (remove_inheritance_pseudos): Implement undoing invariant
5474         inheritance.
5475         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
5476         instead of restore_regno.
5477         * lra-assigns.c (regno_live_length): New.
5478         (reload_pseudo_compare_func): Use regno_live_length.
5479         (assign_by_spills): Use restore_rtx instead of restore_regno.
5480         (lra_assign): Ditto.  Initiate regno_live_length.
5482 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
5484         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
5485         __builtin_aarch64_fmindf.
5487 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
5489         PR tree-optimization/34114
5490         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
5491         information for more control IVs.
5493 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
5495         PR tree-optimization/34114
5496         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
5497         PLUS_EXPR case.  Handle SSA_NAME case.
5499 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
5501         * config/aarch64/aarch64-simd-builtins.def
5502         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
5503         (__builtin_aarch64_fmaxdf): Likewise.
5504         (__builtin_aarch64_smin_nandf): Likewise.
5505         (__builtin_aarch64_smax_nandf): Likewise.
5506         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
5507         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
5508         (<fmaxmin><mode>3): ...this.
5509         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
5510         (vminnm_f64): Likewise.
5511         (vmin_f64): Likewise.
5512         (vmax_f64): Likewise.
5513         * config/aarch64/iterators.md (FMAXMIN): Merge with...
5514         (FMAXMIN_UNS): ...this.
5515         (fmaxmin): Merged with
5516         (fmaxmin_op): ...this...
5517         (maxmin_uns_op): ...in to this.
5519 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
5521         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5522         Add support for vec_extract on vector float, vector int, vector
5523         short, and vector char vector types.
5524         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5525         vector float, vector int, vector short, and vector char
5526         optimizations on 64-bit ISA 2.07 systems for both constant and
5527         variable element numbers.
5528         (rs6000_split_vec_extract_var): Likewise.
5529         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
5530         Altivec registers on ISA 2.07 and above.
5531         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
5532         which never was matched due to the split occuring before register
5533         allocation (and the code would not have worked on little endian
5534         systems if it did match).  Allow extracts to go to the Altivec
5535         registers if ISA 2.07 (power8).  Change from using "" around the
5536         C++ code to using {}'s.
5537         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
5538         vec_extracts when the vector is in memory.
5539         (vsx_extract_v4sf_var): New insn to optimize vector float
5540         vec_extracts when the element number is variable on 64-bit ISA
5541         2.07 systems.
5542         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
5543         for 64-bit ISA 2.07 as well as ISA 3.0.
5544         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
5545         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
5546         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
5547         optimize vector int, vector short, and vector char vec_extracts
5548         when the vector is in memory.
5549         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
5550         optimize vector int, vector short, and vector char vec_extracts
5551         when the element number is variable.
5553 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
5555         PR target/71948
5556         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
5557         does not overlap with other symbol flags.
5559 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
5561         * config/aarch64/aarch64.h (aarch64_frame):
5562         Remove padding0 and hardfp_offset.  Add locals_offset,
5563         initial_adjust, callee_adjust, callee_offset and final_adjust.
5564         * config/aarch64/aarch64.c (aarch64_layout_frame):
5565         Remove unused padding0 and hardfp_offset initializations.
5566         Choose frame layout and set frame variables accordingly.
5567         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
5568         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
5569         (aarch64_pop_regs): Likewise.
5570         (aarch64_expand_prologue): Remove all decision code, just emit
5571         prolog according to frame variables.
5572         (aarch64_expand_epilogue): Remove all decision code, just emit
5573         epilog according to frame variables.
5574         (aarch64_initial_elimination_offset): Use offset to local/arg area.
5576 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5578         PR target/72748
5579         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
5580         fix_debug_reg_uses after changing source register mode to
5581         V1TImode if source register is undefined.
5583 2015-08-01  Alan Hayward  <alan.hayward@arm.com>
5585         PR tree-optimization/71818
5586         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
5587         with non invariant evolutions
5589 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
5591         PR target/72767
5592         * config/avr/avr.md (length) [branch]: Correct insn length
5593         attribute for forward branches.
5595 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
5597         * doc/extend.texi (AVR Built-in Functions): Document
5598         __builtin_avr_nops.
5599         * config/avr/builtins.def (NOPS): New.
5600         * config/avr/avr.c (avr_expand_nops): New static function.
5601         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
5603 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5605         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
5606         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
5607         addresses.
5609 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
5611         * config/aarch64/aarch64.c (vulcan_tunings): Update
5612         vulcan L1 cache_line_size.
5614 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
5616         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
5617         function that takes a vector memory address, a hard register, an
5618         element number and a temporary base register, and recreates an
5619         address that points to the appropriate element within the vector.
5620         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
5621         (rs6000_split_vec_extract_var): Add support for the target of a
5622         vec_extract with variable element number being a scalar memory
5623         location.
5624         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
5625         swappable.
5626         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
5627         vsx_extract_<mode>_load insn with a new insn that optimizes
5628         storing either element to a memory location, using scratch
5629         registers to pick apart the vector and reconstruct the address.
5630         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
5631         (vsx_extract_<mode>_store): Rework alternatives to more correctly
5632         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
5633         store instruction.
5634         (vsx_extract_<mode>_var): Add support for extracting a variable
5635         element number from memory.
5637 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
5639         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
5640         when testing for compares against constants of the form 0xabab.
5642 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
5644         PR tree-optimization/57558
5645         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
5646         function.
5647         (vect_loop_versioning): Support versioning with niter assumptions.
5648         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
5649         (vect_get_loop_niters): New parameter.  Reimplement to support
5650         assumptions in loop niter info.
5651         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
5652         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
5653         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
5654         Support loop versioning for niters.
5655         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
5656         (vect_free_loop_info_assumptions): New function.
5657         (vectorize_loops): Free loop niter info for loops with flag
5658         LOOP_F_ASSUMPTIONS set if vectorization failed.
5659         * tree-vectorizer.h (struct _loop_vec_info): New field
5660         num_iters_assumptions.
5661         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
5662         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
5663         (LOOP_REQUIRES_VERSIONING): New macro.
5664         (vect_free_loop_info_assumptions): New decl.
5666 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
5668         * cfgloop.h (struct loop): New field constraints.
5669         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
5670         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
5671         functions.
5672         * cfgloop.c (alloc_loop): Initialize new field.
5673         * cfgloopmanip.c (copy_loop_info): Copy constraints.
5674         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
5675         Adjust niter analysis wrto loop constraints.
5676         * doc/loop.texi (@node Number of iterations): Add description for loop
5677         constraints.
5679 2016-07-29  Marek Polacek  <polacek@redhat.com>
5681         PR c/7652
5682         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
5683         (ix86_expand_round_builtin): Likewise.
5685 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
5686             Georg-Johann Lay  <avr@gjlay.de>
5688         PR rtl-optimization/71976
5689         * combine.c (get_last_value): Return 0 if the argument for which
5690         the function is called has a wider mode than the recorded value.
5692 2016-07-29  Marek Polacek  <polacek@redhat.com>
5694         PR c/7652
5695         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
5696         (altivec_expand_st_builtin): Likewise.
5698 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
5700         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
5701         introduced in r238381.
5703 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
5705         PR middle-end/68217
5706         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
5707         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
5709 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
5711         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
5712         New declaration.
5713         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5714         Add support for vec_extract of vector double or vector long having
5715         a variable element number on 64-bit ISA 2.07 systems or newer.
5716         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
5717         Likewise.
5718         (rs6000_split_vec_extract_var): New function to split a
5719         vec_extract built-in function with variable element number.
5720         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
5721         swappable.
5722         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
5723         (UNSPEC_VSX_EXTRACT): Likewise.
5724         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
5725         direct move instructions to be generated on 64-bit ISA 2.07
5726         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
5727         instruction.
5728         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
5729         arguments for vec_extract variable element.
5730         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
5731         vec_extract with variable element on V2DFmode and V2DImode
5732         vectors.
5733         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
5734         -mupper-regs-df requirement, since it isn't needed.
5735         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
5736         do direct moves on 64-bit systems, which allows optimization of
5737         vec_extract on 64-bit ISA 2.07 systems and newer.
5739 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
5740 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
5742          * config/aarch64/aarch64.md
5743         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
5744         statement and type.
5745         (<optab>qihi2_aarch64): Likewise, and split into two.
5746         (extendqihi2_aarch64): New.
5747         (zero_extendqihi2_aarch64): New.
5748         * config/aarch64/iterators.md (ldrxt): Remove.
5749         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
5750         uxtb/uxth.
5752 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
5754         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
5756 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
5758         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
5759         (aarch64_push_reg): New function to push 1 or 2 registers.
5760         (aarch64_pop_reg): New function to pop 1 or 2 registers.
5761         (aarch64_expand_prologue): Use aarch64_push_regs.
5762         (aarch64_expand_epilogue): Use aarch64_pop_regs.
5764 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
5766         PR tree-optimization/71734
5767         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
5768         attribute instead of REF_LOOP and use it.
5769         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
5770         set it for Loops having non-zero safelen attribute.
5771         (ref_indep_loop_p): Pass zero as initial value for safelen.
5773 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
5775         PR middle-end/72657
5776         PR target/72683
5777         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
5778         call using chkp_gimple_call_builtin_p.
5779         (chkp_copy_bounds_for_assign): Likewise.
5781 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5783         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
5784         * config/arm/arm-protos.h (struct tune_params): Likewise.
5785         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
5786         (cortex_a9_sched_adjust_cost): Likewise.
5787         (fa726te_sched_adjust_cost): Likewise.
5788         (arm_adjust_cost): Likewise.
5789         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
5790         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
5791         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
5792         * config/i386/i386.c (ix86_adjust_cost): Likewise.
5793         * config/ia64/ia64.c: Likewise.
5794         * config/m68k/m68k.c: Likewise.
5795         * config/mep/mep.c (mep_adjust_cost): Likewise.
5796         * config/microblaze/microblaze.c (microblaze_adjust_cost):
5797         * Likewise.
5798         * config/mips/mips.c (mips_adjust_cost): Likewise.
5799         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
5800         * Likewise.
5801         * config/pa/pa.c (pa_adjust_cost): Likewise.
5802         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
5803         (rs6000_debug_adjust_cost): Likewise.
5804         * config/sh/sh.c (sh_adjust_cost): Likewise.
5805         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
5806         (hypersparc_adjust_cost): Likewise.
5807         (sparc_adjust_cost): Likewise.
5808         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
5809         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
5810         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
5811         * Likewise.
5812         * config/visium/visium.c (visium_adjust_cost): Likewise.
5813         * doc/tm.texi: Regenerate.
5814         * haifa-sched.c (dep_cost_1): Adjust.
5815         * target.def: Merge adjust_cost and adjust_cost_2.
5817 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5819         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
5821 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5823         * store-motion.c (struct st_expr): Make pattern_regs a vector.
5824         (extract_mentioned_regs): Append to a vector instead of
5825         returning a rtx_expr_list.
5826         (st_expr_entry): Adjust.
5827         (free_st_expr_entry): Likewise.
5828         (store_ops_ok): Likewise.
5829         (store_killed_in_insn): Likewise.
5830         (find_moveable_store): Likewise.
5832 2016-07-28  Martin Liska  <mliska@suse.cz>
5834         PR gcov-profile/68025
5835         * tree-profile.c (tree_profiling): Respect
5836         no_profile_instrument_function attribute.
5837         * doc/extend.texi: Document no_profile_instrument_function
5838         attribute.
5840 2016-07-28  Martin Liska  <mliska@suse.cz>
5842         PR rtl-optimization/70944
5843         * combine.c (make_compound_operation):
5844         Do not allow make_compound_operation for vector mode
5846 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
5848         PR middle-end/71994
5849         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
5850          before calling get_ops.
5852 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5854         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
5855         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
5856         (BITS_PER_UNIT_LOG): Remove.
5857         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
5858         * expr.c (expand_assignment): Likewise.
5859         * stor-layout.c (initialize_sizetypes): Likewise.
5861 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
5863         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
5864         signature of rs6000_expand_vector_extract so that the element
5865         number is a RTX instead of a constant integer.
5866         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
5867         Likewise.
5868         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
5869         (altivec_expand_vec_ext_builtin): Likewise.
5870         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
5871         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
5872         MFVSRLD instruction.
5874 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
5876         * input.c (get_pure_location): Move here from tree.c.
5877         (make_location): Likewise.  Add header comment.
5878         (selftest::test_accessing_ordinary_linemaps): Verify
5879         pure_location_p, make_location, get_location_from_adhoc_loc and
5880         get_range_from_loc.
5881         * input.h (get_pure_location): Move declaration here from tree.h.
5882         (get_finish): Likewise for inline function.
5883         (make_location): Likewise for declaration.
5884         * tree.c (get_pure_location): Move to input.c.
5885         (make_location): Likewise.
5886         * tree.h (get_pure_location): Move declaration to tree.h.
5887         (get_finish): Likewise for inline function.
5888         (make_location): Likewise for declaration.
5890 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5892         PR middle-end/71078
5893         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
5895 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
5897         * system.h (STATIC_ASSERT): Use static_assert if building
5898         with C++11 onwards.
5900 2016-07-27  Richard Biener  <rguenther@suse.de>
5902         PR tree-optimization/72517
5903         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
5904         Revert change to not compute read-read dependences.
5906 2016-07-27  Richard Biener  <rguenther@suse.de>
5908         * predict.c (set_even_probabilities): Make nedges unsigned.
5910 2016-07-27  Martin Liska  <mliska@suse.cz>
5912         * predict.c (set_even_probabilities): Handle unlikely edges.
5913         (combine_predictions_for_bb): Likewise.
5915 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
5917         PR target/71869
5918         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
5919         __float128 support when we don't have hardware support, so that
5920         the IEEE built-in functions like isgreater, first call __unordkf3
5921         to make sure neither operand is a NaN, and if both operands are
5922         ordered, do the normal comparison.
5924 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
5926         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
5927         name.
5928         (extract_code_and_val_from_cond_with_ops): Verify that name is
5929         either cond_op0 or cond_op1.
5931 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
5933         PR tree-optimization/18046
5934         * genmodes.c (emit_mode_size_inline): Emit an assert that
5935         verifies that mode is a valid array index.
5936         (emit_mode_nuinits_inline): Likewise.
5937         (emit_mode_inner_inline): Likewise.
5938         (emit_mode_unit_size_inline): Likewise.
5939         (emit_mode_unit_precision_inline): Likewise.
5940         * tree-vrp.c: Include params.h.
5941         (find_switch_asserts): Register edge assertions for the default
5942         label which correspond to the anti-ranges of each case label.
5943         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
5944         * doc/invoke.texi: Document it.
5946 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5948         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
5949         and unnecessary call to gimple_bb.
5951 2016-07-26  Richard Biener  <rguenther@suse.de>
5953         PR rtl-optimization/71984
5954         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
5955         for VOIDmode.
5957 2016-07-26  Richard Biener  <rguenther@suse.de>
5959         PR middle-end/72517
5960         * expmed.c (extract_bit_field_1): Constrain the vector mode
5961         with element size matching the extraction mode size when
5962         choosing a better vector mode to do the extraction from.
5964 2016-07-26  Richard Biener  <rguenther@suse.de>
5965             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5967         PR middle-end/70920
5968         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
5969         pattern.
5971 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5973         * tree-ssa-structalias.c (struct scc_info): Change types of
5974         members to auto_sbitmap and auto_vec.
5975         (scc_info::scc_info): New constructor.
5976         (scc_info::~scc_info): New destructor.
5977         (init_scc_info): Remove.
5978         (free_scc_info): Remove.
5979         (find_indirect_cycles): Adjust.
5980         (perform_var_substitution): Likewise.
5981         (free_var_substitution_info): Likewise.
5983 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5985         * tree-outof-ssa.c (struct elim_graph): Change type of members
5986         to auto_vec and auto_sbitmap.
5987         (elim_graph::elim_graph): New constructor.
5988         (delete_elim_graph): Remove.
5989         (expand_phi_nodes): Adjust.
5991 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5993         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
5994         (new_elim_graph): Adjust.
5995         (clear_elim_graph): Likewise.
5996         (delete_elim_graph): Likewise.
5997         (elim_graph_size): Likewise.
5998         (elim_graph_add_node): Likewise.
5999         (elim_graph_add_edge): Likewise.
6000         (elim_graph_remove_succ_edge): Likewise.
6001         (eliminate_name): Likewise.
6002         (eliminate_build): Likewise.
6003         (elim_forward): Likewise.
6004         (elim_unvisited_predecessor): Likewise.
6005         (elim_backward): Likewise.
6006         (elim_create): Likewise.
6007         (eliminate_phi): Likewise.
6008         (expand_phi_nodes): Likewise.
6010 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6012         * bt-load.c (compute_out): Use auto_sbitmap class.
6013         (link_btr_uses): Likewise.
6014         * cfganal.c (mark_dfs_back_edges): Likewise.
6015         (post_order_compute): Likewise.
6016         (inverted_post_order_compute): Likewise.
6017         (pre_and_rev_post_order_compute_fn): Likewise.
6018         (single_pred_before_succ_order): Likewise.
6019         * cfgexpand.c (pass_expand::execute): Likewise.
6020         * cfgloop.c (verify_loop_structure): Likewise.
6021         * cfgloopmanip.c (fix_bb_placements): Likewise.
6022         (remove_path): Likewise.
6023         (update_dominators_in_loop): Likewise.
6024         * cfgrtl.c (break_superblocks): Likewise.
6025         * ddg.c (check_sccs): Likewise.
6026         (create_ddg_all_sccs): Likewise.
6027         * df-core.c (df_worklist_dataflow): Likewise.
6028         * dse.c (dse_step3): Likewise.
6029         * except.c (eh_region_outermost): Likewise.
6030         * function.c (thread_prologue_and_epilogue_insns): Likewise.
6031         * gcse.c (prune_expressions): Likewise.
6032         (prune_insertions_deletions): Likewise.
6033         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
6034         * graph.c (draw_cfg_nodes_no_loops): Likewise.
6035         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
6036         * lcm.c (compute_earliest): Likewise.
6037         (compute_farthest): Likewise.
6038         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
6039         (unroll_loop_runtime_iterations): Likewise.
6040         (unroll_loop_stupid): Likewise.
6041         * lower-subreg.c (decompose_multiword_subregs): Likewise.
6042         * lra-lives.c: Likewise.
6043         * lra.c (lra): Likewise.
6044         * modulo-sched.c (schedule_reg_moves): Likewise.
6045         (optimize_sc): Likewise.
6046         (get_sched_window): Likewise.
6047         (sms_schedule_by_order): Likewise.
6048         (check_nodes_order): Likewise.
6049         (order_nodes_of_sccs): Likewise.
6050         (order_nodes_in_scc): Likewise.
6051         * recog.c (split_all_insns): Likewise.
6052         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
6053         * reload1.c (reload): Likewise.
6054         * sched-rgn.c (haifa_find_rgns): Likewise.
6055         (split_edges): Likewise.
6056         (compute_trg_info): Likewise.
6057         * sel-sched.c (init_seqno): Likewise.
6058         * store-motion.c (remove_reachable_equiv_notes): Likewise.
6059         * tree-into-ssa.c (update_ssa): Likewise.
6060         * tree-ssa-live.c (live_worklist): Likewise.
6061         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
6062         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
6063         * Likewise.
6064         (try_peel_loop): Likewise.
6065         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
6066         * Likewise.
6067         * tree-ssa-pre.c (compute_antic): Likewise.
6068         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
6069         * tree-stdarg.c (reachable_at_most_once): Likewise.
6070         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
6071         * var-tracking.c (vt_find_locations): Likewise.
6073 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6075         * sbitmap.h (auto_sbitmap): New class.
6077 2016-07-26  Alan Modra  <amodra@gmail.com>
6079         PR target/72103
6080         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
6081         sri->t_icode.
6083 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
6085         * input.c (selftest::temp_source_file::temp_source_file): Fix
6086         missing "%s" in fprintf.
6088 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
6090         PR middle-end/71732
6091         * cselib.c (cselib_process_insn): Invalidate argument slots for
6092         const/pure calls.
6094 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6096         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
6097         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
6098         vmulxh_lane_f16, vmulxh_laneq_f16): New.
6100 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6102         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6103         * config/aarch64/aarch64.md (fma, fnma): Support HF.
6104         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
6106 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6108         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6109         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
6110         New.
6111         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
6112         (add<mode>3): Likewise.
6113         (sub<mode>3): Likewise.
6114         (mul<mode>3): Likewise.
6115         (div<mode>3): Likewise.
6116         (*div<mode>3): Likewise.
6117         (<fmaxmin><mode>3): Extend to HF.
6118         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
6119         (fabd<mode>3): Likewise.
6120         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
6121         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
6122         (aarch64_fmulx<mode>): Likewise.
6123         (aarch64_fac<optab><mode>): Likewise.
6124         (aarch64_frecps<mode>): Likewise.
6125         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
6126         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
6127         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
6128         (VSDQ_HSDI): Support HI.
6129         (fcvt_target, FCVT_TARGET): Likewise.
6130         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
6131         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
6132         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
6133         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
6134         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
6135         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
6136         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
6137         vrsqrtsh_f16): New.
6139 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6141         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
6142         * config/aarch64/aarch64-builtins.c (hi_UP): New.
6143         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6144         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
6145         mode.
6146         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
6147         (aarch64_cm<optab><mode>): Likewise.
6148         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
6149         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
6150         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
6151         (sqrt<mode>2): Likewise.
6152         (*sqrt<mode>2): Likewise.
6153         (abs<mode>2): Likewise.
6154         (<optab><mode>hf2): New pattern for HF mode.
6155         (<optab>hihf2): Likewise.
6156         * config/aarch64/arm_neon.h: Include arm_fp16.h.
6157         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
6158         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
6159         Support HF mode.
6160         * config/aarch64/arm_fp16.h: New file.
6161         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
6162         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
6163         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
6164         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
6165         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
6166         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
6167         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
6168         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
6169         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
6170         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
6171         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
6172         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
6173         vsqrth_f16): New.
6175 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6177         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
6178         reduc_smin_scal_): Use VDQIF_F16.
6179         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
6180         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
6181         Use VHSDF.
6182         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
6183         * config/aarch64/iterators.md (VDQIF_F16): New.
6184         (vp): Support HF modes.
6185         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
6186         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
6188 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6190         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
6191         "*aarch64_mulx_elt_from_dup<mode>".
6192         (*aarch64_mul3_elt<mode>): Update schedule type.
6193         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
6194         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
6195         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
6196         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
6197         (f, fp): Support HF modes.
6198         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
6199         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
6200         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
6201         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
6202         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
6203         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
6205 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6207         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6208         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
6209         modes.
6210         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
6211         vfmsq_f16): New.
6213 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6215         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6216         * config/aarch64/aarch64-simd.md
6217         (aarch64_rsqrts<mode>): Extend to HF modes.
6218         (fabd<mode>3): Likewise.
6219         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
6220         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
6221         (aarch64_<maxmin_uns>p<mode>): Likewise.
6222         (<su><maxmin><mode>3): Likewise.
6223         (<maxmin_uns><mode>3): Likewise.
6224         (<fmaxmin><mode>3): Likewise.
6225         (aarch64_faddp<mode>): Likewise.
6226         (aarch64_fmulx<mode>): Likewise.
6227         (aarch64_frecps<mode>): Likewise.
6228         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
6229         (add<mode>3): Extend to HF modes.
6230         (sub<mode>3): Likewise.
6231         (mul<mode>3): Likewise.
6232         (div<mode>3): Likewise.
6233         (*div<mode>3): Likewise.
6234         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
6235         HF, V4HF and V8HF.
6236         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
6237         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
6238         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
6239         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
6240         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
6241         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
6242         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
6243         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
6244         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
6245         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
6246         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
6247         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
6248         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
6249         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
6251 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6253         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
6254         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6255         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
6256         (neg<mode>2): Likewise.
6257         (abs<mode>2): Likewise.
6258         (<frint_pattern><mode>2): Likewise.
6259         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
6260         (<optab><VDQF:mode><fcvt_target>2): Likewise.
6261         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
6262         (ftrunc<VDQF:mode>2): Likewise.
6263         (<optab><fcvt_target><VDQF:mode>2): Likewise.
6264         (sqrt<mode>2): Likewise.
6265         (*sqrt<mode>2): Likewise.
6266         (aarch64_frecpe<mode>): Likewise.
6267         (aarch64_cm<optab><mode>): Likewise.
6268         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
6269         HF, V4HF and V8HF.
6270         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
6271         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
6272         (stype): New.
6273         * config/aarch64/arm_neon.h (vdup_n_f16): New.
6274         (vdupq_n_f16): Likewise.
6275         (vld1_dup_f16): Use vdup_n_f16.
6276         (vld1q_dup_f16): Use vdupq_n_f16.
6277         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
6278         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
6279         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
6280         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
6281         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
6282         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
6283         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
6284         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
6285         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
6286         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
6287         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
6288         vsqrt_f16, vsqrtq_f16): New.
6290 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6292         * config/aarch64/aarch64-simd.md
6293         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
6294         (aarch64_ext<mode>): Likewise.
6295         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
6296         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
6297         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
6298         and V8HFmode.
6299         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
6300         float16x8_t.
6301         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
6302         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
6303         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
6304         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
6305         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
6306         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
6307         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
6308         New.
6309         (vmov_n_f16): Reimplement using vdup_n_f16.
6310         (vmovq_n_f16): Reimplement using vdupq_n_f16..
6312 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6314         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
6315         "frame_related_p".  Generate CFA annotation when it's necessary.
6316         (aarch64_expand_prologue): Use aarch64_add_constant.
6317         (aarch64_expand_epilogue): Likewise.
6318         (aarch64_output_mi_thunk): Pass "false" when calling
6319         aarch64_add_constant.
6321 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6323         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
6324         sequences.
6326 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6328         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
6329         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
6330         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
6331         (aarch64_build_constant): Delete.
6333 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
6335         Revert
6336         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
6338         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
6339         flag_toplevel_reorder.
6341 2016-07-25  Richard Biener  <rguenther@suse.de>
6343         * cgraph.c (cgraph_node::verify_node): Compare against builtin
6344         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
6345         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
6346         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
6347         (streamer_get_builtin_tree): Likewise.
6348         (streamer_write_builtin): Likewise.
6349         * lto-streamer.h (LTO_builtin_decl): Remove.
6350         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
6351         (lto_input_scc): Remove LTO_builtin_decl handling.
6352         (lto_input_tree_1): Liekwise.
6353         * lto-streamer-out.c (lto_output_tree_1): Remove special
6354         handling of builtins.
6355         (DFS::DFS): Likewise.
6356         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
6357         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
6358         assert.
6359         (streamer_write_builtin): Remove.
6361 2016-07-25  Martin Liska  <mliska@suse.cz>
6363         * lto-cgraph.c (input_symtab): Don't call get_working_sets
6364         if flag_auto_profile is set to true.
6366 2016-07-25  Martin Liska  <mliska@suse.cz>
6368         PR gcov-profile/71868
6369         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
6370         have a function with multiple latches, count them all.
6372 2016-07-25  Martin Liska  <mliska@suse.cz>
6374         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
6376 2016-07-25  Martin Liska  <mliska@suse.cz>
6378         PR tree-optimization/71987
6379         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
6380         just for SSA_NAMEs. Fix GNU coding style.
6382 2016-07-25  Martin Liska  <mliska@suse.cz>
6384         PR gcov-profile/64874
6385         * gcov-io.h: Update command about file format.
6386         * gcov-iov.c (main): Adapt the numbering scheme.
6388 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
6390         PR middle-end/66726
6391         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
6392         whose result is used in PHI.
6393         (final_range_test_p): Likewise.
6394         (maybe_optimize_range_tests): Likewise.
6396 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
6398         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6399         Reformat two multi-line strings.
6401 2016-07-22  Martin Sebor  <msebor@redhat.com>
6403         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
6405 2016-07-22  Martin Sebor  <msebor@redhat.com>
6407         PR c/71560
6408         * doc/extend.texi (Compound Literals): Correct and clarify.
6409         (Cast to Union): Same.
6411 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6413         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
6414         comments to explain why certain error messages make mention of
6415         undocumented options.
6416         (rs6000_invalid_builtin): Change error messages to replace mention
6417         of undocumented options with mention of the -mcpu=power9 option
6418         that enables those undocumented options.
6419         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
6420         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
6421         definition of this macro to correct an existing error.
6422         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
6423         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
6424         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
6425         descriptions of built-in functions so that they depend on
6426         -mcpu=power9 instead of on the corresponding undocumented flags.
6427         * doc/invoke.texi (Option Summary):  Remove all mention of newly
6428         undocumented flags.
6429         (IBM RS/6000 and PowerPC Options): Likewise.
6430         * doc/md.texi (Constraints for Particuliar Machines): Remove all
6431         mention of newly undocumented flags.
6433 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
6435         * ipa-cp.c (determine_versionability): Do not create constprop clones,
6436         when target_clones attribute is set.
6438 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
6440         * common.opt (funsafe-loop-optimizations): Mark ignore.
6441         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
6442         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
6443         related code.
6444         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
6445         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
6447 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
6449         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
6450         Parameter.
6451         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
6452         Parameter.
6453         (number_of_iterations_exit): Warn missed loop optimization for
6454         possible infinite loops.
6456 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
6458         PR target/71216
6459         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
6460         when to emit a ".machine" pseudo-op.
6462 2016-07-22  Martin Liska  <mliska@suse.cz>
6464         PR gcov-profile/69028
6465         PR gcov-profile/62047
6466         * coverage.c (coverage_compute_lineno_checksum): Do not
6467         calculate checksum for fns w/o xloc.file.
6468         (coverage_compute_profile_id): Likewise.
6470 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
6472         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
6473         (avr_secondary_reload): ...and implementation.
6474         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
6475         * config/avr/avr.md (reload_in<mode>): Remove insns.
6476         (adjust_len) [lpm]: Remove insn attribute value.
6477         * config/avr/predicates.md (flash_operand): Remove insn predicate.
6479 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6481         PR middle-end/71876
6482         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
6483         attribute.
6484         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
6485         * calls.c (special_function_p): Remove the special handling of the
6486         "__builtin_" prefix.
6488 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6490         PR middle-end/71876
6491         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
6492         if STMT may be an alloca call.
6493         (gimple_alloca_call_p, alloca_call_p): Return only true for the
6494         builtin alloca call.
6495         * calls.h (gimple_maybe_alloca_call_p): New function.
6496         * tree-inline.c (inline_forbidden_p_stmt): Use
6497         gimple_maybe_alloca_call_p here.
6499 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
6501         * spellcheck-tree.c (best_macro_match::best_macro_match):
6502         Explictly specify the template arguments when invoking the base
6503         class constructor, to help older C++ compilers.
6505 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
6507         PR sanitizer/71953
6508         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
6509         before builtin_decl_implicit.
6511 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
6513         * optabs.c (emit_condiitonal_move): Short circuit for identical
6514         sources.
6516 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
6518         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
6519         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
6520         (noce_conversion_profitable_p): New.
6521         (noce_try_store_flag_constants): Use it.
6522         (noce_try_addcc): Likewise.
6523         (noce_try_store_flag_mask): Likewise.
6524         (noce_try_cmove): Likewise.
6525         (noce_try_cmove_arith): Likewise.
6526         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
6527         overwriting it.
6528         (noce_convert_multiple_sets): Move cost model to here, from...
6529         (bb_ok_for_noce_convert_multiple_sets) ...here.
6530         (noce_process_if_block): Update calls for above changes.
6531         (noce_find_if_block): Record new noce_if_info parameters.
6533 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
6535         * target.def (max_noce_ifcvt_seq_cost): New.
6536         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
6537         * doc/tm.texi: Regenerate.
6538         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
6539         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
6540         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
6541         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
6542         * doc/invoke.texi: Document new params.
6544 2016-07-21  Richard Biener  <rguenther@suse.de>
6546         PR tree-optimization/71947
6547         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
6548         ranges have useful limit_vr information.
6550 2016-07-21  Richard Biener  <rguenther@suse.de>
6552         * function-tests.c (build_trivial_generic_function): Set
6553         BLOCK_SUPERCONTEXT of DECL_INITIAL.
6554         * omp-low.c (create_omp_child_function): Likewise.
6555         (grid_expand_target_grid_body): Likewise.
6556         * cgraphunit.c (init_lowered_empty_function): Likewise.
6557         (cgraph_node::expand_thunk): Likewise.
6558         * tree-parloops.c (create_loop_fn): Likewise.
6559         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
6561 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6563         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
6564         in comment.
6566 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
6568         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
6569         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
6570         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
6571         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
6572         values for insn attribute.
6573         * config/avr/avr.c (avr_out_insert_notbit): New function.
6574         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
6575         ADJUST_LEN_INSV_NOTBIT_0/_7.
6576         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
6578 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
6580         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
6581         (chrec_convert_1, chrec_convert): Ditto.
6582         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
6583         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
6584         * tree-vrp.c (adjust_range_with_scev): Ditto.
6585         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
6586         (scev_var_range_cant_overflow): New function.
6587         (scev_probably_wraps_p): New parameter.  Call above function.
6588         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
6590 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
6592         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
6593         by removing computation of may_be_zero.
6595 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
6597         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
6599 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
6601         Improving concepts performance and diagnostics.
6602         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
6603         for constraint satisfaction and subsumption.
6604         * timevar.h (auto_timevar): New constructor that matches the push/pop
6605         pattern of usage in pt.c.
6607 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
6609         * hwint.h (HOST_WIDE_INT_0): New define.
6610         (HOST_WIDE_INT_0U): Ditto.
6611         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
6612         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
6613         * simplify-rtx.c: Ditto.
6614         * tree-object-size.c: Ditto.
6616 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6618         * config/s390/s390.c (s390_encode_section_info): Remove mode size
6619         check.
6621 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
6623         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
6624         * combine.c: Use HOST_WIDE_INT_M1U instead of
6625         ~(unsigned HOST_WIDE_INT) 0.
6626         * double-int.h: Ditto.
6627         * dse.c: Ditto.
6628         * dwarf2asm.c:Ditto.
6629         * expmed.c: Ditto.
6630         * genmodes.c: Ditto.
6631         * match.pd: Ditto.
6632         * read-rtl.c: Ditto.
6633         * tree-ssa-loop-ivopts.c: Ditto.
6634         * tree-ssa-loop-prefetch.c: Ditto.
6635         * tree-vect-generic.c: Ditto.
6636         * tree-vect-patterns.c: Ditto.
6637         * tree.c: Ditto.
6639 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6641         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
6642         constant addresses outside [0,0xc0] into a register.
6643         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
6644         cases where the base address register is unused after.
6645         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
6646         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
6647         (avr_out_store_psi_reg_disp_tiny): Same.
6649 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6651         Implement attribute progmem on reduced Tiny cores by adding
6652         flash offset 0x4000 to respective symbols.
6654         PR target/71948
6655         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
6656         documentation how it works on reduced Tiny cores.
6657         (AVR Named Address Spaces): No support for reduced Tiny.
6658         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
6659         (avr_address_tiny_pm_p): New static function.
6660         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
6661         if the address is in progmem.
6662         (avr_assemble_integer): Same.
6663         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
6664         for symbol_ref in progmem.
6665         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
6666         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
6667         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
6669 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
6671         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
6672         * configure: Regenerate.
6673         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
6674         (USE_THIN_ARCHIVES): New variable.
6675         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
6676         this archive as a thin archive.
6678 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
6680         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
6681         same location as last time, don't skip if we have fix-it hints.
6682         Clarify the skipping logic by converting it from one "if" clause
6683         to repeated "if" clauses.
6684         * spellcheck-tree.c: Include "cpplib.h".
6685         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
6686         (best_macro_match::best_macro_match): New constructor.
6687         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
6688         Move here from c/c-decl.c.
6689         (class best_macro_match): Move here from c/c-decl.c, converting
6690         from a typedef to a subclass, gaining a ctor.
6692 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6694         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
6695         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
6696         define...
6697         (avr_addr_space_diagnose_usage): ...and implementation.
6698         (avr_addr_space_supported_p): New function.
6699         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
6700         report bad address space usage if that space is supported.
6701         (avr_insert_attributes): Same.  No more complain about unsupported
6702         address spaces.
6703         * config/avr/avr-c.c (tm_p.h): Include it.
6704         (avr_cpu_cpp_builtins): Only define addr-space related built-in
6705         macro if avr_addr_space_supported_p.
6707 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
6709         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
6710         flag_toplevel_reorder.
6712 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
6714         * gcc-rich-location.c
6715         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
6716         a const char *.
6717         * gcc-rich-location.h
6718         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
6720 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6722         * target.def (addr_space): Add new diagnose_usage to hook vector.
6723         * targhooks.c (default_addr_space_diagnose_usage): Add default
6724         implementation and...
6725         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
6726         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
6727         is some address space, call targetm.addr_space.diagnose_usage.
6728         * doc/tm.texi.in (Named Address Spaces): Add anchor for
6729         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
6730         * doc/tm.texi: Regenerate.
6732 2016-07-20  Martin Liska  <mliska@suse.cz>
6734         PR middle-end/71898
6735         * graphite-isl-ast-to-gimple.c (later_of_the_two):
6736         Properly handly PHI stmts.
6738 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
6740         PR tree-optimization/71503
6741         PR tree-optimization/71683
6742         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
6743         and break.
6745 2016-07-20  Martin Liska  <mliska@suse.cz>
6747         * doc/invoke.texi (-fipa-ra): Document when the option is
6748         disabled. Fix a typo.
6750 2016-07-20  Martin Liska  <mliska@suse.cz>
6752         * Makefile.in: Include fibonacci_heap.c
6753         * fibonacci_heap.c: New file.
6754         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
6755         (fibonacci_heap::union_with): Fix deletion of the second heap.
6756         * selftest-run-tests.c (selftest::run_tests): Incorporate
6757         fibonacci heap tests.
6758         * selftest.h: Declare fibonacci_heap_c_tests.
6760 2016-07-20  Martin Liska  <mliska@suse.cz>
6762         * selftest-run-tests.c (selftest::run_tests): New function.
6763         * selftest.h (sreal_c_tests): Declare.
6764         * sreal.c (sreal_verify_basics): New function.
6765         (verify_aritmetics): Likewise.
6766         (sreal_verify_arithmetics): Likewise.
6767         (verify_shifting): Likewise.
6768         (sreal_verify_shifting): Likewise.
6769         (void sreal_c_tests): Likewise.
6771 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
6773         PR rtl-optimization/71916
6774         * cfgrtl.c (contains_no_active_insn_p): Return false also for
6775         bb which have a single succ fake edge.
6777 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
6779         PR debug/71855
6780         * dwarf2out.c (gen_subprogram_die): Only call
6781         gen_unspecified_parameters_die while dumping early dwarf.
6783 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
6785         PR middle-end/71874
6786         * gimple-fold.c (fold_builtin_memory_op): Use
6787         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
6789 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
6791         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
6792         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
6793         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
6794         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
6795         * combine.c: Ditto.
6796         * cse.c: Ditto.
6797         * dojump.c: Ditto.
6798         * double-int.c: Ditto.
6799         * dse.c: Ditto.
6800         * dwarf2out.c: Ditto.
6801         * expmed.c: Ditto.
6802         * expr.c: Ditto.
6803         * fold-const.c: Ditto.
6804         * function.c: Ditto.
6805         * fwprop.c: Ditto.
6806         * genmodes.c: Ditto.
6807         * hwint.c: Ditto.
6808         * hwint.h: Ditto.
6809         * ifcvt.c: Ditto.
6810         * loop-doloop.c: Ditto.
6811         * loop-invariant.c: Ditto.
6812         * loop-iv.c: Ditto.
6813         * match.pd: Ditto.
6814         * optabs.c: Ditto.
6815         * real.c: Ditto.
6816         * reload.c: Ditto.
6817         * rtlanal.c: Ditto.
6818         * simplify-rtx.c: Ditto.
6819         * stor-layout.c: Ditto.
6820         * toplev.c: Ditto.
6821         * tree-ssa-loop-ivopts.c: Ditto.
6822         * tree-vect-generic.c: Ditto.
6823         * tree-vect-patterns.c: Ditto.
6824         * tree.c: Ditto.
6825         * tree.h: Ditto.
6826         * ubsan.c: Ditto.
6827         * varasm.c: Ditto.
6828         * wide-int-print.cc: Ditto.
6829         * wide-int.cc: Ditto.
6830         * wide-int.h: Ditto.
6832 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
6834         * selftest.c (selftest::assert_streq): Handle NULL values of
6835         val_actual and val_expected.
6837 2016-07-19  Martin Jambor  <mjambor@suse.cz>
6839         PR fortran/71688
6840         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
6841         rather than cgraph_create_node to get a call graph node.
6843 2016-07-19  Richard Biener  <rguenther@suse.de>
6845         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
6846         handle all tcc_constant bases and valueize SSA names.
6847         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
6848         tcc_constant bases.
6850 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
6852         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
6853         the flags of the exit block and bb2, not just the entry block.
6855 2016-07-19  Richard Biener  <rguenther@suse.de>
6857         PR tree-optimization/71901
6858         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
6859         align member, group stuff with the bitfield.
6860         (vn_ref_op_align_unit): New inline.
6861         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
6862         record element alignment and operand 3 unchanged.
6863         (ao_ref_init_from_vn_reference): Adjust.
6864         (valueize_refs_1): Likewise.
6865         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6867 2016-07-19  Richard Biener  <rguenther@suse.de>
6869         PR tree-optimization/71908
6870         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
6871         symbolic constants in a more reliable way.
6873 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
6875         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
6876         comment.
6877         (vect_update_inits_of_drs): Likewise.
6878         (vect_create_cond_for_alias_checks): Likewise.
6879         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
6881 2016-07-19  Richard Biener  <rguenther@suse.de>
6883         PR lto/71907
6884         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
6885         with an abstract origin that is not an inlined function outer
6886         scope add a self-reference as abstract origin.
6887         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
6889 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
6891         PR target/71493
6892         * config/rs6000/rs6000.c (rs6000_function_value): Fix
6893         unintentional System V.4 structure return breakage for structures
6894         with a single floating point element.
6896 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
6898         PR tree-optimization/71734
6899         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
6900         contains REF, use it to check safelen, assume that safelen value
6901         must be greater 1, fix style.
6902         (ref_indep_loop_p_2): Add REF_LOOP argument.
6903         (ref_indep_loop_p): Pass LOOP as additional argument to
6904         ref_indep_loop_p_2.
6906 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6908         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
6909         allocation in the prologue.
6910         * explow.c (get_dynamic_stack_base): New function to return an address
6911         expression for the dynamic stack base.
6912         (get_dynamic_stack_size): New function to do the required dynamic stack
6913         space size calculations.
6914         (allocate_dynamic_stack_space): Use new functions.
6915         (align_dynamic_address): Move some code from
6916         allocate_dynamic_stack_space to new function.
6917         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
6919 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6921         * config/s390/s390.c (s390_encode_section_info): Always set
6922         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
6923         found.
6925 2016-07-18  Richard Biener  <rguenther@suse.de>
6927         PR tree-optimization/71893
6928         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
6929         for sizetype cast added by array_ref_element_size.
6930         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6932 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
6934         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
6935         register parameters.  Remove code to initialize argument pointer
6936         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
6937         using a pc-relative branch.  Cleanup conditional code.
6938         * config/pa/pa.md (call_mcount): New expander.
6939         (call_mcount_nonpic): New insn.
6940         (call_mcount_pic): New insn and split.
6941         (call_mcount_pic_post_reload): New insn.
6942         (call_mcount_64bit): New insn and split.
6943         (call_mcount_64bit_post_reload): New insn.
6945 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
6947         * config/avr/predicates.md (const_m255_to_m1_operand): New.
6948         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
6949         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
6950         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
6951         (*usum_widenqihi3, *udiff_widenqihi3)
6952         (*addhi3_zero_extend.const): New combiner insns.
6953         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
6954         just 1 bit is affected.
6955         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
6956         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
6958 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
6960         * omp-low.c (lower_omp_target): Mark data clauses with
6961         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
6962         zero-length subarrays.
6964 2016-07-15  Richard Biener  <rguenther@suse.de>
6966         PR tree-optimization/71881
6967         * tree-loop-distribution.c (destroy_loop): Remove blocks in
6968         reverse DOM order to make debug temp generation happy.
6970 2016-07-15  Richard Biener  <rguenther@suse.de>
6972         PR tree-optimization/71887
6973         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
6974         verify it is not zero for division / modulo handling.
6975         (value_replacement): Adjust.
6977 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
6978             Julian Brown  <julian@codesourcery.com>
6980         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
6981         * config/aarch64/aarch64-cost-tables.h
6982         (vulcan_extra_costs): New variable.
6983         * config/aarch64/aarch64.c
6984         (vulcan_addrcost_table): Likewise.
6985         (vulcan_regmove_cost): Likewise.
6986         (vulcan_vector_cost): Likewise.
6987         (vulcan_branch_cost): Likewise.
6988         (vulcan_tunings): Likewise.
6990 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
6992         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
6993         (output_in_order): Loop over undefined variables too.  Output them
6994         via assemble_undefined_decl.  Skip variables that correspond to hard
6995         registers or have value-exprs.
6996         * varpool.c (symbol_table::output_variables): Handle undefined
6997         variables together with defined ones.
6999 2016-07-15  Richard Biener  <rguenther@suse.de>
7001         * tree-ssa-pre.c (get_representative_for): Make sure to return
7002         the value number of SSA names.
7003         (phi_translate_1): get_representative_for cannot return NULL.
7004         (do_pre_regular_insertion): Remove redundant call to
7005         fully_constant_expression.
7006         (do_pre_partial_partial_insertion): Likewise.
7008 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
7010         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
7011         (derive_simple_iv_with_niters): New function.
7012         (simple_iv): Rewrite using simple_iv_with_niters.
7013         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
7014         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
7015         function.
7016         (number_of_iterations_exit): Rewrite using above function.
7017         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
7018         Decl.
7020 2016-07-15  Richard Biener  <rguenther@suse.de>
7022         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
7023         vec_construct cost.
7025 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
7027         PR tree-optimization/71872
7028         * tree-data-ref.c (get_references_in_stmt): Ignore references
7029         with is_gimple_constant get_base_address.
7031 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7033         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
7034         (TARGET_HAVE_LDACQD): New macro.
7035         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
7036         than TARGET_HAVE_LDACQ.
7037         (arm_load_acquire_exclusivedi): Likewise.
7038         (arm_store_release_exclusivedi): Likewise.
7040 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7042         PR rtl-optimization/71878
7043         * lra-constraints.c (match_reload): Pass information about other
7044         output operands.  Create new unique register value if matching input
7045         operand shares same register value as output operand being considered.
7046         (curr_insn_transform): Record output operands already processed.
7048 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7050         PR target/65951
7051         PR tree-optimization/70923
7052         * tree-vect-patterns.c: Include mult-synthesis.h.
7053         (target_supports_mult_synth_alg): New function.
7054         (synth_lshift_by_additions): Likewise.
7055         (apply_binop_and_append_stmt): Likewise.
7056         (vect_synth_mult_by_constant): Likewise.
7057         (target_has_vecop_for_code): Likewise.
7058         (vect_recog_mult_pattern): Use above functions to synthesize vector
7059         multiplication by integer constants.
7061 2016-07-14  Alan Modra  <amodra@gmail.com>
7063         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
7064         gpr alternatives.  Correct '*' placement on Y,r alternative.
7065         Add '*' on operand 1 of r,r alternative.
7067 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7069         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
7070         * expmed.h: ... Here.
7072 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
7074         * gimple.h (stmt_can_terminate_bb_p): New function.
7075         * tree-cfg.c (need_fake_edge_p): Rename to ...
7076         (stmt_can_terminate_bb_p): ... this; return true if stmt can
7077         throw external; handle const and pure calls.
7078         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
7080 2016-07-14  Richard Biener  <rguenther@suse.de>
7082         PR tree-optimization/71866
7083         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
7084         (do_hoist_insertion): Avoid endless recursion when we
7085         didn't insert anything because we managed to simplify
7086         things down to a constant or SSA name.
7087         (fully_constant_expression): Re-write in terms of ...
7088         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
7089         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
7090         vn_nary_build_or_lookup_1.
7091         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
7092         (vn_nary_build_or_lookup): ... this which now wraps it.
7094 2016-07-14  Alan Modra  <amodra@gmail.com>
7096         PR target/71733
7097         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
7098         with p9_vector override before power9-dform override.
7100 2016-07-13  Andi Kleen  <ak@linux.intel.com>
7102         * value-prof.c (gimple_value_profile_transformations): Don't run
7103         when auto_profile is on.
7105 2016-07-13  Andi Kleen  <ak@linux.intel.com>
7107         * auto-profile.c (update_inlined_ind_target,
7108         afdo_indirect_call): Print information to dump file.
7110 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7112         * genrecog.c (special_predicate_operand_p): New function.
7113         (predicate_name): Move function.
7114         (validate_pattern): Don't warn about missing mode for all
7115         define_special_predicate predicates.
7117 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
7119         * tree-vect-data-refs.c (vect_no_alias_p): New function.
7120         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
7121         resolve alias checks which are known at compilation time.
7122         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
7123         alias checks are resolved.  Move dump info for too many runtime
7124         alias checks to here...
7125         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
7127 2016-07-13  Richard Biener  <rguenther@suse.de>
7129         PR tree-optimization/24574
7130         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
7131         position and add shift, rotate, divison and modulo support
7132         for left zero.
7133         (value_replacement): Pass in argument position to absorbing_element_p.
7135 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
7137         PR ipa/71633
7138         * ipa-inline-transform.c (inline_call): Support
7139         instrumented thunks.
7141 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7143         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
7144         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
7145         divide feature.
7146         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
7147         Baseline.  Make initial alternative TARGET_32BIT only.
7148         (udivsi3): Likewise.
7149         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
7150         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
7151         target.
7153 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7155         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
7156         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
7157         availability with TARGET_HAVE_MOVT.
7158         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
7159         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
7160         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
7161         UINTVAL.
7162         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
7163         extra instruction if MOVW is available.  Use a cost variable
7164         incremented by COSTS_N_INSNS (1) when the condition match rather than
7165         returning an arithmetic expression based on COSTS_N_INSNS.  Make
7166         constant with bottom half word zero cost 2 instruction if MOVW is
7167         available.
7168         * config/arm/arm.md (define_attr "arch"): Add v8mb.
7169         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
7170         target is ARMv8-M Baseline.
7171         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
7172         (arm_movtas_ze): Likewise.
7173         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
7174         alternative for constants satisfying j constraint.
7175         (thumb1_movsi_insn): Likewise.
7176         (movsi splitter for K alternative): Tighten condition to not trigger
7177         if movt is available and j constraint is satisfied.
7178         (Pe immediate splitter): Likewise.
7179         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
7180         constant fitting in an halfword to use MOVW.
7181         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
7182         effective target.
7184 2016-07-13  Richard Biener  <rguenther@suse.de>
7186         PR middle-end/71104
7187         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
7188         gimplifying the LHS.  Make sure to gimplify a returning twice
7189         call LHS without using SSA names.
7191 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7193         * tree-data-ref.c (find_data_references_in_stmt): Remove
7194         unnecessary call to vec::release.
7195         (graphite_find_data_references_in_stmt): Likewise.
7196         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
7197         * tree-vect-stmts.c (vectorizable_condition): Likewise.
7199 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7201         * cfgexpand.c (expand_used_vars): Make the type of a local
7202         variable auto_vec.
7203         * genmatch.c (lower_for): Likewise.
7204         * haifa-sched.c (haifa_sched_init): Likewise.
7205         (add_to_speculative_block): Likewise.
7206         (create_check_block_twin): Likewise.
7207         * predict.c (handle_missing_profiles): Likewise.
7208         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
7209         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
7210         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
7211         Likewise.
7212         (maybe_lower_iteration_bound): Likewise.
7213         * tree-ssa-sccvn.c (DFS): Likewise.
7214         * tree-stdarg.c (reachable_at_most_once): Likewise.
7215         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
7216         (vectorizable_store): Likewise.
7218 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7220         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
7221         (sccvn_dom_walker): make cond_stack an auto_vec.
7223 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7225         * ree.c (struct ext_state): Make type of members auto_vec.
7226         (find_and_remove_re): Adjust.
7228 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7230         * cfgexpand.c (struct stack_vars_data): Make type of fields
7231         auto_vec.
7232         (expand_used_vars): Adjust.
7234 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7236         * ipa.c (record_cdtor_fn): Adjust.
7237         (build_cdtor_fns): Likewise.
7238         (ipa_cdtor_merge): Make static_ctors and static_dtors local
7239         variables.
7241 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7243         * genextract.c (struct accum_extract): Add constructor and make
7244         members auto_vec.
7245         (gen_insn): Adjust.
7247 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7249         * tree.c (struct free_lang_data_d): Add constructor and change
7250         types of members to ones that automatically manage resources.
7251         (fld_worklist_push): Adjust.
7252         (find_decls_types): Likewise.
7253         (find_decls_types_in_eh_region): Likewise.
7254         (free_lang_data_in_cgraph): Stop manually creating and
7255         destroying members of free_lang_data_d.
7257 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
7259         PR rtl-optimization/68961
7260         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
7261         peephole variant.  Use sse_reg_operand predicates.
7263 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
7265         * config/i386/predicates.md (x86_64_immediate_operand)
7266         <case CONST_INT>: Remove unneeded truncation to DImode.
7267         <case CONST>: Ditto.
7268         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
7270 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
7272         PR target/71805
7273         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
7274         The xxperm and xxpermr instructions require that the 2nd input
7275         operand overlap with the output operand, and not the 1st.
7276         (altivec_vperm_v8hiv16qi): Likewise.
7277         (altivec_vperm_<mode>_uns_internal): Likewise.
7278         (altivec_vpermr_<mode>_internal): Likewise.
7279         (vperm_v8hiv4si): Likewise.
7280         (vperm_v16qiv8hi): Likewise.
7282 2016-07-12  Nathan Sidwell  <nathan@acm.org>
7284         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
7285         when -mno-pic-data-is-text-relative is in effect, by default.
7286         * doc/invoke.texi (mpic-data-is-text-relative): Document new
7287         behavior and clarify.
7289 2016-07-12  Martin Liska  <mliska@suse.cz>
7291         * params.def: Add avg-loop niter.
7292         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
7293         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
7294         * doc/invoke.texi: Document the new parameter.
7296 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7298         PR middle-end/71700
7299         * expr.c (store_constructor): Mask sign-extended bits when widening
7300         sub-word constructor element at the start of a word.
7302 2016-07-12  Martin Liska  <mliska@suse.cz>
7304         * Makefile.in: Append rule for params-options.h.
7305         * params-options.h: New file.
7307 2016-07-12  Martin Liska  <mliska@suse.cz>
7309         * ira-build.c (mark_loops_for_removal): Properly iterate
7310         loops.
7312 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
7313             Richard Biener  <rguenther@suse.de>
7315         PR tree-optimization/23286
7316         PR tree-optimization/70159
7317         * doc/invoke.texi: Document -fcode-hoisting.
7318         * common.opt (fcode-hoisting): New flag.
7319         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
7320         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
7321         (do_regular_insertion): Rename to ...
7322         (do_pre_regular_insertion): ... this and amend general comments
7323         on insertion strathegy.
7324         (do_partial_partial_insertion): Rename to ...
7325         (do_pre_partial_partial_insertion): ... this.
7326         (do_hoist_insertion): New function.
7327         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
7328         and call do_hoist_insertion properly.
7329         (insert): Adjust.
7330         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
7331         (pass_pre::execute): Register hoist_insert stats.
7333 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
7335         PR middle-end/71716
7336         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
7337         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
7338         is different from mode's bitsize.  Small cleanup.
7340 2016-07-12  Richard Biener  <rguenther@suse.de>
7342         PR rtl-optimization/68961
7343         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
7344         to simplify to a non-constant.
7346 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
7348         PR middle-end/71758
7349         * omp-low.c (expand_omp_target): Gimplify device.
7351         PR tree-optimization/71823
7352         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
7353         to get vec_oprnds2 from op2.
7355 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
7357         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
7358         Hoist common subexpressions.
7359         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
7361 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
7363         PR target/71800
7364         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
7365         prevent generation of 'stxsiwx' on pre Power8 hardware.
7367 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
7369         * input.c: Include cpplib.h.
7370         (selftest::temp_source_file): New class.
7371         (selftest::temp_source_file::temp_source_file): New ctor.
7372         (selftest::temp_source_file::~temp_source_file): New dtor.
7373         (selftest::should_have_column_data_p): New function.
7374         (selftest::test_should_have_column_data_p): New function.
7375         (selftest::temp_line_table): New class.
7376         (selftest::temp_line_table::temp_line_table): New ctor.
7377         (selftest::temp_line_table::~temp_line_table): New dtor.
7378         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
7379         it to create a temp_line_table.
7380         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
7381         locations that are known to have column data.
7382         (selftest::line_table_case): New struct.
7383         (selftest::test_reading_source_line): Move tempfile handling
7384         to class temp_source_file.
7385         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
7386         (selftest::assert_token_loc_eq): New function.
7387         (ASSERT_TOKEN_LOC_EQ): New macro.
7388         (selftest::test_lexer): New function.
7389         (selftest::boundary_locations): New array.
7390         (selftest::input_c_tests): Call test_should_have_column_data_p.
7391         Loop over a test matrix of interesting values of location and
7392         default_range_bits, calling test_lexer on each case in the matrix.
7393         Move call to test_accessing_ordinary_linemaps into the matrix.
7394         * selftest.h (ASSERT_EQ): Reimplement in terms of...
7395         (ASSERT_EQ_AT): New macro.
7397 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
7399         PR target/71801
7400         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
7401         Don't convert TImode in debug insn.
7403 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7405         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
7406         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
7407         (tree_type_common::lang_flag_7): New.
7408         (tree_type_common::spare): Reduce size.
7409         * tree.h (TYPE_ALIGN_OK): Remove.
7410         (TYPE_LANG_FLAG_7): New.
7411         (get_inner_reference): Adjust header.
7412         * print-tree.c (print_node): Adjust.
7413         * expr.c (get_inner_reference): Remove parameter keep_aligning.
7414         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
7415         calls to get_inner_reference.
7416         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
7417         handling of TYPE_ALIGN_OK.
7418         * builtins.c (get_object_alignment_2): Adjust call to
7419         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
7420         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
7421         TYPE_ALIGN_OK.
7422         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
7423         * cfgexpand.c (expand_debug_expr): Likewise.
7424         * dbxout.c (dbxout_expand_expr): Likewise.
7425         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
7426         loc_list_from_tree, fortran_common): Likewise.
7427         * fold-const.c (optimize_bit_field_compare,
7428         decode_field_reference, fold_unary_loc, fold_comparison,
7429         split_address_to_core_and_offset): Likewise.
7430         * gimple-laddress.c (execute): Likewise.
7431         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
7432         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
7433         * hsa-gen.c (gen_hsa_addr): Likewise.
7434         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
7435         * tsan.c (instrument_expr): Likewise.
7436         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
7437         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
7438         * tree-affine.c (tree_to_aff_combination,
7439         get_inner_reference_aff): Adjust calls to get_inner_reference.
7440         * tree-data-ref.c (split_constant_offset_1,
7441         dr_analyze_innermost): Likewise.
7442         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
7443         * tree-sra.c (ipa_sra_check_caller): Likewise.
7444         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
7445         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
7446         bswap_replace): Likewise.
7447         * tree-vect-data-refs.c (vect_check_gather,
7448         vect_analyze_data_refs): Likewise.
7449         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
7450         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
7451         TYPE_ALIGN_OK.
7453 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
7455         * Makefile.in (selftest-valgrind): New phony target.
7456         * function-tests.c (selftest::build_cfg): Delete pass instances
7457         created by the test.
7458         (selftest::convert_to_ssa): Likewise.
7459         (selftest::test_expansion_to_rtl): Likewise.
7460         * tree-cfg.c (selftest::test_linear_chain): Release dominator
7461         vectors.
7462         (selftest::test_diamond): Likewise.
7464 2016-07-11  Richard Biener  <rguenther@suse.de>
7466         PR tree-optimization/71816
7467         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
7468         than replacing all of its operands.
7470 2016-07-11  Alan Modra  <amodra@gmail.com>
7472         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
7473         (ctr<mode>): Add unspec.
7474         (ctr<mode>_internal*): Likewise.
7476 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
7478         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
7479         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
7481 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
7483         PR rtl-optimization/71621
7484         * lra-constraints.c (process_alt_operands): Check combination of
7485         reg class and mode.
7487 2016-07-08  Jason Merrill  <jason@redhat.com>
7488             Richard Biener  <rguenther@suse.de>
7490         P0145: Refining Expression Order for C++.
7491         * gimplify.c (initial_rhs_predicate_for): New.
7492         (gimplfy_modify_expr): Gimplify RHS before LHS.
7494 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7496         PR target/71297
7497         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7498         Allow standard error handling to take over when a wrong number
7499         of arguments is presented to __builtin_vec_ld () or
7500         __builtin_vec_st ().
7502 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
7504         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
7505         variants.
7506         (smin): Likewise.
7507         (fmax): New entry.
7508         (fmin): Likewise.
7509         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
7510         __builtin_aarch64_fmaxv2sf.
7511         (vmaxnmq_f32): Likewise.
7512         (vmaxnmq_f64): Likewise.
7513         (vminnm_f32): Likewise.
7514         (vminnmq_f32): Likewise.
7515         (vminnmq_f64): Likewise.
7517 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7519         PR target/71806
7520         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
7521         enable -mfloat128-hardware by default.
7522         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
7523         that IEEE 128-bit hardware support needs.
7524         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
7525         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
7526         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
7527         floating point requires.
7528         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7529         -mfloat128 and -mfloat128-hardware changes.
7531 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
7533         PR tree-optimization/71667
7534         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
7536 2016-07-08  Martin Liska  <mliska@suse.cz>
7538         PR middle-end/71606
7539         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
7540         folding produces SAVE_EXPRs, thus return false for the type.
7542 2016-07-07  Martin Liska  <mliska@suse.cz>
7544         * file-find.c (remove_prefix): New function.
7545         * file-find.h (remove_prefix): Declare the function.
7546         * gcc-ar.c (main): Skip a folder of the wrapper if
7547         a wrapped binary would point to the same file.
7549 2016-07-07  Jan Hubicka  <jh@suse.cz>
7551         * tree-scalar-evolution.c (iv_can_overflow_p): export.
7552         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
7553         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
7555 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
7557         PR ipa/71624
7558         * ipa-inline-analysis.c (compute_inline_parameters): Set
7559         local.can_change_signature to false for intrumentation
7560         thunk callees.
7562 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7564         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
7565         with TARGET_HAVE_MOVT.
7566         (TARGET_HAVE_MOVT): Define.
7567         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
7568         availability with TARGET_HAVE_MOVT.
7569         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
7570         availability.
7571         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
7572         TARGET_THUMB2.
7573         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
7574         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
7575         * config/arm/constraints.md (define_constraint "j"): Use
7576         TARGET_HAVE_MOVT to check MOVT availability.
7578 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7580         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
7582 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7584         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
7585         (armv8-m.main): Likewise.
7586         (armv8-m.main+dsp): Likewise.
7587         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
7588         (FL_FOR_ARCH8M_MAIN): Likewise.
7589         * config/arm/arm-tables.opt: Regenerate.
7590         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
7591         armv8-m.main+dsp to BE8_LINK_SPEC.
7592         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
7593         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
7594         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
7595         Baseline and Mainline.
7596         (arm_option_override_internal): Also disable arm_restrict_it when
7597         !arm_arch_notm.  Update comment for -munaligned-access to also cover
7598         ARMv8-M Baseline.
7599         (arm_file_start): Increase buffer size for printing architecture name.
7600         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
7601         and armv8-m.main+dsp.
7602         (mno-unaligned-access): Clarify that this is disabled by default for
7603         ARMv8-M Baseline architectures as well.
7605 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7607         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
7608         decide whether to prevent some libgcc routines being included for some
7609         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
7610         link between this condition and the one in
7611         libgcc/config/arm/lib1func.S.
7613 2016-07-07  Richard Biener  <rguenther@suse.de>
7615         * tree-ssa-pre.c: Include alias.h.
7616         (compute_avail): If we have multiple VN_REFERENCEs with the
7617         same hashtable entry adjust that to make it a valid replacement
7618         for all of them with respect to alignment and aliasing
7619         when doing insertion.
7620         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
7621         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
7623 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
7625         PR target/70098
7626         PR target/71763
7627         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
7628         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
7629         constraint.
7631 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7633         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
7634         (adjust_mems): Adjust.
7635         (adjust_insn): Likewise.
7636         (prepare_call_arguments): Likewise.
7638 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7640         * gcse.c (struct ls_expr): Make stores field a vector.
7641         (ldst_entry): Adjust.
7642         (free_ldst_entry): Likewise.
7643         (print_ldst_list): Likewise.
7644         (compute_ld_motion_mems): Likewise.
7645         (update_ld_motion_stores): Likewise.
7647 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7649         * gcse.c (struct ls_expr): Remove loads field.
7650         (ldst_entry): Adjust.
7651         (free_ldst_entry): Likewise.
7652         (print_ldst_list): Likewise.
7653         (compute_ld_motion_mems): Likewise.
7655 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7657         * store-motion.c (struct st_expr): Make antic_stores a vector.
7658         (st_expr_entry): Adjust.
7659         (free_st_expr_entry): Likewise.
7660         (print_store_motion_mems): Likewise.
7661         (find_moveable_store): Likewise.
7662         (compute_store_table): Likewise.
7663         (remove_reachable_equiv_notes): Likewise.
7664         (replace_store_insn): Likewise.
7665         (build_store_vectors): Likewise.
7667 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7669         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
7670         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
7672 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
7674         PR tree-optimization/71518
7675         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
7676         misalign also for outer loops with negative step.
7678 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
7680         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
7681         (cortex_a53_shift): Add mov_shift.
7682         (cortex_a53_shift_reg): Add new reservation for register shifts.
7683         (cortex_a53_alu): Remove bfm.
7684         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
7685         (cortex_a53_alu_extr): Add new reservation for EXTR.
7686         (bypasses): Improve bypass modelling.
7688 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7690         PR target/50739
7691         * config/avr/avr.c (avr_asm_select_section): Strip off
7692         SECTION_DECLARED from flags when calling get_section.
7694 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7696         * tree-vectorizer.h (vect_memory_access_type): Add
7697         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
7698         * tree-vect-stmts.c (compare_step_with_zero): New function.
7699         (perm_mask_for_reverse): Move further up file.
7700         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
7701         step is negative.
7702         (get_negative_load_store_type): New function.
7703         (get_load_store_type): Call it.  Add an ncopies argument.
7704         (vectorizable_mask_load_store): Update call accordingly and
7705         remove tests for negative steps.
7706         (vectorizable_store, vectorizable_load): Likewise.  Handle new
7707         memory_access_types.
7709 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7711         * tree-vectorizer.h (vect_memory_access_type): New enum.
7712         (_stmt_vec_info): Add a memory_access_type field.
7713         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
7714         (vect_model_store_cost): Take an access type instead of a boolean.
7715         (vect_model_load_cost): Likewise.
7716         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
7717         vect_model_store_cost and vect_model_load_cost.
7718         * tree-vect-stmts.c (vec_load_store_type): New enum.
7719         (vect_model_store_cost): Take an access type instead of a
7720         store_lanes_p boolean.  Simplify tests.
7721         (vect_model_load_cost): Likewise, but for load_lanes_p.
7722         (get_group_load_store_type, get_load_store_type): New functions.
7723         (vectorizable_store): Use get_load_store_type.  Record the access
7724         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
7725         (vectorizable_load): Likewise.
7726         (vectorizable_mask_load_store): Likewise.  Replace is_store
7727         variable with vls_type.
7729 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7731         * tree-vectorizer.h (vect_grouped_load_supported): Add a
7732         single_element_p parameter.
7733         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
7734         Check the PR65518 case here rather than in vectorizable_load.
7735         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
7736         * tree-vect-stmts.c (vectorizable_load): Likewise.
7738 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7740         * tree-vectorizer.h (gather_scatter_info): New structure.
7741         (vect_check_gather_scatter): Return a bool rather than a decl.
7742         Replace return-by-pointer arguments with a single
7743         gather_scatter_info *.
7744         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
7745         (vect_analyze_data_refs): Update call accordingly.
7746         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7747         (vectorizable_mask_load_store): Likewise.  Also record the
7748         offset dt and vectype in the gather_scatter_info.
7749         (vectorizable_store): Likewise.
7750         (vectorizable_load): Likewise.
7752 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7754         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
7755         strided groups, use the cost of N scalar accesses instead
7756         of ncopies vector accesses.
7757         (vect_model_load_cost): Likewise.
7759 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7761         * tree-vect-stmts.c (vect_cost_group_size): Delete.
7762         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
7763         variable to indicate when once-per-group costs are being used.
7764         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
7766 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7768         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
7769         peeling-for-gaps condition.
7771 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7773         * config/s390/s390.c (s390_expand_vec_init): Force initializer
7774         element to register if it doesn't match general_operand.
7776 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
7777             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7779         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
7780         prototype.
7781         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
7782         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
7783         (SIGNBIT): New mode iterator.
7784         (Fsignbit): New mode attribute.
7785         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
7786         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
7787         when direct moves are available.
7788         (signbit<mode>2_dm): New define_insn_and_split).
7789         (signbit<mode>2_dm2): New define_insn.
7791 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7793         PR rtl-optimization/71594
7794         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
7795         into subregs of appropriate mode before trying to emit a conditional
7796         move.
7798 2016-07-05  Jan Hubicka  <jh@suse.cz>
7800         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
7801         (simple_iv): Use it.
7803 2016-07-05  Jan Hubicka  <jh@suse.cz>
7805         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
7807 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
7809         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
7810         "offmemok".
7812 2016-07-05  Jan Hubicka  <jh@suse.cz>
7814         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
7815         IV can overflow.
7817 2016-07-05  Richard Biener  <rguenther@suse.de>
7819         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
7820         Handle empty else block.
7821         (is_feasible_trace): Likewise.
7822         (split_paths): Likewise.
7824 2016-07-05  Richard Biener  <rguenther@suse.de>
7826         * tree-loop-distribution.c (distribute_loop): Fix issue with
7827         the cost model loop.
7829 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
7831         * config/arm/neon-testgen.ml: Delete.
7832         * config/arm/neon.ml: Delete.
7834 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
7836         PR c++/71739
7837         * tree.c (attribute_value_equal): Use get_attribute_name instead of
7838         directly using TREE_PURPOSE.
7840 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
7842         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
7843         * config/aarch64/aarch64_neon.h: Likewise.
7844         * config/aarch64/arm_neon.h: Likewise.
7845         * config/aarch64/atomics.md: Likewise.
7846         * config/aarch64/aarch64-simd-builtins.def: Likewise.
7847         * doc/invoke.texi: Likewise.
7849 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7851         * config/s390/s390.md: Add "z13" cpu_facility.
7852         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
7853         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
7854         condition" type instructions.
7856 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7857             Jeff Law  <law@redhat.com>
7859         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
7860         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
7862 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
7864         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
7865         permutation for TARGET_AVX512F.
7866         (ix86_expand_vec_one_operand_perm_avx512): New function.
7867         (expand_vec_perm_1): Invoke introduced function.
7868         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
7869         it may be not valid after vectorization.
7871 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7873         PR target/63874
7874         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
7875         typo in comment.  Only force to memory if it is a weak
7876         external reference.
7878 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
7879             Jiong Wang  <jiong.wang@arm.com>
7881         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
7882         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
7883         (AARCH64_FL_F16): New.
7884         (AARCH64_FL_FOR_ARCH8_2): New.
7885         (AARCH64_ISA_8_2): New.
7886         (AARCH64_ISA_F16): New.
7887         (TARGET_FP_F16INST): New.
7888         (TARGET_SIMD_F16INST): New.
7889         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
7890         ("fp"): Disabling "fp" also disables "fp16".
7891         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
7892         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
7893         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
7894         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
7896 2016-07-04  Jan Beulich  <jbeulich@suse.com>
7898         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
7900 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
7902         PR target/71720
7903         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
7904         the insns, use an insn form that does not adjust the offset on
7905         little endian systems.
7907 2016-07-01  Jan Beulich  <jbeulich@suse.com>
7909         * varasm.c (get_variable_section): Validate initializer in
7910         named .bss-like sections.
7912 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7914         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
7915         Exchange the order of the second and third operands in the vpermr
7916         instruction tmeplate.
7918 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
7920         PR target/71698
7921         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
7922         Disallow TDmode values.
7924 2016-07-01  Alan Modra  <amodra@gmail.com>
7926         PR rtl-optimization/71709
7927         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
7928         being set, not referenced.
7930 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
7932         PR tree-optimization/70729
7933         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
7934         of loop since it can be not valid after transformation.
7936 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7938         * config/arm/arm.c (thumb_reload_in_hi): Delete.
7939         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
7941 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
7943         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
7944         for NULL decl.
7946 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
7948         PR target/71677
7949         * config/rs6000/constraints.md (wY constraint): New constraint to
7950         match the requirements for the LXSD and STXSD instructions.
7951         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
7952         predicate to match the requirements for the LXSD and STXSD
7953         instructions.
7954         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
7955         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
7956         to make sure that the bottom 2 bits of offset are 0, the address
7957         form is offsettable, and no updating is done in the address mode.
7958         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
7959         (movdi_internal32): Likewise
7960         (movdi_internal64): Likewise.
7962 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
7964         PR tree-optimization/71707
7965         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
7966         strinfo even for ADDR_EXPR ptr.
7968 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7970         * config/rs6000/altivec.md (darn_32): Change the condition to
7971         TARGET_P9_MISC instead of TARGET_MODULO.
7972         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
7973         condition expression.
7974         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
7975         condition expression.
7976         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
7977         (DFP_TEST): New code iterator.
7978         (dfptstsfi_<code>_mode>): New define_expand.
7979         (*dfp_sgnfcnc_<mode>): New define_insn.
7980         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
7981         definition next to BU_P9_MISC_1 definition and change the MASK
7982         value to RS6000_BTM_P9_MISC.
7983         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
7984         (BU_P9_64BIT_MISC_0): Likewise.
7985         (BU_P9_DFP_MISC_0): New macro definition.
7986         (BU_P9_DFP_MISC_1): New macro definition.
7987         (BU_P9_DFP_MISC_2): New macro definition.
7988         (BU_P9_DFP_OVERLOAD_1): New macro definition.
7989         (BU_P9_DFP_OVERLOAD_2): New macro definition.
7990         (BU_P9_DFP_OVERLOAD_3): New macro definition.
7991         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
7992         (TSTSFI_LT_TD): Likewise.
7993         (TSTSFI_EQ_DD): Likewise.
7994         (TSTSFI_EQ_TD): Likewise.
7995         (TSTSFI_GT_DD): Likewise.
7996         (TSTSFI_GT_TD): Likewise.
7997         (TSTSFI_OV_DD): Likewise.
7998         (TSTSFI_OV_TD): Likewise.
7999         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
8000         (TSTSFI_LT_DD): Likewise.
8001         (TSTSFI_LT_TD): Likewise.
8002         (TSTSFI_EQ): Likewise.
8003         (TSTSFI_EQ_DD): Likewise.
8004         (TSTSFI_EQ_TD): Likewise.
8005         (TSTSFI_GT): Likewise.
8006         (TSTSFI_GT_DD): Likewise.
8007         (TSTSFI_GT_TD): Likewise.
8008         (TSTSFI_OV): Likewise.
8009         (TSTSFI_OV_DD): Likewise.
8010         (TSTSFI_OV_TD): Likewise.
8011         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8012         overloaded test significance functions.
8013         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
8014         OPTION_MASK_P9_MISC into the representation of this mask.
8015         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
8016         of this mask.
8017         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
8018         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
8019         non-zero.
8020         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
8021         argument is a 6-bit unsigned literal value if the icode argument
8022         represents a DFP test significance built-in call.
8023         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
8024         flag used independently and in combination with the
8025         RS6000_BTM_64BIT flag.
8026         (rs6000_opt_masks): Add entry for power9-misc command-line option.
8027         (rs6000_builtin_mask_names): Add entry for power9-misc
8028         command-line option.
8029         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
8030         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
8031         RS6000_BTM_P9_MISC macros.
8032         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
8033         option and change the description of the -mpower9-vector option to
8034         enable only vector instructions, removing its erroneously claimed
8035         support for scalar instructions.
8036         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
8037         the ISA 3.0 digital floating point test significance built-in
8038         functions.
8040 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
8042         * config/aarch64/aarch64.c (cortexa35_tunings):
8043         Enable AES fusion.  Use cortexa57_branch_cost.
8044         (cortexa53_tunings): Use cortexa57_branch_cost.
8045         (cortexa72_tunings): Use cortexa57_branch_cost.
8046         Use AUTOPREFETCHER_WEAK.
8047         (cortexa73_tunings): Use cortexa57_branch_cost.
8049 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8050             James Greenhalgh  <james.greenhalgh@arm.com>
8052         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
8053         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
8054         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
8055         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
8056         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
8057         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
8058         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
8059         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
8060         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
8061         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
8062         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
8063         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
8064         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
8065         New intrinsics.
8067 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
8068             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8070         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
8071         New define_insn.
8072         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
8074 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
8076         PR driver/71651
8077         * gcc.c (driver::build_option_suggestions): Pass "option" to
8078         add_misspelling_candidates.
8079         * opts-common.c (add_misspelling_candidates): Add "option" param;
8080         use it to avoid adding negated forms for options marked with
8081         RejectNegative.
8082         * opts.h (add_misspelling_candidates): Add "option" param.
8084 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
8086         PR middle-end/71693
8087         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
8088         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
8089         first when permuting bitwise operation with rotate.  Cast
8090         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
8092 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
8094         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
8095         for misspelled param names.
8096         * params.c: Include spellcheck.h.
8097         (find_param_fuzzy): New function.
8098         * params.h (find_param_fuzzy): New prototype.
8099         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
8100         * spellcheck.h (struct edit_distance_traits<const char *>):
8101         ...here.
8103 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
8105         * config/rs6000/predicates.md (const_0_to_7_operand): New
8106         predicate, recognize 0..7.
8107         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8108         support for doing extracts from V16QImode, V8HImode, V4SImode
8109         under ISA 3.0.
8110         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
8111         vector extract support.
8112         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
8113         for ISA 3.0 vector extract.
8114         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
8115         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
8116         extracts of a constant element number from small integer vectors
8117         on 64-bit ISA 3.0 systems.
8118         (vsx_extract_<mode>_di): Likewise.
8119         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
8120         say when we can do ISA 3.0 vector extracts.
8121         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
8122         registers, using the stxsiwx instruction.
8124 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
8126         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
8127         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
8128         qdf24xx_regmove_cost, qdf24xx_tunings): New.
8129         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
8130         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
8131         * config/arm/arm.c (arm_qdf24xx_tune): New.
8133 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
8135         * config/aarch64/aarch64.c (cortexa53_tunings):
8136         Increase loop alignment to 8.  Set function alignment to 16.
8137         (cortexa35_tunings): Likewise.
8138         (cortexa57_tunings): Increase loop alignment to 8.
8139         (cortexa72_tunings): Likewise.
8140         (cortexa73_tunings): Likewise.
8142 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8144         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
8145         for arm_fp16_ok and arm_fp16_hw.
8146         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
8147         arm_fp16_alternative.
8149 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
8151         PR tree-optimization/71655
8152         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
8153         types when swapping operands.
8155 2016-06-29  Martin Liska  <mliska@suse.cz>
8157         PR middle-end/71585
8158         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
8159         * ipa-inline-transform.c (inline_call): Remove unnecessary call
8160         of build_optimization_node.
8162 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
8164         PR tree-optimization/70729
8165         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
8166         independent in loops having positive safelen value.
8167         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
8168         it may be not valid after vectorization.
8170 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
8172         PR tree-optimization/71625
8173         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
8174         is sorted by ascending list->offset.  If PTR is non-NULL and there is
8175         previous strinfo, call get_stridx_plus_constant.
8176         (get_stridx): Pass exp as second argument to get_addr_stridx.
8177         (addr_stridxptr): Add missing list = list->next, so that there can be
8178         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
8179         the list is sorted by ascending list->offset.
8180         (get_stridx_plus_constant): Adjust so that it can be also called with
8181         ADDR_EXPR instead of SSA_NAME as PTR.
8182         (handle_char_store): Pass NULL_TREE as second argument to
8183         get_addr_stridx.
8185 2016-06-29  Richard Biener  <rguenther@suse.de>
8187         PR rtl-optimization/68961
8188         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
8190 2016-06-29  Richard Biener  <rguenther@suse.de>
8192         PR middle-end/71002
8193         * alias.c (component_uses_parent_alias_set_from): Handle
8194         type punning through union accesses by using the union alias set.
8195         * gimple.c (gimple_get_alias_set): Remove union type punning case.
8197 2016-07-29  Richard Biener  <rguenther@suse.de>
8199         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
8200         precision not matching mode precision.
8202 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
8204         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
8205         pa_output_arg_descriptor.
8206         (call_val_symref_64bit_post_reload): Likewise.
8207         (call_val_powf_64bit_post_reload): Likewise.
8208         (sibcall_internal_symref_64bit): Likewise.
8209         (sibcall_value_internal_symref_64bit): Likewise.
8211 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
8213         PR middle-end/71626
8214         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
8215         a constant, force its SUBREG_REG into memory or register instead
8216         of whole op1.
8218 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
8220         PR target/58655
8221         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
8222         * doc/invoke.texi (AVR Options): Document it.
8224 2016-06-28  Walter Lee  <walt@tilera.com>
8226         * config/tilegx/linux.h: Do not include arch/icache.h
8227         (CLEAR_INSN_CACHE): Provide inlined definition directly.
8228         * config/tilepro/linux.h: Do not include arch/icache.h
8229         (CLEAR_INSN_CACHE): Provide inlined definition directly.
8231 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
8233         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
8234         for big-endian BIT_FIELD_REF.
8236 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
8238         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
8239         ('size' attribute): Add '128'.
8240         Include power9.md.
8241         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
8242         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
8243         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
8244         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
8245         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
8246         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
8247         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
8248         *trunc<mode>df2_odd): Set size attribute to '128'.
8249         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
8250         * config/rs6000/power6.md (power6-fp): Include dfp type.
8251         * config/rs6000/power7.md (power7-fp): Likewise.
8252         * config/rs6000/power8.md (power8-fp): Likewise.
8253         * config/rs6000/power9.md: New file.
8254         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
8255         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
8256         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
8257         htmsimple.
8258         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
8259         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
8260         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
8261         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
8262         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
8263         dfp_dscri_<mode>): Change type attribute to dfp.
8264         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
8265         attribute to vecsimple.
8266         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
8267         and prefetch streams.
8268         (rs6000_option_override_internal): Remove temporary code setting
8269         tuning to power8.  Don't set rs6000_sched_groups for power9.
8270         (last_scheduled_insn): Change to rtx_insn *.
8271         (divide_cnt, vec_load_pendulum): New variables.
8272         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
8273         (rs6000_issue_rate): Set issue rate for Power9.
8274         (is_power9_pairable_vec_type): New.
8275         (power9_sched_reorder2): New.
8276         (rs6000_sched_reorder2): Call new function for Power9 specific
8277         reordering.
8278         (insn_must_be_first_in_group): Remove Power9.
8279         (insn_must_be_last_in_group): Likewise.
8280         (force_new_group): Likewise.
8281         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
8282         Initialize divide_cnt/vec_load_pendulum.
8283         (_rs6000_sched_context, rs6000_init_sched_context,
8284         rs6000_set_sched_context): Handle context save/restore of new
8285         variables.
8287 2016-06-28  Richard Biener  <rguenther@suse.de>
8289         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8290         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
8291         COMPONENT_REF operand.
8292         (nonoverlapping_component_refs_p): Likewise.
8293         * stor-layout.c (start_bitfield_representative): Mark
8294         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
8296 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
8298         * Makefile.in: Don't cat ../stage_current if it does not exist.
8300         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
8301         last argument is a bit-field.
8303         PR rtl-optimization/71673
8304         * internal-fn.c (expand_arith_overflow_result_store): Use
8305         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
8306         expand_simple_binop.
8308         PR middle-end/66867
8309         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
8310         expand_ifn_atomic_compare_exchange): New functions.
8311         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
8312         * tree.h (build_call_expr_internal_loc): Rename to ...
8313         (build_call_expr_internal_loc_array): ... this.  Fix up type of
8314         last argument.
8315         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
8316         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
8317         ATOMIC_COMPARE_EXCHANGE result.
8318         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
8319         * gimple-fold.h (optimize_atomic_compare_exchange_p,
8320         fold_builtin_atomic_compare_exchange): New prototypes.
8321         * gimple-fold.c (optimize_atomic_compare_exchange_p,
8322         fold_builtin_atomic_compare_exchange): New functions..
8323         * tree-ssa.c (execute_update_addresses_taken): If
8324         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
8325         of call when finding addressable vars, and if such var becomes
8326         non-addressable, call fold_builtin_atomic_compare_exchange.
8328 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
8330         PR target/71670
8331         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
8332         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
8334 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
8336         * config/rs6000/rs6000.md ('type' attribute): Add
8337         veclogical,veccmpfx,vecexts,vecmove insn types.
8338         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
8339         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
8340         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
8341         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
8342         *nabs<mode>2_hw): Change type to vecmove.
8343         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
8344         *boolcc<mode>3_internal, *eqv<mode>3_internal,
8345         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
8346         *ieee_128bit_vsx_abs<mode>2_internal,
8347         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
8348         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
8349         *ieee128_mtvsrd_32bit): Change type to veclogical.
8350         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
8351         *movdi_internal32, *movdi_internal64): Update insn types.
8352         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
8353         vsx_extract_<mode>): Change type to veclogical.
8354         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
8355         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
8356         *vsx_sign_extend_si_v2di): Change type to vecexts.
8357         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
8358         type to veclogical.
8359         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
8360         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
8361         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
8362         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
8363         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
8364         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
8365         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
8366         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
8367         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
8368         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
8369         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
8370         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
8371         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
8372         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
8373         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
8374         (ppc7450-vecsimple): Add veclogical, vecmove.
8375         (ppc7450-veccmp): Add veccmpfx.
8376         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
8377         vecmove.
8378         (ppc8540_vector_compare): Add veccmpfx.
8379         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
8380         * config/rs6000/cell.md (cell-fp): Add fpsimple.
8381         (cell-vecsimple): Add veclogical, vecmove.
8382         (cell-veccmp): Add veccmpfx.
8383         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
8384         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
8385         veccmpfx.
8386         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
8387         * config/rs6000/power4.md (power4-fp): Add fpsimple.
8388         (power4-vecsimple): Add veclogical, vecmove.
8389         (power4-veccmp): Add veccmpfx.
8390         * config/rs6000/power5.md (power5-fp): Add fpsimple.
8391         * config/rs6000/power6.md (power6-fp): Add fpsimple.
8392         (power6-vecsimple): Add veclogical, vecmove.
8393         (power6-veccmp): Add veccmpfx.
8394         * config/rs6000/power7.md (power7-fp): Add fpsimple.
8395         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
8396         * config/rs6000/power8.md (power8-fp): Add fpsimple.
8397         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
8398         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
8399         * config/rs6000/titan.md (titan_fp): Add fpsimple.
8400         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
8401         fpsimple.
8402         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
8404 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
8406         PR target/71656
8407         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
8408         OPTION_MASK_P9_DFORM_VECTOR.
8409         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
8410         disable -mpower9-dform-vector when using reload.
8411         (quad_address_p): Remove 'gpr_p' argument and all associated code.
8412         New 'strict' argument.  Update all callers.  Add strict addressing
8413         support.
8414         (rs6000_legitimate_offset_address_p): Remove call to
8415         virtual_stack_registers_memory_p.
8416         (rs6000_legitimize_reload_address): Add quad address support.
8417         (rs6000_legitimate_address_p): Move call to quad_address_p above
8418         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
8419         to account for new strict usage.
8420         (rs6000_output_move_128bit): Adjust quad_address_p args to account
8421         for new strict usage.
8422         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
8424 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
8426         PR target/70902
8427         PR target/71453
8428         PR target/71555
8429         PR target/71596
8430         PR target/71657
8431         * config/i386/i386.c (ix86_spill_class): Disable condition to
8432         always return NO_REGS.
8434 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
8436         * predict.c: Include gimple-pretty-print.h
8437         (predicted_by_loop_heuristics_p): Check also
8438         PRED_LOOP_EXIT_WITH_RECURSION
8439         (predict_loops): Find self recursive calls and use special purpose
8440         predictors for them; dump log about decisions.
8441         (pass_profile::execute): Dump info about #of iterations.
8442         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
8443         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
8445 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
8447         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
8448         output_asm_insn calls and shorten long lines.  Output .CALL
8449         argument descriptor using pa_output_arg_descriptor.  Add various
8450         inline $$dyncall and other optimizations.
8451         (pa_attr_length_indirect_call): Adjust ordering and lengths.
8453 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
8455         PR tree-optimization/71643
8456         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
8457         EH preds.
8459         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
8460         leak a bitmap if dep_bb is NULL.
8462         PR tree-optimization/71631
8463         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
8464         to rewrite_expr_tree even if negate_result, move new_lhs var
8465         declaration and initialization earlier, for powi_result set afterwards
8466         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
8467         if new_lhs != lhs, and don't shadow gsi var.
8469 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
8471         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
8472         Add in_loop parameter.
8473         (predict_loops): Add loop guard heuristics.
8474         * predict.def (PRED_LOOP_GUARD): New heuristics.
8476 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
8478         * predict.c: Include ipa-utils.h
8479         (tree_bb_level_prediction): Predict recursive calls.
8480         (tree_estimate_probability_bb): Skip inexpensive calls for call
8481         predictor.
8482         * predict.def (PRED_RECURSIVE_CALL): New.
8484 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8486         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
8487         (BU_FLOAT128_1): Likewise.
8488         (FABSQ): Likewise.
8489         (COPYSIGNQ): Likewise.
8490         (RS6000_BUILTIN_NANQ): Likewise.
8491         (RS6000_BUILTIN_NANSQ): Likewise.
8492         (RS6000_BUILTIN_INFQ): Likewise.
8493         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
8494         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
8495         (TARGET_FOLD_BUILTIN): New #define.
8496         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
8497         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
8498         (rs6000_fold_builtin): New target hook implementation, handling
8499         folding of 128-bit NaNs and infinities.
8500         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
8501         entries are filled in to avoid problems during bootstrap
8502         self-test; define builtins for 128-bit NaNs and infinities.
8503         (rs6000_opt_mask): Add entry for float128.
8504         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
8505         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
8506         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
8507         (const_str_type_node): New #define.
8508         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
8509         to a define_expand that dispatches to either copysign<mode>3_soft
8510         or copysign<mode>3_hard.
8511         (copysign<mode>3_hard): Rename from copysign<mode>3.
8512         (copysign<mode>3_soft): New define_insn.
8513         * doc/extend.texi: Document new builtins.
8515 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8517         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
8518         PRIu64 instead of lu.
8520 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
8522         PR debug/71642
8523         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
8524         copy the type name.
8526 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8528         PR tree-optimization/71647
8529         * omp-low.c (lower_rec_input_clauses): Convert
8530         omp_clause_aligned_alignment (c) to size_type_node for the
8531         last argument of __builtin_assume_aligned.
8533 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8535         * configure.ac (calling ___tls_get_addr via GOT): New
8536         assembler/linker check.
8537         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
8538         assembler and linker supports calling ___tls_get_addr via GOT.
8539         Otherise, defined to 0.
8540         * config.in: Regenerated.
8541         * configure: Likewise.
8542         * config/i386/constraints.md (Yb): New constraint.
8543         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
8544         (REG_CLASS_NAMES): Likewise.
8545         (REG_CLASS_CONTENTS): Likewise.
8546         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
8547         the b constraint with the Yb constraint.  Call ___tls_get_addr
8548         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
8549         is 1.
8550         (*tls_local_dynamic_base_32_gnu): Likewise.
8551         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
8552         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
8553         (*tls_local_dynamic_base_64_<mode>): Likewise.
8555 2016-06-24  Martin Liska  <mliska@suse.cz>
8557         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
8558         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
8559         few functions.
8560         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
8561         argument to true if the expected number of iterations is
8562         loop-based.
8564 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
8566         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
8567         assemble for 32bit target.
8568         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
8569         and $ld_ix86_gld_32_opt to link for 32bit target.
8570         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
8571         * configure: Regenerate.
8573 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8575         * config/arm/arm.c (int_log2): Delete definition and prototype.
8576         (shift_op): Use exact_log2 instead of int_log2.
8577         (vfp3_const_double_for_fract_bits): Likewise.
8579 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8581         * internal-fn.c (expand_arith_set_overflow): New function.
8582         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
8583         Use it.
8584         (expand_arith_overflow_result_store): Likewise.  Handle precision
8585         smaller than mode precision.
8586         * tree-vrp.c (extract_range_basic): For imag part, handle
8587         properly signed 1-bit precision result.
8588         * doc/extend.texi (__builtin_add_overflow): Document that last
8589         argument can't be pointer to enumerated or boolean type.
8590         (__builtin_add_overflow_p): Document that last argument can't
8591         have enumerated or boolean type.
8593 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
8594             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8596         * config/rs6000/predicates.md (splat_input_operand): Rework.
8597         Don't allow constants, since the insns that use this predicate
8598         don't support constants.  Constants are handled by other insns
8599         that are created via combine.  During and after register
8600         allocation, only allow indexed or indirect addresses, and not
8601         general addresses.  Only allow modes supported by the hardware.
8602         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
8603         comment.  Move check for using VSPLTIS<x> to a common location,
8604         instead of doing it in two different places.
8606 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
8608         * config/i386/driver-i386.c (host_detect_local_cpu): Set
8609         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
8610         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
8611         signature_CENTAUR_ebx.
8613 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8615         PR target/66232
8616         PR target/67400
8617         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
8618         (as_ix86_gas_32_opt): This.
8619         (ld_ix86_tls_ldm_opt): Renamed to ...
8620         (ld_ix86_gld_32_opt): This.
8621         (R_386_TLS_LDM reloc): Updated.
8622         (R_386_GOT32X reloc): New assembler/linker check.
8623         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
8624         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
8625         defined to 0.
8626         * config.in: Regenerated.
8627         * configure: Likewise.
8628         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
8629         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
8630         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
8631         if ix86_force_load_from_GOT_p returns true.
8632         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
8633         ix86_force_load_from_GOT_p returns true.
8634         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
8635         the external function address via the GOT slot.
8636         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
8637         HAVE_AS_IX86_GOT32X before returning false.
8638         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
8639         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
8641 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
8643         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
8645 2016-06-23  Andi Kleen  <ak@linux.intel.com>
8647         * Makefile.in: Regenerate.
8648         * doc/install.texi: Document autoprofiledbootstrap.
8650 2016-06-23  Andi Kleen  <ak@linux.intel.com>
8652         * config/i386/gcc-auto-profile: New file.
8654 2016-06-23  Martin Liska  <mliska@suse.cz>
8656         PR middle-end/71619
8657         * predict.c (predict_loops): Revert the hunk that was removed
8658         in r237103.
8660 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
8662         * config.gcc: Add support for arm*-*-phoenix* targets.
8663         * config/arm/t-phoenix: New.
8664         * config/phoenix.h: New.
8666 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
8667             H.J. Lu  <hongjiu.lu@intel.com>
8669         PR target/67400
8670         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
8671         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
8672         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
8673         ix86_force_load_from_GOT_p returns true.
8674         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
8675         ix86_force_load_from_GOT_p returns true.
8676         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
8677         ix86_force_load_from_GOT_p returns true.
8678         (ix86_expand_move): Load the external function address via the
8679         GOT slot if ix86_force_load_from_GOT_p returns true.
8680         * config/i386/predicates.md (x86_64_immediate_operand): Return
8681         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
8682         (x86_64_zext_immediate_operand): Ditto.
8684 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
8686         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
8688 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
8690         PR c/70339
8691         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
8692         * diagnostic.c (pedwarn_at_rich_loc): New function.
8693         * spellcheck.h (best_match::best_match): Add a
8694         "best_distance_so_far" optional parameter.
8695         (best_match::set_best_so_far): New method.
8696         (best_match::get_best_distance): New accessor.
8697         (best_match::get_best_candidate_length): New accessor.
8699 2016-06-22  Nick Clifton  <nickc@redhat.com>
8701         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
8702         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
8703         modes are accepted as well.
8704         (ucompare_loc_descriptor): Likewise.
8705         (minmax_loc_descriptor): Likewise.
8706         (clz_loc_descriptor): Likewise.
8707         (popcount_loc_descriptor): Likewise.
8708         (bswap_loc_descriptor): Likewise.
8709         (rotate_loc_descriptor): Likewise.
8710         (mem_loc_descriptor): Likewise.
8711         (loc_descriptor): Likewise.
8713 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
8715         * common.opt (fdiagnostics-parseable-fixits): New option.
8716         * diagnostic.c: Include "selftest.h".
8717         (print_escaped_string): New function.
8718         (print_parseable_fixits): New function.
8719         (diagnostic_report_diagnostic): Call print_parseable_fixits.
8720         (selftest::assert_print_escaped_string): New function.
8721         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
8722         (selftest::test_print_escaped_string): New function.
8723         (selftest::test_print_parseable_fixits_none): New function.
8724         (selftest::test_print_parseable_fixits_insert): New function.
8725         (selftest::test_print_parseable_fixits_remove): New function.
8726         (selftest::test_print_parseable_fixits_replace): New function.
8727         (selftest::diagnostic_c_tests): New function.
8728         * diagnostic.h (struct diagnostic_context): Add field
8729         "parseable_fixits_p".
8730         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8731         -fdiagnostics-parseable-fixits.
8732         (-fdiagnostics-parseable-fixits): New option.
8733         * opts.c (common_handle_option): Handle
8734         -fdiagnostics-parseable-fixits.
8735         * selftest-run-tests.c (selftest::run_tests): Call
8736         selftest::diagnostic_c_tests.
8737         * selftest.h (selftest::diagnostic_c_tests): New prototype.
8739 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
8741         PR tree-optimization/71488
8742         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
8743         comparison of boolean vectors.
8744         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
8745         of boolean vectors using bitwise operations.
8747 2016-06-22  Andreas Schwab  <schwab@suse.de>
8749         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
8750         Remove declaration.
8752 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
8754         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
8756 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8758         * config/i386/i386.c (print_reg): Emit an error message on attempt to
8759         print FLAGS_REG.
8761 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8763         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
8764         * config/arm/arm-cores.def (cortex-a73): New entry.
8765         (cortex-a73.cortex-a35): Likewise.
8766         (cortex-a73.cortex-a53): Likewise.
8767         * config/arm/arm-tables.opt: Regenerate.
8768         * config/arm/arm-tune.md: Likewise.
8769         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
8770         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
8771         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
8772         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
8773         * doc/invoke.texi (ARM Options): Document cortex-a73,
8774         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
8776 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8778         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
8779         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
8780         (cortex-a73.cortex-a35): Likewise.
8781         (cortex-a73.cortex-a53): Likewise.
8782         * config/aarch64/aarch64-tune.md: Regenerate.
8783         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
8784         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
8785         -mcpu and -mtune.
8787 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8789         * configure.ac (gcc_cv_as_compress_debug): Remove
8790         --compress-debug-sections as extra as switch.
8791         Handle gas --compress-debug-sections=type.
8792         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
8793         Handle gld --compress-debug-sections=type.
8794         * configure: Regenerate.
8796 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8798         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
8800 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
8802         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
8803         (do_rewrite): likewise.
8805 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8807         * common/config/mep/mep-common.c: Remove.
8808         * config.gcc: Remove mep-* support.
8809         * config/mep/constraints.md: Remove.
8810         * config/mep/default.h: Remove.
8811         * config/mep/intrinsics.h: Remove.
8812         * config/mep/intrinsics.md: Remove.
8813         * config/mep/ivc2-template.h: Remove.
8814         * config/mep/mep-c5.cpu: Remove.
8815         * config/mep/mep-core.cpu: Remove.
8816         * config/mep/mep-default.cpu: Remove.
8817         * config/mep/mep-ext-cop.cpu: Remove.
8818         * config/mep/mep-intrin.h: Remove.
8819         * config/mep/mep-ivc2.cpu: Remove.
8820         * config/mep/mep-pragma.c: Remove.
8821         * config/mep/mep-protos.h: Remove.
8822         * config/mep/mep.c: Remove.
8823         * config/mep/mep.cpu: Remove.
8824         * config/mep/mep.h: Remove.
8825         * config/mep/mep.md: Remove.
8826         * config/mep/mep.opt: Remove.
8827         * config/mep/predicates.md: Remove.
8828         * config/mep/t-mep: Remove.
8829         * doc/install.texi: Remove mep-* documentation.
8830         * doc/md.texi: Likewise.
8832 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8834         * config.gcc: Remove support for avr-rtems.
8835         * config/avr/gen-avr-mmcu-specs.c: Likewise.
8836         * config/avr/rtems.h: Remove.
8837         * config/avr/t-rtems: Remove.
8839 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8841         * config.gcc: Remove m32r-rtems support.
8842         * config/m32r/rtems.h: Remove.
8844 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8846         * config.gcc: Remove h8300-rtems support.
8847         * config/h8300/rtems.h: Remove.
8848         * config/h8300/t-rtems: Remove.
8850 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8852         * config.gcc: Remove support for knetbsd.
8853         * configure.ac: Likewise.
8854         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
8855         * config/knetbsd-gnu.h: Remove.
8856         * configure: Regenerate.
8858 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8860         * config.gcc: Remove support for openbsd 2 and 3.
8861         * config/openbsd-oldgas.h: Remove.
8863 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8865         * config.gcc: Remove interix support.
8866         * config/i386/i386-interix.h: Remove.
8867         * config/i386/interix.opt: Remove.
8868         * config/i386/t-interix: Remove.
8869         * configure: Regenerate.
8870         * configure.ac: Remove interix support.
8871         * doc/install.texi: Remove interix documentation.
8873 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8875         * config/rs6000/rs6000.h: Add conditional preprocessing directives
8876         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
8877         not defined.
8879 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
8881         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
8882         they are both PLACEHOLDER_EXPRs.
8884 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8886         * stor-layout.c (layout_type): Move setting complex MODE to
8887         layout_type, instead of setting it ahead of time by the caller.
8888         * tree.c (build_complex_type): Likewise.
8890 2016-06-21  Martin Liska  <mliska@suse.cz>
8892         * predict.c (force_edge_cold): Replace imposisble with
8893         impossible.
8895 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
8897         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
8898         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
8900 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
8902         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
8904 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
8905             Ilya Enkovich  <ilya.enkovich@intel.com>
8907         PR target/71549
8908         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
8909         New member function to convert V1TImode register to SUBREG
8910         TImode in debug insn.
8911         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
8912         after changing register mode to V1TImode.
8914 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
8916         * config/aarch64/aarch64-cores.def (vulcan): New core.
8917         * config/aarch64/aarch64-tune.md: Regenerate.
8918         * doc/invoke.texi: Document vulcan as an available option.
8920 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
8922         * cse.c (canon_asm_operands): New function extracted from...
8923         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
8924         either standalone or member of a PARALLEL.
8926 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
8928         PR target/30417
8929         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
8930         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
8931         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
8933 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
8935         PR target/71103
8936         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
8937         constant addresses if can_create_pseudo_p.
8939 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
8941         PR tree-optimization/71588
8942         * tree-ssa-strlen.c (valid_builtin_call): New function.
8943         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
8944         it.
8946 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
8948         PR middle-end/71581
8949         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
8950         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
8951         for conversion of scalar user var to complex type and use the
8952         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
8953         punt.
8955         PR rtl-optimization/71591
8956         * toplev.c (toplev::run_self_tests): If no_backend, complain and
8957         don't run any tests.
8959 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
8961         PR target/71571
8962         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
8963         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
8964         space for PIC with non-v32 and the common non-PIC "jump".
8966 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
8968         PR target/71559
8969         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
8970         returned values and add UN*/LTGT/*ORDERED cases with values matching
8971         D operand modifier on vcmp for AVX.
8973 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
8975         * config/aarch64/aarch64.opt
8976         (mpc-relative-literal-loads): Rename internal option name.
8977         * config/aarch64/aarch64.c
8978         (aarch64_nopcrelative_literal_loads): Rename to
8979         aarch64_pcrelative_literal_loads.
8980         (aarch64_expand_mov_immediate): Likewise.
8981         (aarch64_secondary_reload): Likewise.
8982         (aarch64_can_use_per_function_literal_pools_p): Likewise.
8983         (aarch64_override_options_after_change_1): Rename and simplify logic.
8984         (aarch64_classify_symbol): Merge large model checks into switch,
8985         remove pc-relative load check.
8987 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
8989         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
8990         costs relative to the cost of a register move.
8992 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
8994         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
8995         (vcvt_n_f64_u64): Likewise.
8996         (vcvt_n_s64_f64): Likewise.
8997         (vcvt_n_u64_f64): Likewise.
8998         (vcvt_f64_s64): Likewise.
8999         (vrecpe_f64): Likewise.
9000         (vcvt_f64_u64): Likewise.
9001         (vrecps_f64): Likewise.
9003 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
9005         * config/aarch64/aarch64.md
9006         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
9007         iterators.
9008         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
9009         attributes.
9010         * config/aarch64/aarch64-builtins.c
9011         (aarch64_types_binop_uss_qualifiers): Delete.
9012         (TYPES_BINOP_USS): Likewise.
9013         (aarch64_types_binop_sus_qualifiers): Likewise.
9014         (TYPES_BINOP_SUS): Likewise.
9015         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
9016         (TYPES_FCVTIMM_SUS): Likewise.
9017         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
9018         rather than BINOP.
9019         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
9020         (fcvtzs): Use SHIFTIMM rather than BINOP.
9021         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
9023 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
9025         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
9026         costs relative to the cost of a register move.
9028 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
9030         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
9031         Allow scalar/single vector modes to be tieable.
9033 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
9035         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
9037 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9039         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
9040         "alignement".
9041         * tree.h (TYPE_ALIGN): Likewise.
9043 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
9045         PR target/71103
9046         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
9048 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
9050         * config/avr/avr.c (avr_print_operand): Fix "format not a string
9051         literal" build warnings.
9052         (avr_print_operand_address): Dito.
9054 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
9056         PR target/71375
9057         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
9058         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
9060 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
9062         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
9064 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
9066         PR bootstrap/71435
9067         * reload1.c (reload): Pass 0 to finish_spills when called because
9068         update_eliminables_and_spill returns true and remove did_spill.
9069         (finish_spills): Adjust comment and document GLOBAL parameter.
9071 2016-06-17  DJ Delorie  <dj@redhat.com>
9073         PR target/71338
9074         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
9075         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
9076         (umulqihi3_virt): Likewise.
9077         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
9078         (umulqihi3_real): Likewise.
9080 2016-06-17  Martin Liska  <mliska@suse.cz>
9082         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
9084 2016-06-17  Martin Liska  <mliska@suse.cz>
9086         * predict.def: PRED_LOOP_EXIT from 92 to 85.
9088 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
9090         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
9091         __FAST_MATH__.
9092         (vaddq_f32): Likewise.
9093         (vmul_f32): Likewise.
9094         (vmulq_f32): Likewise.
9095         (vsub_f32): Likewise.
9096         (vsubq_f32): Likewise.
9098 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
9100         PR tree-optimization/71347
9101         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
9102         cost for all uses in group.
9104 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
9106         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
9107         insert gimple seq if it's not empty.
9109 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
9111         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
9112         member OFFSET.
9113         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
9114         rather than OFFSET.
9115         (comp_dr_with_seg_len_pair): Ditto.
9116         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
9117         struct dr_with_seg_len_pair against DR_OFFSET.
9118         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
9119         DR_OFFSET directly.
9121 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9123         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
9125 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
9127         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
9128         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
9129         (pa_output_millicode_call): Likewise.
9130         (pa_output_call): Likewise.
9131         (pa_output_indirect_call): Likewise.
9132         (pa_asm_output_mi_thunk): Likewise.
9134 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9136         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
9138 2016-06-16  Martin Liska  <mliska@suse.cz>
9140         * predict.c (combine_predictions_for_insn): When we find a first
9141         match predictor, we should consider just predictors with
9142         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
9143         DS theory predictor.
9144         (combine_predictions_for_bb): Likewise.
9146 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
9148         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
9149         with base of reference to struct.
9151 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
9153         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
9155 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9157         PR target/71151
9158         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
9159         progmem_swtable_section.
9160         (progmem_swtable_section): Remove.
9161         (avr_asm_function_rodata_section): Remove.
9162         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
9163         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
9165 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
9167         * config/i386/driver-i386.c (host_detect_local_cpu): Set
9168         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
9169         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
9170         signature_CENTAUR_ebx.
9171         * config/i386/i386.c (ix86_option_override_internal): Add
9172         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
9173         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
9174         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
9176 2016-06-16  Martin Liska  <mliska@suse.cz>
9178         * predict.def: Add fortran loop preheader predictor.
9179         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
9180         fold IFN_BUILTIN_EXPECT with a known constant argument.
9182 2016-06-16  Martin Liska  <mliska@suse.cz>
9184         * predict.def: Add 'Fortran' to display text of all
9185         PRED_FORTRAN_* predictors.
9187 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
9189         PR target/71242
9190         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
9191         [IA64_BUILTIN_NANSQ]: Ditto.
9192         (ia64_fold_builtin): New function.
9193         (TARGET_FOLD_BUILTIN): New define.
9194         (ia64_init_builtins) Declare const_string_type node.
9195         Add __builtin_nanq and __builtin_nansq builtin functions.
9196         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
9198 2016-06-16  Nick Clifton  <nickc@redhat.com>
9200         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
9201         MSP430_HWMULT_ prefix to enum values.
9202         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
9203         * config/msp430/msp430.c: Update use of enum values.
9204         * config/msp430/msp430.md: Likewise.
9205         * config/msp430/msp430.opt: Likewise.
9207 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
9209         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
9210         of comparsions in the last iteration.
9212 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
9213             Joern Rennecke  <joern.rennecke@embecosm.com>
9215         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
9216         addresses.
9217         (arc_needs_pcl_p): Add GOTOFFPC.
9218         (arc_legitimate_pic_addr_p): Likewise.
9219         (arc_output_pic_addr_const): Likewise.
9220         (arc_legitimize_pic_address): Generate a pc-relative address using
9221         GOTOFFPC.
9222         (arc_output_libcall): Use @pcl syntax.
9223         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
9224         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
9225         (*movsi_insn): Use @pcl syntax.
9226         (doloop_begin_i): Likewise.
9228 2016-06-16  Martin Liska  <mliska@suse.cz>
9230         * predict.def: Define a new predictor.
9232 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
9234         * config/arc/arc.opt (mtp-regno): Update text.
9236 2016-06-16  Renlin Li  <renlin.li@arm.com>
9238         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
9240 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
9242         PR target/71554
9243         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
9244         (setcc + and peephole2): Likewise.
9246         PR rtl-optimization/71532
9247         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
9248         memory slots.
9250 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
9252         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
9253         DImode constants with XXSPLTIB in vector registers.
9254         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
9255         vsx_extract_<mode>_internal{1,2} into a single insn that handles
9256         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
9257         extraction of the element at the top of the register as a scalar
9258         value.
9259         (vsx_extract_<mode>_internal1): Likewise.
9260         (vsx_extract_<mode>_internal2): Likewise.
9261         * config/rs6000/constraints.md (wi constraint): Remove a comment
9262         about DImode not being allowed in Altivec registers.
9263         (wB constraint): New constraint for constants that can be
9264         generated in Altivec registers with VSPLTISW/VUPKHSW.
9265         * config/rs6000/predicates.md (xxspltib_constant_split): Update
9266         comments.
9267         (xxspltib_constant_nosplit): Likewise.
9268         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
9269         support for -mupper-regs-di to enable DImode to go into Altivec
9270         registers.
9271         (POWERPC_MASKS): Likewise.
9272         (power7 cpu): Likewise.
9273         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
9274         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
9275         for DImode being allowed in Altivec registers.  Update wi/wj
9276         constraints.  Set scalar_in_vmx_p flag.
9277         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
9278         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
9279         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
9280         (rs6000_opt_masks): Add -mupper-regs-di.
9281         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
9282         direct move to use wi and not wj.
9283         (lfiwzx): Likewise.
9284         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
9285         alternative.
9286         (floatunssi<mode>2_lfiwzx_mem): Likewise.
9287         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
9288         any VSX register, instead of just Altivec registers, to allow
9289         either operand to be an Altivec register or both.
9290         (fixuns_trunc<mode>di2_fctiduz): Likewise.
9291         (movdi_internal32): Add support for -mupper-regs-di.  Add support
9292         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
9293         the alternatives and attributes to be lined up to be easier to
9294         read.
9295         (movdi_internal64): Likewise.
9296         (64-bit DImode splitters): Change predicates to only split loading
9297         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
9298         load constants in ISA 3.0 or ISA 2.07 respectively.
9299         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9300         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
9301         mention -mcpu=power9 sets these options.
9302         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
9303         wB constraint.
9305 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9307         PR target/67353
9308         * config/avr/avr.c (avr_set_current_function): Warn misspelled
9309         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
9310         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
9311         by default to warn misspelled interrupt/ signal handler.
9312         * doc/invoke.texi (AVR Options): Document it. Update description
9313         for -nodevicelib option.
9315 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9317         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
9318         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
9319         (aarch64_<sur>shll2_n<mode>): Likewise.
9321 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
9323         PR middle-end/71529
9324         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
9325         DECL_CONTEXT for copied arguments.
9327 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
9329         PR tree-optimization/71483
9330         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
9331         for slp
9333 2016-06-15  Martin Liska  <mliska@suse.cz>
9335         * predict.c (tree_predict_by_opcode): Call predict_edge_def
9336         instead of predict_edge w/o a probability.
9338 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
9340         PR tree-optimization/71439
9341         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
9342         live PHIs.
9344 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9346         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
9347         register subregs in SET_SRC.
9349 2016-06-15  Richard Biener  <rguenther@suse.de>
9351         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
9352         store restrictions.
9354 2016-06-15  Richard Biener  <rguenther@suse.de>
9356         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
9357         not consider dependences between accesses that belong to the
9358         same group.
9359         (vect_analyze_data_ref_dependences): Do not analyze read-read
9360         or self-dependences.
9362 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
9364         * spellcheck-tree.c: Include spellcheck-tree.h rather than
9365         spellcheck.h.
9366         (find_closest_identifier): Reimplement in terms of
9367         best_match<tree,tree>.
9368         * spellcheck-tree.h: New file.
9369         * spellcheck.c (struct edit_distance_traits<const char *>): New
9370         struct.
9371         (find_closest_string): Reimplement in terms of
9372         best_match<const char *, const char *>.
9373         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
9374         overload to spellcheck-tree.h.
9375         (find_closest_identifier): Likewise.
9376         (struct edit_distance_traits<T>): New template.
9377         (class best_match): New class.
9379 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
9381         * selftest-run-tests.c (selftest::run_tests): Call
9382         selftest::spellcheck_tree_c_tests.
9383         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
9384         * spellcheck-tree.c: Include selftest.h and stringpool.h.
9385         (selftest::test_find_closest_identifier): New function.
9386         (selftest::spellcheck_tree_c_tests): New function.
9387         * spellcheck.c (selftest::test_find_closest_string): Verify that
9388         the order of the vec does not affect the results for this case.
9389         (selftest::test_data): New array.
9390         (selftest::test_metric_conditions): New function.
9391         (selftest::spellcheck_c_tests): Add a test of case-comparison.
9392         Call selftest::test_metric_conditions.
9394 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9396         * config/rs6000/rs6000-builtin.def (commentary): Typo.
9397         (BU_P9_MISC_1): Likewise.
9398         (BU_P9_64BIT_MISC_0): Likewise.
9399         (BU_P9_MISC_0): Likewise.
9401 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
9403         * gcc-rich-location.c
9404         (gcc_rich_location::add_fixit_misspelled_id): New method.
9405         * gcc-rich-location.h
9406         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
9408 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
9410         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
9411         FreeBSD 11 and above.
9413 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
9415         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
9417 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9419         * expmed.h: Close parenthesis in "at your option" in copyright
9420         boilerplate.
9421         * lower-subreg.h: Likewise.
9423 2016-06-14  Richard Biener  <rguenther@suse.de>
9425         PR middle-end/71526
9426         * genmatch.c (expr::gen_transform): Use in_type for comparisons
9427         if available.
9429 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9431         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
9432         New function.
9433         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
9434         mask+shift version.
9435         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
9436         New prototype.
9437         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
9438         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
9440 2016-06-14  Richard Biener  <rguenther@suse.de>
9442         PR tree-optimization/71522
9443         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
9444         copying into float copying.
9446 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
9448         PR tree-optimization/71520
9449         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
9450         (replace_block_by): Move user labels from bb1 to bb2.
9452 2016-06-14  Richard Biener  <rguenther@suse.de>
9454         PR middle-end/71310
9455         PR bootstrap/71510
9456         * expr.h (get_bit_range): Declare.
9457         * expr.c (get_bit_range): Export.
9458         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
9459         word_mode again to constrain the bitfield access.
9461 2016-06-14  Richard Biener  <rguenther@suse.de>
9463         PR tree-optimization/71521
9464         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
9465         division int_const_binop against zero divisor.
9467 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
9469         * config/i386/i386.md (signbittf2): New expander.
9470         * config/i386/sse.md (ptesttf2): New insn pattern.
9472 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9474         PR bootstrap/71481
9475         * input.c (selftest::test_reading_source_line): Avoid reading from
9476         __FILE__ by creating a tempfile with known content and reading
9477         from that instead.
9479 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9481         * pretty-print.c (assert_pp_format_colored): Skip the test if
9482         GCC_COLORS is set.
9483         (test_pp_format): Remove comment about GCC_COLORS.
9485 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9487         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
9488         * pretty-print.c (assert_pp_format_va): Add location param and use
9489         it with ASSERT_STREQ_AT.
9490         (assert_pp_format): Add location param and pass it to
9491         assert_pp_format_va.
9492         (assert_pp_format_colored): Likewise.
9493         (ASSERT_PP_FORMAT_1): New.
9494         (ASSERT_PP_FORMAT_2): New.
9495         (ASSERT_PP_FORMAT_3): New.
9496         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
9497         explicitly, or implicitly via the above macros.
9498         * selftest.c (selftest::pass): Use a selftest::location rather
9499         than file and line.
9500         (selftest::fail): Likewise.  Print the function name.
9501         (selftest::fail_formatted): Likewise.
9502         (selftest::assert_streq): Use a selftest::location rather than
9503         file and line.
9504         * selftest.h (selftest::location): New struct.
9505         (SELFTEST_LOCATION): New macro.
9506         (selftest::pass): Accept a const location & rather than file
9507         and line.
9508         (selftest::fail): Likewise.
9509         (selftest::fail_formatted): Likewise.
9510         (selftest::assert_streq): Likewise.
9511         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
9512         (ASSERT_FALSE): Likewise.
9513         (ASSERT_EQ): Likewise.
9514         (ASSERT_NE): Likewise.
9515         (ASSERT_STREQ): Likewise.
9516         (ASSERT_PRED1): Likewise.
9517         (ASSERT_STREQ_AT): New macro.
9519 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9521         * selftest.c (selftest::fail_formatted): New function.
9522         (selftest::assert_streq): New function.
9523         * selftest.h (selftests::fail_formatted): New decl.
9524         (selftest::assert_streq): New decl.
9525         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
9527 2016-06-13  Jeff Law  <law@redhat.com>
9529         PR tree-optimization/71403
9530         * tree-ssa-threadbackward.c
9531         (convert_and_register_jump_thread_path): No longer accept reference
9532         to path.  Do not pop items off the path anymore.
9533         (fsm_find_control_statement_thread_paths): Do not allow threading
9534         to a deeper loop nest.  Pop the last item off the path here rather
9535         than in convert_and_register_jump_thread_path.
9537 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
9538             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
9540         [AArch64] Emit division using the Newton series
9542         * config/aarch64/aarch64-protos.h
9543         (cpu_approx_modes): Add new member "division".
9544         (aarch64_emit_approx_div): Declare new function.
9545         * config/aarch64/aarch64.c
9546         (generic_approx_modes): New member "division".
9547         (exynosm1_approx_modes): Likewise.
9548         (xgene1_approx_modes): Likewise.
9549         (aarch64_emit_approx_div): Define new function.
9550         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
9551         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
9552         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
9553         * doc/invoke.texi (-mlow-precision-div): Describe new option.
9555 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
9556             Wilco Dijkstra  <wilco.dijkstra@arm.com>
9558         [AArch64] Emit square root using the Newton series
9560         * config/aarch64/aarch64-protos.h
9561         (aarch64_emit_approx_rsqrt): Replace with new function
9562         "aarch64_emit_approx_sqrt".
9563         (cpu_approx_modes): New member "sqrt".
9564         * config/aarch64/aarch64.c
9565         (generic_approx_modes): New member "sqrt".
9566         (exynosm1_approx_modes): Likewise.
9567         (xgene1_approx_modes): Likewise.
9568         (aarch64_emit_approx_rsqrt): Replace with new function
9569         "aarch64_emit_approx_sqrt".
9570         (aarch64_override_options_after_change_1): Handle new option.
9571         * config/aarch64/aarch64-simd.md
9572         (rsqrt<mode>2): Use new function instead.
9573         (sqrt<mode>2): New expansion and insn definitions.
9574         * config/aarch64/aarch64.md: Likewise.
9575         * config/aarch64/aarch64.opt
9576         (mlow-precision-sqrt): Add new option description.
9577         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
9579 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
9581         [AArch64] Add more choices for the reciprocal square root approximation
9583         Allow a target to prefer such operation depending on the operation mode.
9585         * config/aarch64/aarch64-protos.h
9586         (AARCH64_APPROX_MODE): New macro.
9587         (AARCH64_APPROX_{NONE,ALL}): Likewise.
9588         (cpu_approx_modes): New structure.
9589         (tune_params): New member "approx_modes".
9590         * config/aarch64/aarch64-tuning-flags.def
9591         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
9592         * config/aarch64/aarch64.c
9593         (generic_approx_modes): New core "cpu_approx_modes" structure.
9594         (exynosm1_approx_modes): Likewise.
9595         (xgene1_approx_modes): Likewise.
9596         (generic_tunings): New member "approx_modes".
9597         (cortexa35_tunings): Likewise.
9598         (cortexa53_tunings): Likewise.
9599         (cortexa57_tunings): Likewise.
9600         (cortexa72_tunings): Likewise.
9601         (exynosm1_tunings): Likewise.
9602         (thunderx_tunings): Likewise.
9603         (xgene1_tunings): Likewise.
9604         (use_rsqrt_p): New argument for the mode and use new member from
9605         "tune_params".
9606         (aarch64_builtin_reciprocal): Devise mode from builtin.
9607         (aarch64_optab_supported_p): New argument for the mode.
9608         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
9610 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9612         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
9613         RS6000_BTM_MODULO flag into the set of flags that are considered
9614         to be part of the common configuration.
9616 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9618         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
9619         difference unsigned.
9620         (vec_absdb): New macro for vector absolute difference unsigned
9621         byte.
9622         (vec_absdh): New macro for vector absolute difference unsigned
9623         half-word.
9624         (vec_absdw): New macro for vector absolute difference unsigned word.
9625         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
9626         (vadu<mode>3): New insn.
9627         (*p9_vadu<mode>3): New insn.
9628         * config/rs6000/rs6000-builtin.def (vadub): New built-in
9629         definition.
9630         (vaduh): New built-in definition.
9631         (vaduw): New built-in definition.
9632         (vadu): New overloaded built-in definition.
9633         (vadub): New overloaded built-in definition.
9634         (vaduh): New overloaded built-in definition.
9635         (vaduw): New overloaded built-in definition.
9636         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9637         overloaded vector absolute difference unsigned functions.
9638         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9639         the ISA 3.0 vector absolute difference unsigned built-in functions.
9641 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
9643         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
9644         update shared_lookup_references only once after changing operands.
9646 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
9648         PR middle-end/71373
9649         * tree-nested.c (convert_nonlocal_omp_clauses)
9650         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
9652         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
9653         * tree.def (CASE_LABEL_EXPR): Likewise.
9655 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9657         PR bootstrap/71481
9658         * input.c (test_builtins): Fix an assertion.
9660 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
9662         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
9663         (paritysi2): Ditto.
9664         (isinfxf2): Ditto.
9665         (isinf<mode>2): Ditto.
9667 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
9669         * ggc-tests.c (test_finalization): Only test need_finalization_p
9670         for GCC_VERSION >= 4003.
9672 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9674         * config/s390/vecintrin.h: Fix file description in comment.
9676 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9678         * config/s390/s390-builtin-types.def: Change builtin type naming
9679         scheme to match builtin-types.def.
9681 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
9683         * fold-const.c (optimize_minmax_comparison): Remove.
9684         (fold_comparison): Remove call to the above.
9685         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
9686         New transformations.
9688 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
9690         PR tree-optimization/71416
9691         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
9692         multiple entries
9694 2016-06-13  Martin Liska  <mliska@suse.cz>
9696         * predict.c (enum predictor_reason): Prefix enum with REASON_.
9697         (combine_predictions_for_insn): Likewise.
9698         (prune_predictions_for_bb): Likewise.
9699         (combine_predictions_for_bb): Likewise.
9701 2016-06-13  Richard Biener  <rguenther@suse.de>
9703         PR tree-optimization/71505
9704         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
9705         assert match comment.
9707 2016-06-13  Marek Polacek  <polacek@redhat.com>
9709         PR middle-end/71476
9710         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
9711         gimplify_switch_expr.
9712         (warn_switch_unreachable_r): New function.
9714 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9716         PR target/71379
9717         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
9718         one.
9720 2016-06-13  Richard Biener  <rguenther@suse.de>
9722         PR middle-end/64516
9723         * fold-const.c (fold_unary_loc): Preserve alignment when
9724         folding a VIEW_CONVERT_EXPR into a MEM_REF.
9726 2016-06-13  Martin Liska  <mliska@suse.cz>
9728         PR sanitizer/71458
9729         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
9730         w/ -fsanitize=bounds.
9732 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
9734         * config/i386/i386.c (ix86_init_builtins): Calculate
9735         FLOAT128_FTYPE_CONST_STRING function type only once.
9736         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
9737         built-in functions are available for x86-32 and x86-64 targets.
9739 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
9741         PR target/71241
9742         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
9743         New primitive type.
9744         (FLOAT128_FTYPE_CONST_STRING): New function type.
9745         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
9746         [IX86_BUILTIN_NANSQ]: Ditto.
9747         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
9748         (ix86_init_builtin_types): Declare const_string_type_node.
9749         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
9750         builtin functions.
9751         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
9752         * doc/extend.texi (x86 Built-in Functions): Document
9753         __builtin_nanq and __builtin_nansq.
9755 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
9757         PR target/71061
9758         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
9759         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
9760         length for pop patterns.
9761         (arm_attr_length_push_multi): Update comments.
9762         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
9763         attribute.
9764         (*pop_multiple_with_writeback_and_return): Likewise.
9765         (*pop_multiple_with_return): Likewise.
9767 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
9769         PR middle-end/71310
9770         * fold-const.c (optimize_bit_field_compare): Don't try to use
9771         word_mode unconditionally for reading the bit field, look at
9772         DECL_BIT_FIELD_REPRESENTATIVE instead.
9774 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
9776         PR middle-end/71478
9777         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
9778         vector integer type.
9780 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
9782         PR middle-end/71494
9783         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
9784         without LABEL_DECL, set *handled_ops_p to false instead of true.
9786 2016-06-10  Martin Sebor  <msebor@redhat.com>
9788         PR c/71392
9789         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
9790         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
9791         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
9792         them.
9793         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
9794         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
9795         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
9796         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
9797         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
9798         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
9799         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
9800         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
9802 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9804         * config/arm/arm.h (pool_vector_label,
9805         return_used_this_function): Remove.
9807 2016-06-10  Jeff Law  <law@redhat.com>
9809         PR tree-optimization/71335
9810         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
9811         zero length paths here.
9812         (convert_and_register_jump_thread_path): Remove hacks related to
9813         duplicated blocks in the jump thread path.
9814         (fsm_find_control_statement_thread_paths): Avoid putting the same
9815         block on the thread path twice, but ensure the thread path is
9816         unchanged from the caller's point of view.
9818 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
9820         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
9821         * predict.def (PRED_LOOP_BRANCH): Remove.
9823 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
9825         * Makefile.in (OBJS): Add ggc-tests.o.
9826         (GTFILES): Add ggc-tests.c.
9827         * ggc-tests.c: New file.
9828         * selftest-run-tests.c (selftest::run_tests): Call
9829         selftest::ggc_tests_c_tests.
9830         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
9832 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
9834         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
9836 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
9838         PR sanitizer/71480
9839         * varasm.c (place_block_symbol): Adjust alignment for asan protected
9840         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
9842 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
9844         * profile.c: Include cfgloop.h.
9845         (branch_prob): Compute estimated number of iterations.
9846         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
9847         recompute estimate number of iterations from profile.
9849 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9851         PR inline-asm/68843
9852         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
9853         must be grouped on top of stack.  Don't force early clobber
9854         on ordinary reg outputs.
9856 2016-06-10  Richard Biener  <rguenther@suse.de>
9858         * targhooks.c (default_builtin_vectorization_cost): Adjust
9859         vec_construct cost.
9861 2016-06-10  Richard Biener  <rguenther@suse.de>
9863         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
9864         to fold the RHS to a constant if possible.
9866 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
9868         PR middle-end/71373
9869         * tree-nested.c (convert_nonlocal_omp_clauses)
9870         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
9871         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
9872         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
9874         * gimplify.c (gimplify_adjust_omp_clauses): Discard
9875         OMP_CLAUSE_TILE.
9876         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
9878         * omp-low.c (scan_sharing_clauses): Don't expect
9879         OMP_CLAUSE__CACHE_.
9881 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
9883         PR tree-optimization/71407
9884         PR tree-optimization/71416
9885         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
9886         BIT_FIELD_REF type.
9888 2016-06-10  Richard Biener  <rguenther@suse.de>
9890         PR middle-end/71477
9891         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
9893 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
9895         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
9897 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
9898             Jiong Wang  <jiong.wang@arm.com>
9900         PR rtl-optimization/70751
9901         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
9902         spilled into memory.
9904 2016-06-09  Jonathan Yong  <10walls@gmail.com>
9906         Revert:
9907         2015-09-21  Jonathan Yong  <10walls@gmail.com>
9909         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
9910         sysroot/usr/lib/32api for additional win32 libraries,
9911         fixes failing Cygwin bootstrapping.
9913 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
9915         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
9916         Delete.
9918 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
9920         PR bootstrap/71471
9921         * pretty-print.c (pp_indent): Specify that %p is printed in a
9922         host-dependent manner.
9923         (test_pp_format): Remove the test for %p.
9925 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
9927         * config/mips/mips.c (mips_output_jump): Fix formatting.
9929 2016-06-09  Richard Biener  <rguenther@suse.de>
9931         PR tree-optimization/71462
9932         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
9933         removed blocks.
9935 2016-06-09  Martin Liska  <mliska@suse.cz>
9937         * predict.c (dump_prediction): Add new argument.
9938         (enum predictor_reason): New enum.
9939         (struct predictor_hash): New struct.
9940         (predictor_hash::hash): New function.
9941         (predictor_hash::equal): Likewise.
9942         (not_removed_prediction_p): New function.
9943         (prune_predictions_for_bb): Likewise.
9944         (combine_predictions_for_bb): Prune predictions.
9946 2016-06-09  Martin Liska  <mliska@suse.cz>
9948         * predict.c (filter_predictions): New function.
9949         (remove_predictions_associated_with_edge): Use the filter
9950         function.
9951         (equal_edge_p): New function.
9953 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
9955         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
9956         Correct usage of @samp vs @option, add @samp where appropriate.
9957         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
9958         Add armv6s-m and document it, as it is no official ARM name.
9960 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9962         * ifcvt.c (struct noce_if_info): Add transform_name field.
9963         (noce_try_move): Set if_info->transform_name to the function name.
9964         (noce_try_ifelse_collapse): Likewise.
9965         (noce_try_store_flag): Likewise.
9966         (noce_try_inverse_constants): Likewise.
9967         (noce_try_store_flag_constants): Likewise.
9968         (noce_try_addcc): Likewise.
9969         (noce_try_store_flag_mask): Likewise.
9970         (noce_try_cmove): Likewise.
9971         (noce_try_cmove_arith): Likewise.
9972         (noce_try_minmax): Likewise.
9973         (noce_try_abs): Likewise.
9974         (noce_try_sign_mask): Likewise.
9975         (noce_try_bitop): Likewise.
9976         (noce_convert_multiple_sets): Likewise.
9977         (noce_process_if_block): Print if_info->transform_name to
9978         dump_file if transformation succeeded.
9980 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9982         * config/arm/cortex-a57.md (cortex_a57_alu):
9983         Handle csel type.
9985 2016-06-08  Martin Sebor  <msebor@redhat.com>
9986             Jakub Jelinek  <jakub@redhat.com>
9988         PR c++/70507
9989         PR c/68120
9990         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
9991         BUILT_IN_MUL_OVERFLOW_P): New builtins.
9992         * builtins.c: Include gimple-fold.h.
9993         (fold_builtin_arith_overflow): Handle
9994         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
9995         (fold_builtin_3): Likewise.
9996         * doc/extend.texi (Integer Overflow Builtins): Document
9997         __builtin_{add,sub,mul}_overflow_p.
9999 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
10001         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
10002         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
10004 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
10006         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
10007         Rewrite, looking one level down for records and arrays.
10009 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
10011         * pretty-print.c: Include "selftest.h".
10012         (pp_format): Fix comment.
10013         (identifier_to_locale): Likewise.
10014         (selftest::test_basic_printing): New function.
10015         (selftest::assert_pp_format): New function.
10016         (selftest::test_pp_format): New function.
10017         (selftest::pretty_print_c_tests): New function.
10018         * selftest-run-tests.c (selftest::run_tests): Call
10019         selftest::pretty_print_c_tests.
10020         * selftest.h (pretty_print_c_tests): New declaration.
10022 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
10024         * invoke.texi (max-loop-headers-insns): Document.
10025         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
10026         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
10027         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
10029 2016-06-08  Richard Biener  <rguenther@suse.de>
10031         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
10032         on strided SLP loads and fall back to scalar loads in case
10033         we can't chunk them.
10035 2016-06-08  Richard Biener  <rguenther@suse.de>
10037         PR tree-optimization/71452
10038         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
10039         type used for the SSA rewrite has enough precision to cover
10040         the dynamic type of the location.
10042 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
10043             Richard Biener  <rguenther@suse.de>
10045         PR c++/71448
10046         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
10047         the same as DECL_P (base0) for indirect_base0.  Use equality_code
10048         in one further place.
10050 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
10052         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
10053         to one word if the field is known to overlap other words.
10054         (extract_bit_field_1): Likewise.
10055         (store_split_bit_field): Remove compensating code.
10056         (extract_split_bit_field): Likewise.
10058 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
10060         PR debug/71432
10061         PR ada/71413
10062         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
10064 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10066         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
10067         VDQF.
10068         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
10069         (arch64_addpv4sf): Delete.
10070         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
10071         "gen_aarch64_addpv4sf".
10072         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
10073         builtin.
10074         (vpadds_f32): Likewise.
10075         (vpaddq_f32): Likewise.
10076         (vpaddq_f64): Likewise.
10078 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10080         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
10081         VALLF.
10082         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
10083         to VALLF.  Rename to "fabd<mode>3".
10084         "*fabd_scalar<mode>3): Delete.
10085         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
10086         Use builtin.
10087         (vabdd_f64): Likewise.
10088         (vabd_f32): Likewise.
10089         (vabd_f64): Likewise.
10090         (vabdq_f32): Likewise.
10091         (vabdq_f64): Likewise.
10093 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10095         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
10096         VALLF.
10097         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
10098         "aarch64_rsqrts<mode>".
10099         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
10100         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
10101         builtin.
10102         (vrsqrtsd_f64): Likewise.
10103         (vrsqrts_f32): Likewise.
10104         (vrsqrts_f64): Likewise.
10105         (vrsqrtsq_f32): Likewise.
10106         (vrsqrtsq_f64): Likewise.
10108 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10110         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
10111         VALLF.
10112         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
10113         "aarch64_rsqrte<mode>".
10114         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
10115         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
10116         builtin.
10117         (vrsqrted_f64): Likewise.
10118         (vrsqrte_f32): Likewise.
10119         (vrsqrte_f64): Likewise.
10120         (vrsqrteq_f32): Likewise.
10121         (vrsqrteq_f64): Likewise.
10123 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10125         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
10126         (ucvtf): Likewise.
10127         (fcvtzs): Likewise.
10128         (fcvtzu): Likewise.
10129         * config/aarch64/aarch64-simd.md
10130         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
10131         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
10132         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
10133         Use builtin.
10134         (vcvt_n_f32_u32): Likewise.
10135         (vcvt_n_s32_f32): Likewise.
10136         (vcvt_n_u32_f32): Likewise.
10137         (vcvtq_n_f32_s32): Likewise.
10138         (vcvtq_n_f32_u32): Likewise.
10139         (vcvtq_n_f64_s64): Likewise.
10140         (vcvtq_n_f64_u64): Likewise.
10141         (vcvtq_n_s32_f32): Likewise.
10142         (vcvtq_n_s64_f64): Likewise.
10143         (vcvtq_n_u32_f32): Likewise.
10144         (vcvtq_n_u64_f64): Likewise.
10145         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
10146         (VSDQ_SDI): Likewise.
10147         (fcvt_target): Support V4DI, V4SI and V2SI.
10148         (FCVT_TARGET): Likewise.
10150 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10152         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
10153         (TYPES_BINOP_SUS): Likewise.
10154         (aarch64_simd_builtin_data): Update include file name.
10155         (aarch64_builtins): Likewise.
10156         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
10157         for conversion between scalar float-point and fixed-point.
10158         (ucvtf): Likewise.
10159         (fcvtzs): Likewise.
10160         (fcvtzu): Likewise.
10161         * config/aarch64/aarch64.md
10162         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
10163         pattern for conversion between scalar float to fixed-pointer.
10164         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
10165         (UNSPEC_FCVTZS): New UNSPEC enumeration.
10166         (UNSPEC_FCVTZU): Likewise.
10167         (UNSPEC_SCVTF): Likewise.
10168         (UNSPEC_UCVTF): Likewise.
10169         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
10170         Use builtin.
10171         (vcvtd_n_f64_u64): Likewise.
10172         (vcvtd_n_s64_f64): Likewise.
10173         (vcvtd_n_u64_f64): Likewise.
10174         (vcvtd_n_f32_s32): Likewise.
10175         (vcvts_n_f32_u32): Likewise.
10176         (vcvtd_n_s32_f32): Likewise.
10177         (vcvts_n_u32_f32): Likewise.
10178         * config/aarch64/iterators.md (fcvt_target): Support integer to float
10179         mapping.
10180         (FCVT_TARGET): Likewise.
10181         (FCVT_FIXED2F): New iterator.
10182         (FCVT_F2FIXED): Likewise.
10183         (fcvt_fixed_insn): New define_int_attr.
10185 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
10187         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
10188         some statements was removed.
10190 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
10192         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
10193         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
10194         (vect_can_advance_ivs_p): likewise.
10195         (vect_update_ivs_after_vectorizer): likewise.
10196         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
10197         (vect_analyze_scalar_cycles_1): likewise.
10198         (vect_analyze_loop_operations): likewise.
10199         (report_vect_op): likewise.
10200         (vect_is_slp_reduction): likewise.
10201         (vect_is_simple_reduction): likewise.
10202         (get_initial_def_for_induction): likewise.
10203         (vect_transform_loop): likewise.
10204         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
10205         (vect_recog_sad_pattern): likewise.
10206         (vect_recog_widen_sum_pattern): likewise.
10207         (vect_recog_widening_pattern): likewise.
10208         (vect_recog_divmod_pattern): likewise.
10209         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
10210         (vect_analyze_slp_instance): likewise.
10211         (vect_transform_slp_perm_load): likewise.
10212         (vect_schedule_slp_instance): likewise.
10214 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
10216         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
10217         (return_prediction): PRED_CONST_RETURN predict return as not taken.
10218         * predict.def (PRED_CONTINUE): Change hitrate 50->67
10219         (PRED_LOOP_BRANCH): Document predictor as broken.
10220         (PRED_LOOP_EXIT): Change hitrate 91->92.
10221         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
10222         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
10223         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
10224         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
10225         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
10226         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
10227         (PRED_CALL): Chane hitrate 71->67.
10228         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
10229         (PRED_GOTO): Document as unused right now.
10230         (PRED_CONST_RETURN): Change hitrate 67->69
10231         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
10232         (PRED_NULL_RETURN): Change hitrate 91->90.
10233         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
10234         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
10235         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
10237 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
10239         * config/rs6000/altivec.h: Add __builtin_vec_mul.
10240         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
10241         special case Altivec builtin.
10242         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
10243         VSX_BUILTIN_VEC_MUL (replaced with special case code).
10244         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
10245         code for ALTIVEC_BUILTIN_VEC_MUL.
10246         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
10247         for __builtin_vec_mul.
10249 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
10251         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
10252         -mno-htm.
10254 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
10256         * spellcheck.c (selftest::test_find_closest_string): New function.
10257         (spellcheck_c_tests): Call the above.
10259 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10261         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
10263 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
10265         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
10266         Yv=Yv,C alternatives.
10268 2016-06-07  Richard Biener  <rguenther@suse.de>
10270         PR c/61564
10271         * common.opt (ffast-math): Make Optimization.
10273 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
10274             Prachi Godbole  <prachi.godbole@imgtec.com>
10276         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
10277         `fabs' and `fneg' type attributes.
10278         (p5600_fpu_fabs): Add `fmove' to the comment.
10280 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
10282         * gimple.c: Include builtins.h
10283         (gimple_inexpensive_call_p): New function.
10284         * gimple.h (gimple_inexpensive_call_p): Declare.
10285         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
10286         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
10287         fix formatting.
10289 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
10291         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
10292         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
10293         warning_at_rich_loc, warning_n, pedwarn, permerror,
10294         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
10295         sorry, fatal_error, internal_error, internal_error_no_backtrace):
10296         Use the above.
10298 2016-06-07  Richard Biener  <rguenther@suse.de>
10300         PR tree-optimization/71428
10301         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
10302         BIT_FIELD_REF op vs. load.
10304 2016-06-07  Richard Biener  <rguenther@suse.de>
10306         PR middle-end/71423
10307         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
10308         for signed ops.
10310 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
10312         * config/pa/pa.md (call): Generate indirect long calls to non-local
10313         functions on TARGET_64BIT.
10314         (call_value): Likewise.
10316 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
10318         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
10319         pattern and subsequent splitters.
10320         (call_val_reg_64bit_post_reload): Likewise.
10322 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
10324         PR middle-end/71408
10325         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
10326         propagate_op_to_single_use.
10328 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
10330         PR middle-end/71281
10331         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
10333 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
10335         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
10336         (enum x86_dirflag_state): New enum.
10337         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
10338         (machine_function): Remove needs_cld.
10339         (ix86_current_function_needs_cld): Remove.
10340         * config/i386/i386.c (ix86_set_func_type): Set
10341         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
10342         (ix86_expand_prologue): Do not emit CLD here.
10343         (ix86_dirflag_mode_needed): New function.
10344         (ix86_dirflag_mode_entry): Ditto.
10345         (ix86_mode_needed): Handle X86_DIRFLAG entity.
10346         (ix86_mode_after): Ditto.
10347         (ix86_mode_entry): Ditto.
10348         (ix86_mode_exit): Ditto.
10349         (ix86_emit_mode_set): Ditto.
10350         * config/i386/i386.md (strmov_singleop): Set
10351         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
10352         Do not set ix86_current_function_needs_cld.
10353         (rep_mov): Ditto.
10354         (strset_singleop): Ditto.
10355         (rep_stos): Ditto.
10356         (cmpstrnqi_nz_1): Ditto.
10357         (cmpstrnqi_1): Ditto.
10358         (strlenqi_1): Ditto.
10360 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
10362         PR tree-optimization/71259
10363         * tree-vect-slp.c (vect_get_constant_vectors): For
10364         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
10365         one for constant op, and use COND_EXPR for non-constant.
10367 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
10369         * Makefile.in (OBJS): Add function-tests.o,
10370         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
10371         selftest-run-tests.o.
10372         (OBJS-libcommon): Add selftest.o.
10373         (OBJS-libcommon-target): Add selftest.o.
10374         (all.internal): Add "selftest".
10375         (all.cross): Likewise.
10376         (selftest): New phony target.
10377         (s-selftest): New target.
10378         (selftest-gdb): New phony target.
10379         (COLLECT2_OBJS): Add selftest.o.
10380         * bitmap.c: Include "selftest.h".
10381         (selftest::test_gc_alloc): New function.
10382         (selftest::test_set_range): New function.
10383         (selftest::test_clear_bit_in_middle): New function.
10384         (selftest::test_copying): New function.
10385         (selftest::test_bitmap_single_bit_set_p): New function.
10386         (selftest::bitmap_c_tests): New function.
10387         * common.opt (fself-test): New.
10388         * diagnostic-show-locus.c: Include "selftest.h".
10389         (make_range): New function.
10390         (test_range_contains_point_for_single_point): New function.
10391         (test_range_contains_point_for_single_line): New function.
10392         (test_range_contains_point_for_multiple_lines): New function.
10393         (assert_eq): New function.
10394         (test_get_line_width_without_trailing_whitespace): New function.
10395         (selftest::diagnostic_show_locus_c_tests): New function.
10396         * et-forest.c: Include "selftest.h".
10397         (selftest::test_single_node): New function.
10398         (selftest::test_simple_tree): New function.
10399         (selftest::test_disconnected_nodes): New function.
10400         (selftest::et_forest_c_tests): New function.
10401         * fold-const.c: Include "selftest.h".
10402         (selftest::assert_binop_folds_to_const): New function.
10403         (selftest::assert_binop_folds_to_nonlvalue): New function.
10404         (selftest::test_arithmetic_folding): New function.
10405         (selftest::fold_const_c_tests): New function.
10406         * function-tests.c: New file.
10407         * gimple.c: Include "selftest.h".
10408         Include "gimple-pretty-print.h".
10409         (selftest::verify_gimple_pp): New function.
10410         (selftest::test_assign_single): New function.
10411         (selftest::test_assign_binop): New function.
10412         (selftest::test_nop_stmt): New function.
10413         (selftest::test_return_stmt): New function.
10414         (selftest::test_return_without_value): New function.
10415         (selftest::gimple_c_tests): New function.
10416         * hash-map-tests.c: New file.
10417         * hash-set-tests.c: New file.
10418         * input.c: Include "selftest.h".
10419         (selftest::assert_loceq): New function.
10420         (selftest::test_accessing_ordinary_linemaps): New function.
10421         (selftest::test_unknown_location): New function.
10422         (selftest::test_builtins): New function.
10423         (selftest::test_reading_source_line): New function.
10424         (selftest::input_c_tests): New function.
10425         * rtl-tests.c: New file.
10426         * selftest-run-tests.c: New file.
10427         * selftest.c: New file.
10428         * selftest.h: New file.
10429         * spellcheck.c: Include "selftest.h".
10430         (selftest::levenshtein_distance_unit_test_oneway): New function,
10431         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
10432         (selftest::levenshtein_distance_unit_test): Likewise.
10433         (selftest::spellcheck_c_tests): Likewise.
10434         * toplev.c: Include selftest.h.
10435         (toplev::run_self_tests): New.
10436         (toplev::main): Handle -fself-test.
10437         * toplev.h (toplev::run_self_tests): New.
10438         * tree.c: Include "selftest.h".
10439         (selftest::test_integer_constants): New function.
10440         (selftest::test_identifiers): New function.
10441         (selftest::test_labels): New function.
10442         (selftest::tree_c_tests): New function.
10443         * tree-cfg.c: Include "selftest.h".
10444         (selftest::push_fndecl): New function.
10445         (selftest::test_linear_chain): New function.
10446         (selftest::test_diamond): New function.
10447         (selftest::test_fully_connected): New function.
10448         (selftest::tree_cfg_c_tests): New function.
10449         * vec.c: Include "selftest.h".
10450         (selftest::safe_push_range): New function.
10451         (selftest::test_quick_push): New function.
10452         (selftest::test_safe_push): New function.
10453         (selftest::test_truncate): New function.
10454         (selftest::test_safe_grow_cleared): New function.
10455         (selftest::test_pop): New function.
10456         (selftest::test_safe_insert): New function.
10457         (selftest::test_ordered_remove): New function.
10458         (selftest::test_unordered_remove): New function.
10459         (selftest::test_block_remove): New function.
10460         (selftest::reverse_cmp): New function.
10461         (selftest::test_qsort): New function.
10462         (selftest::vec_c_tests): New function.c.
10463         * wide-int.cc: Include selftest.h and wide-int-print.h.
10464         (selftest::from_int <wide_int>): New function.
10465         (selftest::from_int <offset_int>): New function.
10466         (selftest::from_int <widest_int>): New function.
10467         (selftest::assert_deceq): New function.
10468         (selftest::assert_hexeq): New function.
10469         (selftest::test_printing <VALUE_TYPE>): New function template.
10470         (selftest::test_ops <VALUE_TYPE>): New function template.
10471         (selftest::test_comparisons <VALUE_TYPE>): New function template.
10472         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
10473         template.
10474         (selftest::wide_int_cc_tests): New function.
10476 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10478         PR middle-end/37780
10479         * ifcvt.c (noce_try_ifelse_collapse): New function.
10480         Declare prototype.
10481         (noce_process_if_block): Call noce_try_ifelse_collapse.
10482         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
10483         (simplify_ternary_operation): Use the above to simplify
10484         conditional CLZ/CTZ expressions.
10486 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10488         PR middle-end/37780
10489         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
10490         define_insn_and_split.
10492 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10494         PR middle-end/37780
10495         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
10497 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10499         PR c/24414
10500         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
10501         Implicitly clobber memory for basic asm with non-empty assembler
10502         string.  Use targetm.md_asm_adjust also here.
10503         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
10504         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
10505         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
10506         non-empty assembler string.
10507         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
10508         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
10509         (decode_asm_operands): Handle basic asm in PARALLEL block.
10510         (extract_insn): Handle basic asm in PARALLEL block.
10511         * doc/extend.texi: Mention new behavior of basic asm.
10512         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
10513         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
10514         branch_needs_nop_p): Use asm_noperands.
10516 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
10518         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
10519         Include the M7 SPARC DFA scheduler.
10520         New attribute v3pipe.
10521         Annotate insns with v3pipe where appropriate.
10522         Define cpu_feature vis4.
10523         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
10524         Add (V8QI "8") to vbits.
10525         Add insns {add,sub}v8qi3
10526         Add insns ss{add,sub}v8qi3
10527         Add insns us{add,sub}{v8qi,v4hi}3
10528         Add insns {min,max}{v8qi,v4hi,v2si}3
10529         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
10530         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
10531         * config/sparc/niagara4.md: Add a comment explaining the
10532         discrepancy between the documented latenty numbers and the
10533         implemented ones.
10534         * config/sparc/niagara7.md: New file.
10535         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
10536         supports SPARC5 and VIS 4.0 instructions.
10537         * configure: Regenerate.
10538         * config.in: Likewise.
10539         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
10540         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
10541         TARGET_CPU_niagara7.
10542         (ASM_CPU64_DEFAULT_SPEC): Likewise.
10543         (CPP_CPU_SPEC): Handle niagara7.
10544         (ASM_CPU_SPEC): Likewise.
10545         * config/sparc/sparc-opts.h (processor_type): Add
10546         PROCESSOR_NIAGARA7.
10547         (mvis4): New option.
10548         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
10549         (AS_NIAGARA7_FLAG): Define.
10550         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
10551         (CPP_CPU64_DEFAULT_SPEC): Likewise.
10552         (CPP_CPU_SPEC): Handle niagara7.
10553         (ASM_CPU_SPEC): Likewise.
10554         * config/sparc/sparc.c (niagara7_costs): Define.
10555         (sparc_option_override): Handle niagara7 and adjust cache-related
10556         parameters with better values for niagara cpus.  Also support VIS4.
10557         (sparc32_initialize_trampoline): Likewise.
10558         (sparc_use_sched_lookahead): Likewise.
10559         (sparc_issue_rate): Likewise.
10560         (sparc_register_move_cost): Likewise.
10561         (dump_target_flag_bits): Support VIS4.
10562         (sparc_vis_init_builtins): Likewise.
10563         (sparc_builtins): Likewise.
10564         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
10565         VIS4 4.0.
10566         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
10567         UltraSparc M7.
10568         * config/sparc/sparc.opt (sparc_processor_type): New value
10569         niagara7.
10570         * config/sparc/visintrin.h (__attribute__): Prototypes for the
10571         VIS4 builtins.
10572         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
10573         -mvis4.
10574         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
10575         VIS4 builtins.
10577 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
10579         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
10581 2016-06-06  Richard Biener  <rguenther@suse.de>
10583         PR tree-optimization/71398
10584         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
10585         remove edges.
10587 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
10589         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
10590         ft32_expand_prolog, ft32_expand_epilogue):
10591         Handle pretend_args.
10592         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
10593         * config/ft32/ft32.md: Add pretend_returner.
10595 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
10597         PR target/71389
10598         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
10599         Copy op1 RTX to avoid invalid sharing.
10600         (ix86_expand_vector_move_misalign): Ditto.
10602 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
10604         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
10605         ATTRIBUTE_UNUSED.
10607 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
10609         * predict.c (predicted_by_loop_heuristics_p): New function.
10610         (predict_iv_comparison): Use it.
10611         (predict_loops): Walk from innermost loops; do not predict edges
10612         leaving multiple loops multiple times; implement
10613         PRED_LOOP_ITERATIONS_MAX heuristics.
10614         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
10616 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
10618         * cfg.c (check_bb_profile): Do not report mismatched profiles when
10619         only edges out of BB are EH edges.
10621 2016-06-04  Martin Sebor  <msebor@redhat.com>
10622             Marcin Baczyński  <marbacz@gmail.com>
10624         PR c/48116
10625         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
10626         a void expression in a void function.
10628 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
10630         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
10631         aux; dump reasons of decisions.
10632         (should_duplicate_loop_header_p): Likewise.
10633         (do_while_loop_p): Likewise.
10634         (ch_base::copy_headers): Dump asi num insns duplicated.
10636 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
10638         PR tree-optimization/71405
10639         * tree-ssa.c (execute_update_addresses_taken): For clobber with
10640         incompatible type, build a new clobber with the right type instead
10641         of building a VIEW_CONVERT_EXPR around it.
10643 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
10645         PR tree-optimization/52171
10646         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
10647         by_pieces_ninsns instead of move_by_pieces_ninsns.
10649 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
10651         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
10652         for reg+reg addressing mode.
10654 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10656         * rs6000-c.c (c/c-tree.h): Add #include.
10657         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
10658         in C++ when found in the base position of vec_ld or vec_st.
10660 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
10662         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
10663         use of profile unless profile status is PROFILE_READ.
10664         * profile.c (compute_branch_probabilities): Set profile status
10665         only after reporting predictor hitrates.
10667 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
10669         PR target/71276
10670         PR target/71277
10671         * common.opt (ffp-int-builtin-inexact): New option.
10672         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
10673         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
10674         (ceil@var{m}2): Document dependence on this option.
10675         * ipa-inline-transform.c (inline_call): Handle
10676         flag_fp_int_builtin_inexact.
10677         * ipa-inline.c (can_inline_edge_p): Likewise.
10678         * config/i386/i386.md (rintxf2): Do not test
10679         flag_unsafe_math_optimizations.
10680         (rint<mode>2_frndint): New define_insn.
10681         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
10682         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
10683         for 387 instead of extending and truncating.
10684         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
10685         !flag_trapping_math instead of flag_unsafe_math_optimizations.
10686         Change to frndint<mode>2_<rounding>.
10687         (frndintxf2_<rounding>_i387): Likewise.  Change to
10688         frndint<mode>2_<rounding>_i387.
10689         (<rounding_insn>xf2): Likewise.
10690         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
10691         !flag_trapping_math instead of flag_unsafe_math_optimizations for
10692         x87.  Test TARGET_ROUND || !flag_trapping_math ||
10693         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
10694         SSE.  Use ROUND_NO_EXC in constant operand of
10695         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
10696         for 387 instead of extending and truncating.
10698 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
10699             Julia Koval  <julia.koval@intel.com>
10701         PR target/66960
10702         PR target/67630
10703         PR target/67634
10704         PR target/67841
10705         PR target/68037
10706         PR target/68618
10707         PR target/68661
10708         PR target/69575
10709         PR target/69596
10710         PR target/69734
10711         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
10712         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
10713         all registers, except for function return registers if there are
10714         no caller-saved registers.
10715         (ix86_set_func_type): New function.
10716         (ix86_set_current_function): Call ix86_set_func_type to set
10717         no_caller_saved_registers and func_type.  Call reinit_regs if
10718         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
10719         nor x87 instructions in interrupt handler nor function with
10720         no_caller_saved_registers attribute.
10721         (ix86_function_ok_for_sibcall): Return false if there are no
10722         caller-saved registers.
10723         (type_natural_mode): Don't warn ABI change for MMX in interrupt
10724         handler.
10725         (ix86_function_arg_advance): Skip for callee in interrupt handler.
10726         (ix86_function_arg): Return special arguments in interrupt handler.
10727         (ix86_promote_function_mode): Promote pointer to word_mode only
10728         for normal functions.
10729         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
10730         interrupt handler.
10731         (ix86_epilogue_uses): New function.
10732         (ix86_hard_regno_scratch_ok): Likewise.
10733         (ix86_save_reg): Preserve all registers in interrupt handler
10734         after reload.  Preserve all registers, except for function return
10735         registers, if there are no caller-saved registers after reload.
10736         (find_drap_reg): Always use callee-saved register if there are
10737         no caller-saved registers.
10738         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
10739         for interrupt handler.
10740         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
10741         Emit cld instruction if stringops are used in interrupt handler
10742         or interrupt handler isn't a leaf function.
10743         (ix86_expand_epilogue): Generate interrupt return for interrupt
10744         handler and pop the 'ERROR_CODE' off the stack before interrupt
10745         return in exception handler.
10746         (ix86_expand_call): Disallow calling interrupt handler directly.
10747         If there are no caller-saved registers, mark all registers that
10748         are clobbered by the call which returns as clobbered.
10749         (ix86_handle_no_caller_saved_registers_attribute): New function.
10750         (ix86_handle_interrupt_attribute): Likewise.
10751         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
10752         attributes.
10753         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
10754         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
10755         accumulation in interrupt function if stack may be realigned to
10756         avoid DRAP.
10757         (EPILOGUE_USES): New.
10758         (function_type): New enum.
10759         (machine_function): Add func_type and no_caller_saved_registers.
10760         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
10761         (interrupt_return): New pattern.
10762         * doc/extend.texi: Document x86 interrupt and
10763         no_caller_saved_registers attributes.
10765 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
10767         PR tree-optimization/52171
10768         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
10769         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
10770         Look for constant strings.  Move some code to emit_block_cmp_hints
10771         and use it.
10772         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
10773         * defaults.h (COMPARE_MAX_PIECES): New macro.
10774         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
10775         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
10776         (clear_by_pieces_1): Don't declare.  Move definition before use.
10777         (can_do_by_pieces): New static function.
10778         (can_move_by_pieces): Use it.  Return bool.
10779         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
10780         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
10781         (class pieces_addr); New.
10782         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
10783         pieces_addr::adjust, pieces_addr::increment_address,
10784         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
10785         functions for it.
10786         (class op_by_pieces_d): New.
10787         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
10788         functions for it.
10789         (class move_by_pieces_d, class compare_by_pieces_d,
10790         class store_by_pieces_d): New subclasses of op_by_pieces_d.
10791         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
10792         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
10793         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
10794         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
10795         compare_by_pieces_d::finish_mode): New member functions.
10796         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
10797         functions.
10798         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
10799         (emit_block_cmp_hints): New function.
10800         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
10801         use the newly defined classes.
10802         * expr.h (by_pieces_constfn): New typedef.
10803         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
10804         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
10805         (move_by_pieces_ninsns): Don't declare.
10806         (can_move_by_pieces): Change return value to bool.
10807         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
10808         (compare_by_pieces_branch_ratio): New hook.
10809         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
10810         (by_pieces_ninsns): Declare.
10811         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
10812         COMPARE_BY_PIECES.
10813         (default_compare_by_pieces_branch_ratio): New function.
10814         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
10815         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
10816         * doc/tm.texi: Regenerate.
10817         * tree-ssa-strlen.c: Include "builtins.h".
10818         (handle_builtin_memcmp): New static function.
10819         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
10820         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
10822 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10824         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
10825         relevant stmts which are simple and invariant.
10826         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
10827         instead of simple and invariant
10829 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10831         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
10832         (vectorizable_reduction): Check for new relevant state.
10833         (vectorizable_live_operation): vectorize live stmts using
10834         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
10835         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
10836         (vect_stmt_relevant_p): Check for stmts which are only used live.
10837         (process_use): Use of a stmt does not inherit it's live value.
10838         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
10839         (vect_analyze_stmt): Check for new relevant state.
10840         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
10841         outside the loop, but not inside it.
10843 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10845         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
10846         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
10847         (vect_get_vec_def_for_operand): Split out code.
10849 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
10851         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
10853 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10855         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
10857 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10859         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
10861 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
10863         PR middle-end/71387
10864         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
10865         to noreturn e->callee->decl that has void return type and void
10866         arguments, adjust gimple_call_fntype and remove lhs even if it had
10867         previously addressable type.
10869 2016-06-02  Jeff Law  <law@redhat.com>
10871         PR tree-optimization/71328
10872         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
10873         error when checking for a jump back onto the copied path.
10875 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
10877         * config/microblaze/microblaze.c (get_branch_target): Add return
10878         NULL_RTX for the non-CALL_P case.
10879         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
10880         (insert_wic): Remove unused local "j".
10882 2016-06-02  Martin Liska  <mliska@suse.cz>
10884         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
10886 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
10887             Julia Koval  <julia.koval@intel.com>
10889         * function.c (assign_parm_setup_stack): Force source into a
10890         register if needed.
10891         * target.def (function_incoming_arg): Update documentation to
10892         allow arbitrary address computation based on hard register.
10893         * doc/tm.texi: Regenerated.
10895 2016-06-02  Martin Liska  <mliska@suse.cz>
10897         * predict.c (combine_predictions_for_bb): Fix first match in
10898         cases where a first predictor contains more than one occurence
10899         in list of predictors.  Take the best value in such case.
10901 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10903         PR rtl-optimization/71295
10904         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
10905         offset would go over the size of the inner mode reject it.
10907 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
10909         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
10910         x=x,x and v=v,m instead of x=x,m.
10912         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
10913         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
10914         alternative to v=rm,C.
10916         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
10917         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
10918         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
10919         instead of vex for the last two above mentioned alternatives.
10921 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10923         PR target/70830
10924         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
10926 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
10928         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
10930 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
10932         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
10933         from int to unsigned.
10935 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
10937         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
10938         alternatives, eliminating preferred register class.  Add support
10939         for the MTVSRDD instruction in ISA 3.0.
10940         (vsx_splat_v4si_internal): Use splat_input_operand instead of
10941         reg_or_indexed_operand.
10942         (vsx_splat_v4sf_internal): Likewise.
10944 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
10946         PR target/71186
10947         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
10948         for loading up all 0's or all 1's.
10950 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10952         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
10954 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
10956         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
10957         extension.
10958         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
10959         * gcc.c (set_source_date_epoch_envvar): New function, sets
10960         the SOURCE_DATE_EPOCH environment variable to the current time.
10962 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
10964         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
10965         the factor for live Phi nodes.
10967 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
10969         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
10970         * tree-parloops.c (parallelize_loops): likewise.
10971         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
10972         tree_unswitch_outer_loop): likewise.
10974 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
10976         PR middle-end/71371
10977         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
10978         around creation of the temporary.
10980 2016-06-01  Richard Biener  <rguenther@suse.de>
10982         PR tree-optimization/71366
10983         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
10984         (unloop_loops): Move removing edges here ...
10985         (try_unroll_loop_completely): ... from here.
10986         (try_peel_loop): ... and here.
10987         (tree_unroll_loops_completely_1): Track parent loops via
10988         bitmap of header BBs.
10989         (tree_unroll_loops_completely): Adjust for that.
10991 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10993         * config/rs6000/altivec.h (vec_slv): New macro.
10994         (vec_srv): New macro.
10995         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
10996         (UNSPEC_VSRV): New value.
10997         (vslv): New insn.
10998         (vsrv): New insn.
10999         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
11000         (vsrv): New builtin definition.
11001         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
11002         define argument types for new builtin.
11003         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
11004         new builtin.
11005         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
11006         functions.
11008 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
11009             Jocelyn Mayer  <l_indien@magic.fr>
11011         PR target/67310
11012         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
11013         detect processor family for signature_CENTAUR_ebx.
11014         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
11015         signature_CENTAUR_ebx.
11016         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
11017         <default>: Pass x86-64 for has_longmode.
11019 2016-06-01  Nathan Sidwell  <nathan@acm.org>
11021         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
11022         undefined weak.
11024 2016-06-01  Richard Biener  <rguenther@suse.de>
11026         PR tree-optimization/71261
11027         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
11028         of stmts successfully put in the bool pattern.  Remove
11029         single-use restriction.
11030         (adjust_bool_pattern_cast): Add cast at the use site via the
11031         pattern def sequence.
11032         (adjust_bool_pattern): Remove recursion, maintain a hash-map
11033         of patterned defs.  Use the pattern def seqence instead of
11034         multiple independent patterns.
11035         (sort_after_uid): New qsort compare function.
11036         (adjust_bool_stmts): New function to process stmts in the bool
11037         pattern in IL order.
11038         (vect_recog_bool_pattern): Adjust.
11039         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
11040         (ifcvt_walk_pattern_tree): Likewise.
11041         (stmt_is_root_of_bool_pattern): Likewise.
11042         (ifcvt_repair_bool_pattern): Likewise.
11043         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
11045 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
11047         * loop-unroll.c (decide_unroll_constant_iterations,
11048         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
11049         likely upper bounds.
11050         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
11052 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
11054         * tree-core.h (enum omp_clause_code): Remove
11055         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
11057 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11059         * config/arm/sync.md (arm_store_exclusive<mode>):
11060         Use 'H' output modifier on operands[2] rather than creating a new
11061         entry in out-of-bounds memory of the operands array.
11062         (arm_store_release_exclusivedi): Likewise.
11064 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11066         * config/arm/arm.c (arm_fusion_enabled_p): New function.
11067         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
11068         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
11069         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
11071 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
11073         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
11074         into account live statements for mask producers.
11076 2016-06-01  Richard Biener  <rguenther@suse.de>
11078         PR tree-optimization/71311
11079         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
11080         restrict to non-INTEGER_CST @0.
11082 2016-06-01  Richard Biener  <rguenther@suse.de>
11084         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
11085         (relational patterns): Use :c to avoid pattern duplications.
11087 2016-06-01  Richard Biener  <rguenther@suse.de>
11089         * genmatch.c (comparison_code_p): New predicate.
11090         (swap_tree_comparison): New function.
11091         (commutate): Add for_vec parameter to append new for entries.
11092         Support commutating relational operators by swapping it alongside
11093         operands.
11094         (lower_commutative): Adjust.
11095         (dt_simplify::gen): Do not pass artificial operators to gen
11096         functions.
11097         (decision_tree::gen): Do not add artificial operators as parameters.
11098         (parser::parse_expr): Verify operator commutativity when :c is
11099         applied.  Allow :C to override this.
11100         * match.pd: Adjust patterns to use :C instead of :c where required.
11102 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
11104         PR tree-optimization/71077
11105         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
11106         the combining step, use boolean_false_node and boolean_true_node
11107         as the designated false/true return values.
11109 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
11111         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
11112         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
11113         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
11114         PRED_LOOP_EXIT.
11116 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
11118         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
11119         of flags impliying the register renaming.
11120         * toplev.c (process_options): Do not imply flag_rename_registers with
11121         loop peeling.
11123 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
11125         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
11126         default implementation.
11128 2016-05-31  Nathan Sidwell  <nathan@acm.org>
11130         * dwarf2out.c (cur_line_info_table): Add GTY marker.
11132 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
11134         * config/sh/constraints.md (b): Remove constraint.
11135         * config/sh/predicates.md (arith_reg_operand): Remove
11136         TARGET_REGISTER_P.
11137         * config/sh/sh-modes.def (PDI): Remove.
11138         * config/sh/sh.c (sh_target_reg_class,
11139         sh_optimize_target_register_callee_saved): Remove functions.
11140         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
11141         (sh_expand_epilogue): Update comment.
11142         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
11143         sh_secondary_reload): Remove TARGET_REGS related code.
11144         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
11145         TARGET_REGISTER_P): Remove macros.
11146         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
11147         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
11148         TR1_REG, TR2_REG): Remove constants.
11149         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
11151 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
11153         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
11154         define_expand patterns.
11155         (adddi3_compact): Rename to adddi3.
11156         (subdi3_compact): Rename to subdi3.
11157         (*negdi2): Rename to negdi2.
11158         (*abs<mode>2): Rename to abs<mode>2.
11160 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
11162         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
11163         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
11164         (atomic_sub_fetchsi): ... this new pattern.
11165         (mvtc): Add CC_REG clobber.
11167 2016-05-31  Marek Polacek  <polacek@redhat.com>
11169         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
11171 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11173         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
11174         aarch64_fusion_enabled_p to check for fusion capabilities.
11176 2016-05-31  Richard Biener  <rguenther@suse.de>
11178         PR tree-optimization/71352
11179         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
11180         minus one and a negate.
11182 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11184         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
11185         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
11186         Delete prototype.
11187         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
11188         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
11189         Remove use of aarch64_simd_attr_length_move, set length attribute
11190         directly.
11191         (*aarch64_be_movoi): Likewise.
11192         (*aarch64_be_movci): Likewise.
11193         (*aarch64_be_movxi): Likewise.
11195 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
11197         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
11198         It no longer does that.
11199         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
11201 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
11203         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
11204         attribute __unused__.
11206 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11208         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
11209         * config/arm/arm.c (arm_arch_thumb1): Define.
11210         (arm_option_override): Initialize arm_arch_thumb1.
11211         * config/arm/arm.h (arm_arch_thumb1): Declare.
11212         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
11213         support Thumb-1 ISA.
11215 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
11217         PR target/71346
11218         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
11219         `Yv' for scalar operand.
11221 2016-05-31  Tom de Vries  <tom@codesourcery.com>
11223         PR tree-optimization/69068
11224         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
11225         phis with more than two args.
11227 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
11229         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
11230         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
11231         target.
11233 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
11235         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
11236         tune_64.
11237         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
11238         support on SPARC.
11239         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
11240         cpu_32, cpu_64, tune_32 and tune_64.
11241         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
11243 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
11245         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
11247 2016-05-30  Andi Kleen  <ak@linux.intel.com>
11249         * auto-profile.c (read_profile): Replace asserts with errors
11250         when file does not exist.
11251         * gcov-io.c (gcov_read_words): Dito.
11253 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11255         * tree-cfg.c (print_loop): Print likely upper bounds.
11257 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11259         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
11260         * opts.c (default_options): Enable peel loops at -O3.
11261         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
11262         (try_peel_loop): Do not re-peel already peeled loops;
11263         use likely upper bounds; fix profile updating.
11264         (pass_complete_unroll::execute): Initialize peeled_loops.
11266 2016-05-30  Martin Liska  <mliska@suse.cz>
11268         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
11269         computed costs by frequency of BB they belong to.
11270         (get_scaled_computation_cost_at): New function.
11272 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
11273             Marc Glisse  <marc.glisse@inria.fr>
11275         PR tree-optimization/71289
11276         * match.pd (-1 / B < A, A > -1 / B): New transformations.
11278 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11280         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
11282 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11284         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
11285         for peeled copies; avoid underflow when updating estimates; correctly
11286         scale loop profile.
11288 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
11290         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
11291         r236875. Corrected oe3 to oe2 as obvious.
11293 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
11295         PR middle-end/71269
11296         PR middle-end/71252
11297         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
11298         that inserted stmt will not dominate stmts that defines its operand.
11299         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
11300         (rewrite_expr_tree_parallel): Likewise.
11302 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
11304         PR middle-end/71252
11305         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
11306         all fields including stmt_to_insert are swapped.
11308 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11310         * predict.h (force_edge_cold): Declare.
11311         * predict.c (force_edge_cold): New function.
11312         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
11313         updating.
11314         (canonicalize_loop_induction_variables): Fix formating.
11316 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
11318         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
11319         (visium_expand_copysign): Use gen_int_mode directly.
11320         (visium_compute_frame_size): Minor tweaks.
11322 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11324         * tree-vect-loop.c (vect_analyze_loop_2): Use
11325         likely_max_stmt_executions_int.
11327 2016-05-30  Tom de Vries  <tom@codesourcery.com>
11329         PR tree-optimization/69067
11330         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
11332 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
11334         PR target/71245
11335         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
11336         New peepholes to remove unneeded fild/fistp pairs.
11337         (define_peephole2 atomic_loaddi_fpu): Ditto.
11339 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11341         * predict.c (maybe_hot_frequency_p): Avoid division.
11343 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
11345         * doc/install.texi: Use https for shop.fsf.org.
11347 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11349         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
11350         likely_max_stmt_executions_int.
11352 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11354         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
11355         likely_max_stmt_executions_int.
11357 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11359         * profile.c (compute_branch_probabilities): Do not report hitrates
11360         here.
11361         (branch_prob): Report hitrates here.
11362         * predict.c (gimple_predict_edge): Do not assert profile status;
11363         fix formatting issues.
11365 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11367         * predict.c (edge_predicted_by_p): New function.
11368         (predict_paths_for_bb): Do not put multiple predictions of the same type
11369         on one edge.
11371 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11373         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
11374         commit.
11376 2016-05-28  Alan Modra  <amodra@gmail.com>
11378         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
11380 2016-05-28  Alan Modra  <amodra@gmail.com>
11382         PR rtl-optimization/71275
11383         * ira.c (ira): Free dominance info.
11385 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
11387         * doc/sourcebuild.texi: New address for upstream Go repository.
11389 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11391         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
11392         (TARGET_ARM_V7M): Likewise.
11394 2016-05-26  Jeff Law  <law@redhat.com>
11396         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
11397         (thread_across_edge): Remove calls to find_jump_threads_backwards.
11398         * passes.def: Add jump threading passes before DOM/VRP.
11399         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
11400         argument to a basic block from an edge.  Remove tests which are
11401         handled elsewhere.
11402         (pass_data_thread_jumps, class pass_thread_jumps): New.
11403         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
11404         (make_pass_thread_jumps): Likewise.
11405         * tree-pass.h (make_pass_thread_jumps): Declare.
11407 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
11409         * config/visium/visium-protos.h (split_double_move): Rename into...
11410         (visium_split_double_move): ...this.
11411         (visium_split_double_add): Declare.
11412         * config/visium/visium.c (split_double_move): Rename into...
11413         (visium_split_double_move): ...this.
11414         (visium_split_double_add): New function.
11415         (visium_expand_copysign): Renumber operands for consistency.
11416         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
11417         (DFmode move splitter): Likewise.
11418         (*addi3_insn): Split by means of visium_split_double_add.
11419         (*adddi3_insn_flags): Delete.
11420         (*plus_plus_sltu<subst_arith>): New insn.
11421         (*subdi3_insn): Split by means of visium_split_double_add.
11422         (subdi3_insn_flags): Delete.
11423         (*minus_minus_sltu<subst_arith>): New insn.
11424         (*negdi2_insn): Split by means of visium_split_double_add.
11425         (*negdi2_insn_flags): Delete.
11427 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
11429         * configure.ac: Treat a --with-headers option without argument
11430         the same as the default (i.e. consult sys-include directory).
11431         * configure: Regenerate.
11433 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11435         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
11436         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
11437         prototype.
11438         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
11439         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
11441 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
11443         PR target/63596
11444         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
11445         tree-stdarg analysis results.
11446         (aarch64_setup_incoming_varargs): Likewise.
11448 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
11450         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
11451         va_list_gpr_counter_field and va_list_fpr_counter_field.
11453 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
11455         PR67609
11456         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
11457         * config/aarch64/aarch64.c
11458         (aarch64_cannot_change_mode_class): Remove function.
11459         * config/aarch64/aarch64-protos.h
11460         (aarch64_cannot_change_mode_class): Remove.
11462 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11464         * cfgloop.c (record_niter_bound): Record likely upper bounds.
11465         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
11466         get_likely_max_loop_iterations_int): New.
11467         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
11468         any_likely_upper_bound.
11469         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
11470         Declare.
11471         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
11472         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
11473         upper bound.
11474         (unroll_loop_constant_iterations): Likewise.
11475         (unroll_loop_runtime_iterations): Likewise.
11476         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
11477         * lto-streamer-out.c (output_cfg): Likewise.
11478         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
11479         bounds.
11480         (canonicalize_loop_induction_variables): Dump likely upper bounds.
11481         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
11482         (likely_max_loop_iterations): New.
11483         (likely_max_loop_iterations_int): New.
11484         (likely_max_stmt_executions): New.
11485         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
11486         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
11487         likely_max_stmt_executions): Declare.
11489 2016-05-27  Marek Polacek  <polacek@redhat.com>
11491         PR middle-end/71308
11492         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
11494 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11496         * config/s390/s390.md (2x risbg splitters): Use
11497         reg_overlap_mentioned_p instead of rtx_equal_p.
11499 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11501         * combine.c (make_compound_operation): Take known zero bits into
11502         account when checking for possible zero_extend.
11504 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11506         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
11507         Use const_int_operand for operand 2 predicate.  Simplify expand code
11508         as a result.
11510 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
11512         PR middle-end/71279
11513         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
11514         into comparison.
11516 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11518         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
11519         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
11520         that returns CC_SESWPmode and CC_ZESWPmode.
11521         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
11522         and CC_SESWPmode.
11523         (aarch64_rtx_costs): Likewise.
11525 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
11527         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
11528         for ISA 3.0 min/max support.
11529         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
11530         conditional move support.
11531         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
11532         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
11533         available.
11534         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
11535         conditional moves where the comparison type is different from move
11536         type.
11537         (fp_minmax): New code iterator for smin/smax.
11538         (minmax): New code attributes for min/max.
11539         (SMINMAX): Likewise.
11540         (smax<mode>3): Combine min, max insns into one insn using the
11541         fp_minmax code iterator.  Add support for ISA 3.0 min/max
11542         instructions that don't need -ffast-math.
11543         (s<minmax><mode>3): Likewise.
11544         (smax<mode>3_vsx): Likewise.
11545         (smin<mode>3): Likewise.
11546         (s<minmax><mode>3_vsx): Likewise.
11547         (smin<mode>3_vsx): Likewise.
11548         (pre-VSX min/max splitters): Likewise.
11549         (s<minmax><mode>3_fpr): Likewise.
11550         (movsfcc): Rewrite floating point conditional moves to combine
11551         SFmode/DFmode into a single insn.
11552         (mov<mode>cc): Likewise.
11553         (movdfcc): Likewise.
11554         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
11555         SFDF2 iterators to handle all combinations.
11556         (fseldfsf4): Likewise.
11557         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
11558         (fseldfdf4): Likewise.
11559         (fselsfdf4): Likewise.
11560         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
11561         comparison instructions that set a 0/-1 mask, and use it for
11562         floating point conditional move via XXSEL.
11563         (fpmask<mode>): Likewise.
11564         (xxsel<mode>): Likewise.
11565         * config/rs6000/predicates.md (min_max_operator): Delete, no
11566         longer used.
11567         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
11568         instructions that generate a 0/-1 mask for use with XXSEL.
11569         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
11570         say whether floating point min/max is available, either through
11571         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
11572         (TARGET_MINMAX_DF): Likewise.
11574 2016-05-27  Alan Modra  <amodra@gmail.com>
11576         PR rtl-optimization/71275
11577         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
11578         for update_equiv_regs and combine_and_move_insns.
11580 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
11582         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
11583         if_then_else or cond RTXes to calculate attribute value.
11584         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
11585         <attr "length_immediate>: Ditto.
11586         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
11587         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
11588         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
11589         <attr "type">: Ditto.
11590         <attr "prefix_data16">: Ditto.
11591         <attr "prefix_extra">: Ditto.
11592         <attr "length_immediate">: Ditto.
11593         <attr "prefix">: Ditto.
11594         (vec_set<mode>_0) <attr "isa">: Ditto.
11595         <attr "prefix_extra">: Ditto.
11596         <attr "length_immediate">: Ditto.
11597         <attr "prefix">: Ditto.
11598         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
11599         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
11600         (sse2_storelpd) <attr "prefix_data16">: Ditto.
11601         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
11602         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
11603         <attr "length_immediate">: Ditto.
11604         <attr "prefix">: Ditto.
11605         (sse2_movsd) <attr "length_immediate">: Ditto.
11606         <attr "prefix">: Ditto.
11607         (vec_concatv2df)  <attr "isa">: Ditto.
11608         <attr "prefix">: Ditto.
11609         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
11610         (*vec_extractv2di_1) <attr "isa">: Ditto.
11611         <attr "type">: Ditto.
11612         <attr "length_immediate">: Ditto.
11613         <attr "prefix_rex">: Ditto.
11614         <attr "prefix_extra">: Ditto.
11615         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
11616         <attr "prefix_extra">: Ditto.
11617         <attr "length_immediate">: Ditto.
11618         (vec_concatv2di) <attr "isa">: Ditto.
11619         <attr "prefix_extra">: Ditto.
11620         <attr "length_immediate">: Ditto.
11621         <attr "prefix">: Ditto.
11623 2016-05-26  Martin Liska  <mliska@suse.cz>
11625         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
11626         function.
11627         (operator+): Likewise.
11628         (operator-): Likewise.
11629         (comp_cost::operator+=): Likewise.
11630         (comp_cost::operator-=): Likewise.
11631         (comp_cost::operator/=): Likewise.
11632         (comp_cost::operator*=): Likewise.
11633         (operator<): Likewise.
11634         (operator==): Likewise.
11635         (operator<=): Likewise.
11636         (new_cost): Remove.
11637         (infinite_cost_p): Likewise.
11638         (add_costs): Likewise.
11639         (sub_costs): Likewise.
11640         (compare_costs): Likewise.
11641         (set_group_iv_cost): Use the newly introduced functions.
11642         (get_address_cost): Likewise.
11643         (get_shiftadd_cost): Likewise.
11644         (force_expr_to_var_cost): Likewise.
11645         (split_address_cost): Likewise.
11646         (ptr_difference_cost): Likewise.
11647         (difference_cost): Likewise.
11648         (get_computation_cost_at): Likewise.
11649         (determine_group_iv_cost_generic): Likewise.
11650         (determine_group_iv_cost_address): Likewise.
11651         (determine_group_iv_cost_cond): Likewise.
11652         (autoinc_possible_for_pair): Likewise.
11653         (determine_group_iv_costs): Likewise.
11654         (cheaper_cost_pair): Likewise.
11655         (iv_ca_recount_cost): Likewise.
11656         (iv_ca_set_no_cp): Likewise.
11657         (iv_ca_set_cp): Likewise.
11658         (iv_ca_cost): Likewise.
11659         (iv_ca_new): Likewise.
11660         (iv_ca_dump): Likewise.
11661         (iv_ca_narrow): Likewise.
11662         (iv_ca_prune): Likewise.
11663         (iv_ca_replace): Likewise.
11664         (try_add_cand_for): Likewise.
11665         (try_improve_iv_set): Likewise.
11666         (find_optimal_iv_set): Likewise.
11668 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
11670         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
11671         that internal functions will clobber all caller-saved registers.
11673 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
11675         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
11676         Return a better case_values_threshold when optimizing.
11678 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
11680         * config/aarch64/aarch64-simd.md (aarch64_combinez):
11681         Add ? to integer variant.
11682         (aarch64_combinez_be): Likewise.
11684 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
11686         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
11687         instead of x constraint.
11688         (vcvtps2ph256<mask_name>): Likewise.
11690         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
11691         alternative.  Formatting fix.
11693         * config/i386/sse.md
11694         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
11695         to ...
11696         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
11697         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
11698         maybe_evex prefix instead of vex.
11699         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
11700         EXT_REX_SSE_REG_P (op0) case in the splitter.
11702 2016-05-25  Jeff Law  <law@redhat.com>
11704         PR tree-optimization/71272
11705         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
11706         Update comments.  Add test for empty path.
11708 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
11710         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
11711         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
11712         special case builtin.
11713         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11714         code for ALTIVEC_BUILTIN_VEC_CMPNE.
11715         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
11716         for __builtin_vec_cmpne.
11718 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
11720         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
11721         redundant test and bail out if the type of the new operand is not
11722         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
11724 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
11726         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
11727         (x_ix86_target_flags_explicit): Remove.
11728         * config/i386/i386.c (ix86_function_specific_save): Do not copy
11729         x_ix86_target_flags_explicit.
11730         (ix86_function_specific_restore): Ditto.
11732 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
11733             H.J. Lu  <hongjiu.lu@intel.com>
11735         PR target/70738
11736         * common/config/i386/i386-common.c
11737         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
11738         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
11739         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
11740         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
11741         (-mgeneral-regs-only): Add new option.
11742         * config/i386/i386.c (ix86_option_override_internal): Don't enable
11743         x87 instructions if only general registers are allowed.
11744         (ix86_target_string): Add ix86_flags argument. Handle additional
11745         flags options through ix86_flags argument.  Update all callers.
11746         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
11748 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11750         PR rtl-optimization/66940
11751         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
11752         decrementing desired_val will not overflow before performing these
11753         operations.
11755 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
11757         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
11758         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
11759         * config/i386/i386.c (enum ix86_builtins): Add
11760         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
11761         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
11762         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
11763         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
11764         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
11765         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
11766         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
11767         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
11768         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
11769         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
11770         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
11771         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
11772         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
11773         __builtin_ia32_cvtps2dq512_mask.
11774         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
11775         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
11776         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
11777         * config/i386/sse.md
11778         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
11779         Rename to ...
11780         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
11781         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
11782         to ...
11783         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
11784         (avx512f_vec_pack_sfix_v8df): New define_expand.
11785         (avx512f_roundpd512): Rename to ...
11786         (avx512f_round<castmode>512): ... this.  Change iterator.
11787         (avx512f_roundps512_sfix): New define_expand.
11788         (round<mode>2_sfix): Change iterator.
11790 2016-05-25  Nick Clifton  <nickc@redhat.com>
11792         * config/msp430/msp430.c (msp430_attr): Produce an error if a
11793         static interrupt handler is detected.
11794         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
11795         default linker script.
11796         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
11797         the low part of a symbolic pointer.
11799 2016-05-25  Richard Biener  <rguenther@suse.de>
11801         PR tree-optimization/71261
11802         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
11803         interesting stmt instead of immediate uses when looking
11804         for the use operand to replace.
11806 2016-05-25  Martin Liska  <mliska@suse.cz>
11808         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
11810 2016-05-25  Richard Biener  <rguenther@suse.de>
11812         PR tree-optimization/71264
11813         * tree-vect-stmts.c (vect_init_vector): Properly deal with
11814         vector type val.
11816 2016-05-25  Martin Liska  <mliska@suse.cz>
11818         PR tree-optimization/71239
11819         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
11820         if DECL_SIZE is NULL.
11822 2016-05-25  Richard Biener  <rguenther@suse.de>
11824         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
11825         * tree-if-conv.c (pass_data_if_conversion): Use it.
11827 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11829         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
11830         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
11831         * varpool.c (varpool_node::get_availability): Likewise.
11833 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11835         * config/rs6000/altivec.md (VNEG iterator): New iterator for
11836         VNEGW/VNEGD instructions.
11837         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
11838         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
11839         support for ISA 3.0 VNEGW/VNEGD instructions.
11841 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
11843         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
11844         pointers inside OACC_DATA regions.
11845         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
11846         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
11847         (gimplify_adjust_omp_clauses): Fix typo in comment.
11849 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11851         * config/rs6000/altivec.md (VParity): New mode iterator for vector
11852         parity built-in functions.
11853         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
11854         zeros.
11855         (p9v_parity<mode>2): Likewise.
11856         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
11857         parity.
11858         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
11859         (parity<mode>2): ISA 3.0 expander for vector parity.
11860         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
11861         power9 built-ins.
11862         (BU_P9_64BIT_MISC_0): Likewise.
11863         (BU_P9_MISC_0): Likewise.
11864         (BU_P9V_AV_1): Likewise.
11865         (BU_P9V_AV_2): Likewise.
11866         (BU_P9V_AV_3): Likewise.
11867         (BU_P9V_AV_P): Likewise.
11868         (BU_P9V_VSX_1): Likewise.
11869         (BU_P9V_OVERLOAD_1): Likewise.
11870         (BU_P9V_OVERLOAD_2): Likewise.
11871         (BU_P9V_OVERLOAD_3): Likewise.
11872         (VCTZB): Add vector count trailing zeros support.
11873         (VCTZH): Likewise.
11874         (VCTZW): Likewise.
11875         (VCTZD): Likewise.
11876         (VPRTYBD): Add vector parity support.
11877         (VPRTYBQ): Likewise.
11878         (VPRTYBW): Likewise.
11879         (VCTZ): Add overloaded vector count trailing zeros support.
11880         (VPRTYB): Add overloaded vector parity support.
11881         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11882         overloaded vector count trailing zeros and parity instructions.
11883         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
11884         vector parity support.
11885         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
11886         trailing zeros support.
11887         (vec_cntlz): Likewise.
11888         (vec_vctzb): Likewise.
11889         (vec_vctzd): Likewise.
11890         (vec_vctzh): Likewise.
11891         (vec_vctzw): Likewise.
11892         (vec_vprtyb): Add ISA 3.0 vector parity support.
11893         (vec_vprtybd): Likewise.
11894         (vec_vprtybw): Likewise.
11895         (vec_vprtybq): Likewise.
11896         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11897         the ISA 3.0 vector count trailing zeros and vector parity built-in
11898         functions.
11900 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
11902         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
11903         when there is stmt_to_insert.
11905 2016-05-24  Martin Sebor  <msebor@redhat.com>
11907         PR c++/71147
11908         * tree.h (complete_or_array_type_p): New inline function.
11910 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
11912         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
11913         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
11914         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
11916         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
11917         Limit 1st alternative to noavx isa, split 2nd alternative into one
11918         noavx and one avx alternative, use *x and Bm in the former and
11919         x and m in the latter.
11921         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
11922         of sse4 for the first alternative, drop %v from the template
11923         and d operand modifier.  Split second alternative into one sse4_noavx
11924         and one avx alternative, use *x instead of *v in the former and v
11925         instead of *v in the latter.
11926         (*sse4_1_extractps): Use noavx isa instead of * for the first
11927         alternative, drop %v from the template.  Split second alternative into
11928         one noavx and one avx alternative, use *x instead of *v in the
11929         former and v instead of *v in the latter.
11930         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
11931         with noavx and the last one with avx.
11932         (sse4_1_phminposuw): Guard first alternative with noavx isa,
11933         split the second one into one noavx and one avx alternative,
11934         use *x and Bm in the former and x and m in the latter one.
11935         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
11936         alternatives.
11938         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
11939         first two alternatives to noavx, use *x instead of *v in the second
11940         one, add avx alternative without *.
11941         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
11942         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
11943         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
11945 2016-05-24  Jeff Law  <law@redhat.com>
11947         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
11948         New function, extracted from...
11949         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
11950         Allow simple copies and constant initializations in the SSA chain.
11952 2016-05-24  Marek Polacek  <polacek@redhat.com>
11954         PR c/71249
11955         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
11956         scope.
11958 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
11960         PR c++/71257
11961         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
11962         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
11963         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
11964         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
11965         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
11967 2016-05-24  Richard Biener  <rguenther@suse.de>
11969         PR tree-optimization/71240
11970         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
11971         has integral type.
11973 2016-05-24  Richard Biener  <rguenther@suse.de>
11975         PR tree-optimization/71230
11976         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
11978 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
11980         * tree-vectorizer.h (vectorizable_comparison): Delete.
11981         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
11982         PURE_SLP_STMT check.
11983         * tree-vect-stmts.c (vectorizable_call): Likewise.
11984         (vectorizable_simd_clone_call): Likewise.
11985         (vectorizable_conversion): Likewise.
11986         (vectorizable_assignment): Likewise.
11987         (vectorizable_shift): Likewise.
11988         (vectorizable_operation): Likewise.
11989         (vectorizable_load): Likewise.
11990         (vectorizable_condition): Likewise.
11991         (vectorizable_store): Likewise.  Assert that we don't have
11992         hybrid SLP.
11993         (vectorizable_comparison): Make static.  Remove redundant
11994         PURE_SLP_STMT check.
11995         (vect_transform_stmt): Assert that we always have an slp_node
11996         if PURE_SLP_STMT.
11998 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12000         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
12001         operands[2] against 1 with comparison against CONST1_RTX.
12002         (<shift>di3_neon): Likewise.
12003         * config/arm/predicates.md (const0_operand): Replace with comparison
12004         against CONST0_RTX.
12006 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12008         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
12009         operands[2] against 1 with comparison against CONST1_RTX.
12010         (ashrdi3): Likewise.
12011         (lshrdi3): Likewise.
12012         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
12013         UINTVAL.
12014         (ashrsi3): Likewise.
12015         (lshrsi3): Likewise.
12016         (rotrsi3): Likewise.
12017         (define_split above *compareqi_eq0): Likewise.
12018         (define_split above "prologue"): Likewise.
12019         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
12020         * config/arm/predicates.md (shift_operator): Likewise.
12021         (shift_nomul_operator): Likewise.
12022         (sat_shift_operator): Likewise.
12023         (thumb1_cmp_operand): Likewise.
12024         (const_neon_scalar_shift_amount_operand): Replace manual range
12025         check with IN_RANGE.
12026         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
12027         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
12029 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12031         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
12032         with HOST_WIDE_INT_1.
12033         (insv): Likewise.
12034         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
12035         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
12036         (arm_canonicalize_comparison): Likewise.
12037         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
12038         HOST_WIDE_INT_1.
12039         (thumb1_size_rtx_costs): Likewise.
12040         (vfp_const_double_index): Replace cast of 1 to unsigned
12041         HOST_WIDE_INT with HOST_WIDE_INT_1U.
12042         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
12043         HOST_WIDE_INT_1.
12044         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
12045         HOST_WIDE_INT with HOST_WIDE_INT_1U.
12046         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
12047         HOST_WIDE_INT with HOST_WIDE_INT_1.
12049 2016-05-24  Marek Polacek  <polacek@redhat.com>
12051         * tree-cfg.h (should_remove_lhs_p): New predicate.
12052         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
12053         * gimplify.c (gimplify_modify_expr): Likewise.
12054         * tree-cfg.c (verify_gimple_call): Likewise.
12055         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
12056         * gimple-fold.c: Include "tree-cfg.h".
12057         (gimple_fold_call): Use should_remove_lhs_p.
12059 2016-05-24  Richard Biener  <rguenther@suse.de>
12061         PR tree-optimization/71253
12062         * cfganal.h (control_dependences): Make robust against edge
12063         and BB removal.
12064         (control_dependences::control_dependences): Remove edge_list argument.
12065         (control_dependences::get_edge): Remove.
12066         (control_dependences::get_edge_src): Add.
12067         (control_dependences::get_edge_dest): Likewise.
12068         (control_dependences::m_el): Make a vector of edge src/dest index.
12069         * cfganal.c (control_dependences::find_control_dependence): Adjust.
12070         (control_dependences::control_dependences): Likewise.
12071         (control_dependences::~control_dependence): Likewise.
12072         (control_dependences::get_edge): Remove.
12073         (control_dependences::get_edge_src): Add.
12074         (control_dependences::get_edge_dest): Likewise.
12075         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
12076         get_edge_src.
12077         (perform_tree_ssa_dce): Adjust.
12078         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
12079         get_edge_src.
12080         (pass_loop_distribution::execute): Adjust.  Do loop destroying
12081         conditional on changed.
12083 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12085         PR target/69857
12086         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
12087         return.  Reindent transformation comment and mention the ARM state
12088         behavior.
12090 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
12092         PR middle-end/71252
12093         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
12094         after build_and_add_sum creates new use stmt.
12096 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
12098         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
12099         load_lanes/grouped_load classification comes first.  Don't check
12100         whether the vectorization factor is a multiple of the group size
12101         for load_lanes.
12103 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
12105         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
12106         GROUP_GAP for single-element interleaving.
12107         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
12108         variable.
12110 2016-05-24  Richard Biener  <rguenther@suse.de>
12112         PR middle-end/70434
12113         PR c/69504
12114         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
12115         bases which are accessed with non-invariant indices.
12116         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
12117         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
12119 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
12121         PR middle-end/71170
12122         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
12123         (add_to_ops_vec): Add stmt_to_insert.
12124         (add_repeat_to_ops_vec): Init stmt_to_insert.
12125         (insert_stmt_before_use): New.
12126         (transform_add_to_multiply): Remove mult_stmt insertion and add it
12127         to ops vector.
12128         (get_ops): Init stmt_to_insert.
12129         (maybe_optimize_range_tests): Likewise.
12130         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
12131         (rewrite_expr_tree_parallel): Likewise.
12132         (reassociate_bb): Likewise.
12134 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12136         PR target/71201
12137         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
12138         ISA 3.0 xxperm fusion alternative.
12139         (altivec_vperm_v8hiv16qi): Likewise.
12140         (altivec_vperm_<mode>_uns_internal): Likewise.
12141         (vperm_v8hiv4si): Likewise.
12142         (vperm_v16qiv8hi): Likewise.
12144 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12145             Kelvin Nilsen  <kelvin@gcc.gnu.org>
12147         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
12148         vpermr/xxpermr on ISA 3.0.
12149         (altivec_expand_vec_perm_le): Likewise.
12150         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
12151         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
12152         ISA 3.0.
12154 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
12156         * config/i386/i386.h (IS_STACK_MODE): Enable for
12157         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
12158         SSE_FLOAT_MODE_P macros.
12159         * config/i386/i386.c (ix86_preferred_reload_class): Use
12160         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
12161         Cleanup regclass processing for CONST_DOUBLE_P.
12162         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
12163         (ix86_rtx_costs): Remove redundant TARGET_80387 check
12164         with IS_STACK_MODE macro.
12165         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
12166         with TARGET_SSE2.
12167         (*movdf_internal): Use IS_STACK_MODE macro.
12168         (*movsf_internal): Ditto.
12170 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
12172         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
12173         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
12175 2016-05-23  Jeff Law  <law@redhat.com>
12177         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
12178         extracted from ...
12179         (fsm_find_control_statement_thread_paths): Call it.
12181 2016-05-23  Martin Jambor  <mjambor@suse.cz>
12183         PR ipa/71234
12184         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
12185         from_global_constant if t is not NULL.
12187 2016-05-23  Marek Polacek  <polacek@redhat.com>
12189         PR c/49859
12190         * common.opt (Wswitch-unreachable): New option.
12191         * doc/invoke.texi: Document -Wswitch-unreachable.
12192         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
12193         warning.
12195 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
12197         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
12198         TMR_INDEX is non-NULL.
12200 2016-05-23  Richard Biener  <rguenther@suse.de>
12202         PR tree-optimization/71230
12203         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
12204         (try_special_add_to_ops): ... here.  Always test for single-use.
12206 2016-05-23  Martin Jambor  <mjambor@suse.cz>
12208         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
12209         default block if a PHI node in the original one would be resized.
12211 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12213         PR tree-optimization/58135
12214         * tree-vect-slp.c: When group size is not multiple
12215         of vector size, allow splitting of store group at
12216         vector boundary.
12218 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
12220         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
12222 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
12224         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
12225         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
12226         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
12227         of 64x2.
12229         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
12230         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
12231         v constraint instead of x and vinserti32x4 insn.
12233         * config/i386/sse.md (i128vldq): New mode iterator.
12234         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
12235         avx512dq and avx512vl alternatives.
12237         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
12238         constraint, use maybe_evex prefix instead of vex.
12239         (vec_dupv4sf): Use v constraint instead of x for output
12240         operand except for noavx alternative, use Yv constraint
12241         instead of x for input.  Use maybe_evex prefix instead of vex.
12242         (*vec_dupv4si): Likewise.
12243         (*vec_dupv2di): Likewise.
12245 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
12247         PR middle-end/40921
12248         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
12249         (linearize_expr_tree): Call try_special_add_to_ops.
12250         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
12252 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12254         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
12255         to computed stack_usage.
12257 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
12259         PR target/71103
12260         * config/avr/avr.md (define_expand "mov<mode>"): If the source
12261         operand is subreg (symbol_ref) then move the symbol ref to register.
12263 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
12265         * tree.c (array_at_struct_end_p): Look through MEM_REF.
12267 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
12269         PR middle-end/71179
12270         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
12271         VECTOR type.
12273 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
12275         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
12276         ranges by calling get_single_symbol and tidy up.  Look more closely
12277         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
12279 2016-05-20  Jeff Law  <law@redhat.com>
12281         * bitmap.c (bitmap_find_bit): Remove useless test.
12283 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
12285         * function.c (thread_prologue_and_epilogue_insns): Commit the
12286         insertion of the epilogue.
12288 2016-05-20  Martin Jambor  <mjambor@suse.cz>
12290         PR tree-optimization/70884
12291         * tree-sra.c (initialize_constant_pool_replacements): Do not check
12292         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
12293         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
12294         of constant pool data as a reason for scalarization.
12296 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
12298         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
12299         for naked functions.
12300         (thumb1_expand_prologue): Likewise.
12302 2016-05-20  Nathan Sidwell  <nathan@acm.org>
12304         * config/nvptx/nptx.c (nvptx_option_override): Only set
12305         flag_toplevel_reorder, if not explicitly specified.  Set
12306         flag_no_common, unless explicitly specified.
12308 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
12310         * calls.c (can_implement_as_sibling_call_p): Mark param
12311         reg_parm_stack_space with ATTRIBUTE_UNUSED.
12313 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
12315         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
12316         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
12317         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
12318         constants.
12319         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
12320         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
12321         and CASE_CONST_ANY.
12323 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
12325         * config/nvptx/nvptx.md (sincossf3): New pattern.
12327 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
12329         * calls.c (maybe_complain_about_tail_call): New function.
12330         (initialize_argument_information): Call
12331         maybe_complain_about_tail_call when clearing *may_tailcall.
12332         (can_implement_as_sibling_call_p): Call
12333         maybe_complain_about_tail_call when returning false.
12334         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
12335         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
12336         if tail-call optimization fails.
12337         * cfgexpand.c (expand_call_stmt): Initialize
12338         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
12339         * gimple-pretty-print.c (dump_gimple_call): Dump
12340         gimple_call_must_tail_p.
12341         * gimple.c (gimple_build_call_from_tree): Call
12342         gimple_call_set_must_tail with the value of
12343         CALL_EXPR_MUST_TAIL_CALL.
12344         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
12345         (gimple_call_set_must_tail): New function.
12346         (gimple_call_must_tail_p): New function.
12347         * print-tree.c (print_node): Update printing of TREE_STATIC
12348         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
12349         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
12350         trailing comment listing applicable flags.
12351         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
12353 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
12355         * calls.c (expand_call): Move "Rest of purposes for tail call
12356         optimizations to fail" to...
12357         (can_implement_as_sibling_call_p): ...this new function, and
12358         split into multiple "if" statements.
12360 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
12362         * cfgloop.h (expected_loop_iterations_unbounded,
12363         expected_loop_iterations): Unconstify.
12364         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
12365         profile with known upper bound; return 3 when profile is absent.
12366         (expected_loop_iterations): Update.
12368 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
12370         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
12371         and get_max_loop_iterations_int.
12373 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
12375         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
12376         realistic upper bounds here.
12378 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
12380         PR c++/71210
12381         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
12382         calls if the LHS is variable length or has addressable type.
12383         If targets[0]->decl is a noreturn call with void return type and
12384         zero arguments, adjust fntype and remove lhs in that case.
12386 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
12388         PR tree-optimization/71079
12389         PR tree-optimization/71206
12390         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
12392 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12394         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
12395         (get_vec_alignment_for_array_decl): Likewise.
12396         (get_vec_alignment_for_record_decl): Likewise.
12397         (increase_alignment::execute): Move code to find alignment to
12398         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
12399         (type_align_map): New hash_map.
12401 2016-05-20  Richard Guenther  <rguenther@suse.de>
12403         PR tree-optimization/29756
12404         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
12405         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
12406         * fold-const.c (operand_equal_p): Likewise.
12407         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
12408         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
12409         * tree-inline.c (estimate_operator_cost): Likewise.
12410         * tree-pretty-print.c (dump_generic_node): Likewise.
12411         * tree-ssa-operands.c (get_expr_operands): Likewise.
12412         * cfgexpand.c (expand_debug_expr): Likewise.
12413         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
12414         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
12415         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
12416         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
12417         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
12418         (execute_update_addresses_taken): Do it.
12420 2016-05-20  Richard Biener  <rguenther@suse.de>
12422         PR tree-optimization/71185
12423         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
12424         register operations.
12426 2016-05-20  Richard Biener  <rguenther@suse.de>
12428         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
12429         gimple_seq_add_seq_without_update.
12430         (release_bb_predicate): Assert we have no operands to free.
12431         (if_convertible_loop_p_1): Calculate post dominators later.
12432         Do not free BB predicates here.
12433         (combine_blocks): Do not recompute BB predicates.
12434         (version_loop_for_if_conversion): Save BB predicates around
12435         loop versioning.
12437 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
12439         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
12440         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
12441         code.  Ignore sibcalls on EDGE_IGNORE edges.
12442         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
12443         on edges for sibcalls that run without prologue.  The rest of the
12444         function is combined from...
12445         (fix_fake_fallthrough_edge): ... this, and ...
12446         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
12447         function argument, make it a local variable.
12449 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
12451         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
12452         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
12453         for 32-bit mode and SEH for 64-bit.
12454         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
12455         TARGET_64BIT_DEFAULT.
12457 2016-05-19  Ryan Burn  <contact@rnburn.com>
12459         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
12460         * gengtype.c (open_base_files): Add cilk.h to ifiles.
12462 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
12464         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
12465         force pending loads from memory.
12467 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12469         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
12470         (UNSPEC_DARN_32): New unspec constant.
12471         (UNSPEC_DARN_RAW): New unspec constant.
12472         (darn_32): New instruction.
12473         (darn_raw): New instruction.
12474         (darn): New instruction.
12475         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
12476         support and documentation for this macro.
12477         (BU_P9_MISC_1): New macro definition.
12478         (BU_P9_64BIT_MISC_0): New macro definition.
12479         (BU_P9_MISC_0): New macro definition.
12480         (darn_32): New builtin definition.
12481         (darn_raw): New builtin definition.
12482         (darn): New builtin definition.
12483         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
12484         RS6000_BUILTIN_0 directives to surround each occurrence of
12485         #include "rs6000-builtin.def".
12486         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
12487         RS6000_BTM_64BIT flags to the returned mask, depending on
12488         configuration.
12489         (def_builtin): Correct an error in the assignments made to the
12490         debugging variable attr_string.
12491         (rs6000_expand_builtin): Add support for no-operand built-in
12492         functions.
12493         (builtin_function_type): Remove fatal_error assertion that is no
12494         longer valid.
12495         (rs6000_common_init_builtins): Add support for no-operand built-in
12496         functions.
12497         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
12498         definition.
12499         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
12500         definition.
12501         (RS6000_BTM_64BIT): New macro definition.
12502         * doc/extend.texi: Document __builtin_darn (void),
12503         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
12504         functions.
12506 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
12508         * tree-vect-loop.c (vect_analyze_loop_2): Use also
12509         max_loop_iterations_int.
12511 2016-05-19  Marek Polacek  <polacek@redhat.com>
12513         PR tree-optimization/71031
12514         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
12515         condition and adjust the code a bit.
12517 2016-05-19  Martin Liska  <mliska@suse.cz>
12519         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
12520         auto_vec instead of vec.
12522 2016-05-19  Martin Liska  <mliska@suse.cz>
12524         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
12526 2016-05-19  Martin Liska  <mliska@suse.cz>
12528         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
12530 2016-05-19  Martin Liska  <mliska@suse.cz>
12532         * ipa-pure-const.c (set_function_state): Remove an existing
12533         funct_state.
12534         (remove_node_data): Do not free it as it's released
12535         in set_function_state.
12537 2016-05-19  Martin Liska  <mliska@suse.cz>
12539         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
12540         bitmap.
12542 2016-05-19  Martin Liska  <mliska@suse.cz>
12544         * omp-simd-clone.c (simd_clone_adjust): Release vector.
12546 2016-05-19  Martin Liska  <mliska@suse.cz>
12548         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
12549         an auto_vec instead of re-creating it.
12551 2016-05-19  Martin Liska  <mliska@suse.cz>
12553         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
12554         auto_vec instead of vec.
12556 2016-05-19  Martin Liska  <mliska@suse.cz>
12558         * lto-section-in.c (lto_get_section_data): Call
12559         lto_check_version with additional argument.
12560         * lto-streamer.c (lto_check_version): Add new argument.
12561         * lto-streamer.h (lto_check_version): Likewise.
12563 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12565         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
12566         Don't add cost of inner memory when handling sign-extended loads.
12568 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
12570         PR rtl-optimization/71148
12571         * cse.c (cse_main): Free dominance info.
12572         (rest_of_handle_cse): Don't free dominance info.
12573         (rest_of_handle_cse2): Likewise.
12574         (rest_of_handle_cse_after_global_opts): Likewise.
12576 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12578         PR target/71056
12579         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
12580         NULL_TREE early if NEON is not available.  Remove now redundant check
12581         in ARM_CHECK_BUILTIN_MODE.
12583 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
12585         PR sanitizer/64354
12586         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
12587         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
12588         * doc/cpp.texi: Document new macros.
12590 2016-05-19  Bin Cheng  <bin.cheng@arm.com>
12592         PR tree-optimization/69848
12593         * tree-vect-loop.c (vectorizable_reduction): Don't factor
12594         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
12596 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
12598         * function.c (thread_prologue_and_epilogue_insn): Move the
12599         "goto epilogue_done" one block later.
12601 2016-05-19  Richard Biener  <rguenther@suse.de>
12603         PR tree-optimization/70729
12604         * passes.def: Move LIM pass before PRE.  Remove no longer
12605         required copyprop and move first DCE out of the loop pipeline.
12607 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
12609         PR driver/69265
12610         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
12611         (OBJS-libcommon-target): ...here.
12612         * opts-common.c: Include spellcheck.h.
12613         (cmdline_handle_error): Build a vec of valid options and use it
12614         to suggest provide hints for misspelled arguments.
12616 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
12618         PR c++/71100
12619         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
12620         lhs if it has TREE_ADDRESSABLE type.
12622 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
12624         PR target/71145
12625         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
12626         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
12628 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12630         PR ipa/69708
12631         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
12632         input for NOP_EXPR pass-through functions.
12633         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
12634         aggregate global constant VAR_DECLs in constant jump functions.
12636 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12638         PR ipa/69708
12639         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
12640         from TREE_READONLY parameters.
12642 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12644         PR ipa/69708
12645         * cgraph.h (cgraph_indirect_call_info): New field
12646         guaranteed_unmodified.
12647         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
12648         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
12649         appropriate.
12650         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
12651         pass the parameter value to ipa_find_agg_cst_for_param.
12652         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
12653         guaranteed_unmodified, store AA results there instead of bailing out
12654         if present.
12655         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
12656         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
12657         (find_constructor_constant_at_offset): New function.
12658         (ipa_find_agg_cst_from_init): Likewise.
12659         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
12660         static initializers of contants, report back through a new paameter
12661         from_global_constant if that was the case.
12662         (try_make_edge_direct_simple_call): Also pass parameter value to
12663         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
12664         appropriate.
12665         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
12666         (ipa_read_indirect_edge_info): Likewise.
12667         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
12668         (ipa_load_from_parm_agg): Likewise.
12670 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
12672         PR rtl-optimization/71150
12673         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
12674         check.
12676 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
12678         PR target/70915
12679         * config/rs6000/constraints.md (wE constraint): New constraint
12680         for a vector constant that can be loaded with XXSPLTIB.
12681         (wM constraint): New constraint for a vector constant of a 1's.
12682         (wS constraint): New constraint for a vector constant that can be
12683         loaded with XXSPLTIB and a vector sign extend instruction.
12684         * config/rs6000/predicates.md (xxspltib_constant_split): New
12685         predicates for wE/wS constraints.
12686         (xxspltib_constant_nosplit): Likewise.
12687         (easy_vector_constant): Add support for constants that can be
12688         loaded via XXSPLTIB.
12689         (all_ones_constant): New predicate for vector constant with all
12690         1's set.
12691         (splat_input_operand): Add support for ISA 3.0 word splat operations.
12692         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
12693         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
12694         instruction and possibly with a sign extension.
12695         (output_vec_const_move): Add support for XXSPLTIB. If we are
12696         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
12697         instead of XXLXOR/XXLORC.
12698         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
12699         operations.
12700         (rs6000_legitimize_reload_address): Likewise.
12701         (rs6000_output_move_128bit): Use output_vec_const_move to emit
12702         constants.
12703         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
12704         combine VSX_M and VSX_M2 into one iterator.
12705         (VSX_M2): Likewise.
12706         (VSINT_84): New iterators for loading constants with XXSPLTIB.
12707         (VSINT_842): Likewise.
12708         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
12709         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
12710         XXSPLTIB instruction.
12711         (xxspltib_<mode>_nosplit): Likewise.
12712         (xxspltib_<mode>_split): New insn to load up constants with
12713         XXSPLTIB and a sign extend instruction.
12714         (vsx_mov<mode>): Replace single move that handled all vector types
12715         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
12716         moves (when -mvsx-timode is in effect) into the main vector
12717         moves.  Eliminate separate moves for <VSr> <VSa>, where the
12718         preferred register class (<VSr>) is listed first, and the
12719         secondary register class (<VSa>) is listed second with a '?' to
12720         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
12721         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
12722         that if the register was involved in a slow operation, the
12723         clear/set operation does not wait for the slow operation to
12724         finish.  Adjust the length attributes for 32-bit mode.  Use
12725         rs6000_output_move_128bit and drop the use of the string
12726         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
12727         spacing so that the alternatives and attributes don't generate
12728         long lines, and put things in columns, so that it is easier to
12729         match up the operands and attributes with the insn alternatives.
12730         (vsx_mov<mode>_64bit): Likewise.
12731         (vsx_mov<mode>_32bit): Likewise.
12732         (vsx_movti_64bit): Fold movti into normal vector moves.
12733         (vsx_movti_32bit): Likewise.
12734         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
12735         splat instructions.
12736         (vsx_splat_v4si_internal): Likewise.
12737         (vsx_splat_v4sf_internal): Likewise.
12738         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
12739         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
12740         extend vector elements.
12741         (vsx_sign_extend_hi_<mode>): Likewise.
12742         (vsx_sign_extend_si_v2di): Likewise.
12743         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
12744         declaration.
12745         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
12746         constraints.  Add trailing period to wL documentation.
12748 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
12750         PR middle-end/71020
12751         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
12752         * tree-dfa.c (replace_abnormal_ssa_names): New function.
12753         * tree-call-cdce.c: Include tree-dfa.h.
12754         (can_guard_call_p): New function, extracted from...
12755         (can_use_internal_fn): ...here.
12756         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
12757         and return void.
12758         (shrink_wrap_one_built_in_call): Likewise.
12759         (use_internal_fn): Likewise.
12760         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
12761         and return void.  Call replace_abnormal_ssa_names.
12762         (pass_call_cdce::execute): Check can_guard_call_p during the
12763         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
12764         will always change something.
12766 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12768         PR ipa/70646
12769         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
12770         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
12772 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12774         PR ipa/70646
12775         * ipa-inline.h (condition): New field size.
12776         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
12777         for comaprison and store it into the new condition.
12778         (evaluate_conditions_for_known_args): Use condition size to check
12779         access sizes for all but CHANGED conditions.
12780         (unmodified_parm_1): New parameter size_p, store access size into it.
12781         (unmodified_parm): Likewise.
12782         (unmodified_parm_or_parm_agg_item): Likewise.
12783         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
12784         (set_cond_stmt_execution_predicate): Extract access sizes and store
12785         them to conditions.
12786         (set_switch_stmt_execution_predicate): Likewise.
12787         (will_be_nonconstant_expr_predicate): Likewise.
12788         (will_be_nonconstant_predicate): Likewise.
12789         (inline_read_section): Stream condition size.
12790         (inline_write_summary): Likewise.
12792 2016-05-18  Richard Biener  <rguenther@suse.de>
12794         * tree-ssa-loop-im.c (determine_max_movement): Properly add
12795         condition cost to PHI cost instead of total_cost.
12797 2016-05-18  Martin Liska  <mliska@suse.cz>
12799         PR fortran/70856
12800         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
12801         merged variables.
12803 2016-05-18  Richard Biener  <rguenther@suse.de>
12805         * lto-streamer.h (LTO_major_version): Bump to 6.
12807 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
12809         * function.c (make_split_prologue_seq, make_prologue_seq,
12810         make_epilogue_seq): New functions, factored out from...
12811         (thread_prologue_and_epilogue_insns): Here.
12813 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
12815         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12816         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
12817         of before.  Add a comment.
12819 2016-05-18  Bin Cheng  <bin.cheng@arm.com>
12821         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
12822         expression pointer, not pointer to the pointer.
12824 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
12826         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
12827         (avx2_pbroadcast<mode>): Add another alternative with v instead
12828         of x constraints in it, using <pbroadcast_evex_isa> isa.
12829         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
12831         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
12832         constraint x instead of v in second alternative, add avx512bw
12833         alternative.
12835         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
12836         constraint x instead of v in second alternative, add avx512bw
12837         alternative.
12839         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
12840         constraint x instead of v in second alternative, add avx512bw
12841         alternative.
12843         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
12844         avx512bw alternative.
12846 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
12848         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
12849         array to 128 chars.
12850         (define_insn "*andnottf3"): Ditto.
12851         (define_insn "*<code><mode>3"/any_logic): Ditto.
12852         (define_insn "*<code>tf3"/any_logic): Ditto.
12853         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
12854         operand to block AVX-512VL insn variant emit when it is not enabled.
12856 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
12858         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
12859         constraint fot SF mode.
12861 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
12862             Kirill Yukhin  <kirill.yukhin@intel.com>
12864         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
12865         modifiers.
12866         (define_insn "rsqrt14<mode>"): Ditto.
12867         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
12868         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
12869         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
12870         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
12871         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
12872         Ditto.
12873         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
12874         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
12875         * config/i386/i386.c (ix86_print_operand): Expand check for size
12876         override codes for Intel syntax.
12878 2016-05-18  Richard Biener  <rguenther@suse.de>
12880         PR tree-optimization/71168
12881         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
12882         initialization earlier.
12884 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
12886         * config/aarch64/aarch64-simd.md
12887         (aarch64_reduc_plus_internal<mode>): Rename to...
12888         (reduc_plus_scal): ...This, and remove previous implementation.
12890 2016-05-18  Richard Biener  <rguenther@suse.de>
12892         * passes.def: Put late dse and cd_dce in canonical order.
12894 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
12896         * ipa-inline-transform.c (preserve_function_body_p): Look for
12897         first non-thunk clone.
12898         (save_function_body): Save into first non-thunk.
12899         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
12900         up call stmt id.
12901         (lto_output_node): Inline thunks don't need body in every
12902         partition.
12903         * lto-streamer-in.c: Do not fixup thunk clones.
12904         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
12905         thunks.
12906         * tree-inline.c (copy_bb): Be prepared for target node to be new after
12907         folding suceeds.
12909 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
12911         PR middle-end/63586
12912         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
12913         (reassociate_bb): Call transform_add_to_multiply.
12915 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
12917         * config/aarch64/aarch64.c (all_extensions): Removed unused
12918         static variable.
12920 2016-05-17  Nathan Sidwell  <nathan@acm.org>
12922         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
12923         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
12925 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
12927         PR tree-optimization/54579
12928         PR middle-end/55299
12929         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
12931 2016-05-17  Marek Polacek  <polacek@redhat.com>
12933         PR ipa/71146
12934         * tree-inline.c (expand_call_inline): Call
12935         maybe_remove_unused_call_args.
12937 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
12939         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
12940         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
12941         * doc/md.texi (fmin@var{m}3): Likewise.
12943 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
12945         * match.pd (X & C): New transformation.
12947 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
12949         * match.pd (~X & Y): New transformation.
12951 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
12953         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
12954         information for new SSA_NAME.
12955         (simplify_conversion_using_ranges): Get range through get_range_info
12956         instead of get_value_range.
12958 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
12960         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
12961         Remove inline assembly.
12962         (vmvn_s16): Likewise.
12963         (vmvn_s32): Likewise.
12964         (vmvn_u8): Likewise.
12965         (vmvn_u16): Likewise.
12966         (vmvn_u32): Likewise.
12967         (vmvnq_s8): Likewise.
12968         (vmvnq_s16): Likewise.
12969         (vmvnq_s32): Likewise.
12970         (vmvnq_u8): Likewise.
12971         (vmvnq_u16): Likewise.
12972         (vmvnq_u32): Likewise.
12973         (vmvn_p8): Likewise.
12974         (vmvnq_p16): Likewise.
12976 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
12978         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
12979         Use builtin.
12980         (vmul_n_s16): Likewise.
12981         (vmul_n_s32): Likewise.
12982         (vmul_n_u16): Likewise.
12983         (vmul_n_u32): Likewise.
12984         (vmulq_n_f32): Likewise.
12985         (vmulq_n_f64): Likewise.
12986         (vmulq_n_s16): Likewise.
12987         (vmulq_n_s32): Likewise.
12988         (vmulq_n_u16): Likewise.
12989         (vmulq_n_u32): Likewise.
12991 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
12993         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
12994         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
12996 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
12998         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
12999         to *aarch64_fma4_elt_from_dup<mode>.
13000         (*aarch64_fnma4_elt_to_128df): Rename to
13001         *aarch64_fnma4_elt_from_dup<mode>.
13002         * config/aarch64/arm_neon.h (vfma_n_f64): New.
13003         (vfms_n_f32): Likewise.
13004         (vfms_n_f64): Likewise.
13005         (vfmsq_n_f32): Likewise.
13006         (vfmsq_n_f64): Likewise.
13008 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
13010         * wide-int.h: Change fixed_wide_int_storage from class to struct.
13012 2016-05-17  Richard Biener  <rguenther@suse.de>
13014         PR tree-optimization/71132
13015         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
13016         Only add control dependences for blocks in the loop.
13017         (build_rdg): Adjust.
13018         (generate_code_for_partition): Return whether loop should
13019         be destroyed and delay that.
13020         (distribute_loop): Likewise.
13021         (pass_loop_distribution::execute): Record loops to be destroyed
13022         and perform delayed destroying of loops.
13024 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13026         PR target/70809
13027         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
13029 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
13031         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
13033 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
13035         PR target/71114
13036         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
13037         insertion point for instructions generated by validize_mem.
13039 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
13041         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
13042         in brackets.
13044 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
13046         * config/aarch64/aarch64.c
13047         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
13048         rather than a macro.
13050 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
13052         * doc/invoke.texi (AArch64 Options): Various updates.
13054 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13056         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
13057         into instrumentation thunks.
13058         * cif-code.def (CIF_CHKP): New.
13060 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
13062         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
13064 2016-05-16  Martin Jambor  <mjambor@suse.cz>
13066         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
13067         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
13069 2016-05-16  Marek Polacek  <polacek@redhat.com>
13071         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
13072         commentary.
13074 2016-05-16  Martin Jambor  <mjambor@suse.cz>
13076         PR hsa/70857
13077         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
13078         the outlined kernel function.
13080 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
13082         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
13083         (ISA_HAS_DLSA): Ditto.
13085 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
13087         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
13089 2016-05-16  Nathan Sidwell  <nathan@acm.org>
13091         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
13092         (nvptx_name_replacement): Restore.  Add comment.
13093         (write_fn_proto, write_fn_proto_from_insn,
13094         nvptx_output_call_insn): Restore
13095         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
13097 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
13099         * config/aarch64/aarch64.md
13100         (add<mode>3_compareC_cconly_imm): Remove use of %w.
13101         (add<mode>3_compareC_imm): Likewise.
13102         (<optab>si3_uxtw): Split into register and immediate variants.
13103         (andsi3_compare0_uxtw): Likewise.
13104         (and<mode>3_compare0): Likewise.
13105         (and<mode>3nr_compare0): Likewise.
13106         (stack_protect_test_<mode>): Don't use %x for memory operands.
13108 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
13110         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
13112 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
13114         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
13115         Split integer shifts into shift_reg and bfm.
13116         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
13117         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
13118         (ror<mode>3_insn): Likewise.
13119         (<optab>si3_insn_uxtw): Likewise.
13120         (<optab><mode>3_insn): Change to rotate_imm.
13121         (extr<mode>5_insn_alt): Likewise.
13122         (extrsi5_insn_uxtw): Likewise.
13123         (extrsi5_insn_uxtw_alt): Likewise.
13125 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
13127         * doc/tm.texi: Regenerate.
13128         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
13129         (TARGET_INVALID_RETURN_TYPE): Remove.
13130         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
13131         TARGET_INVALID_RETURN_TYPE.
13132         * target.def (invalid_parameter_type): Remove.
13133         (invalid_return_type): Remove.
13135 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13137         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
13138         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
13139         calls from thunk.
13140         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
13141         gimple body.
13142         (preserve_function_body_p): No need to preserve function body
13143         * cif-codes.def (CIF_THUNK): Remove.
13144         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
13146 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13148         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
13150 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13152         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
13153         for thunks.
13155 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13157         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
13158         (inline_small_functions): Do not look for function symbol when
13159         resetting caches.
13161 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13163         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
13164         of inline thunks
13166 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
13167             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13168             Jiong Wang  <jiong.wang@arm.com>
13170         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
13171         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
13172         Define __ARM_FP16_ARGS when appropriate.
13173         * config/arm/arm.c (arm_invalid_parameter_type): Remove
13174         declaration.
13175         (arm_invalid_return_type): Likewise.
13176         (TARGET_INVALID_PARAMETER_TYPE): Remove.
13177         (TARGET_INVALID_RETURN_TYPE): Remove.
13178         (aapcs_vfp_sub_candidate): Allow HFmode.
13179         (aapcs_vfp_allocate): Add comment.  Support HFmode.
13180         (aapcs_vfp_allocate_return_reg): Likewise.
13181         (struct aapcs_cp_arg_layout): Slightly reword comments for
13182         is_return_candidate and allocate_return_reg.
13183         (output_mov_vfp): Update assert.
13184         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
13185         condition.
13186         (arm_invalid_parameter_type): Remove.
13187         (amr_invalid_return_type): Remove.
13188         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
13189         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
13190         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
13192 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
13194         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
13195         * config/aarch64/arch64-protos.h
13196         (aarch64_legitimize_reload_address): Remove.
13197         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
13198         Remove.
13200 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
13202         * configure.ac: Add ACX_NONCANONICAL_HOST.
13203         * configure: Regenerate.
13204         * Makefile.in: Set host_noncanonical.
13206 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
13208         PR target/71097
13209         * config/i386/i386.md (*movtf_internal): Before register allocation,
13210         do not allow FP constants for CM_MEDIUM memory model, allow only
13211         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
13212         (*movxf_internal): Ditto.
13213         (*movdf_internal): Ditto.
13214         (*movsf_internal): Ditto.
13216 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
13218         PR rtl-optimization/67483
13219         * combine.c (make_compound_operation): Don't call extract_left_shift
13220         with negative shift amounts.
13222 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
13224         PR bootstrap/71071
13225         * fold-const.c (fold_checksum_tree): Allow modification
13226         of TYPE_ALIAS_SET during folding.
13228         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
13229         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
13230         (ix86_split_to_parts): Likewise.  Fix up formatting.
13232 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
13234         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
13235         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
13236         printf format.
13238 2016-05-13  Nathan Sidwell  <nathan@acm.org>
13240         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
13241         (nvptx_name_replacement): Delete.
13242         (write_fn_proto, write_fn_proto_from_insn,
13243         nvptx_output_call_insn): Remove nvptx_name_replacement call.
13244         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
13245         * langhooks.c (add_builtin_funcction_common): Call
13246         targetm.mangle_decl_assembler_name.
13248         * config/nvptx/nvptx.c (write_fn_proto): Handle
13249         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
13251 2016-05-13  Martin Liska  <mliska@suse.cz>
13253         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
13254         and PRIu64 in printf format.
13256 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13258         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
13259         comment.
13261 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13263         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
13264         Change --param max-completely-peeled-times to
13265         --param max-completely-peel-times in dump file printing.
13267 2016-05-13  Richard Biener  <rguenther@suse.de>
13269         PR tree-optimization/42587
13270         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
13271         (find_bswap_or_nop_1): Likewise.
13272         (bswap_replace): Likewise.
13274 2016-05-13  Martin Liska  <mliska@suse.cz>
13276         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
13277         Initialize a variable with default value.
13279 2016-05-13  Martin Liska  <mliska@suse.cz>
13281         * doc/invoke.texi: Enhance explanation of error recovery
13282         of sanitizers.
13284 2016-05-13  Martin Liska  <mliska@suse.cz>
13286         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
13287         (struct cost_pair): Change inv_expr_id (int) to inv_expr
13288         (iv_inv_expr_ent *).
13289         (struct iv_inv_expr_ent): Comment struct fields.
13290         (sort_iv_inv_expr_ent): New function.
13291         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
13292         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
13293         a hash_map between iv_inv_expr_ent and number of usages.
13294         (niter_for_exit): Fix coding style.
13295         (tree_ssa_iv_optimize_init): Use renamed variable.
13296         (determine_base_object): Fix coding style.
13297         (alloc_iv): Likewise.
13298         (find_interesting_uses_outside): Likewise.
13299         (add_candidate_1): Likewise.
13300         (add_standard_iv_candidates): Likewise.
13301         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
13302         (prepare_decl_rtl): Fix coding style.
13303         (get_address_cost): Likewise.
13304         (get_shiftadd_cost): Likewise.
13305         (force_expr_to_var_cost): Likewise.
13306         (compare_aff_trees): Likewise.
13307         (get_expr_id): Restructure the function.
13308         (get_loop_invariant_expr_id): Renamed to
13309         get_loop_invariant_expr.
13310         (get_computation_cost_at): Replace usage of inv_expr_id with
13311         inv_expr.
13312         (get_computation_cost): Likewise.
13313         (determine_group_iv_cost_generic): Likewise.
13314         (determine_group_iv_cost_address): Likewise.
13315         (iv_period): Fix coding style.
13316         (iv_elimination_compare_lt): Likewise.
13317         (may_eliminate_iv): Likewise.
13318         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
13319         inv_expr.
13320         (determine_group_iv_costs): Dump invariant expressions.
13321         (iv_ca_recount_cost): Use the newly added hash_map.
13322         (iv_ca_set_remove_invariants): Fix coding style.
13323         (iv_ca_set_add_invariants): Fix coding style.
13324         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
13325         invariants.
13326         (iv_ca_set_cp): Likewise.
13327         (iv_ca_new): Initialize the newly added hash_map and remove
13328         initialization of fields.
13329         (iv_ca_free): Delete the hash_map.
13330         (iv_ca_dump): Dump invariant expressions.
13331         (iv_ca_extend): Fix coding style.
13332         (try_add_cand_for): Likewise.
13333         (create_new_ivs): Dump information about # of avg iterations and
13334         # of used invariant expressions.
13335         (rewrite_use_compare): Fix coding style.
13336         (free_loop_data): Set default value for max_inv_expr_id.
13338 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
13340         * cse.c (rest_of_handle_cse): Use cleanup_cfg
13341         returned value cse_cfg_altered computation.
13342         (rest_of_handle_cse2): Likewise.
13343         (rest_of_handle_cse_after_global_opts): Likewise.
13345 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13347         PR target/53440
13348         * config/arm/arm.c (arm32_output_mi_thunk): New.
13349         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
13350         to split Thumb1 vs TARGET_32BIT functionality.
13351         (arm_thumb1_mi_thunk): New.
13353 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13355         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
13356         to true.
13358 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13360         PR target/71080
13361         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
13363 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
13365         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
13366         (expand_builtin_trap): Emit a regular call.
13367         (set_builtin_user_assembler_name): Remove obsolete cases.
13368         * dse.c (scan_insn): Adjust.
13369         * except.c: Include calls.h.
13370         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
13371         emit a regular call to setjmp.
13372         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
13373         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
13374         (emit_block_move_via_libcall): Delete.
13375         (block_move_fn): Delete.
13376         (init_block_move_fn): Likewise.
13377         (emit_block_move_libcall_fn): Likewise.
13378         (emit_block_op_via_libcall): New function.
13379         (set_storage_via_libcall): Tidy up and use memset builtin.
13380         (block_clear_fn): Delete.
13381         (init_block_clear_fn): Likewise.
13382         (clear_storage_libcall_fn): Likewise.
13383         (expand_assignment): Call emit_block_move_via_libcall.
13384         Do not include gt-expr.h.
13385         * expr.h (emit_block_op_via_libcall): Declare.
13386         (emit_block_copy_via_libcall): New inline function.
13387         (emit_block_move_via_libcall): Likewise.
13388         (emit_block_comp_via_libcall): Likewise.
13389         (block_clear_fn): Delete.
13390         (init_block_move_fn): Likewise.
13391         (init_block_clear_fn): Likewise.
13392         (emit_block_move_via_libcall): Likewise.
13393         (set_storage_via_libcall): Add default parameter value.
13394         * libfuncs.h (enum libfunc_index): Remove obsolete values.
13395         (abort_libfunc): Delete.
13396         (memcpy_libfunc): Likewise.
13397         (memmove_libfunc): Likewise.
13398         (memcmp_libfunc): Likewise.
13399         (memset_libfunc): Likewise.
13400         (setbits_libfunc): Likewise.
13401         (setjmp_libfunc): Likewise.
13402         (longjmp_libfunc): Likewise.
13403         (profile_function_entry_libfunc): Likewise.
13404         (profile_function_exit_libfunc): Likewise.
13405         (gcov_flush_libfunc): Likewise.
13406         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
13407         and DECL_VISIBILITY on the declaration.
13408         (init_optabs): Do not initialize obsolete libfuncs.
13409         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
13410         * tree-core.h (ECF_RET1): Define.
13411         (ECF_TM_PURE): Adjust.
13412         (ECF_TM_BUILTIN): Likewise.
13413         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
13414         (build_common_builtin_nodes): Initialize abort builtin.
13415         Add ECF_RET1 on memcpy, memmove and memset builtins.
13416         Pass final flags for alloca and alloca_with_align builtins.
13417         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
13418         obsolete builtins.
13419         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
13420         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
13421         set_storage_via_libcall and call emit_block_copy_via_libcall.
13423 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
13425         * config/i386/i386.md (*call_got_x32): Change operand 0 to
13426         DImode before it is passed to ix86_output_call_operand.
13427         (*call_value_got_x32): Ditto for operand 1.
13429 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
13431         PR rtl-optimization/70904
13432         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
13433         reload for wide mode.
13435 2016-05-12  Marek Polacek  <polacek@redhat.com>
13437         PR c/70756
13438         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
13439         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
13440         * langhooks.h (incomplete_type_error): Likewise.
13441         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
13442         parameter, pass it down to incomplete_type_error.
13443         * tree.h (size_in_bytes): New inline overload.
13444         (size_in_bytes_loc): Renamed from size_in_bytes.
13446 2016-05-12  Richard Biener  <rguenther@suse.de>
13448         PR tree-optimization/71059
13449         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
13450         nary before looking up or entering the expression into the VN
13451         hashes.
13452         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
13453         Make sure to re-use NARYs without result as inserted by
13454         phi-translation.
13456 2016-05-12  Richard Biener  <rguenther@suse.de>
13458         PR tree-optimization/71062
13459         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
13460         field.
13461         * tree-ssa-structalias.c (set_uids_in_ptset): Set
13462         vars_contains_restrict if the var is a restrict tag.
13463         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
13464         do not disambiguate pointers against it.
13465         (dump_points_to_solution): Re-structure and adjust for new
13466         vars_contains_restrict flag.
13467         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
13469 2016-05-12  Martin Liska  <mliska@suse.cz>
13471         * doc/invoke.texi: Explain connection between
13472         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
13474 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
13476         PR tree-optimization/71006
13477         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
13478         consider COND_EXPR as a mask producer.
13480 2016-05-12  Marek Polacek  <polacek@redhat.com>
13482         PR driver/71063
13483         * opts.c (common_handle_option): Detect missing argument for --help^.
13485 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13487         PR target/70830
13488         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
13489         when popping the PC and within an interrupt handler routine.
13490         Add missing tab to output of "ldmfd".
13491         (output_return_instruction): Output LDMFD with SP update rather
13492         than POP when returning from interrupt handler.
13494 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
13496         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
13497         TARGET_64BIT && TARGET_AVX512DQ.
13498         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
13499         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
13500         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
13501         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
13502         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
13503         (*vec_extractv4si_zext): Add avx512dq alternative.
13504         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
13505         use v instead of x constraint in other alternatives where possible.
13507         * config/i386/sse.md (sse2_loadld): Use v instead of x
13508         constraint in alternatives 0,1,4.
13510         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
13511         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
13512         v constraints instead of x and <pinsr_evex_isa> isa attribute.
13514         PR target/71019
13515         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
13516         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
13517         is not emitted unless TARGET_AVX512BW.
13518         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
13519         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
13520         for the result operand.
13522         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
13523         constraint instead of x in avx alternatives.  Use maybe_evex instead
13524         of vex prefix.
13526         * config/i386/constraints.md (Yv): New constraint.
13527         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
13528         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
13529         * config/i386/i386.md (avx512fvecmode): New mode attr.
13530         (*pushtf): Use v constraint instead of x.
13531         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
13532         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
13533         (*absneg<mode>2): Use Yv constraint instead of x constraint.
13534         (*absnegtf2_sse): Likewise.
13535         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
13536         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
13537         avx512f alternatives.
13538         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
13540 2016-05-12  Richard Biener  <rguenther@suse.de>
13542         PR tree-optimization/71060
13543         * tree-data-ref.c (initialize_data_dependence_relation): Do not
13544         require exact match of DR_BASE_OBJECT but only matching address and
13545         type.
13547 2016-05-12  Richard Biener  <rguenther@suse.de>
13549         PR tree-optimization/70986
13550         * cfganal.c: Include cfgloop.h.
13551         (dfs_find_deadend): Prefer to take edges exiting loops.
13553 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13555         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
13556         compile and run time.
13558 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
13560         PR c/43651
13561         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
13563 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
13565         * config/i386/i386.c (legitimize_pic_address): Use
13566         copy_to_suggested_reg instead of gen_movsi.
13568 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13570         * config/rs6000/predicates.md (quad_memory_operand): Move most of
13571         the code into quad_address_p and call it to share code with
13572         vsx_quad_dform_memory_operand.
13573         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
13574         d-form support.
13575         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
13576         bit instead of being a separate word.  Split -mpower9-dform into
13577         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
13578         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
13579         for the register class supporting 128-bit quad word memory offsets.
13580         (mode_supports_vsx_dform_quad): Helper function to return if the
13581         register class uses quad word memory offsets.
13582         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
13583         (rs6000_debug_reg_global): Always print if we are using LRA or not.
13584         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
13585         instructions are enabled, set up the appropriate addr_masks for
13586         128-bit types.
13587         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
13588         -mpower9-dform-scalar, instead of -mpower9-dform.
13589         (rs6000_option_override_internal): Split -mpower9-dform into two
13590         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
13591         -mpower9-dform switch sets or clears both.  If we are not using
13592         the LRA register allocator, do not enable -mpower9-dform-vector by
13593         default.  If we are using LRA, enable -mpower9-dform-vector and
13594         -mvsx-timode if it is appropriate.  Issue a warning if either
13595         -mpower9-dform-vector or -mvsx-timode are explicitly used without
13596         enabling LRA.
13597         (quad_address_offset_p): New helper function to return if the
13598         offset is legal for quad word memory instructions.
13599         (quad_address_p): New function to determin if GPR or vector
13600         register quad word memory addresses are legal.
13601         (mem_operand_gpr): Validate quad word address offsets.
13602         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
13603         d-form (register + offset) instructions.
13604         (offsettable_ok_by_alignment): Likewise.
13605         (rs6000_legitimate_offset_address_p): Likewise.
13606         (legitimate_lo_sum_address_p): Likewise.
13607         (rs6000_legitimize_address): Likewise.
13608         (rs6000_legitimize_reload_address): Add more debug statements for
13609         -mdebug=addr.
13610         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
13611         d-form instructions.
13612         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
13613         d-form instructions.  Distinguish different cases in debug
13614         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
13615         d-form instructions.
13616         (rs6000_preferred_reload_class): Likewise.
13617         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
13618         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
13619         of the ISA 2.06 indexed memory instructions.
13620         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
13621         use them to save/restore the saved vector registers instead of
13622         using Altivec instructions.
13623         (rs6000_emit_epilogue): Likewise.
13624         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
13625         (rs6000_opt_masks): Split -mpower9-dform into
13626         -mpower9-dform-scalar and -mpower9-dform-vector.
13627         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
13628         was not selected.
13629         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
13630         ISA 3.0 vector indexed memory instructions, and fold the code into
13631         the normal mov<mode> patterns.
13632         (p9_vecstore_<mode>): Likewise.
13633         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
13634         instructions.
13635         (vsx_movti_64bit): Likewise.
13636         (vsx_movti_32bit): Likewise.
13637         * config/rs6000/constraints.md (wO constraint): New constraint for
13638         ISA 3.0 vector d-form support.
13639         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
13640         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
13641         include -mpower9-dform-vector until we switch over to LRA.
13642         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
13643         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
13644         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
13645         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
13646         for -mpower9-dform and -mlra.
13647         * doc/md.texi (wO constraint): Document wO constraint.
13649 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
13651         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
13652         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
13653         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
13654         Move handling of non-insn arguments inline into the sole user:
13655         (output_trans_func): ...here.
13656         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
13657         in emitted function prototype.
13658         (output_internal_insn_latency_func): Ditto.  Simplify.
13659         (output_internal_maximal_insn_latency_func): Ditto.  Delete
13660         always-unused argument.
13661         (output_insn_latency_func): Ditto.
13662         (output_maximal_insn_latency_func): Ditto.
13664 2016-05-11  Richard Biener  <rguenther@suse.de>
13666         PR tree-optimization/71055
13667         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
13668         sth with precision not equal to access size verify we don't chop
13669         off bits.
13671 2016-05-11  Richard Biener  <rguenther@suse.de>
13673         PR debug/71057
13674         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
13675         (dwarf2out_finish): Move retry_incomplete_types call ...
13676         (dwarf2out_early_finish): ... here.
13678 2016-05-11  Richard Biener  <rguenther@suse.de>
13680         PR middle-end/71002
13681         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
13682         if the langhook insists on it.
13683         * fold-const.c (make_bit_field_ref): Add arg for the original
13684         reference and preserve its alias-set.
13685         (decode_field_reference): Take exp by reference and adjust it
13686         to the original memory reference.
13687         (optimize_bit_field_compare): Adjust callers.
13688         (fold_truth_andor_1): Likewise.
13689         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
13691 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
13693         PR middle-end/70807
13694         * cfgrtl.h (delete_insn_and_edges): Now return bool.
13695         * cfgrtl.c (delete_insn_and_edges): Likewise.
13696         * config/i386/i386.c (convert_scalars_to_vector): Remove
13697         redundant code.
13698         * cse.c (cse_insn): Compute cse_cfg_altered.
13699         (delete_trivially_dead_insns): Likewise.
13700         (cse_cc_succs): Likewise.
13701         (rest_of_handle_cse): Free dominance info if required.
13702         (rest_of_handle_cse2): Likewise.
13703         (rest_of_handle_cse_after_global_opts): Likewise.
13705 2016-05-11  Alan Modra  <amodra@gmail.com>
13707         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
13708         abi_v4_pass_in_fpr): New functions.
13709         (rs6000_function_arg_boundary): Exclude complex IBM long double
13710         from 64-bit alignment when ABI_V4.
13711         (rs6000_function_arg, rs6000_function_arg_advance_1,
13712         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
13714 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
13716         PR rtl-optimization/71028
13717         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
13718         jump with just a return in the fallthrough block if the branch
13719         block contains just a return as well.
13721 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
13723         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
13724         * match.pd ((X & Y) ^ Y): ... this.
13725         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
13726         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
13728 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
13730         * read-md.c (require_char_ws): New function.
13731         (read_string): Simplify using require_char_ws.
13732         (handle_constants): Likewise.
13733         (handle_enum): Likewise.
13734         (handle_file): Likewise.
13735         * read-md.h (require_char_ws): New declaration.
13736         * read-rtl.c (read_conditions): Simplify using require_char_ws.
13737         (read_mapping): Likewise.
13738         (read_rtx_code): Likewise.
13739         (read_nested_rtx): Likewise.
13741 2016-05-10  James Norris  <jnorris@codesourcery.com>
13743         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
13744         if offloading is enabled and -fopenacc or -fopenmp is specified.
13745         (CRTOFFLOADEND): Likewise.
13746         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
13747         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
13749 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
13751         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
13752         gotoff_operand code paths.  Use copy_to_suggested_regs and
13753         expand_simple_binop where appropriate.  Cleanup.
13755 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13757         PR target/70799
13758         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
13759         integer constants.
13760         (dimode_scalar_chain::vector_const_cost): New.
13761         (dimode_scalar_chain::compute_convert_gain): Handle constants.
13762         (dimode_scalar_chain::convert_op): Likewise.
13763         (dimode_scalar_chain::convert_insn): Likewise.
13765 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
13767         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
13768         unary operation, not a binary one.
13770 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13772         PR middle-end/70877
13773         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
13774         calls with type casted fndecl.
13776 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13778         PR tree-optimization/70786
13779         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
13780         * calls.c (initialize_argument_information): Bind bounds
13781         with corresponding args passed by reference.
13783 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
13785         PR target/70927
13786         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
13787         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
13788         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
13789         accordingly.
13791 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13793         PR target/70963
13794         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
13795         code for a zero scale factor.
13796         (vsx_xvcvdpuxds_scale): Likewise.
13798 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
13800         * diagnostic-show-locus.c (layout::layout): Call show_ruler
13801         if show_ruler_p was set on the context.
13802         (layout::show_ruler): New method.
13803         * diagnostic.h (struct diagnostic_context): Add field
13804         "show_ruler_p".
13806 2016-05-10  Richard Biener  <rguenther@suse.de>
13808         PR tree-optimization/71039
13809         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
13810         (chk_uses): New function.
13811         (propagate_with_phi): Verify we can safely replicate the lhs of an
13812         aggregate assignment on all incoming edges.
13814 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
13816         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
13817         Forward declare.
13818         (rx_atomic_sequence): New class.
13819         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
13820         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
13821         non-inline.
13822         (rx_atomic_sequence::rx_atomic_sequence,
13823         rx_atomic_sequence::~rx_atomic_sequence): New functions.
13824         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
13825         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
13826         CTRLREG_INTB): New constants.
13827         (FETCHOP): New code iterator.
13828         (fethcop_name, fetchop_name2): New iterator code attributes.
13829         (QIHI): New mode iterator.
13830         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
13831         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
13832         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
13834 2016-05-10  Martin Liska  <mliska@suse.cz>
13836         * tree-inline.c (remap_dependence_clique): Do not remap
13837         debugging statements.
13839 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13841         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
13842         ("*fixuns_truncdfdi2_z13")
13843         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
13844         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
13845         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
13847 2016-05-10  Richard Biener  <rguenther@suse.de>
13849         PR tree-optimization/70497
13850         PR tree-optimization/28367
13851         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
13852         split out from ...
13853         (visit_reference_op_load): ... here.
13854         (vn_reference_lookup_3): Use it to handle subreg-like accesses
13855         with simplified BIT_FIELD_REFs.
13856         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
13857         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
13858         correctly.
13860 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
13862         * dwarf2out.c (add_abstract_origin_attribute): Adjust
13863         documentation comment.  For BLOCK nodes, add a
13864         DW_AT_abstract_origin attribute that points to the DIE generated
13865         for the origin BLOCK.
13866         (gen_lexical_block_die): Call add_abstract_origin_attribute for
13867         blocks from inlined functions.
13869 2016-05-10  Alan Modra  <amodra@gmail.com>
13871         PR target/70947
13872         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
13873         regrename modifying insns saving lr before __morestack call.
13874         * config/rs6000/rs6000.md (split_stack_return): Similarly for
13875         insns restoring lr after __morestack call.
13877 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
13879         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
13880         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
13881         expanders.
13882         * config/i386/sse.md (vec_interleave_high<mode>,
13883         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
13884         <avx512>_vpermt2var<mode>3_maskz): Likewise.
13886 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
13888         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
13889         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
13890         parallel reassociation for power8 and forward.
13892 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
13894         * config/i386/i386.md (absneg splitters with general regs): Use
13895         general_reg_operand predicate.
13896         (btsq peephole2): Use x86_64_immediate_operand to check if new
13897         value is suitable for immediate operand.  Generate emitted insn
13898         using RTL expressions.
13899         (btcq peephole2): Ditto.
13900         (btrq peephole2): Ditto.  Generate correct immediate operand
13901         for AND masking.
13903 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
13905         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
13906         bitpos.
13908 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
13910         * tree-affine.c (wide_int_constant_multiple_p): Add missing
13911         pointer dereference.
13913 2016-05-09  Richard Biener  <rguenther@suse.de>
13915         PR tree-optimization/70985
13916         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
13917         op0 isn't a gimple register.
13919 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
13921         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
13922         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
13923         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
13924         (i6400_fpu_mult): New cpu units.
13925         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
13926         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
13927         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
13928         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
13929         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
13930         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
13931         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
13932         (i6400_msa_long_float4, i6400_msa_long_float5)
13933         (i6400_msa_long_float8, i6400_msa_fdiv_df)
13934         (i6400_msa_fdiv_sf): New reservations.
13935         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
13936         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
13937         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
13938         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
13939         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
13940         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
13941         (msa_short_cmp, msa_short_float2, msa_short_logic3)
13942         (msa_short_store4, msa_long_load, msa_short_store)
13943         (msa_long_logic, msa_long_float2, msa_long_float4)
13944         (msa_long_float5, msa_long_float8, msa_long_mult)
13945         (msa_long_fdiv, msa_long_div): New reservations.
13947 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
13948             Sameera Deshpande  <sameera.deshpande@imgtec.com>
13949             Matthew Fortune  <matthew.fortune@imgtec.com>
13950             Graham Stott  <graham.stott@imgtec.com>
13951             Chao-ying Fu  <chao-ying.fu@imgtec.com>
13953         * config.gcc: Add MSA header file for mips*-*-* target.
13954         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
13955         (Ubv8i, Urv8):  New constraints.
13956         * config/mips/mips-ftypes.def: Add function types for MSA
13957         builtins.
13958         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
13959         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
13960         * config/mips/mips-msa.md: New file.
13961         * config/mips/mips-protos.h
13962         (mips_split_128bit_const_insns): New prototype.
13963         (mips_msa_idiv_insns): Likewise.
13964         (mips_split_128bit_move): Likewise.
13965         (mips_split_128bit_move_p): Likewise.
13966         (mips_split_msa_copy_d): Likewise.
13967         (mips_split_msa_insert_d): Likewise.
13968         (mips_split_msa_fill_d): Likewise.
13969         (mips_expand_msa_branch): Likewise.
13970         (mips_const_vector_same_val_p): Likewise.
13971         (mips_const_vector_same_bytes_p): Likewise.
13972         (mips_const_vector_same_int_p): Likewise.
13973         (mips_const_vector_shuffle_set_p): Likewise.
13974         (mips_const_vector_bitimm_set_p): Likewise.
13975         (mips_const_vector_bitimm_clr_p): Likewise.
13976         (mips_msa_vec_parallel_const_half): Likewise.
13977         (mips_msa_output_division): Likewise.
13978         (mips_ldst_scaled_shift): Likewise.
13979         (mips_expand_vec_cond_expr): Likewise.
13980         * config/mips/mips.c (enum mips_builtin_type): Add
13981         MIPS_BUILTIN_MSA_TEST_BRANCH.
13982         (mips_gen_const_int_vector_shuffle): New prototype.
13983         (mips_const_vector_bitimm_set_p): New function.
13984         (mips_const_vector_bitimm_clr_p): Likewise.
13985         (mips_const_vector_same_val_p): Likewise.
13986         (mips_const_vector_same_bytes_p): Likewise.
13987         (mips_const_vector_same_int_p): Likewise.
13988         (mips_const_vector_shuffle_set_p): Likewise.
13989         (mips_symbol_insns): Forbid loading symbols via immediate for
13990         MSA.
13991         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
13992         stores.
13993         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
13994         MSA.
13995         (mips_lx_address_p): Add support load indexed address for MSA.
13996         (mips_address_insns): Add calculation of instructions needed for
13997         stores and loads for MSA.
13998         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
13999         CONST_VECTOR for MSA and let it fall through.
14000         (mips_ldst_scaled_shift): New function.
14001         (mips_subword_at_byte): Likewise.
14002         (mips_msa_idiv_insns): Likewise.
14003         (mips_legitimize_move): Validate MSA moves.
14004         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
14005         calculation of costs for MSA division.
14006         (mips_split_move_p): Check if MSA moves need splitting.
14007         (mips_split_move): Split MSA moves if necessary.
14008         (mips_split_128bit_move_p): New function.
14009         (mips_split_128bit_move): Likewise.
14010         (mips_split_msa_copy_d): Likewise.
14011         (mips_split_msa_insert_d): Likewise.
14012         (mips_split_msa_fill_d): Likewise.
14013         (mips_output_move): Handle MSA moves.
14014         (mips_expand_msa_branch): New function.
14015         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
14016         Reinstate 'y' modifier.
14017         (mips_file_start): Add MSA .gnu_attribute.
14018         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
14019         FPRs.
14020         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
14021         (mips_class_max_nregs): Add register size for MSA supported mode.
14022         (mips_cannot_change_mode_class): Allow conversion between MSA
14023         vector modes and TImode.
14024         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
14025         instruction.
14026         (mips_secondary_reload_class): Force MSA loads/stores via memory.
14027         (mips_preferred_simd_mode): Add preffered modes for MSA.
14028         (mips_vector_mode_supported_p): Add MSA supported modes.
14029         (mips_autovectorize_vector_sizes): New function.
14030         (mips_msa_output_division): Likewise.
14031         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
14032         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
14033         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
14034         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
14035         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
14036         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
14037         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
14038         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
14039         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
14040         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
14041         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
14042         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
14043         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
14044         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
14045         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
14046         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
14047         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
14048         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
14049         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
14050         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
14051         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
14052         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
14053         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
14054         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
14055         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
14056         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
14057         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
14058         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
14059         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
14060         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
14061         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
14062         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
14063         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
14064         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
14065         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
14066         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
14067         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
14068         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
14069         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
14070         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
14071         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
14072         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
14073         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
14074         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
14075         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
14076         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
14077         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
14078         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
14079         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
14080         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
14081         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
14082         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
14083         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
14084         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
14085         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
14086         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
14087         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
14088         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
14089         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
14090         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
14091         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
14092         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
14093         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
14094         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
14095         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
14096         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
14097         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
14098         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
14099         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
14100         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
14101         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
14102         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
14103         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
14104         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
14105         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
14106         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
14107         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
14108         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
14109         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
14110         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
14111         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
14112         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
14113         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
14114         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
14115         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
14116         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
14117         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
14118         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
14119         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
14120         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
14121         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
14122         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
14123         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
14124         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
14125         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
14126         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
14127         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
14128         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
14129         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
14130         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
14131         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
14132         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
14133         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
14134         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
14135         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
14136         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
14137         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
14138         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
14139         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
14140         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
14141         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
14142         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
14143         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
14144         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
14145         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
14146         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
14147         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
14148         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
14149         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
14150         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
14151         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
14152         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
14153         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
14154         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
14155         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
14156         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
14157         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
14158         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
14159         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
14160         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
14161         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
14162         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
14163         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
14164         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
14165         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
14166         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
14167         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
14168         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
14169         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
14170         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
14171         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
14172         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
14173         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
14174         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
14175         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
14176         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
14177         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
14178         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
14179         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
14180         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
14181         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
14182         move_v builtins.
14183         (mips_get_builtin_decl_index): New array.
14184         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
14185         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
14186         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
14187         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
14188         (mips_init_builtins): Initialize mips_get_builtin_decl_index
14189         array.
14190         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
14191         hook.
14192         (mips_expand_builtin_insn): Prepare operands for
14193         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
14194         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
14195         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
14196         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
14197         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
14198         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
14199         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
14200         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
14201         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
14202         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
14203         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
14204         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
14205         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
14206         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
14207         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
14208         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
14209         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
14210         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
14211         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
14212         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
14213         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
14214         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
14215         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
14216         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
14217         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
14218         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
14219         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
14220         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
14221         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
14222         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
14223         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
14224         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
14225         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
14226         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
14227         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
14228         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
14229         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
14230         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
14231         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
14232         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
14233         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
14234         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
14235         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
14236         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
14237         These are set implicitly and an error is reported if overridden.
14238         (mips_expand_builtin_msa_test_branch): New function.
14239         (mips_expand_msa_shuffle): Likewise.
14240         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
14241         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
14242         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
14243         (mips_expand_vec_unpack): Add support for MSA.
14244         (mips_expand_vector_init): Likewise.
14245         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
14246         instead of const0_rtx.
14247         (mips_msa_vec_parallel_const_half): New function.
14248         (mips_gen_const_int_vector): Likewise.
14249         (mips_gen_const_int_vector_shuffle): Likewise.
14250         (mips_expand_msa_cmp): Likewise.
14251         (mips_expand_vec_cond_expr): Likewise.
14252         * config/mips/mips.h
14253         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
14254         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
14255         specified.
14256         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
14257         (ISA_HAS_MSA): New macro.
14258         (UNITS_PER_MSA_REG): Likewise.
14259         (BITS_PER_MSA_REG): Likewise.
14260         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
14261         (MSA_REG_FIRST): New macro.
14262         (MSA_REG_LAST): Likewise.
14263         (MSA_REG_NUM): Likewise.
14264         (MSA_REG_P): Likewise.
14265         (MSA_REG_RTX_P): Likewise.
14266         (MSA_SUPPORTED_MODE_P): Likewise.
14267         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
14268         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
14269         * config/mips/mips.md: Include mips-msa.md.
14270         (alu_type): Add simd_add.
14271         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
14272         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
14273         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
14274         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
14275         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
14276         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
14277         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
14278         simd_move, simd_load, simd_store.  Choose "multi" for moves
14279         for "qword_mode".
14280         (qword_mode): New attribute.
14281         (insn_count): Add instruction count for quad moves.
14282         Increase the count for MIPS SIMD division.
14283         (UNITMODE): Add UNITMODEs for vector types.
14284         (addsub): New code iterator.
14285         * config/mips/mips.opt (mmsa): New option.
14286         * config/mips/msa.h: New file.
14287         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
14288         specified.
14289         * config/mips/mti-linux.h: Likewise.
14290         * config/mips/predicates.md
14291         (const_msa_branch_operand): New constraint.
14292         (const_uimm3_operand): Likewise.
14293         (const_uimm4_operand): Likewise.
14294         (const_uimm5_operand): Likewise.
14295         (const_uimm8_operand): Likewise.
14296         (const_imm5_operand): Likewise.
14297         (aq10b_operand): Likewise.
14298         (aq10h_operand): Likewise.
14299         (aq10w_operand): Likewise.
14300         (aq10d_operand): Likewise.
14301         (const_m1_operand): Likewise.
14302         (reg_or_m1_operand): Likewise.
14303         (const_exp_2_operand): Likewise.
14304         (const_exp_4_operand): Likewise.
14305         (const_exp_8_operand): Likewise.
14306         (const_exp_16_operand): Likewise.
14307         (const_vector_same_val_operand): Likewise.
14308         (const_vector_same_simm5_operand): Likewise.
14309         (const_vector_same_uimm5_operand): Likewise.
14310         (const_vector_same_uimm6_operand): Likewise.
14311         (const_vector_same_uimm8_operand): Likewise.
14312         (par_const_vector_shf_set_operand): Likewise.
14313         (reg_or_vector_same_val_operand): Likewise.
14314         (reg_or_vector_same_simm5_operand): Likewise.
14315         (reg_or_vector_same_uimm6_operand): Likewise.
14316         * doc/extend.texi (MIPS SIMD Architecture Functions): New
14317         section.
14318         * doc/invoke.texi (-mmsa): Document new option.
14320 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14322         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
14323         * configure: Regenerate.
14324         * config.in: Regenerate.
14325         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
14326         on -fvtable-verify.
14327         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
14328         (ENDFILE_VTV_SPEC): Define.
14330 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
14332         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
14333         registers in all interrupt handlers if necessary.
14334         (rl78_option_override): Add warning.
14335         (MUST_SAVE_MDUC_REGISTERS): New macro.
14336         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
14337         * config/rl78/rl78.c (check_mduc_usage): New function.
14338         (mduc_regs): New structure to hold MDUC register data.
14339         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
14340         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
14341         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
14342         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
14343         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
14344         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
14346 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
14348         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
14349         (tree-ssa-loop-niter.h): Ditto.
14350         (idx_within_array_bound, ref_within_array_bound): New functions.
14351         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
14352         Factor out check on writable base object to ...
14353         (base_object_writable): ... here.
14355 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14357         * config/arm/arm.md (probe_stack): Add modes to set source
14358         and destination.
14360 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
14362         * regrename.c (base_reg_class_for_rename): New static function.
14363         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
14365 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
14367         * cgraph.c (thunk_adjust): Export.
14368         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
14369         * cgraphunit.c (thunk_adjust): Export.
14370         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
14371         thunks.
14372         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
14373         inlinable.
14374         * tree-inline.c (expand_call_inline): Expand thunks inline.
14376 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
14378         PR target/70998
14379         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
14380         (*sse2_vd_cvtss2sd): Ditto.
14381         * config/i386/i386.md
14382         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
14383         Generate *sse2_vd_cvtsd2ss pattern.
14384         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
14385         Generate *sse2_vd_cvtss2sd pattern.
14387 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
14389         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
14390         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
14391         users.
14393 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
14395         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
14396         * config/sh/sh.c: Define and declare variables on first use throughout
14397         the file.
14398         (current_function_interrupt): Change to bool type.
14399         (frame_insn): Rename to emit_frame_insn and update users.
14400         (push_regs): Use bool for 'interrupt_handler' argument.
14401         (save_schedule_s): Remove.
14402         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
14403         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
14404         targetm.asm_out.unaligned_op.di.
14405         (gen_far_branch): Remove redundant forward declaration.
14406         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
14407         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
14408         (sh_set_return_address, sh_function_ok_for_sibcall,
14409         scavenge_reg): Update comments.
14410         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
14411         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
14412         (sh_attr_renesas_p): Remove unnecessary parentheses.
14413         (branch_dest): Simplify.
14414         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
14415         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
14416         (CUMULATIVE_ARGS): Change macro to typedef.
14417         (current_function_interrupt): Change to bool type.
14418         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
14419         Surround with __cplusplus ifdef.
14420         (sh_compare_op0, sh_compare_op1): Remove.
14421         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
14423 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
14425         * config/arm/arm.md: (arch): Add neon.
14426         (arch_enabled): Return yes for arch neon when TARGET_NEON.
14427         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
14428         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
14429         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
14430         attributes for alt renumbering.  Mark alt 3 as non-predicable.
14431         (thumb2_movdf_vfp): Likewise.
14433 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
14435         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
14436         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
14437         (*andqi_1): Add preferred_for_speed attribute to disparage
14438         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
14439         (*<code>qi_1): Ditto.
14440         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
14441         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
14442         (*ashlqi3_1): Ditto.
14443         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
14444         Add preferred_for_size attribute to disparage alternative 0 and
14445         preferred_for_speed attribute to disparage alternative 1 for
14446         TARGET_PARTIAL_REG_STALL targets.
14448 2016-05-07  Tom de Vries  <tom@codesourcery.com>
14450         PR tree-optimization/70956
14451         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
14452         def.
14454 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
14456         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
14457         * config/sh/sh.c (sh_cbranch_distance): Implement it.
14458         * config/sh/sh.md (branch_zero): Remove define_attr.
14459         (define_delay): Disable delay slot if branch distance is one insn.
14461 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
14463         * config/i386/i386.md (LEAMODE): New mode attribute.
14464         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
14465         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
14466         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
14467         operand 2 predicate.
14468         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
14469         (*lea<mode>_general_3): Ditto.
14470         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
14472 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
14474         * genmddump.c (main): Convert argv from char ** to const char **.
14476 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
14478         * coretypes.h (OVERRIDE): New macro.
14479         (FINAL): New macro.
14481 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
14483         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
14484         allow coalescing if the types are compatible.
14486 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
14488         * pass_manager.h (pass_manager::register_pass_name): New method.
14489         (pass_manager::get_pass_by_name): New method.
14490         (pass_manager::create_pass_tab): New method.
14491         (pass_manager::m_name_to_pass_map): New field.
14492         * passes.c (name_to_pass_map): Delete global in favor of field
14493         "m_name_to_pass_map" of pass_manager.
14494         (register_pass_name): Rename from a function to...
14495         (pass_manager::register_pass_name): ...this method, updating
14496         for renaming of global "name_to_pass_map" to field
14497         "m_name_to_pass_map".
14498         (create_pass_tab): Rename from a function to...
14499         (pass_manager::create_pass_tab): ...this method, updating
14500         for renaming of global "name_to_pass_map" to field.
14501         (get_pass_by_name): Rename from a function to...
14502         (pass_manager::get_pass_by_name): ...this method.
14503         (enable_disable_pass): Convert use of get_pass_by_name to
14504         a method call, locating the pass_manager singleton.
14506 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
14508         * genattr-common.c (main): Convert argv from char ** to const char **.
14509         * genattr.c (main): Likewise.
14510         * genattrtab.c (main): Likewise.
14511         * genautomata.c (initiate_automaton_gen): Likewise.
14512         (main): Likewise.
14513         * gencodes.c (main): Likewise.
14514         * genconditions.c (main): Likewise.
14515         * genconfig.c (main): Likewise.
14516         * genconstants.c (main): Likewise.
14517         * genemit.c (main): Likewise.
14518         * genenums.c (main): Likewise.
14519         * genextract.c (main): Likewise.
14520         * genflags.c (main): Likewise.
14521         * genmddeps.c (main): Likewise.
14522         * genopinit.c (main): Likewise.
14523         * genoutput.c (main): Likewise.
14524         * genpeep.c (main): Likewise.
14525         * genpreds.c (main): Likewise.
14526         * genrecog.c (main): Likewise.
14527         * gensupport.c (init_rtx_reader_args_cb): Likewise.
14528         (init_rtx_reader_args): Likewise.
14529         * gensupport.h (init_rtx_reader_args_cb): Likewise.
14530         (init_rtx_reader_args): Likewise.
14531         * gentarget-def.c (main): Likewise.
14532         * read-md.c (read_md_files): Likewise.
14533         * read-md.h (read_md_files): Likewise.
14535 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
14537         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
14538         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
14539         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
14540         Remove unused predicate.
14541         (register_and_not_fp_reg_operand): Ditto.
14543 2016-05-06  Martin Liska  <mliska@suse.cz>
14545         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
14546         instead of vec as the vector is local to the function.
14548 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
14550         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
14551         avx512bw alternative.
14553         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
14554         before the ashr<mode>3 pattern.
14556         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
14557         v instead of x in vex or maybe_vex alternatives, use
14558         maybe_evex instead of vex in prefix.
14560         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
14561         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
14562         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
14563         in vex or maybe_vex alternatives, use maybe_evex instead of vex
14564         in prefix.
14566         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
14567         v instead of x in vex or maybe_vex alternatives, use
14568         maybe_evex instead of vex in prefix.
14570         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
14571         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
14572         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
14573         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
14574         alternatives, use maybe_evex instead of vex in prefix.
14576         * config/i386/sse.md (vec_interleave_lowv4sf,
14577         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
14578         v instead of x in vex or maybe_vex alternatives, use
14579         maybe_evex instead of vex in prefix.
14581         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
14582         v instead of x in vex or maybe_vex alternatives, use
14583         maybe_evex instead of vex in prefix.
14585         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
14586         v constraint instead of x.
14588 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
14590         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
14591         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
14592         equality first.
14594 2016-05-06  Richard Biener  <rguenther@suse.de>
14596         PR tree-optimization/70948
14597         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14598         Properly clobber all fields of va_list for __builtin_va_start.
14600 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
14602         PR debug/70935
14603         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
14604         loop latch destination.
14606 2016-05-06  Martin Liska  <mliska@suse.cz>
14608         * tree-ssa-uninit.c: Apply manual changes
14609         to the GNU coding style.
14610         (prune_uninit_phi_opnds): Rename from
14611         prune_uninit_phi_opnds_in_unrealizable_paths.
14613 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14615         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
14616         mspace): Remove deprecated options.
14617         * doc/invoke.texi (SH options): Remove -mspace.
14619 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14621         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
14623 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14625         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
14626         corresponding combine split pattern.
14628 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14630         PR target/58219
14631         * config/sh/predicates.md (long_displacement_mem_operand): New.
14632         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
14633         Add movi20, movi20s alternatives.  Adjust length attribute for
14634         alternatives.
14635         (movsi_ie): Allow for any FPU.  Adjust length attribute for
14636         alternatives.
14637         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
14638         attribute for alternatives.
14639         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
14640         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
14641         length attribute for alternatives.
14643 2016-05-06  Richard Biener  <rguenther@suse.de>
14645         PR tree-optimization/70960
14646         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
14648 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14650         PR target/52933
14651         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
14652         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
14654 2016-05-06  Marek Polacek  <polacek@redhat.com>
14656         PR sanitizer/70875
14657         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
14659 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14661         PR target/54089
14662         * config/sh/sh.md (*rotcr): Add another variant.
14664 2016-05-06  Richard Biener  <rguenther@suse.de>
14666         PR middle-end/70931
14667         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
14669 2016-05-06  Richard Biener  <rguenther@suse.de>
14671         PR middle-end/70941
14672         * fold-const.c (split_tree): Always convert to the original type
14673         before negating.
14675 2016-05-06  Richard Biener  <rguenther@suse.de>
14677         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
14678         (fwprop_addr): Likewise.
14680 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
14682         PR target/70873
14683         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
14684         New prototype.
14685         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
14686         * config/i386/i386.md (push mem splitter): Use find_constant_src in
14687         the splitter condition.
14688         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
14689         the splitter condition.
14690         (FP float_extend load splitter): Ditto.
14692 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
14694         * config/i386/i386.md (peehole2 patterns): Change true_regnum
14695         to REGNO in all peephole2 patterns.
14696         (post-reload splitters): Change true_regnum to REGNO in
14697         post-reload splitters.
14698         (zero_extend splitters): Use general_reg_operand and
14699         nonimmediate_gr_operand predicates.
14701 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
14703         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
14704         v constraint instead of x.
14706 2016-05-05  Alan Modra  <amodra@gmail.com>
14708         PR target/68662
14709         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
14710         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
14711         TARGET_NO_FP_IN_TOC for -mrelocatable.
14712         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
14713         TARGET_RELOCATABLE test.
14714         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14715         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14716         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14717         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14718         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14719         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14720         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14721         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14722         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
14723         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
14724         Likewise.
14725         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
14726         (rs6000_stack_info): Likewise.
14727         (rs6000_elf_asm_out_constructor): Likewise.
14728         (rs6000_elf_asm_out_destructor): Likewise.
14729         (rs6000_elf_declare_function_name): Likewise.
14730         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
14731         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
14732         Don't define.
14734 2016-05-05  Alan Modra  <amodra@gmail.com>
14736         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
14738 2016-05-05  Alan Modra  <amodra@gmail.com>
14740         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
14741         out-of-line gpr restore for one or two regs if that would add
14742         a save of lr.
14744 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
14746         PR target/70873
14747         * config/i386/i386.md
14748         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
14749         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
14750         as operand 0 predicate.
14751         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
14752         Ditto.
14753         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
14754         Ditto.  Emit the pattern using RTX.
14756         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
14757         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
14758         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
14759         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
14760         Ditto.
14761         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
14762         sse_reg_operand as operand 0 predicate.
14764         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
14765         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
14766         instead of gen_rtx_REG.
14767         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
14768         Ditto.
14770 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
14772         * function.c (emit_use_return_register_into_block): Delete.
14773         (gen_return_pattern): Delete.
14774         (emit_return_into_block): Delete.
14775         (active_insn_between): Delete.
14776         (convert_jumps_to_returns): Delete.
14777         (emit_return_for_exit): Delete.
14778         (thread_prologue_and_epilogue_insns): Delete all code dealing with
14779         simple_return for shrink-wrapped blocks.
14780         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
14781         end of blocks that need one.
14782         (get_unconverted_simple_return): Delete.
14783         (convert_to_simple_return): Delete.
14784         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
14785         (convert_to_simple_return): Ditto.
14787 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
14789         * cfgcleanup.c (bb_is_just_return): New function.
14790         (try_optimize_cfg): Simplify jumps to return, branches to return,
14791         and branches around return.
14793 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
14795         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
14796         branch to a return.
14798 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
14800         PR c++/70906
14801         PR c++/70933
14802         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
14803         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
14804         assert flags & OEP_HASH_CHECK, instead of asserting it
14805         never happens.  Handle TARGET_EXPR.
14806         * fold-const.c (operand_equal_p): For hash verification,
14807         or in OEP_HASH_CHECK into flags.
14809 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
14811         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
14812         comment.
14813         (compute_samebase_partition_bases): Fix typo.
14815 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
14817         * config/i386/sse.md (vec_interleave_highv8sf,
14818         vec_interleave_lowv8sf, vec_interleave_highv4df,
14819         vec_interleave_lowv4df): Remove constraints from expanders.
14821         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
14823 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
14825         * tree-inline.c (expand_call_inline): Fix path dealing with
14826         making lhs of call statement undefined.
14828 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
14830         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
14831         Check availability on NODE, too.
14832         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
14833         (cgraph_node::call_for_symbol_and_aliases): Likewise.
14834         (varpool_node::call_for_symbol_and_aliase): Likewise.
14835         * ipa-pure-const.c (add_new_function): Analyze all bodies.
14836         (propagate_pure_const): Propagate across interposable functions, too.
14837         (skip_function_for_local_pure_const): Do not skip interposable bodies
14838         with aliases.
14839         (pass_local_pure_const::execute): Update.
14841 2016-05-04  Marek Polacek  <polacek@redhat.com>
14843         * doc/invoke.texi: Document -Wdangling-else.
14845 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14847         * config.gcc: Error out when conflicting multilib is detected.  Do not
14848         loop over multilibs since no combination is legal.
14850 2016-05-04  Alan Modra  <amodra@gmail.com>
14852         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
14853         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
14854         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
14855         Align .toc.
14857 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
14859         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
14860         Clean up p5600 comments.
14862 2016-05-04  Richard Biener  <rguenther@suse.de>
14864         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
14865         constructor simplifications.
14866         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
14868 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
14870         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
14871         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
14872         result.set_rtx is null instead of aborting.
14873         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
14874         Always enable.
14875         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
14876         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
14877         *mov<mode>_store_postinc): New patterns.
14879 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
14881         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
14882         as commutative.  Check both conversions are NOP.
14883         ((A & B) OP (C & B)): Remove.
14885 2016-05-04  Alan Modra  <amodra@gmail.com>
14887         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
14889 2016-05-04  Alan Modra  <amodra@gmail.com>
14891         PR target/70866
14892         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
14893         when cr2,3,4 are all fixed regs.
14895 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
14897         PR rtl-optimization/57193
14898         * opts.c (default_options_table): Revert OPT_frename_registers change.
14899         * doc/invoke.texi (-frename-registers, -O2): Likewise.
14901 2016-05-03  Martin Sebor  <msebor@redhat.com>
14903         PR c++/66561
14904         * builtins.c (fold_builtin_FILE): New function.
14905         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
14906         (fold_builtin_0): Call them.
14907         * gimplify.c (gimplify_call_expr): Remove the handling of
14908         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
14910         PR c++/66561
14911         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
14912         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
14913         constants.
14915         PR c++/66639
14916         * doc/extend.texi (Function Names as Strings): Update __func__,
14917         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
14918         constants.
14920 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
14921             Richard Biener  <rguenther@suse.de>
14923         PR tree-optimization/70916
14924         * tree-if-conv.c: Include cfganal.h.
14925         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
14926         and remove_fake_exit_edges around the optimization pass.
14928 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
14930         * cgraph.c (symbol_table::create_edge): Set inline_failed.
14931         (cgraph_edge::make_direct): Likewise.
14932         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
14933         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
14934         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
14935         (CIF_THUNK): New code.
14936         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
14937         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
14938         (compute_inline_parameters): Set inline_failed for thunks.
14939         (inline_analyze_function): Cleanup.
14940         * ipa-inline.c (can_inline_edge_p): Do not deal with
14941         call_stmt_cannot_inline_p.
14942         (can_early_inline_edge_p): Likewise.
14943         (early_inliner): Initialize inline_failed.
14944         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
14946 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
14948         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
14949         from nonimm_ssenomem_operand.
14950         (nonimm_ssenomem_operand): New predicate.
14951         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
14952         as operand 0 predicate.
14953         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
14954         Disable unsupported alternatives using "enabled" attribute.
14955         Use register_ssemem_operand as operand 0 predicate.
14956         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
14958 2016-05-03  Marek Polacek  <polacek@redhat.com>
14960         PR c/70859
14961         * input.c (expansion_point_location): New function.
14962         * input.h (expansion_point_location): Declare.
14964 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
14966         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
14967         occurence with frame_offset_ ones.
14969 2016-05-03  Alan Modra  <amodra@gmail.com>
14971         PR rtl-optimization/70890
14972         * ira.c (combine_and_move_insns): When moving def_insn, remove
14973         equivs on use_insn.
14975 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14977         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
14978         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
14979         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
14980         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
14982 2016-05-03  Alan Modra  <amodra@gmail.com>
14984         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
14985         for SAVE_MULTIPLE/STORE_MULTIPLE.
14987 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
14989         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
14990         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
14992 2016-05-03  Richard Biener  <rguenther@suse.de>
14994         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
14995         default true.
14996         (gimplify_arg): Likewise.
14997         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
14998         re-writing the result to a decl if required.
14999         (internal_get_tmp_var): Add allow_ssa parameter
15000         and override into_ssa with it.
15001         (get_formal_tmp_var): Adjust.
15002         (get_initialized_tmp_var): Add allow_ssa parameter.
15003         (gimplify_arg): Add allow_ssa parameter and avoid generating
15004         SSA names for the result false.
15005         (gimplify_call_expr): If the call may return twice do not
15006         gimplify parameters into SSA.
15007         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
15008         (gimplify_modify_expr): Adjust assert.  For noreturn calls
15009         with a SSA name LHS adjust its def.
15010         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
15011         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
15012         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
15013         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
15014         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
15015         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
15016         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
15017         (optimize_target_teams): Do not allow SSA names for clause operands.
15018         (gimplify_expr): Likewise for where we mark the result addressable.
15019         * passes.def (pass_init_datastructures): Remove.
15020         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
15021         (rewrite_stmt): Likewise.
15022         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
15023         (replace_locals_op): Replace SSA names.
15024         (copy_gimple_seq_and_replace_locals): Init src_cfun.
15025         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
15026         * cgraph.c (release_function_body): Free CFG annotations only
15027         when we have a CFG.  Simplify.
15028         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
15029         force_gimple_operand instead of get_initialized_tmp_var.
15030         * tree-pass.h (make_pass_init_datastructures): Remove.
15031         * tree-ssa.c (execute_init_datastructures): Remove.
15032         (pass_data_init_datastructures): Likewise.
15033         (class pass_init_datastructures): Likewise.
15034         (make_pass_init_datastructures): Likewise.
15035         * omp-low.c (create_omp_child_function): Init SSA data structures.
15036         (grid_expand_target_grid_body): Likewise.
15037         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
15038         name before adding it to names_to_release.
15039         (remove_bb): Always release SSA defs.
15040         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
15041         before dereferencing it.
15042         * cgraphunit.c (init_lowered_empty_function): Always
15043         int SSA data structures.
15044         * tree-ssanames.c (release_defs): Remove assert that we are in
15045         SSA form.
15046         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
15048 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
15049             Uros Bizjak  <ubizjak@gmail.com>
15051         PR rtl-optimization/70467
15052         * config/i386/predicates.md (x86_64_hilo_int_operand,
15053         x86_64_hilo_general_operand): New predicates.
15054         * config/i386/constraints.md (Wd): New constraint.
15055         * config/i386/i386.md (mode attr di): Use Wd instead of e.
15056         (general_hilo_operand): New mode attr.
15057         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
15058         instead of <general_operand>.
15059         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
15060         x86_64_hilo_general_operand instead of <general_operand>.
15062 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
15064         PR tree-optimization/70916
15065         * tree-if-conv.c (constant_or_ssa_name): Removed.
15066         (fold_build_cond_expr): Use is_gimple_val instead of
15067         constant_or_ssa_name.
15069         PR tree-optimization/70916
15070         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
15071         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
15073         PR target/49244
15074         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
15075         (optimize_atomic_bit_test_and): New function.
15076         (pass_fold_builtins::execute): Use it.
15077         * optabs.def (atomic_bit_test_and_set_optab,
15078         atomic_bit_test_and_complement_optab,
15079         atomic_bit_test_and_reset_optab): New optabs.
15080         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
15081         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
15082         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
15083         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
15084         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
15085         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
15086         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
15087         * doc/md.texi (atomic_bit_test_and_set@var{mode},
15088         atomic_bit_test_and_complement@var{mode},
15089         atomic_bit_test_and_reset@var{mode}): Document.
15090         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
15091         atomic_bit_test_and_complement<mode>,
15092         atomic_bit_test_and_reset<mode>): New expanders.
15093         (atomic_bit_test_and_set<mode>_1,
15094         atomic_bit_test_and_complement<mode>_1,
15095         atomic_bit_test_and_reset<mode>_1): New insns.
15097 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
15099         PR rtl-optimization/70687
15100         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
15101         instead of unsigned HOST_WIDE_INT.
15103 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
15105         PR rtl-optimization/44281
15106         * hard-reg-set.h (struct target_hard_regs): New field
15107         x_fixed_nonglobal_reg_set.
15108         (fixed_nonglobal_reg_set): New macro.
15109         * reginfo.c (init_reg_sets_1): Initialize it.
15110         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
15111         of fixed_reg_set.
15112         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
15114 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
15116         PR tree-optimization/56541
15117         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
15118         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
15119         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
15120         (any_complicated_phi): new static variable.
15121         (aggressive_if_conv): delete.
15122         (if_convertible_phi_p): support phis with more than two arguments.
15123         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
15124         critical pred edges.
15125         (ifcvt_split_critical_edges): support phis with more than two
15126         arguments by checking new parameter.  only split critical edges
15127         if needed.
15128         (tree_if_conversion): handle simd pragma marked loop using new
15129         local variable aggressive_if_conv.  check any_complicated_phi.
15131 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
15133         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
15134         before using it.
15136 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
15138         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
15139         cbase.
15141 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
15143         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
15144         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
15145         define_insn_and_split.
15146         (mulsi3_i): New define_insn_and_split.
15147         (mulsi3_call): Convert to define_insn.
15148         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
15149         Remove constraints.
15151 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
15153         * machmode.h (mode_complex): Add support to give the complex mode
15154         for a given mode.
15155         (GET_MODE_COMPLEX_MODE): Likewise.
15156         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
15157         stored by build_complex_type and gfc_build_complex_type instead of
15158         trying to figure out the appropriate mode based on the size. Raise
15159         an assertion error, if the type was not set.
15160         * genmodes.c (struct mode_data): Add field for the complex type of
15161         the given type.
15162         (blank_mode): Likewise.
15163         (make_complex_modes): Remember the complex mode created in the
15164         base type.
15165         (emit_mode_complex): Write out the mode_complex array to map a
15166         type mode to the complex version.
15167         (emit_insn_modes_c): Likewise.
15168         * tree.c (build_complex_type): Set the complex type to use before
15169         calling layout_type.
15170         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
15171         support for __float128 complex datatypes.
15172         (rs6000_hard_regno_mode_ok): Likewise.
15173         (rs6000_setup_reg_addr_masks): Likewise.
15174         (rs6000_complex_function_value): Likewise.
15175         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
15176         __float128 and __ibm128 complex.
15177         (FLOAT128_IBM_P): Likewise.
15178         (ALTIVEC_ARG_MAX_RETURN): Likewise.
15179         * doc/extend.texi (Additional Floating Types): Document that
15180         -mfloat128 must be used to enable __float128.  Document complex
15181         __float128 and __ibm128 support.
15183 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
15185         PR target/49244
15186         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
15187         char/short arguments promoted to int because of promote_prototypes.
15189 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
15191         * config/i386/predicates.md (register_ssemem_operand): New predicate.
15192         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
15193         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
15194         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
15195         alternatives using "enabled" attribute.  Use register_ssemem_operand
15196         as operand 1 predicate.
15197         (*cmpi<unord>xf_i387): Split XFmode pattern from
15198         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
15199         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
15200         *absneg<mode>2_i387.  Disable unsupported alternatives using
15201         "enabled" attribute.
15202         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
15204 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
15206         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
15207         marker.
15208         (oacc_loop_process): Check mask for loop termination.
15210 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
15212         * cif-code.def (CIF_THUNK): Add.
15213         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
15214         accidental change.
15216 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
15218         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
15219         (dump_inline_summary): Dump it.
15220         (fp_expression_p): New predicate.
15221         (estimate_function_body_sizes): Use it.
15222         (inline_merge_summary): Merge fp_expressions.
15223         (inline_read_section): Read fp_expressions.
15224         (inline_write_summary): Write fp_expressions.
15225         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
15226         codegen boundary if either caller or callee is !fp_expressions.
15227         * ipa-inline.h (inline_summary): Add fp_expressions.
15228         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
15229         to fp_expressions be sure the fp generation flags are updated.
15231 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
15233         PR rtl-optimization/70467
15234         * cse.c (cse_insn): Handle no-op MEM moves after folding.
15236         PR rtl-optimization/70467
15237         * ipa-pure-const.c (check_call): Handle internal calls even in
15238         ipa mode like in local mode.
15240 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15242         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
15244 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
15246         * match.pd (X u< X, X u> X): New transformations.
15248 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
15250         * flag-types.h (enum warn_strict_overflow_code): Move ...
15251         * coretypes.h: ... here.
15252         * fold-const.h (fold_overflow_warning): Declare.
15253         * fold-const.c (fold_overflow_warning): Make non-static.
15254         (fold_comparison): Move the transformation of X +- C1 CMP C2
15255         into X CMP C2 -+ C1 ...
15256         * match.pd: ... here.
15257         * gimple-fold.c (fold_stmt_1): Protect with
15258         fold_defer_overflow_warnings.
15260 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
15262         * omp-low.c (struct oacc_loop): Add 'inner' field.
15263         (new_oacc_loop_raw): Initialize it to zero.
15264         (oacc_loop_fixed_partitions): Initialize it.
15265         (oacc_loop_auto_partitions): Partition outermost loop to outermost
15266         available partitioning.
15268 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
15270         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
15271         register_operand.
15272         (umulsidi3): Likewise.
15273         (indirect_jump): Fix jump instruction assembly patterns.
15275 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
15277         PR target/70860
15278         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
15279         (nvptx_function_value): Assert non-NULL cfun.
15281 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
15283         PR rtl-optimization/70886
15284         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
15286         * cselib.h (rtx_equal_for_cselib_1): Declare.
15287         (rtx_equal_for_cselib_p: New inline function.
15288         * cselib.c (rtx_equal_for_cselib_p): Delete.
15289         (rtx_equal_for_cselib_1): Make public.
15291 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
15293         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
15294         (register_mixssei387nonimm_operand): Remove predicate.
15295         * config/i386/i386.md (*fop_<mode>_comm): Merge from
15296         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
15297         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
15298         for TARGET_MIX_SSE_I387 alternatives.
15299         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
15300         Disable unsupported alternatives using "enabled" attribute.  Use
15301         nonimm_ssenomem_operand as operand 1 predicate.  Also check
15302         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
15304 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
15306         * tree.c (cst_and_fits_in_hwi): Simplify.
15308 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
15310         * tree.h (wi::to_wide): New function.
15311         * expr.c (expand_expr_real_1): Use wi::to_wide.
15312         * fold-const.c (int_const_binop_1): Likewise.
15313         (extract_muldiv_1): Likewise.
15315 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
15317         * wide-int.h: Update offset_int and widest_int documentation.
15318         (WI_SIGNED_SHIFT_RESULT): New macro.
15319         (wi::binary_shift): Define signed_shift_result_type for
15320         shifts on offset_int- and widest_int-like types.
15321         (generic_wide_int): Support <<= and >>= if << and >> are supported.
15322         * tree.h (int_bit_position): Use shift operators instead of wi::
15323          shifts.
15324         * alias.c (adjust_offset_for_component_ref): Likewise.
15325         * expr.c (get_inner_reference): Likewise.
15326         * fold-const.c (fold_comparison): Likewise.
15327         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
15328         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
15329         * tree-dfa.c (get_ref_base_and_extent): Likewise.
15330         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
15331         (stmt_kills_ref_p): Likewise.
15332         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
15333         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
15334         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15335         (ao_ref_init_from_vn_reference): Likewise.
15337 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
15339         * wide-int.h: Update offset_int and widest_int documentation.
15340         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
15341         (wi::binary_traits): Allow ordered comparisons between offset_int and
15342         offset_int, between widest_int and widest_int, and between either
15343         of these types and basic C types.
15344         (operator <, <=, >, >=): Define for the same combinations.
15345         * tree.h (tree_int_cst_lt): Use comparison operators instead
15346         of wi:: comparisons.
15347         (tree_int_cst_le): Likewise.
15348         * gimple-fold.c (fold_array_ctor_reference): Likewise.
15349         (fold_nonarray_ctor_reference): Likewise.
15350         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
15351         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
15352         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
15353         * tree-sra.c (completely_scalarize): Likewise.
15354         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
15355         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
15356         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
15357         (check_for_binary_op_overflow): Likewise.
15358         (search_for_addr_array): Likewise.
15359         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
15361 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
15363         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
15364         (arc_save_restore): Likewise.
15365         (arc_dwarf_register_span): Likewise.
15366         (arc_output_pic_addr_const): Initialize suffix variable.
15368 2016-05-02  Martin Liska  <mliska@suse.cz>
15370         * symbol-summary.h (function_summary::function_summary):
15371         Remove checking assert for all cgraph nodes.
15372         (function_summary::get): Check summary_uid.
15373         (symtab_insertion): Check summary_uid.
15375 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
15377         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
15378         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
15379         bmaskn instruction.
15380         (arc_dwarf_register_span): Remove enum keyword.
15381         (compact_memory_operand_p): New function.
15382         * config/arc/arc.h (reg_class): Add code density register classes.
15383         (REG_CLASS_NAMES): Likewise.
15384         (REG_CLASS_CONTENTS): Likewise.
15385         * config/arc/arc.md (*movqi_insn): Add code density instructions.
15386         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
15387         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
15388         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
15389         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
15390         constraints.
15391         (h, Rcd, Rsd, Rzd): New register constraints.
15392         (T): Use compact_memory_operand_p function.
15393         * config/arc/predicates.md (compact_load_memory_operand): Remove.
15395 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
15397         * config/sh/sh.md (*negnegt, *movtt): Remove.
15399 2016-05-02  Marek Polacek  <polacek@redhat.com>
15400             Tom de Vries  <tom@codesourcery.com>
15402         PR tree-optimization/70700
15403         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
15404         bigger than FIRST_REF_NODE.
15406 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
15408         PR target/52898
15409         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
15410         TARGET_CMPEQDI_T.
15411         (prepare_cbranch_operands): Don't use scratch register.  Assume that
15412         function is used when pseudos can be created.
15413         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
15414         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
15415         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
15416         define_expand.  Allow it only when pseudos can be created.
15417         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
15419 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
15421         * config/i386/constraints.md (BC): Only allow -1 operands.
15422         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
15423         Add "enabled" attribute.  Update XI mode attribute calculation.
15424         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
15425         (*movoi_internal_avx): Update XI mode attribute calculation.
15426         (*movti_internal): Ditto.
15428 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
15430         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
15431         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
15433 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
15435         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
15436         statement on instruction code.  Remove trailing spaces.
15437         (altivec_expand_stv_builtin): Likewise.
15439 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
15441         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
15442         (TARGET_FPU_DOUBLE): Simplify.
15443         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
15444         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
15445         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
15446         with 'TARGET_FPU_DOUBLE'.
15447         * config/sh/sh.md: Likewise.
15449 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
15451         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
15452         SH_DIV_STR_FOR_SIZE): Remove.
15453         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
15454         SH_DIV_STR_FOR_SIZE): Remove.
15456 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
15458         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
15459         logical_reg_operand): Delete.
15460         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
15461         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
15462         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
15463         match_operand and match_test.
15464         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
15465         variables on their first use.  Return bool values.
15466         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
15467         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
15468         arith_reg_operand for input operand.  Remove empty constraints.
15469         (xorsi3): Delete.
15470         (*xorsi3_compact): Rename to xorsi3.
15471         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
15472         (*zero_extend<mode>si2_disp_mem): Update comment.
15473         (mov_nop): Delete.
15475 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
15477         * config/sh/t-sh: Remove SH5 support.
15478         * config.gcc: Likewise.
15479         * configure: Likewise.
15481 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15483         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
15485 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
15487         * config/sh/sh.c (register_sh_passes, sh_option_override,
15488         sh_print_operand, prepare_move_operands,
15489         sh_can_follow_jump): Remove TARGET_SH1 checks.
15490         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
15491         PROMOTE_MODE): Likewise.
15492         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
15493         movdi): Likewise.
15495 2016-04-30  Alan Modra  <amodra@gmail.com>
15497         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
15498         restoring when fixed_reg_p, but allow out-of-line or stmw save.
15499         Check for user regs later to avoid unnecessary looping over regs.
15500         Merge user reg check with non-saved reg check.  Don't force
15501         inline VR restore when static chain used.
15502         (rs6000_frame_related): Omit eh_frame info for user regs when
15503         saving.
15504         (fixed_regs_p): Delete.
15506 2016-04-30  Alan Modra  <amodra@gmail.com>
15508         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
15509         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
15510         Update all uses.
15512 2016-04-30  Alan Modra  <amodra@gmail.com>
15514         PR target/69645
15515         * config/rs6000/rs6000.c (fixed_reg_p): New function.
15516         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
15517         Update all uses.
15519 2016-04-30  Alan Modra  <amodra@gmail.com>
15521         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
15522         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
15523         flag_pic test for Darwin.
15525 2016-04-30  Alan Modra  <amodra@gmail.com>
15527         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
15528         throw_calls_crossed.
15529         (REG_FREQ_CALLS_CROSSED): Delete.
15530         (REG_N_THROWING_CALLS_CROSSED): Delete.
15531         * regstat.c (regstat_bb_compute_ri): Don't calculate
15532         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
15533         (dump_reg_info): Don't print call cross frequency.
15534         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
15535         and REG_N_THROWING_CALLS_CROSSED.
15537 2016-04-30  Alan Modra  <amodra@gmail.com>
15539         * regs.h (struct reg_info_t): Delete live_length.
15540         (REG_LIVE_LENGTH): Delete macro.
15541         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
15542         local_live, local_processed and local_live_last_luid params.
15543         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
15544         Formatting fixes.
15545         (regstat_compute_ri): Adjust for above.  Don't set
15546         REG_LIVE_LENGTH.
15547         (dump_reg_info): Don't print live length.
15548         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
15549         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
15550         Localize loop_depth var.
15552 2016-04-30  Alan Modra  <amodra@gmail.com>
15554         * ira.c (enum valid_equiv): New.
15555         (validate_equiv_mem): Return enum.
15556         (update_equiv_mem): Create replacement in more cases.
15557         (add_store_equivs): Update validate_equiv_mem call.
15559 2016-04-30  Alan Modra  <amodra@gmail.com>
15561         * ira.c (combine_and_move_insns): Rather than scanning insns,
15562         use DF infrastucture to find use and def insns.
15564 2016-04-30  Alan Modra  <amodra@gmail.com>
15566         ira.c (combine_and_move_insns): Move invariant conditions..
15567         (ira.c): ..to here.  Call combine_and_move_insns before
15568         add_store_equivs.  Call grow_reg_equivs later.  Allocate
15569         req_equiv later using max_reg_num() rather than global max_regno.
15570         (contains_replace_regs): Delete.
15571         (add_store_equivs): Remove contains_replace_regs test.
15573 2016-04-30  Alan Modra  <amodra@gmail.com>
15575         * ira.c (struct equiv_mem_data): New.
15576         (equiv_mem, equiv_mem_modified): Delete static vars.
15577         (validate_equiv_mem_from_store): Use "data" param to communicate..
15578         (validate_equiv_mem): ..from here.
15580 2016-04-30  Alan Modra  <amodra@gmail.com>
15582         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
15583         split out from..
15584         (update_reg_equivs): ..here.  Move allocation and freeing of
15585         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
15586         end_alias_analysis to..
15587         (ira): ..here.
15589 2016-04-30  Alan Modra  <amodra@gmail.com>
15591         * ira.c (pdx_subregs): Delete.
15592         (struct equivalence): Add pdx_subregs field.
15593         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
15594         pdx_subregs access.
15595         (update_equiv_regs): Don't create or free pdx_subregs.  Update
15596         pdx_subregs access.
15598 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15600         * config/rs6000/altivec.h: Change definitions of vec_xl and
15601         vec_xst.
15602         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
15603         (LD_ELEMREV_V2DI): New.
15604         (LD_ELEMREV_V4SF): New.
15605         (LD_ELEMREV_V4SI): New.
15606         (LD_ELEMREV_V8HI): New.
15607         (LD_ELEMREV_V16QI): New.
15608         (ST_ELEMREV_V2DF): New.
15609         (ST_ELEMREV_V2DI): New.
15610         (ST_ELEMREV_V4SF): New.
15611         (ST_ELEMREV_V4SI): New.
15612         (ST_ELEMREV_V8HI): New.
15613         (ST_ELEMREV_V16QI): New.
15614         (XL): New.
15615         (XST): New.
15616         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15617         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
15618         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
15619         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
15620         (altivec_expand_builtin): Add handling for
15621         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
15622         (rs6000_invalid_builtin): Add error-checking for
15623         RS6000_BTM_P9_VECTOR.
15624         (altivec_init_builtins): Define builtins used to implement vec_xl
15625         and vec_xst.
15626         (rs6000_builtin_mask_names): Define power9-vector.
15627         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
15628         (RS6000_BTM_P9_VECTOR): Define.
15629         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
15630         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
15631         (vsx_ld_elemrev_v2df): Likewise.
15632         (vsx_ld_elemrev_v4sf): Likewise.
15633         (vsx_ld_elemrev_v4si): Likewise.
15634         (vsx_ld_elemrev_v8hi): Likewise.
15635         (vsx_ld_elemrev_v16qi): Likewise.
15636         (vsx_st_elemrev_v2df): Likewise.
15637         (vsx_st_elemrev_v2di): Likewise.
15638         (vsx_st_elemrev_v4sf): Likewise.
15639         (vsx_st_elemrev_v4si): Likewise.
15640         (vsx_st_elemrev_v8hi): Likewise.
15641         (vsx_st_elemrev_v16qi): Likewise.
15642         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
15643         grammar.
15645 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
15647         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
15648         out into ...
15649         (simplify_control_stmt_condition_1): ... here.  Recurse into
15650         BIT_AND_EXPRs and BIT_IOR_EXPRs.
15652 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
15654         PR target/69810
15655         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
15656         (zero_extendqi<mode>2_dot): Revert earlier conversion from
15657         define_insn_and_split to define_insn.
15658         (zero_extendqi<mode>2_dot2): Same.
15659         (extendqi<mode>2_dot): Same.
15660         (extendqi<mode>2_dot2): Same.
15662 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15664         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
15665         (probe_stack): New expander.
15666         (probe_stack_<mode>): New insn pattern.
15668 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15670         * config/i386/i386.md
15671         (operations with memory inputs setting flags peephole2):
15672         Remove uneeded REG_P checks.  Cleanup pattern generation.
15674 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
15676         * tree-vect-loop.c (vect_transform_loop): Fix
15677         nb_iterations_upper_bound computation for vectorized loop.
15679 2016-04-29  Marek Polacek  <polacek@redhat.com>
15680             Jakub Jelinek  <jakub@redhat.com>
15682         PR sanitizer/70342
15683         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
15684         TARGET_EXPR_SLOT as a base.
15686 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
15688         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
15689         with 'rCm2' constraints to limit possible immediate size.
15690         (*load_zeroextendqisi_update): Likewise.
15691         (*load_signextendqisi_update): Likewise.
15692         (*loadhi_update): Likewise.
15693         (*load_zeroextendhisi_update): Likewise.
15694         (*load_signextendhisi_update): Likewise.
15695         (*loadsi_update): Likewise.
15696         (*loadsf_update): Likewise.
15698 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15700         * config/i386/predicates.md (constm1_operand): Fix comparison.
15702 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
15704         * testsuite/gcc.target/arc/ieee_eq.c: New test.
15706 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
15708         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
15709         remaining SH5 related settings.
15710         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
15711         shmedia_prepare_call_address): Delete.
15712         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
15713         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
15714         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
15715         UNSUPPORTED_SH2A): Remove m5 checks.
15716         (sh_divide_strategy_e): Remove SH5 division strategies.
15717         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
15718         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
15720 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15722         * config/s390/s390.c (s390_rtx_costs): Update documentation.
15724 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15726         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
15727         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
15728         Change lder to ldr.
15729         * config/s390/vector.md ("mov<mode>"): Likewise.
15731 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
15733         * config/s390/constraints.md ("U", "W"): Invoke
15734         s390_mem_constraint with "ZR" and "ZT".
15735         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
15736         addresses when using LRA.  Accept also short displacements for S
15737         and T constraints.  Do not check for long displacement target for
15738         S and T constraints.
15739         (s390_mem_constraint): Remove handling of U and W constraints.
15740         * config/s390/s390.md (various patterns): Remove the short
15741         displacement constraints (Q and R) if a long displacement
15742         constraint is present.  Add longdisp as required CPU capability.
15743         * config/s390/vector.md: Likewise.
15744         * config/s390/vx-builtins.md: Likewise.
15746 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15748         PR target/60040
15749         * reload1.c (reload): Call finish_spills before
15750         restarting reload loop. Skip select_reload_regs
15751         if update_eliminables_and_spill returns true.
15753 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
15755         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
15756         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
15757         (umulhisi3_imm): Update predicates and constraint letters.
15758         (umulhisi3_reg): Declare instruction as commutative.
15759         * config/arc/constraints.md (J12, J16): New constraints.
15760         * config/arc/predicates.md (short_unsigned_const_operand): New
15761         predicate.
15762         (arc_short_operand): Likewise.
15763         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
15765 2016-04-29  Richard Biener  <rguenther@suse.de>
15767         PR tree-optimization/13962
15768         PR tree-optimization/65686
15769         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
15770         * tree-ssa-alias.c (ptrs_compare_unequal): New function
15771         using PTA to compare pointers.
15772         * match.pd: Add pattern for pointer equality compare simplification
15773         using ptrs_compare_unequal.
15775 2016-04-29  Richard Biener  <rguenther@suse.de>
15777         * stor-layout.c (layout_type): Do not build a pointer-to-element
15778         type for arrays.
15780 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15782         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
15783         Use SWI mode iterator.  Use general_reg_operand predicate.
15784         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
15785         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
15786         predicates.
15788 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
15790         PR middle-end/70843
15791         * fold-const.c (operand_equal_p): Don't verify hash value equality
15792         if arg0 == arg1.
15793         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
15794         and OMP_CLAUSE.
15796 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
15798         PR target/70858
15799         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
15800         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
15801         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
15802         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
15803         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
15805 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
15807         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
15808         to info.  Don't initialize separate fields to 0.  Clean up
15809         formatting a bit.
15811 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
15813         * config/i386/i386.md (peephole2s for operations with memory inputs):
15814         Use SWI mode iterator.
15815         (peephole2s for operations with memory outputs): Ditto.
15816         Do not check for stack checking probe.
15818         (probe_stack): Remove expander.
15820 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
15821             Andrew Burgess  <andrew.burgess@embecosm.com>
15823         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
15824         operands as 32-bits.
15826 2016-04-28  Jason Merrill  <jason@redhat.com>
15828         * gdbinit.in: Skip line-map.h.
15830 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
15831             Andrew Burgess  <andrew.burgess@embecosm.com>
15833         * config/arc/arc.c (arc_conditional_register_usage): Take
15834         TARGET_RRQ_CLASS into account.
15835         (arc_print_operand): Support printing 'p' and 's' operands.
15836         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
15837         as 0.
15838         (TARGET_RRQ_CLASS): Define.
15839         (IS_POWEROF2_OR_0_P): Define.
15840         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
15841         alternatives.
15842         (*tst_movb): New define_insn.
15843         (*tst): Avoid recognition if it could prevent '*tst_movb'
15844         combination; replace c/CnL with c/Chs alternative.
15845         (*tst_bitfield_tst): New define_insn.
15846         (*tst_bitfield_asr): New define_insn.
15847         (*tst_bitfield): New define_insn.
15848         (andsi3_i): Add Rrq variant.
15849         (extzv): New define_expand.
15850         (insv): New define_expand.
15851         (*insv_i): New define_insn.
15852         (*movb): New define_insn.
15853         (*movb_signed): New define_insn.
15854         (*movb_high): New define_insn.
15855         (*movb_high_signed): New define_insn.
15856         (*movb_high_signed + 1): New define_split pattern.
15857         (*mrgb): New define_insn.
15858         (*mrgb + 1): New define_peephole2 pattern.
15859         (*mrgb + 2): New define_peephole2 pattern.
15860         * config/arc/arc.opt (mbitops): New option for nps400, uses
15861         TARGET_NPS_BITOPS_DEFAULT.
15862         * config/arc/constraints.md (q): Make register class conditional.
15863         (Rrq): New register constraint.
15864         (Chs): New constraint.
15865         (Clo): New constraint.
15866         (Chi): New constraint.
15867         (Cbf): New constraint.
15868         (Cbn): New constraint.
15869         (C18): New constraint.
15870         (Cbi): New constraint.
15872 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
15874         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
15875         dst->popcount.
15876         (bitmap_intersection_of_preds): Ditto.
15877         (bitmap_union_of_succs): Ditto.
15878         (bitmap_union_of_preds): Ditto.
15879         * sbitmap.c (do_popcount): Delete.
15880         (BITMAP_DEBUGGING): Delete.
15881         (sbitmap_verify_popcount): Delete.
15882         (sbitmap_alloc): Don't initialize the popcount field.
15883         (sbitmap_alloc_with_popcount): Delete.
15884         (sbitmap_resize): Don't resize the popcount array.
15885         (sbitmap_vector_alloc): Don't initialize the popcount field.
15886         (bitmap_copy): Don't copy the popcount array.
15887         (bitmap_clear): Don't clear the popcount array.
15888         (bitmap_clear): Delete the popcount array handling.
15889         (bitmap_ior_and_compl): Delete the popcount assert.
15890         (bitmap_not): Ditto.
15891         (bitmap_and_compl): Ditto.
15892         (bitmap_and): Delete the popcount array handling.
15893         (bitmap_xor): Ditto.
15894         (bitmap_ior): Ditto.
15895         (bitmap_or_and): Delete the popcount assert.
15896         (bitmap_and_or): Ditto.
15897         (popcount_table): Delete.
15898         (sbitmap_elt_popcount): Delete.
15899         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
15900         (bitmap_set_bit): Delete the popcount assert.
15901         (bitmap_clear_bit): Ditto.
15902         (sbitmap_free): Don't free the popcount array.
15903         (sbitmap_alloc_with_popcount): Delete declaration.
15904         (sbitmap_popcount): Ditto.
15906 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
15907             Andrew Burgess  <andrew.burgess@embecosm.com>
15909         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
15910         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
15911         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
15912         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
15913         * config/arc/arc.opt (mcmem): New option.
15914         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
15915         supply length for r/m alternative.
15916         (*extendqisi2_ac): Likewise.
15917         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
15918         r/Uex alternative.
15919         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
15920         (movhi_insn): Likewise.
15921         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
15922         (*zero_extendqihi2_i): Add r/Ucm alternative.
15923         (*zero_extendqisi2_ac): Likewise.
15924         (*zero_extendhisi2_i): Likewise.
15925         * config/arc/constraints.md (Uex): New memory constraint.
15926         (Ucm): New define_constraint.
15927         * config/arc/predicates.md (long_immediate_loadstore_operand):
15928         Return 0 for MEM with cmem_address address.
15929         (cmem_address_0): New predicates.
15930         (cmem_address_1): Likewise.
15931         (cmem_address_2): Likewise.
15932         (cmem_address): Likewise.
15934 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
15936         * config/rs6000/rs6000.c (machine_function): Rename
15937         insn_chain_scanned_p to spe_insn_chain_scanned_p.
15938         (rs6000_stack_info): Adjust.
15940 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
15941             Andrew Burgess  <andrew.burgess@embecosm.com>
15943         * config/arc/constraints.md (Usd): Convert to define_constraint.
15944         (Us<): Likewise.
15945         (Us>): Likewise.
15947 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
15949         PR target/70821
15950         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
15951         Add new peephole2 where the first insn is *mov<mode>_or instead of
15952         *mov<mode>_internal.
15954 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
15956         * tracer.c (bb_seen): Make static.
15958 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
15960         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
15961         support, setup defaults.
15962         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
15963         * config/arc/arc.c (arc_init): Add NPS400 support.
15964         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
15965         (TARGET_ARC700): NPS400 is also an ARC700.
15966         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
15968 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
15970         PR target/70668
15971         * config/nds32/nds32.md (casesi): Don't access the operands array
15972         out of bounds.
15974 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
15976         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
15977         (or $-1,reg peephole2): Ditto.
15978         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
15980 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
15982         * doc/extend.texi (Common Function Attributes) [optimize]:
15983         Discourage use of the optimize attribute.
15985 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
15987         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
15988         special case builtin.
15989         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
15990         ALTIVEC_BUILTIN_VEC_ADDE.
15991         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
15992         support for ALTIVEC_BUILTIN_VEC_ADDE.
15993         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
15994         for __builtin_vec_adde.
15996 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
15998         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
15999         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
16001 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16003         PR testsuite/70595
16004         * doc/sourcebuild.texi (Effective-Target Keywords, Other
16005         attributes): Document cilkplus_runtime.
16007 2016-04-28  Martin Jambor  <mjambor@suse.cz>
16009         * tree-cfg.c (verify_expr): Verify that local declarations belong to
16010         this function.  Call verify_expr on MEM_REFs and bases of other
16011         handled_components.
16013 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16015         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
16016         for WORD_REGISTER_OPERATIONS to runtime check.
16018 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16020         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
16022 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16024         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
16025         big-endian compilation.
16026         * config/arc/arc.md (addf3): Likewise.
16027         (subdf3): Likewise.
16028         (muldf3): Likewise.
16030 2016-04-28  Richard Biener  <rguenther@suse.de>
16032         PR tree-optimization/70840
16033         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
16034         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
16035         Mark x * pow(x,c) -> pow(x,c+1) commutative.
16036         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
16038 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16040         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
16041         and explain why in a comment.
16043 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16045         * config/arc/arc.md (cpu_facility): Add fpx variant.
16046         (subdf3): Prohibit use reverse sub when assist operations option
16047         is enabled.
16048         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
16049         instructions only when FPX is enabled.
16050         * testsuite/gcc.target/arc/trsub.c: New test.
16052 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
16054         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
16055         mult_operator when calculating "type" attribute.
16056         (*fop_<mode>_1_i387): Ditto.
16057         (*fop_xf_1_i387): Ditto.
16058         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
16059         Use std::swap to swap operands.  Use RTL expressions to generate
16060         converted pattern.
16062 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16063             Joern Rennecke  <joern.rennecke@embecosm.com>
16065         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
16066         declaration.
16067         (emit_pic_move): Remove.
16068         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
16069         * config/arc/arc.c (emit_pic_move): Removed.
16070         (TARGET_HAVE_TLS): Define.
16071         (arc_conditional_register_usage): Test for arc_tp_regno.
16072         (arc_print_operand, arc_print_operand_address): Handle TLS
16073         unspecs.
16074         (arc_needs_pcl_p): New function.
16075         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
16076         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
16077         (arc_raw_symbolic_reference_mentioned_p): Likewise.
16078         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
16079         (arc_legitimize_tls_address): Likewise.
16080         (DTPOFF_ZERO_SYM): Define.
16081         (arc_legitimize_pic_address): Make it static, handle TLS cases.
16082         (arc_output_pic_addr_const): Print TLS unspecs.
16083         (prepare_pic_move): New function, replaces emit_pic_move.
16084         (arc_legitimate_constant_p): Handle TLS unspecs.
16085         (arc_legitimate_address_p): Likewise.
16086         (arc_rewrite_small_data_p): Use assert for TLS constants.
16087         (prepare_move_operands): Use prepare_pic_move.
16088         (arc_legitimize_address): Legitimize tls addresses.
16089         (arc_epilogue_uses): Check for arc_tp_regno.
16090         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
16091         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
16092         Define.
16093         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
16094         Likewise.
16095         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
16096         %(arc_tls_extra_start_spec).
16097         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
16098         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
16099         (EH_USES): Define.
16100         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
16101         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
16102         (UNSPEC_TLS_OFF): Add.
16103         (R10_REG): Define.
16104         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
16105         (get_thread_pointersi): New patterns.
16106         * config/arc/arc.opt (mtp-regno): New option.
16107         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
16108         (move_dest_operand): Likewise.
16109         * configure: Regenerate.
16110         * configure.ac: Add arc*-*-* case to test for tls.
16111         * doc/invoke.texi (ARC options): Document mtp-regno.
16113 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16115         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
16116         the new ARC HS SIMD instructions.
16117         (arc_preferred_simd_mode): New function.
16118         (arc_autovectorize_vector_sizes): Likewise.
16119         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
16120         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
16121         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
16122         (arc_init_builtins): Add new SIMD builtin types.
16123         (arc_split_move): Handle 64 bit vector moves.
16124         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
16125         (TARGET_PLUS_QMACW): Define.
16126         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
16127         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
16128         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
16129         (VSUBADD4H): New builtins.
16130         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
16131         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
16133 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
16134             Matthias Klose  <doko@debian.org>
16136         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
16138 2016-04-28  Richard Biener  <rguenther@suse.de>
16140         PR middle-end/70777
16141         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
16142         canonicalization.
16144 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
16146         * common/config/sh/sh-common.c: Remove SH5 support.
16147         * config/sh/constraints.md: Likewise.
16148         * config/sh/config/sh/elf.h: Likewise.
16149         * config/sh/linux.h: Likewise.
16150         * config/sh/netbsd-elf.h: Likewise.
16151         * config/sh/predicates.md: Likewise.
16152         * config/sh/sh-c.c: Likewise.
16153         * config/sh/sh-protos.h: Likewise.
16154         * config/sh/sh.c: Likewise.
16155         * config/sh/sh.h: Likewise.
16156         * config/sh/sh.md: Likewise.
16157         * config/sh/sh.opt: Likewise.
16158         * config/sh/sync.md: Likewise.
16159         * config/sh/sh64.h: Delete.
16160         * config/sh/shmedia.h: Likewise.
16161         * config/sh/shmedia.md: Likewise.
16162         * config/sh/sshmedia.h: Likewise.
16163         * config/sh/t-netbsd-sh5-64: Likewise.
16164         * config/sh/t-sh64: Likewise.
16165         * config/sh/ushmedia.h: Likewise.
16167 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
16169         * config/i386/i386.md (sign_extend to memory peephole2s): Use
16170         general_reg_operand instead of register_operand predicate.
16172 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16174         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
16176 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
16178         * match.pd (A - B > A, A + B < A): New transformations.
16180 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
16182         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
16183         which defaults to true.  Emit an outer pair of parentheses only if
16184         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
16185         don't emit parentheses for the right-hand operand.
16187 2016-04-27  Jeff Law  <law@redhat.com>
16189         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
16191 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16193         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
16194         (altivec_lvx_<mode>_internal): Document.
16195         (altivec_lvx_<mode>_2op): New define_insn.
16196         (altivec_lvx_<mode>_1op): Likewise.
16197         (altivec_lvx_<mode>_2op_si): Likewise.
16198         (altivec_lvx_<mode>_1op_si): Likewise.
16199         (altivec_stvx_<mode>): Remove.
16200         (altivec_stvx_<mode>_internal): Document.
16201         (altivec_stvx_<mode>_2op): New define_insn.
16202         (altivec_stvx_<mode>_1op): Likewise.
16203         (altivec_stvx_<mode>_2op_si): Likewise.
16204         (altivec_stvx_<mode>_1op_si): Likewise.
16205         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16206         Expand vec_ld and vec_st during parsing.
16207         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
16208         changes.
16209         (altivec_expand_stvx_be): Likewise.
16210         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
16211         address-masking behavior in RTL.
16212         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
16213         address-masking behavior in RTL.
16214         (altivec_expand_builtin): Change builtin code arguments for calls
16215         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
16216         (insn_is_swappable_p): Avoid incorrect swap optimization in the
16217         presence of lvx/stvx patterns.
16218         (alignment_with_canonical_addr): New function.
16219         (alignment_mask): Likewise.
16220         (find_alignment_op): Likewise.
16221         (recombine_lvx_pattern): Likewise.
16222         (recombine_stvx_pattern): Likewise.
16223         (recombine_lvx_stvx_patterns): Likewise.
16224         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
16225         stvx patterns from expand.
16226         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
16227         expansions.
16228         (vector_altivec_store_<mode>): Likewise.
16230 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
16232         * config/aarch64/aarch64.md
16233         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
16234         remove the "fp" attributes.
16235         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
16236         add the "simd" attributes.
16237         (*movdf_aarch64): Likewise.
16238         (*movtf_aarch64): Remove the "fp" attributes.
16239         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
16240         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
16242 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
16244         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
16245         rtx to rtx_code_label *.
16246         * rtl.h (maybe_set_first_label_num): Likewise.
16248 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
16250         * df-core.c (df_add_problem): Make the problem param be const.
16251         (df_remove_problem): Make local "problem" be const.
16252         * df-problems.c (problem_RD): Make const.
16253         (problem_LR): Likewise.
16254         (problem_LIVE): Likewise.
16255         (problem_MIR): Likewise.
16256         (problem_CHAIN): Likewise.
16257         (problem_WORD_LR): Likewise.
16258         (problem_NOTE): Likewise.
16259         (problem_MD): Likewise.
16260         * df-scan.c (problem_SCAN): Likewise.
16261         * df.h (struct df_problem): Make field "dependent_problem" be
16262         const.
16263         (struct dataflow): Likewise for field "problem".
16264         (df_add_problem): Make param const.
16266 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
16268         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
16269         inter-unit moves to/from vector registers are enabled.  Do not disable
16270         for TARGET_MMX.
16272 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
16274         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
16275         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
16276         #define to...
16277         (enum df_problem_id): ...this new enum.
16278         (struct df_problem): Convert field "id" from "int" to
16279         enum df_problem_id.
16281 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
16283         * rtl.def: Update comment for "things in the instruction chain" to
16284         reflect the removal of the leading "i" field for INSN_UID in
16285         r210360.  Fix bogus apostrophe.
16287 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
16289         * config/i386/i386.md
16290         (lea arith with mem operand + setcc peephole2): Set operator mode.
16292 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
16294         PR target/70155
16295         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
16296         (dimode_scalar_to_vector_candidate_p): This.
16297         (timode_scalar_to_vector_candidate_p): New function.
16298         (scalar_to_vector_candidate_p): Likewise.
16299         (timode_check_non_convertible_regs): Likewise.
16300         (timode_remove_non_convertible_regs): Likewise.
16301         (remove_non_convertible_regs): Likewise.
16302         (remove_non_convertible_regs): Renamed to ...
16303         (dimode_remove_non_convertible_regs): This.
16304         (scalar_chain::~scalar_chain): Make it virtual.
16305         (scalar_chain::compute_convert_gain): Make it pure virtual.
16306         (scalar_chain::mark_dual_mode_def): Likewise.
16307         (scalar_chain::convert_insn): Likewise.
16308         (scalar_chain::convert_registers): Likewise.
16309         (scalar_chain::add_to_queue): Make it protected.
16310         (scalar_chain::emit_conversion_insns): Likewise.
16311         (scalar_chain::replace_with_subreg): Likewise.
16312         (scalar_chain::replace_with_subreg_in_insn): Likewise.
16313         (scalar_chain::convert_op): Likewise.
16314         (scalar_chain::convert_reg): Likewise.
16315         (scalar_chain::make_vector_copies): Likewise.
16316         (scalar_chain::convert_registers): New pure virtual function.
16317         (class dimode_scalar_chain): New class.
16318         (class timode_scalar_chain): Likewise.
16319         (scalar_chain::mark_dual_mode_def): Renamed to ...
16320         (dimode_scalar_chain::mark_dual_mode_def): This.
16321         (timode_scalar_chain::mark_dual_mode_def): New function.
16322         (timode_scalar_chain::convert_insn): Likewise.
16323         (dimode_scalar_chain::convert_registers): Likewise.
16324         (scalar_chain::compute_convert_gain): Renamed to ...
16325         (dimode_scalar_chain::compute_convert_gain): This.
16326         (scalar_chain::replace_with_subreg): Renamed to ...
16327         (dimode_scalar_chain::replace_with_subreg): This.
16328         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
16329         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
16330         (scalar_chain::make_vector_copies): Renamed to ...
16331         (dimode_scalar_chain::make_vector_copies): This.
16332         (scalar_chain::convert_reg): Renamed to ...
16333         (dimode_scalar_chain::convert_reg ): This.
16334         (scalar_chain::convert_op): Renamed to ...
16335         (dimode_scalar_chain::convert_op): This.
16336         (scalar_chain::convert_insn): Renamed to ...
16337         (dimode_scalar_chain::convert_insn): This.
16338         (scalar_chain::convert): Call convert_registers.
16339         (convert_scalars_to_vector): Change to scalar_chain pointer to
16340         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
16341         in 32-bit mode.  Delete scalar_chain pointer.  Call
16342         free_dominance_info in 64-bit mode.
16343         (pass_stv::gate): Remove TARGET_64BIT check.
16344         (ix86_option_override): Put the 64-bit STV pass before the CSE
16345         pass.
16347 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
16349         * dwarf2out.h (struct dw_loc_descr_node): Remove the
16350         dw_loc_frame_offset field.
16351         * dwarf2out.c (new_loc_descr): Likewise.
16352         (resolve_args_picking_1): Turn the VISITED hash set into a
16353         FRAME_OFFSET hash map. Use it to associate a frame offset to
16354         visited nodes. Remove uses of the CHECKING_P macro.
16355         (resolve_args_picking): Update call to resolve_args_picking_1.
16357 2016-04-27  Martin Liska  <mliska@suse.cz>
16359         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
16360         (free_loop_data): Release vuses of groups.
16362 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
16364         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
16365         instead of redundant use_id and boolean have_use_for.
16366         (struct iv_use): Change sub_id into group_id.  Remove field next.
16367         Move fields: related_cands, n_map_members, cost_map and selected
16368         to ...
16369         (struct iv_group): ... here.  New structure.
16370         (struct iv_common_cand): Use structure declaration directly.
16371         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
16372         (MAX_CONSIDERED_USES): Rename macro to ...
16373         (MAX_CONSIDERED_GROUPS): ... here.
16374         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
16375         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
16376         (dump_uses): Rename to ...
16377         (dump_groups): ... here.  Update all uses.
16378         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
16379         (find_induction_variables): Refactor format of dump information.
16380         (record_sub_use): Delete.
16381         (record_use): Update all uses.
16382         (record_group): New function.
16383         (record_group_use, find_interesting_uses_op): Call above functions.
16384         Update all uses.
16385         (find_interesting_uses_cond): Ditto.
16386         (group_compare_offset): New function.
16387         (split_all_small_groups): Rename to ...
16388         (split_small_address_groups_p): ... here.  Update all uses.
16389         (split_address_groups):  Update all uses.
16390         (find_interesting_uses): Refactor format of dump information.
16391         (add_candidate_1): Update all uses.  Remove redundant check on iv,
16392         base and step.
16393         (add_candidate, record_common_cand): Remove redundant assert.
16394         (add_iv_candidate_for_biv): Update use.
16395         (add_iv_candidate_derived_from_uses): Update all uses.
16396         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
16397         (alloc_use_cost_map): Ditto.
16398         (set_use_iv_cost, get_use_iv_cost): Rename to ...
16399         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
16400         (determine_use_iv_cost_generic): Ditto.
16401         (determine_group_iv_cost_generic): Ditto.
16402         (determine_use_iv_cost_address): Ditto.
16403         (determine_group_iv_cost_address): Ditto.
16404         (determine_use_iv_cost_condition): Ditto.
16405         (determine_group_iv_cost_cond): Ditto.
16406         (determine_use_iv_cost): Ditto.
16407         (determine_group_iv_cost): Ditto.
16408         (set_autoinc_for_original_candidates): Update all uses.
16409         (find_iv_candidates): Update all uses.  Refactor dump information.
16410         (determine_use_iv_costs): Ditto.
16411         (determine_iv_costs): Ditto.
16412         (iv_ca_cand_for_use): Rename to ...
16413         (iv_ca_cand_for_group): ... here.  Update all uses.
16414         (iv_ca_add_use, iv_ca_add_group): Ditto.
16415         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
16416         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
16417         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
16418         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
16419         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
16420         (create_new_iv, adjust_iv_update_pos): Ditto.
16421         (rewrite_use_address): Delete.
16422         (rewrite_use_address_1): Rename to ...
16423         (rewrite_use_address): ... here.
16424         (rewrite_use_compare): Update all uses.
16425         (rewrite_use): Delete.
16426         (rewrite_uses): Rename to ...
16427         (rewrite_groups): ... here.  Update all uses.
16428         (remove_unused_ivs, free_loop_data): Update all uses.
16429         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
16431 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16433         * rtlanal.c (nonzero_bits1): Convert preprocessor check
16434         for WORD_REGISTER_OPERATIONS to runtime check.
16436 2016-04-27  Richard Biener  <rguenther@suse.de>
16438         PR ipa/70760
16439         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
16440         aggregate_value_p to determine if a function result is
16441         returned by reference.
16442         (ipa_pta_execute): Functions having their address taken are
16443         not automatically nonlocal.
16445 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
16447         PR sanitizer/70683
16448         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
16449         * fold-const.c (operand_equal_p): If flag_checking and
16450         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
16451         and if it returns non-zero, assert iterative_hash_expr on both
16452         args is the same.
16454 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
16456         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
16458 2016-04-27  Nick Clifton  <nickc@redhat.com>
16460         PR middle-end/49889
16461         * varasm.c (merge_weak): Generate an error if an attempt is made
16462         to convert a non-weak static function into a weak, public function.
16464 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16466         * params.def (MAX_PARTITION_SIZE): New param.
16467         * doc/invoke.texi: Document lto-max-partition.
16469 2016-04-27  Richard Biener  <rguenther@suse.de>
16471         PR ipa/70785
16472         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
16473         function cummulating used_from_other_partition, externally_visible
16474         and force_output from aliases.
16475         (refered_from_nonlocal_var): Likewise.
16476         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
16477         node flags properly.
16479 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
16481         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
16482         (-Wmemset-elt-size): New item.
16484 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
16486         PR ada/70759
16487         * stor-layout.h (internal_reference_types): Delete.
16488         * stor-layout.c (reference_types_internal): Likewise.
16489         (internal_reference_types): Likewise.
16490         (layout_type) <REFERENCE_TYPE>: Adjust.
16492 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
16494         PR sanitizer/70683
16495         * tree.h (inchash::add_expr): Add FLAGS argument.
16496         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
16497         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
16498         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
16499         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
16500         if swap_tree_comparison (code) is smaller than code, hash that
16501         and arguments in the other order.  Hash CONVERT_EXPR the same
16502         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
16503         of ADDR_EXPR of decl as the decl itself.  Add or remove
16504         OEP_ADDRESS_OF from recursive flags as needed.  For
16505         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
16506         operands commutatively and only the third one normally.
16507         For internal CALL_EXPR hash in CALL_EXPR_IFN.
16509 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16511         * config/rtems.h (LIB_SPEC): Add -latomic.
16513 2016-04-27  Joel Sherrill  <joel@rtems.org>
16515         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
16516         xilink.ld and flags not relevant to RTEMS.
16518 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
16520         * toplev.c (backend_init_target): Avoid calling init_reload when using
16521         LRA.
16523 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
16525         * reorg.c (try_merge_delay_insns): Declare i and j inside the
16526         for loops rather than one for the whole function.
16528 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
16530         * match.pd (X + CST CMP X): New transformation.
16532 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
16534         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
16535         * fold-const.c (fold_binary_loc): Remove 2 transformations
16536         superseded by match.pd.
16537         * match.pd (x+x -> x*2): Generalize to integers.
16539 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
16541         * config/i386/i386.md (operation on memory peephole): Duplicate an
16542         existing peephole and adapt it to match lea rather than an operation
16543         that clobbers CC.
16545         PR rtl-optimization/57193
16546         * opts.c (default_options_table): Add OPT_frename_registers at -O2
16547         and above.
16548         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
16550 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
16552         * tree-if-conv.c (any_pred_load_store): New static variable.
16553         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
16554         any_pred_load_store instead of and_mask_load_store.
16555         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
16556         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
16557         (combine_blocks, tree_if_conversion): Ditto.
16559 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
16561         PR tree-optimization/70771
16562         PR tree-optimization/70775
16563         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
16564         virtual PHI nodes.  Delete parameter.
16565         (if_convertible_loop_p_1): Delete argument to above function.
16566         (predicate_all_scalar_phis): Delete code handling single-argument
16567         PHIs.
16568         (tree_if_conversion): Mark and update virtual SSA.
16570 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16572         PR target/61821
16573         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
16574         (x86_elf_aligned_common): Rename to ...
16575         (x86_elf_aligned_decl_common): ... this.
16576         Add decl arg.  Switch to .lbss for largecomm object.  Use
16577         LARGECOMM_SECTION_ASM_OP.
16578         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
16579         renaming.
16580         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
16581         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
16582         Pass new decl arg.
16583         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16584         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
16586 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16588         PR target/59407
16589         * config/i386/i386.c (SECTION_LARGE): Define.
16590         (x86_64_elf_select_section): Set it for large data/bss sections.
16591         Only clear SECTION_WRITE for .lrodata.
16592         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
16593         data/bss sections.
16594         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
16595         * varasm.c (default_elf_asm_named_section): Grow flagchars.
16596         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
16597         SECTION_MACH_DEP.
16598         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
16599         * doc/tm.texi: Regenerate.
16601 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
16603         PR bootstrap/70704
16604         * configure.ac (--enable-checking): Document extra flag, for
16605         non-release builds default to --enable-checking=yes,extra.
16606         If misc checking and extra checking, define CHECKING_P to 2 instead
16607         of 1.
16608         * common.opt (fchecking=): Add.
16609         * doc/invoke.texi (-fchecking=): Document.
16610         * doc/install.texi: Document --enable-checking changes.
16611         * configure: Regenerated.
16612         * config.in: Regenerated.
16614 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16616         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
16617         attribute instead of which_alternative.
16618         * config/i386/sse.md (*mov<mode>_internal): Ditto.
16619         Use EXT_REX_SSE_REG_P where appropriate.
16621 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16623         * config/i386/predicates.md (const0_operand): Do not match
16624         const_wide_int code.
16625         (const1_operand): Ditto.
16627 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16629         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
16630         for SSE constm1 operands and TARGET_AVX512VL.
16631         (*movti_internal): Ditto.
16632         (*mov<mode>_or): Use constm1_operand predicate.
16633         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
16634         for SSE vector_all_ones operands and TARGET_AVX512VL.
16635         * config/i386/predicates.md (constm1_operand): New predicate.
16636         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
16637         emission of constant -1 load.
16639 2016-04-25  Jason Merrill  <jason@redhat.com>
16641         * gdbinit.in: Skip is-a.h.
16643         * attribs.c (register_scoped_attributes): Fix logic.
16644         * attribs.h: Declare register_scoped_attributes.
16646 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16648         * config/rs6000/rs6000-builtin.def: Correct pasto error for
16649         stxvd2x and stxvw4x built-in functions.
16651 2016-04-25  DJ Delorie  <dj@redhat.com>
16653         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
16654         (ashrhi3): Likewise.
16655         (lshrhi3): Likewise.
16657 2016-04-25  Richard Biener  <rguenther@suse.de>
16659         PR tree-optimization/70780
16660         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
16661         wasn't visited yet.
16662         (compute_antic): Mark blocks with abnormal preds as visited as
16663         they have a final empty antic-in solution already.
16665 2016-04-25  Michael Collison  <michael.collison@linaro.org>
16667         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
16669 2016-04-25  Michael Collison  <michael.collison@linaro.org>
16671         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
16672         mode is VQI to improve mixed mode vectorization.
16673         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
16674         define_insn to match low half of signed vaddw.
16675         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
16676         define_insn to match high half of signed vaddw.
16677         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
16678         define_insn to match low half of unsigned vaddw.
16679         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
16680         define_insn to match high half of unsigned vaddw.
16681         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
16682         (arm_simd_check_vect_par_cnst_half_p): Likewise.
16683         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
16684         for new function.
16685         (arm_simd_check_vect_par_cnst_half_p): Likewise.
16686         * config/arm/predicates.md (vect_par_constant_high): Support
16687         big endian and simplify by calling
16688         arm_simd_check_vect_par_cnst_half
16689         (vect_par_constant_low): Likewise.
16691 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16693         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
16694         predicate for operand 2.
16696 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
16697             H.J. Lu  <hongjiu.lu@intel.com>
16699         * config/i386/i386-protos.h (standard_sse_constant_p): Add
16700         machine_mode argument.
16701         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
16702         constm1_rtx operands.  For VOIDmode constants, get mode from
16703         pred_mode.  Check mode size if the mode is supported by ABI.
16704         (standard_sse_constant_opcode): Do not use standard_constant_p.
16705         Strictly check ABI support for all-ones operands.
16706         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
16707         immediates. Update calls to standard_sse_constant_p.
16708         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
16709         (ix86_rtx_costs): Ditto.
16710         * config/i386/i386.md (*movxi_internal_avx512f): Use
16711         nonimmediate_or_sse_const_operand instead of vector_move_operand.
16712         Use (v,BC) alternative instead of (v,C). Use register_operand
16713         checks instead of MEM_P.
16714         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
16715         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
16716         isa attribute.  Use register_operand checks instead of MEM_P.
16717         (*movti_internal): Use nonimmediate_or_sse_const_operand for
16718         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
16719         alternative and corresponding sse2 isa attribute.
16720         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
16721         to standard_sse_constant_p.
16722         (FP constant splitters): Ditto.
16723         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
16724         (C): Ditto.
16725         * config/i386/predicates.md (constm1_operand): Remove.
16726         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
16727         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
16728         vector_all_ones_operand instead of constm1_operand.
16730 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16732         * print-rtl.c (print_rtx_insn_vec): New function.
16733         * print-rtl.h: New prototype.
16734         * store-motion.c (struct st_expr): Make avail_stores a vector.
16735         (st_expr_entry): Adjust.
16736         (free_st_expr_entry): Likewise.
16737         (print_store_motion_mems): Likewise.
16738         (find_moveable_store): Likewise.
16739         (compute_store_table): Likewise.
16740         (delete_store): Likewise.
16741         (build_store_vectors): Likewise.
16743 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16745         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
16747 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16749         * vec.h (vec_safe_contains): New function.
16750         (vec::contains): Likewise.
16751         (vec::begin): Likewise.
16752         (vec::end): Likewise.
16754 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
16756         PR sanitizer/70712
16757         * cfgexpand.c (expand_stack_vars): Fix typo.
16759 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16761         * system.h (list, map, set, vector): Include conditionally.
16762         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
16763         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
16764         * ipa-icf.c (INCLUDE_LIST): Define.
16765         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
16766         * config/sh/sh.c (INCLUDE_VECTOR): Define.
16767         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
16768         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
16769         * cp/logic.cc (INCLUDE_LIST): Define.
16770         * fortran/trans-common.c (INCLUDE_MAP): Define.
16772 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16774         * auto-profile.c: Remove <string.h> include.
16775         * ipa-icf-gimple.c: Remove <list> include.
16776         * diagnostic.c: Remove <new> include.
16777         * genmatch.c: Likewise.
16778         * pretty-print.c: Likewise.
16779         * toplev.c: Likewise
16780         * c/c-objc-common.c: Likewise.
16781         * cp/error.c: Likewise.
16782         * fortran/error.c: Likewise.
16784 2016-04-22  Richard Biener  <rguenther@suse.de>
16786         * lto-streamer-in.c (input_ssa_names): Do not allocate
16787         GIMPLE_NOP for all SSA names.
16788         * lto-streamer-out.c (output_ssa_names): Do not output
16789         SSA names that should have been released.
16791 2016-04-22  Richard Biener  <rguenther@suse.de>
16793         PR tree-optimization/70740
16794         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
16795         VDEF.
16797 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
16799         PR target/70750
16800         * config/i386/predicates.md (call_insn_operand): Replace
16801         sibcall_memory_operand with memory_operand.
16803 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
16805         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
16806         has_single_use() tests.
16807         (register_edge_assert_for_1): Likewise.
16808         (find_assert_locations_1): Check the liveness bitmap instead of
16809         checking has_single_use().
16811 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
16813         PR target/70728
16814         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
16815         Extract AVX-512BW constraint from AVX.
16817 2016-04-21  Richard Biener  <rguenther@suse.de>
16819         PR tree-optimization/70725
16820         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
16821         for phi_convertible_by_degenerating_args.
16822         (predicate_all_scalar_phis): Handle single-argument PHIs.
16824 2016-04-21  Richard Biener  <rguenther@suse.de>
16826         PR middle-end/70747
16827         * fold-const.c (fold_comparison): Return properly typed
16828         constant boolean.
16830 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
16832         PR tree-optimization/70715
16833         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
16834         after expanding BASE using expand_simple_operations.
16836 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
16838         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
16839         New transformations.
16841 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
16843         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
16845 2016-04-20  Jan Hubicka  <jh@suse.cz>
16847         * ipa-inline.c (can_inline_edge_p): Pass caller info to
16848         ultiimate_alias_target.
16849         (update_callee_keys): Likewise.
16850         (lookup_recursive_calls): Likewise.
16851         (speculation_useful_p): Likewise.
16853 2016-04-20  Jan Hubicka  <jh@suse.cz>
16855         PR ipa/70018
16856         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
16857         (set_nothrow_flag_1): ... this; handle interposition correctly;
16858         recurse on aliases and thunks.
16859         (cgraph_node::set_nothrow_flag): New.
16860         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
16861         functions compiled with non-call exceptions that binds to current
16862         def.
16863         (propagate_nothrow): Be safe WRT interposition.
16864         * cgraph.h (set_nothrow_flag): Update prototype.
16866 2016-04-18  Jan Hubicka  <jh@suse.cz>
16868         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
16869         max_loop_iterations_int.
16870         (tree_unswitch_outer_loop): Likewise.
16872 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
16874         PR tree-optimization/69489
16875         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
16876         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
16877         Revise dump message.
16878         (if_convertible_bb_p): Remove check on edge count of basic block's
16879         predecessors.
16881 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
16883         PR tree-optimization/56625
16884         PR tree-optimization/69489
16885         * tree-data-ref.h (DR_INNERMOST): New macro.
16886         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
16887         hashing struct innermost_loop_behavior.
16888         (ref_DR_map): Remove.
16889         (innermost_DR_map): New map.
16890         (baseref_DR_map): Revise comment.
16891         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
16892         to innermost_DR_map accroding to its innermost loop behavior.
16893         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
16894         to its innermost loop behavior.
16895         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
16896         Add initialization for innermost_DR_map.  Record memory reference
16897         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
16898         have innermost loop behavior.
16899         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
16900         innermost_DR_map.
16902 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
16904         * config/i386/i386.md (*lea<mode>_general_1): Rename from
16905         *lea_general_1.  Use explicit SWI12 mode interator.
16906         (*lea<mode>_general_2): Rename from *lea_general_2.
16907         Use explicit SWI12 mode interator.
16908         (*lea<mode>_general_3): Rename from *lea_general_3.
16909         Use explicit SWI12 mode interator.
16910         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
16911         Use explicit SWI12 mode interator.
16912         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
16913         Use explicit SWI48 mode interator.
16915 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
16917         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
16918         Short-cut unaligned load and store cases.  Handle all integer
16919         vector modes.
16920         (ix86_expand_vector_move_misalign): Short-cut unaligned load
16921         and store cases.  Call ix86_avx256_split_vector_move_misalign
16922         directly without checking mode class.
16924 2016-04-20  Andrew Pinski  <apinski@cavium.com>
16925             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16927         PR target/64971
16928         * config/aarch64/aarch64.md (sibcall): Force call
16929         address to be DImode for ILP32.
16930         (sibcall_value): Likewise.
16932 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
16934         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
16936 2016-04-20  Richard Biener  <rguenther@suse.de>
16938         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
16939         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
16940         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
16941         (maybe_push_res_to_seq): Adjust.
16942         * gimple-fold.c (maybe_build_generic_op): Likewise.
16944 2016-04-20  Marek Polacek  <polacek@redhat.com>
16946         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
16947         rather than true.
16949 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
16951         * config/i386/sse.md (vec_unpacks_lo_hi): Always
16952         use kmovw to support AVX512F target.
16954 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
16956         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
16958 2016-04-20  Marek Polacek  <polacek@redhat.com>
16960         PR tree-optimization/70725
16961         * tree-if-conv.c (is_false_predicate): New function.
16962         (predicate_mem_writes): Use it.
16964 2016-04-20  Richard Biener  <rguenther@suse.de>
16966         PR tree-optimization/70726
16967         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
16968         shift amounts from a pattern stmt operand.
16970 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16972         PR target/70674
16973         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
16974         stack_restore_from_fpr pattern when restoring r15.
16975         (s390_optimize_prologue): Strip away the memory barrier in the
16976         parallel when trying to get rid of restore insns.
16977         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
16978         definition for loading the stack pointer from an FPR.  Compared to
16979         the normal move insn this pattern includes a full memory barrier.
16981 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
16983         PR middle-end/70680
16984         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
16985         implicitly linear or lastprivate iterator on the outer context.
16987 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
16989         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
16990         alignment check.
16991         * config/i386/i386.md (ssememalign): Removed.
16992         * config/i386/sse.md: Remove ssememalign attribute from patterns.
16994 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
16996         PR target/69201
16997         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
16998         const short * to __builtin_ia32_loaddquhi512_mask.
16999         (_mm512_maskz_loadu_epi16): Likewise.
17000         (_mm512_mask_storeu_epi16): Pass short * to
17001         __builtin_ia32_storedquhi512_mask.
17002         (_mm512_mask_loadu_epi8): Pass const char * to
17003         __builtin_ia32_loaddquqi512_mask.
17004         (_mm512_maskz_loadu_epi8): Likewise.
17005         (_mm512_mask_storeu_epi8): Pass char * to
17006         __builtin_ia32_storedquqi512_mask.
17007         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
17008         const double * to __builtin_ia32_loadupd512_mask.
17009         (_mm512_mask_loadu_pd): Likewise.
17010         (_mm512_maskz_loadu_pd): Likewise.
17011         (_mm512_storeu_pd): Pass double * to
17012         __builtin_ia32_storeupd512_mask.
17013         (_mm512_mask_storeu_pd): Likewise.
17014         (_mm512_loadu_ps): Pass const float * to
17015         __builtin_ia32_loadups512_mask.
17016         (_mm512_mask_loadu_ps): Likewise.
17017         (_mm512_maskz_loadu_ps): Likewise.
17018         (_mm512_storeu_ps): Pass float * to
17019         __builtin_ia32_storeups512_mask.
17020         (_mm512_mask_storeu_ps): Likewise.
17021         (_mm512_mask_loadu_epi64): Pass const long long * to
17022         __builtin_ia32_loaddqudi512_mask.
17023         (_mm512_maskz_loadu_epi64): Likewise.
17024         (_mm512_mask_storeu_epi64): Pass long long *
17025         to __builtin_ia32_storedqudi512_mask.
17026         (_mm512_loadu_si512): Pass const int * to
17027         __builtin_ia32_loaddqusi512_mask.
17028         (_mm512_mask_loadu_epi32): Likewise.
17029         (_mm512_maskz_loadu_epi32): Likewise.
17030         (_mm512_storeu_si512): Pass int * to
17031         __builtin_ia32_storedqusi512_mask.
17032         (_mm512_mask_storeu_epi32): Likewise.
17033         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
17034         char * to __builtin_ia32_storedquqi256_mask.
17035         (_mm_mask_storeu_epi8): Likewise.
17036         (_mm256_mask_loadu_epi16): Pass const short * to
17037         __builtin_ia32_loaddquhi256_mask.
17038         (_mm256_maskz_loadu_epi16): Likewise.
17039         (_mm_mask_loadu_epi16): Pass const short * to
17040         __builtin_ia32_loaddquhi128_mask.
17041         (_mm_maskz_loadu_epi16): Likewise.
17042         (_mm256_mask_loadu_epi8): Pass const char * to
17043         __builtin_ia32_loaddquqi256_mask.
17044         (_mm256_maskz_loadu_epi8): Likewise.
17045         (_mm_mask_loadu_epi8): Pass const char * to
17046         __builtin_ia32_loaddquqi128_mask.
17047         (_mm_maskz_loadu_epi8): Likewise.
17048         (_mm256_mask_storeu_epi16): Pass short * to.
17049         __builtin_ia32_storedquhi256_mask.
17050         (_mm_mask_storeu_epi16): Pass short * to.
17051         __builtin_ia32_storedquhi128_mask.
17052         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
17053         const double * to __builtin_ia32_loadupd256_mask.
17054         (_mm256_maskz_loadu_pd): Likewise.
17055         (_mm_mask_loadu_pd): Pass onst double * to
17056         __builtin_ia32_loadupd128_mask.
17057         (_mm_maskz_loadu_pd): Likewise.
17058         (_mm256_mask_storeu_pd): Pass double * to
17059         __builtin_ia32_storeupd256_mask.
17060         (_mm_mask_storeu_pd): Pass double * to
17061         __builtin_ia32_storeupd128_mask.
17062         (_mm256_mask_loadu_ps): Pass const float * to
17063         __builtin_ia32_loadups256_mask.
17064         (_mm256_maskz_loadu_ps): Likewise.
17065         (_mm_mask_loadu_ps): Pass const float * to
17066         __builtin_ia32_loadups128_mask.
17067         (_mm_maskz_loadu_ps): Likewise.
17068         (_mm256_mask_storeu_ps): Pass float * to
17069         __builtin_ia32_storeups256_mask.
17070         (_mm_mask_storeu_ps): ass float * to
17071         __builtin_ia32_storeups128_mask.
17072         (_mm256_mask_loadu_epi64): Pass const long long * to
17073         __builtin_ia32_loaddqudi256_mask.
17074         (_mm256_maskz_loadu_epi64): Likewise.
17075         (_mm_mask_loadu_epi64): Pass const long long * to
17076         __builtin_ia32_loaddqudi128_mask.
17077         (_mm_maskz_loadu_epi64): Likewise.
17078         (_mm256_mask_storeu_epi64): Pass long long * to
17079         __builtin_ia32_storedqudi256_mask.
17080         (_mm_mask_storeu_epi64): Pass long long * to
17081         __builtin_ia32_storedqudi128_mask.
17082         (_mm256_mask_loadu_epi32): Pass const int * to
17083         __builtin_ia32_loaddqusi256_mask.
17084         (_mm256_maskz_loadu_epi32): Likewise.
17085         (_mm_mask_loadu_epi32): Pass const int * to
17086         __builtin_ia32_loaddqusi128_mask.
17087         (_mm_maskz_loadu_epi32): Likewise.
17088         (_mm256_mask_storeu_epi32): Pass int * to
17089         __builtin_ia32_storedqusi256_mask.
17090         (_mm_mask_storeu_epi32): Pass int * to
17091         __builtin_ia32_storedqusi128_mask.
17092         * config/i386/i386-builtin-types.def (PCSHORT): New.
17093         (PINT64): Likewise.
17094         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
17095         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
17096         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
17097         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
17098         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
17099         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
17100         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
17101         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
17102         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
17103         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
17104         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
17105         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
17106         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
17107         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
17108         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
17109         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
17110         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
17111         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
17112         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
17113         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
17114         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
17115         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
17116         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
17117         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
17118         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
17119         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
17120         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
17121         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
17122         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
17123         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
17124         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
17125         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
17126         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
17127         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
17128         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
17129         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
17130         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
17131         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
17132         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
17133         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
17134         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
17135         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
17136         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
17137         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
17138         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
17139         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
17140         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
17141         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
17142         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
17143         use UNSPEC_STOREU.
17144         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
17145         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
17146         load nor store.
17147         (ix86_expand_vector_move_misalign): Likewise.
17148         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
17149         to scalar function prototype for unaligned load/store builtins.
17150         (ix86_expand_special_args_builtin): Updated.
17151         * config/i386/sse.md (UNSPEC_LOADU): Removed.
17152         (UNSPEC_STOREU): Likewise.
17153         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
17154         (VI_ULOADSTORE_F_AVX512VL): Likewise.
17155         (ssescalarsize): Handle V4TI, V2TI and V1TI.
17156         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
17157         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
17158         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
17159         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
17160         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
17161         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
17162         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
17163         (<avx512>_storedqu<mode>_mask): Likewise.
17164         (*sse4_2_pcmpestr_unaligned): Likewise.
17165         (*sse4_2_pcmpistr_unaligned): Likewise.
17166         (*mov<mode>_internal): Renamed to ...
17167         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
17168         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
17169         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
17170         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
17172 2016-04-19  Richard Biener  <rguenther@suse.de>
17174         PR tree-optimization/70171
17175         * tree-ssa-phiprop.c: Include stor-layout.h.
17176         (phiprop_insert_phi): Handle the aggregate copy case.
17177         (propagate_with_phi): Likewise.
17179 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
17181         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
17182         instead of simplify_gen_subreg (... , 0).
17183         (ix86_delegitimize_address): Ditto.
17184         (ix86_split_divmod): Ditto.
17185         (ix86_split_copysign_const): Ditto.
17186         (ix86_split_copysign_var): Ditto.
17187         (ix86_expand_args_builtin): Ditto.
17188         (ix86_expand_round_builtin): Ditto.
17189         (ix86_expand_special_args_builtin): Ditto.
17190         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
17191         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
17192         (udivmodqi4): Ditto.
17193         (absneg splitters): Ditto.
17194         (*jcc_bt<mode>_1): Ditto.
17196 2016-04-19  Richard Biener  <rguenther@suse.de>
17198         PR tree-optimization/70724
17199         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
17200         restoring out from ...
17201         (free_scc_vn): ... here.
17202         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
17203         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
17204         tail merging.
17205         (pass_fre::execute): Restore SSA info.
17207 2016-04-19  Richard Biener  <rguenther@suse.de>
17209         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
17210         * gimple-walk.c (walk_gimple_op): Initialize it.
17211         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
17212         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
17213         remapping SSA names of defs.
17214         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
17215         adjustment.
17217 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
17219         PR middle-end/70689
17220         * lra-constraints.c (equiv_substition_p): New.
17221         (process_alt_operands): Use it.
17222         (swap_operands): Swap it.
17223         (curr_insn_transform): Update it.
17225 2016-04-18  Michael Matz  <matz@suse.de>
17227         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
17228         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
17229         * tree-core.h (tree_type_common.align): Use bit-field.
17230         (tree_type_common.spare): New.
17231         (tree_decl_common.off_align): Make smaller.
17232         (tree_decl_common.align): Use bit-field.
17234         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
17235         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
17236         (scan_sharing_clauses): Ditto.
17237         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
17238         (omp_finish_file): Ditto.
17239         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
17240         (layout_decl): Ditto.
17241         (relayout_decl): Ditto.
17242         (finalize_record_size): Use SET_TYPE_ALIGN.
17243         (finalize_type_size): Ditto.
17244         (finish_builtin_struct): Ditto.
17245         (layout_type): Ditto.
17246         (initialize_sizetypes): Ditto.
17247         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
17248         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
17249         (lookup_field_for_decl): Use SET_DECL_ALIGN.
17250         (get_chain_field): Ditto.
17251         (get_trampoline_type): Ditto.
17252         (get_nl_goto_field): Ditto.
17253         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
17254         SET_DECL_ALIGN.
17255         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
17256         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
17257         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
17258         (build_qualified_type): Use SET_TYPE_ALIGN.
17259         (build_aligned_type, build_range_type_1): Ditto.
17260         (build_atomic_base): Ditto.
17261         (build_common_tree_nodes): Ditto.
17262         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
17263         (expand_one_stack_var_at): Ditto.
17264         * coverage.c (build_var): Use SET_DECL_ALIGN.
17265         * except.c (init_eh): Ditto.
17266         * function.c (assign_parm_setup_block): Ditto.
17267         * symtab.c (increase_alignment_1): Ditto.
17268         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
17269         * tree-vect-stmts.c (ensure_base_align): Ditto.
17270         * varasm.c (align_variable): Ditto.
17271         (assemble_variable): Ditto.
17272         (build_constant_desc): Ditto.
17273         (output_constant_def_contents): Ditto.
17275         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
17276         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
17277         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
17278         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
17279         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
17281 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
17283         PR target/70708
17284         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
17285         replace %vmovsd with "%vmovq".
17286         (vec_concatv2df): Likewise.
17288 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
17290         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
17291         (*vec_extractv2si_0): Ditto.
17292         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
17293         (zero_extended_scalar_load_operand splitters): Ditto.
17294         (vec_extract splitters): Ditto.
17295         (*vec_extractv4si_0_zext): Ditto.
17296         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
17297         and lowpart_subreg.
17298         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
17299         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
17300         (*sse4_1_extractps): Use lowpart_subreg.
17301         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
17303 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17305         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
17306         gld requirements.
17307         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
17308         Mention Solaris 11 packaging changes.
17309         Update gas and gld requirements.
17310         Remove reference to pre-Solaris 10 bug.
17311         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
17312         systems and bugs.
17313         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
17314         with cc.
17316 2016-04-17  Jan Hubicka  <jh@suse.cz>
17318         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
17319         max_loop_iterations_int.
17321 2016-04-18  Richard Biener  <rguenther@suse.de>
17323         PR tree-optimization/43434
17324         * tree-ssa-structalias.c (struct vls_data): New.
17325         (visit_loadstore): Handle all pointer-based accesses.
17326         (compute_dependence_clique): Compute a bitmap of restrict tags
17327         assigned bases and pass it to visit_loadstore.
17329 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
17331         PR target/70711
17332         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
17333         armv8.1-a and armv8.1-a+crc.
17335 2016-04-18  Richard Biener  <rguenther@suse.de>
17337         PR tree-optimization/70701
17338         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
17339         references after translating through a memcpy.
17341 2016-04-18  Richard Biener  <rguenther@suse.de>
17343         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
17344         (compute_antic): ... here.  For partial antic use regular
17345         postorder and scrap iteration.
17346         (compute_partial_antic_aux): Remove unused return value.
17347         (init_pre): Do not allocate postorder.
17348         (fini_pre): Do not free postorder.
17350 2016-04-18  Richard Biener  <rguenther@suse.de>
17352         PR middle-end/37870
17353         * expmed.c (extract_bit_field_1): Remove broken case
17354         using a wider MODE_INT mode.
17356 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
17358         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
17359         unless compiling with at least GCC-4.8.
17361 2016-04-17  Jan Hubicka  <jh@suse.cz>
17363         PR bootstrap/70706
17364         * graphite.c (graphite_finalize): Update call to
17365         tree_estimate_probability.
17366         * predict.h (tree_estimate_probability): Update prototype.
17368 2016-04-17  Jan Hubicka  <jh@suse.cz>
17370         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
17371         (tree_estimate_probability): Likewise.
17372         (pass_profile::execute): Update.
17373         (report_predictor_hitrates): New function.
17374         * profile.c (compute_branch_probabilities): Use it.
17375         * predict.h (report_predictor_hitrates): Declare.
17377 2016-04-17  Jan Hubicka  <jh@suse.cz>
17379         PR ipa/70018
17380         * cgraph.h (cgraph_node::set_const_flag,
17381         cgraph_node::set_pure_flag): Update prototype to return bool;
17382         update comment.
17383         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
17384         of interposable symbol are interposable, too.
17385         (cgraph_set_const_flag_1): Rename to ...
17386         (set_const_flag_1): ... this one; change to self recursive function
17387         instead of call_for_symbol_thunks_and_aliases. Handle correctly
17388         clearnig the flag in all variants and also virtual thunks of const
17389         functions are pure; track if any change was done.
17390         (cgraph_node::set_const_flag): Update.
17391         (struct set_pure_flag_info): New struct.
17392         (cgraph_set_pure_flag_1): Rename to ...
17393         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
17394         rather than pointer encoded flags; track if any changes was done;
17395         handle correctly clearning flag and setting flag of aliases already
17396         declared const.
17397         (cgraph_node::set_pure_flag): Update.
17398         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
17400 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17402         PR other/70433
17403         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
17404         backslash in label.
17406 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17408         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
17409         '{}<> ' as escape-for-record.
17411 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17413         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
17414         structure.
17416 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17418         PR other/70185
17419         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
17420         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
17421         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
17422         * passes.c (finish_optimization_passes): Only call
17423         finish_graph_dump_file if dfi->graph_dump_initialized.
17424         (execute_function_dump, pass_init_dump_file): Use
17425         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
17427 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17429         PR tree-optimization/70256
17430         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
17431         (debug_varmap): New function.
17433 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17435         PR other/70183
17436         * passes.c (pass_manager::register_pass): Propagate pflags.
17438 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17440         PR other/68875
17441         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
17442         * passes.c (pass_manager::pass_manager): Declare and init p_start in
17443         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
17444         check if it's equal to p_start.
17445         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
17447 2016-04-15  Jan Hubicka  <jh@suse.cz>
17449         PR ipa/70018
17450         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
17451         function does not bind to current def.
17452         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
17453         handle conservatively calls to functions that does not need to bind
17454         to current def.
17455         (check_call): Update call of worse_state.
17456         (ignore_edge_for_nothrow): Update.
17457         (ignore_edge_for_pure_const): Likewise.
17458         (propagate_pure_const): Update calls to worse_state.
17459         (skip_function_for_local_pure_const): Reformat comments.
17461 2016-04-15  Jan Hubicka  <jh@suse.cz>
17463         PR ipa/70018
17464         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
17465         (cgraph_node::function_symbol): Likewise.
17466         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
17467         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
17468         (symtab_node::ultimate_alias_target): Add REF parameter.
17469         (symtab_node::binds_to_current_def_p): Declare.
17470         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
17471         (cgraph_node::function_symbol): Likewise.
17472         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
17473         (cgraph_node::get_availability): Likewise.
17474         (cgraph_edge::binds_to_current_def_p): New inline function.
17475         (varpool_node::get_availability): Add REF parameter.
17476         (varpool_node::ultimate_alias_target): Likewise.
17477         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
17478         (symtab_node::binds_to_current_def_p): Likewise.
17479         * varpool.c (varpool_node::get_availability): Likewise.
17481 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
17483         PR target/70662
17484         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
17485         Fix mode size check.
17487 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
17489         * BASE-VER: Set to 7.0.0.
17491 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
17493         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
17495 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17497         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
17498         architecture revisions.
17500 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
17502         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
17503         * config/i386/i386.c (ix86_using_red_zone): No longer static.
17504         * config/i386/i386.md (stack decrement to push peepholes): Guard
17505         with !x86_using_red_zone ().
17507 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
17509         PR c++/70675
17510         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
17511         to dump_generic_node.
17512         (NIY): Pass also flags to do_niy.
17514 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
17516         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
17517         (simd_clone_vector_of_formal_parm_types)
17518         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
17519         (simd_clone_mangle, simd_clone_create)
17520         (simd_clone_adjust_return_type, create_tmp_simd_array)
17521         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
17522         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
17523         (ipa_simd_modify_function_body, simd_clone_linear_addend)
17524         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
17525         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
17526         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
17527         * omp-simd-clone.c: ... this new file.
17528         (simd_clone_vector_of_formal_parm_types): Make it static.
17529         * Makefile.in (OBJS): Add omp-simd-clone.o.
17531 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
17533         PR target/70662
17534         * config/i386/sse.md: Use proper memory operand modifiers.
17537 2016-04-15  Richard Biener  <rguenther@suse.de>
17538         Alan Modra  <amodra@gmail.com>
17540         PR tree-optimization/70130
17541         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
17542         when alignment stays not the same and no not use the realign
17543         scheme then.
17545 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17547         PR target/70669
17548         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
17549         direct move handlers for KFmode. Change TFmode handlers test from
17550         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
17552 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
17554         PR c++/70594
17555         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
17556         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
17557         (inlined_polymorphic_ctor_dtor_block_p): Use it.
17558         * tree-ssa-live.c (remove_unused_scope_block_p): When
17559         in_ctor_dtor_block, avoid discarding not just BLOCKs with
17560         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
17561         block_ultimate_origin is FUNCTION_DECL.
17562         (remove_unused_locals): If current_function_decl is
17563         polymorphic_ctor_dtor_p, pass initial true to
17564         remove_unused_scope_block_p' is_ctor_dtor_block.
17566 2016-04-14  Martin Sebor  <msebor@redhat.com>
17568         PR c++/69517
17569         PR c++/70019
17570         PR c++/70588
17571         * doc/extend.texi (Variable Length): Revert.
17573 2016-04-14  Marek Polacek  <polacek@redhat.com>
17574             Jan Hubicka  <hubicka@ucw.cz>
17576         PR c++/70029
17577         * tree.c (verify_type): Disable the canonical type of main variant
17578         check.
17580 2016-04-14  Jason Merrill  <jason@redhat.com>
17582         * cfgexpand.c, expr.c: Revert previous change.
17584 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
17586         PR middle-end/70643
17587         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
17588         when building a mem ref for the incoming reduction variable.
17590 2016-04-14  Richard Biener  <rguenther@suse.de>
17592         PR tree-optimization/70614
17593         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
17594         loop if the evolution dropped to chrec_dont_know.
17595         (interpret_condition_phi): Likewise.
17597 2016-04-14  Richard Biener  <rguenther@suse.de>
17599         PR tree-optimization/70623
17600         * tree-ssa-pre.c (changed_blocks): Make global ...
17601         (compute_antic): ... local here.  Move and fix worklist
17602         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
17603         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
17604         worklist handling, dump when ANTIC_IN changed.
17605         (compute_partial_antic_aux): Remove worklist handling.
17606         (init_pre): Do not compute post dominators.  Add a comment about
17607         the CFG order chosen.
17608         (fini_pre): Do not free post dominators.
17610 2016-04-13  Martin Sebor  <msebor@redhat.com>
17612         PR c++/69517
17613         PR c++/70019
17614         PR c++/70588
17615         * doc/extend.texi (Variable Length): Document C++ specifics.
17617 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
17619         PR c++/70641
17620         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
17621         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
17622         eh edges have been purged.
17624         PR c++/70594
17625         * tree-sra.c (create_access_replacement,
17626         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
17627         gets fancy name.
17628         * tree-pretty-print.c (dump_fancy_name): New function.
17629         (dump_decl_name, dump_generic_node): Use it.
17631 2016-04-13  Jason Merrill  <jason@redhat.com>
17633         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
17634         * expr.c (expand_expr_real_1): Likewise.
17636 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
17638         * config/i386/i386.md (kunpckhi): Swap operands.
17639         (kunpcksi): Likewise.
17640         (kunpckdi): Likewise.
17641         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
17642         (vec_pack_trunc_<mode>): Likewise.
17644 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
17646         PR debug/70628
17647         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
17649         PR middle-end/70633
17650         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
17651         gimplification turns some element into non-constant.
17653         PR debug/70628
17654         * rtl.h (convert_memory_address_addr_space_1): New prototype.
17655         * explow.c (convert_memory_address_addr_space_1): No longer static,
17656         add NO_EMIT argument and don't call convert_modes if true, pass
17657         it down recursively, remove break after return.
17658         (convert_memory_address_addr_space): Adjust caller.
17659         * simplify-rtx.c (simplify_unary_operation_1): Call
17660         convert_memory_address_addr_space_1 instead of convert_memory_address,
17661         if it returns NULL, don't simplify.
17663 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
17665         PR target/70630
17666         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
17668 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
17670         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17671         Bump the upper SIMDLEN limits, so that if the return type or
17672         characteristic type if the return type is void can be passed in
17673         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
17674         allowed.
17676 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
17678         PR target/70640
17679         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
17680         Do not use "=" constraint on an input constraint.
17681         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
17682         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
17683         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
17684         generates (neg (abs ...)) instead of (abs ...).
17686 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
17688         PR rtl-optimization/70596
17689         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
17690         just invalidate LRA data and reset them.  Adjust dump wording.
17692 2016-04-12  Martin Liska  <mliska@suse.cz>
17694         Revert
17695         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
17697         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
17698         estimates here.
17699         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
17700         max_loop_iterations_int.
17701         (tree_unswitch_outer_loop): Likewise.
17702         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
17703         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
17705 2016-04-12  Tom de Vries  <tom@codesourcery.com>
17707         PR tree-optimization/68756
17708         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
17709         instead of new_name.
17711 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
17713         PR tree-optimization/70602
17714         * tree-sra.c (generate_subtree_copies): Don't write anything into
17715         constant pool decls.
17717         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
17718         regardless whether there are depend clauses or not.
17720 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
17722         PR target/70381
17723         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
17724         target attribute and pragma from changing the -mfloat128
17725         and -mfloat128-hardware options.
17727         * doc/extend.texi (Additional Floating Types): Document PowerPC
17728         __float128 restrictions.
17730 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
17732         PR target/70133
17733         * config/aarch64/driver-aarch64.c
17734         (aarch64_get_extension_string_for_isa_flags): New.
17735         (arch_extension): Rename to...
17736         (aarch64_arch_extension): ...This.
17737         (ext_to_feat_string): Rename to...
17738         (aarch64_extensions): ...This.
17739         (aarch64_core_data): Keep track of architecture extension flags.
17740         (cpu_data): Rename to...
17741         (aarch64_cpu_data): ...This.
17742         (aarch64_arch_driver_info): Keep track of architecture extension
17743         flags.
17744         (get_arch_name_from_id): Rename to...
17745         (get_arch_from_id): ...This, change return type.
17746         (host_detect_local_cpu): Update and reformat for renames, handle
17747         extensions through common infrastructure.
17749 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
17751         PR target/70133
17752         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
17753         track of a canonical flag name.
17754         (all_extensions): Likewise.
17755         (arch_to_arch_name): Also track extension flags enabled by the arch.
17756         (all_architectures): Likewise.
17757         (aarch64_parse_extension): Move to here.
17758         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
17759         rework.
17760         (aarch64_rewrite_selected_cpu): Update for above change.
17761         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
17762         are handled, such that the single explicit value enabled by an
17763         extension is kept seperate from the implicit values it also enables.
17764         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
17765         to here.
17766         (aarch64_parse_extension): New.
17767         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
17768         here to config/aarch64/aarch64-protos.h.
17769         (aarch64_parse_extension): Move from here to
17770         common/config/aarch64/aarch64-common.c.
17771         (aarch64_option_print): Update.
17772         (aarch64_declare_function_name): Likewise.
17773         (aarch64_start_file): Likewise.
17774         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
17775         the canonical flag for extensions.
17776         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
17777         flags.
17779 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
17781         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
17782         AARCH64_FL_CRC.
17784 2016-04-09  Tom de Vries  <tom@codesourcery.com>
17786         PR tree-optimization/68953
17787         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
17788         first to last subscript.
17790 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
17792         PR tree-optimization/70586
17793         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
17794         for any calls.
17796 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
17798         PR lto/70289
17799         PR ipa/70348
17800         PR tree-optimization/70373
17801         PR middle-end/70533
17802         PR middle-end/70534
17803         PR middle-end/70535
17804         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
17805         clauses for acc parallel reductions as necessary.  Error on those
17806         that are private.
17807         * omp-low.c (scan_sharing_clauses): Don't install variables which
17808         are used in acc parallel reductions.
17809         (lower_rec_input_clauses): Remove dead code.
17810         (lower_oacc_reductions): Add support for reference reductions.
17811         (lower_reduction_clauses): Remove dead code.
17812         (lower_omp_target): Don't remap variables appearing in acc parallel
17813         reductions.
17814         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
17816 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
17818         PR middle-end/70593
17819         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
17820         with multiple SSA_NAME defs, force the outputs other than first
17821         to be live before calling live_track_process_def on each output.
17823         PR rtl-optimization/70574
17824         * fwprop.c (forward_propagate_and_simplify): Don't add
17825         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
17826         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
17827         paradoxical subregs within *loc.
17829 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
17831         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
17832         -ftree-parallelize-loops={0,1}.
17833         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
17834         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
17835         * config/ia64/hpux.h (LIB_SPEC): Likewise.
17836         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17837         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
17839 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
17841         PR sanitizer/70541
17842         * asan.c (instrument_derefs): If we get unknown location, extract it
17843         with EXPR_LOCATION.
17844         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
17846 2016-04-08  Tom de Vries  <tom@codesourcery.com>
17848         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
17849         implicit firstprivate clause.
17851 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17853         PR target/70566
17854         * config/arm/thumb2.md (tst + branch-> lsls + branch
17855         peephole below *orsi_not_shiftsi_si): Require that condition
17856         register is dead after the peephole.
17857         (second peephole after the above): Likewise.
17859 2016-04-08  Alan Modra  <amodra@gmail.com>
17861         PR target/70117
17862         * builtins.c (fold_builtin_classify): For IBM extended precision,
17863         look at just the high-order double to test for NaN.
17864         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
17865         test just the high double for Inf but both doubles for subnormal
17866         limit.
17868 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
17870         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
17871         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
17872         node->simdclone->mask_mode != VOIDmode masks.
17873         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
17874         earlier, use it instead of node->simdclone.
17875         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17876         Set clonei->mask_mode.
17878 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
17880         PR c/70436
17881         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
17882         Pass it through to cp_parser_already_scoped_statement.
17883         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
17884         it through to cp_parser_statement.
17885         (cp_parser_statement): Pass IF_P through to
17886         cp_parser_iteration_statement.
17887         (cp_parser_pragma): Adjust call to
17888         cp_parser_iteration_statement.
17890 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
17892         PR c/70436
17893         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
17894         resolve a future -Wparentheses warning.
17895         * omp-low.c (scan_sharing_clauses): Likewise.
17896         * tree-parloops.c (eliminate_local_variables): Likewise.
17898 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
17900         PR rtl-optimization/70398
17901         * lra-constraints.c (process_address_1): Check zero scale and code
17902         for reloading with zero scale.
17904 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
17906         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
17907         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
17909 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
17911         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17912         Add support for AVX512F clones, include them by default for
17913         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
17914         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
17915         up to 128.
17917         PR middle-end/70550
17918         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
17919         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
17920         firstprivate clauses.
17921         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
17922         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
17923         (lower_omp_target): Set TREE_NO_WARNING for
17924         non-addressable possibly uninitialized vars which are copied into
17925         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
17927 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
17929         * config/pa/predicates.md (integer_store_memory_operand): Accept
17930         REG+D operands with a large offset when reload_in_progress is true.
17931         (floating_point_store_memory_operand): Likewise.
17933 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
17935         PR c++/70336
17936         * match.pd (nested int casts): Limit to GIMPLE.
17938 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
17940         PR ipa/66223
17941         * ipa-devirt.c (maybe_record_node): Fix comment; use
17942         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
17944 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
17946         PR rtl-optimization/70542
17947         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
17948         if there are any uses other than insn or debug insns.
17950 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
17951             Jakub Jelinek  <jakub@redhat.com>
17953         PR tree-optimization/70509
17954         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
17955         Shift HOST_WIDE_INT_1U instead of 1.
17957 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
17959         PR tree-optimization/70509
17960         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
17961         of the vector base type for index.
17963 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
17965         PR target/70510
17966         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
17968 2016-04-05  Richard Biener  <rguenther@suse.de>
17970         PR tree-optimization/70526
17971         * tree-sra.c (build_ref_for_offset): Use prev_base to
17972         extract the alias pointer type.
17974 2016-04-05  Richard Biener  <rguenther@suse.de>
17976         * dse.c (struct store_info): Remove alias_set member.
17977         (struct read_info_type): Likewise.
17978         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
17979         spill_deleted, clear_alias_set_lookup): Remove.
17980         (get_group_info): Remove dead base == NULL_RTX case.
17981         (dse_step0): Remove initialization of removed variables.
17982         (delete_dead_store_insn): Reomve alias set dumping.
17983         (free_read_records): Remove alias_set handling.
17984         (canon_address): Remove alias_set_out parameter.
17985         (record_store): Remove spill_alias_set, it's always zero.
17986         (check_mem_read_rtx): Likewise.
17987         (dse_step2): Rename from ...
17988         (dse_step2_nospill): ... this.  Adjust.
17989         (scan_stores): Rename from ...
17990         (scan_stores_nospill): ... this.
17991         (scan_reads): Rename from ...
17992         (scan_reads_nospill): ... this.
17993         (scan_stores_spill, scan_reads_spill): Remove.
17994         (dse_step3_scan): Remove for_spills argument which is always false.
17995         (dse_step3): Likewise.
17996         (dse_step5): Rename from ...
17997         (dse_step5_nospill): ... this.  Remove alias_set handling.
17998         (rest_of_handle_dse): Adjust.
18000 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
18002         PR target/70525
18003         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
18004         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
18005         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
18006         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
18008 2016-04-05  Richard Biener  <rguenther@suse.de>
18010         PR middle-end/70499
18011         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
18012         non-register type temporaries into SSA.
18014 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
18016         PR ipa/66223
18017         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
18018         calls when sanitizing.
18019         (possible_polymorphic_call_target_p): Fix formatting.
18021 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18022             Jakub Jelinek  <jakub@redhat.com>
18024         PR middle-end/70457
18025         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
18026         to ensure a call statement is compatible with a built-in's
18027         prototype.
18028         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
18029         Likewise.
18031 2016-04-04  Richard Biener  <rguenther@suse.de>
18033         PR rtl-optimization/70484
18034         * rtl.h (canon_output_dependence): Declare.
18035         * alias.c (canon_output_dependence): New function.
18036         * dse.c (record_store): Use canon_output_dependence rather
18037         than canon_true_dependence.
18039 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
18041         PR ipa/68881
18042         * cgraph.h (symtab_node::copy_visibility_from): New function.
18043         * symtab.c (symtab_node::copy_visibility_from): New function.
18044         * ipa-visibility.c (optimize_weakref): New function.
18045         (function_and_variable_visibility): Use it.
18047 2016-04-04  Martin Liska  <mliska@suse.cz>
18049         PR hsa/70402
18050         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
18051         value that is really in range handled by SBR instruction.
18052         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
18053         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
18054         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
18056 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
18058         PR target/70416
18059         PR target/67391
18060         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
18061         set, but not for SP_REG operands.
18063 2016-04-02  Martin Sebor  <msebor@redhat.com>
18065         PR c++/67376
18066         * fold-const.c (maybe_nonzero_address): New function.
18067         (fold_comparison): Call it.  Fold equality and relational
18068         expressions involving null pointers.
18069         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
18071 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
18073         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
18074         the "Y" constraint (scalar FP 0.0 immediate).
18076         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
18077         Add the "const_double" to the list of operand constraints.
18079 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
18081         PR rtl-optimization/70467
18082         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
18083         If low word of the last operand is 0, just emit addition/subtraction
18084         for the high word.
18086 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18088         PR target/70404
18089         * config/s390/s390.c (s390_expand_insv): Check for everything
18090         constant instead of just VOIDmode stuff.
18092 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18094         PR target/70496
18095         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
18097 2016-04-01  Nathan Sidwell  <nathan@acm.org>
18099         * tree.def (TRY_CATCH_EXPR): Correct documentation.
18101 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
18103         PR rtl-optimization/70461
18104         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
18105         is necessary.
18107 2016-03-31  Martin Liska  <mliska@suse.cz>
18109         PR hsa/70399
18110         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
18111         a tree value or an immediate integer value to a buffer
18112         that is eventually copied to a BRIG section.
18113         (emit_immediate_operand): Call the function here.
18114         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
18115         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
18116         of class' fields that are removed.
18117         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
18118         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
18119         m_brig_repr_size fields.
18121 2016-03-31  Martin Liska  <mliska@suse.cz>
18123         PR hsa/70391
18124         * hsa-gen.c (hsa_function_representation::update_dominance): New
18125         function.
18126         (convert_addr_to_flat_segment): Likewise.
18127         (gen_hsa_memory_set): New alignment argument.
18128         (gen_hsa_ctor_assignment): Likewise.
18129         (gen_hsa_insns_for_single_assignment): Provide alignment
18130         to gen_hsa_ctor_assignment.
18131         (gen_hsa_insns_for_direct_call): Add new argument.
18132         (expand_lhs_of_string_op): New function.
18133         (expand_string_operation_builtin): Likewise.
18134         (expand_memory_copy): New function.
18135         (expand_memory_set): New function.
18136         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
18137         (convert_switch_statements): Change signature.
18138         (generate_hsa): Use a return value of the function.
18139         (pass_gen_hsail::execute): Do not call
18140         convert_switch_statements here.
18141         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
18142         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
18143         (hsa_function_representation::update_dominance): New function.
18145 2016-03-31  Martin Liska  <mliska@suse.cz>
18147         PR hsa/70391
18148         * hsa-brig.c (emit_directive_variable): Emit alignment
18149         according to hsa_symbol::m_align.
18150         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
18151         (dump_hsa_symbol): Dump alignment of HSA symbols.
18152         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
18153         (gen_hsa_addr_with_align): New function.
18154         (hsa_bitmemref_alignment): Use newly added function.
18155         (gen_hsa_insns_for_load): Likewise.
18156         (gen_hsa_insns_for_store): Likewise.
18157         (gen_hsa_memory_copy): New argument added.
18158         (gen_hsa_insns_for_single_assignment): Respect
18159         alignment for assignments processed via gen_hsa_memory_copy.
18160         (gen_hsa_insns_for_direct_call): Likewise.
18161         (gen_hsa_insns_for_return): Likewise.
18162         (gen_function_def_parameters): Set default alignment.
18163         * hsa.c (hsa_object_alignment): New function.
18164         (hsa_byte_alignment): Pasted function.
18165         * hsa.h (hsa_symbol::m_align): New field.
18167 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
18169         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
18170         scratch field for goto case.
18172 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
18174         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
18176 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
18178         PR target/70442
18179         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
18180         (scalar_chain::convert_insn): Call convert_op for reg
18181         moves to handle undefined registers.
18183 2016-03-31  Nathan Sidwell  <nathan@acm.org>
18185         PR c++/70393
18186         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
18187         Assert we don't want to move backwards.
18189 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
18191         PR target/70453
18192         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
18194 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
18196         PR rtl-optimization/70460
18197         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
18198         with operand from REG_LABEL_OPERAND, instead substitute
18199         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
18200         Don't do anything for REG_NON_LOCAL_GOTO jumps.
18202 2016-03-31  Martin Liska  <mliska@suse.cz>
18204         * passes.c (execute_one_pass): Do not call
18205         todo_after for a discarded function.
18207 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
18209         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
18210         (no_cost, infinite_cost): Initialize the new field.
18211         (get_computation_cost_at): Record setup cost.
18212         (determine_use_iv_cost_address): Skip cost computation for sub
18213         uses if we can estimate it without losing accuracy.
18215 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
18217         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
18218         estimates here.
18219         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
18220         max_loop_iterations_int.
18221         (tree_unswitch_outer_loop): Likewise.
18222         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
18223         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
18225 2016-03-30  Richard Biener  <rguenther@suse.de>
18227         PR middle-end/70450
18228         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
18230 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
18232         PR target/70421
18233         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
18234         in gen_blendm expander.
18236 2016-03-30  Nick Clifton  <nickc@redhat.com>
18238         PR target/62254
18239         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
18240         case where we are already provided with an SImode SUBREG.
18242 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
18244         PR target/70439
18245         * config/i386/i386.c (ix86_expand_epilogue): Properly check
18246         conflict between DRAP register and __builtin_eh_return.
18248 2016-03-30  Michael Matz  <matz@suse.de>
18249             Richard Biener  <rguenther@suse.de>
18251         PR ipa/12392
18252         * ipa-polymorphic-call.c (struct type_change_info): Change
18253         speculative to an unsigned allowing to limit the work we do.
18254         (csftc_abort_walking_p): New inline function..
18255         (check_stmt_for_type_change): Limit the number of may-defs
18256         skipped for speculative devirtualization to
18257         max-speculative-devirt-maydefs.
18258         * params.def (max-speculative-devirt-maydefs): New param.
18259         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
18261 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
18263         PR target/63890
18264         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
18265         and TARGET_MACHO.
18267 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
18269         PR tree-optimization/59124
18270         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
18271         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
18273 2016-03-29  Jeff Law  <law@redhat.com>
18275         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
18277 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
18279         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
18280         to HOST_WIDE_INT.
18282 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
18284         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
18285         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
18286         gcrt0.o if linking dynamically.
18288 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
18290         PR ipa/70283
18291         * ipa-devirt.c (methods_equal_p): New function.
18292         (compare_virtual_tables): Use it.
18293         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
18294         * cgraphclones.c (clone_function_name_1): Use
18295         symbol_table::symbol_suffix_separator.
18296         * coverage.c (build_var): Likewise.
18297         * symtab.c (symbol_table::symbol_suffix_separator): New.
18299 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
18301         PR rtl-optimization/70429
18302         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
18303         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
18304         mode != result_mode.
18306         PR c++/70353
18307         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
18309         PR tree-optimization/70405
18310         * ssa-iterators.h (num_imm_uses): Add missing braces.
18312 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
18314         PR rtl-optimization/68695
18315         * ira-color.c (allocno_copy_cost_saving): New.
18316         (improve_allocation): Use it.
18318 2016-03-29  Richard Henderson  <rth@redhat.com>
18320         PR middle-end/70355
18321         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
18323 2016-03-29  Richard Biener  <rguenther@suse.de>
18325         PR middle-end/70424
18326         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
18327         use alignment returned by get_pointer_alignment_1 if it is
18328         bigger than BITS_PER_UNIT.
18329         * builtins.c (get_pointer_alignment_1): Do not return true
18330         for alignment extracted from SSA info.
18332 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
18334         * config/ft32/ft32.opt (mnodiv): New.
18335         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
18336         * doc/invoke.texi (FT32 Options -mnodiv): New.
18338 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
18340         PR target/70406
18341         * config/i386/i386.md (define_split, andn): Fix modes.
18343 2016-03-26  Richard Biener  <rguenther@suse.de>
18344             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18346         PR ipa/70366
18347         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
18348         instead of
18349         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
18350         as 2nd argument to cl_optimization_restore().
18352 2016-03-25  Richard Henderson  <rth@redhat.com>
18354         PR target/70120
18355         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
18356         * config/aarch64/aarch64-protos.h: Declare it.
18357         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
18359 2016-03-25  Alan Modra  <amodra@gmail.com>
18361         PR target/70052
18362         * config/rs6000/constraints.md (j): Simplify.
18363         * config/rs6000/predicates.md (easy_fp_constant): Exclude
18364         decimal float 0.D.
18365         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
18366         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
18367          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
18368         in all constraint alternatives.
18369         (movtd_64bit_nodm): Delete "j" constraint alternative.
18371 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
18373         * tree-ssa-propagate.c: Enhance docs for
18374         SSA_PROP_NOT_INTERESTING.
18376 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
18378         * doc/extend.texi: Fix typo in documentation to pure attribute.
18380 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
18382         PR target/70319
18383         * config/pa/pa.md (bswapdi2): Use a scratch register.
18385 2016-03-24  Richard Henderson  <rth@redhat.com>
18387         PR middle-end/69845
18388         * fold-const.c (extract_muldiv_1): Correct test for multiplication
18389         overflow.
18391 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
18393         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
18394         using ix86_expand_binary_operator instead of gen_andsi3.
18396 2016-03-24  Richard Biener  <rguenther@suse.de>
18398         PR tree-optimization/70396
18399         * tree-vect-stmts.c (vectorizable_comparison): Use
18400         get_vectype_for_scalar_type.
18402 2016-03-24  Richard Biener  <rguenther@suse.de>
18404         PR middle-end/70370
18405         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
18406         with register bases.
18408 2016-03-24  Richard Biener  <rguenther@suse.de>
18410         PR tree-optimization/70372
18411         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
18412         build_all_ones_cst to also handle vector types correctly.
18414 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
18416         PR target/70381
18417         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
18418         -mfloat128 here.
18420 2016-03-23  Marek Polacek  <polacek@redhat.com>
18422         PR c++/69884
18423         * doc/invoke.texi: Document -Wignored-attributes.
18425 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
18427         PR tree-optimization/69042
18428         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
18429         parameter from 30 to 40.
18431 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
18433         PR tree-optimization/69042
18434         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
18435         for use with constant offset stripped in base.
18437 2016-03-23  Richard Biener  <rguenther@suse.de>
18439         PR middle-end/70251
18440         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
18441         mode compatibility check.
18442         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18444 2016-03-23  Jeff Law  <law@redhat.com>
18446         PR tree-optimization/64058
18447         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
18448         CONFLICT_COUNT.
18449         (struct ssa_conflicts): Move up earlier in the file.
18450         (conflicts_, var_map_): New static variables.
18451         (initialize_conflict_count): New function to initialize the
18452         CONFLICT_COUNT field for each conflict pair.
18453         (compare_pairs): Lazily initialize the conflict count and use it
18454         as the first tie-breaker.
18455         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
18456         and wipe conflicts_ and map_ around the call to qsort.  Remove
18457         special case for 2 coalesce pairs.
18458         * bitmap.c (bitmap_count_unique_bits): New function.
18459         (bitmap_count_bits_in_word): New function, extracted from
18460         bitmap_count_bits.
18461         (bitmap_count_bits): Use bitmap_count_bits_in_word.
18462         * bitmap.h (bitmap_count_unique_bits): Declare it.
18464 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
18466         PR target/69917
18467         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
18468         transparent alias chain for decl assembler name.
18469         * config/sol2.c (solaris_assemble_visibility): Likewise.
18471 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18473         * config/arm/arm1020e.md (1020call_op): Reduce reservation
18474         duration.
18475         (v10_fdivs): Likewise.
18476         (v10_fdivd): Likewise.
18478 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18480         PR driver/70132
18481         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
18482         to not call fclose twice on file.
18484 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
18486         PR tree-optimization/70354
18487         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
18488         oprnd0 is wider than oprnd1 and there is a cast from the wider
18489         type to oprnd1, mask it with the mask of the narrower type.
18491         PR target/70321
18492         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
18493         Optimize TARGET_STV splitters, if high or low word of last argument
18494         is 0 or -1.
18496 2016-03-22  Jeff Law  <law@redhat.com>
18498         PR target/70232
18499         tree-ssa-threadbackward.c
18500         (fsm_find_control_statement_thread_paths): Correctly distinguish
18501         between old style jump threads vs FSM jump threads.
18503 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
18505         PR target/70302
18506         * config/i386/i386.c (scalar_chain::convert_op): Support
18507         uninitialized register usage case.
18509 2016-03-22  Richard Biener  <rguenther@suse.de>
18511         PR middle-end/70251
18512         * genmatch.c (gen_transform): Adjust last parameter to a three-state
18513         int...
18514         (capture::gen_transform): ... to change behavior when substituting
18515         a condition into cond or not-cond expr context.
18516         (dt_simplify::gen_1): Adjust.
18517         * gimple-match-head.c: Include gimplify.h for unshare_expr.
18518         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
18519         last change and instead change to
18520         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
18521         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18523 2016-03-22  Anthony Green  <green@moxielogic.com>
18525         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
18526         issue for moxiebox targets.
18527         (CC1PLUS_SPEC): Ditto.
18529 2016-03-22  Richard Biener  <rguenther@suse.de>
18531         PR middle-end/70333
18532         * fold-const.c (extract_muldiv_1): Properly perform multiplication
18533         in the wide type.
18535 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
18537         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
18539 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
18541         PR target/70325
18542         * config/i386/i386.c (def_builtin): Handle
18543         OPTION_MASK_ISA_AVX512VL to be and-ed with other
18544         bits.
18545         (const struct builtin_description bdesc_special_args[]):
18546         Remove duplicate ISA bits.
18548 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
18550         PR target/70329
18551         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
18552         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
18553         in a way that works also for AVX512BW.
18555         PR target/70300
18556         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
18557         instead of source if operands[1] is xmm16 and above and
18558         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
18559         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
18561         PR c++/70295
18562         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
18563         on assign if (*from_p) is a comparison, set it to
18564         TREE_NO_WARNING (*from_p).
18566 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
18568         PR middle-end/70326
18569         * lra.c (restore_scratches): Ignore deleted insns.
18571 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
18572             Jakub Jelinek  <jakub@redhat.com>
18574         PR tree-optimization/70317
18575         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
18576         to HONOR_NANS.
18578 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
18580         PR target/70327
18581         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
18582         of ix86_expand_move.
18583         (movoi): Ditto.
18584         (movti): Use general_operand for operand 1 predicate.
18586 2016-03-21  Martin Liska  <mliska@suse.cz>
18588         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
18589         insns.
18590         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
18592 2016-03-21  Martin Liska  <mliska@suse.cz>
18594         PR ipa/70306
18595         * ipa-icf.c (sem_function::parse): Skip static
18596         constructors and destructors.
18598 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
18600         PR target/70296
18601         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
18602         function-like macro, peek following token(s) if it is followed
18603         by CPP_OPEN_PAREN token with optional padding in between, and
18604         if not, don't treat it like a macro.
18606 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18607             Alexander Monakov  <amonakov@ispras.ru>
18609         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
18610         for the stabs debug format.
18612 2016-03-21  Richard Biener  <rguenther@suse.de>
18614         PR tree-optimization/70310
18615         * tree-vect-generic.c (expand_vector_condition): Fold the built
18616         condition.
18618 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
18620         PR target/70293
18621         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
18622         Block third alternative for AVX-512VL target,
18624 2016-03-21  Martin Liska  <mliska@suse.cz>
18626         PR hsa/70234
18627         * hsa-brig.c (emit_function_directives): Mark unemitted
18628         global variables for emission.
18629         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
18630         (get_symbol_for_decl): Likewise.
18631         * hsa.h (struct hsa_symbol): New flag.
18633 2016-03-21  Richard Biener  <rguenther@suse.de>
18635         PR tree-optimization/70288
18636         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
18637         we do not estimate unsimplified all-constant conditionals or
18638         switches as optimized away.
18640 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
18642         PR rtl-optimization/69102
18643         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
18644         when we have a readonly dependency context.
18646 2016-03-18  Jeff Law  <law@redhat.com>
18648         PR rtl-optimization/70263
18649         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
18650         (update_equiv_regs): When trying to move a store to after the insn
18651         that sets the source of the store, make sure the store occurs after
18652         the insn that sets the source of the store.  When successful note
18653         the REG_EQUIV note created in the dump file.
18655 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
18656             Bernd Schmidt  <bschmidt@redhat.com>
18658         * doc/extend.texi: Document more potential problems with basic asms.
18660 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
18662         PR rtl-optimization/70278
18663         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
18664         VOIDmode.
18666 2016-03-18  Jason Merrill  <jason@redhat.com>
18668         * calls.c (load_register_parameters): Fix zero size sibcall logic.
18670 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
18672         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
18673         values to 128b regs.
18675 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
18677         PR tree-optimization/70252
18678         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
18679         boolean vector has a proper number of elements.
18680         (supportable_narrowing_operation): Likewise.
18682 2016-03-18  Tom de Vries  <tom@codesourcery.com>
18684         PR ipa/70269
18685         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
18687 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
18689         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
18690         instead of replace_rtx for DEBUG_INSNs.
18692 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18694         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
18695         load type reservations.
18697 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
18699         PR target/70188
18700         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
18701         define_constraint for "Q" and "T" constraints.
18703 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
18705         Tweak the pipeline model for Exynos M1
18707         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
18708         model.
18710 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
18712         PR c/70264
18713         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
18714         where one or both locations aren't within a line_map.
18716 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
18718         PR driver/70192
18719         * opts.c (finish_options): Don't set flag_pie to the default if
18720         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
18721         if it is -1.
18723 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
18725         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
18726         true as ALL_REGS argument to replace_rtx.
18728 2016-03-17  Richard Biener  <rguenther@suse.de>
18730         PR debug/70271
18731         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
18732         last.
18734 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
18736         PR target/70245
18737         * rtl.h (replace_rtx): Add ALL_REGS argument.
18738         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
18739         equality and assert mode is the same, instead of just rtx pointer
18740         equality.
18741         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
18742         true as ALL_REGS argument to replace_rtx.
18744 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
18746         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
18747         for boolean vector with vector mode only.
18748         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18750 2016-03-17  Nick Clifton  <nickc@redhat.com>
18752         PR target/70162
18753         * config/rx/rx.c (rx_print_integer): Print negative constants in
18754         decimal.
18756 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
18758         PR target/70261
18759         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
18761 2016-03-16  Richard Henderson  <rth@redhat.com>
18762             Richard Biener  <rguenth@suse.de>
18764         PR middle-end/70240
18765         PR middle-end/68215
18766         PR tree-opt/68714
18767         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
18768         first operand as is_gimple_condexpr.
18770         PR middle-end/70240
18771         PR middle-end/68215
18772         Revert r231575
18773         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
18774         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
18775         Do not gimplify the result.
18776         (do_unop): Adjust call to tree_vec_extract.
18777         (do_binop): Likewise.
18778         (do_compare): Likewise.
18779         (do_plus_minus): Likewise.
18780         (do_negate): Likewise.
18781         (expand_vector_condition): Likewise.
18782         (do_cond): Likewise.
18784 2016-03-16  Richard Henderson  <rth@redhat.com>
18786         PR target/70048
18787         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
18788         (aarch64_classify_address): Use it.
18789         (aarch64_legitimize_address): Force all subexpressions of PLUS
18790         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
18792 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
18793             Richard Biener  <rguenth@suse.de>
18795         PR target/70245
18796         * rtlanal.c (replace_rtx): For REG, if from is a REG,
18797         return to even if only REGNO is equal, and assert
18798         mode is the same.
18800 2016-03-11  Jeff Law  <law@redhat.com>
18802         PR rtl-optimization/70224
18803         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
18805 2016-03-16  Richard Henderson  <rth@redhat.com>
18807         PR middle-end/70199
18808         * function.h (struct function): Add has_forced_label_in_static.
18809         * gimplify.c (force_labels_r): Set it.
18810         * lto-streamer-in.c (input_struct_function_base): Read it.
18811         * lto-streamer-out.c (output_struct_function_base): Write it.
18812         * tree-inline.c (has_label_address_in_static_1): Remove.
18813         (copy_forbidden): Remove fndecl parameter; test
18814         has_forced_label_in_static.
18815         (inline_forbidden_p): Update call to copy_forbidden.
18816         (tree_versionable_function_p): Likewise.
18817         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
18818         (chkp_versioning): Likewise.
18819         * tree-inline.h (copy_forbidden): Update decl.
18821 2016-03-16  Marek Polacek  <polacek@redhat.com>
18823         PR c/70093
18824         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
18825         function being thunked if the result type doesn't have fixed size.
18826         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
18827         doesn't have fixed size.
18829 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
18831         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
18832         reporting malformed loop nest.
18834 2016-03-16  Tom de Vries  <tom@codesourcery.com>
18836         PR lto/70187
18837         * ipa-devirt.c (possible_polymorphic_call_targets): Move
18838         nodes.length () == 1 test to before first nodes[0] access.
18840 2016-03-16  Tom de Vries  <tom@codesourcery.com>
18842         PR tree-optimization/68715
18843         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
18844         single_pred_p test.
18846 2016-03-16  Tom de Vries  <tom@codesourcery.com>
18848         PR tree-optimization/68809
18849         * graphite-scop-detection.c (same_close_phi_node): Test if result types
18850         are the same.
18852 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
18853             Sandra Loosemore  <sandra@codesourcery.com>
18855         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
18856         on leaf attribute. Mention ELF interposition problems.
18858 2016-03-16  Alan Modra  <amodra@gmail.com>
18860         PR rtl-optimization/69195
18861         PR rtl-optimization/47992
18862         * ira.c (indirect_jump_optimize): Ignore artificial defs.
18863         Add comments.
18865 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
18867         PR bootstrap/69513
18868         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
18870 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18872         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
18874 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
18876         PR rtl-optimization/70222
18877         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
18878         optimization if mode is different from result_mode, queue up masking
18879         of the result in outer_op.  Formatting fix.
18881         PR middle-end/70239
18882         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
18883         of safe_grow.
18885 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
18887         PR rtl-optimization/69032
18888         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
18889         looping backwards over basic block insns.
18891 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
18893         PR target/66660
18894         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
18895         to non-speculative when propagating trap bits.
18897 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
18899         PR rtl-optimization/63384
18900         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
18901         DEBUG_INSN_P insns.
18903 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
18905         PR target/64411
18906         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
18907         factored out from ...
18908         (sched_analyze_insn): ... here.
18909         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
18910         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
18911         get_implicit_reg_pending_clobbers in it.
18912         (setup_id_reg_sets): Use setup_id_implicit_regs.
18913         (deps_init_id): Ditto.
18915 2016-03-15  Tom de Vries  <tom@codesourcery.com>
18917         PR ipa/70161
18918         * cgraph.c (cgraph_node::get_body): Save, reset and restore
18919         dump_file_name.
18920         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
18921         execute_function_dump.
18922         (execute_one_pass): Don't dump function if it will be dumped after ipa
18923         transform.
18925 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
18927         * genrecog.c (match_pattern_2): If pred is NULL don't call
18928         safe_predicate_mode on it.
18930 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
18932         PR middle-end/70219
18933         * lra-constraints.c (delete_move_and_clobber): Change assertion
18934         to also allow dregno == 0.
18936 2016-03-14  Richard Henderson  <rth@redhat.com>
18938         PR tree-opt/68714
18939         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
18940         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
18941         (reassociate_bb): Use optimize_vec_cond_expr; avoid
18942         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
18943         on vectors.
18945 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
18947         PR target/70083
18948         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
18949         regs.
18950         (lra_create_live_ranges_1): initialize hard register biggest_mode to
18951         VOIDmode.
18952         * lra-constraints.c (split_reg): For hard regs, try to find the
18953         biggest single-register mode used in the function.
18955 2016-03-14  Richard Biener  <rguenther@suse.de>
18957         PR tree-optimization/56365
18958         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
18959         constants to compare against.
18961 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
18963         PR target/70098
18964         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
18965         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
18966         (define_split for the GPR case): Use int_reg_operand instead of
18967         gpc_reg_operand for the output.
18969 2016-03-14  Tom de Vries  <tom@codesourcery.com>
18971         PR tree-optimization/70045
18972         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
18973         create_empty_if_region_on_edge argument.
18975 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
18977         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
18978         (STACK_CHECK_PROTECT): Likewise.
18979         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
18980         (STACK_CHECK_PROTECT): Likewise.
18981         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
18982         (STACK_CHECK_PROTECT): Likewise.
18983         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
18984         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18985         (STACK_CHECK_PROTECT): Likewise.
18987 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
18989         PR rtl-optimization/69307
18990         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
18991         registers in modes that span more than one register.
18993 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
18995         PR target/69614
18996         * lra-constraints.c (delete_move_and_clobber): New.
18997         (remove_inheritance_pseudos): Use it.
18999 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
19001         PR ada/70017
19002         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
19003         the libcall is LCT_THROW.
19004         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
19005         for the checking routine.
19007 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
19009         PR target/70131
19010         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
19011         optimization if we have direct move.
19012         (roundu32<mode>2_fprs): Likewise.
19014 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
19016         PR target/70123
19017         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
19018         be rematerialized.
19019         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
19020         Arguments swapped.  All callers changed.  Take reg_renumber into
19021         account, and Calculate and compare register ranges for hard regs.
19023 2016-03-11  Jeff Law  <law@redhat.com>
19025         PR tree-optimization/70190
19026         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19027         Handle cases where we can not extract the taken edge, even though we
19028         found a constant value.
19030         PR tree-optimization/64058
19031         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
19032         (num_coalesce_pairs): Move up earlier in file.
19033         (find_coalesce_pair): Initialize the INDEX field for each pair
19034         discovered.
19035         (compare_pairs): No longer sort on the elements in each pair.
19036         Instead break ties with the index of the coalesce pair.
19038 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19040         PR target/70002
19041         * config/aarch64/aarch64-protos.h
19042         (aarch64_save_restore_target_globals): New prototype.
19043         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
19044         Call the above when popping pragma.
19045         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
19046         New function.
19047         (aarch64_set_current_function): Rewrite using the above.
19049 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
19051         PR tree-optimization/70177
19052         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
19053         (extract_ops_from_tree): ... this.  In the 2 argument
19054         overload remove _1 suffix.
19055         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
19056         (extract_ops_from_tree): ... this.
19057         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
19058         Adjust callers.
19059         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
19060         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
19061         extract_ops_from_tree instead of 2 operand one.
19063 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
19065         PR tree-optimization/70013
19066         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
19067         for constant-pool entries.
19069 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
19071         PR rtl-optimization/70174
19072         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
19073         followed by gen_lowpart on force_reg instead of just gen_lowpart.
19075         PR tree-optimization/70169
19076         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
19077         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
19078         for unknown codes.
19080 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
19081             Jakub Jelinek  <jakub@redhat.com>
19083         PR target/70160
19084         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
19085         of uninitialized values.
19087 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19089         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
19090         define_expand.
19091         ("*trunctddd2"): New pattern definition.
19092         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
19093         TD->DD truncation.
19095 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19097         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
19098         definitions for BFP and DFP rounding modes.
19099         ("fixuns_truncdddi2", "fixuns_trunctddi2")
19100         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
19101         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
19102         ("fix_trunctf<mode>2"): Use the new constants instead of magic
19103         numbers.
19105 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19107         * config/s390/constraints.md: Adjust comment.
19108         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
19109         s390_decompose_addrstyle_without_index.
19110         * config/s390/predicates.md (shift_count_or_setmem_operand):
19111         Rename to setmem_operand.
19112         * config/s390/s390-protos.h
19113         (s390_decompose_shift_count): Rename to
19114         s390_decompose_addrstyle_without_index.
19115         * config/s390/s390.c (s390_decompose_shift_count)
19116         (s390_mem_constraint, print_shift_count_operand)
19117         (print_operand_address, print_operand): Rename
19118         s390_decompose_shift_count to
19119         s390_decompose_addrstyle_without_index and rename
19120         print_shift_count_operand to print_addrstyle_operand troughout the
19121         file.
19122         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
19123         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
19124         Rename shift_count_or_setmem_operand to setmem_operand.
19125         * config/s390/vx-builtins.md ("vec_insert<mode>")
19126         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
19127         nonmemory_operand.
19129 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19131         PR target/70168
19132         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
19133         Handle overlapping retval and newval.
19135 2016-03-10  Nick Clifton  <nickc@redhat.com>
19137         PR target/7044
19138         * config/aarch64/aarch64.c
19139         (aarch64_override_options_after_change_1): When forcing
19140         flag_omit_frame_pointer to be true, use a special value that can
19141         be detected if this function is called again, thus preventing
19142         flag_omit_leaf_frame_pointer from being forced to be false.
19144 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19146         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
19147         Set x_flag_omit_leaf_frame_pointer when handling
19148         -momit-leaf-frame-pointer.
19150 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19152         PR lto/69589
19153         * cgraph.c (cgraph_node::dump): Dump split_part and
19154         indirect_call_target.
19155         * cgraph.h (cgraph_node): Add indirect_call_target flag.
19156         * ipa.c (has_addr_references_p): Cleanup.
19157         (is_indirect_call_target_p): New.
19158         (walk_polymorphic_call_targets): Do not mark virtuals that may be
19159         called indirectly as local.
19160         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
19162 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19164         PR ipa/69630
19165         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
19166         on cxa_pure_virtual.
19168 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19170         PR lto/69589
19171         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
19173 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19175         PR lto/69589
19176         * tree.c (need_assembler_name_p): Only record main variant type names.
19178 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
19180         PR target/70113.
19181         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
19182         Always define to 0 or 1.
19183         (TARGET_FIX_ERR_A53_843419): New macro.
19184         * config/aarch64/aarch64-elf-raw.h
19185         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
19186         * config/aarch64/aarch64-linux.h: Likewise.
19187         * config/aarch64/aarch64.c
19188         (aarch64_override_options_after_change_1): Do not default
19189         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
19190         843419 is on.
19191         (aarch64_attributes): Handle fix-cortex-a53-843419.
19192         (aarch64_can_inline_p): Likewise.
19193         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
19195 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
19196             Jakub Jelinek  <jakub@redhat.com>
19198         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
19199         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
19200         DECL_COMMONS if flag_unconstrained_commons is set.
19201         * tree-dfa.c (get_ref_base_and_extent): Likewise.
19202         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
19203         (funconstrained-commons): Document.
19205 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
19207         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
19208         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
19210 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
19212         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
19213         has a proper number of elements.
19215 2016-03-10  Alan Modra  <amodra@gmail.com>
19217         PR rtl-optimization/69195
19218         PR rtl-optimization/47992
19219         * ira.c (recorded_label_ref): Delete.
19220         (update_equiv_regs): Return void.
19221         (indirect_jump_optimize): New function.
19222         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
19223         before regstat_compute_ri.  Don't rebuild_jump_labels here.
19224         Delete update_regstat.
19226 2016-03-10  Richard Biener  <rguenther@suse.de>
19228         PR tree-optimization/70128
19229         * tree-ssa-structalias.c (set_uids_in_ptset): Set
19230         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
19232 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
19234         PR tree-optimization/70152
19235         * tree-sra.c (replace_removed_params_ssa_names): Copy over
19236         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
19238         PR target/70086
19239         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
19240         instead of gen_sse2_loadlpd.
19241         * config/i386/sse.md (*vec_concatv2df): Rename to...
19242         (vec_concatv2df): ... this.
19244         PR tree-optimization/70127
19245         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
19247 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
19249         PR c/68473
19250         PR c++/70105
19251         * diagnostic-show-locus.c (compatible_locations_p): New function.
19252         (layout::layout): Sanitize ranges using compatible_locations_p.
19254 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
19256         PR c/68473
19257         PR c++/70105
19258         * diagnostic-show-locus.c (layout_range::layout_range): Replace
19259         location_range param with three const expanded_locations * and a
19260         bool.
19261         (layout::layout): Replace call to
19262         rich_location::lazily_expand_location with get_expanded_location.
19263         Extract the range and perform location expansion here, passing
19264         the results to the layout_range ctor.
19265         * diagnostic.c (source_range::debug): Delete.
19266         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
19267         of rich_location::get_expanded_location.
19268         * gcc-rich-location.c (get_range_for_expr): Delete.
19269         (gcc_rich_location::add_expr): Reimplement to avoid the
19270         rich_location::add_range overload that took a location_range,
19271         passing a location_t instead.
19273 2016-03-09  Richard Biener  <rguenther@suse.de>
19274         Jakub Jelinek  <jakub@redhat.com>
19276         PR tree-optimization/70138
19277         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
19278         Also skip vect_double_reduction_def.
19280 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
19282         PR target/70049
19283         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
19284         if the operand is "m".
19286 2016-03-09  Nathan Sidwell  <nathan@acm.org>
19288         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
19290 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
19292         * config/i386/i386.c (processor_target_table): Fix cost table
19293         intialization order for znver1.
19295 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
19297         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
19298         - becuase -> because.
19299         * ipa-reference.c (ignore_module_statics): Likewise.
19300         * cgraph.c (cgraph_node::get_body): Likewise.
19301         * ipa-inline.c (early_inliner): Likewise.
19302         * ipa-devirt.c (types_same_for_odr): Likewise.
19303         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
19304         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
19306 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19308         * tree-ssa-math-opts.c: Fix typo in comment.
19310 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
19312         PR target/70110
19313         * config/i386/i386.c (scalar_chain::make_vector_copies,
19314         scalar_chain::convert_reg): Call end_sequence in between
19315         get_insns and emit_conversion_insns rather than after both
19316         calls.
19318 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
19320         PR target/70064
19321         * config/i386/i386.h (machine_function): Add
19322         pc_thunk_call_expanded flag.
19323         (ix86_pc_thunk_call_expanded): New define.
19324         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
19325         (*set_got): Rename insn pattern from set_got.
19326         (*set_got_labelled): Rename inst pattern from set_got_labelled.
19327         * config/i386/i386.c (ix86_compute_frame_layout): Use
19328         ix86_pc_thunk_call_expanded to prevent red-zone.
19330 2016-03-07  Martin Jambor  <mjambor@suse.cz>
19332         * hsa.h (hsa_get_ctor_statements): Declare.
19333         (hsa_get_dtor_statements): Likewise.
19334         (hsa_get_kernel_dispatch_type): Likewise.
19335         * hsa.c (hsa_get_ctor_statements): New function.
19336         (hsa_get_dtor_statements): Likewise.
19337         (hsa_get_kernel_dispatch_type): Likewise.
19338         * hsa-brig.c (hsa_cdtor_statements): Removed.
19339         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
19340         hsa_get_dtor_statements.
19341         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
19342         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
19344 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
19346         * config/arm/arm-cores.def (cortex-r8): New.
19347         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
19348         * config/arm/arm-tune.md: Likewise.
19349         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
19351 2016-03-07  Martin Sebor  <msebor@redhat.com>
19353         PR rtl-optimization/19705
19354         * doc/invoke.texi (Options That Control Optimization): Clarify
19355         -fno-branch-count-reg.
19357 2016-02-26  Richard Biener  <rguenther@suse.de>
19358             Jeff Law  <law@redhat.com>
19360         PR tree-optimization/69740
19361         * cfghooks.c (remove_edge): Request loop fixups if we delete
19362         an edge that might turn an irreducible loop into a natural
19363         loop.
19364         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
19365         Move after definition of loops_state_clear.
19367 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
19369         PR rtl-optimization/69052
19370         * rtlanal.c (commutative_operand_precedence): Set higher precedence
19371         to CONST_WIDE_INT.
19373 2016-03-07  Tom de Vries  <tom@codesourcery.com>
19375         PR tree-optimization/70116
19376         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
19377         is_tm_ending stmts and ubsan/asan internal functions.
19378         (find_duplicate): Use it.  Don't test is_tm_ending here.
19380 2016-03-07  Richard Biener  <rguenther@suse.de>
19382         PR tree-optimization/70115
19383         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
19384         (propagate_constants_for_unrolling): Use replace_uses_by.
19386 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
19388         PR middle-end/69916
19389         * omp-low.c (struct oacc_loop): Add ifns.
19390         (new_oacc_loop_raw): Initialize it.
19391         (finish_oacc_loop): Clear mask & flags if no ifns.
19392         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
19393         (oacc_loop_xform_loop): Add ifns arg & adjust.
19394         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
19396 2016-03-07  Richard Henderson  <rth@redhat.com>
19398         PR rtl-opt/70061
19399         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
19400         (insert_value_copy_on_edge): Likewise.
19402 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19404         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
19406 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19408         PR target/62281
19409         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
19411 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
19413         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
19415 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
19417         Fix sseimul type attribute.
19418         * config/i386/znver1.md
19419         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
19420         znver1_sseimul_avx256_load) : Fix the type attribute.
19421         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
19422         pipe usage and latency.
19424 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
19426         PR c++/70084
19427         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
19428         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
19429         to the right type.
19431 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
19433         PR c/69973
19434         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
19436         PR rtl-optimization/69941
19437         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
19438         the reg share its mode.
19440 2016-03-04  Jeff Law  <law@redhat.com>
19442         PR tree-optimization/69196
19443         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19444         If the both SSA_NAMEs are anonymous, then consider them unassociated
19445         and include the PHI in the statement count.
19447 2016-03-05  Tom de Vries  <tom@codesourcery.com>
19449         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
19450         construct in oacc routine.  Check for oacc region in oacc routine.
19452 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
19454         PR target/70062
19455         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
19456         2016-02-22 changes, instead don't recurse if RECUR is already true.
19457         Don't change *dynamic_check if RECUR.  Adjust recursive caller
19458         to pass true to the new argument.
19459         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
19461         PR target/70059
19462         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
19463         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
19464         fixes.
19465         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
19467 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
19469         PR rtl-optimization/57676
19470         * lra-assigns.c (lra_assign): Guard test for maximum iterations
19471         with flag_checking.
19473 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
19475         * tree-vect-patterns.c (search_type_for_mask): Handle
19476         comparison of booleans.
19478 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
19480         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
19481         Fix @xref usage.
19483         PR debug/69947
19484         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
19485         all other ops that have dw_val_class_die_ref operands,
19486         and DW_OP_GNU_entry_value.
19488 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19490         PR rtl-optimization/69904
19491         * config/arm/arm.c (arm_cannot_copy_insn_p):
19492         Return true for load-exclusive instructions.
19494 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
19496         PR target/70021
19497         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
19498         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
19499         the pattern no matter if it is used just by non-pattern, pattern
19500         or mix thereof.
19501         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
19502         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
19503         oprnd1 def_stmt is in pattern, don't look through it.
19505 2016-03-03  Marek Polacek  <polacek@redhat.com>
19507         PR middle-end/70050
19508         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
19510 2016-03-03  Martin Liska  <mliska@suse.cz>
19512         PR tree-optimization/70043
19513         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
19514         previous statement if we see a debug statement.
19516 2016-03-03  Richard Biener  <rguenther@suse.de>
19518         PR tree-optimization/55936
19519         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
19520         parameter and guard unsafe equivalence use.
19521         (vrp_evaluate_conditional_warnv_with_ops): Always use
19522         safe equivalences but not via the quadratic compare_names
19523         helper.
19525 2016-03-03  Michael Collison  <michael.collison@linaro.org>
19527         PR target/70014
19528         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
19529         for operand 1 to s_register_operand. Change predicate for operand
19530         2 to arm_not_immediate_operand.
19532 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
19534         * doc/tm.texi: Regenerated.
19536 2016-03-02  Richard Henderson  <rth@redhat.com>
19538         PR rtl-opt/67145
19539         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
19540         simplification when all args are positive non-fixed registers.
19542 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19544         * target.def (lra_p): Specify that new ports should use LRA.
19546 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
19548         PR libgomp/69555
19549         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
19550         gimplify_type_sizes the type they refer to.
19551         (omp_notice_variable): Handle reference vars to VLAs.
19552         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
19553         reference to VLA decls in the second pass instead of first pass.
19555 2016-03-02  Tom de Vries  <tom@codesourcery.com>
19557         PR tree-optimization/68659
19558         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
19559         new_expr == NULL_TREE.
19560         (get_new_name): Handle ADDR_EXPR.
19562 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
19564         PR rtl-optimization/69052
19565         * loop-invariant.c (canonicalize_address): New function.
19566         (inv_can_prop_to_addr_use): Check validity of address expression
19567         which is canonicalized by above function.
19569 2016-03-02  Alan Modra  <amodra@gmail.com>
19571         PR ipa/69990
19572         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
19573         larger alignment.
19575 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
19577         PR target/70028
19578         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
19579         (*movhi_internal): Put mask moves from and to memory separately
19580         from moves from/to GPRs.
19582 2016-03-02  Richard Biener  <rguenther@suse.de>
19584         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
19585         GENERIC expressions in GIMPLE.
19587 2016-03-02  Richard Biener  <rguenther@suse.de>
19589         * config/i386/i386.c (type_natural_mode): Fix typo.
19591 2016-03-02  Nick Clifton  <nickc@redhat.com>
19593         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
19595 2016-03-02  Richard Biener  <rguenther@suse.de>
19596             Uros Bizjak  <ubizjak@gmail.com>
19598         PR target/67278
19599         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
19601 2016-03-02  Richard Biener  <rguenther@suse.de>
19603         PR middle-end/67278
19604         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
19606 2016-03-02  Marek Polacek  <polacek@redhat.com>
19608         PR c/67854
19609         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
19610         "is promoted to" warning.
19612 2016-03-01  DJ Delorie  <dj@redhat.com>
19614         * config.gcc: Deprecate mep-*.
19616 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
19618         PR middle-end/70025
19619         * lra-constraints.c (regno_val_use_in): New.
19620         (match_reload): Use it instead of regno_use_in.
19622 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
19624         PR rtl-optimization/70007
19625         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
19626         references present in REG_EQUAL notes attached to non-SET patterns.
19628 2016-03-01  Jeff Law  <law@redhat.com>
19630         PR tree-optimization/69196
19631         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19632         Appropriately clamp the number of statements to copy when the
19633         thread path does not traverse a loop backedge.
19635         PR tree-optimization/69196
19636         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19637         Do count some PHIs in the thread path against the insn count.  Decrease
19638         final statement count by one as the control statement in the last
19639         block will get removed.  Remove special cased code for handling PHIs
19640         in the last block.
19642 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
19644         PR target/70027
19645         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
19646         asm dialect alternatives to explicit GOTPCREL calls.
19648 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
19650         PR ada/70017
19651         * ira.c (do_reload): Issue warning for generic stack checking here...
19652         * reload1.c (reload): ...instead of here and streamline it.
19654 2016-03-01  Nick Clifton  <nickc@redhat.com>
19656         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
19658 2016-03-01  Richard Biener  <rguenther@suse.de>
19660         PR tree-optimization/69983
19661         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
19662         types and fall back to operand_equal_p.
19664 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19666         Revert
19667         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19669         * config/s390/constraints.md ("jm8"): New constraint.
19670         * config/s390/predicates.md ("const_int_8bitset_operand"): New
19671         predicate.
19672         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
19673         into ...
19674         ("*setmem_long<setmem_and>"): New pattern.
19675         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
19676         into ...
19677         ("*setmem_long_31z<setmem_and>"): New pattern.
19678         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
19679         New substitution rules with the required attributes.
19682 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19684         Revert
19685         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19687         * gensupport.c (process_substs_on_one_elem): Split loop to
19688         complete mark_operands_used_in_match_dup on all expressions in the
19689         vector first.
19690         (adjust_operands_numbers): Inline into process_substs_on_one_elem
19691         and remove function.
19693 2016-03-01  Richard Biener  <rguenther@suse.de>
19695         PR middle-end/70022
19696         * fold-const.c (fold_indirect_ref_1): Fix range checking for
19697         vector BIT_FIELD_REF extract.
19699 2016-03-01  Richard Biener  <rguenther@suse.de>
19701         PR tree-optimization/69994
19702         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
19704 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
19706         PR tree-optimization/69956
19707         * tree-vect-stmts.c (supportable_widening_operation): Support
19708         multi-step conversion of boolean vectors.
19709         (supportable_narrowing_operation): Likewise.
19711 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19713         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
19714         anymore.
19716 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19718         * config/s390/subst.md (DSI_VI): New mode iterator.
19719         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
19720         * config/s390/vector.md ("vec_set<mode>"): Move expander before
19721         the insn definition.
19722         ("*vec_set<mode>"): Change predicate and add alternative to
19723         support only either register or const_int operands as element
19724         selector.
19725         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
19726         operands.
19727         ("vec_extract<mode>"): New expander.
19728         ("*vec_extract<mode>"): New insn definition supporting reg and
19729         const_int element selectors.
19730         ("*vec_extract<mode>_plus"): New insn definition supporting
19731         reg+const_int element selectors.
19732         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
19733         following expander+insn definition.
19734         ("<vec_shifts_name><mode>3"): New expander.
19735         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
19737 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19739         * config/s390/s390.md ("*tabort_1"): Change predicate to
19740         nonmemory_operand.  Add a second alternative to cover
19741         register as well as const int operands.
19742         ("*tabort_1_plus"): New pattern definition.
19744 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19746         * config/s390/s390.md ("*ashrdi3_cc_31")
19747         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
19748         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
19749         Merge insn definitions into ...
19750         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
19751         New pattern definition.
19752         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
19753         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
19754         ("*ashr<mode>3_and"): Merge insn definitions into ...
19755         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
19756         New pattern definition.
19757         * config/s390/subst.md ("addr_style_op_cc_subst")
19758         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
19759         substitutions patterns plus attributes.
19760         Add ashiftrt to SUBST iterator.
19762 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19764         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
19765         op2 to nonmemory_operand.
19766         ("*<shift>di3_31", "*<shift>di3_31_and"):
19767         Merge into single pattern definition ...
19768         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
19769         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
19770         pattern definition ...
19771         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
19772         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
19773         iterator.
19775 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19777         * config/s390/predicates.md (const_int_6bitset_operand): New
19778         predicate.
19779         * config/s390/s390.md: Include subst.md.
19780         ("rotl<mode>3"): New expander.
19781         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
19782         ...
19783         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
19784         * config/s390/subst.md: New file.
19786 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19788         * config/s390/s390.md ("op_type", "atype", "length" attributes):
19789         Remove RRR type.  It doesn't really exist.
19790         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
19791         attributes.
19792         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
19793         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
19794         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
19795         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
19796         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
19797         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
19798         `enabled' attribute.
19800 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19802         * gensupport.c (process_substs_on_one_elem): Split loop to
19803         complete mark_operands_used_in_match_dup on all expressions in the
19804         vector first.
19805         (adjust_operands_numbers): Inline into process_substs_on_one_elem
19806         and remove function.
19808 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
19810         PR target/69706
19811         * config/sparc/sparc.c (NWORDS_UP): Rename to...
19812         (CEIL_NWORDS): ...this.  Use CEIL macro.
19813         (compute_fp_layout): Adjust to above renaming.
19814         (function_arg_union_value): Likewise.
19815         (sparc_arg_partial_bytes): Likewise.
19816         (sparc_function_arg_advance): Likewise.
19818 2016-02-29  Jeff Law  <law@redhat.com>
19820         PR tree-optimization/70005
19821         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
19822         where an object with a boolean range is compared against a value
19823         outside [0..1].
19825         PR tree-optimization/69999
19826         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
19827         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
19828         loop cleanups.
19830 2016-02-29  Richard Biener  <rguenther@suse.de>
19832         PR tree-optimization/69994
19833         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
19834         (get_unary_op): Look through nop conversions.
19835         (ops_equal_values_p): New function, look for equality diregarding
19836         nop conversions.
19837         (eliminate_plus_minus_pair): Use ops_equal_values_p
19838         (repropagate_negates): Do not use get_unary_op here.
19840 2016-02-29  Martin Liska  <mliska@suse.cz>
19842         * system.h: Poison ENABLE_CHECKING macro.
19844 2016-02-29  Martin Liska  <mliska@suse.cz>
19846         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
19847         is presented in dump flags.
19848         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
19849         (hsa_regalloc): Likewise.
19851 2016-02-19  Richard Biener  <rguenther@suse.de>
19853         PR tree-optimization/69980
19854         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
19855         permutation of those we need to keep.
19857 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
19859         PR target/69706
19860         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
19861         (NWORDS_UP): ...this
19862         (init_cumulative_args): Minor tweaks.
19863         (sparc_promote_function_mode): Likewise.
19864         (scan_record_type): Delete.
19865         (traverse_record_type): New function template.
19866         (classify_data_t): New structure type.
19867         (classify_registers): New inline function.
19868         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
19869         exhausted.  Instantiate traverse_record_type on classify_registers and
19870         deal with the case of a structure passed in slot #15 with no FP field
19871         in the first word.
19872         (assign_data_t): New structure type.
19873         (compute_int_layout): New static function.
19874         (compute_fp_layout): Likewise.
19875         (count_registers): New inline function.
19876         (assign_int_registers): New static function.
19877         (assign_fp_registers): Likewise.
19878         (assign_registers): New inline function.
19879         (function_arg_record_value_1): Delete.
19880         (function_arg_record_value_2): Likewise.
19881         (function_arg_record_value_3): Likewise.
19882         (function_arg_record_value): Adjust to above changes.  Instantiate
19883         traverse_record_type on count_registers to first count the number of
19884         registers to be used and then on assign_registers to assign them.
19885         (function_arg_union_value): Adjust to above renaming.
19886         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
19887         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
19888         case of a structure passed in slot #15
19889         (sparc_function_arg_advance): Likewise.
19890         (function_arg_padding): Minor tweak.
19892 2016-02-29  Richard Biener  <rguenther@suse.de>
19894         PR tree-optimization/69720
19895         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
19896         the adjustment_def path for possibly vectorized defs.
19897         (vect_create_epilog_for_reduction): Handle vectorized initial
19898         defs properly.
19900 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
19902         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
19904 2016-02-27  Jeff Law  <law@redhat.com>
19906         Revert
19907         2016-02-26  Richard Biener  <rguenther@suse.de>
19908                     Jeff Law  <law@redhat.com>
19910         PR tree-optimization/69740
19911         * cfghooks.c (remove_edge): Request loop fixups if we delete
19912         an edge that might turn an irreducible loop into a natural
19913         loop.
19915 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
19917         PR rtl-optimization/69896
19918         * tree-vect-generic.c (get_compute_type): Avoid single element
19919         vector types.
19921 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
19923         Rename the AArch64 tuning option and related functions to enable the
19924         Newton series for the reciprocal square root to reflect its
19925         approximative characteristic.
19927         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
19928         function to "aarch64_emit_approx_rsqrt".
19929         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
19930         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
19931         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
19932         (xgene1_tunings): Likewise.
19933         (use_rsqrt_p): Likewise.
19934         (aarch64_emit_swrsqrt): Use new function name.
19935         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
19936         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
19937         text explaining this option.
19938         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
19940 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
19942         PR target/69969
19943         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
19944         complain about -mallow-movmisalign without -mvsx if
19945         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
19947 2016-02-26  Joel Sherrill  <joel@rtems.org>
19949         * config.gcc: Add x86_64-*-rtems*.
19950         * config/i386/rtems-64.h: New file.
19952 2016-02-26  Joel Sherrill  <joel@rtems.org>
19954         * config.gcc: Add aarch64-*-rtems*.
19955         * config/aarch64/rtems.h: New file.
19957 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
19959         PR target/69946
19960         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
19961         shift amount using %h.  Add comment.
19963 2016-02-26  Richard Biener  <rguenther@suse.de>
19964             Jeff Law  <law@redhat.com>
19966         PR tree-optimization/69740
19967         * cfghooks.c (remove_edge): Request loop fixups if we delete
19968         an edge that might turn an irreducible loop into a natural
19969         loop.
19971 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19973         PR middle-end/69920
19974         * tree-sra.c (sra_modify_assign): Do not remove loads of
19975         uninitialized aggregates to SSA_NAMEs.
19977 2016-02-26  Richard Henderson  <rth@redhat.com>
19979         PR target/69709
19980         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
19981         pseudo in case the target rtx matches the source of the left
19982         shift.
19984 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19986         PR hsa/69568
19987         * hsa.h (hsa_type_packed_p): Declare.
19988         * hsa.c (hsa_type_packed_p): New function.
19989         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
19990         loads.
19991         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
19992         * hsa-brig.c (emit_basic_insn): Likewise.
19994 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19996         pr hsa/69674
19997         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
19998         pointers.
19999         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
20001 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20003         * hsa.h (is_a_helper): New overload for hsa_op_immed for
20004         hsa_op_with_type operands.
20005         (hsa_unsigned_type_for_type): Declare.
20006         * hsa.c (hsa_unsigned_type_for_type): New function.
20007         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
20008         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
20009         the finalizer.  Do not emit extra move.
20011 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20013         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
20014         atomic operations in private segment.
20016 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20018         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
20019         statements to wi->info.  Also disallow omp simd constructs.
20020         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
20021         for not gridifying.  Dump special string for omp_for.
20023 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20025         PR target/69245
20026         * config/aarch64/aarch64.c (aarch64_set_current_function):
20027         Save/restore target globals when switching to
20028         target_option_default_node.
20030 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20032         PR target/69613
20033         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
20034         Return 0 if !SHIFT_COUNT_TRUNCATED.
20036 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
20037             Eric Botcazou  <ebotcazou@adacore.com>
20039         PR rtl-optimization/69891
20040         * dse.c (scan_insn): If we can't figure out memset arguments
20041         or they are non-constant, call clear_rhs_from_active_local_stores.
20043 2016-02-26  Martin Liska  <mliska@suse.cz>
20045         * doc/extend.texi: Mention clog10, clog10f an clog10l
20046         in Builtins section.
20048 2016-02-26  Martin Liska  <mliska@suse.cz>
20050         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
20051         CHECKING_P.
20052         (resolve_args_picking_1): Likewise.
20053         * dwarf2out.h (struct GTY): Likewise.
20055 2016-02-26  Martin Liska  <mliska@suse.cz>
20057         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
20058         with flag_checking.
20059         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
20061 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
20062             Martin Liska  <mliska@suse.cz>
20064         * doc/install.texi: Mention --enable-valgrind-annotations.
20066 2016-02-26  Richard Biener  <rguenther@suse.de>
20068         PR tree-optimization/69551
20069         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
20070         looking through aliases adjust DECL_PT_UID to refer to the
20071         ultimate alias target.
20073 2016-02-25  Martin Liska  <mliska@suse.cz>
20075         PR middle-end/69919
20076         * alloc-pool.c (after_memory_report): New variable.
20077         * alloc-pool.h (base_pool_allocator ::release): Do not use
20078         the infrastructure if after_memory_report.
20079         * toplev.c (toplev::main): Mark after memory report.
20081 2016-02-25  Richard Biener  <rguenther@suse.de>
20083         PR tree-optimization/48795
20084         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
20086 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
20088         PR driver/68463
20089         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
20090         offloading is enabled and -fopenacc or -fopenmp is specified.
20091         (CRTOFFLOADEND): Likewise.
20092         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
20093         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
20094         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
20095         (offload_objects_file_name): New static var.
20096         (tool_cleanup): Remove offload_objects_file_name file.
20097         (find_offloadbeginend): Replace with ...
20098         (find_crtoffloadtable): ... this.
20099         (run_gcc): Remove offload_argc and offload_argv.
20100         Get offload_objects_file_name from -foffload-objects=... option.
20101         Read names of object files with offload from this file, pass them to
20102         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
20103         don't pass offloadbegin and offloadend to the linker.  Don't pass
20104         offload non-LTO files to the linker, because now they're not claimed.
20106 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
20108         PR ipa/69630
20109         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
20110         on builtin_unreachable.
20112 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
20114         PR rtl-optimization/69896
20115         * regcprop.c: Include cfgrtl.h.
20116         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
20117         than remembered mode, either delete it (if noop_move_p), or
20118         treat like copy_p but not noop_p instruction.
20120 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
20122         PR debug/69705
20123         * dwarf2out.c (gen_variable_die): Work around buggy LTO
20124         - allow NULL decl for Fortran DW_TAG_common_block variables.
20126 2016-02-24  Jason Merrill  <jason@redhat.com>
20128         * common.opt (flifetime-dse): Add -flifetime-dse=1.
20130 2016-02-24  Richard Biener  <rguenther@suse.de>
20131             Jakub Jelinek  <jakub@redhat.com>
20133         PR middle-end/69760
20134         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
20135         conditionally executed ops to well-defined overflow behavior.
20137 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
20139         PR middle-end/69915
20140         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
20141         elements.
20143 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20145         PR rtl-optimization/69886
20146         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
20147         argument.  Use it when checking validity of set instructions.
20148         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
20149         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
20150         callsite.
20151         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
20152         * store-motion.c (find_moveable_store): Update
20153         can_assign_to_reg_without_clobbers_p callsite.
20155 2016-02-24  Richard Biener  <rguenther@suse.de>
20157         PR middle-end/68963
20158         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
20159         bogus check.
20160         (record_nonwrapping_iv): Do not fall back to the low/high bound
20161         for non-constant IV bases if the stmt is not always executed.
20163 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20165         * config/arm/arm-cores.def (cortex-a32): New entry.
20166         * config/arm/arm-tables.opt: Regenerate.
20167         * config/arm/arm-tune.md: Regenerate.
20168         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
20169         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
20170         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
20171         for -mcpu and -mtune.
20173 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20175         PR target/69875
20176         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
20177         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
20178         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
20179         (atomic_loaddi_1): Delete.
20180         (atomic_loaddi): Rewrite expander using the above changes.
20182 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
20184         PR c/69918
20185         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
20186         2 to 3.
20188 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
20189             Richard Biener  <rguenth@suse.de>
20191         PR middle-end/69909
20192         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
20193         set_mem_attributes if tem is SSA_NAME which got expanded
20194         as a MEM.
20196 2016-02-24  Richard Biener  <rguenther@suse.de>
20198         PR tree-optimization/69907
20199         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
20200         end of permutations for BB vectorization.
20202 2016-02-24  Christian Bruel  <christian.bruel@st.com>
20204         * config/arm/arm-c.c (arm_option_override): Initialize
20205         target_option_current_node.
20206         * config/arm/arm.c (arm_pragma_target_parse): Replace
20207         build_target_option_node call by target_option_current_node.
20208         Set target_option_current_node.
20209         Fix comments.
20211 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
20213         PR target/69810
20214         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
20215         define_insn_and_split to define_insn.
20216         (zero_extendqi<mode>2_dot2): Same.
20217         (extendqi<mode>2_dot): Same.
20218         (extendqi<mode>2_dot2): Same.
20220 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
20222         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
20223         and add bypass for AES{D,E} and AESMC pairs.
20224         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
20225         and AESMC pairs.
20227 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
20229         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
20230         series for reciprocal square root in Exynos M1.
20232 2016-02-23  Martin Sebor  <msebor@redhat.com>
20234         PR c/69759
20235         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
20236         __builtin_alloca_with_align.
20238 2016-02-23  Richard Henderson  <rth@redhat.com>
20240         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
20241         (ix86_register_pragmas): Remove __seg_tls.
20242         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
20243         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
20244         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
20245         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
20246         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
20247         * doc/extend.texi (__seg_tls): Remove item.
20249 2016-02-23  Richard Biener  <rguenther@suse.de>
20251         * alloc-pool.h (struct allocation_object): Make id member
20252         conditional on CHECKING_P again.
20253         (get_instance): Adjust.
20254         (base_pool_allocator): Likewise.
20256 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
20258         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
20259         (parallelize_loops): In OpenACC kernels mode, set n_threads to
20260         zero.
20261         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
20262         flag_openacc.
20263         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
20265 2016-02-23  Richard Biener  <rguenther@suse.de>
20267         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
20268         * bitmap.h (struct bitmap_usage): Likewise.
20269         (bitmap_move): Declare.
20270         * bitmap.c (register_overhead): Take size_t argument.
20271         (bitmap_move): New function.
20272         * df-problems.c (df_rd_transfer_function): Use bitmap_move
20273         to properly account overhead.
20274         * tree.c (free_node): Use tree_size.
20276 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
20278         PR c++/69902
20279         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
20280         when inverting comparison.
20282         PR c/69900
20283         * common.opt (Wunreachable-code): Add Warning flag.
20285 2016-02-23  Mark Wielaard  <mjw@redhat.com>
20286             Jakub Jelinek  <jakub@redhat.com>
20288         PR c/69911
20289         * cgraphunit.c (check_global_declaration): Check main_input_filename
20290         and DECL_SOURCE_FILE are not NULL.
20292 2016-02-23  Martin Jambor  <mjambor@suse.cz>
20294         PR tree-optimization/69666
20295         * tree-sra.c (sra_modify_assign): Do not attempt to create
20296         default_def replacements for unscalarizable regions.
20298 2016-02-20  Mark Wielaard  <mjw@redhat.com>
20300         PR c/28901
20301         * cgraphunit.c (check_global_declaration): Check level of
20302         warn_unused_const_variable and main_input_filename.
20303         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
20304         (-Wunused-variable): For C implies -Wunused-const-variable=1.
20305         (-Wunused-const-variable): Explain levels 1 and 2.
20307 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
20309         PR target/69888
20310         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
20311         identical arguments.  Formatting and spelling fixes.
20313         PR target/69885
20314         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
20315         be specified.
20317         PR target/69894
20318         PR target/69895
20319         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
20320         and m68k-devices.def.
20321         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
20322         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
20324 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
20326         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
20327         and HImode registers.
20329 2016-02-22  Richard Biener  <rguenther@suse.de>
20331         PR tree-optimization/69882
20332         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
20333         preserve permutations present because of gaps.
20334         (vect_supported_load_permutation_p): Always continue checking
20335         permutations after vect_attempt_slp_rearrange_stmts.
20337 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
20339         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
20340         min_profitable_estimate, rather than min_profitable_iters.
20342 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
20344         PR target/69885
20345         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
20346         SImode for last match_operand.
20348 2016-02-22  Martin Liska  <mliska@suse.cz>
20350         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
20351         return bitsize - 1 as the return value.
20353 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
20355         PR target/69806
20356         PR target/54089
20357         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
20358         Handle negative shift counts.
20359         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
20360         force_reg on the shift constant.
20361         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
20362         (lshrsi3_d): Handle negative shift counts.
20364 2016-02-22  Richard Biener  <rguenther@suse.de>
20365             Tom de Vries  <tom@codesourcery.com>
20367         * graph.c: Include dumpfile.h.
20368         (print_graph_cfg): Split into three overloads.
20369         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
20371 2016-02-22  Tom de Vries  <tom@codesourcery.com>
20373         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
20374         dump-fn.
20376 2016-02-22  Richard Biener  <rguenther@suse.de>
20378         PR ipa/37448
20379         * ipa-inline-transform.c (inline_call): When not updating
20380         overall summaries adjust self size by the growth estimate.
20381         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
20382         hash-set, do not update overall summaries here.  Renamed from ...
20383         (inline_to_all_callers): ... this which is now wrapping the
20384         above and performing delayed overall summary update.
20385         (early_inline_small_functions): Delay updating of the overall
20386         summary.
20388 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
20390         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
20391         variable.
20393 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
20395         PR driver/69805
20396         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
20397         :%* in %:gt() argument.
20398         (greater_than_spec_func): Adjust for expecting only numbers,
20399         if there are more than two numbers, compare the last two.
20401 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
20403         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
20404         -Wnarrowing with -std.
20406 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
20408         PR c++/69851
20409         * expr.c (store_field): Don't use bit-field path if exp is
20410         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
20411         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
20412         and the assignment can be performed by bitwise copy.  Formatting
20413         fix.
20415         PR middle-end/69838
20416         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
20417         call copy_reg_eh_region_note_forward on before and/or after sequences
20418         and remove note from insn if it no longer can throw.
20420         PR target/69820
20421         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
20422         if TARGET_AVX512BW.
20424 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20426         * config/s390/vector.md: Add missing commutative operand markers
20427         to the patterns which qualify for one.
20428         * config/s390/vx-builtins.md: Likewise.
20430 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20432         * config/s390/vector.md (VI, VI_QHS): Add single element vector
20433         types to mode iterators.
20434         (vec_double): ... and mode attribute.
20435         * config/s390/vx-builtins.md (non_vec_int): Likewise.
20437 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20439         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
20440         Change the predicate of op2 from nonimmediate to general and let
20441         reload fix it if necessary.
20443 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20445         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
20447 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20449         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
20450         mode.
20452 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20454         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
20455         * config/s390/s390.c (s390_expand_vec_movstr): New function.
20456         * config/s390/s390.md ("movstr<P:mode>"): Call
20457         s390_expand_vec_movstr.
20459 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20461         * config/s390/s390.md: Add missing output modifier for operand 1
20462         to print it as address properly.
20464 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20466         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
20467         * config/s390/2964.md: New file.
20468         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
20469         of insn grouping attributes depending on the CPU level.
20470         (s390_get_unit_mask): New function.
20471         (s390_sched_score): Remove the OOO from the scheduling macros.
20472         Add loop to calculate a score for the instruction mix.
20473         (s390_sched_reorder): Likewise plus improve debug output.
20474         (s390_sched_variable_issue): Rename macros as above.  Calculate
20475         the unit distances after actually scheduling an insn.  Improve
20476         debug output.
20477         (s390_sched_init): Clear last_scheduled_unit_distance array.
20478         * config/s390/s390.md: Include 2964.md.
20480 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
20482         PR target/69671
20483         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
20484         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
20485         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
20486         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
20487         *avx512f_<code>v8div16qi2_mask_1): New insns.
20489 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
20491         PR target/68404
20492         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
20493         2016-02-09 change.
20495         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
20496         earlyclobber from target.  Use wF constraint for fused memory
20497         address.
20498         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
20500 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
20501             Martin Liska  <mliska@suse.cz>
20503         PR sanitizer/69863
20504         * cfgexpand.c (asan_sanitize_stack_p): New function.
20505         (partition_stack_vars): Use the function.
20506         (expand_stack_vars): Likewise.
20507         (defer_stack_allocation): Likewise.
20508         (expand_used_vars): Likewise.
20510 2016-02-18  Richard Biener  <rguenther@suse.de>
20512         PR middle-end/69553
20513         * fold-const.c (operand_equal_p): Properly compare offsets for
20514         IMAGPART_EXPR and ARRAY_REF.
20516 2016-02-18  Nick Clifton  <nickc@redhat.com>
20518         PR target/62254
20519         PR target/69610
20520         * config/arm/arm.c (arm_option_override_internal): Disable
20521         interworking if the target does not support thumb instructions.
20522         (arm_reload_in_hi): Handle the case where a register to register
20523         move needs reloading because there is no simple pattern to handle
20524         it.
20525         (arm_reload_out_hi): Likewise.
20527 2016-02-18  Richard Biener  <rguenther@suse.de>
20529         PR middle-end/69854
20530         * match.pd: Don't use fold_binary or fold_unary for folding
20531         constants.
20533 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
20535         PR c++/69850
20536         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
20537         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
20538         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
20539         warn on gimple_no_warning_p statements.
20541 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
20543         * doc/extend.texi (C++ Attributes): Correct description of
20544         warn_unused type attribute.
20546 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20548         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
20549         correct instruction.
20551 2016-02-17  Richard Biener  <rguenther@suse.de>
20553         PR rtl-optimization/69609
20554         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
20555         (find_traces_1_round): When ending a trace update cached priority
20556         of successors.
20557         (bb_to_key): Use cached priority when available.
20558         (copy_bb): Initialize cached priority.
20559         (reorder_basic_blocks_software_trace_cache): Likewise.
20561 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20563         PR target/69161
20564         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
20565         New predicate.
20566         (aarch64_comparison_operator): Break overly long line into two.
20567         (aarch64_comparison_operation): Likewise.
20568         * config/aarch64/aarch64.md (cstorecc4): Use
20569         aarch64_comparison_operator_mode instead of
20570         aarch64_comparison_operator.
20571         (cstore<mode>4): Likewise.
20572         (aarch64_cstore<mode>): Likewise.
20573         (*cstoresi_insn_uxtw): Likewise.
20574         (cstore<mode>_neg): Likewise.
20575         (*cstoresi_neg_uxtw): Likewise.
20577 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20579         PR target/69161
20580         * config/arm/predicates.md (arm_comparison_operator_mode):
20581         New predicate.
20582         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
20583         instead of arm_comparison_operator.
20584         (*mov_negscc): Likewise.
20585         (*mov_notscc): Likewise.
20586         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
20587         (*thumb2_mov_negscc): Likewise.
20588         (*thumb2_mov_negscc_strict_it): Likewise.
20589         (*thumb2_mov_notscc): Likewise.
20590         (*thumb2_mov_notscc_strict_it): Likewise.
20592 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
20594         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
20595         Add missing return.
20597 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
20599         * config/visium/visium.c (machine_libfunc_index): New enum.
20600         (machine_libfuncs): New structure.
20601         (visium_libfuncs): New static variable.
20602         (TARGET_INIT_LIBFUNCS): Define to...
20603         (visium_init_libfuncs): ...this.  New function.
20604         (expand_block_move_4): Use the appropriate libfunc.
20605         (expand_block_move_2): Likewise.
20606         (expand_block_move_1): Likewise.
20607         (expand_block_set_4): Likewise.
20608         (expand_block_set_2): Likewise.
20609         (expand_block_set_1): Likewise.
20610         (visium_trampoline_init): Likewise.
20612 2016-02-17  Nick Clifton  <nickc@redhat.com>
20614         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
20615         TI's devices.csv file as of March 2016.
20617 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
20619         PR Target/48344
20620         * opts-global.c (handle_common_deferred_options): Introduce and
20621         initialize two global variables to remember command-line options
20622         specifying a stack-limiting register.
20623         * opts.h: Add extern declarations of the two new global variables.
20624         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
20625         variable based on the values of the two new global variables.
20627 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20629         PR c/69835
20630         * common.opt (Wnonnull-compare): New warning.
20631         * doc/invoke.texi (-Wnonnull): Remove text about comparison
20632         of arguments against NULL.
20633         (-Wnonnull-compare): Document.
20634         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
20635         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
20636         * passes.def (pass_warn_nonnull_compare): Add.
20637         * gimple-ssa-nonnull-compare.c: New file.
20639 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20641         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
20642         AARCH64_EXTRA_TUNE_RECIP_SQRT.
20644 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20646         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
20647         reciprocal sqrt for -mlow-precision-recip-sqrt.
20649 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20650             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20652         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
20653         always use lane loads to construct non-constant vectors.
20655 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20657         * config/aarch64/aarch64.md
20658         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
20659         constraints for operand 3.
20660         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
20662 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20663             Richard Biener  <rguenther@suse.de>
20665         PR tree-optimization/69820
20666         * tree-vect-patterns.c (type_conversion_p): Return false if
20667         *orig_type is unsigned single precision or boolean.
20668         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
20669         Formatting fix.
20671 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20673         PR rtl-optimization/69764
20674         PR rtl-optimization/69771
20675         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
20676         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
20678 2016-02-16  Richard Biener  <rguenther@suse.de>
20680         PR tree-optimization/69776
20681         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
20682         sets from caller.
20683         (indirect_refs_may_alias_p): Likewise.
20684         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
20685         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
20686         according to tbaa_p.
20687         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
20688         (optimize_stmt): For redundant store discovery do not allow tbaa.
20690 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
20692         PR tree-optimization/69714
20693         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
20694         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
20696 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
20698         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
20699         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
20700         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
20701         * config/arc/arc.c (arc_init): Check FPU options.
20702         (get_arc_condition_code): Handle new CC_FPU* modes.
20703         (arc_select_cc_mode): Likewise.
20704         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
20705         register pair only. Allow access for ARCv2 accumulator.
20706         (gen_compare_reg): Whenever we have FPU support use FPU compare
20707         instructions.
20708         (arc_reorg): Don't generate brcc insns when FPU compare
20709         instructions are involved.
20710         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
20711         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
20712         floating point emulation.
20713         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
20714         (REVERSE_CONDITION): Add new CC_FPU* modes.
20715         (TARGET_FP_SP_BASE): Define.
20716         (TARGET_FP_DP_BASE): Likewise.
20717         (TARGET_FP_SP_FUSED): Likewise.
20718         (TARGET_FP_DP_FUSED): Likewise.
20719         (TARGET_FP_SP_CONV): Likewise.
20720         (TARGET_FP_DP_CONV): Likewise.
20721         (TARGET_FP_SP_SQRT): Likewise.
20722         (TARGET_FP_DP_SQRT): Likewise.
20723         (TARGET_FP_DP_AX): Likewise.
20724         * config/arc/arc.md (ARCV2_ACC): New constant.
20725         (type): New fpu type attribute.
20726         (SDF): Conditional iterator.
20727         (cstore<mode>, cbranch<mode>): Change expand condition.
20728         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
20729         handles FPU/FPX cases as well.
20730         * config/arc/arc.opt (mfpu): New option.
20731         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
20732         Renamed.
20733         (adddf3, muldf3, subdf3): Removed.
20734         * config/arc/predicates.md (proper_comparison_operator): Recognize
20735         CC_FPU* modes.
20736         * config/arc/fpu.md: New file.
20737         * doc/invoke.texi (ARC Options): Document mfpu option.
20739 2016-02-16  Richard Biener  <rguenther@suse.de>
20741         PR rtl-optimization/69291
20742         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
20743         noce_operand_ok check.
20745 2016-02-16  Tom de Vries  <tom@codesourcery.com>
20747         PR lto/67709
20748         * omp-low.c (simd_clone_create): Remove call to
20749         symtab->call_cgraph_insertion_hooks.
20751 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20753         PR tree-optimization/69802
20754         * tree-ssa-reassoc.c (update_range_test): If op is
20755         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
20756         op == 1 test of precision 1 integral op, otherwise handle
20757         that case as op itself.  Fix up formatting.
20758         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
20759         up formatting.
20761 2016-02-16  Richard Biener  <rguenther@suse.de>
20763         PR tree-optimization/69586
20764         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
20765         types for conversion sources.
20767 2016-02-16  Richard Biener  <rguenther@suse.de>
20769         PR middle-end/69801
20770         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
20771         mask OEP_ADDRESS_OF.
20773 2016-02-16  Alan Modra  <amodra@gmail.com>
20775         PR target/68973
20776         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
20777         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
20778         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
20779         (p8_mtvsrwz): New.
20780         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
20781         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
20782         (p8_fmrgow_<mode>): Likewise.
20783         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
20784         changes.
20785         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
20786         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
20787         to use movdi_internal64.  Remove op0_di.
20788         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
20790 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
20792         Add support for the FCCMP insn types
20794         * config/aarch64/aarch64.md (fccmp): Change insn type.
20795         (fccmpe): Likewise.
20796         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
20797         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
20798         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
20799         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
20800         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
20801         * config/arm/types.md (fccmps): Add new insn type.
20802         (fccmpd): Likewise.
20804 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20806         * alias.c (get_alias_set): Fix a typo in comment.
20808 2016-02-15  Richard Biener  <rguenther@suse.de>
20810         PR tree-optimization/69595
20811         * match.pd: Complete range test simplification to true.
20813 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
20815         PR rtl-optimization/69648
20816         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
20817         pic_offset_table_rtx.
20819         PR rtl-optimization/69752
20820         * ira.c (update_equiv_regs): When looking for more than a single SET,
20821         also take other side effects into account.
20823 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
20825         * config/s390/s390.c (s390_function_profiler): Add a new sequence
20826         for z900+ CPUs in 31-bit mode.
20828 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
20830         * common/config/s390/s390-common.c (s390_supports_split_stack):
20831         New function.
20832         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
20833         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
20834         * config/s390/s390.c (struct machine_function): New field
20835         split_stack_varargs_pointer.
20836         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
20837         in s390_emit_prologue.
20838         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
20839         vararg pointer.
20840         (morestack_ref): New global.
20841         (SPLIT_STACK_AVAILABLE): New macro.
20842         (s390_expand_split_stack_prologue): New function.
20843         (s390_live_on_entry): New function.
20844         (s390_va_start): Use split-stack vararg pointer if appropriate.
20845         (s390_asm_file_end): Emit the split-stack note sections.
20846         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
20847         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
20848         (UNSPECV_SPLIT_STACK_CALL): New unspec.
20849         (UNSPECV_SPLIT_STACK_DATA): New unspec.
20850         (split_stack_prologue): New expand.
20851         (split_stack_space_check): New expand.
20852         (split_stack_data): New insn.
20853         (split_stack_call): New expand.
20854         (split_stack_call_*): New insn.
20855         (split_stack_cond_call): New expand.
20856         (split_stack_cond_call_*): New insn.
20858 2016-02-15  Richard Biener  <rguenther@suse.de>
20860         PR tree-optimization/69783
20861         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
20862         Add trivially correct cases.
20864 2016-02-15  Tom de Vries  <tom@codesourcery.com>
20866         PR lto/69655
20867         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
20868         do_force_output.
20869         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
20871 2016-02-15  Richard Biener  <rguenther@suse.de>
20873         PR tree-optimization/69776
20874         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
20875         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
20876         indicate whether we can use TBAA to disambiguate against stores.
20877         Use alias-set zero if not.
20878         (visit_reference_op_store): Do not use TBAA when looking up
20879         redundant stores.
20880         * tree-ssa-pre.c (compute_avail): Use TBAA here.
20881         (eliminate_dom_walker::before_dom_children): But not when looking
20882         up redundant stores.
20884 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
20886         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
20888 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20890         *  config/i386/znver1.md
20891         (znver1_pop, znver1_pop_mem,
20892         znver1_load_imov_double_store,
20893         znver1_load_imov_direct_store,
20894         znver1_load_imov_direct_load,
20895         znver1_load_imov_double_load): Add new.
20896         (znver1_insn, znver1_insn_load): Add icmov type.
20897         (znver1_sseavx_fma,
20898         znver1_sseavx_fma_load,
20899         znver1_avx256_fma,
20900         znver1_avx256_fma_load): Fix pipe usage.
20902 2016-02-14  Alan Modra  <amodra@gmail.com>
20904         PR target/68973
20905         * reload.c (find_reloads_address_1): For pre/post-inc/dec
20906         with an invalid hard reg, reload just the reg not the entire
20907         pre/post-inc/dec address expression.
20909 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
20911         PR target/67260
20912         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
20913         fixed R1_REG scratch reg.
20914         (sibcall_value_pcrel_fdpic): Likewise.
20916 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
20918         PR target/67636
20919         PR target/64345
20920         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
20922 2016-02-12  Walter Lee  <walt@tilera.com>
20924         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
20925         * config/tilegx/t-tilegx: Likewise.
20927 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
20929         PR other/69554
20930         * diagnostic-show-locus.c (struct line_span): New struct.
20931         (layout::get_first_line): Delete.
20932         (layout::get_last_line): Delete.
20933         (layout::get_num_line_spans): New member function.
20934         (layout::get_line_span): Likewise.
20935         (layout::print_heading_for_line_span_index_p): Likewise.
20936         (layout::get_expanded_location): Likewise.
20937         (layout::calculate_line_spans): Likewise.
20938         (layout::m_first_line): Delete.
20939         (layout::m_last_line): Delete.
20940         (layout::m_line_spans): New field.
20941         (layout::layout): Update comment.  Replace m_first_line and
20942         m_last_line with m_line_spans, replacing their initialization
20943         with a call to calculate_line_spans.
20944         (diagnostic_show_locus): When printing source lines and
20945         annotations, rather than looping over a single span
20946         of lines, instead loop over each line_span within
20947         the layout, with an inner loop over the lines within them.
20948         Call the context's start_span callback when changing line spans.
20949         * diagnostic.c (diagnostic_initialize): Initialize start_span.
20950         (diagnostic_build_prefix): Break out the building of the location
20951         part of the string into...
20952         (diagnostic_get_location_text): ...this new function, rewriting
20953         it from nested ternary expressions to a sequence of "if"
20954         statements.
20955         (default_diagnostic_start_span_fn): New function.
20956         * diagnostic.h (diagnostic_start_span_fn): New typedef.
20957         (diagnostic_context::start_span): New field.
20958         (default_diagnostic_start_span_fn): New prototype.
20960 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
20962         PR driver/69779
20963         * gcc.c (driver::finalize): Fix cleanup of "specs".
20965 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
20967         PR driver/69265
20968         PR driver/69453
20969         * gcc.c (driver::driver): Initialize m_option_suggestions.
20970         (driver::~driver): Clean up m_option_suggestions.
20971         (suggest_option): Convert to...
20972         (driver::suggest_option): ...this, and split out into
20973         driver::build_option_suggestions and find_closest_string.
20974         (driver::build_option_suggestions): New function, from
20975         first half of suggest_option.  Special-case
20976         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
20977         the sanitizer_opts array.  For options of enum types, add the
20978         various enum values to the candidate strings.
20979         (driver::handle_unrecognized_options): Remove "const".
20980         * gcc.h (driver::handle_unrecognized_options): Likewise.
20981         (driver::build_option_suggestions): New decl.
20982         (driver::suggest_option): New decl.
20983         (driver::m_option_suggestions): New field.
20984         * opts-common.c (add_misspelling_candidates): New function.
20985         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
20986         and make non-static.
20987         * opts.h (sanitizer_opts): New array decl.
20988         (add_misspelling_candidates): New function decl.
20989         * spellcheck.c (find_closest_string): New function.
20990         * spellcheck.h (find_closest_string): New function decl.
20992 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
20994         PR rtl-optimization/69764
20995         PR rtl-optimization/69771
20996         * optabs.c (expand_binop_directly): For shift_optab_p, force
20997         convert_modes with VOIDmode if xop1 has VOIDmode.
20999 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
21001         PR target/69729
21002         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
21003         to correctly determine instrumentation thunks.
21005 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
21007         PR ipa/69241
21008         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
21009         type by reference, force lhs on the call.
21011         PR ipa/68672
21012         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
21013         Compute retval and retbnd early in all cases if split_part_return_p
21014         and return_bb is not EXIT.  Remove all clobber stmts and reset
21015         all debug stmts that refer to SSA_NAMEs defined in split part,
21016         except if it is retval, in that case replace the old retval with the
21017         lhs of the call to the split part.
21019 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21021         revert:
21022         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21024         PR middle-end/66726
21025         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
21026         whose result is used in PHI.
21027         (maybe_optimize_range_tests): Likewise.
21028         (final_range_test_p): Likweise.
21030 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21032         PR middle-end/66726
21033         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
21034         whose result is used in PHI.
21035         (maybe_optimize_range_tests): Likewise.
21036         (final_range_test_p): Likweise.
21038 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
21040         * cgraph.c: Spelling fixes - behaviour -> behavior and
21041         neighbour -> neighbor.
21042         * target.def: Likewise.
21043         * sel-sched.c: Likewise.
21044         * config/mips/mips.c: Likewise.
21045         * config/arc/arc.md: Likewise.
21046         * config/arm/cortex-a57.md: Likewise.
21047         * config/arm/arm.c: Likewise.
21048         * config/arm/neon.md: Likewise.
21049         * config/arm/arm-c.c: Likewise.
21050         * config/vms/vms-c.c: Likewise.
21051         * config/s390/s390.c: Likewise.
21052         * config/i386/znver1.md: Likewise.
21053         * config/i386/i386.c: Likewise.
21054         * config/ia64/hpux-unix2003.h: Likewise.
21055         * config/msp430/msp430.md: Likewise.
21056         * config/rx/rx.c: Likewise.
21057         * config/rx/rx.md: Likewise.
21058         * config/aarch64/aarch64-simd.md: Likewise.
21059         * config/aarch64/aarch64.c: Likewise.
21060         * config/nvptx/nvptx.c: Likewise.
21061         * config/bfin/bfin.c: Likewise.
21062         * config/cris/cris.opt: Likewise.
21063         * config/rs6000/rs6000.c: Likewise.
21064         * target.h: Likewise.
21065         * spellcheck.c: Likewise.
21066         * ira-build.c: Likewise.
21067         * tree-inline.c: Likewise.
21068         * builtins.c: Likewise.
21069         * lra-constraints.c: Likewise.
21070         * explow.c: Likewise.
21071         * hwint.h: Likewise.
21072         * targhooks.c: Likewise.
21073         * tree-vect-data-refs.c: Likewise.
21074         * expr.c: Likewise.
21075         * doc/tm.texi: Likewise.
21076         * doc/extend.texi: Likewise.
21077         * doc/install.texi: Likewise.
21078         * doc/md.texi: Likewise.
21079         * tree-ssa-tail-merge.c: Likewise.
21080         * sched-int.h: Likewise.
21081         * match.pd: Likewise.
21082         * sched-ebb.c: Likewise.
21083         * target.def (omit_struct_return_reg): Likewise.
21084         * gimple-ssa-isolate-paths.c: Likewise.
21085         (find_implicit_erroneous_behaviour): Renamed to...
21086         (find_implicit_erroneous_behavior): ... this.
21087         (find_explicit_erroneous_behaviour): Renamed to...
21088         (find_explicit_erroneous_behavior): ... this.
21089         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
21091 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
21093         PR rtl-optimization/64682
21094         PR rtl-optimization/69567
21095         PR rtl-optimization/69737
21096         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
21097         in I2 as well, just lose it.
21099 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21101         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
21102         New variable.
21103         (aarch64_last_printed_tune_string): Likewise.
21104         (aarch64_declare_function_name): Only output .arch assembler
21105         directive if it will be different from the previously output
21106         directive.  Same for .tune comment but only if -dA is set.
21107         (aarch64_start_file): New function.
21108         (TARGET_ASM_FILE_START): Define.
21110 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
21112         PR plugins/69758
21113         * Makefile.in (PLUGIN_HEADERS): Add params.list.
21115 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
21117         PR target/65313
21118         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
21119         -Wmaybe-uninitialized warning.
21121 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
21123         PR target/69713
21124         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
21126 2016-02-11  Richard Biener  <rguenther@suse.de>
21128         PR rtl-optimization/69291
21129         * ifcvt.c (noce_try_store_flag_constants): Do not allow
21130         subexpressions affected by changing the result.
21132 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
21134         PR target/69148
21135         * lra-constraints.c (curr_insn_transform): Find in/out operands
21136         for secondary memory moves.  Update dups.
21138 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
21140         PR tree-optimization/69652
21141         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
21142         to nested loop, did source re-formatting, skip debug statements,
21143         add check on statement with volatile operand, remove dead scalar
21144         statements.
21146 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
21147             Patrick Palka  <ppalka@gcc.gnu.org>
21149         PR ipa/69241
21150         PR c++/69649
21151         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
21152         calls if the return type is TREE_ADDRESSABLE.
21153         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
21154         * ipa-split.c (split_function): Fix doubled "we" in comment.
21155         Use void return type for the split part even if
21156         !split_point->split_part_set_retval.
21158 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
21160         PR tree-optimization/68021
21161         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
21162         when computing the value of biv cand by itself.
21164 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
21166         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
21167         (cortexa57_tunings): Likewise.
21168         (cortexa72_tunings): Likewise.
21169         (arch_macro_fusion_pair_p): Add support for AES fusion.
21170         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
21171         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
21172         Allow virtual registers before reload so early scheduling works.
21173         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
21174         correct latency and pipeline.
21175         (cortex_a57_crypto_complex): Likewise.
21176         (cortex_a57_crypto_xor): Likewise.
21177         (define_bypass): Add AES bypass.
21179 2016-02-10  Richard Biener  <rguenther@suse.de>
21181         PR tree-optimization/69726
21182         * passes.def: Add DCE pass before late uninit.
21183         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
21184         really fixup if-conversions job.
21186 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
21188         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
21189         (arm_cortex_a57_tune): Likewise.
21190         (aarch_macro_fusion_pair_p): Add support for AES fusion.
21191         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
21193 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
21195         * timevar.def (TV_PHASE_DBGINFO): Delete.
21196         (TV_PHASE_CHECK_DBGINFO): Likewise.
21197         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
21199 2016-02-10  Richard Biener  <rguenther@suse.de>
21201         PR tree-optimization/69719
21202         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21203         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
21205 2016-02-09  Andrew Pinski  <apinski@cavium.com>
21207         PR tree-opt/69282
21208         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
21209         get_vcond_mask_icode returns false.
21211 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
21213         PR target/68404
21214         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
21215         an ADDIS that adds a pointer to a large constant that sets the
21216         upper16 bits with a load operation.
21218 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
21220         PR target/68532
21221         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
21222         order.
21223         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
21224         endian.
21225         (vzipq_s16): Likewise.
21226         (vzipq_s32): Likewise.
21227         (vzipq_f32): Likewise.
21228         (vzipq_u8): Likewise.
21229         (vzipq_u16): Likewise.
21230         (vzipq_u32): Likewise.
21231         (vzipq_p8): Likewise.
21232         (vzipq_p16): Likewise.
21234 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
21236         PR target/68532
21237         * config/arm/arm.c (neon_endian_lane_map): New function.
21238         (neon_vector_pair_endian_lane_map): New function.
21239         (arm_evpc_neon_vuzp): Allow for big endian lane order.
21240         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
21241         endian.
21242         (vuzpq_s16): Likewise.
21243         (vuzpq_s32): Likewise.
21244         (vuzpq_f32): Likewise.
21245         (vuzpq_u8): Likewise.
21246         (vuzpq_u16): Likewise.
21247         (vuzpq_u32): Likewise.
21248         (vuzpq_p8): Likewise.
21249         (vuzpq_p16): Likewise.
21251 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
21253         PR target/69634
21254         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
21255         debug insns.
21257 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
21259         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
21260         truncate const_int operand 1 to QImode.
21262 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
21264         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
21265         corresponding to an abnormal edge.
21267 2016-02-09  Tom de Vries  <tom@codesourcery.com>
21269         PR tree-optimization/69599
21270         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
21271         function.
21272         (find_func_aliases_for_builtin_call, find_func_clobbers)
21273         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
21274         partition.
21276 2016-02-09  Richard Biener  <rguenther@suse.de>
21278         PR tree-optimization/69715
21279         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
21280         LHS on calls as non-rewritable.
21282 2016-02-09  Tom de Vries  <tom@codesourcery.com>
21284         PR lto/69707
21285         * lto-wrapper.c (append_diag_options): New function.
21286         (compile_offload_image): Call append_diag_options.
21288 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
21290         PR other/69722
21291         * doc/extend.texi (Flag Output Operands): Correct sectioning.
21292         Minor copy-edit to fix verb tenses.
21294 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
21296         PR tree-optimization/69209
21297         * ipa-split.c (split_function): If split part is not
21298         returning retval, retval has gimple type but is not
21299         gimple value, force it into a SSA_NAME first.
21301 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
21303         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
21304         outdated section.
21306 2016-02-08  Jason Merrill  <jason@redhat.com>
21308         PR c++/69631
21309         * convert.c (convert_to_integer_1): Check dofold on truncation
21310         distribution.
21311         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
21312         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
21313         Rename from *_nofold.
21314         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
21315         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
21317 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
21319         PR target/60410
21320         * tree.c (build_common_tree_nodes): Remove short_double argument.
21321         All callers changed.
21322         * tree.h (build_common_tree_nodes): Adjust declaration.
21323         * doc/invoke.texi (-fshort-double): Remove documentation.
21324         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
21325         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
21326         * lto-wrapper.c (merge_and_complain, append_compiler_options)
21327         (append_linker_options): Don't handle OPT_fshort_double.
21329         PR rtl-optimization/68730
21330         * lra-remat.c (insn_to_cand_activation): New static variable.
21331         (lra_remat): Allocate and free it.
21332         (create_cand): New arg activation. Initialize a field in
21333         insn_to_cand_activation if it is nonnull.
21334         (create_cands): Pass the activation insn to create_cand when making
21335         a candidate involving an output reload.  Reorganize code a little.
21336         (do_remat): Keep track of active status of candidates in a separate
21337         bitmap.
21339 2016-02-08  Richard Biener  <rguenther@suse.de>
21341         PR tree-optimization/69719
21342         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21343         Properly use absolute of the difference of the two offsets to
21344         compare or adjust the segment length.
21346 2016-02-08  Richard Biener  <rguenther@suse.de>
21347             Jeff Law  <law@redhat.com>
21349         PR target/68273
21350         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
21351         types for anonymous SSA names.
21353 2016-02-08   Richard Biener  <rguenther@suse.de>
21355         PR rtl-optimization/69274
21356         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
21358 2016-02-08  Jeff Law  <law@redhat.com>
21360         PR tree-optimization/65917
21361         * tree-ssa-dom.c (record_temporary_equivalences): Record both
21362         equivalences from if (x == y) style conditionals.
21363         (loop_depth_of_name): Remove.
21364         (record_equality): Remove loop depth check.
21365         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
21366         (const_and_copies::record_const_or_copy_raw): New member function.
21367         * tree-ssa-scopedtables.c
21368         (const_and_copies::record_const_or_copy_raw): New, factored out of
21369         (const_and_copies::record_const_or_copy): Call new member function.
21371 2016-02-05  Jeff Law  <law@redhat.com>
21373         PR tree-optimization/68541
21374         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
21375         (count_stmts_in_block): New function.
21376         (poor_ifcvt_candidate_code): Likewise.
21377         (is_feasible_trace): Add some heuristics to determine when path
21378         splitting is profitable.
21379         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
21380         is a diamond with a single exit.
21382 2016-02-05  Martin Sebor  <msebor@redhat.com>
21384         PR c++/69662
21385         * doc/invoke.texi: Update -Wplacement-new to take an optional
21386         argument.
21388 2016-02-06  Richard Henderson  <rth@redhat.com>
21390         PR c/69643
21391         * tree.c (tree_nop_conversion_p): Do not strip casts into or
21392         out of non-standard address spaces.
21394 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
21396         PR rtl-optimization/69691
21397         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
21399 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
21401         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
21402         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
21403         (*ieee128_mfvsrd_64bit): Likewise.
21404         (*ieee128_mfvsrd_32bit): Likewise.
21406 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
21408         PR target/69369
21409         Revert r232560:
21410         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
21412         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
21413         instrumented_version.
21415 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
21417         * doc/invoke.texi (Optimize Options): In table of --param options
21418         rename second occurrence of tracer-min-branch-ratio to
21419         tracer-min-branch-probability, rename
21420         tracer-min-branch-ratio-feedback to
21421         tracer-min-branch-probability-feedback and clarify description,
21422         rename sched-spec-state-edge-prob-cutoff to
21423         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
21424         to selsched-insns-to-rename, rename lto-minpartition to
21425         lto-min-partition, delete reorder-blocks-duplicate and
21426         reorder-blocks-duplicate-feedback.
21428 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21430         * config/s390/s390.c (s390_register_info_set_ranges): Remove
21431         superfluous loops.
21433 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21435         * doc/extend.texi: S/390: Correct some typos.
21437 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21439         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
21441 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21443         PR target/69625
21444         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
21445         (s390_register_info_gprtofpr): Use new macros above.
21446         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
21447         its name.
21448         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
21449         its name.  Adjust restore and save gpr ranges.
21450         (s390_register_info_set_ranges): New function.
21451         (s390_register_info): Use new macros above.  Call
21452         s390_register_info_set_ranges.
21453         (s390_optimize_register_info): Likewise.
21454         (s390_hard_regno_rename_ok): Use new macros.
21455         (s390_hard_regno_scratch_ok): Likewise.
21456         (s390_emit_epilogue): Likewise.
21457         (s390_can_use_return_insn): Likewise.
21458         (s390_optimize_prologue): Likewise.
21459         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
21461 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
21463         PR bootstrap/69677
21464         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
21465         alignment fixes.
21466         (ix86_option_override_internal): Disable TARGET_STV even for
21467         -m{incoming,preferred}-stack-boundary=3.
21469 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21471         * config.gcc: Mark deprecated rtems targets as obsolete.
21473 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
21475         PR rtl-optimization/64682
21476         PR rtl-optimization/69567
21477         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
21478         before I2 only if the register is both used and set in I2.
21480 2016-02-04  DJ Delorie  <dj@redhat.com>
21482         * config/msp430/msp430.c (msp430_start_function): Add function type.
21484 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
21486         PR fortran/69368
21487         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
21489 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
21491         PR rtl-optimization/69577
21492         Revert:
21493         2015-10-29  Richard Henderson  <rth@redhat.com>
21495         PR target/68124
21496         PR rtl-opt/67609
21497         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
21498         sse check to the exact conditions of PR 67609.
21500 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
21502         PR target/69667
21503         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
21504         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
21505         not allowed into the traditional Altivec registers.
21506         (movtd_64bit_nodm): Likewise.
21507         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
21509 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
21511         * config/aarch64/cortex-a57-fma-steering.c
21512         (aarch64_register_fma_steering): Remove "static" from arguments
21513         to register_pass.
21515 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
21517         PR target/69619
21518         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
21519         twice when complex.
21521 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
21523         * doc/invoke.texi: Delete -mno-fma4.
21525 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
21527         PR rtl-optimization/69577
21528         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
21529         (find_subregs_of_mode): Update accordingly.  Iterate over partial
21530         definitions.
21532 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
21534         * config/arm/arm-protos.h (neon_reinterpret): Remove.
21535         * config/arm/arm.c (neon_reinterpret): Remove.
21536         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
21537         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
21538         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
21539         vreinterpretti): Remove.
21540         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
21541         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
21542         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
21543         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
21544         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
21545         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
21546         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
21547         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
21548         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
21549         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
21550         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
21551         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
21552         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
21553         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
21554         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
21555         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
21556         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
21557         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
21558         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
21559         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
21560         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
21561         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
21562         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
21563         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
21564         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
21565         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
21566         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
21567         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
21568         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
21569         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
21570         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
21571         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
21572         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
21573         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
21574         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
21575         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
21576         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
21577         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
21578         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
21579         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
21580         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
21581         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
21582         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
21583         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
21584         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
21585         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
21586         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
21587         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
21588         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
21589         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
21590         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
21591         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
21592         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
21593         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
21594         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
21595         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
21596         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
21597         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
21598         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
21599         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
21600         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
21601         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
21602         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
21603         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
21604         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
21605         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
21606         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
21607         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
21608         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
21609         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
21610         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
21611         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
21612         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
21613         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
21614         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
21615         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
21616         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
21617         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
21618         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
21619         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
21620         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
21621         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
21622         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
21623         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
21624         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
21625         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
21626         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
21627         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
21628         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
21629         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
21630         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
21631         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
21632         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
21633         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
21634         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
21635         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
21636         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
21637         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
21638         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
21639         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
21640         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
21641         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
21642         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
21644 2016-02-04  Martin Liska  <mliska@suse.cz>
21646         PR sanitizer/69276
21647         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
21648         that are gimple_store_p.
21649         (maybe_instrument_call): Likewise.
21651 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
21653         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
21654         register scaling out of memory reference and comment why.
21656 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21658         PR target/65932
21659         PR target/67714
21660         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
21661         folding the source of a SET.
21663 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21665         PR target/65932
21666         PR target/67714
21667         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
21668         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
21670 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
21672         PR target/65932
21673         PR target/67714
21674         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
21675         HImode.
21677 2016-02-04  Christian Bruel  <christian.bruel@st.com>
21679         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
21680         * config/arm/arm.c (arm_set_current_function): Likewise.
21682 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
21683             Ilya Enkovich  <enkovich.gnu@gmail.com>
21684             H.J. Lu  <hongjiu.lu@intel.com>
21686         PR target/69454
21687         * config/i386/i386.c (convert_scalars_to_vector): Remove
21688         stack alignment fixes.
21689         (ix86_option_override_internal): Disable TARGET_STV if stack
21690         might not be aligned enough.
21691         (ix86_minimum_alignment): Assert that TARGET_STV is false.
21693 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
21695         * config/i386/x86-tune.def: Disable default prefetching
21696         for -march=znver1.
21698 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
21699             Vladimir Makarov  <vmakarov@redhat.com>
21701         PR target/69461
21702         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
21703         in validating fused toc addresses.
21705 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
21707         PR c/69627
21708         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
21709         range->m_caret fields if range->m_show_caret_p is false.
21711         PR target/69644
21712         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
21713         Force oldval into register if it does not satisfy reg_or_short_operand
21714         predicate.  Fix up formatting.
21716 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
21717             Alexandre Oliva  <aoliva@redhat.com>
21719         PR target/69461
21720         * lra-constraints.c (simplify_operand_subreg): Check additionally
21721         address validity after potential reloading.
21722         (process_address_1): Check insns validity.  In case of failure do
21723         nothing.
21725 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
21727         PR target/69118
21728         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
21729         Fix target.
21731 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
21733         * wide-int.cc (canonize_uhwi): New function.
21734         (wi::divmod_internal): Use it.
21736 2016-02-02  James Norris  <jnorris@codesourcery.com>
21738         * gimplify.c (omp_notice_variable): Add usage check.
21740 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
21742         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
21743         like LE, GE, LT, GT when emitting relational operator.
21745 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
21747         * ira-costs.c (find_costs_and_classes): Add extra argument.
21748         * target.def (ira_change_pseudo_allocno_class): Add parameter.
21749         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
21750         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
21751         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
21752         Add best_class parameter, and return it if not ALL_REGS.
21753         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
21754         Add parameter.
21755         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
21756         Update target hook.
21758 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
21760         * config/aarch64/aarch64.c
21761         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
21762         (aarch64_ira_change_pseudo_allocno_class): New function.
21764 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
21766         PR target/67032
21767         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
21769 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
21771         * config/avr/avr.c (avr_option_override): Set
21772         PARAM_ALLOW_STORE_DATA_RACES to 1.
21774 2016-02-02  Richard Biener  <rguenther@suse.de>
21776         PR tree-optimization/69595
21777         * match.pd: Add range test simplifications to true/false.
21779 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
21781         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
21782         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
21783         instead.
21785 2016-02-02  Richard Biener  <rguenther@suse.de>
21787         PR tree-optimization/69606
21788         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
21789         info on the result before moving a stmt.
21791 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
21793         PR middle-end/68542
21794         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
21795         branch with vector comparison.
21796         * config/i386/sse.md (VI48_AVX): New mode iterator.
21797         (define_expand "cbranch<mode>4): Add support for conditional branch
21798         with vector comparison.
21799         * tree-vect-loop.c (optimize_mask_stores): New function.
21800         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
21801         has_mask_store field of vect_info.
21802         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
21803         vectorized loops having masked stores after vec_info destroy.
21804         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
21805         correspondent macros.
21806         (optimize_mask_stores): Add prototype.
21808 2016-02-02  Alan Modra  <amodra@gmail.com>
21810         PR target/69548
21811         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
21812         allow subregs.
21814 2016-02-02  Alan Modra  <amodra@gmail.com>
21816         PR target/68662
21817         * config/rs6000/rs6000.c (need_toc_init): New var, set it
21818         whenever toc_label_name used.
21819         (rs6000_file_start): Don't set up toc section here,
21820         (rs6000_output_function_epilogue): do so here instead,
21821         (rs6000_xcoff_file_start): and here.
21822         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
21823         (load_toc_aix_di): Likewise.
21825 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
21827         PR rtl-optimization/69592
21828         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
21829         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
21830         (num_sign_bit_copies_binary_arith_p): New inline function.
21831         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
21833 2016-02-01  Jeff Law  <law@redhat.com>
21835         PR tree-optimization/69580
21836         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
21837         * tree-ssa-threadbackward.c
21838         (fsm_find_control_statement_thread_paths): Do not try to walk
21839         through large PHI nodes.
21841 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
21843         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
21844         when count is incremented above limit, don't analyze further
21845         insns afterwards.
21847         * omp-low.c (oacc_parse_default_dims): Avoid
21848         -Wsign-compare warning, make sure value fits into int
21849         rather than just unsigned int.
21851 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
21853         PR tree-optimization/67921
21854         * fold-const.c (split_tree): New parameters.  Convert pointer
21855         type variable part to proper type before negating.
21856         (fold_binary_loc): Pass new arguments to split_tree.
21858 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
21860         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
21861         (nvptx_goacc_validate_dims): Extend to handle global defaults.
21862         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
21863         * doc/tm.texti: Rebuilt.
21864         * doc/invoke.texi (fopenacc-dim): Document.
21865         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
21866         (append_compiler_options): Likewise.
21867         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
21868         (oacc_parse_default_dims): New.
21869         (oacc_validate_dims): Add USED arg.  Select non-unity default when
21870         possible.
21871         (oacc_loop_fixed_partitions): Return mask of used partitions.
21872         (oacc_loop_auto_partitions): Emit dump info.
21873         (oacc_loop_partition): Return mask of used partitions.
21874         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
21875         loop partitioning and validation calls.
21877 2016-02-01  Richard Biener  <rguenther@suse.de>
21879         PR middle-end/69556
21880         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
21882 2016-02-01  Richard Biener  <rguenther@suse.de>
21884         PR tree-optimization/69574
21885         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
21886         of asserting return chrec_dont_know.
21888 2016-02-01  Martin Liska  <mliska@suse.cz>
21890         * mem-stats-traits.h: Add copyright header.
21891         * mem-stats.h: Likewise.
21893 2016-02-01  Richard Biener  <rguenther@suse.de>
21895         PR tree-optimization/69579
21896         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
21897         Do not propagate through abnormal PHI results.
21899 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
21901         * postreload.c (reload_cse_simplify): Remove dead code.
21903 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
21905         PR rtl-optimization/69570
21906         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
21907         if there is more than one set, not if there is a single set.
21909 2016-02-01  Richard Henderson  <rth@redhat.com>
21911         PR rtl-opt/69535
21912         * combine.c (make_compound_operation): When looking through a
21913         subreg, make sure to re-extend to the width of the outer mode.
21915 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
21917         PR tree-optimization/69546
21918         * wide-int.cc (wi::divmod_internal): For unsigned division
21919         where both operands fit into uhwi, if o1 is 1 and o0 has
21920         msb set, if divident_prec is larger than bits per hwi,
21921         clear another quotient word and return 2 instead of 1.
21922         Similarly for remainder with msb in HWI set, if dividend_prec
21923         is larger than bits per hwi.
21925 2016-01-29  Martin Jambor  <mjambor@suse.cz>
21927         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
21928         Use short lowercase names.
21929         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
21930         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
21931         acq_rel one.  Protect warning agains segfaults if
21932         get_memory_order_name returns NULL.
21933         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
21934         with release semantics.  Do not warn if get_memory_order already did.
21935         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
21936         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
21937         if get_memory_order already did.
21939 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
21941         * doc/install.texi: Document that isl-0.16 is supported.
21943 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
21945         PR target/69299
21946         * config/i386/constraints.md (Bm): Describe as special memory
21947         constraint.
21948         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
21949         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
21950         * genpreds.c (struct constraint_data): Add is_special_memory.
21951         (have_special_memory_constraints, special_memory_start): New
21952         static vars.
21953         (special_memory_end): Ditto.
21954         (add_constraint): Add new arg is_special_memory.  Add code to
21955         process its true value.  Update have_special_memory_constraints.
21956         (process_define_constraint): Pass the new arg.
21957         (process_define_register_constraint): Ditto.
21958         (choose_enum_order): Process special memory.
21959         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
21960         function insn_extra_special_memory_constraint.
21961         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
21962         * gensupport.c (process_rtx): Process
21963         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
21964         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
21965         * ira-lives.c (single_reg_class): Use
21966         insn_extra_special_memory_constraint.
21967         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
21968         * lra-constraints.c (process_alt_operands): Ditto.
21969         (curr_insn_transform): Use insn_extra_special_memory_constraint.
21970         * recog.c (asm_operand_ok, preprocess_constraints): Process
21971         CT_SPECIAL_MEMORY.
21972         * reload.c (find_reloads): Ditto.
21973         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
21974         * stmt.c (parse_input_constraint): Use
21975         insn_extra_special_memory_constraint.
21977 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
21979         PR target/69530
21980         * lra-splill.c (lra_final_code_change): Revert r229087 by
21981         removing all sub-registers.
21983 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
21985         PR target/65604
21986         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
21988 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
21990         PR target/69551
21991         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
21992         SSE1, copy target into the temporary reg first before recursing
21993         on it.
21995 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
21997         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
21998         with vm.
22000 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
22002         * ginclude/stdarg.h: Test __cplusplus instead of
22003         __GXX_EXPERIMENTAL_CXX0X__.
22005 2016-01-29  Richard Biener  <rguenther@suse.de>
22007         PR tree-optimization/69547
22008         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
22009         Do not mark clobbers necessary.
22010         (mark_all_reaching_defs_necessary_1): Likewise.
22012 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22014         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
22015         declaration name with %qs and print it in both error messages.
22016         Also fix indentation.
22018 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22020         PR other/69006
22021         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
22022         trailing blank line from error message.
22024 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
22026         PR c++/69462
22027         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
22028         for C++-11.
22030 2016-01-29  Richard Biener  <rguenther@suse.de>
22032         PR middle-end/69537
22033         * match.pd: Allow all integral types when simplifying a
22034         widening or sign-changing conversion.
22036 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
22038         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
22039         back to setting codegen_error to fail codegen.
22041 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
22043         PR target/69459
22044         * config/i386/constraints.md (C): Only accept constant zero operand.
22045         (BC): New constraint.
22046         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
22047         instead of C constraint.
22048         * doc/md.texi (Machine Constraints): Update description
22049         of C constraint.
22051 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
22053         PR target/68400
22054         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
22056 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
22058         PR middle-end/69542
22059         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
22060         non-debug insns.
22062 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
22064         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
22065         branches if using guessed profile.
22067 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
22069         * graphite-optimize-isl.c (optimize_isl): Fix dump.
22071 2016-01-28  Richard Henderson  <rth@redhat.com>
22073         PR target/69305
22074         * config/aarch64/aarch64-modes.def (CC_Cmode): New
22075         * config/aarch64/aarch64-protos.h: Update.
22076         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
22077         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
22078         (aarch64_get_condition_code_1): Handle CC_Cmode.
22079         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
22080         (*add<mode>3_compareC_cconly_imm): New.
22081         (*add<mode>3_compareC_cconly): New.
22082         (*add<mode>3_compareC_imm): New.
22083         (add<mode>3_compareC): New.
22084         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
22085         to be first.  Use aarch64_carry_operation.
22086         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
22087         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
22088         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
22089         (subti3): Use subdi3_compare1.
22090         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
22091         (sub<mode>3_compare1): New.
22092         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
22093         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
22094         (*subsi3_carryin_uxtw): Likewise.
22095         (*ngc<mode>, *ngcsi_uxtw): Likewise.
22096         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
22097         * config/aarch64/iterators.md (DWI): New.
22098         * config/aarch64/predicates.md (aarch64_carry_operation): New.
22099         (aarch64_borrow_operation): New.
22101 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
22103         * graphite-optimize-isl.c (optimize_isl): Print a different debug
22104         message when isl does not return a valid schedule.
22106 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
22108         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
22109         Remove comments from class declarations: they are already in the code
22110         close by the defs.
22112 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
22114         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
22115         codegen_error_p.
22116         (ternary_op_to_tree): Same.
22117         (unary_op_to_tree): Same.
22118         (nary_op_to_tree): Same.
22119         (gcc_expression_from_isl_expr_op): Same.
22120         (gcc_expression_from_isl_expression): Same.
22121         (graphite_create_new_loop): Same.
22122         (graphite_create_new_loop_guard): Same.
22123         (build_iv_mapping): Same.
22124         (graphite_create_new_guard): Same.
22125         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
22126         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
22128 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
22130         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
22131         instead of setting codegen_error to fail codegen.
22133 2016-01-28  Jason Merrill  <jason@redhat.com>
22135         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
22137 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
22139         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
22140         Remove CONST_INT_P check in CCMP cost calculation.
22142 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
22144         * config/aarch64/aarch64.c (generic_vector_cost):
22145         Set vec_permute_cost.
22146         (cortexa57_vector_cost): Likewise.
22147         (exynosm1_vector_cost): Likewise.
22148         (xgene1_vector_cost): Likewise.
22149         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
22150         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
22151         Add vec_permute_cost entry.
22153 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
22155         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
22156         immediate as %1.
22157         (add<mode>3_compare0): Likewise.
22158         (addsi3_compare0_uxtw): Likewise.
22159         (add<mode>3nr_compare0): Likewise.
22160         (compare_neg<mode>): Likewise.
22161         (<optab><mode>3): Likewise.
22163 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
22165         * tree-vect-stmts.c (vectorizable_comparison): Add
22166         NULL check for vectype.
22168 2016-01-28  Richard Biener  <rguenther@suse.de>
22170         PR tree-optimization/69466
22171         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
22172         Account for PHIs we couldn't duplicate.
22174 2016-01-28  Martin Liska  <mliska@suse.cz>
22176         PR pch/68758
22177         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
22178         instead of ENABLE_VALGRIND_CHECKING.
22180 2016-01-27  Richard Henderson  <rth@redhat.com>
22182         PR rtl-opt/69447
22183         * lra-remat.c (subreg_regs): New.
22184         (dump_candidates_and_remat_bb_data): Dump it.
22185         (operand_to_remat): Reject if operand in subreg_regs.
22186         (set_bb_regs): Collect subreg_regs.
22187         (lra_remat): Init and free subreg_regs.  Compute
22188         calculate_local_reg_remat_bb_data before create_cands.
22190 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
22192         PR target/68986
22193         * config/i386/i386.c (ix86_update_stack_boundary): Don't
22194         change stack_alignment_needed for __tls_get_addr call.
22196 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
22198         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
22200 2016-01-27  Jeff Law  <law@redhat.com>
22202         PR tree-optimization/68398
22203         PR tree-optimization/69196
22204         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
22205         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
22206         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
22207         Only count PHIs in the last block in the path.  The others will
22208         const/copy propagate away.  Add heuristic to allow more irreducible
22209         subloops to be created when it is likely profitable to do so.
22211         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
22212         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
22213         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
22215 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
22217         PR lto/69254
22218         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
22219         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
22220         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
22221         * tree-streamer-in.c: Include asan.h.
22222         (streamer_get_builtin_tree): For builtins in sanitizer
22223         range call initialize_sanitizer_builtins and retry.
22225 2016-01-27  Ian Lance Taylor  <iant@google.com>
22227         * common.opt (fkeep-gc-roots-live): New undocumented option.
22228         * tree-ssa-loop-ivopts.c (add_candidate_1): If
22229         -fkeep-gc-roots-live, skip pointers.
22230         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
22231         NULL.
22233 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
22235         PR target/69512
22236         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
22237         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
22239 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
22241         PR target/68380
22242         * configure.ac: NetBSD provides SSP in its C library.
22243         * configure: Updated.
22245 2016-01-27  Richard Biener  <rguenther@suse.de>
22247         PR tree-optimization/69166
22248         * tree-vect-loop.c (vect_is_simple_reduction): Always check
22249         reduction code for commutativity / associativity.
22251 2016-01-27  Martin Jambor  <mjambor@suse.cz>
22253         PR tree-optimization/69355
22254         * tree-sra.c (analyze_access_subtree): Correct hole detection when
22255         total_scalarization fails.
22257 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
22259         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
22260         power9.
22262 2016-01-27  Christian Bruel  <christian.bruel@st.com>
22264         PR target/69245
22265         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
22266         Move arm_reset_previous_fndecl and set_target_option_current_node in
22267         the conditional part.  Call save_restore_target_globals.
22268         * config/arm/arm.c (arm_set_current_function):
22269         Refactor to better support #pragma target and attribute mix.
22270         Call save_restore_target_globals.
22271         * config/arm/arm-protos.h (save_restore_target_globals): New function.
22273 2016-01-27  Martin Liska  <mliska@suse.cz>
22275         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
22276         reference for an HSA kernel and its host function.
22278 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
22280         PR tree-optimization/69399
22281         * wide-int.h (wi::lrshift): For larger precisions, only
22282         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
22284 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
22286         * config/arc/predicates.md (proper_comparison_operator): Reject
22287         constant-constant comparison.
22289 2016-01-26  Tom de Vries  <tom@codesourcery.com>
22291         PR tree-optimization/69110
22292         * tree-data-ref.c (initialize_data_dependence_relation): Handle
22293         DR_NUM_DIMENSIONS == 0.
22295 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
22296             Sebastian Pop  <s.pop@samsung.com>
22298         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
22299         isl_ast_op_cond and isl_ast_op_select.
22300         (gcc_expression_from_isl_expr_op): Same.
22302 2016-01-26  Jason Merrill  <jason@redhat.com>
22304         PR c++/68782
22305         * tree.c (recompute_constructor_flags): Split out from
22306         build_constructor.
22307         (verify_constructor_flags): New.
22308         * tree.h: Declare them.
22310 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
22312         PR rtl-optimization/69217
22313         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
22314         are no TYPE_FIELDS set for the record type.
22316 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22318         PR target/68662
22319         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
22320         toc_label_name unconditionally.
22321         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
22322         SYMBOL_REF string.  Use toc_label_name instead of constructing
22323         LCTOC1.
22324         (rs6000_elf_declare_function_name): Use toc_label_name instead of
22325         constructing LCTOC1.
22327 2016-01-26  Martin Sebor  <msebor@redhat.com>
22329         PR other/69477
22330         * doc/extend.texi (Common Type Attributes): Move text that talks about
22331         attribute packed from attribute aligned to the section discussing
22332         the former attribute for clarity.
22334 2016-01-26  Richard Henderson  <rth@redhat.com>
22336         PR middle-end/60908
22337         * trans-mem.c (tm_region_init): Mark entry block as visited.
22339 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
22341         PR other/69006
22342         * diagnostic-show-locus.c (layout::print_source_line): Replace
22343         call to pp_newline with call to layout::print_newline.
22344         (layout::print_annotation_line): Likewise.
22345         (layout::move_to_column): Likewise.
22346         (layout::print_any_fixits): After printing any fixits, print a
22347         trailing newline, if necessary.
22348         (layout::print_newline): New method, resetting any colorization
22349         before a newline.
22350         (diagnostic_show_locus): Move the pp_newline to before the
22351         early bailout.  Remove dummy block enclosing the layout instance.
22352         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
22353         of pp_newline_and_flush with pp_flush.
22354         (diagnostic_append_note): Delete use of pp_newline.
22355         (diagnostic_append_note_at_rich_loc): Delete.
22356         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
22357         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
22358         when newline characters are added to the buffer.
22360 2016-01-26  Michael Matz  <matz@suse.de>
22362         * configure.ac (ac_cv_std_swap_in_utility): New test.
22363         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
22364         * configure: Regenerate.
22365         * config.in: Regenerate.
22367 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
22369         * config/arc/arc.md (cstoresi4): Force operand into register.
22370         (arcset<code>): Fix predicate.
22371         (arcsetltu): Likewise.
22372         (arcsetgeu): Likewise.
22373         (arcsethi): Likewise.
22374         (arcsetls): Likewise.
22376 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22378         PR tree-optimization/69483
22379         * gimple-fold.c (canonicalize_constructor_val): Return NULL
22380         if base has error_mark_node type.
22382 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
22384         PR target/68620
22385         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
22386         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
22387         New helper macros.
22388         (vget_lane_f16): Handle big-endian.
22389         (vgetq_lane_f16): Likewise.
22390         (vset_lane_f16): Likewise.
22391         (vsetq_lane_f16): Likewise.
22392         * config/arm/iterators.md (VQXMOV): Add V8HF.
22393         (VDQ): Add V4HF and V8HF.
22394         (V_reg): Handle V4HF and V8HF.
22395         (Is_float_mode): Likewise.
22396         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
22397         neon_vdup_nv8hf): New patterns.
22398         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
22399         Use VD_LANE iterator.
22400         (neon_vld1_dup<mode>): Use VQ2 iterator.
22402 2016-01-26  Nathan Sidwell  <nathan@acm.org>
22404         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
22405         (set_oacc_fn_attrib): Add IS_KERNEL arg.
22406         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
22407         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
22408         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
22409         (oacc_validate_dims): Add LEVEL arg, don't return level.
22410         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
22411         oacc_validate_dims.
22412         (execute_oacc_device_lower): Adjust, add more dump output.
22413         * tree-ssa-loop.c (gate_oacc_kernels): Use
22414         oacc_fn_attrib_kernels_p.
22415         * tree-parloops.c (create_parallel_loop): Adjust
22416         set_oacc_fn_attrib call.
22418 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22420         PR lto/69254
22421         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
22422         (append_compiler_options): Handle -fcilkplus.
22423         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
22425 2016-01-26  Nick Clifton  <nickc@redhat.com>
22427         PR target/66655
22428         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
22429         been marked as DECL_ONE_ONLY but we do not the means to make it
22430         so, then do not allow it to bind locally.
22432 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22434         PR lto/69254
22435         * opts.h (parse_sanitizer_options): New prototype.
22436         * opts.c (sanitizer_opts): New array.
22437         (parse_sanitizer_options): New function.
22438         (common_handle_option): Use parse_sanitizer_options.
22440 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
22442         PR target/68986
22443         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
22444         alignment adjustment to ...
22445         (ix86_update_stack_boundary): Here.  Don't over-align stack for
22446         __tls_get_addr.
22447         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
22448         if __tls_get_addr is called.
22450 2016-01-26  Christian Bruel  <christian.bruel@st.com>
22452         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
22454 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
22456         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
22458 2016-01-26  Richard Biener  <rguenther@suse.de>
22460         PR middle-end/69467
22461         * match.pd: Guard X * CST CMP 0 pattern with single_use.
22463 2016-01-26  Richard Biener  <rguenther@suse.de>
22465         PR tree-optimization/69452
22466         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
22467         (move_computations_dom_walker::before_dom_children): Rename
22468         to ...
22469         (move_computations_worker): This.
22470         (move_computations): Perform an RPO rather than a DOM walk.
22472 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22474         PR target/69442
22475         * combine.c (combine_instructions): For REG_EQUAL note with
22476         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
22477         to the underlying register.
22478         * doc/rtl.texi (REG_EQUAL): Document the behavior of
22479         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
22481 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
22483         PR target/67896
22484         * config/aarch64/aarch64-builtins.c
22485         (aarch64_init_simd_builtin_types): Do not set structural
22486         equality to __Poly{8,16,64,128}_t types.
22488 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
22490         PR tree-optimization/69400
22491         * wide-int.cc (wi_pack): Take the precision as argument and
22492         perform canonicalization here rather than in the callers.
22493         Use the main loop to handle all full-width HWIs.  Add a
22494         zero HWI if in_len isn't a full result.
22495         (wi::divmod_internal): Update accordingly.
22496         (wi::mul_internal): Likewise.  Simplify.
22498 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
22499             Sebastian Pop  <s.pop@samsung.com>
22501         * graphite-poly.c (apply_poly_transforms): Simplify.
22502         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
22503         (print_isl_map): Same.
22504         (print_isl_union_map): Same.
22505         (print_isl_schedule): New.
22506         (debug_isl_schedule): New.
22507         * graphite-dependences.c (scop_get_reads): Do not call
22508         isl_union_map_add_map that is undocumented isl functionality.
22509         (scop_get_must_writes): Same.
22510         (scop_get_may_writes): Same.
22511         (scop_get_original_schedule): Remove.
22512         (scop_get_dependences): Do not call isl_union_map_compute_flow that
22513         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
22514         (compute_deps): Remove.
22515         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
22516         (debug_schedule_ast): New.
22517         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
22518         set_separate_option.
22519         (graphite_regenerate_ast_isl): Add dump.
22520         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
22521         from scop->transformed_schedule.
22522         (graphite_regenerate_ast_isl): Add more dump.
22523         * graphite-optimize-isl.c (optimize_isl): Set
22524         scop->transformed_schedule.  Check whether schedules are equal.
22525         (apply_poly_transforms): Move here.
22526         * graphite-poly.c (apply_poly_transforms): ... from here.
22527         (free_poly_bb): Static.
22528         (free_scop): Static.
22529         (pbb_number_of_iterations_at_time): Remove.
22530         (print_isl_ast): New.
22531         (debug_isl_ast): New.
22532         (debug_scop_pbb): New.
22533         * graphite-scop-detection.c (print_edge): Move.
22534         (print_sese): Move.
22535         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
22536         (build_scop_scattering): Remove.
22537         (create_pw_aff_from_tree): Assert instead of bailing out.
22538         (add_condition_to_pbb): Remove unused code, do not fail.
22539         (add_conditions_to_domain): Same.
22540         (add_conditions_to_constraints): Remove.
22541         (build_scop_context): New.
22542         (add_iter_domain_dimension): New.
22543         (build_iteration_domains): Initialize pbb->iterators.
22544         Call add_conditions_to_domain.
22545         (nested_in): New.
22546         (loop_at): New.
22547         (index_outermost_in_loop): New.
22548         (index_pbb_in_loop): New.
22549         (outermost_pbb_in): New.
22550         (add_in_sequence): New.
22551         (add_outer_projection): New.
22552         (outer_projection_mupa): New.
22553         (add_loop_schedule): New.
22554         (build_schedule_pbb): New.
22555         (build_schedule_loop): New.
22556         (embed_in_surrounding_loops): New.
22557         (build_schedule_loop_nest): New.
22558         (build_original_schedule): New.
22559         (build_poly_scop): Call build_original_schedule.
22560         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
22561         (free_poly_dr): Remove.
22562         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
22563         (free_poly_bb): Remove.
22564         (debug_loop_vec): Remove.
22565         (print_isl_ast): Declare.
22566         (debug_isl_ast): Declare.
22567         (scop_do_interchange): Remove.
22568         (scop_do_strip_mine): Remove.
22569         (scop_do_block): Remove.
22570         (flatten_all_loops): Remove.
22571         (optimize_isl): Remove.
22572         (pbb_number_of_iterations_at_time): Remove.
22573         (debug_scop_pbb): Declare.
22574         (print_schedule_ast): Declare.
22575         (debug_schedule_ast): Declare.
22576         (struct scop): Remove schedule.  Add original_schedule,
22577         transformed_schedule.
22578         (free_gimple_poly_bb): Remove.
22579         (print_generated_program): Remove.
22580         (debug_generated_program): Remove.
22581         (unify_scattering_dimensions): Remove.
22582         * sese.c (print_edge): ... here.
22583         (print_sese): ... here.
22584         (debug_edge): ... here.
22585         (debug_sese): ... here.
22586         * sese.h (print_edge): Declare.
22587         (print_sese): Declare.
22588         (dump_edge): Declare.
22589         (dump_sese): Declare.
22591 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
22592             Sebastian Pop  <s.pop@samsung.com>
22594         * Makefile.in: Set ISLVER in site.exp.
22596 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
22598         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
22599         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
22600         through DECL_VALUE_EXPR for expansion.
22602 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22604         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
22605         the frame info after reload completed.
22607 2016-01-25  Jeff Law  <law@redhat.com>
22609         PR tree-optimization/69196
22610         PR tree-optimization/68398
22611         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
22612         tree-ssa-threadupdate.c.
22613         (determine_bb_domination_status): Prototype
22614         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
22615         (determine_bb_domination_status): No longer static.
22616         (valid_jump_thread_path): Remove code to detect characteristics
22617         of the jump thread path not associated with correctness.
22618         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
22619         Correct test for thread path length.  Count PHIs for real operands as
22620         statements that need to be copied.  Do not count ASSERT_EXPRs.
22621         Look at all the blocks in the thread path.  Compute and selectively
22622         filter thread paths based on threading through the latch, threading
22623         a multiway branch or crossing a multiway branch.
22625 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22627         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
22628         decl with __attribute__ ((unused)) annotation.
22630 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
22632         PR target/69421
22633         * tree-vect-stmts.c (vectorizable_condition): Check vectype
22634         of operands is compatible with a statement vectype.
22636 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
22638         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
22639         improve wording for mixed storage order support.
22641 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
22643         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
22644         (vcvt_u64_f64): Likewise.
22645         (vcvta_s64_f64): Likewise.
22646         (vcvta_u64_f64): Likewise.
22647         (vcvtm_s64_f64): Likewise.
22648         (vcvtm_u64_f64): Likewise.
22649         (vcvtn_s64_f64): Likewise.
22650         (vcvtn_u64_f64): Likewise.
22651         (vcvtp_s64_f64): Likewise.
22652         (vcvtp_u64_f64): Likewise.
22654 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
22656         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
22657         (arc_init): Check validity mll64 option.
22658         (arc_save_restore): Use double load/store instruction.
22659         (arc_expand_movmem): Likewise.
22660         (arc_split_move): Don't split if we have double load/store
22661         instructions. Returns a boolean.
22662         (arc_process_double_reg_moves): Change function to return boolean
22663         instead of a sequence of instructions.
22664         (arc_dwarf_register_span): New function.
22665         * config/arc/arc-protos.h (arc_split_move): Change prototype.
22666         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
22667         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
22668         (*movdf_insn): Likewise.
22669         * config/arc/arc.opt (mll64): New option.
22670         * config/arc/predicates.md (even_register_operand): New predicate.
22671         * doc/invoke.texi (ARC Options): Add mll64 documentation.
22673 2016-01-25  Richard Biener  <rguenther@suse.de>
22675         PR lto/69393
22676         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
22677         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
22678         DECL_NAMELESS.
22679         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
22681 2016-01-25  Richard Biener  <rguenther@suse.de>
22683         PR tree-optimization/69376
22684         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
22685         flag.
22686         (VN_INFO_ANTI_RANGE_P): New inline.
22687         (VN_INFO_RANGE_TYPE): Likewise.
22688         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
22689         SSA_NAME_ANTI_RANGE_P.
22690         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
22691         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
22692         Properly query VN_INFO_RANGE_TYPE.
22694 2016-01-25  Nick Clifton  <nickc@redhat.com>
22696         PR target/66655
22697         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
22699 2016-01-23  Tom de Vries  <tom@codesourcery.com>
22701         PR tree-optimization/69426
22702         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
22703         removed clobber.
22705 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
22707         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
22708         "the the" with "the" in the comments.
22709         * ipa-devirt.c (build_type_inheritance_graph,
22710         update_type_inheritance_graph): Likewise.
22711         * tree.c (build_function_type_list_1): Likewise.
22712         * cfgloopmanip.c (scale_loop_profile): Likewise.
22713         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
22714         * gimple-ssa-split-paths.c
22715         (find_block_to_duplicate_for_splitting_paths): Likewise.
22716         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
22717         * expr.c (convert_move): Likewise.
22718         * var-tracking.c (vt_stack_adjustments): Likewise.
22719         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
22720         * tree-vrp.c (test_for_singularity): Likewise.
22722         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
22723         directly instead of building a temporary tree.
22725         PR bootstrap/69434
22726         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
22727         remove <algorithm> include.
22729 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
22731         PR target/69432
22732         * config/i386/i386.c: Include dojump.h.
22733         (expand_small_movmem_or_setmem,
22734         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
22735         fixes.
22736         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
22737         if dynamic_check != -1.
22739 2016-01-21  Jeff Law  <law@redhat.com>
22741         PR middle-end/69347
22742         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
22743         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
22744         into dominated_by_p.
22745         (cprop_into_successor_phis): Avoid unnecessary tests.
22747 2016-01-22  Richard Henderson  <rth@redhat.com>
22749         PR target/69416
22750         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
22751         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
22753 2016-01-22  Michael Matz  <matz@suse.de>
22755         * system.h (string, algorithm): Include only conditionally.
22756         (new): Include always under C++.
22757         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
22758         * final.c (toplevel): Ditto.
22759         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
22760         * genconditions.c (write_header): Make gencondmd.c define
22761         INCLUDE_STRING.
22762         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
22764         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
22765         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
22767 2016-01-22  Christian Bruel  <christian.bruel@st.com>
22769         PR target/68674
22770         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
22772 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22774         PR target/69403
22775         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
22776         define_insn_and_split.  Ensure operands[1] and operands[0] do not
22777         get assigned the same register.
22779 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
22781         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
22783 2016-01-22  Christian Bruel  <christian.bruel@st.com>
22785         * config/arm/arm-c.c (arm_pragma_target_parse):
22786         Remove warn_builtin_macro_redefined overwrite.
22788 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
22790         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
22791         flag_non_call_exceptions compatibility.
22793 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
22795         PR debug/66668
22796         * dwarf2out.c (add_child_die_after): New function.
22797         (dwarf_qual_info_t): New type.
22798         (dwarf_qual_info): New variable.
22799         (qualified_die_p): New function.
22800         (modified_type_die): For -fdebug-types-section, ensure
22801         canonical order of qualifiers.  Put qualified DIEs adjacent
22802         to the corresponding non-qualified type DIE and search there
22803         for existing qualified DIEs.
22805 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
22807         * doc/extend.texi (scalar_storage_order type attribute): Document
22808         restriction on type punning and aliasing, and remove future tense.
22810 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
22812         PR target/69252
22813         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
22814         first stage.
22816 2016-01-21  Jeff Law  <law@redhat.com>
22818         PR middle-end/69347
22819         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
22820         useless call to record_temporary_equivalences.
22821         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
22822         allocate 10 slots in the bb_path vector and let it grow as needed.
22823         (fsm_find_control_statement_thread_paths): Similarly for the next_path
22824         vector.
22826 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
22828         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
22829         Detangle.
22830         * configure: Regenerate.
22832 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
22834         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
22835         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
22837 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
22839         PR middle-end/66178
22840         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
22841         drop EXPAND_INITIALIZER.
22842         * rtl.h (contains_symbolic_reference_p): Declare.
22843         * rtlanal.c (contains_symbolic_reference_p): New function.
22844         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
22845         a subtraction into a NOT if symbolic constants are involved.
22847 2016-01-21  Anton Blanchard  <anton@samba.org>
22848             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22850         PR target/63354
22851         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
22852         #define.
22853         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
22854         function.
22856 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
22858         * config/microblaze/microblaze.c
22859         (get_branch_target): New.
22860         (insert_wic_for_ilb_runout): New.
22861         (insert_wic): New.
22862         (microblaze_machine_dependent_reorg): New.
22863         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
22864         * config/microblaze/microblaze.md
22865         (UNSPEC_IPREFETCH): Define.
22866         (iprefetch): New pattern
22867         * config/microblaze/microblaze.opt
22868         (mxl-prefetch): New flag.
22870 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
22872         * config/microblaze/microblaze.h
22873         (FIXED_REGISTERS): Update in macro.
22874         (CALL_USED_REGISTERS): Update in macro.
22876 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
22878         PR rtl-optimization/68920
22879         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
22880         moves.
22882 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
22884         PR rtl-optimization/68990
22885         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
22886         pseudo instead of inheritance ones.
22888 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22889             Nick Clifton  <nickc@redhat.com>
22891         PR target/69129
22892         PR target/69012
22893         * config/mips/mips.c (mips_compute_frame_info): Initialise
22894         args_size and hard_frame_pointer_offset fields of the frame
22895         structure before calling mips_global_pointer.
22897 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
22899         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
22900         label reference.
22901         * configure: Regenerate.
22903 2016-01-21  Richard Biener  <rguenther@suse.de>
22905         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
22907 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
22909         * config/s390/s390.c (s390_asm_declare_function_size): Add code
22910         to actually emit the .size directive.
22912 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
22913              Jakub Jelinek  <jakub@redhat.com>
22915         PR target/69187
22916         PR target/65624
22917         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
22918         args array size by one to avoid buffer overflow.
22920 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
22922         * config/s390/s390.md (pool_section_start): Use switch_to_section
22923         to select proper read-only data section instead of hardcoding
22924         .rodata.
22925         (pool_section_end): Use switch_to_section to match the above.
22927 2016-01-21  Richard Biener  <rguenther@suse.de>
22929         PR tree-optimization/69378
22930         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
22931         (set_ssa_val_to): Use it for dominance checks taking into
22932         account not executable edges.
22934 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
22936         PR c++/69355
22937         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
22938         for bitsize instead of GET_MODE_PRECISION (mode).
22940 2016-01-20  Martin Sebor  <msebor@redhat.com>
22942         PR c/52291
22943         * extend.texi (__sync Builtins): Clarify the semantics of
22944         __sync_fetch_and_OP built-ins on pointers.
22945         (__atomic Builtins): Same.
22947 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22948             Sebastian Pop  <s.pop@samsung.com>
22950         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
22951         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
22952         (is_valid_rename): Same.
22953         (translate_isl_ast_to_gimple::get_rename): Same.
22954         (translate_isl_ast_to_gimple::rename_all_uses): Same.
22955         (translate_isl_ast_to_gimple::rename_uses): Same.
22956         (get_new_name): Check for close_phi nodes.
22957         (copy_loop_phi_args): Use phi_node_kind.
22958         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
22959         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
22961 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22962             Sebastian Pop  <s.pop@samsung.com>
22964         Revert commit r229783.
22965         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
22966         Remove use of parameter_rename_map.
22967         (copy_def): Remove.
22968         (copy_internal_parameters): Remove.
22969         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
22970         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
22971         (free_sese_info): Do not free parameter_rename_map.
22972         (set_rename): Do not use parameter_rename_map.
22973         (rename_uses): Update call to set_rename.
22974         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
22975         * sese.h (parameter_rename_map_t): Remove.
22976         (struct sese_info_t): Remove field parameter_rename_map.
22978 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22979             Sebastian Pop  <s.pop@samsung.com>
22981         * graphite-isl-ast-to-gimple.c: Fix comment.
22982         * graphite-scop-detection.c (defined_in_loop_p): New.
22983         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
22984         names defined in loop.
22986 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22987             Sebastian Pop  <s.pop@samsung.com>
22989         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
22990         Discard unstructured if-then-else regions.
22992 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22993             Sebastian Pop  <s.pop@samsung.com>
22995         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
22996         (cleanup_loop_iter_dom): Remove.
22997         (build_loop_iteration_domains): Remove.
22998         (build_scop_context): Remove.
22999         (build_scop_iteration_domain): Remove.
23000         (add_loop_constraints): New.
23001         (build_iteration_domains): New.
23002         (build_poly_scop): Call build_iteration_domains.
23004 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23005             Sebastian Pop  <s.pop@samsung.com>
23007         * graphite-scop-detection.c
23008         (scop_detection::harmful_loop_in_region): Free dom and loops.
23009         (scop_detection::loop_body_is_valid_scop): Free bbs.
23011 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23012             Sebastian Pop  <s.pop@samsung.com>
23014         * graphite-scop-detection.c (record_loop_in_sese): New.
23015         (gather_bbs::before_dom_children): Call record_loop_in_sese.
23016         (build_scops): Remove call to build_sese_loop_nests.
23017         * sese.c (sese_record_loop): Remove.
23018         (build_sese_loop_nests): Remove.
23019         (new_sese_info): Remove region->loops.
23020         (free_sese_info): Same.
23021         * sese.h (sese_contains_loop): Same.
23022         (build_sese_loop_nests): Remove.
23023         (sese_contains_loop): Remove.
23025 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23026             Sebastian Pop  <s.pop@samsung.com>
23028         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
23029         loop_is_valid_in_scop.
23030         (scop_detection::harmful_stmt_in_region): Renamed
23031         harmful_loop_in_region.
23032         Call loop_is_valid_in_scop.
23034 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23035             Sebastian Pop  <s.pop@samsung.com>
23037         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
23038         isl_ast_node_mark.
23040 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23041             Sebastian Pop  <s.pop@samsung.com>
23043         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
23044         * graphite.h (struct poly_bb): Remove field is_reduction.
23045         (PBB_IS_REDUCTION): Remove.
23047 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23048             Sebastian Pop  <s.pop@samsung.com>
23050         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
23051         (add_pdr_constraints): Same.
23052         (scop_get_reads): Same.
23053         (scop_get_must_writes): Same.
23054         (scop_get_may_writes): Same.
23055         (scop_get_original_schedule): Same.
23056         (extend_schedule): Same.
23057         (apply_schedule_on_deps): Same.
23058         (carries_deps): Same.
23059         (compute_deps): Same.
23060         (scop_get_dependences): Same.
23061         * graphite-isl-ast-to-gimple.c
23062         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
23063         * graphite-optimize-isl.c (get_schedule_for_band): Same.
23064         (get_schedule_for_band_list): Same.
23065         (get_schedule_map): Same.
23066         (apply_schedule_map_to_scop): Same.
23067         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
23068         (build_loop_iteration_domains): Same.
23069         (add_condition_to_pbb): Same.
23070         (add_param_constraints): Same.
23071         (pdr_add_memory_accesses): Same.
23072         (pdr_add_data_dimensions): Same.
23074 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
23076         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
23077         requirements.
23079 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
23081         * common.opt (feliminate-dwarf2-dups): Replace references to
23082         "DWARF 2" with just "DWARF".
23083         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
23084         * doc/extend.texi: Likewise.
23085         * doc/cpp.texi: Likewise.
23086         * doc/invoke.texi: Likewise.
23087         (Option Summary): Add -gdwarf to list of Debugging Options.
23088         (Debugging Options): Document -gdwarf.
23089         * doc/contrib.texi: Spell "DWARF" like that.
23091 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
23093         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
23094         warning.  Fix up formatting.
23096         PR middle-end/67653
23097         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
23098         attempt to mark memory input operand addressable and
23099         call prepare_gimple_addressable in that case.  Don't adjust
23100         input_location for diagnostics, use error_at instead.
23102 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
23104         * config/rs6000/ppc-auxv.h: New file.
23105         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
23106         (cpu_is): Likewise.
23107         (cpu_supports): Likewise.
23108         * config/rs6000/rs6000.c: include "ppc-auxv.h".
23109         (cpu_is_info): New variable.
23110         (cpu_supports_info): Likewise.
23111         (tcb_verification_symbol): Likewise.
23112         (cpu_builtin_p): Likewise.
23113         (cpu_expand_builtin): New function.
23114         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
23115         (rs6000_init_builtins): Likewise.
23116         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
23117         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
23118         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
23119         * configure: Regenerate.
23120         * config.in: Likewise.
23121         * doc/extend.texi (PowerPC Built-in Functions): Document
23122         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
23124 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
23126         PR target/68609
23127         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
23128         domain check.
23129         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
23130         for V4SFmode.
23132 2016-01-20  Richard Henderson  <rth@redhat.com>
23134         PR bootstrap/69343
23135         PR bootstrap/69339
23136         PR tree-opt/68964
23137         Revert:
23138         * tree.c (tm_define_builtin): New.
23139         (find_tm_vector_type): New.
23140         (build_tm_vector_builtins): New.
23141         (build_common_builtin_nodes): Call it.
23143 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
23145         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
23146         (arm_fp_ok): Likewise.
23147         (arm_fp): Likewise.
23148         (arm_crypto): Likewise.
23150 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
23151             Richard Biener  <rguenther@suse.de>
23153         PR tree-optimization/69328
23154         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
23155         vectors have same number of elements.
23156         (vectorizable_condition): Fix masked version recognition.
23158 2016-01-20  Richard Biener  <rguenther@suse.de>
23160         PR tree-optimization/69345
23161         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
23162         (VN_INFO_PTR_INFO): Likewise.
23163         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
23164         info when it is equal between non-dominating SSA names.
23165         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
23166         Make sure to look at original SSA infos.
23168 2016-01-20  Jeff Law  <law@redhat.com>
23170         PR target/25114
23171         * config/m68k/predicates.md (pow2_m1_operand): New predicate
23172         extracted from ...
23173         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
23174         (pc_or_label_operand): New predicate.
23175         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
23176         tests for small integers that are 2^n - 1.
23178 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
23180         * doc/invoke.texi (Options Summary): Add '.' after @xref.
23182 2016-01-19  Jeff Law  <law@redhat.com>
23184         PR middle-end/69347
23185         * tree-ssa-threadbackwards.c
23186         (fsm_find_control_statement_thread_paths): Do not try to lookup
23187         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
23189 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
23191         * doc/lto.texi: Remove text that says only Gold has linker plugin
23192         support.
23194 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
23196         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
23197         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
23198         the DIE accordingly.
23199         (modified_type_die): Add REVERSE parameter and pass it recursively,
23200         as well as to base_type_die.  Adjust presence check accordingly.
23201         (base_type_for_mode): Adjust call to modified_type_die.
23202         (add_type_attribute): Add REVERSE parameter and pass it to
23203         modified_type_die.
23204         (generic_parameter_die): Adjust call to add_type_attribute.
23205         (add_scalar_info): Likewise.
23206         (add_subscript_info): Likewise.
23207         (gen_array_type_die): Likewise.
23208         (gen_descr_array_type_die): Likewise.
23209         (gen_entry_point_die): Likewise.
23210         (gen_enumeration_type_die): Likewise.
23211         (gen_formal_parameter_die): Likewise.
23212         (gen_subprogram_die): Likewise.
23213         (gen_variable_die ): Likewise.
23214         (gen_const_die): Likewise.
23215         (gen_field_die): Likewise.
23216         (gen_pointer_type_die): Likewise.
23217         (gen_reference_type_die): Likewise.
23218         (gen_ptr_to_mbr_type_die): Likewise.
23219         (gen_inheritance_die): Likewise.
23220         (gen_subroutine_type_die): Likewise.
23221         (gen_typedef_die): Likewise.
23222         (force_type_die): Adjust call to modified_type_die.
23224 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
23226         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
23227         flow throughout the file.  Fix broken link to Objective-C 2.0
23228         documentation.
23229         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
23230         errors.
23232 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23234         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
23236 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23238         PR ipa/66223
23239         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
23240         (maybe_record_node): Record cxa_pure_virtual as the only possible
23241         target if there are not ohter candidates.
23242         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
23244 2016-01-19  Richard Biener  <rguenther@suse.de>
23246         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
23247         (get_memory_order): Likewise.
23249 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
23251         * tree-vect-stmts.c (vectorizable_store): Check
23252         rhs vectype.
23254 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
23256         PR jit/68446
23257         * gcc.c (driver::decode_argv): Add call to
23258         init_opts_obstack before init_options_struct.
23259         * opts.c (init_opts_obstack): Remove idempotency.
23260         (init_options_struct): Replace call to init_opts_obstack
23261         with a gcc_assert to verify that it has already been called.
23262         * toplev.c (toplev::main): Add call to init_opts_obstack before
23263         calls to init_options_struct.
23264         (toplev::finalize): Move cleanup of opts_obstack next to
23265         cleanup of save_decoded_options, clearing the latter, and
23266         save_decoded_options_count.
23268 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23270         PR target/69135
23271         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
23272         attribute to unconditional.  Remove %? from output template.
23274 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23275             Jiong Wang  <jiong.wang@arm.com>
23277         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
23278         generated from different expand order.
23280 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23282         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
23283         Add support for CCMP costing.
23285 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23287         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
23288         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
23289         (fccmpe<mode>): Likewise.
23290         (fcmp): Rename to fcmp and globalize pattern.
23291         (fcmpe): Likewise.
23292         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
23293         (aarch64_gen_ccmp_next): Add FP support.
23295 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23297         * target.def (gen_ccmp_first): Update documentation.
23298         (gen_ccmp_next): Likewise.
23299         * doc/tm.texi (gen_ccmp_first): Update documentation.
23300         (gen_ccmp_next): Likewise.
23301         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
23302         expand_ccmp_expr_1.  Improve comments.
23303         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
23304         (ccmp_ior<mode>): Remove pattern.
23305         (cmp<mode>): Remove expand.
23306         (cmp): Globalize pattern.
23307         (cstorecc4): Use cc_register.
23308         (mov<mode>cc): Remove ccmp_cc_register check.
23309         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
23310         Simplify after removal of CC_DNE/* modes.
23311         (aarch64_ccmp_mode_to_code): Remove.
23312         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
23313         In 'k' case use integer as condition.
23314         (aarch64_nzcv_codes): Remove inverted cases.
23315         (aarch64_code_to_ccmode): Remove.
23316         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
23317         comparison with CC register to be used in folowing CCMP/branch/CSEL.
23318         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
23319         pattern.  Return the comparison with CC register.  Invert conditions
23320         when bitcode is OR.
23321         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
23322         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
23324 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23326         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
23327         instrumented_version.
23329 2016-01-19  Richard Biener  <rguenther@suse.de>
23331         PR tree-optimization/69336
23332         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
23333         handled components with get_ref_base_and_extent.
23334         (equal_mem_array_ref_p): Adjust.
23336 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
23338         PR debug/65779
23339         * shrink-wrap.c: Include valtrack.h.
23340         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
23341         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
23342         in between insn and where it will be moved to.  Call
23343         dead_debug_insert_temp.
23344         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
23345         first and dead_debug_local_finish at the end.
23346         For uses and defs bitmap, handle all regs in between REGNO and
23347         END_REGNO, not just the first one.
23349 2016-01-19  Richard Biener  <rguenther@suse.de>
23351         PR tree-optimization/69352
23352         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
23353         (equal_mem_array_ref_p): Constrain size and max size properly.
23354         Compare the reverse flag.
23356 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
23358         * ira.c (ira): Update regstat data if we deleted insns.
23360 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
23362         PR rtl-optimization/68955
23363         PR rtl-optimization/64557
23364         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
23365         here.  Fix up formatting.
23366         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
23368 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23370         PR lto/69133
23371         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
23372         assume that the node has body.
23373         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
23374         check.
23376 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23378         * lto-streamer-out.c (lto_output): Do not stream instrumentation
23379         thunks.
23381 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23383         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
23384         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
23386 2016-01-19  Martin Jambor  <mjambor@suse.cz>
23387             Martin Liska  <mliska@suse.cz>
23388             Michael Matz  <matz@suse.de>
23390         * Makefile.in (OBJS): Add new source files.
23391         (GTFILES): Add hsa.c.
23392         * common.opt (disable_hsa): New variable.
23393         (-Whsa): New warning.
23394         * config.in (ENABLE_HSA): New.
23395         * configure.ac: Treat hsa differently from other accelerators.
23396         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
23397         $enable_offloading.
23398         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
23399         * doc/install.texi (Configuration): Document --with-hsa-runtime,
23400         --with-hsa-runtime-include, --with-hsa-runtime-lib and
23401         --with-hsa-kmt-lib.
23402         * doc/invoke.texi (-Whsa): Document.
23403         (hsa-gen-debug-stores): Likewise.
23404         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
23405         to invoke offload compiler for hsa acclerator.
23406         * opts.c (common_handle_option): Determine whether HSA offloading
23407         should be performed.
23408         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
23409         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
23410         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
23411         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
23412         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
23413         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
23414         GF_OMP_FOR_KIND_GRID_LOOP.
23415         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
23416         (pp_gimple_stmt_1): Likewise.
23417         * gimple-walk.c (walk_gimple_stmt): Likewise.
23418         * gimple.c (gimple_build_omp_grid_body): New function.
23419         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
23420         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
23421         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
23422         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
23423         GF_OMP_TEAMS_GRID_PHONY.
23424         (gimple_statement_omp_single_layout): Updated comments.
23425         (gimple_build_omp_grid_body): New function.
23426         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
23427         (gimple_omp_for_grid_phony): New function.
23428         (gimple_omp_for_set_grid_phony): Likewise.
23429         (gimple_omp_parallel_grid_phony): Likewise.
23430         (gimple_omp_parallel_set_grid_phony): Likewise.
23431         (gimple_omp_teams_grid_phony): Likewise.
23432         (gimple_omp_teams_set_grid_phony): Likewise.
23433         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
23434         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
23435         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
23436         (BUILT_IN_GOMP_TARGET): Updated type.
23437         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
23438         (adjust_for_condition): New function.
23439         (get_omp_for_step_from_incr): Likewise.
23440         (extract_omp_for_data): Moved parts to adjust_for_condition and
23441         get_omp_for_step_from_incr.
23442         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
23443         (fixup_child_record_type): Bail out if receiver_decl is NULL.
23444         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
23445         (scan_omp_parallel): Do not create child functions for phony
23446         constructs.
23447         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
23448         (scan_omp_1_op): Checking assert we are not remapping to
23449         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
23450         (parallel_needs_hsa_kernel_p): New function.
23451         (expand_parallel_call): Register apprpriate parallel child
23452         functions as HSA kernels.
23453         (grid_launch_attributes_trees): New type.
23454         (grid_attr_trees): New variable.
23455         (grid_create_kernel_launch_attr_types): New function.
23456         (grid_insert_store_range_dim): Likewise.
23457         (grid_get_kernel_launch_attributes): Likewise.
23458         (get_target_argument_identifier_1): Likewise.
23459         (get_target_argument_identifier): Likewise.
23460         (get_target_argument_value): Likewise.
23461         (push_target_argument_according_to_value): Likewise.
23462         (get_target_arguments): Likewise.
23463         (expand_omp_target): Call get_target_arguments instead of looking
23464         up for teams and thread limit.
23465         (grid_expand_omp_for_loop): New function.
23466         (grid_arg_decl_map): New type.
23467         (grid_remap_kernel_arg_accesses): New function.
23468         (grid_expand_target_kernel_body): New function.
23469         (expand_omp): Call it.
23470         (lower_omp_for): Do not emit phony constructs.
23471         (lower_omp_taskreg): Do not emit phony constructs but create for them
23472         a temporary variable receiver_decl.
23473         (lower_omp_taskreg): Do not emit phony constructs.
23474         (lower_omp_teams): Likewise.
23475         (lower_omp_grid_body): New function.
23476         (lower_omp_1): Call it.
23477         (grid_reg_assignment_to_local_var_p): New function.
23478         (grid_seq_only_contains_local_assignments): Likewise.
23479         (grid_find_single_omp_among_assignments_1): Likewise.
23480         (grid_find_single_omp_among_assignments): Likewise.
23481         (grid_find_ungridifiable_statement): Likewise.
23482         (grid_target_follows_gridifiable_pattern): Likewise.
23483         (grid_remap_prebody_decls): Likewise.
23484         (grid_copy_leading_local_assignments): Likewise.
23485         (grid_process_kernel_body_copy): Likewise.
23486         (grid_attempt_target_gridification): Likewise.
23487         (grid_gridify_all_targets_stmt): Likewise.
23488         (grid_gridify_all_targets): Likewise.
23489         (execute_lower_omp): Call grid_gridify_all_targets.
23490         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
23491         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
23492         (tree_omp_clause): Added union field dimension.
23493         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
23494         * tree.c (omp_clause_num_ops): Added number of arguments of
23495         OMP_CLAUSE__GRIDDIM_.
23496         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
23497         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
23498         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
23499         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
23500         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
23501         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
23502         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
23503         * tree-pass.h (make_pass_gen_hsail): Declare.
23504         (make_pass_ipa_hsa): Likewise.
23505         * ipa-hsa.c: New file.
23506         * lto-section-in.c (lto_section_name): Add hsa section name.
23507         * lto-streamer.h (lto_section_type): Add hsa section.
23508         * timevar.def (TV_IPA_HSA): New.
23509         * hsa-brig-format.h: New file.
23510         * hsa-brig.c: New file.
23511         * hsa-dump.c: Likewise.
23512         * hsa-gen.c: Likewise.
23513         * hsa.c: Likewise.
23514         * hsa.h: Likewise.
23515         * toplev.c (compile_file): Call hsa_output_brig.
23516         * hsa-regalloc.c: New file.
23518 2016-01-18  Jeff Law  <law@redhat.com>
23520         PR tree-optimization/69320
23521         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
23522         ranged object, do nothing if the RHS constant is not [0..1].
23523         (optimize_stmt): Comparing a boolean ranged object against a
23524         constant outside [0..1] results in a compile-time constant.
23526         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
23527         test.
23529 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
23531         * doc/invoke.texi (Invoking GCC): Add new section to menu.
23532         (Option Summary): Update to reflect new section and moved options.
23533         (C++ Dialect Options): Move -fstats to new section.
23534         (Debugging Options): Move all dump, statistics, and other GCC
23535         developer options to new section.  Rewrite section introduction
23536         and re-order remaining options to put the more basic ones first.
23537         (Optimization Options): Move -fira-verbose and -flto-report* to
23538         new section.
23539         (Developer Options): New section incorporating moved options.
23540         * doc/cppopts.texi (-dM): Update cross-reference.
23542 2016-01-18  Richard Henderson  <rth@redhat.com>
23544         PR target/69176
23545         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
23546         operands to pseudo only if CSE is expected.  Split long immediate
23547         operands only after reload, and for the stack pointer.
23548         (*add<GPI>3_pluslong): Remove.
23549         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
23550         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
23551         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
23552         (*add<GPI>3 peepholes): New.
23553         (*add<GPI>3 splitters): New.
23554         * config/aarch64/constraints.md (Upl): New.
23555         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
23557 2016-01-18  Richard Biener  <rguenther@suse.de>
23559         PR tree-optimization/69297
23560         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
23561         stmt at most once.
23562         (vect_bb_vectorization_profitable_p): Clear visited flag again.
23564 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
23566         PR middle-end/68542
23567         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
23568         of mixind vector and scalar types.
23569         (fold_relational_const): Add handling of vector
23570         comparison with boolean result.
23571         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
23572         comparison of vector operands with boolean result for EQ/NE only.
23573         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
23574         (verify_gimple_cond): Likewise.
23575         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
23576         valid type of VAL.
23578 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
23580         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
23581         !TARGET_OCTEON.
23583 2016-01-18  Richard Biener  <rguenther@suse.de>
23585         PR middle-end/69308
23586         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
23588 2016-01-18  Tom de Vries  <tom@codesourcery.com>
23590         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
23592 2016-01-18  Tom de Vries  <tom@codesourcery.com>
23594         * omp-low.c (set_oacc_fn_attrib): Make extern.
23595         * omp-low.h (set_oacc_fn_attrib): Declare.
23596         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
23597         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
23598         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
23599         Add and handle function parameter oacc_kernels_p.
23600         (find_reduc_addr, get_omp_data_i_param): New function.
23601         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
23602         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
23603         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
23604         Calculate dominance info.  Skip loops that are not in a kernels region
23605         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
23606         (pass_parallelize_loops::execute): Call parallelize_loops with
23607         oacc_kernels_p argument.
23608         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
23609         New member function.
23610         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
23611         * passes.def: Add argument to pass_parallelize_loops instantation.
23613 2016-01-18  Tom de Vries  <tom@codesourcery.com>
23615         * tree-parloops.c (pass_parallelize_loops::execute): Allow
23616         pass_parallelize_loops to be run outside the loop pipeline.
23618 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
23620         * tree-scalar-evolution.c (follow_copies_to_constant): New.
23621         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
23623 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
23625         PR target/63679
23626         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
23627         using get_ref_base_and_extent.
23628         (equal_mem_array_ref_p): New.
23629         (hashable_expr_equal_p): Add call to previous.
23631 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
23633         PR target/63679
23634         * tree-sra.c (disqualified_constants, constant_decl_p): New.
23635         (sra_initialize): Allocate disqualified_constants.
23636         (sra_deinitialize): Free disqualified_constants.
23637         (disqualify_candidate): Update disqualified_constants when appropriate.
23638         (create_access): Scan for constant-pool entries as we go along.
23639         (scalarizable_type_p): Add check against type_contains_placeholder_p.
23640         (maybe_add_sra_candidate): Allow constant-pool entries.
23641         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
23642         (initialize_constant_pool_replacements): New.
23643         (sra_modify_assign): Avoid mangling assignments created by previous,
23644         and don't generate writes into constant pool.
23645         (sra_modify_function_body): Call initialize_constant_pool_replacements.
23647 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
23649         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
23650         andnot instruction.
23651         (scalar_chain::convert_op): Likewise.
23652         * config/i386/i386.md (*andndi3_doubleword): New.
23654 2016-01-18  Richard Biener  <rguenther@suse.de>
23656         PR tree-optimization/69170
23657         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
23658         building a vector from scalar results of a pattern stmt.
23660 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
23662         * haifa-sched.c (autopref_multipass_init): Work around
23663         -Wmaybe-uninitialized warning.
23665 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23667         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
23668         against the constant 0.
23670 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23672         PR tree-optimization/68799
23673         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
23674         look up phi candidates in the statement-candidate map.
23675         (phi_add_costs): Likewise.
23676         (record_phi_increments): Likewise.
23677         (phi_incr_cost): Likewise.
23678         (ncd_with_phi): Likewise.
23679         (all_phi_incrs_profitable): Likewise.
23681 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
23683         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
23684         -Wmaybe-uninitialized warning.
23686 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
23688         * doc/invoke.texi (Invoking GCC): Add new section to menu.
23689         (Option Summary): Update to reflect new section and moved options.
23690         (C++ Dialect Options): Move -fvtable-verify and related options.
23691         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
23692         and profiling-related options.
23693         (Optimization Options): Move profile generation options and
23694         -fstack-protector and related options.
23695         (Instrumentation Options): New section incorporating moved options.
23696         (Code Generation Options): Move -finstrument-functions and
23697         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
23699 2016-01-16  Tom de Vries  <tom@codesourcery.com>
23701         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
23703 2016-01-16  Tom de Vries  <tom@codesourcery.com>
23705         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
23707 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
23709         * hash-table.h (hash_table::empty): Turn into an inline wrapper
23710         that checks whether the table is already empty.  Rename the
23711         original implementation to...
23712         (hash_table::empty_slot): ...this new private function.
23714 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
23716         PR diagnostic/68899
23717         * diagnostic-show-locus.c (layout::print_source_line): Move x
23718         offset of line until after call to
23719         get_line_width_without_trailing_whitespace.
23721 2016-01-15  Jeff Law  <law@redhat.com>
23723         PR tree-optimization/69270
23724         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
23725         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
23726         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
23727         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
23728         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
23729         ssa_name_has_boolean_range and constant_boolean_node.
23731 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
23733         PR rtl-optimization/69030
23734         * lra-spills.c (remove_pseudos): Check nrefs and make the function
23735         returning bool.
23736         (spill_pseudos): Delete debug insn for dead pseudo.
23737         (lra_spill): Initiate spill_hard_reg and slots memory separately.
23739 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
23741         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
23742         New.
23743         (TYPES_UNOPUS): Likewise.
23744         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
23745         builtin type, from UNOP to UNOPUS.
23746         (lbtruncuv4sf): Likewise.
23747         (lbtruncuv2df): Likewise.
23748         (lrounduv2sf): Likewise.
23749         (lrounduv4sf): Likewise.
23750         (lrounduv2df): Likewise.
23751         (lroundusf): Likewise.
23752         (lroundusf): Likewise.
23753         (lceiluv2sf): Likewise.
23754         (lceiluv4sf): Likewise.
23755         (lceiluv2df): Likewise.
23756         (lceilusf): Likewise.
23757         (lceiludf): Likewise.
23758         (lflooruv2sf): Likewise.
23759         (lflooruv4sf): Likewise.
23760         (lflooruv2df): Likewise.
23761         (lfloorusf): Likewise.
23762         (lfloorudf): Likewise.
23763         (lfrintnuv2sf): Likewise.
23764         (lfrintnuv4sf): Likewise.
23765         (lfrintnuv2df): Likewise.
23766         (lfrintnusf): Likewise.
23767         (lfrintnudf): Likewise.
23768         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
23769         conversion.
23770         (vcvtq_u32_f32): Likewise.
23771         (vcvtq_u64_f64): Likewise.
23772         (vcvta_u32_f32): Likewise.
23773         (vcvtaq_u32_f32): Likewise.
23774         (vcvtaq_u64_f64): Likewise.
23775         (vcvtm_u32_f32): Likewise.
23776         (vcvtmq_u32_f32): Likewise.
23777         (vcvtmq_u64_f64): Likewise.
23778         (vcvtn_u32_f32): Likwise.
23779         (vcvtnq_u32_f32): Likewise.
23780         (vcvtnq_u64_f64): Likewise.
23781         (vcvtp_u32_f32): Likewise.
23782         (vcvtpq_u32_f32): Likewise.
23783         (vcvtpq_u64_f64): Likewise.
23784         (vcvtmd_u64_f64): Likewise.
23785         (vcvtms_u32_f32): Likewise.
23786         (vcvtad_u64_f64): Likewise.
23787         (vcvtas_u32_f32): Likewise.
23788         (vcvtnd_u64_f64): Likewise.
23789         (vcvtns_u32_f32): Likewise.
23790         (vcvtpd_u64_f64): Likewise.
23791         (vcvtps_u32_f32): Likewise.
23793 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23795         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
23796         CSEL of zero_extended registers.
23798 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23800         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
23801         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
23803 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23805         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
23806         false when argument string is not found in the attributes table
23807         at all.
23809 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
23811         PR target/68609
23812         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
23813         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
23814         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
23815         precision estimate.
23817 2016-01-15  Richard Biener  <rguenther@suse.de>
23819         PR tree-optimization/66856
23820         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
23821         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
23822         (vect_create_new_slp_node): Increment stmt reference count.
23823         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
23824         an SLP tree before swapping operands.
23825         (vect_build_slp_tree): Likewise.
23826         (destroy_bb_vec_info): Free stmt info after SLP instances.
23827         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
23828         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
23829         (STMT_VINFO_NUM_SLP_USES): New macro.
23831 2016-01-15  Richard Biener  <rguenther@suse.de>
23833         PR debug/69137
23834         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
23835         (add_linkage_name): ... here.
23836         (gen_typedef_die): Use add_linkage_name_raw instead of
23837         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
23838         if necessary.
23840 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
23842         * gimplify.c (oacc_default_clause): Decode reference and pointer
23843         types for both kernels and parallel regions.
23845 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
23847         PR middle-end/69246
23848         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
23850 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
23852         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
23853         (convert_scalars_to_vector): Likewise.
23855 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
23857         * doc/extend.texi (Type Traits): Fix grammar.
23859 2016-01-15  Martin Jambor  <mjambor@suse.cz>
23861         * tree-inline.c (remap_decl): Use existing dclarations if
23862         remapping a type and prevent_decl_creation_for_types.
23863         (replace_locals_stmt): Do an initial remapping of non-VLA typed
23864         decls first.  Do real remapping with
23865         prevent_decl_creation_for_types set.
23866         * tree-inline.h (copy_body_data): New field
23867         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
23868         padding.
23870 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23872         * config/s390/s390.opt (mmvcle): More verbose help text.
23874 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23876         * config/s390/s390.opt: Add period to -mzvector option text.
23878 2016-01-15  Richard Biener  <rguenther@suse.de>
23880         PR tree-optimization/68961
23881         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
23882         of invariants in stores again.
23884 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23886         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
23888 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
23890         * config/i386/i386.c (ix86_expand_branch): Don't split
23891         DI mode xor instruction to SI mode.
23893 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
23895         PR ipa/68148
23896         * ipa-icf.c (sem_function::merge): Virtual functions may become
23897         reachable even if they address is not taken and there are no
23898         idrect calls.
23900 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
23902         * lto-streamer-out.c (subtract_estimated_size): New function.
23903         (get_symbol_initial_value): Use it.
23905 2016-01-15  Christian Bruel  <christian.bruel@st.com>
23907         PR target/65837
23908         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
23909         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
23910         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
23911         use add_builtin_function_ext_scope instead of add_builtin_function.
23912         (neon_set_p, neon_crypto_set_p): Remove.
23913         (arm_init_builtins): Always call arm_init_neon_builtins and
23914         arm_init_crypto_builtins.
23915         (arm_expand_builtin): Check that builtins are allowed for the arch.
23916         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
23917         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
23918         arm_init_neon_builtins call.
23920 2016-01-15  Richard Biener  <rguenther@suse.de>
23922         PR tree-optimization/69117
23923         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
23924         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
23925         of the leader conservatively.
23926         (free_scc_vn): Restore original SSA name infos.
23928 2016-01-14  Jeff Law  <law@redhat.com>
23930         PR tree-optimization/69270
23931         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
23932         single bit of precision, verify it's also unsigned.
23933         (record_edge_info): Use constant_boolean_node rather than fold_convert
23934         to convert boolean_true/boolean_false to the right type.
23936 2016-01-14  Richard Henderson  <rth@redhat.com>
23938         PR rtl-opt/69014
23939         * loop-doloop.c (record_reg_sets): New.
23940         (doloop_optimize): Reject the transform if the sequence
23941         clobbers registers live at the end of the loop block.
23942         (doloop_optimize_loops): Enable df_live if needed.
23944 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23946         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
23947         * config/rs6000/rs6000.c: Likewise.
23948         * config/rs6000/rs6000.h: Likewise.
23949         * config/rs6000/rs6000.md: Likewise.
23950         * doc/extend.texi: Likewsie.
23952 2016-01-14  Jeff Law  <law@redhat.com>
23954         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
23955         typo.
23957 2016-01-14  Richard Henderson  <rth@redhat.com>
23959         PR c/69272
23960         PR tree-opt/68964
23961         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
23962         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
23963         instead of builtin_decl_declared_p to test for declaration.
23965 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
23967         * doc/loop.texi (Loop Analysis and Representation): Document
23968         loop_depth function.
23970 2016-01-14  Tom de Vries  <tom@codesourcery.com>
23972         PR tree-optimization/68773
23973         * omp-low.c (expand_omp_target): Don't set force_output.
23974         * varpool.c (varpool_node::get_create): Same.
23975         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
23976         offload_funcs with force_output.
23978 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
23980         PR debug/69244
23981         * lra-eliminations.c (move_plus_up): Don't change anything if either
23982         the outer or inner subreg mode is not MODE_INT.
23983         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
23984         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
23986 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
23988         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
23989         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
23990         reduc_uplus_@var{m}): Remove.
23991         * expr.c (expand_expr_real_2): Remove expansion path for
23992         reduc_[us](min|max|plus) optabs.
23993         * optabs-tree.c (scalar_reduc_to_vector): Remove.
23994         * optabs-tree.h (scalar_reduc_to_vector): Remove.
23995         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
23996         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
23997         * tree-vect-loop.c (vectorizable_reduction): Remove test for
23998         reduc_[us](min|max|plus) optabs.
24000 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
24002         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
24003         (reduc_plus_scal_v2sf): New.
24004         (reduc_smax_v2sf): Rename to...
24005         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
24006         (reduc_smin_v2sf): Rename to...
24007         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
24009 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
24011         * alias.c (compare_base_symbol_refs): New function.
24012         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
24013         it.
24015 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
24017         PR middle-end/68146
24018         PR tree-optimization/69155
24019         * tree-complex.c: Include cfganal.h.
24020         (phis_to_revisit): New variable.
24021         (extract_component): Add phiarg_p argument.  Assert that returned
24022         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
24023         (update_phi_components): Partly rewrite to use loop over real/imag
24024         components instead of code duplication.  If extract_component returns
24025         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
24026         create_tmp_reg into the PHI node instead, and mention the phi triplet
24027         in phis_to_revisit.
24028         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
24029         in phis_to_revisit at the end.
24031 2016-01-14  Richard Biener  <rguenther@suse.de>
24033         PR tree-optimization/68060
24034         * tree-vect-loop.c (vect_is_simple_reduction): Check the
24035         outer loop reduction is only used in the inner loop before
24036         detecting a double reduction.
24038 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
24040         PR target/68269
24041         * combine.c (expand_field_assignment): Punt if compute_mode is
24042         unsupported scalar mode.
24044 2016-01-14  Richard Biener  <rguenther@suse.de>
24046         PR tree-optimization/66856
24047         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
24048         SLP node only if it built successfully.
24049         (vect_analyze_slp_instance): Adjust.
24051 2016-01-14  Jeff Law  <law@redhat.com>
24053         PR tree-optimization/69270
24054         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
24055         (record_edge_info): Use it.  Convert boolean_{true,false}_node
24056         to the type of op0.
24058 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
24060         PR ipa/66487
24061         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
24062         use block_ultimate_origin
24063         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
24065 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
24067         * doc/invoke.texi (Submodel Options): Rename section to
24068         "Machine-Dependent Options" to better reflect its content.
24069         Rewrite introductory text to remove archaic CPU names.
24070         Update references.
24072 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
24074         * doc/invoke.texi (Code Gen Options): Move section up in file,
24075         before target-specific options.  Update menu and option summary
24076         to reflect the new section ordering.
24078 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
24080         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
24081         (C++ Dialect Options): Add cross-reference to -std option.
24082         * doc/standards.texi (C++ Language): Document C++14 support.
24084 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
24086         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
24087         for pack/unpack functions for __ibm128.
24088         (PACK_IF): Likewise.
24089         (UNPACK_IF): Likewise.
24091         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
24092         support for __ibm128 pack/unpack functions.
24093         (rs6000_invalid_builtin): Likewise.
24094         (rs6000_init_builtins): Likewise.
24095         (rs6000_opt_masks): Likewise.
24097         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
24098         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
24099         functions
24100         (RS6000_BTM_COMMON): Likewise.
24102         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
24103         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
24104         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
24105         128-bit floating point.  Add support for the double values to be
24106         in Altivec registers for TF/IF packing and unpacking, but restrict
24107         TD packing sub-fields to be FPR registers.  Don't allow overlapped
24108         register support for packing.  Allow pack inputs to be memory
24109         locations.  Don't build generator functions for unpack<mode>_dm
24110         and unpack<mode>_nodm.
24111         (unpack<mode>_dm): Likewise.
24112         (unpack<mode>_nodm): Likewise.
24113         (pack<mode>): Likewise.
24115         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
24116         built-in functions to pack/unpack explicit __ibm128 values.
24117         (__builtin_unpack_ibm128): Likewise.
24119         * doc/extend.texi (PowerPC Built-in Functions): Document
24120         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
24122 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
24124         PR c/66208
24125         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
24126         Add new arg loc and pass it down as context.
24127         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
24128         to the location to use for the warning.
24129         (check_function_arguments): New arg loc.  All callers changed.  Pass
24130         it to check_function_nonnull.
24131         * c-common.h (check_function_arguments): Adjust declaration.
24133 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
24135         PR tree-optimization/69156
24136         * gimple.c (validate_type): Removed.
24137         (gimple_builtin_call_types_compatible_p): Use
24138         useless_type_conversion_p instead of validate_type.
24139         * value-prof.c (gimple_stringop_fixed_value): Fold
24140         icall_size to correct type.
24142 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
24144         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
24145         effects.
24147 2016-01-13  Richard Henderson  <rth@redhat.com>
24149         PR tree-opt/68964
24150         * target.def (builtin_tm_load, builtin_tm_store): Remove.
24151         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
24152         (ix86_builtin_tm_store): Remove.
24153         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
24154         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
24155         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
24156         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
24157         * doc/tm.texi: Rebuild.
24159         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
24160         (BUILT_IN_TM_MEMCPY_RTWN): New.
24161         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
24162         fallback from vector to integer helpers.
24163         (build_tm_load): Handle vector types directly, instead of
24164         via target hook.
24165         (build_tm_store): Likewise.
24166         (expand_assign_tm): Prepare for register types not handled by
24167         the above.  Copy them to memory and use memcpy.
24168         * tree.c (tm_define_builtin): New.
24169         (find_tm_vector_type): New.
24170         (build_tm_vector_builtins): New.
24171         (build_common_builtin_nodes): Call it.
24173 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
24175         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
24176         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
24178 2016-01-13  Tom de Vries  <tom@codesourcery.com>
24180         PR tree-optimization/69169
24181         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
24182         handled_struct_type param.
24183         (create_variable_info_for, intra_create_variable_infos): Call
24184         create_variable_info_for_1 with extra arg.
24186 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
24188         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
24189         and "armv8.1-a+crc" entries.
24191 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
24193         PR target/69228
24194         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
24195         Change first operand predicate from register_or_constm1_operand
24196         to register_operand.
24197         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
24198         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
24199         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
24200         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
24201         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
24202         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
24203         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
24204         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
24205         comparison with constm1_rtx from vec_prefetch_gen part.
24207 2016-01-13  Richard Biener  <rguenther@suse.de>
24209         PR tree-optimization/69013
24210         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
24211         Exchange assert for a test.
24213 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24215         PR target/69247
24216         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
24218 2016-01-13  Richard Biener  <rguenther@suse.de>
24220         PR tree-optimization/69242
24221         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
24222         assert with a check.
24224 2016-01-13  Richard Biener  <rguenther@suse.de>
24226         PR tree-optimization/69186
24227         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
24228         Properly guard vect_update_misalignment_for_peel call.
24230 2016-01-12  Jeff Law  <law@redhat.com>
24232         PR tree-optimization/pr67755
24233         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
24234         "need_profile_correction".
24235         (thread_block_1): Initialize new field to false by default.  If we
24236         have multiple thread paths through a common joiner to different
24237         final targets, then set new field to true.
24238         (compute_path_counts): Only do count adjustment when it's really
24239         needed.
24241 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
24243         * doc/invoke.texi (Spec Files): Move section down in file, past
24244         all command-line option descriptions.
24246 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24248         PR middle-end/54809
24249         * doc/gty.texi: Remove documentation of mark_hook.
24250         * gengtype.c (struct write_types_data): Remove code to support
24251         mark_hook attribute.
24252         (walk_type): Likewise.
24253         (write_func_for_structure): Likewise.
24255 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
24257         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
24258         Directory Options, and -specs= to Overall Options.
24259         (Overall Options): Adjust similarly.  Reorder to group related
24260         options together.  Make -specs= cross-reference the spec file details.
24261         (Directory Options): Adjust similarly.
24263 2016-01-12  Jeff Law  <law@redhat.com>
24265         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
24267 2016-01-12  Olivier Hainque  <hainque@adacore.com>
24269         * gcc.c (spec_undefvar_allowed): New global.
24270         (process_command): Set to true when running for --version or --help,
24271         alone or together.
24272         (getenv_spec_function): When the variable is not defined, use the
24273         variable name as the variable value if we're allowed not to issue
24274         a fatal error.
24276 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
24278         PR tree-optimization/68911
24279         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
24280         information computed for expression "init + nit * step".
24282 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
24284         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
24285         about name of GCC executable.  Remove deleted node from menu.
24286         (Directory Options) <-B>: Remove cross-reference to deleted node.
24287         (Target Options): Delete section.
24289 2016-01-12  Christian Bruel  <christian.bruel@st.com>
24291         PR target/69180
24292         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
24293         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
24295 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
24297         PR target/69198
24298         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
24299         aligned_mem is properly set for AVX512-VL floating point masked
24300         stores.
24302         PR target/69175
24303         * ifcvt.c (cond_exec_process_if_block): When removing the last
24304         insn from then_bb, remove also any possible barriers that follow it.
24306 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
24308         PR target/68456
24309         PR target/69226
24310         * config/i386/iamcu.h (SIZE_TYPE): New macro.
24311         (PTRDIFF_TYPE): Likewise.
24312         (WCHAR_TYPE): Likewise.
24313         (WCHAR_TYPE_SIZE): Likewise.
24314         (STDINT_LONG32): Likewise.
24316 2016-01-12  Richard Biener  <rguenther@suse.de>
24318         PR tree-optimization/69053
24319         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
24320         convert initial value for cond reductions.
24322 2016-01-12  Richard Biener  <rguenther@suse.de>
24324         PR tree-optimization/69007
24325         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
24326         widen_sum after dot_prod and sad.
24328 2016-01-12  Richard Biener  <rguenther@suse.de>
24330         PR tree-optimization/69168
24331         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
24332         pattern stmt SLP type.
24333         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
24334         end up unused so cope with that case.
24336 2016-01-12  Richard Biener  <rguenther@suse.de>
24338         PR tree-optimization/69157
24339         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
24340         stmts def type only during analyze phase.
24341         (vectorizable_call): Likewise.
24342         (vectorizable_simd_clone_call): Likewise.
24343         (vectorizable_conversion): Likewise.
24344         (vectorizable_assignment): Likewise.
24345         (vectorizable_shift): Likewise.
24346         (vectorizable_operation): Likewise.
24347         (vectorizable_store): Likewise.
24348         (vectorizable_load): Likewise.
24350 2016-01-12  Richard Biener  <rguenther@suse.de>
24352         PR tree-optimization/69174
24353         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
24354         space.
24355         (vectorizable_load): Properly compute the number of loads needed
24356         for permuted strided SLP loads and do not spuriously assign
24357         to SLP_TREE_VEC_STMTS.
24359 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
24361         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
24362         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
24363         (MD_EXEC_PREFIX): Remove.
24364         (MD_STARTFILE_PREFIX) Removee.
24365         (FILE_NAME_ABSOLUTE_P): Remove.
24366         (CPP_SPEC): Do not read macros from sys/version.h.
24367         (LINK_COMMAND_SPEC): Remove.
24368         (LOCAL_INCLUDE_DIR): Remove.
24369         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
24370         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
24371         (POST_LINK_SPEC): Define to invoke stubify after linker
24372         (LIBSTDCXX): Remove define
24373         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
24374         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
24375         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
24376         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
24377         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
24378         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
24379         (i386_djgpp_asm_named_section): Add propotype of new procedure
24381         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
24382         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
24383         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
24384         in config/i386/djgpp.h).
24385         (STANDARD_STARTFILE_PREFIX_2): Define identical to
24386         STANDARD_STARTFILE_PREFIX_1.
24387         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
24388         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
24389         installation errors.
24390         (MAX_OFILE_ALIGNMENT): Define to 128.
24391         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
24393         * config/i386/djgpp.c: New file. Add implementation of
24394         i386_djgpp_asm_named_section.
24396         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
24398         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
24399         Add rule for building djgpp.o.
24401 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24403         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
24404         (rtx_is_swappable_p): Reductions are swappable.
24405         (insn_is_swappable_p): V2DF reductions are swappable.
24407 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
24409         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
24410         reloads for other unsupported memory operands.
24412 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
24413             Jim Wilson  <jim.wilson@linaro.org>
24415         PR target/69194
24416         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
24417         copy_to_mode_reg instead of force_reg.
24419 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
24421         PR target/69225
24422         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
24423         TARGET_80387 is true.
24425 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
24427         PR target/69071
24428         * lra-eliminations.c (move_plus_up): Only move plus up
24429         if subreg of the constant can be simplified into constant
24430         and use the simplified subreg of the constant instead of
24431         the original constant.
24433         * fold-const.c (fold_convertible_p): Don't return true
24434         for conversion of VECTOR_TYPE to same sized integral type.
24435         (fold_convert_loc): Fix up formatting.  Fold conversion of
24436         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
24437         instead of NOP_EXPR.
24439         PR tree-optimization/69214
24440         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
24441         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
24442         Formatting fix.
24444         PR tree-optimization/69207
24445         * tree-vect-slp.c (vect_get_constant_vectors): For
24446         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
24447         fold_convertible_p to vector_type's element type, and always
24448         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
24450 2016-01-11  Richard Biener  <rguenther@suse.de>
24452         PR tree-optimization/69173
24453         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
24454         fixup the cycle if all stmts are in a pattern.
24456 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
24458         PR middle-end/68999
24459         * alias.c (base_alias_check): Move check for addresses with
24460         alignment ANDs before the call for compare_base_decls.
24461         (memrefs_conflict_p): Return -1 for different decls
24462         that went through alignment adjustments.
24464 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24466         PR rtl-optimization/68796
24467         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
24468         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
24469         and QImode comparisons against zero with CC_NZmode.
24470         * config/aarch64/iterators.md (short_mask): New mode_attr.
24472 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
24474         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
24475         (<avx512>_store<mode>_mask): Likewise.
24477 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
24478             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24480         PR rtl-optimization/68841
24481         * ifcvt.c (struct noce_if_info): Add orig_x field.
24482         (bbs_ok_for_cmove_arith): Add to_rename parameter.
24483         Don't record conflicts on to_rename if it's present.
24484         Allow memory destinations in sets.
24485         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
24486         blocks, passing orig_x to the checks.
24487         (noce_process_if_block): Set if_info->orig_x appropriately.
24489 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24491         PR tree-optimization/69069
24492         * tree-parloops.c (create_parallel_loop): Add missing phi args.
24494 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
24496         PR rtl-optimization/68920
24497         * config/i386/i386.c (ix86_option_override_internal): Restrict number
24498         of conditional moves for  RTL if-conversion to 1 for
24499         TARGET_ONE_IF_CONV_INSN.
24500         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
24501         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
24502         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
24503         parameter to restirct number of conditional moves for
24504         RTL if-conversion.
24505         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
24506         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
24507         conditionl moves.
24509 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
24511         PR bootstrap/69123
24512         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
24513         onepart vars.  Fix typo in comment.  Fix reversed condition in
24514         unshare test.
24515         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
24517         PR bootstrap/69123
24518         * var-tracking.c (dump_onepart_variable_differences): New.
24519         (dataflow_set_different): If a detailed dump is requested,
24520         delay early returns and dump differences between onepart
24521         variables present before and after, and added variables.
24523 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
24525         PR target/69010
24526         * expr.c (expand_expr_real_1): For boolean vector constants
24527         with a scalar mode use const_scalar_mask_from_tree.
24528         (const_scalar_mask_from_tree): New.
24529         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
24530         assigned to a mask type to handle constants.
24532 2016-01-11  Martin Jambor  <mjambor@suse.cz>
24534         PR ipa/69044
24535         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
24536         useless parameters if we cannot change function signature.
24538 2016-01-11  Martin Jambor  <mjambor@suse.cz>
24540         PR ipa/66616
24541         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
24542         flag.
24544 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24546         PR tree-optimization/69109
24547         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
24548         latch with phi.
24550 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24552         PR tree-optimization/69108
24553         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
24554         res is not used in a phi.
24556 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
24558         PR 67425
24559         * common.opt (frandom-seed): Fix parameter name.
24560         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
24562 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24564         PR tree-optimization/69058
24565         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
24566         not supported.
24568 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
24570         * config/arc/arc.opt (mdiv-rem): Add period to the end.
24571         (mcode-density): Likewise.
24573 2016-01-10  Tom de Vries  <tom@codesourcery.com>
24575         PR tree-optimization/69062
24576         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
24577         (parallelize_loops): Don't paralelize loop that has phi with address
24578         arg.
24580 2016-01-10  Tom de Vries  <tom@codesourcery.com>
24582         PR tree-optimization/69039
24583         * tree-parloops.c (try_create_reduction_list): Only allow single exit
24584         phi for reduction.
24586 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
24588         PR middle-end/68743
24589         * match.pd: Require target has function_c99_misc before doing
24590         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
24592 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
24594         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
24595         use GMPINC.
24596         * configure: Regenerate.
24598 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
24600         PR middle-end/50865
24601         PR tree-optimization/69097
24602         * fold-const.h (expr_not_equal_to): New prototype.
24603         * fold-const.c: Include stringpool.h and tree-ssanames.h.
24604         (expr_not_equal_to): New function.
24605         * match.pd (X % -Y is the same as X % Y): Don't optimize
24606         unless X is known not to be equal to minimum or Y is known
24607         not to be equal to -1.
24608         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
24609         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
24610         (simplify_stmt_using_ranges): Adjust caller.
24611         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
24612         substitute_and_fold.
24614 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
24616         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
24617         w/o DECL_NAME.
24619 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
24621         PR tree-optimization/69167
24622         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
24623         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
24624         ops[0] comparison.
24625         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
24627 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
24628             Richard Biener  <rguenther@suse.de>
24630         PR tree-optimization/68707
24631         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
24632         instances that can be handled via vect_load_lanes.
24634 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
24636         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
24637         if we can't determine address equivalence.
24638         * alias.c (compare_base_decl): Update for changed return value of
24639         symtab_node::equal_address_to.
24641 2016-01-08  Jason Merrill  <jason@redhat.com>
24643         PR c++/68983
24644         PR c++/67557
24645         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
24646         * expr.c (store_field): Not here.
24647         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
24648         call with TREE_ADDRESSABLE type.
24649         * tree-cfg.c (verify_gimple_call): Adjust.
24651 2016-01-08  Olivier Hainque  <hainque@adacore.com>
24653         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
24654         libc_internal.
24656 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
24658         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
24659         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
24660         (reduc_smin_v2sf): Rename to...
24661         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
24662         (reduc_splus_v2sf): Rename to...
24663         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
24665 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
24667         PR tree-optimization/69162
24668         * gimplify.c (gimplify_va_arg_expr): Encode original type of
24669         valist argument in another argument.
24670         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
24671         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
24672         to determine the va_list type, build a MEM_REF instead of
24673         build_fold_indirect_ref.
24675         PR tree-optimization/69172
24676         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
24677         gimple_build.
24679 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24681         PR tree-optimization/67781
24682         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
24683         and cmpnop in two steps: first the ones not accessed in original
24684         gimple expression in a endian independent way and then the ones not
24685         accessed in the final result in an endian-specific way.
24687 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
24689         PR tree-optimization/69083
24690         * tree-vect-slp.c (vect_get_constant_vectors): For
24691         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
24692         element type.  If op is fold_convertible_p to vector_type's element
24693         type, use NOP_EXPR instead of VCE.
24695 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
24697         PR rtl-optimization/67778
24698         PR rtl-optimization/68634
24699         PR rtl-optimization/68909
24700         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
24701         block from the stack until done with it.  Remove a superfluous
24702         bitmap set.  Remove a superfluous bitmap test.
24704 2016-01-07  Martin Sebor  <msebor@redhat.com>
24706         PR c/68966
24707         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
24708         constraint on the type of arguments.
24710 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
24712         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
24713         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
24714         unaligned_access on the gcc_options set.
24715         * config/arm/arm.c (arm_option_override_internal): Use
24716         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
24718 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
24720         PR target/69140
24721         * config/i386/i386.c (ix86_frame_pointer_required): Enable
24722         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
24724 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
24726         Revert
24727         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
24729         PR target/69140
24730         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
24731         depending on frame_pointer_needed before remaining integer and SSE
24732         registers are saved.
24734 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
24736         PR 1078
24737         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
24739 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
24741         PR target/69171
24742         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
24743         Use the "xBm" constraint.
24744         (float<sseintvecmodelower><mode>2<mask_name><round_name):
24745         Likewise.
24746         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
24747         (sse_cvtsi2ssq<round_name>): Likewise.
24748         (sse_cvtss2si<round_name>): Likewise.
24749         (sse_cvtss2siq<round_name>): Likewise.
24750         (sse2_cvtsi2sdq<round_name>): Likewise.
24751         (sse2_cvtsd2si<round_name>): Likewise.
24752         (sse2_cvtsd2siq<round_name>): Likewise.
24753         * config/i386/subst.md (round_nimm_scalar_predicate): New
24754         predicate.
24756 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
24758         PR middle-end/67639
24759         * varasm.c (make_decl_rtl): Mark invalid register vars as
24760         DECL_EXTERNAL.
24762         PR rtl-optimization/66206
24763         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
24764         All callers changed.
24766 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
24768         PR tree-optimization/69141
24769         * tree-ssa-pre.c: Include langhooks.h.
24770         (eliminate_dom_walker::before_dom_children): Use
24771         lang_hooks.decl_printable_name instead of
24772         cgraph_node::get ()->name ().
24774         PR middle-end/68960
24775         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
24776         it and DECL_ALIGN too.
24778 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
24780         * config/mips/mips-ftypes.def: Sort to lexicographical order.
24782 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
24784         PR target/69140
24785         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
24786         depending on frame_pointer_needed before remaining integer and SSE
24787         registers are saved.
24789 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24791         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
24792         mode iterator with VSX_M2.
24793         (*p9_vecstore_<mode>): Likewise.
24794         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
24795         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
24796         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
24797         (define_split for VSX_LE128 stores): Likewise.
24798         (define_peephole2 for TImode LE swaps): Likewise.
24799         (define_split for VSX_LE128 post-reload stores): Likewise.
24801 2016-01-06  Marek Polacek  <polacek@redhat.com>
24803         PR sanitizer/69099
24804         * convert.c (convert_to_integer_1): Adjust call to
24805         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
24806         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
24807         EXPR instead of ARG.
24808         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
24810 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24812         PR 1078
24813         * doc/extend.texi (RL78 Variable Attributes): New section.
24815 2016-01-05  Marek Polacek  <polacek@redhat.com>
24817         PR c/69104
24818         * builtins.c (get_memmodel): Use expansion point location rather than
24819         the input location.  Call warning_at rather than warning.
24820         (expand_builtin_atomic_compare_exchange): Likewise.
24821         (expand_builtin_atomic_load): Likewise.
24822         (expand_builtin_atomic_store): Likewise.
24823         (expand_builtin_atomic_clear): Likewise.
24825 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
24827         PR target/68991
24828         * config/i386/i386.c (ix86_expand_vector_logical_operator):
24829         Replace nonimmediate_operand with vector_operand.
24830         * config/i386/predicates.md (vector_operand): New predicate.
24831         (general_vector_operand): Replace nonimmediate_operand with
24832         vector_operand.
24833         * config/i386/sse.md: Replace nonimmediate_operand with
24834         vector_operand and m constraint with Bm constraint on SSE
24835         patterns with 16-byte memory operand.
24836         * config/i386/subst.md (round_nimm_predicate): Replace
24837         nonimmediate_operand with vector_operand.
24838         (round_saeonly_nimm_predicate): Likewise.
24839         (round_saeonly_nimm_scalar_predicate): New.
24841 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
24843         PR target/68991
24844         * config/i386/constraints.md (Bm): New constraint.
24845         * config/i386/predicates.md (vector_memory_operand): New
24846         predicate.
24847         * config/i386/sse.md: Replace xm with xBm in plusminus and
24848         any_logic patterns.
24850 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24852         PR 1078
24853         * doc/extend.texi (V850 Function Attributes): New section.
24854         (V850 Variable Attributes): New section.
24856 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24858         PR 1078
24859         * doc/extend.texi (MicroBlaze Function Attributes): Document
24860         interrupt_handler and fast_interrupt attributes.
24862 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
24864         PR other/60465
24865         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
24866         for local symbolic operands.
24867         * config/ia64/predicates.md (local_symbolic_operand64): New
24868         predicate.
24870 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24872         PR rtl-optimization/68651
24873         * combine.c (combine_simplify_rtx): Canonicalize x + x into
24874         x << 1.
24876 2016-01-05  Nathan Sidwell  <nathan@acm.org>
24878         * alias.c (compare_base_decls): Use symtab_node::get.
24880 2016-01-05  Nick Clifton  <nickc@redhat.com>
24882         PR target/68770
24883         * ira-costs.c (copy_cost): Initialise the t_icode field of the
24884         secondary_reload_info structure.
24886         PR target/66655
24887         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
24888         decls if weak support is available.
24890 2016-01-04  Martin Sebor  <msebor@redhat.com>
24892         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
24894 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
24896         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
24897         OPTION_MASK_P9_DFORM.
24899         * config/rs6000/constraints.md (wo constraint): New constraint for
24900         ISA 3.0 (power9).
24902         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
24903         for wo constraint.
24904         (rs6000_init_hard_regno_mode_ok): Likewise.
24906         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
24907         wo constraint.
24909         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
24910         expanders not to have constraints.  Add support for ISA 3.0 xxperm
24911         instruction.  Add support for fusing xxlor with xxperm.
24912         (altivec_vperm_<mode>_internal): Likewise.
24913         (altivec_vperm_v8hiv16qi): Likewise.
24914         (altivec_vperm_<mode>v16q): Likewise.
24915         (altivec_vperm_<mode>_uns): Likewise.
24916         (vperm_v8hiv4si): Likewise.
24917         (vperm_v16qiv8hi): Likewise.
24919         * doc/md.texi (RS/6000 constraints): Document wo constraint.
24921 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
24923         Update copyright years.
24925         * gcc.c (process_command): Update copyright notice dates.
24926         * gcov-dump.c (print_version): Ditto.
24927         * gcov.c (print_version): Ditto.
24928         * gcov-tool.c (print_version): Ditto.
24929         * gengtype.c (create_file): Ditto.
24930         * doc/cpp.texi: Bump @copying's copyright year.
24931         * doc/cppinternals.texi: Ditto.
24932         * doc/gcc.texi: Ditto.
24933         * doc/gccint.texi: Ditto.
24934         * doc/gcov.texi: Ditto.
24935         * doc/install.texi: Ditto.
24936         * doc/invoke.texi: Ditto.
24938 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
24940         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
24941         modes larger than TImode as TImode if NEON is not enabled.
24943 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
24945         PR target/69100
24946         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
24947         mode for %f0-%f31 only if TARGET_FPU.
24949 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
24951         PR target/69072
24952         * config/sparc/sparc.c (scan_record_type): Take into account subfields
24953         to compute the PACKED_P predicate.
24954         (function_arg_record_value): Minor tweaks.
24956 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24958         * doc/install.texi (--with-multilib-list): Describe the meaning of the
24959         option for arm*-*-* targets.
24961 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
24963         * doc/extend.texi (Common Function Attributes): Move docs for
24964         MSP430-specific attributes to....
24965         (MSP430 Function Attributes): ...here.  Delete the redundant
24966         entries and copy-edit the remaining text.
24967         (MSP430 Variable Attributes): Use uniform format for index
24968         entries and add a cross-reference to the corresponding function
24969         attribute docs.
24971 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
24973         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
24974         -finite-math typo.
24975         (x86 Options): Likewise.
24977 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
24979         PR 1078
24981         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
24982         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
24983         to corresponding attribute.
24985 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
24987         * doc/extend.texi (Common Function Attributes) <noplt>: Move
24988         to correct alphabetization of table.  Copy-edit and correct
24989         markup.
24990         <stack_protect>: Likewise.
24991         <target_clones>: Likewise.
24992         <simd>: Likewise.
24993         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
24994         Correct punctuation.
24995         (Code Gen Options) <-fno-plt>: Copy-edit.
24997 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24999         PR target/68917
25000         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
25001         SI values.  Explicitly convert SI to DI and vice-versa.
25003 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
25005         PR tree-optimization/69070
25006         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
25007         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
25009         PR sanitizer/69055
25010         * ubsan.c (ubsan_instrument_float_cast): Call
25011         initialize_sanitizer_builtins.
25013         PR target/69015
25014         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
25016 Copyright (C) 2016 Free Software Foundation, Inc.
25018 Copying and distribution of this file, with or without modification,
25019 are permitted in any medium without royalty provided the copyright
25020 notice and this notice are preserved.