Delete x86 deprecated pcommit instruction support
[official-gcc.git] / gcc / ChangeLog
blob18020cac141a625dddaea9c3a1c0aa4a811450b1
1 2016-10-05  Andrew Senkevich  <andrew.senkevich@intel.com>
3         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
4         OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
5         (ix86_handle_option): Deleted handle of OPT_mpcommit.
6         * config.gcc: Deleted pcommitintrin.h
7         * config/i386/pcommitintrin.h: Deleted file.
8         * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
9         * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
10         detection.
11         * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
12         __PCOMMIT__.
13         * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
14         (PTA_PCOMMIT): Deleted define.
15         (ix86_option_override_internal): Deleted handle of option.
16         (ix86_valid_target_attribute_inner_p): Deleted pcommit.
17         * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
18         __builtin_ia32_pcommit): Deleted.
19         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
20         * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
21         (pcommit): Deleted instruction.
22         * config/i386/i386.opt: Mention -mpcommit deprecation.
23         * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
25 2016-10-05  Uros Bizjak  <ubizjak@gmail.com>
27         PR target/77874
28         * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
29         Remove wrong assert.
30         (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
31         Use <round_constraint> as operand 1 constraint.
33 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
35         PR sanitizer/66343
36         * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
37         (ubsan_instrument_float_cast): And not here.
39         PR sanitizer/66343
40         * ubsan.c (ubsan_ids): New GTY(()) array.
41         (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
42         instead of static local counters.
44 2016-10-05  Martin Sebor  <msebor@redhat.com>
46         PR bootstrap/77819
47         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
48         * config/linux.c (gnu_libc_printf_pointer_format): Remove.
49         * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
50         (default_printf_pointer_format): Define function.
51         * targhooks.c (linux_printf_pointer_format): Define new function.
52         * targhooks.h (linux_printf_pointer_format): Declare.
53         (gnu_libc_printf_pointer_format): Remove declaration.
55 2016-10-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
57         * fold-const.c (native_encode_real): Fix logic for selecting offset
58         to write to when BYTES_BIG_ENDIAN.
60 2016-10-05  Wilco Dijkstra  <wdijkstr@arm.com>
62         * builtins.c (fold_builtin_strchr): Remove function.
63         (fold_builtin_strrchr): Likewise.
64         (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
65         * gimple-fold.c (target_char_cst_p): New function.
66         (gimple_fold_builtin_strchr) Add more foldings.
67         (gimple_fold_builtin): Add index, strrchr, rindex cases.
69 2016-10-05  Richard Biener  <rguenther@suse.de>
71         PR middle-end/77863
72         * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
73         capture ids in c-exprs.
75 2016-10-05  Richard Biener  <rguenther@suse.de>
77         PR middle-end/77826
78         * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
79         with types_match for GIMPLE code gen to handle type mismatched
80         constants properly.
81         (dt_operand::gen): Adjust.
82         * match.pd ((X /[ex] A) * A -> X): Properly handle converted
83         and constant A.
85 2016-10-05  Richard Biener  <rguenther@suse.de>
87         * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
89 2016-10-05  Richard Biener  <rguenther@suse.de>
91         PR middle-end/77842
92         * genmatch.c (parser::parse_c_expr): Handle premature EOF.
94 2016-10-05  Pierre-Marie de Rodat  <derodat@adacore.com>
96         * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
97         version check to protect only DW_TAG_imported_module generation.
99 2016-10-05  Richard Biener  <rguenther@suse.de>
101         PR middle-end/55152
102         * match.pd (min(a,-a) -> -abs(a)): New pattern.
104 2016-10-04  Ian Lance Taylor  <iant@golang.org>
106         * explow.c (allocate_dynamic_stack_space): Call
107         do_pending_stack_adjust before handling flag_split_stack.
109 2016-10-04  David Malcolm  <dmalcolm@redhat.com>
111         * genattrtab.c (make_internal_attr): Supply dummy column number to
112         file_location ctor.
113         (main): Likewise.
114         * genoutput.c (init_insn_for_nothing): Likewise.
115         * gensupport.c (add_define_attr): Likewise.
116         * read-md.c (message_at_1): Print column number.
117         (fatal_with_file_and_line): Likewise.
118         (rtx_reader::read_char): Track column numbers.
119         (rtx_reader::unread_char): Likewise.
120         (rtx_reader::rtx_reader): Initialize m_read_md_colno.
121         (rtx_reader::handle_include): Stash and restore m_read_md_colno.
122         (rtx_reader::handle_file): Initialize m_read_md_colno.
123         (rtx_reader::get_current_location): Supply column number to
124         file_location ctor.
125         * read-md.h (struct file_location): Add field "colno".
126         (file_location::file_location): Likewise.
127         (rtx_reader::get_colno): New accessor.
128         (rtx_reader::m_read_md_colno): New field.
129         (rtx_reader::m_last_line_colno): New field.
131 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
133         * doc/extend.texi (Java Exceptions): Remove.
134         (java_interface): Remove.
136 2016-10-04  Doug Gilmore  <doug.gilmore@imgtec.com>
138         PR tree-optimization/77808
139         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
140         and addr are different before copying points-to information.
142 2016-10-04  Uros Bizjak  <ubizjak@gmail.com>
144         * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
145         * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
146         * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
147         of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
149 2016-10-04  Richard Biener  <rguenther@suse.de>
151         PR tree-optimization/77399
152         * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
153         verify the target can convert.
155 2016-10-04  Richard Biener  <rguenther@suse.de>
157         PR middle-end/77833
158         * explow.c (plus_constant): Verify the mode of the constant
159         pool offset before calling plus_constant.
161 2016-10-04  Richard Biener  <rguenther@suse.de>
163         PR middle-end/77407
164         * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
165         type support, mark with :C.
166         (X / -X -> -1): Mark with :C.
168 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
170         * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
171         * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
172         * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
173         * doc/tm.texi: Regenerated.
174         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
175         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
176         * config/darwin.h (JCR_SECTION_NAME): Remove.
177         * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
178         * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
179         * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
180         * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
181         * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
182         * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
184 2016-10-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
186         * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
187         between "because" and "param" in dump message in call to fprintf.
189 2016-10-03  Jeff Law  <law@redhat.com>
191         PR tree-optimization/71550
192         PR tree-optimization/71403
193         * tree-ssa-threadbackward.c: Include tree-vectorizer.h
194         (profitable_jump_thread_path): Also return boolean indicating if
195         the realized path will create an irreducible loop.
196         Remove loop depth tests from 71403.
197         (fsm_find_control_statement_thread_paths): Remove loop depth tests
198         from 71403.  If threading will create an irreducible loop, then
199         throw away loop iteration and related information.
201 2016-10-03  Uros Bizjak  <ubizjak@gmail.com>
203         * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
204         -Woverloaded-virtual checks for warning options.
205         * configure: Regenerate.
207 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
209         PR preprocessor/77699
210         * input.c (maybe_grow): Don't allocate one byte extra headroom.
211         (get_next_line): Return false on error.
212         (read_next_line): Removed, use get_next_line instead.
213         (read_line_num): Don't copy the line.
214         (location_get_source_line): Don't use static data.
215         (selftest::test_reading_source_line): Add more test cases.
217 2016-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
219         Revert
220         2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
222         * ifcvt.c (noce_try_avoid_const_materialization): New function.
223         (noce_process_if_block): Use it.
225 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
227         * doc/invoke.texi: Update -Wint-in-bool-context.
229 2016-10-02  Jakub Jelinek  <jakub@redhat.com>
231         * dwarf2out.c (output_fde, output_call_frame_info,
232         dwarf2out_do_cfi_startproc, set_indirect_string,
233         gen_internal_sym, output_die, output_line_info): Use
234         MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
235         ASM_GENERATE_INTERNAL_LABEL output.
237 2016-10-01  Richard Biener  <rguenther@suse.de>
239         PR middle-end/77798
240         * genmatch.c (get_operand_type): Add operand position arg
241         and handle COND_EXPR comparison operand with fixed boolean_type_node.
242         (expr::gen_transform): Adjust.
243         (dt_simplify::gen_1): Likewise.
245 2016-10-01  Jakub Jelinek  <jakub@redhat.com>
247         * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
248         comments.  Simplify asserts, remove unnecessary conditions.
249         Formatting fixes.
250         (*<code><mode>3): Likewise.
252 2016-09-30  Jakub Jelinek  <jakub@redhat.com>
254         * doc/invoke.texi (-Wregister): Document.
256 2016-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
258         * configure.ac: Split CHECKING_P into CHECKING_P and
259         ENABLE_EXTRA_CHECKING.
260         * configure: Regenerated.
261         * config.in: Adjust commment of CHECKING_P.  Add ENABLE_EXTRA_CHECKING.
262         * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
264 2016-09-30  Prasad Ghangal  <prasad.ghangal@gmail.com>
266         PR other/31566
267         * gcc.c (process_command): For @filename handling, output
268         the correct name if the file does not exist.
270 2016-09-30  Marek Polacek  <polacek@redhat.com>
272         * config/aarch64/aarch64-simd.md: Adjust fall through comments.
273         * config/alpha/predicates.md: Likewise.
275 2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
277         * ifcvt.c (noce_try_avoid_const_materialization): New function.
278         (noce_process_if_block): Use it.
280 2016-09-30  Martin Liska  <mliska@suse.cz>
282         * doc/invoke.texi: Document asan-use-after-return that
283         it's disabled by default in runtime.
285 2016-09-30  Richard Biener  <rguenther@suse.de>
287         * tree-vrp.c (intersect_ranges): If we failed to handle
288         the intersection choose a constant singleton range if available.
290 2016-09-30  Richard Biener  <rguenther@suse.de>
292         PR tree-optimization/77399
293         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
294         float <-> int conversions.
296 2016-09-30  Alan Modra  <amodra@gmail.com>
298         * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
300 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
302         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
303         ext_level before calling CPUID with 0x80000008.
304         Simplify xgetbv checks.
306 2016-09-29  David Malcolm  <dmalcolm@redhat.com>
308         * Makefile.in (OBJS): Add print-rtl-function.o.
309         * print-rtl-function.c: New file.
310         * print-rtl.h (print_rtx_function): New decl.
312 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
314         PR target/77756
315         * config/i386/cpuid.h (__get_cpuid_count): New.
316         (__get_cpuid): Rename __level to __leaf.
318 2016-09-29  Marek Polacek  <polacek@redhat.com>
320         * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
322 2016-09-29  Bernd Schmidt  <bschmidt@redhat.com>
324         * builtins.c (expand_builtin_memcmp): don't swap args unless
325         result is only being compared with zero.
327 2016-09-29  Marek Polacek  <polacek@redhat.com>
329         * dwarf2out.c (loc_descriptor): Add fall through comment.
330         (add_const_value_attribute): Likewise.
332 2016-09-29  Matthew Wahab  <matthew.wahab@arm.com>
334         * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
335         with "v6t2".  Move "arch" attribute above "pool_range".
336         * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
337         with "v6t2".
338         (*thumb2_movhi_vfp): Likewise.
339         (*arm_movhi_fp16): Likewise.
340         (*thumb2_movhi_fp16): Likewise.
341         (*arm_movsi_vfp): Remove "arch" attribute.
342         (*thumb2_movsi_vfp): Likewise.
344 2016-09-29  Martin Liska  <mliska@suse.cz>
346         * doc/extend.texi: Remove limitation of Objective C for
347         __attribute__((constructor)) and __attribute__((destructor)).
349 2016-09-29  Richard Biener  <rguenther@suse.de>
351         PR tree-optimization/77768
352         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
353         Handle stores to readonly memory when removing redundant stores.
355 2016-09-29  Richard Biener  <rguenther@suse.de>
357         PR middle-end/77407
358         * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
359         X / -X -> -1 simplifications.
361 2016-09-29  Richard Biener  <rguenther@suse.de>
363         PR middle-end/55152
364         * match.pd: Add max(a,-a) -> abs(a) pattern.
365         * tree-ssa-phiopt.c (minmax_replacement): Disable for
366         HONOR_SIGNED_ZEROS types.
368 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
370         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
371         * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
373 2016-09-29  Richard Biener  <rguenther@suse.de>
375         * tree-vrp.c (set_defs_to_varying): New helper avoiding
376         writing to vr_const_varying.
377         (vrp_initialize): Call it.
378         (vrp_visit_stmt): Likewise.
379         (evrp_dom_walker::before_dom_children): Likewise.
381 2016-09-29  Richard Biener  <rguenther@suse.de>
383         * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
384         constructors with vector elements.
386 2016-09-29  Richard Biener  <rguenther@suse.de>
388         PR tree-optimization/77768
389         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
390         with stores to a place we know has a constant value.
392 2016-09-29  Alan Modra  <amodra@gmail.com>
394         * config/rs6000/sysv4.opt (mgnu-attribute): New option.
395         * doc/invoke.texi: Document it.
396         * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
397         (rs6000_passes_float): Comment.
398         (rs6000_passes_long_double): New static var.
399         (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
400         (init_cumulative_args): Set up to emit fp .gnu_attribute for
401         ELF 64-bit ABIs as well as 32-bit ELF.  Correct rs6000_passes_float
402         to include fp values returned in vectors.
403         Set rs6000_passes_long_double.
404         (rs6000_function_arg_advance_1): Likewise for function args.
405         (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
406         and SPE.  Emit long double tag value too.
407         (rs6000_opt_vars): Add gnu-attr.
408         * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
409         * configure: Regenerate.
410         * config.in: Regenerate.
412 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
414         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
415         of 0 < x.
416         (format_floating, format_string, format_directive,
417         get_destination_size, pass_sprintf_length::handle_gimple_call):
418         Likewise.
420 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
422         * gimple-ssa-sprintf.c: Fix comment formatting.
423         (format_integer): Use is_gimple_assign.
424         (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
425         and gimple_call_fndecl.  Reorder case BUILT_IN_SPRINTF_CHK.  Fix up
426         BUILT_IN_SNPRINTF_CHK comment.  Replace "to to" with "to" in comment.
427         (pass_sprintf_length::execute): Use is_gimple_call.
429 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
431         * gimple-fold.c (gimple_fold_builtin): After failing to fold
432         strchr, also try the generic folding.
434 2016-09-28  Martin Sebor  <msebor@redhat.com>
436         PR c/77762
437         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
438         Fix typos.
440 2016-09-28  Martin Sebor  <msebor@redhat.com>
442         PR middle-end/77683
443         * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
444         length modifier is not expected.
445         (format_floating): Ignore l length modifier and fail gracefuly
446         when it isn't one of the other expected ones.
448 2016-09-28  Martin Sebor  <msebor@redhat.com>
450         PR bootstrap/77753
451         * varasm.c (assemble_addr_to_section): Increase local buffer size.
453 2016-09-27  Richard Biener  <rguenther@suse.de>
455         * dwarf2out.c (cu_die_list): New global.
456         (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs.  Add
457         main_comp_unit_die to cu_die_list if we created it.
458         Move break_out_includes ...
459         (dwarf2out_early_finish): ... here.  Push created CU DIEs onto
460         the cu_die_list.
462 2016-09-28  Richard Biener  <rguenther@suse.de>
464         * dwarf2out.c (struct die_struct): Add removed flag.
465         (lookup_type_die): If the DIE is marked as removed, clear
466         TYPE_SYMTAB_DIE and return NULL.
467         (lookup_decl_die): If the DIE is marked as removed, remove it
468         from the hash and return NULL.
469         (mark_removed): New helper.
470         (prune_unused_types_prune): Call it for removed DIEs.
471         (gen_subprogram_die): Move the premark_used_types call to after
472         DIEs for the functions scopes are generated.
473         (process_scope_var): Do not re-create pruned types or type decls.
474         Make sure to also re-parent type decls.
475         (dwarf2out_finish): Move unused type pruning and debug_types
476         handling ...
477         (dwarf2out_early_finish): ... here.
479 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
481         * config/arc/arc-c.c: New file.
482         * config/arc/arc-c.def: Likewise.
483         * config/arc/t-arc: Likewise.
484         * config.gcc: Include arc-c.o as c and cpp object.
485         * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
486         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
487         arc_cpu_cpp_builtins.
489 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
491         * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
492         (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
494 2016-09-28  Nathan Sidwell  <nathan@acm.org>
496         * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
497         printing.
499 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
501         PR tree-optimization/61056
502         * gimple-fold.c (gimple_fold_builtin_strchr):
503         New function to optimize strchr (s, 0) to strlen.
504         (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
506 2016-09-27  Robin Dapp  <rdapp@linux.vnet.ibm.com>
508         PR tree-optimization/77724
509         * tree-vect-loop-manip.c (create_intersect_range_checks_index):
510         Add tree_fits_shwi_p check.
512 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
514         * auto-inc-dec.c (try_merge): Remove break after return.
515         * cselib.c (autoinc_split): Likewise.
516         * explow.c (promote_mode): Likewise.
517         * fixed-value.c (fixed_arithmetic): Likewise.
518         * hsa.c (hsa_internal_fn::get_arity): Likewise.
519         * rtlanal.c (modified_between_p, modified_in_p): Likewise.
520         * trans-mem.c (get_attrs_for): Likewise.
521         * tree-if-conv.c (if_convertible_stmt_p): Likewise.
522         * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
523         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
524         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
525         * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
526         * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
527         * config/cris/cris.c (cris_op_str): Likewise.
528         * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
529         * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
531 2016-09-27  Nathan Sidwell  <nathan@codesourcery.com>
533         * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
534         IFN_GOACC_REDUCTION_CODES): New.
535         (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
536         ifn_goacc_reduction_kind): Use them.
537         * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
538         of internal functions, when applicable.
540 2016-09-27  Maciej W. Rozycki  <macro@imgtec.com>
542         * config/mips/constraints.md (d): Fix documentation.
543         * doc/md.texi (Machine Constraints): Update accordingly.
545 2016-09-27  Richard Biener  <rguenther@suse.de>
547         * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
548         cur_line_info_table initialization ...
549         (dwarf2out_assembly_start): ... here.
551 2016-09-27  Matthew Wahab  <matthew.wahab@arm.com>
553         * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
554         * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
555         (*thumb2_movhi_vfp): Likewise.
556         (*arm_movhi_fp16): Remove predication operand from VMOV.F16
557         template.  Expand predicable attribute to mark VMOV.F16 as not
558         predicable.  Add "arch" attribute.
559         (*thumb2_movhi_fp16): Likewise.
560         (*arm_movsi_vfp): Break a long line.  Add "arch" attribute.
561         (*thumb2_movsi_vfp): Add "arch" attribute.
563 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
565         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
566         VAR_DECL string.
568 2016-09-27  Marek Polacek  <polacek@redhat.com>
570         * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
571         comment.
573         * config/c6x/c6x.h: Adjust fall through comment.
574         * config/sh/sh.c (final_prescan_insn): Likewise.
575         * config/visium/visium.c (visium_expand_int_cstore): Likewise.
576         (visium_expand_fp_cstore): Likewise.
578 2016-09-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
580         * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
581         expected by -Wimplicit-fallthrough.
582         (thumb1_size_rtx_costs): Likewise.
583         (thumb2_reorg): Likewise.
584         (tls_mentioned_p): Add "Fall through" comment.
585         (thumb2_reorg): Likewise.
586         * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
587         comment form expected by -Wimplicit-fallthrough.
589 2016-09-27  Martin Liska  <mliska@suse.cz>
591         PR gcov-profile/46266
592         * input.h (RESERVED_LOCATION_P): New macro.
593         * profile.c (branch_prob): Use RESERVED_LOCATION_P and
594         instread of comparison with UNKNOWN_LOCATION.
596 2016-09-27  Richard Biener  <rguenther@suse.de>
598         PR tree-optimization/77745
599         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
600         When removing redundant stores make sure to check compatibility
601         of the TBAA state for downstream accesses.
602         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
603         value-numbering virtual operands for store matches.
605 2016-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
607         PR target/51244
608         * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
609         movrt patterns.  Match them before anything else in the SET case.
611 2016-09-27  Martin Liska  <mliska@suse.cz>
613         PR gcov-profile/7970
614         PR gcov-profile/16855
615         PR gcov-profile/44779
616         * coverage.c (build_gcov_exit_decl): New function.
617         (coverage_obj_init): Call the function and generate __gcov_exit
618         destructor.
619         * doc/gcov.texi: Document when __gcov_exit function is called.
621 2016-09-27  Marek Polacek  <polacek@redhat.com>
623         PR bootstrap/77751
624         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
625         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
626         -Wno-error instead of -Wno-implicit-fallthrough.
628 2016-09-27  Martin Liska  <mliska@suse.cz>
630         PR bootstrap/77749
631         * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
633 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
635         * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
636         * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
637         comments.  Remove break after return.
638         (ix86_fp_compare_code_to_integer, has_dispatch,
639         ix86_simd_clone_usable): Remove break after return.
641 2016-09-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
643         PR rlt-optimization/77714
644         * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
645         REG_EQUAL note.
647 2016-09-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
649         PR ipa/77677
650         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
651         extract_range_from_unary_expr to convert value_range.
652         * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
653         (extract_range_from_unary_expr): This.
654         * tree-vrp.h (extract_range_from_unary_expr): Declare.
656 2016-09-27  Segher Boessenkool  <segher@kernel.crashing.org>
658         * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
660 2016-09-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
662         * config/i386/i386.c (ix86_print_operand)
663         [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
664         * config/sparc/sparc.c (check_pic): Add fallthrough comment.
665         (epilogue_renumber): Likewise.
667 2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
669         PR middle-end/77719
670         * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
671         to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
673 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
675         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
676         is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
677         is_mm_seq_cst, is_mm_sync): Move to ...
678         * memmodel.h: This.  New file.
679         * builtins.c: Include memmodel.h.
680         * optabs.c: Likewise.
681         * tsan.c: Likewise.
682         * config/aarch64/aarch64.c: Likewise.
683         * config/alpha/alpha.c: Likewise.
684         * config/arm/arm.c: Likewise.
685         * config/i386/i386.c: Likewise.
686         * config/ia64/ia64.c: Likewise.
687         * config/mips/mips.c: Likewise.
688         * config/rs6000/rs6000.c: Likewise.
689         * config/sparc/sparc.c: Likewise.
690         * genconditions.c: Include memmodel.h in generated file.
691         * genemit.c: Likewise.
692         * genoutput.c: Likewise.
693         * genpeep.c: Likewise.
694         * genpreds.c: Likewise.
695         * genrecog.c: Likewise.
697 2016-09-26  David Malcolm  <dmalcolm@redhat.com>
699         * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
700         "c" instead when parsing characters.  Move operand parsing into...
701         (read_rtx_operand): ...this new function, renaming "i" to "idx",
702         and tightening the scope of various locals.
704 2016-09-26  Liu Hao  <lh_mouse@126.com>
706         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
708 2016-09-26  Marek Polacek  <polacek@redhat.com>
710         * system.h: Use __has_attribute to check whether the fallthrough
711         attribute is supported.
713 2016-09-26  Marek Polacek  <polacek@redhat.com>
715         * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
716         gimple_call_internal_p.
717         * ipa-split.c (find_return_bb): Likewise.
718         (execute_split_functions): Likewise.
719         * omp-low.c (dump_oacc_loop_part): Likewise.
720         (oacc_loop_xform_head_tail): Likewise.
721         * predict.c (predict_loops): Likewise.
722         * sanopt.c (pass_sanopt::execute): Likewise.
723         * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
724         * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
725         * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
726         (expand_ifn_va_arg_1): Use gimple_call_internal_p.
727         (expand_ifn_va_arg): Likewise.
728         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
729         (optimize_mask_stores): Likewise.
730         * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
731         (vect_transform_stmt): Likewise.
732         * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
733         * tsan.c (instrument_memory_accesses): Likewise.
735 2016-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
736             Alexander Monakov  <amonakov@ispras.ru>
738         * regrename.c (rename_chains): Check
739         HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
740         HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
741         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
743 2016-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
745         * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
746         (s390_sched_score): Likewise.
748 2016-09-26  Martin Liska  <mliska@suse.cz>
750         * doc/gcov.texi: Update program output of gcov tool.
752 2016-09-26  Martin Liska  <mliska@suse.cz>
754         PR gcov-profile/23332
755         * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
756         * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
757         * value-prof.c (dump_histogram_value): Do not handle
758         HIST_TYPE_CONST_DELTA.
759         (stream_in_histogram_value): Likewise.
760         (gimple_find_values_to_profile): Likewise.
761         * value-prof.h (enum hist_type): Likewise.
763 2016-09-26  Martin Liska  <mliska@suse.cz>
765         * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
766         from default sanitize recover values.
767         * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
768         -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
769         * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
770         consistent.
771         * opts.c (finish_options): Do a generic loop over options
772         that can be recovered.
773         (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
774         SANITIZE_RETURN.
775         (common_handle_option): Likewise.
776         * opts.h: Declare can_recover to sanitizer_opts_s.
778 2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>
780         * target.def(elf_flags_numeric): Change documentation to present tense.
781         * doc/tm.texi: Regenerate.
783 2016-09-26  Marek Polacek  <polacek@redhat.com>
785         PR c/7652
786         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
787         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
788         -Wno-switch-fallthrough.
789         * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
790         (expand_builtin): Likewise.
791         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
792         * convert.c (convert_to_real_1): Likewise.
793         (convert_to_integer_1): Likewise.
794         * final.c (output_alternate_entry_point): Likewise.
795         * genattrtab.c (make_canonical): Likewise.
796         (write_test_expr): Likewise.
797         * genpreds.c (validate_exp): Likewise.
798         * gimple-ssa-strength-reduction.c
799         (find_candidates_dom_walker::before_dom_children): Likewise.
800         * godump.c (go_format_type): Likewise.
801         * reload1.c (elimination_effects): Likewise.
802         * resource.c (mark_referenced_resources): Likewise.
803         (mark_set_resources): Likewise.
804         * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
805         * varasm.c (output_addressed_constants): Likewise.
807 2016-09-26  Marek Polacek  <polacek@redhat.com>
809         PR c/7652
810         * common.opt (Wimplicit-fallthrough): New option.
811         * doc/extend.texi: Document statement attributes and the fallthrough
812         attribute.
813         * doc/invoke.texi: Document -Wimplicit-fallthrough.
814         * gimple.h (gimple_call_internal_p): New function.
815         * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
816         (struct label_entry): New struct.
817         (find_label_entry): New function.
818         (case_label_p): New function.
819         (collect_fallthrough_labels): New function.
820         (last_stmt_in_scope): New function.
821         (should_warn_for_implicit_fallthrough): New function.
822         (warn_implicit_fallthrough_r): New function.
823         (maybe_warn_implicit_fallthrough): New function.
824         (expand_FALLTHROUGH_r): New function.
825         (expand_FALLTHROUGH): New function.
826         (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
827         expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
828         (gimplify_label_expr): New function.
829         (gimplify_case_label_expr): Set location.
830         (gimplify_expr): Call gimplify_label_expr.
831         * internal-fn.c (expand_FALLTHROUGH): New function.
832         * internal-fn.def (FALLTHROUGH): New internal function.
833         * langhooks.c (lang_GNU_OBJC): New function.
834         * langhooks.h (lang_GNU_OBJC): Declare.
835         * system.h (gcc_fallthrough): Define.
836         * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
837         * tree.h (FALLTHROUGH_LABEL_P): Define.
839 2016-09-26  Richard Biener  <rguenther@suse.de>
841         * dwarf2out.c (stripattributes): Remove unused function.
842         (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
843         Push dwarf_split_debug_info handling into init_sections_and_labels.
844         (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
845         (DEBUG_MACRO_SECTION_FLAGS): Remove.
846         (debug_macinfo_section_name): New global.
847         (output_macinfo): Use debug_macinfo_section_name.
848         (init_sections_and_labels): Split out section and label generation
849         from dwarf2out_init.  Set debug_macinfo_section_name.
850         (dwarf2out_init): Move text section label generation and emission
851         to ...
852         (dwarf2out_assembly_start): ... here.
853         (dwarf2out_finish): Call init_sections_and_labels before DWARF
854         output starts.
856 2016-09-26  Richard Biener  <rguenther@suse.de>
858         PR debug/77692
859         * cgraphunit.c (analyze_functions): Before early removing
860         global vars calls the late_global_decl debug handler mark
861         the variable as readonly.
863 2016-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
865         PR target/51244
866         * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
867         (sh_rtx_costs): Handle SET of movt and movrt patterns.
868         * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
869         declare new overloads.
870         * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
871         operand.
873 2016-09-24  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
875         * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
876         Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
878 2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
880         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
881         * configure: Regenerate.
883 2016-09-24  Marek Polacek  <polacek@redhat.com>
885         PR c/77490
886         * doc/invoke.texi: Document -Wbool-operation.
888 2016-09-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
890         * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
891         * config/rs6000/rs6000.c (expand_block_compare): New function used by
892         cmpmemsi pattern to do builtin expansion of memcmp ().
893         (compute_current_alignment): Add helper function for
894         expand_block_compare used to compute alignment as the compare proceeds.
895         (select_block_compare_mode): Used by expand_block_compare to select
896         the mode used for reading the next chunk of bytes in the compare.
897         (do_load_for_compare): Used by expand_block_compare to emit the load
898         insns for the compare.
899         (rs6000_emit_dot_insn): Moved this function to avoid a forward
900         reference from expand_block_compare ().
901         * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
902         prototype for this function.
903         * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
904         target option for controlling how much code inline expansion of
905         memcmp() will be allowed to generate.
907 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
909         * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
910         hook_bool_mode_false, hook_bool_mode_true,
911         hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
912         hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
913         hook_bool_const_rtx_insn_const_rtx_insn_true,
914         hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
915         hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
916         hook_bool_const_tree_hwi_hwi_const_tree_false,
917         hook_bool_const_tree_hwi_hwi_const_tree_true,
918         default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
919         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
920         hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
921         hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
922         hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
923         hook_bool_const_tree_true, hook_bool_tree_tree_false,
924         hook_bool_tree_tree_true, hook_bool_tree_bool_false,
925         hook_bool_rtx_insn_true, hook_bool_rtx_false,
926         hook_bool_uintp_uintp_false,
927         hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
928         hook_rtx_tree_int_null, hook_uint_mode_0,
929         hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
930         hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
931         hook_constcharptr_const_rtx_insn_null,
932         hook_constcharptr_const_tree_const_tree_null,
933         hook_constcharptr_int_const_tree_null,
934         hook_constcharptr_int_const_tree_const_tree_null,
935         hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
936         hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
937         ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
939         * vec.h (vNULL): Extend comment to say = vNULL initialization
940         isn't needed for static vars.
942         * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
943         loop_nests, s_i_d, last_added_blocks): Remove unnecessary
944         = vNULL initialization of file scope vec.
945         * passes.c (pass_tab, enabled_pass_uid_range_tab,
946         disabled_pass_uid_range_tab): Likewise.
947         * haifa-sched.c (sched_luids, h_i_d): Likewise.
948         * tree-chkp-opt.c (check_infos): Likewise.
949         * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
951         * vec.h (vnull::operator vec): Add constexpr keyword for
952         C++11 and later.
954 2016-09-23  Doug Gilmore  <doug.gilmore@imgtec.com>
956         PR tree-optimization/77654
957         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
958         to duplicate_ssa_name_ptr_info.
960 2016-09-23  David Malcolm  <dmalcolm@redhat.com>
962         PR preprocessor/77672
963         * input.c (selftest::test_lexer_string_locations_simple): Update
964         test to expect location information of the terminator character
965         at the location of the final closing quote.
966         (selftest::test_lexer_string_locations_hex): Likewise.
967         (selftest::test_lexer_string_locations_oct): Likewise.
968         (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
969         (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
970         (selftest::test_lexer_string_locations_ucn4): Likewise.
971         (selftest::test_lexer_string_locations_ucn8): Likewise.
972         (selftest::test_lexer_string_locations_u8): Likewise.
973         (selftest::test_lexer_string_locations_utf8_source): Likewise.
974         (selftest::test_lexer_string_locations_concatenation_1): Likewise.
975         (selftest::test_lexer_string_locations_concatenation_2): Likewise.
976         (selftest::test_lexer_string_locations_concatenation_3): Likewise.
977         (selftest::test_lexer_string_locations_macro): Likewise.
978         (selftest::test_lexer_string_locations_long_line): Likewise.
980 2016-09-23  Richard Biener  <rguenther@suse.de>
982         * tree-ssa-sccvn.c (visit_reference_op_call): Value number
983         virtual definition to virtual use if the call devirtualizes
984         to a const or pure function.
985         (visit_use): Also visit calls we can devirtualize to a
986         const or pure function.
988 2016-09-23  Richard Biener  <rguenther@suse.de>
990         PR tree-optimization/77697
991         * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
992         signal error if we have sth ternary or unhandled.
994 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
996         * config/arm/arm_neon.h (vabd_f16): New.
997         (vabdq_f16): New.
998         (vabs_f16): New.
999         (vabsq_f16): New.
1000         (vadd_f16): New.
1001         (vaddq_f16): New.
1002         (vcage_f16): New.
1003         (vcageq_f16): New.
1004         (vcagt_f16): New.
1005         (vcagtq_f16): New.
1006         (vcale_f16): New.
1007         (vcaleq_f16): New.
1008         (vcalt_f16): New.
1009         (vcaltq_f16): New.
1010         (vceq_f16): New.
1011         (vceqq_f16): New.
1012         (vceqz_f16): New.
1013         (vceqzq_f16): New.
1014         (vcge_f16): New.
1015         (vcgeq_f16): New.
1016         (vcgez_f16): New.
1017         (vcgezq_f16): New.
1018         (vcgt_f16): New.
1019         (vcgtq_f16): New.
1020         (vcgtz_f16): New.
1021         (vcgtzq_f16): New.
1022         (vcle_f16): New.
1023         (vcleq_f16): New.
1024         (vclez_f16): New.
1025         (vclezq_f16): New.
1026         (vclt_f16): New.
1027         (vcltq_f16): New.
1028         (vcltz_f16): New.
1029         (vcltzq_f16): New.
1030         (vcvt_f16_s16): New.
1031         (vcvt_f16_u16): New.
1032         (vcvt_s16_f16): New.
1033         (vcvt_u16_f16): New.
1034         (vcvtq_f16_s16): New.
1035         (vcvtq_f16_u16): New.
1036         (vcvtq_s16_f16): New.
1037         (vcvtq_u16_f16): New.
1038         (vcvta_s16_f16): New.
1039         (vcvta_u16_f16): New.
1040         (vcvtaq_s16_f16): New.
1041         (vcvtaq_u16_f16): New.
1042         (vcvtm_s16_f16): New.
1043         (vcvtm_u16_f16): New.
1044         (vcvtmq_s16_f16): New.
1045         (vcvtmq_u16_f16): New.
1046         (vcvtn_s16_f16): New.
1047         (vcvtn_u16_f16): New.
1048         (vcvtnq_s16_f16): New.
1049         (vcvtnq_u16_f16): New.
1050         (vcvtp_s16_f16): New.
1051         (vcvtp_u16_f16): New.
1052         (vcvtpq_s16_f16): New.
1053         (vcvtpq_u16_f16): New.
1054         (vcvt_n_f16_s16): New.
1055         (vcvt_n_f16_u16): New.
1056         (vcvtq_n_f16_s16): New.
1057         (vcvtq_n_f16_u16): New.
1058         (vcvt_n_s16_f16): New.
1059         (vcvt_n_u16_f16): New.
1060         (vcvtq_n_s16_f16): New.
1061         (vcvtq_n_u16_f16): New.
1062         (vfma_f16): New.
1063         (vfmaq_f16): New.
1064         (vfms_f16): New.
1065         (vfmsq_f16): New.
1066         (vmax_f16): New.
1067         (vmaxq_f16): New.
1068         (vmaxnm_f16): New.
1069         (vmaxnmq_f16): New.
1070         (vmin_f16): New.
1071         (vminq_f16): New.
1072         (vminnm_f16): New.
1073         (vminnmq_f16): New.
1074         (vmul_f16): New.
1075         (vmul_lane_f16): New.
1076         (vmul_n_f16): New.
1077         (vmulq_f16): New.
1078         (vmulq_lane_f16): New.
1079         (vmulq_n_f16): New.
1080         (vneg_f16): New.
1081         (vnegq_f16): New.
1082         (vpadd_f16): New.
1083         (vpmax_f16): New.
1084         (vpmin_f16): New.
1085         (vrecpe_f16): New.
1086         (vrecpeq_f16): New.
1087         (vrnd_f16): New.
1088         (vrndq_f16): New.
1089         (vrnda_f16): New.
1090         (vrndaq_f16): New.
1091         (vrndm_f16): New.
1092         (vrndmq_f16): New.
1093         (vrndn_f16): New.
1094         (vrndnq_f16): New.
1095         (vrndp_f16): New.
1096         (vrndpq_f16): New.
1097         (vrndx_f16): New.
1098         (vrndxq_f16): New.
1099         (vrsqrte_f16): New.
1100         (vrsqrteq_f16): New.
1101         (vrecps_f16): New.
1102         (vrecpsq_f16): New.
1103         (vrsqrts_f16): New.
1104         (vrsqrtsq_f16): New.
1105         (vsub_f16): New.
1106         (vsubq_f16): New.
1108 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1110         * config.gcc (extra_headers): Add arm_fp16.h
1111         * config/arm/arm_fp16.h: New.
1112         * config/arm/arm_neon.h: Include "arm_fp16.h".
1114 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1116         * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
1117         variants).
1118         (vmulf): New (v8hf, v4hf variants).
1119         (vfma): New (v8hf, v4hf variants).
1120         (vfms): New (v8hf, v4hf variants).
1121         (vsub): New (v8hf, v4hf variants).
1122         (vcage): New (v8hf, v4hf variants).
1123         (vcagt): New (v8hf, v4hf variants).
1124         (vcale): New (v8hf, v4hf variants).
1125         (vcalt): New (v8hf, v4hf variants).
1126         (vceq): New (v8hf, v4hf variants).
1127         (vcgt): New (v8hf, v4hf variants).
1128         (vcge): New (v8hf, v4hf variants).
1129         (vcle): New (v8hf, v4hf variants).
1130         (vclt): New (v8hf, v4hf variants).
1131         (vceqz): New (v8hf, v4hf variants).
1132         (vcgez): New (v8hf, v4hf variants).
1133         (vcgtz): New (v8hf, v4hf variants).
1134         (vcltz): New (v8hf, v4hf variants).
1135         (vclez): New (v8hf, v4hf variants).
1136         (vabd): New (v8hf, v4hf variants).
1137         (vmaxf): New (v8hf, v4hf variants).
1138         (vmaxnm): New (v8hf, v4hf variants).
1139         (vminf): New (v8hf, v4hf variants).
1140         (vminnm): New (v8hf, v4hf variants).
1141         (vpmaxf): New (v4hf variant).
1142         (vpminf): New (v4hf variant).
1143         (vpadd): New (v4hf variant).
1144         (vrecps): New (v8hf, v4hf variants).
1145         (vrsqrts): New (v8hf, v4hf variants).
1146         (vabs): New (v8hf, v4hf variants).
1147         (vneg): New (v8hf, v4hf variants).
1148         (vrecpe): New (v8hf, v4hf variants).
1149         (vrnd): New (v8hf, v4hf variants).
1150         (vrnda): New (v8hf, v4hf variants).
1151         (vrndm): New (v8hf, v4hf variants).
1152         (vrndn): New (v8hf, v4hf variants).
1153         (vrndp): New (v8hf, v4hf variants).
1154         (vrndx): New (v8hf, v4hf variants).
1155         (vrsqrte): New (v8hf, v4hf variants).
1156         (vmul_lane): Add v4hf and v8hf variants.
1157         (vmul_n): Add v4hf and v8hf variants.
1158         (vext): New (v8hf, v4hf variants).
1159         (vcvts): New (v8hi, v4hi variants).
1160         (vcvts): New (v8hf, v4hf variants).
1161         (vcvtu): New (v8hi, v4hi variants).
1162         (vcvtu): New (v8hf, v4hf variants).
1163         (vcvts_n): New (v8hf, v4hf variants).
1164         (vcvtu_n): New (v8hi, v4hi variants).
1165         (vcvts_n): New (v8hi, v4hi variants).
1166         (vcvtu_n): New (v8hf, v4hf variants).
1167         (vbsl): New (v8hf, v4hf variants).
1168         (vcvtas): New (v8hf, v4hf variants).
1169         (vcvtau): New (v8hf, v4hf variants).
1170         (vcvtms): New (v8hf, v4hf variants).
1171         (vcvtmu): New (v8hf, v4hf variants).
1172         (vcvtns): New (v8hf, v4hf variants).
1173         (vcvtnu): New (v8hf, v4hf variants).
1174         (vcvtps): New (v8hf, v4hf variants).
1175         (vcvtpu): New (v8hf, v4hf variants).
1177 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1179         * config/arm/arm-builtins.c (hf_UP): New.
1180         (si_UP): New.
1181         (vfp_builtin_data): New.  Update comment.
1182         (enum arm_builtins): Include "arm_vfp_builtins.def".
1183         (ARM_BUILTIN_VFP_PATTERN_START): New.
1184         (arm_init_vfp_builtins): New.
1185         (arm_init_builtins): Add arm_init_vfp_builtins.
1186         (arm_expand_vfp_builtin): New.
1187         (arm_expand_builtins): Update for arm_expand_vfp_builtin.  Fix
1188         long line.
1189         * config/arm/arm_vfp_builtins.def: New file.
1190         * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
1191         (arm-builtins.o): Likewise.
1193 2016-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
1195         PR ipa/77677
1196         * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
1197         from constant while creating value range.
1199 2016-09-23  Renlin Li  <renlin.li@arm.com>
1201         * ira.c (ira): Move ira_use_lra_p initialization code to ...
1202         (ira_init_once): Here.
1204 2016-09-23  Uros Bizjak  <ubizjak@gmail.com>
1205             Jakub Jelinek  <jakub@redhat.com>
1207         * hooks.h (hook_uint_uintp_false): Rename to...
1208         (hook_bool_uint_uintp_false): ... this.
1209         * hooks.c (hook_uint_uintp_false): Rename to...
1210         (hook_bool_uint_uintp_false): ... this.
1211         * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
1212         instead of hook_uint_uintp_false.
1214 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1216         * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
1217         (arm_init_builtins): Move body of a loop to the standalone
1218         function arm_init_neon_builtin.
1219         (arm_expand_neon_builtin_1): New.  Update comment.  Function body
1220         moved from arm_neon_builtin with some white-space fixes.
1221         (arm_expand_neon_builtin): Move code into the standalone function
1222         arm_expand_neon_builtin_1.
1224 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1226         * config/arm/iterators.md (VCVTHI): New.
1227         (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE.  Fix a long line.
1228         (NEON_VAGLTE): New.
1229         (VFM_LANE_AS): New.
1230         (VH_CVTTO): New.
1231         (V_reg): Add HF, V4HF and V8HF.  Fix white-space.
1232         (V_HALF): Add V4HF.  Fix white-space.
1233         (V_if_elem): Add HF, V4HF and V8HF.  Fix white-space.
1234         (V_s_elem): Likewise.
1235         (V_sz_elem): Fix white-space.
1236         (V_elem_ch): Likewise.
1237         (VH_elem_ch): New.
1238         (scalar_mul_constraint): Add V8HF and V4HF.
1239         (Is_float_mode): Fix white-space.
1240         (Is_d_reg): Add V4HF and V8HF.  Fix white-space.
1241         (q): Add HF.  Fix white-space.
1242         (float_sup): New.
1243         (float_SUP): New.
1244         (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
1245         (neon_vfm_lane_as): New.
1246         * config/arm/neon.md (add<mode>3_fp16): New.
1247         (sub<mode>3_fp16): New.
1248         (mul<mode>3add<mode>_neon): New.
1249         (fma<VH:mode>4_intrinsic): New.
1250         (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
1251         (fmsub<VH:mode>4_intrinsic): New.
1252         (<absneg_str><mode>2): New.
1253         (neon_v<absneg_str><mode>): New.
1254         (neon_v<fp16_rnd_str><mode>): New.
1255         (neon_vrsqrte<mode>): New.
1256         (neon_vpaddv4hf): New.
1257         (neon_vadd<mode>): New.
1258         (neon_vsub<mode>): New.
1259         (neon_vmulf<mode>): New.
1260         (neon_vfma<VH:mode>): New.
1261         (neon_vfms<VH:mode>): New.
1262         (neon_vc<cmp_op><mode>): New.
1263         (neon_vc<cmp_op><mode>_fp16insn): New
1264         (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
1265         (neon_vca<cmp_op><mode>): New.
1266         (neon_vca<cmp_op><mode>_fp16insn): New.
1267         (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
1268         (neon_vc<cmp_op>z<mode>): New.
1269         (neon_vabd<mode>): New.
1270         (neon_v<maxmin>f<mode>): New.
1271         (neon_vp<maxmin>fv4hf: New.
1272         (neon_<fmaxmin_op><mode>): New.
1273         (neon_vrecps<mode>): New.
1274         (neon_vrsqrts<mode>): New.
1275         (neon_vrecpe<mode>): New (VH variant).
1276         (neon_vdup_lane<mode>_internal): New.
1277         (neon_vdup_lane<mode>): New.
1278         (neon_vcvt<sup><mode>): New (VCVTHI variant).
1279         (neon_vcvt<sup><mode>): New (VH variant).
1280         (neon_vcvt<sup>_n<mode>): New (VH variant).
1281         (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
1282         (neon_vcvt<vcvth_op><sup><mode>): New.
1283         (neon_vmul_lane<mode>): New.
1284         (neon_vmul_n<mode>): New.
1285         * config/arm/unspecs.md (UNSPEC_VCALE): New
1286         (UNSPEC_VCALT): New.
1287         (UNSPEC_VFMA_LANE): New.
1288         (UNSPECS_VFMS_LANE): New.
1290 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1292         * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
1293         ("*extzv<mode><clobbercc_or_nocc>"):
1294         Correct a typo in a comment.
1295         Merged patterns.
1296         ("*insv<mode>_zEC12", "*insv<mode>_z10")
1297         ("*insv<mode><clobbercc_or_nocc>"): Ditto.
1298         ("*insv<mode>_zEC12_appendbitsleft")
1299         ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
1300         ("*insv<mode>_z10_appendbitsleft"): Ditto.
1301         ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
1302         ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
1303         Provide pattern with operands switched.
1304         ("*pre_z10_extv<mode>"):
1305         Use new subst patterns.
1306         ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
1307         ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
1308         ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
1309         ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
1310         ("*<risbg_n>_<mode>_ior_and_lshiftrt")
1311         ("*<risbg_n>_sidi_ior_and_lshiftrt")
1312         ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
1313         New patterns.
1314         ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
1315         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
1316         ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
1317         on zEC12.
1318         ("SINT"): New mode_iterator with SI, HI, QI.
1319         * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
1320         ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
1321         duplication.
1323 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1325         * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
1326         new interface of s390_contiguous_bitmask_p.
1327         ("contiguous_bitmask_nowrap_operand"): New predicate.
1328         ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
1329         * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
1330         of s390_contiguous_bitmask_p.
1331         ("NxxDw"): Rename NxxDq constraint to NxxDw.
1332         ("NxxSw"): New constraint.
1333         * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
1334         * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
1335         interface.
1336         (s390_contiguous_bitmask_nowrap_p): Export.
1337         * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
1338         former s390_contiguous_bitmask_p.
1339         (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
1340         detect contiguous bit ranges with wraparound.  Change signature to
1341         return START and END position instead of POS and LENGTH.
1342         (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
1343         ranges with wraparound.
1344         (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
1345         (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
1346         Adapt to new signature of s390_contiguous_bitmask_p.
1348 2016-09-23  Bin Cheng  <bin.cheng@arm.com>
1350         * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
1351         (create_intersect_range_checks): New.
1352         (vect_create_cond_for_alias_checks): Call above function.
1354 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1356         * config/arm/iterators.md (Code iterators): Fix some white-space
1357         in the comments.
1358         (GLTE): New.
1359         (ABSNEG): New
1360         (FCVT): Moved from vfp.md.
1361         (VCVT_HF_US_N): New.
1362         (VCVT_SI_US_N): New.
1363         (VCVT_HF_US): New.
1364         (VCVTH_US): New.
1365         (FP16_RND): New.
1366         (absneg_str): New.
1367         (FCVTI32typename): Moved from vfp.md.
1368         (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
1369         UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
1370         UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
1371         UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N,  UNSPEC_VCVTH_S_N,
1372         UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
1373         (vcvth_op): New.
1374         (fp16_rnd_str): New.
1375         (fp16_rnd_insn): New.
1376         * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
1377         (UNSPEC_VCVT_HF_U_N): New.
1378         (UNSPEC_VCVT_SI_S_N): New.
1379         (UNSPEC_VCVT_SI_U_N): New.
1380         (UNSPEC_VCVTH_S): New.
1381         (UNSPEC_VCVTH_U): New.
1382         (UNSPEC_VCVTA_S): New.
1383         (UNSPEC_VCVTA_U): New.
1384         (UNSPEC_VCVTM_S): New.
1385         (UNSPEC_VCVTM_U): New.
1386         (UNSPEC_VCVTN_S): New.
1387         (UNSPEC_VCVTN_U): New.
1388         (UNSPEC_VCVTP_S): New.
1389         (UNSPEC_VCVTP_U): New.
1390         (UNSPEC_VCVTP_S): New.
1391         (UNSPEC_VCVTP_U): New.
1392         (UNSPEC_VRND): New.
1393         (UNSPEC_VRNDA): New.
1394         (UNSPEC_VRNDI): New.
1395         (UNSPEC_VRNDM): New.
1396         (UNSPEC_VRNDN): New.
1397         (UNSPEC_VRNDP): New.
1398         (UNSPEC_VRNDX): New.
1399         * config/arm/vfp.md (<absneg_str>hf2): New.
1400         (neon_vabshf): New.
1401         (neon_v<fp16_rnd_str>hf): New.
1402         (neon_vrndihf): New.
1403         (addhf3): New.
1404         (subhf3): New.
1405         (divhf3): New.
1406         (mulhf3): New.
1407         (*mulsf3neghf_vfp): New.
1408         (*negmulhf3_vfp): New.
1409         (*mulsf3addhf_vfp): New.
1410         (*mulhf3subhf_vfp): New.
1411         (*mulhf3neghfaddhf_vfp): New.
1412         (*mulhf3neghfsubhf_vfp): New.
1413         (fmahf4): New.
1414         (neon_vfmahf): New.
1415         (fmsubhf4_fp16): New.
1416         (neon_vfmshf): New.
1417         (*fnmsubhf4): New.
1418         (*fnmaddhf4): New.
1419         (neon_vsqrthf): New.
1420         (neon_vrsqrtshf): New.
1421         (FCVT): Move to iterators.md.
1422         (FCVTI32typename): Likewise.
1423         (neon_vcvth<sup>hf): New.
1424         (neon_vcvth<sup>si): New.
1425         (neon_vcvth<sup>_nhf_unspec): New.
1426         (neon_vcvth<sup>_nhf): New.
1427         (neon_vcvth<sup>_nsi_unspec): New.
1428         (neon_vcvth<sup>_nsi): New.
1429         (neon_vcvt<vcvth_op>h<sup>si): New.
1430         (neon_<fmaxmin_op>hf): New.
1432 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1434         * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
1435         ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
1436         ("*insv<mode>_zEC12_appendbitsleft")
1437         ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
1438         ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
1440 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
1442         * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
1443         * sreal.h (sreal::min, sreal::max): Avoid static local vars,
1444         construct values without normalization.
1445         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
1446         static local lhs_ops to vNULL.
1448 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1449             Jiong Wang <jiong.wang@arm.com>
1451         * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
1452         available when FP16 instructions are available.
1453         (output_move_vfp): Add support for 16-bit data moves.
1454         (arm_validize_comparison): Fix some white-space.  Support HFmode
1455         by conversion to SFmode.
1456         * config/arm/arm.md (truncdfhf2): Fix a comment.
1457         (extendhfdf2): Likewise.
1458         (cstorehf4): New.
1459         (movsicc): Fix some white-space.
1460         (movhfcc): New.
1461         (movsfcc): Fix some white-space.
1462         (*cmovhf): New.
1463         * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
1464         instructions are available.
1465         (*thumb2_movhi_vfp): Likewise.
1466         (*arm_movhi_fp16): New.
1467         (*thumb2_movhi_fp16): New.
1468         (*movhf_vfp_fp16): New.
1469         (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
1470         (*movhf_vfp): Likewise.
1471         (extendhfsf2): Enable when VFP FP16 instructions are available.
1472         (truncsfhf2):  Enable when VFP FP16 instructions are available.
1474 2016-09-23  Martin Liska  <mliska@suse.cz>
1476         * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
1478 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1480         * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
1481         V4HF modes.
1482         (arm_evpc_neon_vtrn): Likewise.
1483         (arm_evpc_neon_vrev): Likewise.
1484         (arm_evpc_neon_vext): Likewise.
1485         * config/arm/arm_neon.h (vbsl_f16): New.
1486         (vbslq_f16): New.
1487         (vdup_n_f16): New.
1488         (vdupq_n_f16): New.
1489         (vdup_lane_f16): New.
1490         (vdupq_lane_f16): New.
1491         (vext_f16): New.
1492         (vextq_f16): New.
1493         (vmov_n_f16): New.
1494         (vmovq_n_f16): New.
1495         (vrev64_f16): New.
1496         (vrev64q_f16): New.
1497         (vtrn_f16): New.
1498         (vtrnq_f16): New.
1499         (vuzp_f16): New.
1500         (vuzpq_f16): New.
1501         (vzip_f16): New.
1502         (vzipq_f16): New.
1503         * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
1504         (vdup_lane): New (v8hf, v4hf variants).
1505         (vext): New (v8hf, v4hf variants).
1506         (vbsl): New (v8hf, v4hf variants).
1507         * config/arm/iterators.md (VDQWH): New.
1508         (VH): New.
1509         (V_double_vector_mode): Add V8HF and V4HF.  Fix white-space.
1510         (Scalar_mul_8_16): Fix white-space.
1511         (Is_d_reg): Add V4HF and V8HF.
1512         * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
1513         (neon_vdup_lane<mode>): New.
1514         (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
1515         (*neon_vtrn<mode>_insn): Likewise.
1516         (neon_vzip<mode>_internal): Likewise. Also fix white-space.
1517         (*neon_vzip<mode>_insn): Likewise
1518         (neon_vuzp<mode>_internal): Likewise.
1519         (*neon_vuzp<mode>_insn): Likewise
1520         * config/arm/vec-common.md (vec_perm_const<mode>): New.
1522 2016-09-23  Jiong Wang  <jiong.wang@arm.com>
1523             Matthew Wahab  <matthew.wahab@arm.com>
1525         * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
1526         (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
1527         * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
1528         available.  Also fix some white-space.
1529         * config/arm/vfp.md (*arm_movhi_vfp): New.
1530         (*thumb2_movhi_vfp): New.
1532 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1534         * config/arm/arm-c.c (arm_cpu_builtins): Define
1535         "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
1536         "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
1538 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1540         * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
1541         arm_v8_1a_neon_ok.  Add entries for arm_v8_2a_fp16_scalar_ok,
1542         arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
1543         arm_v8_2a_fp16_neon_hw.
1544         (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
1545         arm_v8_2a_neon.
1547 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1549         * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
1550         arm_fp16_alternative_ok and arm_fp16_none_ok.
1552 2016-09-23  Martin Liska  <mliska@suse.cz>
1554         * ipa-icf.c (sem_variable::merge): Replace adress with address.
1556 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1558         * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
1559         ("armv8.2-a"): New.
1560         ("armv8.2-a+fp16"): New.
1561         * config/arm/arm-protos.h (FL2_ARCH8_2): New.
1562         (FL2_FP16INST): New.
1563         (FL2_FOR_ARCH8_2A): New.
1564         * config/arm/arm-tables.opt: Regenerate.
1565         * config/arm/arm.c (arm_arch8_2): New.
1566         (arm_fp16_inst): New.
1567         (arm_option_override): Set arm_arch8_2 and arm_fp16_inst.  Check
1568         for incompatible fp16-format settings.
1569         * config/arm/arm.h (TARGET_VFP_FP16INST): New.
1570         (TARGET_NEON_FP16INST): New.
1571         (arm_arch8_2): Declare.
1572         (arm_fp16_inst): Declare.
1573         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
1574         march=armv8.2-a and march=armv8.2-a+fp16.
1575         * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
1576         and armv8.2-a+fp16.
1577         * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
1578         "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
1580 2016-09-23  Martin Liska  <mliska@suse.cz>
1582         * doc/extend.texi: Remove fused-madd from i386 target options.
1584 2016-09-23  Martin Liska  <mliska@suse.cz>
1586         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1587         Handle movbe.
1589 2016-09-23  Martin Liska  <mliska@suse.cz>
1591         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1592         Handle crc32.
1594 2016-09-23  Martin Liska  <mliska@suse.cz>
1596         PR target/71652
1597         * config/i386/i386.c (ix86_option_override_internal): Change
1598         signature and return false when there's an error related to
1599         arch string.
1600         (release_options_strings): New function.
1601         (ix86_valid_target_attribute_tree): Call the function.
1603 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
1605         * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
1606         instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
1607         (gen_hsa_ctor_assignment): Likewise.
1608         * print-tree.c (print_node): Likewise.
1609         * tree-dump.c (dequeue_and_dump): Likewise.
1610         * tree-sra.c (sra_modify_constructor_assign): Likewise.
1611         * expr.c (store_constructor): Likewise.
1612         * fold-const.c (operand_equal_p): Likewise.
1613         * tree-pretty-print.c (dump_generic_node): Likewise.
1614         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
1615         * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
1617 2016-09-23  Richard Biener  <rguenther@suse.de>
1619         * hooks.h (hook_uint_uintp_false): Declare.
1621 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1623         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
1624         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
1626 2016-09-22  Martin Sebor  <msebor@redhat.com>
1628         PR target/77676
1629         * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
1630         HOST_BITS_PER_WIDE_INT, make a static local variable auto.
1631         (target_int_min): Correct computation.
1632         (format_integer): Use long long as the argument for the ll length
1633         modifier.
1634         (format_floating): Use target_int_max().
1635         (get_string_length): Same.
1636         (format_string): Avoid setting the bounded flag for strings
1637         of unknown length.
1638         (try_substitute_return_value): Avoid setting range info when
1639         the result isn't bounded.
1640         * varasm.c (assemble_name): Increase buffer size.
1642 2016-09-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1643             Terry Guo  <terry.guo@arm.com>
1645         * target.def (elf_flags_numeric): New target hook.
1646         * targhooks.h (default_asm_elf_flags_numeric): New.
1647         * varasm.c (default_asm_elf_flags_numeric): New.
1648         (default_elf_asm_named_section): Use new target hook.
1649         * config/arm/arm.opt (mpure-code): New.
1650         * config/arm/arm.h (SECTION_ARM_PURECODE): New.
1651         * config/arm/arm.c (arm_asm_init_sections): Add section
1652         attribute to default text section if -mpure-code.
1653         (arm_option_check_internal): Diagnose use of option with
1654         non supported targets and/or options.
1655         (arm_asm_elf_flags_numeric): New.
1656         (arm_function_section): New.
1657         (arm_elf_section_type_flags): New.
1658         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
1659         for -mpure-code.
1660         * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
1661         * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
1663 2016-09-22  Jan Hubicka  <hubicka@ucw.cz>
1665         * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
1667 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1669         * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
1670         * rtl.h: Adjust prototype.
1672 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1674         * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
1675         (prev_active_insn): Likewise.
1676         (active_insn_p): Likewise.
1677         * rtl.h: Adjust prototypes.
1678         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
1679         * config/arc/arc.md: Likewise.
1680         * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
1681         (branch_needs_nop_p): Likewise.
1682         (use_skip_p): Likewise.
1683         * config/sh/sh.c (gen_block_redirect): Likewise.
1684         (split_branches): Likewise.
1685         * reorg.c (optimize_skip): Likewise.
1686         (fill_simple_delay_slots): Likewise.
1687         (fill_slots_from_thread): Likewise.
1688         (relax_delay_slots): Likewise.
1689         * resource.c (mark_target_live_regs): Likewise.
1691 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1693         * config/cris/cris.c (cris_asm_output_case_end): Change argument
1694         type to rtx_insn *.
1695         * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
1696         (prev_nonnote_nondebug_insn): Likewise.
1697         * config/cris/cris-protos.h: Adjust prototype.
1698         * rtl.h: Likewise.
1699         * jump.c (rtx_renumbered_equal_p): Adjust.
1701 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1703         * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
1704         * rtl.h: Adjust prototype.
1705         * config/sh/sh.md: Adjust.
1706         * dwarf2out.c (add_var_loc_to_decl): Likewise.
1708 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1710         * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
1711         (prev_nondebug_insn): Likewise.
1712         * loop-doloop.c (doloop_condition_get): Likewise.
1713         * rtl.h: Adjust prototype.
1714         * cfgloop.h: Likewise.
1716 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1718         * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
1719         (prev_nonnote_insn): Likewise.
1720         * jump.c (reversed_comparison_code_parts): Likewise.
1721         (reversed_comparison): Likewise.
1722         * rtl.h: Adjust prototypes.
1723         * config/arc/arc.md: Adjust.
1724         * cse.c (find_comparison_args): Likewise.
1725         * reorg.c (redundant_insn): Change return type to rtx_insn *.
1726         (fix_reg_dead_note): Change argument type to rtx_insn *.
1727         (delete_prior_computation): Likewise.
1728         (delete_computation): Likewise.
1729         (fill_slots_from_thread): Adjust.
1730         (relax_delay_slots): Likewise.
1731         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1732         (simplify_relational_operation_1): Likewise.
1733         (simplify_ternary_operation): Likewise.
1735 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1737         * config/arc/arc-protos.h (arc_label_align): Change type of
1738         variables from rtx to rtx_insn *.
1739         * config/arc/arc.c (arc_label_align): Likewise.
1740         * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
1741         * config/bfin/bfin.c (workaround_speculation): Likewise.
1742         * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
1743         (find_last_same_clock): Likewise.
1744         (reorg_split_calls): Likewise.
1745         * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
1746         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
1747         * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
1748         (same_cmp_following_p): Likewise.
1749         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
1750         (same_cmp_following_p): Likwise.
1751         * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
1752         * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
1753         * config/nds32/nds32.c (nds32_target_alignment): Likewise.
1754         * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
1755         (rl78_alloc_physical_registers_cmp): Likewise.
1756         (rl78_alloc_physical_registers_umul): Likewise.
1757         (rl78_calculate_death_notes): Likewise.
1758         * config/s390/s390-protos.h (s390_label_align): Likewise.
1759         * config/s390/s390.c (s390_label_align): Likewise.
1760         * config/sh/sh.c (barrier_align): Likewise.
1761         * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
1762         * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
1763         (emit_cbcond_nop): Likewise.
1765 2016-09-22  Martin Liska  <mliska@suse.cz>
1767         PR ipa/77653
1768         * ipa-icf.c (sem_variable::merge): Yield merge operation if
1769         alias address matters, not necessarily address of original.
1771 2016-09-22  Richard Biener  <rguenther@suse.de>
1773         PR middle-end/77697
1774         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
1775         fold fails.
1777 2016-09-22  Richard Biener  <rguenther@suse.de>
1779         PR middle-end/77677
1780         * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
1781         from constant folding results.
1782         (gimple_resimplify2): Likewise.
1783         (gimple_resimplify3): Likewise.
1785 2016-09-22  Richard Biener  <rguenther@suse.de>
1787         PR middle-end/77678
1788         * expr.c (expand_expr_real_1): Guard array access against negative
1789         offset.
1791 2016-09-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1793         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
1794         of MPFR_RNDN.
1795         (format_floating): Likewise.
1797 2016-09-22  Jakub Jelinek  <jakub@redhat.com>
1799         PR fortran/77665
1800         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
1801         for all IFN_GOMP_SIMD_* internal fns, not just for
1802         IFN_GOMP_SIMD_ORDERED_*.
1804 2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1806         PR target/77670
1807         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
1808         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
1809         instructions when you want to invert the test.
1810         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
1811         correct order for XXSEL.
1812         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
1813         for using XSCMP{EQ,GT,GE}DP.
1815 2016-09-21  David Malcolm  <dmalcolm@redhat.com>
1817         * genconstants.c (main): Introduce noop_reader and convert call
1818         to read_md_files to a method call.
1819         * genenums.c (main): Likewise.
1820         * genmddeps.c (main): Likewise.
1821         * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
1822         rtx_reader_ptr->get_top_level_filename ().
1823         (write_tm_preds_h): Likewise.
1824         (write_insn_preds_c): Likewise.
1825         * gensupport.c (class gen_reader): New subclass of rtx_reader.
1826         (rtx_handle_directive): Convert to...
1827         (gen_reader::handle_unknown_directive): ...this.
1828         (init_rtx_reader_args_cb): Convert return type from bool to
1829         rtx_reader *.  Create a gen_reader instance, using it for the
1830         call to read_md_files.  Return it if no errors occur.
1831         (init_rtx_reader_args): Convert return type from bool to
1832         rtx_reader *.
1833         * gensupport.h (init_rtx_reader_args_cb): Likewise.
1834         (init_rtx_reader_args_cb): Likewise.
1835         * read-md.c (struct file_name_list): Move to class rtx_reader.
1836         (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
1837         (read_md_filename): Delete in favor of
1838         rtx_reader::m_read_md_filename.
1839         (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
1840         (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
1841         (base_dir): Delete in favor of rtx_reader::m_base_dir.
1842         (first_dir_md_include): Delete in favor of
1843         rtx_reader::m_first_dir_md_include.
1844         (last_dir_md_include_ptr): Delete in favor of
1845         rtx_reader::m_last_dir_md_include_ptr.
1846         (max_include_len): Delete.
1847         (rtx_reader_ptr): New.
1848         (fatal_with_file_and_line): Use get_filename and get_lineno
1849         accessors of rtx_reader_ptr.
1850         (require_char_ws): Likewise.
1851         (rtx_reader::read_char): New method, based on ::read_char.
1852         (rtx_reader::unread_char): New method, based on ::unread_char.
1853         (read_escape): Use get_filename and get_lineno accessors of
1854         rtx_reader_ptr.
1855         (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
1856         (read_string): Use get_filename and get_lineno accessors of
1857         rtx_reader_ptr.
1858         (rtx_reader::rtx_reader): New ctor.
1859         (rtx_reader::~rtx_reader): New dtor.
1860         (handle_include): Convert from a function to...
1861         (rtx_reader::handle_include): ...this method, converting
1862         handle_directive from a callback to a virtual function.
1863         (handle_file): Likewise, converting to...
1864         (rtx_reader::handle_file): ...this method.
1865         (handle_toplevel_file): Likewise, converting to...
1866         (rtx_reader::handle_toplevel_file): ...this method.
1867         (rtx_reader::get_current_location): New method.
1868         (parse_include): Convert from a function to...
1869         (rtx_reader::add_include_path): ...this method, dropping redundant
1870         update to unused max_include_len.
1871         (read_md_files): Convert from a function to...
1872         (rtx_reader::read_md_files): ...this method, converting
1873         handle_directive from a callback to a virtual function.
1874         (noop_reader::handle_unknown_directive): New method.
1875         * read-md.h (directive_handler_t): Delete this typedef.
1876         (in_fname): Delete.
1877         (read_md_file): Delete.
1878         (read_md_lineno): Delete.
1879         (read_md_filename): Delete.
1880         (class rtx_reader): New class.
1881         (rtx_reader_ptr): New decl.
1882         (class noop_reader): New subclass of rtx_reader.
1883         (read_char): Reimplement in terms of rtx_reader::read_char.
1884         (unread_char): Reimplement in terms of rtx_reader::unread_char.
1885         (read_md_files): Delete.
1886         * read-rtl.c (read_rtx_code): Update for deletion of globals
1887         read_md_filename and read_md_lineno.
1889 2016-09-21  Jason Merrill  <jason@redhat.com>
1891         * input.h (from_macro_definition_at): New.
1893 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1895         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
1897 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1899         PR tree-optimization/77550
1900         * tree-vect-stmts.c (create_array_ref): Change parameters.
1901         (get_group_alias_ptr_type): New function.
1902         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
1904 2016-09-21  Marek Polacek  <polacek@redhat.com>
1906         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
1907         Add falls through comment.
1909 2016-09-21  Richard Biener  <rguenther@suse.de>
1911         * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
1912         (replace_child): Likewise.
1913         (remove_child_TAG): Adjust.
1914         (move_marked_base_types): Likewise.
1915         (prune_unused_types_prune): Clear die_sib of removed children.
1917 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
1919         PR target/77326
1920         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
1921         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
1923 2016-09-21  Richard Biener  <rguenther@suse.de>
1925         PR tree-optimization/77648
1926         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
1927         with complex RHS.
1928         (make_transitive_closure_constraints): Adjust comment.
1929         (make_any_offset_constraints): New function.
1930         (handle_rhs_call): Make sure to first expand a pointer to all
1931         subfields before transitively closing it.
1932         (handle_const_call): Likewise.  Properly expand returned
1933         pointers as well.
1934         (handle_pure_call): Likewise.
1936 2016-09-21  Richard Biener  <rguenther@suse.de>
1937             Jakub Jelinek  <jakub@redhat.com>
1939         PR tree-optimization/77621
1940         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
1941         group at non-vectorizable stmts.
1943 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
1945         PR tree-optimization/72835
1946         * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
1947         (make_new_ssa_for_all_defs): Likewise.
1948         (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
1950 2016-09-20  Martin Sebor  <msebor@redhat.com>
1952         PR middle-end/49905
1953         * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
1954         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
1955         * config/linux.c (gnu_libc_printf_pointer_format): New function.
1956         * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
1957         * config/sol2.c (solaris_printf_pointer_format): New function.
1958         * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
1959         options.
1960         * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
1961         * doc/tm.texi: Regenerate.
1962         * gimple-fold.h (get_range_strlen): New function.
1963         (get_maxval_strlen): Declare existing function.
1964         * gimple-fold.c (get_range_strlen): Add arguments and compute both
1965         maximum and minimum.
1966          (get_range_strlen): Define overload.
1967         (get_maxval_strlen): Adjust.
1968         * gimple-ssa-sprintf.c: New file and pass.
1969         * passes.def (pass_sprintf_length): Add new pass.
1970         * targhooks.h (default_printf_pointer_format): Declare new function.
1971         (gnu_libc_printf_pointer_format): Same.
1972         (solaris_libc_printf_pointer_format): Same.
1973         * targhooks.c (default_printf_pointer_format): Define new function.
1974         * tree-pass.h (make_pass_sprintf_length): Declare new function.
1975         * print-tree.c: Increase buffer size.
1977 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
1979         * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
1981 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
1983         * common.opt: New option -fipa-vrp.
1984         * ipa-cp.c (ipa_get_vr_lat): New.
1985         (ipcp_vr_lattice::print): Likewise.
1986         (print_all_lattices): Call ipcp_vr_lattice::print.
1987         (ipcp_vr_lattice::meet_with): New.
1988         (ipcp_vr_lattice::meet_with_1): Likewise.
1989         (ipcp_vr_lattice::top_p): Likewise.
1990         (ipcp_vr_lattice::bottom_p): Likewsie.
1991         (ipcp_vr_lattice::set_to_bottom): Likewise.
1992         (set_all_contains_variable): Call VR set_to_bottom.
1993         (initialize_node_lattices): Init VR lattices.
1994         (propagate_vr_accross_jump_function): New.
1995         (propagate_constants_accross_call): Call
1996         propagate_vr_accross_jump_function.
1997         (ipcp_store_vr_results): New.
1998         (ipcp_driver): Handle VR.
1999         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
2000         (ipa_set_jf_unknown): Likewise.
2001         (ipa_compute_jump_functions_for_edge): Likewise.
2002         (ipa_node_params_t::duplicate): Likewise.
2003         (ipa_write_jump_function): Likewise.
2004         (ipa_read_jump_function): Likewise.
2005         (write_ipcp_transformation_info): Likewise.
2006         (read_ipcp_transformation_info): Likewise.
2007         (ipcp_update_vr): New.
2008         (ipcp_transform_function): Handle VR.
2009         * ipa-prop.h (struct ipa_vr): New.
2010         * cgraph.c: Include tree-vrp.h.
2011         * cgraphunit.c: Likewise.
2012         * ipa-utils.c: Likewise.
2013         * ipa.c: Likewise.
2014         * opts.c: Likewise.
2015         * toplev.c: Likewise.
2016         * ipa-devirt.c: Likewise.
2017         * ipa-inline-transform.c: Likewise.
2018         * ipa-inline.c: Likewise.
2019         * ipa-profile.c: Likewise.
2021 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
2023         * doc/invoke.texi: Document -fdump-tree-evrp.
2024         * passes.def: Define new pass_early_vrp.
2025         * timevar.def: Define new TV_TREE_EARLY_VRP.
2026         * tree-pass.h (make_pass_early_vrp): New.
2027         * tree-ssa-propagate.c: Make replace_uses_in non static.
2028         * tree-ssa-propagate.h: Export replace_uses_in.
2029         * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
2030         (extract_range_from_assert): Factor out
2031         extract_range_for_var_from_comparison_expr.
2032         (vrp_initialize_lattice): New.
2033         (vrp_initialize): Factor out vrp_initialize_lattice.
2034         (vrp_valueize): Fix it to reject complex value ranges.
2035         (vrp_free_lattice): New.
2036         (evrp_dom_walker::before_dom_children): Likewise.
2037         (evrp_dom_walker::after_dom_children): Likewise.
2038         (evrp_dom_walker::push_value_range): Likewise.
2039         (evrp_dom_walker::pop_value_range): Likewise.
2040         (execute_early_vrp): Likewise.
2041         (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
2042         (make_pass_early_vrp): New.
2044 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
2046         * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
2047         instead of exact_log2.
2049 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
2051         PR target/77621
2052         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
2053         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
2054         (ix86_add_stmt_cost): Penalize DFmode vector operations
2055         for !TARGET_VECTORIZE_DOUBLE.
2057 2016-09-20  Gerald Pfeifer  <gerald@pfeifer.com>
2059         * doc/invoke.texi (Warning Options): Simplify language.
2060         (Optimize Options): Complete sentence.
2062 2016-09-20  David Edelsohn  <dje.gcc@gmail.com>
2064         * dbxout.c (xcoff_debug_hooks):  Add filename parameter to
2065         early_finish hook.
2067 2016-09-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
2069         PR target/71395
2070         * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
2071         inits on power8 and above, use the VMRGEW instruction instead of a
2072         permute.
2074         * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
2075         (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
2076         initialization.
2078 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
2080         * config/aarch64/arm_neon.h
2081         (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
2082         (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
2083         (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
2085 2016-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2087         * config/var/vax.h (ELIMINABLE_REGS): Define.
2088         (INITIAL_ELIMINATION_OFFSET): Define.
2090 2016-09-20  Jakub Jelinek  <jakub@redhat.com>
2092         PR middle-end/77624
2093         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
2094         cast to void * if the cast is from some other pointer type.
2096 2016-09-20  Richard Biener  <rguenther@suse.de>
2098         PR tree-optimization/77646
2099         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
2100         a VDEF.
2102 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
2104         * config/aarch64/arm_neon.h: Add gnu_inline and artificial
2105         attributes to all inlined functions and make them extern.
2107 2016-09-20  Richard Biener  <rguenther@suse.de>
2109         * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
2110         hook.
2111         * debug.c (do_nothing_debug_hooks): Adjust.
2112         * dbxout.c (dbx_debug_hooks): Likewise.
2113         * sdbout.c (sdb_debug_hooks): Likewise.
2114         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
2115         (dwarf2out_finish): Move producer, filename and
2116         path annotation ...
2117         (dwarf2out_early_finish): ... here.  Remove in_lto_p special-casing.
2118         * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
2120 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2122         PR c++/77434
2123         * doc/invoke.texi: Document -Wint-in-bool-context.
2125         PR middle-end/77421
2126         * dwarf2out.c (output_loc_operands): Fix an assertion.
2128 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
2130         * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
2131         (CR_DECIMAL_DIG): New macro.
2133 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
2135         * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
2136         element.
2138 2016-09-19  Vladimir Makarov  <vmakarov@redhat.com>
2140         PR rtl-optimization/77416
2141         * lra-remat.c (operand_to_remat): Process hard coded insn
2142         registers.
2144 2016-09-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2146         * simplify-rtx.c (simplify_relational_operation_1): Add transformation
2147         (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
2149 2016-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
2151         * target.def (lra_p): Wordsmithing.
2152         * doc/tm.texi: Regenerate.
2154 2016-09-19  Jakub Jelinek  <jakub@redhat.com>
2155             Jan Hubicka  <jh@suse.cz>
2157         PR target/77587
2158         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
2159         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
2160         Call ultimate_alias_target just once, not up to 4 times.
2162 2016-09-19  Richard Biener  <rguenther@suse.de>
2164         * dwarf2out.c (early_dwarf_finished): New global.
2165         (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
2166         is false.
2167         (dwarf2out_early_finish): Set early_dwarf_finished at the end,
2168         if called from LTO exit early.
2169         (dwarf2out_late_global_decl): When being during the early
2170         debug phase do not add locations but only const value attributes.
2171         Adjust the way we generate early DIEs for LTO.
2173 2016-09-19  Richard Biener  <rguenther@suse.de>
2175         PR middle-end/77605
2176         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
2177         proper niter to bound the loops.
2179 2016-09-19  Richard Biener  <rguenther@suse.de>
2181         PR tree-optimization/77514
2182         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
2183         search for folded stmt.
2185 2016-09-17  Jan Hubicka  <hubicka@ucw.cz>
2187         * passes.def (pass_early_thread_jumps): Schedule after forwprop.
2188         * tree-pass.h (make_pass_early_thread_jumps): Declare.
2189         * tree-ssa-threadbackward.c (fsm_find_thread_path,
2190         fsm_find_thread_path, profitable_jump_thread_path,
2191         fsm_find_control_statement_thread_paths,
2192         find_jump_threads_backwards): Add speed_p parameter.
2193         (pass_data_early_thread_jumps): New pass.
2194         (make_pass_early_thread_jumps): New function.
2196 2016-09-17  Andreas Schwab  <schwab@suse.de>
2198         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
2199         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
2201 2016-09-16  Eric Botcazou  <ebotcazou@adacore.com>
2203         * recog.c (rest_of_handle_split_after_reload): Delete.
2204         (pass_split_after_reload::gate): New method.
2205         (pass_split_after_reload::execute): Call split_all_insns directly.
2207 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
2209         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
2210         parameters for functions taking long long arguments.
2212 2016-09-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2214         PR target/77613
2215         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
2216         splat with truncate.
2218 2016-09-16  Jason Merrill  <jason@redhat.com>
2220         * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
2221         New.
2222         * hwint.c (exact_log2): Use pow2p_hwi.
2223         (ctz_hwi, ffs_hwi): Use least_bit_hwi.
2224         * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
2225         * builtins.c (get_object_alignment_2, get_object_alignment)
2226         (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
2227         least_bit_hwi.
2228         * calls.c (compute_argument_addresses, store_one_arg): Use
2229         least_bit_hwi.
2230         * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
2231         * combine.c (force_to_mode): Use least_bit_hwi.
2232         (contains_muldiv, find_split_point, combine_simplify_rtx)
2233         (simplify_if_then_else, simplify_set, force_to_mode)
2234         (if_then_else_cond, simplify_and_const_int_1)
2235         (simplify_compare_const): Use pow2p_hwi.
2236         * cse.c (fold_rtx): Use pow2p_hwi.
2237         * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
2238         Use least_bit_hwi.
2239         * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
2240         (init_expmed_one_conv): Use pow2p_hwi.
2241         * expr.c (is_aligning_offset): Use pow2p_hwi.
2242         * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
2243         (fold_binary_loc): Use pow2p_hwi.
2244         * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
2245         * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
2246         * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
2247         * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
2248         Use least_bit_hwi.
2249         * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
2250         * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
2251         * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
2252         * omp-low.c (oacc_loop_fixed_partitions)
2253         (oacc_loop_auto_partitions): Use least_bit_hwi.
2254         * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
2255         * stor-layout.c (place_field): Use least_bit_hwi.
2256         * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
2257         * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
2258         * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
2259         * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
2260         * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
2261         * tree-vect-data-refs.c (vect_analyze_group_access_1)
2262         (vect_grouped_store_supported, vect_grouped_load_supported)
2263         (vect_permute_load_chain, vect_shift_permute_load_chain)
2264         (vect_transform_grouped_load): Use pow2p_hwi.
2265         * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
2266         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
2267         * tree-vect-stmts.c (vectorizable_mask_load_store): Use
2268         least_bit_hwi.
2269         * tsan.c (instrument_expr): Use least_bit_hwi.
2270         * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
2272 2016-09-16  Andreas Schwab  <schwab@suse.de>
2274         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
2275         OFFSET, not offset.
2276         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
2278 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
2280         PR target/77526
2281         * combine.c (rest_of_handle_combine): If any edges have been purged,
2282         free dominators if available.
2284 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
2285             Eric Botcazou  <ebotcazou@adacore.com>
2287         PR middle-end/77594
2288         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
2289         through into expand_addsub_overflow after expand_neg_overflow.
2291 2016-09-15  David Malcolm  <dmalcolm@redhat.com>
2293         * diagnostic-show-locus.c
2294         (selftest::test_fixit_insert_containing_newline): New function.
2295         (selftest::test_fixit_replace_containing_newline): New function.
2296         (selftest::diagnostic_show_locus_c_tests): Call the above.
2298 2016-09-15  Bin Cheng  <bin.cheng@arm.com>
2300         PR tree-optimization/77503
2301         * tree-vect-loop.c (vectorizable_reduction): Record reduction
2302         code for CONST_COND_REDUCTION at analysis stage and use it at
2303         transform stage.
2304         * tree-vectorizer.h (struct _stmt_vec_info): New field.
2305         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
2306         * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
2307         field.
2309 2016-09-15  Richard Biener  <rguenther@suse.de>
2311         PR middle-end/77544
2312         * fold-const.c (split_tree): Do not split constant ~X.
2314 2016-09-15  Jakub Jelinek  <jakub@redhat.com>
2316         PR rtl-optimization/77425
2317         * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
2318         is NULL.
2320         PR middle-end/77475
2321         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
2322         use %qs instead of %s where desirable, use argument instead of arg in
2323         the diagnostic wording, add list of supported strategies and
2324         spellcheck hint.
2325         (ix86_option_override_internal): Emit target("m...") instead of
2326         option("m...") in the diagnostic.  Use %qs instead of %s in invalid
2327         -march/-mtune option diagnostic.  Add list of supported arches/tunings
2328         and spellcheck hint.  Remove prefix, suffix and sw variables, use
2329         main_args_p ? "..." : "..." in diagnostics to make translation
2330         possible.
2332 2016-09-15  Richard Biener  <rguenther@suse.de>
2334         * dwarf2asm.h (dw2_asm_output_offset): Add overload with
2335         extra offset argument.
2336         * dwarf2asm.c (dw2_asm_output_offset): Implement that.
2337         * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
2338         to reflect new offset parameter.
2339         * doc/tm.texi: Regenerate.
2340         * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
2341         * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
2342         offset argument.
2343         (darwin_asm_output_dwarf_offset): Likewise.
2344         * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
2345         argument.
2346         (darwin_asm_output_dwarf_offset): Pass offset argument through.
2347         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
2348         * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
2350 2016-09-15  Chung-Lin Tang  <cltang@codesourcery.com>
2352         PR fortran/72743
2353         * ipa-icf.c (set_alias_uids): New function.
2354         (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
2355         all the merged variable's referring aliases.
2357 2016-09-15  Richard Biener  <rguenther@suse.de>
2359         PR tree-optimization/77514
2360         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
2361         only forced_stmts sequence.
2363 2016-09-15  Kugan Vivekanandarajah  <kuganv@linaro.org>
2365         * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
2366         * cfgexpand.c (update_alias_info_with_stack_vars): Use
2367         FOR_EACH_SSA_NAME to iterate over SSA variables.
2368         (pass_expand::execute): Likewise.
2369         * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
2370         * tree-cfg.c (dump_function_to_file): Likewise.
2371         * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
2372         (update_ssa): Likewise.
2373         * tree-ssa-alias.c (dump_alias_info): Likewise.
2374         * tree-ssa-ccp.c (ccp_finalize): Likewise.
2375         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
2376         (create_outofssa_var_map): Likewise.
2377         (coalesce_ssa_name): Likewise.
2378         * tree-ssa-operands.c (dump_immediate_uses): Likewise.
2379         * tree-ssa-pre.c (compute_avail): Likewise.
2380         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2381         (scc_vn_restore_ssa_info): Likewise.
2382         (free_scc_vn): Likwise.
2383         (run_scc_vn): Likewise.
2384         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
2385         * tree-ssa-ter.c (new_temp_expr_table): Likewise.
2386         * tree-ssa-copy.c (fini_copy_prop): Likewise.
2387         * tree-ssa.c (verify_ssa): Likewise.
2389 2016-09-14  Matthew Fortune  <matthew.fortune@imgtec.com>
2391         * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
2392         and mips64r2 as default 32-bit and 64-bit architectures.
2393         (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
2394         as default 32-bit and 64-bit architectures.
2396 2016-09-14  Pat Haugen  <pthaugen@us.ibm.com>
2398         * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
2399         of succ edge.
2401 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2403         * target.def (lra_p): Change commentary (for the manual) for the
2404         new default.
2405         * doc/tm.texi: Regenerate.
2407 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2409         * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
2410         * config/arm/arm.c (TARGET_LRA_P): Delete macro.
2411         * config/i386/i386.c (TARGET_LRA_P): Delete macro.
2412         * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
2414 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2416         * targhooks.c (default_lra_p): Return true instead of false.
2418 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2420         * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
2421         hook_bool_void_false.
2422         * config/avr/avr.c: Ditto.
2423         * config/bfin/bfin.c: Ditto.
2424         * config/c6x/c6x.c: Ditto.
2425         * config/cr16/cr16.c: Ditto.
2426         * config/cris/cris.c: Ditto.
2427         * config/epiphany/epiphany.c: Ditto.
2428         * config/fr30/fr30.c: Ditto.
2429         * config/frv/frv.c: Ditto.
2430         * config/h8300/h8300.c: Ditto.
2431         * config/ia64/ia64.c: Ditto.
2432         * config/iq2000/iq2000.c: Ditto.
2433         * config/lm32/lm32.c: Ditto.
2434         * config/m32c/m32c.c: Ditto.
2435         * config/m32r/m32r.c: Ditto.
2436         * config/m68k/m68k.c: Ditto.
2437         * config/mcore/mcore.c: Ditto.
2438         * config/microblaze/microblaze.c: Ditto.
2439         * config/mmix/mmix.c: Ditto.
2440         * config/mn10300/mn10300.c: Ditto.
2441         * config/moxie/moxie.c: Ditto.
2442         * config/msp430/msp430.c: Ditto.
2443         * config/nios2/nios2.c: Ditto.
2444         * config/nvptx/nvptx.c: Ditto.
2445         * config/pa/pa.c: Ditto.
2446         * config/pdp11/pdp11.c: Ditto.
2447         * config/rl78/rl78.c: Ditto.
2448         * config/sparc/sparc.c: Ditto.
2449         * config/spu/spu.c: Ditto.
2450         * config/stormy16/stormy16.c: Ditto.
2451         * config/tilegx/tilegx.c: Ditto.
2452         * config/tilepro/tilepro.c: Ditto.
2453         * config/v850/v850.c: Ditto.
2454         * config/vax/vax.c: Ditto.
2455         * config/visium/visium.c: Ditto.
2456         * config/xtensa/xtensa.c: Ditto.
2458 2016-09-14  Jakub Jelinek  <jakub@redhat.com>
2460         PR sanitizer/68260
2461         * tsan.c: Include target.h.
2462         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
2463         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
2464         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
2465         BUILT_IN_ATOMIC_TEST_AND_SET entries.
2466         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
2468 2016-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2469             Martin Liska  <mliska@suse.cz>
2471         PR middle-end/77574
2472         * predict.c (force_edge_cold): Add braces to a condition.
2474 2016-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2476         PR rtl-optimization/77289
2477         * lra-constraints.c (get_final_hard_regno): Removed.
2478         (get_hard_regno): Add new parameter final_p.
2479         (get_reg_class): Directly call lra_get_elimination_hard_regno.
2480         (operands_match_p): Adjust call to get_hard_regno.
2481         (uses_hard_regs_p): Likewise.
2482         (process_alt_operands): Likewise.
2484 2016-09-13  Joe Seymour  <joe.s@somniumtech.com>
2486         PR target/70713
2487         * config/msp430/msp430.c (msp430_start_function): Emit an error
2488         if a function is both weak and specifies an interrupt number.
2490 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
2492         PR tree-optimization/77454
2493         * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
2494         changing GIMPLE_COND.  Move update_stmt_if_modified call after this.
2495         Formatting fix.
2497 2016-09-13  Tamar Christina  <tamar.christina@arm.com>
2499         * config/aarch64/aarch64-builtins.c
2500         (aarch64_init_simd_builtins): Fix builtin type signature printing.
2502 2016-09-13  Uros Bizjak  <ubizjak@gmail.com>
2504         * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
2505         SFmode and SCmode arguments by reference.
2507 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
2509         * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
2510         Rename to...
2511         (selftest::test_one_liner_fixit_insert_before): ...this, and update
2512         for renaming of add_fixit_insert to add_fixit_insert_before.
2513         (selftest::test_one_liner_fixit_insert_after): New function.
2514         (selftest::test_one_liner_fixit_validation_adhoc_locations):
2515         Update for renaming of add_fixit_insert to add_fixit_insert_before.
2516         (selftest::test_one_liner_many_fixits): Likewise.
2517         (selftest::test_diagnostic_show_locus_one_liner): Update for
2518         renaming, call new test function.
2519         (selftest::test_diagnostic_show_locus_fixit_lines): Update for
2520         renaming of add_fixit_insert to add_fixit_insert_before.
2521         (selftest::test_fixit_consolidation): Likewise.
2522         * diagnostic.c (selftest::test_print_parseable_fixits_insert):
2523         Likewise.
2524         * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
2525         (selftest::test_applying_fixits_insert_before): ...this.
2526         (selftest::test_applying_fixits_insert): Update for renaming of
2527         add_fixit_insert to add_fixit_insert_before.
2528         (selftest::test_applying_fixits_insert_after): New function.
2529         (selftest::test_applying_fixits_insert_after_at_line_end): New
2530         function.
2531         (selftest::test_applying_fixits_insert_after_failure): New function.
2532         (selftest::test_applying_fixits_multiple): Update for renaming of
2533         add_fixit_insert to add_fixit_insert_before.
2534         (selftest::change_line): Likewise.
2535         (selftest::test_applying_fixits_unreadable_file): Likewise.
2536         (selftest::test_applying_fixits_line_out_of_range): Likewise.
2537         (selftest::test_applying_fixits_column_validation): Likewise.
2538         (selftest::test_applying_fixits_column_validation): Likewise.
2539         (selftest::edit_context_c_tests): Update for renamed test function;
2540         call new test functions.
2542 2016-09-13  Pat Haugen  <pthaugen@us.ibm.com>
2544         PR tree-optimization/77536
2545         PR rtl-optimization/68212
2546         * config/rs6000/rs6000.md (div->recip splitter): Remove
2547         optimize_insn_for_speed_p condition.
2549 2016-09-13  Maciej W. Rozycki  <macro@imgtec.com>
2551         * optabs.c (prepare_cmp_insn): Update documentation comment.
2553 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
2554             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2556         PR middle-end/77475
2557         * opts.h (candidates_list_and_hint): Declare.
2558         * opts-common.c (candidates_list_and_hint): New function.
2559         (cmdline_handle_error): Use it.
2561 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
2563         * edit-context.c (edited_line::get_len): New accessor.
2564         (edited_file::print_diff): Split out hunk-printing into...
2565         (edited_file::print_diff_hunk): New method.
2566         (edited_file::print_diff_line): New method.
2568 2016-09-12  Andrew Pinski  <apinski@cavium.com>
2570         * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
2571         New tuning option.
2572         * config/aarch64/aarch64.c (thunderx_tunings): Enable
2573         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
2574         (aarch64_operands_ok_for_ldpstp): Return false if
2575         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
2576         was SImode and the alignment is less than 8 byte.
2577         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
2579 2016-09-12  Orlando Arias  <oarias@knights.ucf.edu>
2581         PR target/77570
2582         * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
2584 2016-09-12  Marek Polacek  <polacek@redhat.com>
2586         * doc/extend.texi: Use lowercase "boolean".
2587         * doc/invoke.texi: Likewise.
2588         * doc/md.texi: Likewise.
2589         * target.def: Likewise.
2590         * doc/tm.texi: Regenerated.
2592 2016-09-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2594         PR middle-end/77426
2595         * expmed.c (synth_mult): Delete duplicate mode check.
2597 2016-09-10  Tom de Vries  <tom@codesourcery.com>
2599         PR C/71602
2600         * builtins.c (std_canonical_va_list_type): Strictly return non-null for
2601         va_list type only.
2602         * config/i386/i386.c (ix86_canonical_va_list_type): Same.
2603         * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
2605 2016-09-09  Peter Bergner  <bergner@vnet.ibm.com>
2607         PR rtl-optimization/77289
2608         * lra-constraints.c (get_final_hard_regno): Add support for non hard
2609         register numbers.  Remove support for subregs.
2610         (get_hard_regno): Use SUBREG_P.  Don't call get_final_hard_regno().
2611         (get_reg_class): Delete removed get_final_hard_regno() argument.
2612         (uses_hard_regs_p): Call get_final_hard_regno().
2614 2016-09-09  Martin Sebor  <msebor@redhat.com>
2616         PR c/77520
2617         PR c/77521
2618         * pretty-print.c (pp_quoted_string): New function.
2619         (pp_format): Call it for %c and %s directives.
2621 2016-09-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2623         * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
2624         (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
2625         INITIAL_ELIMINATION_OFFSET) : Update documentation.
2626         * target.def (frame_pointer_required, can_eliminate): Likewise.
2627         * doc/tm.texi: Regenerated.
2628         * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
2629         ELIMINABLE_REGS.
2630         * df-scan.c (df_hard_reg_init): Likewise.
2631         * ira.c (ira_setup_eliminable_regset): Likewise.
2632         * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
2633         init_elim_table): Likewise.
2634         * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
2635         set_initial_elim_offsets, update_eliminables,
2636         init_elim_table): Likewise.
2637         * rtlanal.c (get_initial_register_offset): Likewise.
2638         * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
2639         * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2640         * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2641         * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2642         * config/fr30/fr30.h: Fix comment.
2643         * config/frv/frv.c: Likewise.
2644         * config/frv/frv.h: Likewise.
2645         * config/ft32/ft32.h: Likewise.
2646         * config/visium/visium.h: Likewise.
2647         * config/pa/pa64-linux.h: Likewise.
2648         * config/v850/v850.h: Likewise.
2649         * config/cris/cris.c: Likewise.
2650         * config/ia64/ia64.h: Likewise.
2651         * config/moxie/moxie.h: Likewise.
2652         * config/m32r/m32r.h: Likewise.
2654 2016-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2656         PR target/77267
2657         * config.in: Regenerate.
2658         * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
2659         New macro.
2660         (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
2661         (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
2662         static-libmpxwrappers case.
2663         (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
2664         MPX_LD_AS_NEEDED_GUARD_POP.
2665         * configure: Regenerate.
2666         * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
2667         defined if linker support "--push-state"/"--pop-state".
2669 2016-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2671         * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
2673 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
2675         * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
2676         (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
2677         (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
2678         (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
2679         (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
2680         (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
2681         (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
2682         Document.
2683         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
2684         width macros from TS 18661-1.
2685         * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
2687 2016-09-08  Jakub Jelinek  <jakub@redhat.com>
2689         PR fortran/77516
2690         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
2691         OMP_CLAUSE_SAFELEN_EXPR.
2693 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
2695         * Makefile.in (OBJS): Add substring-locations.o.
2696         * langhooks-def.h (class substring_loc): New forward decl.
2697         (lhd_get_substring_location): New decl.
2698         (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
2699         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
2700         * langhooks.c (lhd_get_substring_location): New function.
2701         * langhooks.h (class substring_loc): New forward decl.
2702         (struct lang_hooks): Add field get_substring_location.
2703         * substring-locations.c: New file, taking definition of
2704         format_warning_va and format_warning_at_substring from
2705         c-family/c-format.c, making them non-static.
2706         * substring-locations.h (class substring_loc): Move class here
2707         from c-family/c-common.h.  Add and rewrite comments.
2708         (format_warning_va): New decl.
2709         (format_warning_at_substring): New decl.
2710         (get_source_location_for_substring): Add comment.
2712 2016-09-07  Eric Gallager  <egall@gwmail.gwu.edu>
2714         * config/i386/i386.c: Add 'U' suffix to processor feature bits
2715         to avoid -Wnarrowing warning.
2716         * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
2717         * opts.c: Likewise for SANITIZER_OPT bitmasks.
2719 2016-09-07  Wilco Dijkstra  <wdijkstr@arm.com>
2721         * config/aarch64/aarch64.c (aarch64_legitimize_address):
2722         Avoid use of base_offset if offset already in range.
2724 2016-09-07  Kaz Kojima  <kkojima@gcc.gnu.org>
2726         * config/sh/sh-protos.h (struct sh_atomic_model,
2727         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
2728         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
2729         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
2730         * config/sh/sh.h (struct sh_atomic_model,
2731         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
2732         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
2733         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
2734         Guard with __cplusplus.
2736 2016-09-06  Jakub Jelinek  <jakub@redhat.com>
2738         PR target/69255
2739         * config/i386/i386.c (ix86_expand_builtin): For builtin with
2740         unsupported or unknown ISA, use expand_call.
2742 2016-09-06  Martin Liska  <mliska@suse.cz>
2744         PR gcov-profile/77378
2745         PR gcov-profile/77466
2746         * tree-profile.c (tree_profiling): Detect whether target can use
2747         -fprofile-update=atomic.
2749 2016-09-06  Richard Biener  <rguenther@suse.de>
2751         PR tree-optimization/77479
2752         * tree-vrp.c (update_value_range): Extend overflow handling to
2753         VARYING.
2755 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
2757         PR target/77476
2758         * config/i386/i386.md (isa): Add x64_avx512bw.
2759         (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
2760         (kmov_isa): New mode attr.
2761         (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
2762         (*zero_extend<mode>si2): Likewise.
2763         (*zero_extendqihi2): Use avx512dq isa for the last alternative.
2765 2016-09-05  Gerald Pfeifer  <gerald@pfeifer.com>
2767         * doc/invoke.texi (SPU Options): nops -> NOPs.
2768         (x86 Options): Ditto.
2770 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
2772         PR middle-end/77475
2773         * toplev.c (process_options): Temporarily set input_location
2774         to UNKNOWN_LOCATION around targetm.target_option.override () call.
2776 2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
2778         PR rtl-optimization/77452
2779         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
2780         inner-mode reference to a CONST_VECTOR constant in the constant pool.
2782 2016-09-05  Marek Polacek  <polacek@redhat.com>
2784         PR c/77423
2785         * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
2787 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
2789         PR other/77421
2790         * gensupport.c (alter_output_for_subst_insn): Remove redundant
2791         *insn_out == '*' test.  Don't copy unnecessary to yet another
2792         memory buffer, and don't leak it.
2794         PR rtl-optimization/77425
2795         * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
2797 2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
2799         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
2801 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
2803         * common.opt (fdiagnostics-generate-patch): New option.
2804         * diagnostic.c: Include "edit-context.h".
2805         (diagnostic_initialize): Initialize context->edit_context_ptr.
2806         (diagnostic_finish): Delete context->edit_context_ptr.
2807         (diagnostic_report_diagnostic): Add fix-it hints from the
2808         diagnostic to context->edit_context_ptr, if any.
2809         * diagnostic.h (class edit_context): Add forward decl.
2810         (struct diagnostic_context): Add field "edit_context_ptr".
2811         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
2812         -fdiagnostics-generate-patch.
2813         (-fdiagnostics-generate-patch): New item.
2814         * toplev.c: Include "edit-context.h".
2815         (process_options): Set global_dc->edit_context_ptr to a new
2816         edit_context if the options need one.
2817         (toplev::main): Handle -fdiagnostics-generate-patch by using
2818         global_dc->edit_context_ptr.
2820 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2822         PR c/65467
2823         * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
2824         map and firstprivate clauses on target construct for _Atomic
2825         qualified decls.
2826         (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
2827         on target construct for _Atomic qualified decls.
2828         * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
2829         decls.
2830         * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
2831         _Atomic qualified arguments not mentioned in uniform clause.
2833 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
2835         * Makefile.in (OBJS-libcommon): Add edit-context.o.
2836         * diagnostic-color.c (color_dict): Add "diff-filename",
2837         "diff-hunk", "diff-delete", and "diff-insert".
2838         (parse_gcc_colors): Update default value of GCC_COLORS in comment
2839         to reflect above changes.
2840         * doc/invoke.texi (-fdiagnostics-color): Update description of
2841         default GCC_COLORS, and of the supported capabilities.
2842         * edit-context.c: New file.
2843         * edit-context.h: New file.
2844         * input.c (struct fcache): Add field "missing_trailing_newline".
2845         (diagnostics_file_cache_forcibly_evict_file): Initialize it to
2846         true.
2847         (add_file_to_cache_tab): Likewise.
2848         (fcache::fcache): Likewise.
2849         (get_next_line): Update c->missing_trailing_newline.
2850         (location_missing_trailing_newline): New function.
2851         * input.h (location_missing_trailing_newline): New decl.
2852         * selftest-run-tests.c (selftest::run_tests): Call
2853         edit_context_c_tests.
2854         * selftest.h (edit_context_c_tests): New decl.
2856 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2857             Richard Biener  <rguenth@suse.de>
2859         PR tree-optimization/77444
2860         * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
2861         as steptype, remove redundant initialization.
2863 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2865         PR sanitizer/77396
2866         * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
2867         (sanopt_optimize_walker): Optimize away
2868         __asan_before_dynamic_init (...) followed by
2869         __asan_after_dynamic_init () without intervening memory loads/stores.
2870         * ipa-pure-const.c (special_builtin_state): Handle
2871         BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
2872         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
2874 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2876         * cfg.c (free_original_copy_tables): Replace second assignment of
2877         bb_copy = NULL by bb_original = NULL. 
2879 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2881         PR other/77421
2882         * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
2883         assignment added in r216794.
2885 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
2887         * Makefile.in (OBJS): Add typed-splay-tree.o.
2888         * selftest-run-tests.c (selftest::run_tests): Call
2889         typed_splay_tree_c_tests.
2890         * selftest.h (typed_splay_tree_c_tests): New decl.
2891         * typed-splay-tree.c: New file.
2892         * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
2893         (typed_splay_tree::max): New method.
2894         (typed_splay_tree::min): New method.
2895         (typed_splay_tree::foreach): New method.
2896         (typed_splay_tree::closure): New struct.
2897         (typed_splay_tree::inner_foreach_fn): New function.
2899 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2901         * ipa-cp.c (ipcp_store_bits_results): Change option name from
2902         -fipa-cp-bit to -fipa-bit-cp.
2904 2016-09-01  Martin Sebor  <msebor@redhat.com>
2906         PR tree-optimization/71831
2907         * tree-object-size.h: Return bool instead of the size and add
2908         argument for the size.
2909         * tree-object-size.c (compute_object_offset): Update signature.
2910         (addr_object_size): Same.
2911         (compute_builtin_object_size): Return bool instead of the size
2912         and add argument for the size.  Handle POINTER_PLUS_EXPR when
2913         optimization is disabled.
2914         (expr_object_size): Adjust.
2915         (plus_stmt_object_size): Adjust.
2916         (pass_object_sizes::execute): Adjust.
2917         * builtins.c (fold_builtin_object_size): Adjust.
2918         * doc/extend.texi (Object Size Checking): Update.
2919         * ubsan.c (instrument_object_size): Adjust.
2921 2016-09-01  Martin Sebor  <msebor@redhat.com>
2923         * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
2924         it fits the output of the formatted function regardless of its
2925         arguments.
2926         * gcc/genmodes.c (parser::parse_expr): Same.
2927         * gimplify.c (gimplify_asm_expr): Same.
2928         * passes.c (pass_manager::register_one_dump_file): Same.
2929         * print-tree.c (print_node): Same.
2931 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2933         * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
2935 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2937         * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
2939 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2941         * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
2942         * config/rs6000/vector.md: Ditto.
2943         * config/rs6000/vsx.md: Ditto.
2945 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
2947         * ipa-inline-analysis.c (param_change_prob): Get to the base object
2948         first in all cases.
2950 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2952         * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
2953         *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
2954         *return_and_restore_gpregs_<mode>_r11,
2955         *return_and_restore_gpregs_<mode>_r12,
2956         *return_and_restore_gpregs_<mode>_r1,
2957         *return_and_restore_fpregs_<mode>_r11,
2958         *return_and_restore_fpregs_<mode>_r12,
2959         *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
2960         directly instead of via the "l" constraint.  Renumber operands.
2961         Fix whitespace.
2963 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2965         * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
2966         save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
2967         *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
2968         * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
2969         load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
2970         *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
2971         *call_value_nonlocal_darwin64, reload_macho_picbase,
2972         reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
2973         * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
2974         * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
2975         *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
2976         *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
2977         *save_fpregs_<mode>_r1): Ditto.
2978         * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
2979         *return_and_restore_gpregs_spe): Ditto.
2981 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2983         * config/rs6000/rs6000.md
2984         (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
2985         the use of the link register.
2986         (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
2988 2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2989             Michael Meissner  <meissner@linux.vnet.ibm.com>
2991         PR target/72827
2992         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
2993         reg+reg addressing for TImode.
2994         (rs6000_legitimate_address_p): Only allow register indirect
2995         addressing for TImode, even without TARGET_QUAD_MEMORY.
2997 2016-09-01  Richard Biener  <rguenther@suse.de>
2999         PR middle-end/77436
3000         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
3001         check whether the result fits the desired result type.
3003 2016-09-01  Nathan Sidwell  <nathan@acm.org>
3005         * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
3007 2016-09-01  Wilco Dijkstra  <wdijkstr@arm.com>
3009         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
3010         New function.
3011         (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
3013 2016-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3015         * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
3016         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
3017         for comparisons of integer ZERO_EXTEND against zero.
3019 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
3021         * config/i386/i386.c (ix86_option_override_internal): Also disable the
3022         STV pass if -mstackrealign is enabled.
3024 2016-08-31  Ilya Verbin  <iverbin@gmail.com>
3026         * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
3027         AVX512IFMA.
3029 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
3031         * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
3032         (layout_range::intersects_line_p): New method.
3033         (test_range_contains_point_for_single_point): Rename to...
3034         (test_layout_range_for_single_point): ...this, and add testing
3035         for layout_range::intersects_line_p.
3036         (test_range_contains_point_for_single_line): Rename to...
3037         (test_layout_range_for_single_line): ...this,  and add testing
3038         for layout_range::intersects_line_p.
3039         (test_range_contains_point_for_multiple_lines): Rename to...
3040         (test_layout_range_for_multiple_lines): ...this,  and add testing
3041         for layout_range::intersects_line_p.
3042         (layout::layout): Populate m_fixit_hints.
3043         (layout::get_expanded_location): Handle the case of a line-span
3044         for a fix-it hint.
3045         (layout::validate_fixit_hint_p): New method.
3046         (get_line_span_for_fixit_hint): New function.
3047         (layout::calculate_line_spans): Add spans for fixit-hints.
3048         (layout::should_print_annotation_line_p): New method.
3049         (layout::print_any_fixits): Drop param "richloc", instead using
3050         validated fixits in m_fixit_hints.  Add "const" to hint pointers.
3051         (diagnostic_show_locus): Avoid printing blank annotation lines.
3052         (selftest::test_diagnostic_context::test_diagnostic_context):
3053         Initialize show_column and start_span.
3054         (selftest::test_diagnostic_context::start_span_cb): New static
3055         function.
3056         (selftest::test_diagnostic_show_locus_fixit_lines): New function.
3057         (selftest::diagnostic_show_locus_c_tests): Update for function
3058         renamings.  Call test_diagnostic_show_locus_fixit_lines.
3060 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
3062         PR tree-optimization/73714
3063         * match.pd (a * (1 << b)): Revert change from 2016-05-23.
3065 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
3067         * selftest.c: Move "namespace selftest {" to top of file,
3068         removing explicit "selftest::" qualifiers throughout.
3070 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
3072         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
3073         New types.
3074         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
3075         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
3076         Replace builtin with vector extension.
3077         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
3078         New types.
3079         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
3080         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
3081         Replace builtin with vector extension.
3082         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
3083         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
3084         Replace builtin with vector extension.
3085         * config/i386/xmmintrin.h (__m128_u): New type.
3086         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
3087         (_mm_load_ps, _mm_store_ps): Simplify.
3089 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
3091         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
3093 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
3095         * diagnostic-show-locus.c (colorizer::begin_state): Support more
3096         than 3 ranges per diagnostic by alternating between color 1 and
3097         color 2.
3098         (layout::layout): Replace use of rich_location::MAX_RANGES
3099         with richloc->get_num_locations ().
3100         (layout::calculate_line_spans): Replace use of
3101         rich_location::MAX_RANGES with m_layout_ranges.length ().
3102         (layout::print_annotation_line): Handle arbitrary numbers of
3103         ranges in caret-printing by defaulting to '^'.
3104         (selftest::test_one_liner_many_fixits): New function.
3105         (test_diagnostic_show_locus_one_liner): Call it.
3106         * diagnostic.c (diagnostic_initialize): Update for renaming
3107         of rich_location::MAX_RANGES to
3108         rich_location::STATICALLY_ALLOCATED_RANGES.
3109         * diagnostic.h (struct diagnostic_context): Likewise.
3111 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
3113         * selftest.c (selftest::named_temp_file::named_temp_file): New
3114         ctor.
3115         (selftest::temp_source_file::~temp_source_file): Move to...
3116         (selftest::named_temp_file::~named_temp_file): ...here.
3117         (selftest::test_named_temp_file): New function.
3118         (selftest::selftest_c_tests): Call test_named_temp_file.
3119         * selftest.h (class named_temp_file): New class.
3120         (class temp_source_file): Convert to a subclass of named_temp_file.
3122 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
3124         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
3125         USEs of LR_REGNO in returns and sibcalls.
3126         (rs6000_output_mi_thunk): Similar.
3127         (rs6000_sibcall_aix): Similar.
3128         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
3129         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
3130         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
3131         Remove the USE of LR_REGNO from the patterns as well.  Delete an
3132         obsolete comment.
3133         (return_internal_<mode>): Delete.
3135 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
3137         * gcc/config/aarch64/aarch64-simd.md
3138         (aarch64_ld2<mode>_dreg_le): New.
3139         (aarch64_ld2<mode>_dreg_be): New.
3140         (aarch64_ld2<mode>_dreg): Removed.
3141         (aarch64_ld3<mode>_dreg_le): New.
3142         (aarch64_ld3<mode>_dreg_be): New.
3143         (aarch64_ld3<mode>_dreg): Removed.
3144         (aarch64_ld4<mode>_dreg_le): New.
3145         (aarch64_ld4<mode>_dreg_be): New.
3146         (aarch64_ld4<mode>_dreg): Removed.
3147         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
3149 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
3151         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
3152         redundant location param.
3153         (test_one_liner_fixit_remove): Likewise.
3154         (test_one_liner_fixit_replace): Likewise.
3155         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
3156         * gcc-rich-location.c
3157         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
3158         get_range_from_loc.  Drop overload taking a const char *.
3159         * gcc-rich-location.h
3160         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
3161         a const char *.
3163 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3165         * config/linux.c (linux_libc_has_function): Return true on musl.
3167 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3169         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
3171 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
3173         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
3174         used for abnormal egdes.
3176 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
3178         PR tree-optimization/72866
3179         * tree-vect-patterns.c (search_type_for_mask): Turn into
3180         a small wrapper, move all code to ...
3181         (search_type_for_mask_1): ... this new function.  Add caching
3182         and adjust recursive calls.
3184         PR debug/77363
3185         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
3186         instead of lookup_type_die (type_main_variant (type)) even for array
3187         types.
3189         PR middle-end/77377
3190         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
3191         constant pool reference return x instead of c.
3193 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
3195         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
3196         include MQ.
3198 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
3200         * input.c
3201         (selftest::test_make_location_nonpure_range_endpoints): Fix
3202         header comment.
3204 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
3206         * diagnostic-show-locus.c
3207         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
3208         function.
3209         (selftest::test_diagnostic_show_locus_one_liner): Call it.
3210         * input.c (get_pure_location): Move to libcpp/line-map.c.
3211         * input.h (get_pure_location): Convert decl to an inline function
3212         calling implementation in libcpp.
3214 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
3216         PR target/77403
3217         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
3218         template for intel asm dialect.
3219         (vec_set_hi_<mode><mask_name>): Ditto.
3221 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
3223         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
3224         (selftest::fail_formatted): Likewise.
3226 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
3228         * input.c (make_location): Call get_start and get_finish
3229         on the endpoints to avoid storing packed ranges or ad-hoc
3230         ranges in them.
3231         (selftest::test_make_location_nonpure_range_endpoints): New function.
3232         (selftest::input_c_tests): Call it.
3233         * input.h (get_start): New inline function.
3235 2016-08-29  Tom de Vries  <tom@codesourcery.com>
3237         PR c/77398
3238         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
3239         with assert.
3241 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
3243         * Makefile.in (gcov-iov.h): Add dummy recipe.
3245 2016-08-29  Nathan Sidwell  <nathan@acm.org>
3247         * config/nvptx/nvptx.c: #include tree-vrp.h.
3249 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
3251         PR target/77324
3252         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
3253         HIGH+LO construct during reload.
3255 2016-08-28  Tom de Vries  <tom@codesourcery.com>
3257         PR lto/70955
3258         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
3259         'sysv_abi va_list' attribute.
3260         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
3261         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
3262         attributes.
3264 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3266         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
3267         * emit-rtl.c (unshare_all_rtl_1): Adjust.
3268         (unshare_all_rtl_again): Likewise.
3269         * function.c (assign_stack_local_1): Likewise.
3270         (assign_stack_temp_for_type): Likewise.
3272 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3274         * cfgbuild.c (make_edges): Adjust.
3275         * cfgrtl.c (can_delete_label_p): Likewise.
3276         * dwarf2cfi.c (create_trace_edges): Likewise.
3277         * except.c (sjlj_emit_dispatch_table): Likewise.
3278         * function.h (struct expr_status): make x_forced_labels a vector.
3279         * jump.c (rebuild_jump_labels_1): Adjust.
3280         * reload1.c (set_initial_label_offsets): Likewise.
3281         * stmt.c (force_label_rtx): Likewise.
3282         (expand_label): Likewise.
3284 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3286         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
3288 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
3290         PR tree-optimization/71077
3291         PR tree-optimization/68542
3292         * fold-const.c (fold_relational_const): Fix folding of
3293         VECTOR_CST comparisons that have a scalar boolean result type.
3294         (selftest::test_vector_folding): New static function.
3295         (selftest::fold_const_c_tests): Call it.
3297 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
3299         * doc/extend.texi (SPU Built-in Functions): Remove stale
3300         references to material formerly at IBM and Sony.
3302 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
3304         PR target/77349
3305         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
3307 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
3309         * diagnostic-show-locus.c
3310         (selftest::test_fixit_consolidation): New function.
3311         (selftest::diagnostic_show_locus_c_tests): Call it.
3312         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
3313         constructor based on source_range.
3315 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
3317         * diagnostic-color.c (color_dict): Add "fixit-insert" and
3318         "fixit-delete".
3319         (parse_gcc_colors): Update description of default GCC_COLORS.
3320         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
3321         (colorizer::set_fixit_insert): New method.
3322         (colorizer::set_fixit_delete): New method.
3323         (colorizer::get_color_by_name): New method.
3324         (colorizer::STATE_FIXIT_INSERT): New constant.
3325         (colorizer::STATE_FIXIT_DELETE): New constant.
3326         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
3327         fields in favor of new field "m_stop_color".  Add fields
3328         "m_fixit_insert" and "m_fixit_delete".
3329         (colorizer::colorizer): Update for above changes.  Replace
3330         colorize_start calls with calls to get_color_by_name.
3331         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
3332         STATE_FIXIT_DELETE.  Update for field renamings.
3333         (colorizer::finish_state): Simplify by using m_stop_color,
3334         rather than multiple identical "*_ce" fields.
3335         (colorizer::get_color_by_name): New method.
3336         (layout::print_any_fixits): Print insertions and replacements
3337         using the "fixit-insert" color, and deletions using the
3338         "fixit-delete" color.
3339         * doc/invoke.texi (-fdiagnostics-color): Update description of
3340         default GCC_COLORS, and of the supported capabilities.
3342 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
3344         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
3345         current_function_static_stack_size variable with the static
3346         stack frame size of the current function when
3347         flag_stack_usage_info is enabled.
3349 2016-08-26  Nathan Sidwell  <nathan@acm.org>
3351         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
3352         assignment inside if condition.
3354 2016-08-26  Richard Biener  <rguenther@suse.de>
3356         PR tree-optimization/69047
3357         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
3358         extracts similar to what FRE does.
3359         (non_rewritable_mem_ref_base): Likewise.
3361 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
3363         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
3364         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
3365         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3366         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3367         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
3368         Likewise.
3369         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3370         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3371         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3372         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
3373         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3375 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3377         PR target/70473
3378         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
3379         reservation duration to 15 cycles.
3380         (cortex_a8_vfp_macs): Likewise.
3381         (cortex_a8_vfp_macd): Likewise.
3382         (cortex_a8_vfp_divs): Likewise.
3383         (cortex_a8_vfp_divd): Likewise.
3385 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3387         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
3388         (aarch_macro_fusion_pair_p): Use above to avoid early return.
3390 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3391             Martin Jambhor  <mjambor@suse.cz>
3393         * common.opt: New option -fipa-bit-cp.
3394         * doc/invoke.texi: Document -fipa-bit-cp.
3395         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
3396         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
3397         * tree-ssa-ccp.h: New header file.
3398         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
3399         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
3400         Replace all occurences of tree parameter by two new params: signop, int.
3401         (bit_value_unop_1): Change to bit_value_unop and export it.
3402         Replace all occurences of tree parameter by two new params: signop,
3403         int.
3404         (bit_value_binop): Change call from bit_value_binop_1 to
3405         bit_value_binop.
3406         (bit_value_assume_aligned): Likewise.
3407         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
3408         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
3409         to ccp_finalize.
3410         (ccp_finalize): Skip processing if val->mask == 0.
3411         * ipa-cp.c: Include tree-ssa-ccp.h
3412         (ipcp_bits_lattice): New class.
3413         (ipcp_param_lattice (bits_lattice): New member.
3414         (print_all_lattices): Call ipcp_bits_lattice::print.
3415         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
3416         (initialize_node_lattices): Likewise.
3417         (propagate_bits_accross_jump_function): New function.
3418         (propagate_constants_accross_call): Call
3419         propagate_bits_accross_jump_function.
3420         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
3421         (ipcp_store_bits_results): New function.
3422         (ipcp_driver): Call ipcp_store_bits_results.
3423         * ipa-prop.h (ipa_bits): New struct.
3424         (ipa_jump_func): Add new member bits of type ipa_bits.
3425         (ipa_param_descriptor): Change decl to decl_or_type.
3426         (ipa_get_param): Change decl to decl_or_type and assert on
3427         PARM_DECL.
3428         (ipa_get_type): New function.
3429         (ipcp_transformation_summary): New member bits.
3430         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
3431         (ipa_populate_param_decls): Likewise.
3432         (ipa_dump_param): Likewise.
3433         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
3434         function.
3435         (ipa_set_jf_unknown): Set ipa_bits::known to false.
3436         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
3437         propagation.
3438         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
3439         (ipa_write_jump_function): Add streaming for ipa_bits.
3440         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
3441         (write_ipcp_transformation_info): Add streaming for ipa_bits
3442         summary for ltrans.
3443         (read_ipcp_transfomration_info): Add support for reading streamed
3444         ipa_bits.
3445         (ipcp_update_bits): New function.
3446         (ipcp_transform_function): Call ipcp_update_bits.
3448 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3450         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
3451         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
3453 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
3455         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
3457 2016-08-25  Richard Biener  <rguenther@suse.de>
3459         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
3460         Only add locations in late dwarf.
3461         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
3462         (dwarf2out_early_finish): But do it here.
3464 2016-08-24  Michael Collison  <michael.collison@linaro.org>
3465             Michael Collison  <michael.collison@arm.com>
3467         * config/arm/arm-modes.def: Add new condition code mode CC_V
3468         to represent the overflow bit.
3469         * config/arm/arm.c (maybe_get_arm_condition_code):
3470         Add support for CC_Vmode.
3471         (arm_gen_unlikely_cbranch): New function to generate common
3472         rtl conditional branches for overflow patterns.
3473         * config/arm/arm-protos.h: Add prototype for
3474         arm_gen_unlikely_cbranch.
3475         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
3476         addsi3_compareV_upper): New patterns to support signed
3477         builtin overflow add operations.
3478         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
3479         New patterns to support unsigned builtin add overflow operations.
3480         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
3481         builtin overflow subtract operations,
3482         (usubv<mode>4): New patterns to support unsigned builtin subtract
3483         overflow operations.
3484         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
3485         to support builtin overflow negate operations.
3487 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3489         Revert
3490         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3492         * explow.c (get_dynamic_stack_size): Take known alignment of stack
3493         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
3494         needed.
3496 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3498         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
3499         MULTILIB_OPTIONS should be used.  Small wording fixes.
3500         * genmultilib: Memorize set of all option combinations in
3501         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
3502         found in MULTILIB_OPTIONS by checking if option set is listed in
3503         combination_space.  Output new and existing error message to stderr.
3505 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3507         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
3508         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
3509         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
3510         (MULTILIB_REUSE): Remove reuse rules for option set including
3511         -mfpu=fp-armv8 and -mfpu=vfpv4
3513 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3515         * config/arm/t-rtems: Add vfp multilib.
3517 2016-08-23  Ian Lance Taylor  <iant@golang.org>
3519         * config/s390/s390.c (s390_asm_file_start): Call
3520         default_file_start.
3522 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3524         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
3525         initialization of all 0's to the 0 constant, instead of directly
3526         generating XOR.  Add support for V4SImode vector initialization on
3527         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
3528         initialization.  Change variables used in V4SFmode vector
3529         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
3530         any memory addresses are in index form.  Add support for using
3531         VSPLTH/VSPLTB to initialize vector short and vector char vectors
3532         with all of the same element.
3533         (regno_or_subregno): New helper function to return a register
3534         number for either REG or SUBREG.
3535         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
3536         Use regno_or_subregno where possible.
3537         (rs6000_split_v4si_init_di_reg): New helper function to build up a
3538         DImode value from two SImode values in order to generate V4SImode
3539         vector initialization on 64-bit systems with direct move.
3540         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
3541         initialization.
3542         (rtx_is_swappable_p): V4SImode vector initialization insn is not
3543         swappable.
3544         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
3545         declaration.
3546         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
3547         attributes to initialize V8HImode and V16QImode vectors with the
3548         same element.
3549         (VSX_SPLAT_COUNT): Likewise.
3550         (VSX_SPLAT_SUFFIX): Likewise.
3551         (UNSPEC_VSX_VEC_INIT): New unspec.
3552         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
3553         Allow SFmode values to come from Altivec registers.
3554         (vsx_init_v4si): New insn/split for V4SImode vector initialization
3555         on 64-bit systems with direct move.
3556         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
3557         vector initializations, to allow V4SImode vector initializations
3558         on 64-bit systems with direct move.
3559         (vsx_splat_v4si): Likewise.
3560         (vsx_splat_v4si_di): Likewise.
3561         (vsx_splat_v4sf): Likewise.
3562         (vsx_splat_v4sf_internal): Likewise.
3563         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
3564         register classes.
3565         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
3566         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
3567         initializing V8HImode and V16QImode vectors with the same
3568         element.
3569         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
3570         optimization if -maltivec=be.
3572 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
3574         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
3575         attribute for alternatives 3 and 4.
3577 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
3579         * selftest.c (selftest::assert_str_contains): New function.
3580         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
3581         * selftest.h (selftest::assert_str_contains): New decl.
3582         (ASSERT_STR_CONTAINS): New macro.
3584 2016-08-23  Richard Biener  <rguenther@suse.de>
3586         PR tree-optimization/77286
3587         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
3588         the CFG here.
3589         (vect_transform_loop): Split exit edges of loop and scalar
3590         loop if required and at the appropriate time.
3592 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3594         * explow.c (get_dynamic_stack_size): Take known alignment of stack
3595         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
3596         needed.
3597         Correct a typo in a comment.
3599 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3601         * config/s390/s390.md ("*andc_split"): New splitter for and with
3602         complement.
3604 2016-08-23  Richard Biener  <rguenther@suse.de>
3606         PR tree-optimization/27336
3607         * tree-vrp.c (infer_value_range): Handle stmts that can throw
3608         by looking for a non-EH edge.
3609         (process_assert_insertions_for): Likewise.
3611 2016-08-23  Richard Biener  <rguenther@suse.de>
3613         PR middle-end/77305
3614         * statistics.c (statistics_counter_event): Robustify against
3615         NULL current_pass.
3617 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3619         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
3620         for targets amdfam10 and barcelona.
3622 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
3624         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
3625         (zero_extend<mode>di2): Ditto.
3626         (*zero_extend<mode>si2): Ditto.
3627         (*zero_extendqihi2): Ditto.
3629 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
3631         PR middle-end/77269
3632         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
3633         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
3635 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
3637         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
3638         identical consecutive elements.
3639         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
3640         the node's def stmt, avoid printing an unwanted trailing newline by
3641         replacing the call to print_gimple_stmt() with its inlined body and
3642         adjusting it to not set pp_needs_newline and to call pp_flush()
3643         instead of pp_newline_and_flush().
3645 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
3647         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
3648         (float32_type_node, float64_type_node, float32x_type_node)
3649         (float128x_type_node): New macros.
3650         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
3651         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
3652         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
3653         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
3654         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
3655         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
3656         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
3657         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
3658         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
3659         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
3660         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
3661         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
3662         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
3663         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
3664         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
3665         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
3666         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
3667         (copysign, fabs, huge_val, inf, nan, nans): Use it.
3668         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
3669         and copysign.
3670         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
3671         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
3672         * doc/extend.texi (Other Builtins): Document these built-in
3673         functions.
3674         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
3675         for nan and nans.
3677 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
3679         * doc/install.texi (Binaries): www.opencsw.org now uses https.
3681 2016-08-22  Richard Biener  <rguenther@suse.de>
3683         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
3685 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
3687         PR target/77270
3688         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
3689         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
3690         non-SSE2 athlons only, otherwise prefer SSE prefetches.
3692 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3694         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
3695         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
3696         (vrp_visit_switch_stmt): Likewise.
3697         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
3698         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
3699         (vrp_visit_stmt): Use extract_range_from_stmt.
3700         (vrp_visit_phi_node): Use extract_range_from_phi_node.
3702 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3704         * Makefile.in: Add tree-vrp.h to GTFILES.
3705         * gengtype.c (open_base_files): Add tree-vrp.h.
3706         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
3707         * builtins.c: Likewise.
3708         * fold-const.c: Likewise.
3709         * gimple-builder.c: Likewise.
3710         * gimple-laddress.c: Likewise.
3711         * hsa-gen.c: Likewise.
3712         * internal-fn.c: Likewise.
3713         * ssa.h: Likewise.
3714         * targhooks.c: Liewise,
3715         * tree-ssa-address.c: Likewise.
3716         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
3717         * tree-vrp.c (struct value_range): Move to tree-vrp.h
3718         * tree-vrp.h: New file.
3720 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3722         PR tree-optimization/61839
3723         * tree-vrp.c (two_valued_val_range_p): New.
3724         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
3725         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
3726         Also Convert VAR BINOP CST where VAR is two-valued to
3727         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
3729 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
3731         * diagnostic-show-locus.c
3732         (layout::annotation_line_showed_range_p): New method.
3733         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
3734         Reimplement case fixit_hint::REPLACE to cover removals, and
3735         replacements where the range of the replacement isn't one
3736         of the ranges in the rich_location.
3737         (test_one_liner_fixit_replace): Likewise.
3738         (selftest::test_one_liner_fixit_replace_non_equal_range): New
3739         function.
3740         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
3741         New function.
3742         (selftest::test_diagnostic_show_locus_one_liner): Call the new
3743         functions.
3744         * diagnostic.c (print_parseable_fixits): Remove case
3745         fixit_hint::REMOVE.
3747 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
3749         PR target/77270
3750         * config/i386/i386.c (ix86_option_override_internal): Remove
3751         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
3752         Enable SSE prefetch also for TARGET_PREFETCHWT1.
3753         Do not try to enable TARGET_PRFCHW ISA flag here.
3754         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
3755         Rewrite expander function body.
3756         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
3758 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
3760         PR c/32187
3761         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
3762         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
3763         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
3764         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
3765         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
3766         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
3767         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
3768         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
3769         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
3770         tree_index values.
3771         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
3772         macros.
3773         (struct floatn_type_info): New structure type.
3774         (floatn_nx_types): New variable declaration.
3775         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
3776         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
3777         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
3778         * tree.c (floatn_nx_types): New variable.
3779         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
3780         corresponding complex types.
3781         * target.def (floatn_mode): New hook.
3782         * targhooks.c: Include "real.h".
3783         (default_floatn_mode): New function.
3784         * targhooks.h (default_floatn_mode): New prototype.
3785         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
3786         types.
3787         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
3788         effective-target and dg-add-options keywords.
3789         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
3790         Document new effective-target keywords.
3791         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
3792         * doc/tm.texi: Regenerate.
3793         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
3794         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
3795         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
3796         18661-3.
3797         * real.h (struct real_format): Add field ieee_bits.
3798         * real.c (ieee_single_format, mips_single_format)
3799         (motorola_single_format, spu_single_format, ieee_double_format)
3800         (mips_double_format, motorola_double_format)
3801         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
3802         (ieee_extended_intel_128_format)
3803         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
3804         (mips_extended_format, ieee_quad_format, mips_quad_format)
3805         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
3806         (decimal_double_format, decimal_quad_format, ieee_half_format)
3807         (arm_half_format, real_internal_format: Initialize ieee_bits
3808         field.
3809         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
3810         float128_type_node.  Set float80_type_node to float64x_type_node
3811         if appropriate and long_double_type_node not appropriate.
3812         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
3813         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
3814         Initialize ieee_bits field.
3815         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
3816         (rs6000_init_builtins): Set ieee128_float_type_node to
3817         float128_type_node.
3818         (rs6000_floatn_mode): New function.
3820 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
3822         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
3823         _rdseed64_step): Uglify argument names and/or local variable names
3824         in inline functions.
3825         * config/i386/rtmintrin.h (_xabort): Likewise.
3826         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
3827         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
3828         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
3829         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
3830         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
3831         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
3832         _mm_maskz_ternarylogic_epi32): Likewise.
3833         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
3834         __lwpins32, __lwpins64): Likewise.
3835         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
3836         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
3837         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
3838         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
3839         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
3840         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
3841         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
3842         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
3843         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
3844         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
3845         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
3846         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
3847         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
3848         _mm256_mask_i64gather_epi32): Likewise.
3849         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
3850         * config/i386/ia32intrin.h (__writeeflags): Likewise.
3851         * config/i386/pkuintrin.h (_wrpkru): Likewise.
3852         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
3853         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
3854         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
3855         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
3856         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
3857         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
3858         _mm512_mask_prefetch_i64scatter_ps): Likewise.
3859         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
3860         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
3861         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
3862         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
3863         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
3864         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
3865         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
3866         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
3868         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
3869         returning void.
3870         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
3871         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
3872         Likewise.
3873         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
3874         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
3875         function name.
3876         (_rdpkru_u32): Add space after function name.
3878         * config/i386/t-i386 (i386-c.o): Don't depend on
3879         i386-builtin-types.inc.
3880         (i386.o): Depend on i386-builtin-types.inc.
3882 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
3884         PR target/77281
3885         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
3886         Use const_vec_duplicate to check for duplicated elements.
3888 2016-08-19  Richard Biener  <rguenther@suse.de>
3890         PR tree-optimization/77290
3891         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3892         Fix flag_tree_parallelize_loops check.
3894 2016-08-19  Richard Biener  <rguenther@suse.de>
3896         * match.pd (x | 0 -> x): Add.
3898 2016-08-19  Richard Biener  <rguenther@suse.de>
3900         PR tree-optimization/77286
3901         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
3902         Deal with virtual PHIs being out-of-order.
3904 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
3906         * doc/invoke.texi (fverbose-asm): Note that source code lines
3907         are emitted, and provide an example.
3908         * final.c (asm_show_source): New function.
3909         (final_scan_insn): Call asm_show_source.
3911 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
3913         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
3914         param with diagnostic_kind.
3915         (class colorizer): Similarly replace field m_diagnostic with
3916         m_diagnostic_kind.
3917         (colorizer::colorizer): Replace diagnostic
3918         param with diagnostic_kind.
3919         (colorizer::begin_state): Update for above field change.
3920         (layout::layout): Replace diagnostic param with rich_location *
3921         and diagnostic_kind.
3922         (diagnostic_show_locus): Replace diagnostic param with richloc
3923         and diagnostic_kind.
3924         (class selftest::test_diagnostic_context): New class.
3925         (selftest::test_diagnostic_show_locus_unknown_location): New
3926         function.
3927         (selftest::test_one_liner_simple_caret): New function.
3928         (selftest::test_one_liner_caret_and_range): New function.
3929         (selftest::test_one_liner_multiple_carets_and_ranges): New
3930         function.
3931         (selftest::test_one_liner_fixit_remove): New function.
3932         (selftest::test_one_liner_fixit_replace): New function.
3933         (selftest::test_diagnostic_show_locus_one_liner): New function.
3934         (selftest::diagnostic_show_locus_c_tests): Call the new test
3935         functions.
3936         * diagnostic.c (diagnostic_initialize): Initialize
3937         colorize_source_p, show_ruler_p and parseable_fixits_p.
3938         (default_diagnostic_finalizer): Update for change to
3939         diagnostic_show_locus.
3940         (diagnostic_append_note): Likewise.
3941         * diagnostic.h (diagnostic_show_locus): Replace
3942         const diagnostic_info * param with location * and diagnostic_t.
3944 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
3946         * input.c (saved_line_table): New global.
3947         (class selftest::temp_line_table): Rename to line_table_test and
3948         move declaration to selftest.h, and drop field m_old_line_table.
3949         (selftest::temp_line_table::temp_line_table): Rename ctor to...
3950         (selftest::line_table_test::line_table_test): ...this.  Add a
3951         default ctor.  Store current value of line_table within
3952         saved_line_table.
3953         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
3954         (selftest::line_table_test::~line_table_test): ...this, and
3955         restore line_table from the saved_line_table, rather than
3956         m_old_line_table.
3957         (selftest::test_accessing_ordinary_linemaps): Update for above
3958         renaming.
3959         (selftest::test_lexer): Likewise.
3960         (struct selftest::lexer_test): Likewise.
3961         (selftest::lexer_test::lexer_test): Likewise.
3962         (selftest::input_c_tests): Move the looping over test cases from
3963         here into...
3964         (selftest::for_each_line_table_case): New function.
3965         * input.h (saved_line_table): New decl.
3966         * selftest.h (struct selftest::line_table_case): New forward decl.
3967         (class selftest::line_table_test): New class, moved here from
3968         selftest::temp_line_table in input.c, and renamed.
3969         (selftest::for_each_line_table_case): New decl.
3971 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3973         PR target/72839
3974         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
3976 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
3978         PR middle-end/70895
3979         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
3980         enclosing parallel construct for reduction variables on OpenACC loop
3981         directives.
3983 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
3985         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
3986         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
3987         -gdwarf-3.
3988         (function_to_dwarf_procedure): Update comment.
3990 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
3992         * input.c (diagnostics_file_cache_forcibly_evict_file): New
3993         function.
3994         * input.h (diagnostics_file_cache_forcibly_evict_file): New
3995         declaration.
3996         * selftest.c (selftest::temp_source_file::~temp_source_file):
3997         Evict m_filename from the diagnostic file cache.
3999 2016-08-18  Richard Biener  <rguenther@suse.de>
4001         * tree-pass.h (make_pass_materialize_all_clones): Declare.
4002         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
4003         make_pass_materialize_all_clones): New simple IPA pass encapsulating
4004         clone materialization.
4005         * passes.def (all_late_ipa_passes): Start with
4006         pass_materialize_all_clones.
4007         * cgraphunit.c (symbol_table::compile): Remove call to
4008         materialize_all_clones.
4009         * tree-into-ssa.c: Include statistics.h.
4010         (update_ssa): Count number of times we do incremental/rewrite
4011         SSA update.
4013 2016-08-18  Richard Biener  <rguenther@suse.de>
4015         PR tree-optimization/77282
4016         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4017         When doing auto-parallelizing also prevent use of PHIs that
4018         carry dependences across loop backedges.
4020 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
4021             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4023         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
4025 2016-08-18  Richard Biener  <rguenther@suse.de>
4027         * ssa-iterators.h (ssa_vuse_operand): New inline.
4028         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
4029         (predicate_all_scalar_phis): Use remove_phi_node to remove
4030         phi nodes predicated.  Delay removing virtual PHIs.
4031         (predicate_mem_writes): Update virtual operands.
4032         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
4033         (tree_if_conversion): Do not rewrite virtual SSA form.
4034         * tree-phinodes.c (release_phi_node): Make static.
4035         * tree-phinodes.h (release_phi_node): Remove.
4037 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
4039         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
4040         codes that appear in bdesc_* arrays, instead include i386-builtin.def
4041         twice to define those.
4042         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
4043         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
4044         bdesc_multi_arg): Define by including i386-builtin.def the third time.
4045         * config/i386/i386-builtin.def: New file.
4047 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
4049         * input.c (get_source_range_for_char): Rename to...
4050         (selftest::get_source_range_for_char): ...this, and move within
4051         the #if CHECKING_P guard.
4052         (get_num_source_ranges_for_substring): Rename to...
4053         (selftest::get_num_source_ranges_for_substring): ...this, move
4054         within the #if CHECKING_P guard, and make static.
4055         (selftest::assert_num_substring_ranges): Initialize
4056         actual_num_ranges.
4058 2016-08-18  Alan Modra  <amodra@gmail.com>
4060         PR rtl-optimization/72771
4061         * reload.c (find_reloads): Don't assume that a subreg mem is OK
4062         when find_reloads_toplev returns address_reloaded==-1.
4063         (alternative_allows_const_pool_ref): Update comment.
4065 2015-08-17  Alan Hayward  <alan.hayward@arm.com>
4067         PR tree-optimization/71752
4068         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
4069         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
4071 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
4073         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
4074         instead of testing ECF_NORETURN bit in gimple_call_flags.
4075         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
4076         * predict.c (tree_bb_level_predictions): Likewise.
4077         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
4079         PR middle-end/77259
4080         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
4081         turning a call into __builtin_unreachable-like noreturn call, adjust
4082         gimple_call_set_fntype.
4083         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
4084         gimple_call_fntype has void return type.
4086 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
4088         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
4089         maybe_lookup_decl, to handle nested acc loop directives.
4091 2016-08-17  Richard Biener  <rguenther@suse.de>
4093         PR tree-optimization/76490
4094         * tree-vrp.c (update_value_range): Preserve overflow infinities
4095         when intersecting with ranges from get_range_info.
4096         (operand_less_p): Handle overflow infinities correctly.
4097         (value_range_constant_singleton): Use vrp_operand_equal_p
4098         to handle overflow max/min correctly.
4099         (vrp_valueize): Likewise.
4100         (union_ranges): Likewise.
4101         (intersect_ranges): Likewise.
4102         (vrp_visit_phi_node): Improve iteration limitation to only
4103         apply when we'll possibly re-visit the PHI via a changed argument
4104         on the backedge.
4106 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4108         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
4109         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
4110         rather than those that should not be built.
4112 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
4114         PR target/66488
4115         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
4117 2016-08-17  Richard Biener  <rguenther@suse.de>
4119         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
4120         (verify_vssa): New function verifying virtual SSA form.
4121         (verify_ssa): Call it.
4122         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
4123         Do not apply loop-closed SSA handling to virtuals.
4124         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
4125         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
4126         when rewriting their symbol.
4127         (prepare_def_site_for): Likewise.
4128         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
4129         operands of moved stmts.
4131 2016-08-17  Richard Biener  <rguenther@suse.de>
4133         PR tree-optimization/23855
4134         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
4135         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
4136         find guards to hoist.  Do not update SSA form but rewrite virtuals
4137         into loop closed SSA.
4138         (find_loop_guard): Adjust to skip already hoisted guards.  Do
4139         not mark virtuals for renaming or update SSA form.
4141 2016-08-17  Martin Liska  <mliska@suse.cz>
4143         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
4144         a LONG_LONG_TYPE_SIZE comparison.
4145         * gcov-io.h: Remove macro definitions.
4146         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
4147         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
4148         comparison.
4150 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
4152         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
4153         that builtins not mentioned in bdesc_* arrays come first, then
4154         the ones mentioned in bdesc_* arrays in the order they appear in
4155         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
4156         IX86_BUILTIN__BDESC_*_LAST enumerator.
4157         (bdesc_mpx): Fix up a comment typo.
4158         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
4159         __builtin_ia32_vpcomneu[bwdq] builtins.
4160         (BDESC_VERIFY, BDESC_VERIFYS): Define.
4161         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
4162         enum ix86_builtins ordering.
4163         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
4164         for direct bdesc_* array member access instead of searching all the
4165         arrays until an fcode match is found.
4167 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
4169         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
4170         pattern as define_insn_and_split.  Split insn before reload to
4171         ashl<mode>3_1.
4172         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
4173         <shift_insn><mode>3_1.
4174         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
4175         <rotate_insn><mode>3_1.
4177 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
4179         PR c/72857
4180         * input.c (get_source_range_for_substring): Rename to...
4181         (get_source_location_for_substring): ...this, adding param
4182         "caret_idx", and converting output param from source_range * to
4183         location_t *.
4184         (get_source_range_for_char): New function.
4185         (get_num_source_ranges_for_substring): Update comment to reflect
4186         above renaming.
4187         (assert_char_at_range): Update to use get_source_range_for_char
4188         rather than get_source_range_for_substring.
4189         (test_lexer_string_locations_concatenation_2): Likewise.
4190         * substring-locations.h (get_source_range_for_substring): Rename
4191         to...
4192         (get_source_location_for_substring): ...this, and adding param
4193         "caret_idx", and converting output param from source_range * to
4194         location_t *.
4196 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
4198         * input.c (class selftest::temp_source_file): Move to
4199         selftest.h.
4200         (selftest::temp_source_file::temp_source_file): Move to
4201         selftest.c.
4202         (selftest::temp_source_file::~temp_source_file): Likewise.
4203         * selftest.c (selftest::temp_source_file::temp_source_file): Move
4204         here from input.c.
4205         (selftest::temp_source_file::~temp_source_file): Likewise.
4206         * selftest.h (class selftest::temp_source_file): Move here from
4207         input.c
4209 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
4211         PR target/71910
4212         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
4213         inlining, add cgraph edge for the added __builtin_unreachable call.
4215         PR middle-end/67485
4216         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
4217         only cast it to SHWI for the final comparison.
4219 2016-08-16  Martin Liska  <mliska@suse.cz>
4221         PR gcov-profile/36412
4222         * doc/gcov.texi: Document --hash-filenames(-x).
4223         * gcov.c (print_usage): Add the option.
4224         (process_args): Process the option, sort options alphabetically.
4225         (md5sum_to_hex): New function.
4226         (make_gcov_file_name): Do the md5sum and append it to a
4227         filename.
4229 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
4231         PR tree-optimization/69848
4232         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
4233         and swtich operands to avoid additional NOT instruction.
4234         (vcond<v_cmp_mixed><mode>): Ditto.
4235         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
4237 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
4239         * doc/install.texi (*-*-solaris2*): Adjust latest change.
4241 2016-08-16  Richard Biener  <rguenther@suse.de>
4243         PR tree-optimization/76783
4244         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
4245         BB visited flags at start.
4247 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
4249         PR tree-optimization/72817
4250         PR tree-optimization/73450
4251         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
4252         multiple_of_p for adjusted IV.base.
4254 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
4256         PR target/72867
4257         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
4258         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
4259         for !flag_finite_math_only or flag_signed_zeros.
4260         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
4261         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
4262         depend on flag_finite_math_only.
4263         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
4264         New insn pattern.
4265         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
4266         (*ieee_smin<mode>3): Ditto.
4267         (*ieee_smax<mode>3): Ditto.
4268         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
4269         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
4270         flag_signed_zeros.
4271         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
4272         depend on flag_finite_math_only.
4273         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
4274         (*mmx_<code>v2sf3): Remove.
4275         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
4276         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
4277         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
4279 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
4281         PR rtl-optimization/73650
4282         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
4283         it is not a simple move.
4285 2016-08-15  Martin Liska  <mliska@suse.cz>
4287         PR driver/72765
4288         * gcc.c (do_spec_1): Call save_string with the right size.
4289         (save_string): Do an assert about string we copy.
4291 2016-08-15  Richard Biener  <rguenther@suse.de>
4293         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
4294         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
4295         TV_MACH_DEP.
4296         (pass_data_stv): Likewise.
4298 2016-08-15  Richard Biener  <rguenther@suse.de>
4300         PR tree-optimization/73434
4301         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
4302         TBAA info on the base when forwarding a non-invariant address.
4304 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
4306         * dwarf2out.c (struct checksum_attributes): Add
4307         at_string_length_bit_size and at_string_length_byte_size fields.
4308         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
4309         and DW_AT_string_length_byte_size.
4310         (die_checksum_ordered): Handle at_string_length_bit_size and
4311         at_string_length_byte_size.
4312         (gen_array_type_die): For dwarf_version >= 5 emit
4313         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
4314         (adjust_string_types): For dwarf_version >= 5 remove
4315         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
4316         (resolve_addr): Likewise.
4318         PR debug/71906
4319         * dwarf2out.c (string_types): New variable.
4320         (gen_array_type_die): Change early_dwarf handling of
4321         DW_AT_string_length, create DW_OP_call4 referencing the
4322         length var temporarily.  Handle parameters that are pointers
4323         to string length.
4324         (adjust_string_types): New function.
4325         (gen_subprogram_die): Temporarily set string_types to local var,
4326         call adjust_string_types if needed.
4327         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
4328         New functions.
4329         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
4331 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
4333         * doc/install.texi (*-*-solaris2*): Fix version number and document
4334         requirement on GNU make for building libjava with the Solaris linker.
4336 2016-08-15  Martin Liska  <mliska@suse.cz>
4337             Jakub Jelinek  <jakub@redhat.com>
4339         PR tree-optimization/72824
4340         * tree-loop-distribution.c (const_with_all_bytes_same)
4341         <case VECTOR_CST>: Fix a typo.
4343 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
4345         PR target/76342
4346         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
4347         Renamed from _mm512_undefined_si512.
4348         (_mm_undefined_si512): New definition.
4350 2016-08-13  Richard Biener  <rguenther@suse.de>
4352         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
4353         into PHIs and update the lattice for its def.
4355 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
4357         PR c/71512
4358         * ubsan.c (instrument_si_overflow): Pass true instead of false
4359         to gsi_replace.
4360         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
4361         of bbs.  Return TODO_cleanup_cfg if any returned true.
4363 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4365         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
4366         ISA 3.0 MTVSRDD instruction.
4367         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
4368         vecperm.
4370 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4372         PR tree-optimization/71083
4373         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
4374         bitfield access when possible.
4376 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
4378         PR middle-end/71654
4379         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
4380         sign-changing cast from a shorter unsigned type to a wider
4381         signed type.
4383 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
4385         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
4386         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
4387         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
4389 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4391         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4392         Correct costs for vec_construct.
4394 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
4396         PR tree-optimization/69848
4397         * tree-vectorizer.h (enum vect_def_type): New condition reduction
4398         type CONST_COND_REDUCTION.
4399         * tree-vect-loop.c (vectorizable_reduction): Support new condition
4400         reudction type CONST_COND_REDUCTION.
4402 2016-08-12  Richard Biener  <rguenther@suse.de>
4404         PR tree-optimization/57326
4405         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
4406         returning an SSA name.
4407         (phi_translate_1): When fully_constant_expression returns a NAME
4408         make sure we have a leader for it.
4410 2016-08-12  Martin Liska  <mliska@suse.cz>
4411             Adam Fineman  <afineman@afineman.com>
4413         * gcov.c (process_file): Create .gcov file when .gcda
4414         file is missing.
4416 2016-08-12  Marek Polacek  <polacek@redhat.com>
4418         PR c/7652
4419         * alias.c (find_base_value): Adjust fall through comment.
4420         * cfgexpand.c (expand_debug_expr): Likewise.
4421         * combine.c (find_split_point): Likewise.
4422         (expand_compound_operation): Likewise.  Add FALLTHRU.
4423         (make_compound_operation): Adjust fall through comment.
4424         (canon_reg_for_combine): Add FALLTHRU.
4425         (force_to_mode): Adjust fall through comment.
4426         (simplify_shift_const_1): Likewise.
4427         (simplify_comparison): Likewise.
4428         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
4429         FALLTHRU.
4430         * config/aarch64/predicates.md: Likewise.
4431         * config/i386/i386.c (function_arg_advance_32): Likewise.
4432         (ix86_gimplify_va_arg): Likewise.
4433         (print_reg): Likewise.
4434         (ix86_print_operand): Likewise.
4435         (ix86_build_const_vector): Likewise.
4436         (ix86_expand_branch): Likewise.
4437         (ix86_sched_init_global): Adjust fall through comment.
4438         (ix86_expand_args_builtin): Add FALLTHRU.
4439         (ix86_expand_builtin): Likewise.
4440         (ix86_expand_vector_init_one_var): Likewise.
4441         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
4442         (rs6000_adjust_cost): Likewise.
4443         (insn_must_be_first_in_group): Likewise.
4444         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
4445         * dbxout.c (dbxout_symbol): Adjust fall through comment.
4446         * df-scan.c (df_uses_record): Likewise.
4447         * dojump.c (do_jump): Add FALLTHRU.
4448         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
4449         comment.
4450         (resolve_args_picking_1): Adjust fall through comment.
4451         (loc_list_from_tree_1): Likewise.
4452         * expmed.c (make_tree): Likewise.
4453         * expr.c (expand_expr_real_2): Add FALLTHRU.
4454         (expand_expr_real_1): Likewise.  Adjust fall through comment.
4455         * fold-const.c (const_binop): Adjust fall through comment.
4456         (fold_truth_not_expr): Likewise.
4457         (fold_cond_expr_with_comparison): Add FALLTHRU.
4458         (fold_binary_loc): Likewise.
4459         (contains_label_1): Adjust fall through comment.
4460         (multiple_of_p): Likewise.
4461         * gcov-tool.c (process_args): Add FALLTHRU.
4462         * genattrtab.c (check_attr_test): Likewise.
4463         (write_test_expr): Likewise.
4464         * genconfig.c (walk_insn_part): Likewise.
4465         * genpreds.c (validate_exp): Adjust fall through comment.
4466         (needs_variable): Likewise.
4467         * gensupport.c (get_alternatives_number): Add FALLTHRU.
4468         (subst_dup): Likewise.
4469         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
4470         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
4471         (gimplify_scan_omp_clauses): Add FALLTHRU.
4472         (goa_stabilize_expr): Likewise.
4473         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
4474         through comment.
4475         * hsa-gen.c (get_address_from_value): Likewise.
4476         * ipa-icf.c (sem_function::hash_stmt): Likewise.
4477         * ira.c (ira_setup_alts): Add FALLTHRU.
4478         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
4479         comment.
4480         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
4481         * opts.c (common_handle_option): Likewise.
4482         * read-rtl.c (read_rtx_code): Likewise.
4483         * real.c (round_for_format): Likewise.
4484         * recog.c (asm_operand_ok): Likewise.
4485         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
4486         * reload1.c (set_label_offsets): Likewise.
4487         (eliminate_regs_1): Likewise.
4488         (reload_reg_reaches_end_p): Likewise.
4489         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
4490         (rtx_cost): Likewise.
4491         * sched-rgn.c (is_exception_free): Likewise.
4492         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
4493         * stor-layout.c (int_mode_for_mode): Likewise.
4494         * toplev.c (print_to_asm_out_file): Likewise.
4495         (print_to_stderr): Likewise.
4496         * tree-cfg.c (gimple_verify_flow_info): Likewise.
4497         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
4498         (chrec_fold_multiply): Likewise.
4499         (evolution_function_is_invariant_rec_p): Likewise.
4500         (for_each_scev_op): Likewise.
4501         * tree-data-ref.c (siv_subscript_p): Likewise.
4502         (get_references_in_stmt): Likewise.
4503         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
4504         (substitute_in_expr): Likewise.
4505         (type_cache_hasher::equal): Likewise.
4506         (walk_type_fields): Likewise.
4507         * var-tracking.c (adjust_mems): Add FALLTHRU.
4508         (set_dv_changed): Adjust fall through comment.
4509         * varasm.c (default_function_section): Add FALLTHRU.
4511 2016-08-12  Marek Polacek  <polacek@redhat.com>
4513         PR c/7652
4514         * tree-complex.c (expand_complex_division): Add missing break.
4516 2016-08-12  Richard Biener  <rguenther@suse.de>
4518         * passes.c (execute_todo): Do not push/pop TV_TODO.
4519         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
4520         (execute_one_pass): Likewise.
4521         * common.opt (ftime-report-details): New switch.
4522         * doc/invoke.texi (ftime-report-details): Document.
4523         * timevar.h (timer::print_row): Adjust signature.
4524         (timer::all_zero): New static helper.
4525         (timer::child_map_t): New typedef.
4526         (timer::time_var_def): Add children field.
4527         * timevar.c (timer::named_items::print): Adjust.
4528         (timer::~timer): Free timevar recorded children.
4529         (timer::pop_internal): When -ftime-report-details record
4530         time spent in sub-timevars.
4531         (timer::print_row): Adjust.
4532         (timer::print): Print sub-timevar stats, use all_zero.
4533         * timevar.def (TV_TODO): Remove.
4535 2016-08-12  Richard Biener  <rguenther@suse.de>
4537         PR tree-optimization/72851
4538         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
4539         worklists to use bitmaps indexed in execution order.
4540         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
4541         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
4542         (cfg_blocks): Make a bitmap.
4543         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
4544         New globals.
4545         (cfg_blocks_empty_p): Adjust.
4546         (cfg_blocks_add): Likewise.
4547         (cfg_blocks_get): Likewise.
4548         (add_ssa_edge): Likewise.
4549         (add_control_edge): Likewise.
4550         (simulate_stmt): Likewise.
4551         (process_ssa_edge_worklist): Likewise.
4552         (simulate_block): Likewise.
4553         (ssa_prop_init): Compute PRE order and stmt UIDs.
4554         (ssa_prop_fini): Adjust.
4555         (ssa_propagate): Adjust.
4557 2016-08-12  Richard Biener  <rguenther@suse.de>
4559         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
4560         the currently executable edges have fixed ranges.  Always
4561         go through update_value_range.
4563 2016-08-12  Alexandre Oliva  <aoliva@redhat.com>
4565         PR debug/63240
4566         * langhooks-def.h
4567         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
4568         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
4569         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
4570         (LANG_HOOKS_DECLS): Add it.
4571         * langhooks.h (struct lang_hooks_for_decls): Add
4572         function_decl_defaulted.  Const_tree-ify
4573         function_decl_explicit_p and function_decl_deleted_p.
4574         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
4575         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
4576         also at strict DWARF v5.
4578         PR debug/55641
4579         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
4580         TYPE_QUAL_CONST in reference-typed decls.
4582         PR debug/49366
4583         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
4584         in DW_OP_pieces, just enough to handle pointers to member
4585         functions.
4586         (gen_remaining_tmpl_value_param_die_attribute): Use a location
4587         expression on DWARFv5 if a constant value doesn't work.
4589 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
4591         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
4592         * selftest.c (selftest::test_assertions): New function.
4593         (selftest::selftest_c_tests): New function.
4594         * selftest.h (selftest::selftest_c_tests): New declaration.
4596 2016-08-11  Richard Biener  <rguenther@suse.de>
4597             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4599         PR rtl-optimization/72855
4600         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
4602 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4604         PR target/72863
4605         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
4606         (vsx_store_<mode>): Likewise.
4608 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
4610         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
4611         TImode CONST_WIDE_INT store.
4612         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
4614 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
4616         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
4617         mode if unaligned SSE load and store are optimal.
4619 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4621         PR tree-optimization/71083
4622         * tree-predcom.c (ref_at_iteration): Correctly align the
4623         reference type.
4625 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4627         * config/s390/s390-builtin-types.def: Add INT128 types.
4628         * config/s390/s390-builtins.def: Add INT128 variants for the add
4629         sub low-level builtins dealing with TImode.
4630         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
4631         via subreg when expanding a builtin.
4632         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
4633         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
4634         Fix comment.
4635         * config/s390/vecintrin.h: Adjust builtin names accordingly.
4636         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
4637         ("vec_addc<mode>", "vec_addc_u128"): Merge to
4638         "vacc<bhfgq>_<mode>".
4639         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
4640         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
4641         ("vec_subc<mode>", "vec_subc_u128"): Merge to
4642         "vscbi<bhfgq>_<mode>".
4643         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
4644         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
4646 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4648         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
4650 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
4652         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
4653         unused declaration.
4654         (vcond<v_cmp_mixed><mode>): Ditto.
4655         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
4657 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
4659         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
4660         variable explicitly, also assert on it before use.
4662 2016-08-11  Richard Biener  <rguenther@suse.de>
4664         PR tree-optimization/72772
4665         * cfgloopmanip.c (create_preheader): Use split_edge if there
4666         is a single loop entry, avoiding degenerate PHIs.
4668 2016-08-11  Richard Biener  <rguenther@suse.de>
4670         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
4671         unconditional TODO_cleanup_cfg.
4672         (pass_thread_jumps::execute): Initialize loops, perform a CFG
4673         cleanup only if we threaded a jump.
4675 2016-08-11  Alan Modra  <amodra@gmail.com>
4677         PR target/71680
4678         * lra-constraints.c (simplify_operand_subreg): Allow subreg
4679         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
4680         slow.  Emit two reloads for slow mem case, first loading in
4681         fast innermode, then converting to required mode.
4683 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4685         * config/rs6000/altivec.h (vec_extract_exp): New macro.
4686         (vec_extract_sig): New macro.
4687         (vec_insert_exp): New macro.
4688         (vec_test_data_class): New macro.
4689         (scalar_extract_exp): New macro.
4690         (scalar_extract_sig): New macro.
4691         (scalar_insert_exp): New macro.
4692         (scalar_test_data_class): New macro.
4693         (scalar_test_neg): New macro.
4694         (scalar_cmp_exp_gt): New macro.
4695         (scalar_cmp_exp_lt): New macro.
4696         (scalar_cmp_exp_eq): New macro.
4697         (scalar_cmp_exp_unordered): New macro.
4698         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
4699         to enforce constraint that operand is a 7-bit unsigned literal.
4700         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
4701         for power9 built-ins.
4702         (BU_P9V_VSX_2): Likewise.
4703         (BU_P9V_64BIT_VSX_2): Likewise.
4704         (VSEEDP): Add scalar extract exponent support.
4705         (VSEESP): Add scalar extract signature support.
4706         (VSTDCNDP): Add scalar test negative support.
4707         (VSTDCNSP): Likewise.
4708         (VSIEDP): Add scalar insert exponent support.
4709         (VSCEDPGT): Add scalar compare exponent greater than support.
4710         (VSCEDPLT): Add scalar compare exponent less than support.
4711         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
4712         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
4713         (VSTDCDP): Add scalar test data class support.
4714         (VSTDCSP): Likewise.
4715         (VSEEDP): Add overload support for scalar extract exponent
4716         operation.
4717         (VSESDP): Add overload support for scalar extract signature
4718         operation.
4719         (VSTDCN): Add overload support for scalar test negative
4720         operation.
4721         (VSTDCNDP): Add overload support for scalar test negative
4722         operation.
4723         (VSTDCNSP): Add overload support for scalar test negative
4724         operation.
4725         (VSIEDP): Add overload support for scalar insert exponent
4726         operation.
4727         (VSTDC): Add overload support for scalar test data class
4728         operation.
4729         (VSTDCDP): Add overload support for scalar test data class
4730         operation.
4731         (VSTDCSP): Add overload support for scalar test data class
4732         opreation.
4733         (VSCEDPGT): Add overload support for scalar compare exponent
4734         greater than operation.
4735         (VSCEDPLT): Add overload support for scalar compare exponent
4736         less than operation.
4737         (VSCEDPEQ): Add overload support for scalar compare exponent
4738         test-for-equality operation.
4739         (VSCEDPUO): Add overload support for scalar compare exponent
4740         test-for-unordered operation.
4741         (VEEDP): Add vector extract exponent support.
4742         (VEESP): Likewise.
4743         (VESDP): Add vector extract significand support.
4744         (VESSP): Likewise.
4745         (VIEDP): Add vector insert exponent support.
4746         (VIESP): Likewise.
4747         (VTDCDP): Add vector test data class support.
4748         (VTDCSP): Likewise.
4749         (VES): Add overload support for vector extract significand operation.
4750         (VESDP): Likewise.
4751         (VESSP): Likewise
4752         (VEE): Add overload support for vector extract exponent operation.
4753         (VEEDP): Likewise.
4754         (VEESP): Likewise.
4755         (VTDC): Add overload support for vector test data class operation.
4756         (VTDCDP): Likewise.
4757         (VTDCSP): Likewise.
4758         (VIE): Add overload support for vector insert exponent operation.
4759         (VIEDP): Likewise.
4760         (VIESP): Likewise.
4761         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4762         overloaded binary floating point functions.
4763         (altivec_resolve_overloaded_builtin): Improve error messages to
4764         distinguish between functions not supported in the current
4765         compiler configuration and functions that were invoked with an
4766         invalid parameter combination, and include the built-in function
4767         name in both error messages.
4768         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
4769         New prototype.
4770         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
4771         function.
4772         (rs6000_expand_binop_builtin): Add check to enforce that argument
4773         2 of the test data class operations is a 7-bit unsigned literal.
4774         (rs6000_invalid_builtin): Add code to issue an error message if a
4775         built-in function that requires the power9_vector and -m32
4776         command-line options is compiled without these options.
4777         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
4778         (UNSPEC_VSX_SXSIGDP): New value.
4779         (UNSPEC_VSX_SXSIGPDP): New value.
4780         (UNSPEC_VSX_SIEXPDP): New value.
4781         (UNSPEC_VSX_SCMPEXPDP): New value.
4782         (UNSPEC_VSX_STSTDC): New value.
4783         (UNSPEC_VSX_VXEXP): New value.
4784         (UNSPEC_VSX_VXSIG): New value.
4785         (UNSPEC_VSX_VIEXP): New value.
4786         (UNSPEC_VSX_VTSTDC): New value.
4787         (xsxexpdp): New insn for scalar extract exponent.
4788         (xsxsigdp): New insn for scalar extract significand.
4789         (xsiexpdp): New insn for scalar insert exponent.
4790         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
4791         (*xscmpexpdp): New insn for scalar compare exponents.
4792         (xststdc<Fvsx): New expansion for both single- and
4793         double-precision scalar test data class operations.
4794         (xststdcneg<Fvsx>): New expansion for both single- and
4795         double-precision scalar test for negative value operations.
4796         (*xststdc<Fvsx>): New insn for scalar test data class
4797         operation.
4798         (xvxexp<VSs>): New insn for single- and double-precision
4799         vector extract exponent operation.
4800         (xvxsig<VSs>): New insn for single- and double-precision
4801         vector extract significand operation.
4802         (xviexp<VSs>): New insn for single- and double-precision
4803         vector insert exponent operation.
4804         (xvtstdc<VSs>): New insn for single- and double-precision
4805         vector test data class operation.
4806         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4807         built-in functions to represent the Power9 binary floating-point
4808         support instructions.
4810 2016-08-10  bin cheng  <bin.cheng@arm.com>
4812         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
4814 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
4815             Renlin Li  <renlin.li@arm.com>
4816             Bin Cheng  <bin.cheng@arm.com>
4818         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
4819         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
4820         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
4821         (aarch64_vcond_internal<mode><mode>): Delete pattern.
4822         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
4823         (vcond<v_cmp_result><mode>): Ditto.
4824         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
4825         (vcondu<mode><mode>): Ditto.
4826         (vcond<v_cmp_mixed><mode>): New pattern.
4827         (vcondu<mode><v_cmp_mixed>): New pattern.
4828         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
4829         of aarch64_vcond_internal.
4831 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
4832             Renlin Li  <renlin.li@arm.com>
4833             Bin Cheng  <bin.cheng@arm.com>
4835         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
4836         (vec_cmp<mode><v_cmp_result>): New pattern.
4837         (vec_cmpu<mode><mode>): New pattern.
4838         (vcond_mask_<mode><v_cmp_result>): New pattern.
4840 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
4842         PR tree-optimization/71734
4843         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
4844         REF_LOOP, invoke ref_indep_loop_p_1.
4845         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
4846         to ref_indep_loop_p.
4847         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
4848         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
4849         is inside LOOP, do not cache dpendence value for loops with
4850         non-zero SAFELEN.
4851         (ref_indep_loop_p_2): Delete function.
4852         (can_sm_ref_p): Pass LOOP as additional argument to
4853         ref_indep_loop_p.
4855 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
4857         PR target/72853
4858         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
4859         being an offsettable address.
4861 2016-08-10  Martin Liska  <mliska@suse.cz>
4863         PR gcov-profile/58306
4864         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
4865         atomic variants of profile update functions.
4867 2016-08-10  Martin Liska  <mliska@suse.cz>
4869         Cherry picked (and modified) from google-4_7 branch
4870         2012-12-26  Rong Xu  <xur@google.com>
4871         * common.opt (fprofile-update): Add new flag.
4872         * coretypes.h: Define enum profile_update.
4873         * doc/invoke.texi: Document -fprofile-update.
4874         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
4875         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
4876         * tree-profile.c (gimple_init_edge_profiler): Generate
4877         also atomic profiler update.
4878         (gimple_gen_edge_profiler): Likewise.
4880 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
4882         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
4883         stack_usage_file to NULL after fclose calls.
4885 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4887         PR target/71873
4888         * reload.c (push_reload): Compute subreg_in_class for
4889         subregs of constants and plus expressions. Remove special
4890         handling of SYMBOL_REFs.
4892 2016-08-10  Alan Modra  <amodra@gmail.com>
4894         PR target/71680
4895         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
4896         SImode for TARGET_E500_DOUBLE when given SImode.
4898 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
4900         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
4901         unused variable __O.
4903 2016-08-09  Martin Liska  <mliska@suse.cz>
4905         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
4906         _gcov_reset to __gcov_reset.
4907         * doc/gcov-tool.texi: Fix typo.
4909 2016-08-09  Martin Liska  <mliska@suse.cz>
4911         * value-prof.c (gimple_divmod_values_to_profile): Do not
4912         instrument MOD histogram if a value is not a SSA name.
4914 2016-08-09  Martin Liska  <mliska@suse.cz>
4916         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
4917         values.
4919 2016-08-09  Renlin Li  <renlin.li@arm.com>
4921         PR middle-end/64971
4922         * calls.c (prepare_call_address): Convert funexp to Pmode when
4923         necessary.
4924         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
4925         (sibcall_value): Likewise.
4927 2016-08-09  Marek Polacek  <polacek@redhat.com>
4929         PR c/7652
4930         * cselib.c (cselib_expand_value_rtx_1): Add return.
4931         * gengtype.c (dbgprint_count_type_at): Likewise.
4932         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
4933         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
4935 2016-08-09  Martin Jambor  <mjambor@suse.cz>
4937         PR ipa/71981
4938         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
4939         if instance is a MEM_REF.
4941 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
4943         PR target/72843
4944         * config/i386/i386.md (*movtf_internal): Use
4945         lra_in_progress || reload_completed instead of !can_create_pseudo_p
4946         in the insn constraint.
4947         (*movxf_internal): Ditto.
4948         (*movdf_internal): Ditto.
4949         (*movsf_internal): Ditto.
4951 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
4953         PR tree-optimization/72772
4954         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
4955         for expanded base.
4957 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
4959         PR tree-optimization/72772
4960         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
4961         parameter STOP.
4962         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
4963         parameter STOP and update calls.  Move expand_simple_operations
4964         function call from here...
4965         (simplify_using_initial_conditions): ...to here.  Delete parameter
4966         STOP.
4967         (tree_simplify_using_condition): Delete parameter STOP.
4968         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
4969         simplify_using_initial_conditions.
4971 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
4973         PR c/65345
4974         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
4975         Use create_tmp_var_raw instead of create_tmp_var.
4977 2016-08-09  Richard Biener  <rguenther@suse.de>
4979         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
4980         Treat same SSA names related.
4982 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
4984         PR tree-optimization/72824
4985         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
4986         real_zerop is not negative.
4988 2016-08-09  Richard Biener  <rguenther@suse.de>
4990         PR tree-optimization/71802
4991         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
4992         all merge opportunities with the predecessor.
4994 2016-08-09  Richard Biener  <rguenther@suse.de>
4996         PR ipa/68273
4997         * ipa-prop.c (ipa_modify_formal_parameters): Build
4998         parameter types with natural alignment also for the
4999         over-aligned case.
5001 2016-08-08  Andi Kleen  <ak@linux.intel.com>
5003         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
5005 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
5007         PR c/64955
5008         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
5009         do-nothing langhook.
5010         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
5011         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
5012         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
5013         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
5015 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
5017         PR bootstrap/72844
5018         * input.c: Ensure that HAVE_ICONV is defined.
5020 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
5022         PR middle-end/72781
5023         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
5024         private vars for lastprivate and for linear iterator.
5026         PR middle-end/68762
5027         * omp-simd-clone.c: Include varasm.h.
5028         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
5029         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
5030         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
5031         update function name.
5033 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5035         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
5036         (avr_diagnose_devicespecs_error): Remove.
5037         (avr_devicespecs_file): Remove composing absolute path for specfile
5038         and its verbose info. Remove conditions to check specs-file,
5040 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
5042         PR rtl-optimization/72821
5043         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
5044         just return false for them.
5046 2016-08-08  Alan Modra  <amodra@gmail.com>
5048         PR target/72771
5049         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
5050         toc refs created during reload.  Update function comment.
5052 2016-08-08  Alan Modra  <amodra@gmail.com>
5054         PR target/72802
5055         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
5056         alternatives.  Put loads first, then stores, and reg/reg moves
5057         within same class later.  Delete attr length.
5059 2016-08-08  Alan Modra  <amodra@gmail.com>
5061         PR target/72802
5062         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
5063         (mem_operand_ds_form): New predicate.
5064         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
5065         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
5066         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
5067         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
5068         (extendsfdf2_fpr): Replace o constraint with wY.
5070 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
5072         * tree-ssa-threadbackward.c: Include tree-inline.h
5073         (profitable_jump_thread_path): Use estimate_num_insns to estimate
5074         size of copied block; for cold paths reduce duplication.
5075         (find_jump_threads_backwards): Remove redundant tests.
5076         (pass_thread_jumps::gate): Enable for -Os.
5078 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
5080         PR c/72816
5081         * stor-layout.c (layout_decl): Fix up formatting.
5082         (relayout_decl): Allow DECL to be FIELD_DECL.
5084 2016-08-07  Alan Modra  <amodra@gmail.com>
5086         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
5088 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
5090         * data-streamer-in.c (streamer_read_wide_int): New.
5091         (streamer_read_widest_int): Renamed function.
5092         * data-streamer-out.c (streamer_write_wide_int): New
5093         (streamer_write_widest_int): Renamed function.
5094         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
5095         data-stream-in.c.
5096         (input_cfg): Call renamed function.
5097         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
5098         data-stream-out.c.
5099         (output_cfg): Call renamed function.
5100         * data-streamer.h: Add declarations.
5102 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5104         * tree-ssa-ccp.c (extend_mask): New param sgn.
5105         Remove ORing with wi::mask.
5106         (get_default_value): Adjust call to extend_mask to pass sign.
5107         (evaluate_stmt): Likewise.
5109 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
5111         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
5112         INT64_MAX.
5114 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5116         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
5117         transform if operand's type is pointer to function or method.
5119 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
5121         PR tree-optimization/18046
5122         * tree-ssa-threadedge.c: Include cfganal.h.
5123         (simplify_control_statement_condition): If simplifying a
5124         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
5125         with the dominating ASSERT_EXPR before handing it off to VRP.
5126         Mention that a CASE_LABEL_EXPR may be returned.
5127         (thread_around_empty_blocks): Adjust to handle
5128         simplify_control_statement_condition() returning a
5129         CASE_LABEL_EXPR.
5130         (thread_through_normal_block): Likewise.
5131         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
5132         a switch statement by trying to determine which case label
5133         will be taken.
5135 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
5137         PR rtl-optimization/69847
5138         * lra-constraints.c (process_invariant_for_inheritance): Save
5139         pattern instead of src.
5140         (remove_inheritance_pseudos): Use the pattern.  Add assert.
5142 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
5144         * input.c (string_concat::string_concat): New constructor.
5145         (string_concat_db::string_concat_db): New constructor.
5146         (string_concat_db::record_string_concatenation): New method.
5147         (string_concat_db::get_string_concatenation): New method.
5148         (string_concat_db::get_key_loc): New method.
5149         (class auto_cpp_string_vec): New class.
5150         (get_substring_ranges_for_loc): New function.
5151         (get_source_range_for_substring): New function.
5152         (get_num_source_ranges_for_substring): New function.
5153         (class selftest::lexer_test_options): New class.
5154         (struct selftest::lexer_test): New struct.
5155         (class selftest::ebcdic_execution_charset): New class.
5156         (selftest::ebcdic_execution_charset::s_singleton): New variable.
5157         (selftest::lexer_test::lexer_test): New constructor.
5158         (selftest::lexer_test::~lexer_test): New destructor.
5159         (selftest::lexer_test::get_token): New method.
5160         (selftest::assert_char_at_range): New function.
5161         (ASSERT_CHAR_AT_RANGE): New macro.
5162         (selftest::assert_num_substring_ranges): New function.
5163         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
5164         (selftest::assert_has_no_substring_ranges): New function.
5165         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
5166         (selftest::test_lexer_string_locations_simple): New function.
5167         (selftest::test_lexer_string_locations_ebcdic): New function.
5168         (selftest::test_lexer_string_locations_hex): New function.
5169         (selftest::test_lexer_string_locations_oct): New function.
5170         (selftest::test_lexer_string_locations_letter_escape_1): New function.
5171         (selftest::test_lexer_string_locations_letter_escape_2): New function.
5172         (selftest::test_lexer_string_locations_ucn4): New function.
5173         (selftest::test_lexer_string_locations_ucn8): New function.
5174         (selftest::uint32_from_big_endian): New function.
5175         (selftest::test_lexer_string_locations_wide_string): New function.
5176         (selftest::uint16_from_big_endian): New function.
5177         (selftest::test_lexer_string_locations_string16): New function.
5178         (selftest::test_lexer_string_locations_string32): New function.
5179         (selftest::test_lexer_string_locations_u8): New function.
5180         (selftest::test_lexer_string_locations_utf8_source): New function.
5181         (selftest::test_lexer_string_locations_concatenation_1): New
5182         function.
5183         (selftest::test_lexer_string_locations_concatenation_2): New
5184         function.
5185         (selftest::test_lexer_string_locations_concatenation_3): New
5186         function.
5187         (selftest::test_lexer_string_locations_macro): New function.
5188         (selftest::test_lexer_string_locations_stringified_macro_argument):
5189         New function.
5190         (selftest::test_lexer_string_locations_non_string): New function.
5191         (selftest::test_lexer_string_locations_long_line): New function.
5192         (selftest::test_lexer_char_constants): New function.
5193         (selftest::input_c_tests): Call the new test functions once per
5194         case within the line_table test matrix.
5195         * input.h (struct string_concat): New struct.
5196         (struct location_hash): New struct.
5197         (class string_concat_db): New class.
5198         * substring-locations.h: New header.
5200 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
5202         PR tree-optimization/72810
5203         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
5204         the type of the case labels when truncating.
5206 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
5208         PR Target/72819
5209         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
5210         (aarch64_fp16_ptr_type_node): Likewise.
5211         * config/aarch64/aarch64-simd-builtins.c
5212         (aarch64_fp16_ptr_type_node): Define.
5213         (aarch64_init_fp16_types): New, refactored out of...
5214         (aarch64_init_builtins): ...here, update to call
5215         aarch64_init_fp16_types.
5216         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
5217         HFmode.
5218         (aapcs_vfp_sub_candidate): Likewise.
5220 2016-08-05  Martin Liska  <mliska@suse.cz>
5221             Joshua Cranmer  <Pidgeot18@gmail.com>
5223         * gcov.c (line_t::has_block): New function.
5224         (enum loop_type): New enum.
5225         (handle_cycle): New function.
5226         (unblock): Likewise.
5227         (circuit): Likewise.
5228         (get_cycles_count): Likewise.
5229         (accumulate_line_counts): Use new loop detection algorithm.
5231 2016-08-05  Martin Liska  <mliska@suse.cz>
5233         * gcov.c (output_intermediate_file): Rename
5234         function_info::line_next to next_file_fn.
5235         (process_file): Likewise.
5236         (read_graph_file): Likewise.
5237         (accumulate_line_counts): Likewise.
5238         (output_lines): Likewise.
5240 2016-08-05  Richard Biener  <rguenther@suse.de>
5242         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
5243         restriction on threading to a loop header.
5245 2016-08-05  Richard Biener  <rguenther@suse.de>
5247         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
5248         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
5249         adjust loop info accordingly.
5251 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
5253         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
5254         before folding call to __builtin_constant_p with parameters to false.
5256 2016-08-05  Alan Modra  <amodra@gmail.com>
5258         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
5259         code accidentally committed 2016-05-02 providing class when given
5260         NO_REGS.
5262 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
5264         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
5265         the case label ranges that partially overlap with OP's value
5266         range.
5268 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
5270         PR target/72805
5271         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
5272         Cast builtin function result to __mmask16 instead of __mmask8.
5273         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
5274         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
5275         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
5277 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
5279         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
5280         (ASSERT_TRUE_AT): New macro.
5281         (ASSERT_FALSE): Reimplement in terms of...
5282         (ASSERT_FALSE_AT): New macro.
5283         (ASSERT_STREQ_AT): Fix typo in comment.
5285 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
5287         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
5288         labels are exhaustive, designate the label with the widest
5289         range to be the default label.
5291 2016-08-04  Andrew Pinski  <apinski@cavium.com>
5293         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
5294         (thunderx_tunings): Use thunderx_vector_cost instead of
5295         generic_vector_cost.
5297 2016-08-04  Martin Liska  <mliska@suse.cz>
5299         * gcov.c (main): Fix GNU coding style.
5300         (output_intermediate_file): Likewise.
5301         (process_file): Likewise.
5302         (generate_results): Likewise.
5303         (release_structures): Likewise.
5304         (create_file_names): Likewise.
5305         (find_source): Likewise.
5306         (read_graph_file): Likewise.
5307         (find_exception_blocks): Likewise.
5308         (canonicalize_name): Likewise.
5309         (make_gcov_file_name): Likewise.
5310         (mangle_name): Likewise.
5311         (accumulate_line_counts): Likewise.
5312         (output_branch_count): Likewise.
5313         (read_line): Likewise.
5315 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5317         PR rtl-optimization/71779
5318         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
5319         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
5320         or if it was truncated.
5322         PR rtl-optimization/70903
5323         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
5325 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
5327         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
5328         accessing SSA_NAME_PTR_INFO.
5330 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
5332         PR 70677
5333         * common/config/avr/avr-common.c (avr_option_optimization_table)
5334         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
5336 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
5338         PR 55181
5339         * config/avr/avr.md: New pattern to work around do_store_flag
5340         generating shift instructions for bit extractions.
5342 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
5344         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
5345         BITMAP_ALLOC.
5346         (add_equivalence): Likewise.
5347         (get_value_range): Allocate value range with vrp_value_range_pool.
5348         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
5349         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
5351 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
5353         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
5354         the default for the rs6000 port.
5356 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5358         PR middle-end/71876
5359         * calls.c (special_function_p): Remove special handling of
5360         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
5361         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
5362         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
5364 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
5366         PR middle-end/72778
5367         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
5368         Don't stop on regular insns.
5370 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
5372         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
5373         size to DImode boundary.
5374         (nvptx_propagate): Likewise.
5376 2016-08-03  Alan Modra  <amodra@gmail.com>
5378         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
5379         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
5380         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
5381         from -mefficient-unaligned-vector.  Note that this affects fp too.
5383 2016-08-03  Alan Modra  <amodra@gmail.com>
5385         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
5386         cost more.
5388 2016-08-03  Alan Modra  <amodra@gmail.com>
5390         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
5391         to a reg.  Localize vars.
5393 2016-08-03  Alan Modra  <amodra@gmail.com>
5395         * config/rs6000/rs6000.opt: Remove negatives from help strings
5396         and comments.
5398 2016-08-03  Alan Modra  <amodra@gmail.com>
5400         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
5401         Delete duplicated code.
5403 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
5405         PR middle-end/72778
5406         * lra-spills.c (regno_in_use_p): New.
5407         (lra_final_code_change): Use it.
5409 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
5411         PR rtl-optimization/69847
5412         * lra-int.h (struct lra-reg): Use restore_rtx instead of
5413         restore_regno.
5414         (lra_rtx_hash): New.
5415         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
5416         of restore_regno.
5417         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
5418         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
5419         * lra-spills.c (lra_final_code_change): Don't delete insn when the
5420         next insn is USE with the same reg as the current insn source.
5421         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
5422         of restore_regno.
5423         (lra_constraints_init): Call initiate_invariants.
5424         (lra_constraints_finish): Call finish_invariants.
5425         (struct invariant, invariant_t, invariant_ptr_t): New.
5426         (const_invariant_ptr_t, invariants, invariants_pool): New.
5427         (invariant_table, invariant_hash, invariant_eq_p): New.
5428         (insert_invariant, initiate_invariants, finish_invariants): New.
5429         (clear_invariants, invalid_invariant_regs): New.
5430         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
5431         instead of restore_regno.
5432         (invariant_p, process_invariant_for_inheritance): New.
5433         (inherit_in_ebb): Implement invariant inheritance.
5434         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
5435         (remove_inheritance_pseudos): Implement undoing invariant
5436         inheritance.
5437         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
5438         instead of restore_regno.
5439         * lra-assigns.c (regno_live_length): New.
5440         (reload_pseudo_compare_func): Use regno_live_length.
5441         (assign_by_spills): Use restore_rtx instead of restore_regno.
5442         (lra_assign): Ditto.  Initiate regno_live_length.
5444 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
5446         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
5447         __builtin_aarch64_fmindf.
5449 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
5451         PR tree-optimization/34114
5452         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
5453         information for more control IVs.
5455 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
5457         PR tree-optimization/34114
5458         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
5459         PLUS_EXPR case.  Handle SSA_NAME case.
5461 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
5463         * config/aarch64/aarch64-simd-builtins.def
5464         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
5465         (__builtin_aarch64_fmaxdf): Likewise.
5466         (__builtin_aarch64_smin_nandf): Likewise.
5467         (__builtin_aarch64_smax_nandf): Likewise.
5468         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
5469         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
5470         (<fmaxmin><mode>3): ...this.
5471         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
5472         (vminnm_f64): Likewise.
5473         (vmin_f64): Likewise.
5474         (vmax_f64): Likewise.
5475         * config/aarch64/iterators.md (FMAXMIN): Merge with...
5476         (FMAXMIN_UNS): ...this.
5477         (fmaxmin): Merged with
5478         (fmaxmin_op): ...this...
5479         (maxmin_uns_op): ...in to this.
5481 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
5483         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5484         Add support for vec_extract on vector float, vector int, vector
5485         short, and vector char vector types.
5486         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5487         vector float, vector int, vector short, and vector char
5488         optimizations on 64-bit ISA 2.07 systems for both constant and
5489         variable element numbers.
5490         (rs6000_split_vec_extract_var): Likewise.
5491         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
5492         Altivec registers on ISA 2.07 and above.
5493         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
5494         which never was matched due to the split occuring before register
5495         allocation (and the code would not have worked on little endian
5496         systems if it did match).  Allow extracts to go to the Altivec
5497         registers if ISA 2.07 (power8).  Change from using "" around the
5498         C++ code to using {}'s.
5499         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
5500         vec_extracts when the vector is in memory.
5501         (vsx_extract_v4sf_var): New insn to optimize vector float
5502         vec_extracts when the element number is variable on 64-bit ISA
5503         2.07 systems.
5504         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
5505         for 64-bit ISA 2.07 as well as ISA 3.0.
5506         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
5507         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
5508         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
5509         optimize vector int, vector short, and vector char vec_extracts
5510         when the vector is in memory.
5511         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
5512         optimize vector int, vector short, and vector char vec_extracts
5513         when the element number is variable.
5515 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
5517         PR target/71948
5518         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
5519         does not overlap with other symbol flags.
5521 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
5523         * config/aarch64/aarch64.h (aarch64_frame):
5524         Remove padding0 and hardfp_offset.  Add locals_offset,
5525         initial_adjust, callee_adjust, callee_offset and final_adjust.
5526         * config/aarch64/aarch64.c (aarch64_layout_frame):
5527         Remove unused padding0 and hardfp_offset initializations.
5528         Choose frame layout and set frame variables accordingly.
5529         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
5530         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
5531         (aarch64_pop_regs): Likewise.
5532         (aarch64_expand_prologue): Remove all decision code, just emit
5533         prolog according to frame variables.
5534         (aarch64_expand_epilogue): Remove all decision code, just emit
5535         epilog according to frame variables.
5536         (aarch64_initial_elimination_offset): Use offset to local/arg area.
5538 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5540         PR target/72748
5541         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
5542         fix_debug_reg_uses after changing source register mode to
5543         V1TImode if source register is undefined.
5545 2015-08-01  Alan Hayward  <alan.hayward@arm.com>
5547         PR tree-optimization/71818
5548         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
5549         with non invariant evolutions
5551 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
5553         PR target/72767
5554         * config/avr/avr.md (length) [branch]: Correct insn length
5555         attribute for forward branches.
5557 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
5559         * doc/extend.texi (AVR Built-in Functions): Document
5560         __builtin_avr_nops.
5561         * config/avr/builtins.def (NOPS): New.
5562         * config/avr/avr.c (avr_expand_nops): New static function.
5563         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
5565 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5567         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
5568         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
5569         addresses.
5571 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
5573         * config/aarch64/aarch64.c (vulcan_tunings): Update
5574         vulcan L1 cache_line_size.
5576 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
5578         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
5579         function that takes a vector memory address, a hard register, an
5580         element number and a temporary base register, and recreates an
5581         address that points to the appropriate element within the vector.
5582         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
5583         (rs6000_split_vec_extract_var): Add support for the target of a
5584         vec_extract with variable element number being a scalar memory
5585         location.
5586         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
5587         swappable.
5588         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
5589         vsx_extract_<mode>_load insn with a new insn that optimizes
5590         storing either element to a memory location, using scratch
5591         registers to pick apart the vector and reconstruct the address.
5592         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
5593         (vsx_extract_<mode>_store): Rework alternatives to more correctly
5594         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
5595         store instruction.
5596         (vsx_extract_<mode>_var): Add support for extracting a variable
5597         element number from memory.
5599 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
5601         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
5602         when testing for compares against constants of the form 0xabab.
5604 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
5606         PR tree-optimization/57558
5607         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
5608         function.
5609         (vect_loop_versioning): Support versioning with niter assumptions.
5610         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
5611         (vect_get_loop_niters): New parameter.  Reimplement to support
5612         assumptions in loop niter info.
5613         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
5614         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
5615         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
5616         Support loop versioning for niters.
5617         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
5618         (vect_free_loop_info_assumptions): New function.
5619         (vectorize_loops): Free loop niter info for loops with flag
5620         LOOP_F_ASSUMPTIONS set if vectorization failed.
5621         * tree-vectorizer.h (struct _loop_vec_info): New field
5622         num_iters_assumptions.
5623         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
5624         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
5625         (LOOP_REQUIRES_VERSIONING): New macro.
5626         (vect_free_loop_info_assumptions): New decl.
5628 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
5630         * cfgloop.h (struct loop): New field constraints.
5631         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
5632         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
5633         functions.
5634         * cfgloop.c (alloc_loop): Initialize new field.
5635         * cfgloopmanip.c (copy_loop_info): Copy constraints.
5636         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
5637         Adjust niter analysis wrto loop constraints.
5638         * doc/loop.texi (@node Number of iterations): Add description for loop
5639         constraints.
5641 2016-07-29  Marek Polacek  <polacek@redhat.com>
5643         PR c/7652
5644         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
5645         (ix86_expand_round_builtin): Likewise.
5647 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
5648             Georg-Johann Lay  <avr@gjlay.de>
5650         PR rtl-optimization/71976
5651         * combine.c (get_last_value): Return 0 if the argument for which
5652         the function is called has a wider mode than the recorded value.
5654 2016-07-29  Marek Polacek  <polacek@redhat.com>
5656         PR c/7652
5657         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
5658         (altivec_expand_st_builtin): Likewise.
5660 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
5662         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
5663         introduced in r238381.
5665 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
5667         PR middle-end/68217
5668         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
5669         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
5671 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
5673         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
5674         New declaration.
5675         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5676         Add support for vec_extract of vector double or vector long having
5677         a variable element number on 64-bit ISA 2.07 systems or newer.
5678         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
5679         Likewise.
5680         (rs6000_split_vec_extract_var): New function to split a
5681         vec_extract built-in function with variable element number.
5682         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
5683         swappable.
5684         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
5685         (UNSPEC_VSX_EXTRACT): Likewise.
5686         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
5687         direct move instructions to be generated on 64-bit ISA 2.07
5688         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
5689         instruction.
5690         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
5691         arguments for vec_extract variable element.
5692         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
5693         vec_extract with variable element on V2DFmode and V2DImode
5694         vectors.
5695         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
5696         -mupper-regs-df requirement, since it isn't needed.
5697         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
5698         do direct moves on 64-bit systems, which allows optimization of
5699         vec_extract on 64-bit ISA 2.07 systems and newer.
5701 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
5702 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
5704          * config/aarch64/aarch64.md
5705         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
5706         statement and type.
5707         (<optab>qihi2_aarch64): Likewise, and split into two.
5708         (extendqihi2_aarch64): New.
5709         (zero_extendqihi2_aarch64): New.
5710         * config/aarch64/iterators.md (ldrxt): Remove.
5711         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
5712         uxtb/uxth.
5714 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
5716         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
5718 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
5720         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
5721         (aarch64_push_reg): New function to push 1 or 2 registers.
5722         (aarch64_pop_reg): New function to pop 1 or 2 registers.
5723         (aarch64_expand_prologue): Use aarch64_push_regs.
5724         (aarch64_expand_epilogue): Use aarch64_pop_regs.
5726 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
5728         PR tree-optimization/71734
5729         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
5730         attribute instead of REF_LOOP and use it.
5731         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
5732         set it for Loops having non-zero safelen attribute.
5733         (ref_indep_loop_p): Pass zero as initial value for safelen.
5735 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
5737         PR middle-end/72657
5738         PR target/72683
5739         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
5740         call using chkp_gimple_call_builtin_p.
5741         (chkp_copy_bounds_for_assign): Likewise.
5743 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5745         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
5746         * config/arm/arm-protos.h (struct tune_params): Likewise.
5747         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
5748         (cortex_a9_sched_adjust_cost): Likewise.
5749         (fa726te_sched_adjust_cost): Likewise.
5750         (arm_adjust_cost): Likewise.
5751         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
5752         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
5753         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
5754         * config/i386/i386.c (ix86_adjust_cost): Likewise.
5755         * config/ia64/ia64.c: Likewise.
5756         * config/m68k/m68k.c: Likewise.
5757         * config/mep/mep.c (mep_adjust_cost): Likewise.
5758         * config/microblaze/microblaze.c (microblaze_adjust_cost):
5759         * Likewise.
5760         * config/mips/mips.c (mips_adjust_cost): Likewise.
5761         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
5762         * Likewise.
5763         * config/pa/pa.c (pa_adjust_cost): Likewise.
5764         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
5765         (rs6000_debug_adjust_cost): Likewise.
5766         * config/sh/sh.c (sh_adjust_cost): Likewise.
5767         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
5768         (hypersparc_adjust_cost): Likewise.
5769         (sparc_adjust_cost): Likewise.
5770         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
5771         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
5772         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
5773         * Likewise.
5774         * config/visium/visium.c (visium_adjust_cost): Likewise.
5775         * doc/tm.texi: Regenerate.
5776         * haifa-sched.c (dep_cost_1): Adjust.
5777         * target.def: Merge adjust_cost and adjust_cost_2.
5779 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5781         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
5783 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5785         * store-motion.c (struct st_expr): Make pattern_regs a vector.
5786         (extract_mentioned_regs): Append to a vector instead of
5787         returning a rtx_expr_list.
5788         (st_expr_entry): Adjust.
5789         (free_st_expr_entry): Likewise.
5790         (store_ops_ok): Likewise.
5791         (store_killed_in_insn): Likewise.
5792         (find_moveable_store): Likewise.
5794 2016-07-28  Martin Liska  <mliska@suse.cz>
5796         PR gcov-profile/68025
5797         * tree-profile.c (tree_profiling): Respect
5798         no_profile_instrument_function attribute.
5799         * doc/extend.texi: Document no_profile_instrument_function
5800         attribute.
5802 2016-07-28  Martin Liska  <mliska@suse.cz>
5804         PR rtl-optimization/70944
5805         * combine.c (make_compound_operation):
5806         Do not allow make_compound_operation for vector mode
5808 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
5810         PR middle-end/71994
5811         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
5812          before calling get_ops.
5814 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5816         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
5817         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
5818         (BITS_PER_UNIT_LOG): Remove.
5819         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
5820         * expr.c (expand_assignment): Likewise.
5821         * stor-layout.c (initialize_sizetypes): Likewise.
5823 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
5825         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
5826         signature of rs6000_expand_vector_extract so that the element
5827         number is a RTX instead of a constant integer.
5828         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
5829         Likewise.
5830         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
5831         (altivec_expand_vec_ext_builtin): Likewise.
5832         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
5833         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
5834         MFVSRLD instruction.
5836 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
5838         * input.c (get_pure_location): Move here from tree.c.
5839         (make_location): Likewise.  Add header comment.
5840         (selftest::test_accessing_ordinary_linemaps): Verify
5841         pure_location_p, make_location, get_location_from_adhoc_loc and
5842         get_range_from_loc.
5843         * input.h (get_pure_location): Move declaration here from tree.h.
5844         (get_finish): Likewise for inline function.
5845         (make_location): Likewise for declaration.
5846         * tree.c (get_pure_location): Move to input.c.
5847         (make_location): Likewise.
5848         * tree.h (get_pure_location): Move declaration to tree.h.
5849         (get_finish): Likewise for inline function.
5850         (make_location): Likewise for declaration.
5852 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5854         PR middle-end/71078
5855         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
5857 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
5859         * system.h (STATIC_ASSERT): Use static_assert if building
5860         with C++11 onwards.
5862 2016-07-27  Richard Biener  <rguenther@suse.de>
5864         PR tree-optimization/72517
5865         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
5866         Revert change to not compute read-read dependences.
5868 2016-07-27  Richard Biener  <rguenther@suse.de>
5870         * predict.c (set_even_probabilities): Make nedges unsigned.
5872 2016-07-27  Martin Liska  <mliska@suse.cz>
5874         * predict.c (set_even_probabilities): Handle unlikely edges.
5875         (combine_predictions_for_bb): Likewise.
5877 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
5879         PR target/71869
5880         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
5881         __float128 support when we don't have hardware support, so that
5882         the IEEE built-in functions like isgreater, first call __unordkf3
5883         to make sure neither operand is a NaN, and if both operands are
5884         ordered, do the normal comparison.
5886 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
5888         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
5889         name.
5890         (extract_code_and_val_from_cond_with_ops): Verify that name is
5891         either cond_op0 or cond_op1.
5893 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
5895         PR tree-optimization/18046
5896         * genmodes.c (emit_mode_size_inline): Emit an assert that
5897         verifies that mode is a valid array index.
5898         (emit_mode_nuinits_inline): Likewise.
5899         (emit_mode_inner_inline): Likewise.
5900         (emit_mode_unit_size_inline): Likewise.
5901         (emit_mode_unit_precision_inline): Likewise.
5902         * tree-vrp.c: Include params.h.
5903         (find_switch_asserts): Register edge assertions for the default
5904         label which correspond to the anti-ranges of each case label.
5905         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
5906         * doc/invoke.texi: Document it.
5908 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5910         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
5911         and unnecessary call to gimple_bb.
5913 2016-07-26  Richard Biener  <rguenther@suse.de>
5915         PR rtl-optimization/71984
5916         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
5917         for VOIDmode.
5919 2016-07-26  Richard Biener  <rguenther@suse.de>
5921         PR middle-end/72517
5922         * expmed.c (extract_bit_field_1): Constrain the vector mode
5923         with element size matching the extraction mode size when
5924         choosing a better vector mode to do the extraction from.
5926 2016-07-26  Richard Biener  <rguenther@suse.de>
5927             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5929         PR middle-end/70920
5930         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
5931         pattern.
5933 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5935         * tree-ssa-structalias.c (struct scc_info): Change types of
5936         members to auto_sbitmap and auto_vec.
5937         (scc_info::scc_info): New constructor.
5938         (scc_info::~scc_info): New destructor.
5939         (init_scc_info): Remove.
5940         (free_scc_info): Remove.
5941         (find_indirect_cycles): Adjust.
5942         (perform_var_substitution): Likewise.
5943         (free_var_substitution_info): Likewise.
5945 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5947         * tree-outof-ssa.c (struct elim_graph): Change type of members
5948         to auto_vec and auto_sbitmap.
5949         (elim_graph::elim_graph): New constructor.
5950         (delete_elim_graph): Remove.
5951         (expand_phi_nodes): Adjust.
5953 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5955         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
5956         (new_elim_graph): Adjust.
5957         (clear_elim_graph): Likewise.
5958         (delete_elim_graph): Likewise.
5959         (elim_graph_size): Likewise.
5960         (elim_graph_add_node): Likewise.
5961         (elim_graph_add_edge): Likewise.
5962         (elim_graph_remove_succ_edge): Likewise.
5963         (eliminate_name): Likewise.
5964         (eliminate_build): Likewise.
5965         (elim_forward): Likewise.
5966         (elim_unvisited_predecessor): Likewise.
5967         (elim_backward): Likewise.
5968         (elim_create): Likewise.
5969         (eliminate_phi): Likewise.
5970         (expand_phi_nodes): Likewise.
5972 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5974         * bt-load.c (compute_out): Use auto_sbitmap class.
5975         (link_btr_uses): Likewise.
5976         * cfganal.c (mark_dfs_back_edges): Likewise.
5977         (post_order_compute): Likewise.
5978         (inverted_post_order_compute): Likewise.
5979         (pre_and_rev_post_order_compute_fn): Likewise.
5980         (single_pred_before_succ_order): Likewise.
5981         * cfgexpand.c (pass_expand::execute): Likewise.
5982         * cfgloop.c (verify_loop_structure): Likewise.
5983         * cfgloopmanip.c (fix_bb_placements): Likewise.
5984         (remove_path): Likewise.
5985         (update_dominators_in_loop): Likewise.
5986         * cfgrtl.c (break_superblocks): Likewise.
5987         * ddg.c (check_sccs): Likewise.
5988         (create_ddg_all_sccs): Likewise.
5989         * df-core.c (df_worklist_dataflow): Likewise.
5990         * dse.c (dse_step3): Likewise.
5991         * except.c (eh_region_outermost): Likewise.
5992         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5993         * gcse.c (prune_expressions): Likewise.
5994         (prune_insertions_deletions): Likewise.
5995         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
5996         * graph.c (draw_cfg_nodes_no_loops): Likewise.
5997         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
5998         * lcm.c (compute_earliest): Likewise.
5999         (compute_farthest): Likewise.
6000         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
6001         (unroll_loop_runtime_iterations): Likewise.
6002         (unroll_loop_stupid): Likewise.
6003         * lower-subreg.c (decompose_multiword_subregs): Likewise.
6004         * lra-lives.c: Likewise.
6005         * lra.c (lra): Likewise.
6006         * modulo-sched.c (schedule_reg_moves): Likewise.
6007         (optimize_sc): Likewise.
6008         (get_sched_window): Likewise.
6009         (sms_schedule_by_order): Likewise.
6010         (check_nodes_order): Likewise.
6011         (order_nodes_of_sccs): Likewise.
6012         (order_nodes_in_scc): Likewise.
6013         * recog.c (split_all_insns): Likewise.
6014         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
6015         * reload1.c (reload): Likewise.
6016         * sched-rgn.c (haifa_find_rgns): Likewise.
6017         (split_edges): Likewise.
6018         (compute_trg_info): Likewise.
6019         * sel-sched.c (init_seqno): Likewise.
6020         * store-motion.c (remove_reachable_equiv_notes): Likewise.
6021         * tree-into-ssa.c (update_ssa): Likewise.
6022         * tree-ssa-live.c (live_worklist): Likewise.
6023         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
6024         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
6025         * Likewise.
6026         (try_peel_loop): Likewise.
6027         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
6028         * Likewise.
6029         * tree-ssa-pre.c (compute_antic): Likewise.
6030         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
6031         * tree-stdarg.c (reachable_at_most_once): Likewise.
6032         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
6033         * var-tracking.c (vt_find_locations): Likewise.
6035 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6037         * sbitmap.h (auto_sbitmap): New class.
6039 2016-07-26  Alan Modra  <amodra@gmail.com>
6041         PR target/72103
6042         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
6043         sri->t_icode.
6045 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
6047         * input.c (selftest::temp_source_file::temp_source_file): Fix
6048         missing "%s" in fprintf.
6050 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
6052         PR middle-end/71732
6053         * cselib.c (cselib_process_insn): Invalidate argument slots for
6054         const/pure calls.
6056 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6058         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
6059         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
6060         vmulxh_lane_f16, vmulxh_laneq_f16): New.
6062 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6064         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6065         * config/aarch64/aarch64.md (fma, fnma): Support HF.
6066         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
6068 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6070         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6071         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
6072         New.
6073         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
6074         (add<mode>3): Likewise.
6075         (sub<mode>3): Likewise.
6076         (mul<mode>3): Likewise.
6077         (div<mode>3): Likewise.
6078         (*div<mode>3): Likewise.
6079         (<fmaxmin><mode>3): Extend to HF.
6080         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
6081         (fabd<mode>3): Likewise.
6082         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
6083         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
6084         (aarch64_fmulx<mode>): Likewise.
6085         (aarch64_fac<optab><mode>): Likewise.
6086         (aarch64_frecps<mode>): Likewise.
6087         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
6088         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
6089         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
6090         (VSDQ_HSDI): Support HI.
6091         (fcvt_target, FCVT_TARGET): Likewise.
6092         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
6093         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
6094         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
6095         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
6096         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
6097         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
6098         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
6099         vrsqrtsh_f16): New.
6101 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6103         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
6104         * config/aarch64/aarch64-builtins.c (hi_UP): New.
6105         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6106         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
6107         mode.
6108         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
6109         (aarch64_cm<optab><mode>): Likewise.
6110         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
6111         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
6112         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
6113         (sqrt<mode>2): Likewise.
6114         (*sqrt<mode>2): Likewise.
6115         (abs<mode>2): Likewise.
6116         (<optab><mode>hf2): New pattern for HF mode.
6117         (<optab>hihf2): Likewise.
6118         * config/aarch64/arm_neon.h: Include arm_fp16.h.
6119         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
6120         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
6121         Support HF mode.
6122         * config/aarch64/arm_fp16.h: New file.
6123         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
6124         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
6125         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
6126         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
6127         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
6128         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
6129         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
6130         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
6131         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
6132         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
6133         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
6134         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
6135         vsqrth_f16): New.
6137 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6139         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
6140         reduc_smin_scal_): Use VDQIF_F16.
6141         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
6142         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
6143         Use VHSDF.
6144         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
6145         * config/aarch64/iterators.md (VDQIF_F16): New.
6146         (vp): Support HF modes.
6147         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
6148         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
6150 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6152         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
6153         "*aarch64_mulx_elt_from_dup<mode>".
6154         (*aarch64_mul3_elt<mode>): Update schedule type.
6155         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
6156         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
6157         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
6158         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
6159         (f, fp): Support HF modes.
6160         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
6161         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
6162         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
6163         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
6164         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
6165         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
6167 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6169         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6170         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
6171         modes.
6172         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
6173         vfmsq_f16): New.
6175 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6177         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6178         * config/aarch64/aarch64-simd.md
6179         (aarch64_rsqrts<mode>): Extend to HF modes.
6180         (fabd<mode>3): Likewise.
6181         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
6182         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
6183         (aarch64_<maxmin_uns>p<mode>): Likewise.
6184         (<su><maxmin><mode>3): Likewise.
6185         (<maxmin_uns><mode>3): Likewise.
6186         (<fmaxmin><mode>3): Likewise.
6187         (aarch64_faddp<mode>): Likewise.
6188         (aarch64_fmulx<mode>): Likewise.
6189         (aarch64_frecps<mode>): Likewise.
6190         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
6191         (add<mode>3): Extend to HF modes.
6192         (sub<mode>3): Likewise.
6193         (mul<mode>3): Likewise.
6194         (div<mode>3): Likewise.
6195         (*div<mode>3): Likewise.
6196         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
6197         HF, V4HF and V8HF.
6198         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
6199         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
6200         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
6201         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
6202         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
6203         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
6204         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
6205         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
6206         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
6207         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
6208         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
6209         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
6210         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
6211         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
6213 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6215         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
6216         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
6217         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
6218         (neg<mode>2): Likewise.
6219         (abs<mode>2): Likewise.
6220         (<frint_pattern><mode>2): Likewise.
6221         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
6222         (<optab><VDQF:mode><fcvt_target>2): Likewise.
6223         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
6224         (ftrunc<VDQF:mode>2): Likewise.
6225         (<optab><fcvt_target><VDQF:mode>2): Likewise.
6226         (sqrt<mode>2): Likewise.
6227         (*sqrt<mode>2): Likewise.
6228         (aarch64_frecpe<mode>): Likewise.
6229         (aarch64_cm<optab><mode>): Likewise.
6230         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
6231         HF, V4HF and V8HF.
6232         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
6233         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
6234         (stype): New.
6235         * config/aarch64/arm_neon.h (vdup_n_f16): New.
6236         (vdupq_n_f16): Likewise.
6237         (vld1_dup_f16): Use vdup_n_f16.
6238         (vld1q_dup_f16): Use vdupq_n_f16.
6239         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
6240         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
6241         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
6242         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
6243         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
6244         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
6245         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
6246         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
6247         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
6248         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
6249         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
6250         vsqrt_f16, vsqrtq_f16): New.
6252 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6254         * config/aarch64/aarch64-simd.md
6255         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
6256         (aarch64_ext<mode>): Likewise.
6257         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
6258         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
6259         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
6260         and V8HFmode.
6261         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
6262         float16x8_t.
6263         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
6264         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
6265         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
6266         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
6267         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
6268         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
6269         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
6270         New.
6271         (vmov_n_f16): Reimplement using vdup_n_f16.
6272         (vmovq_n_f16): Reimplement using vdupq_n_f16..
6274 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6276         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
6277         "frame_related_p".  Generate CFA annotation when it's necessary.
6278         (aarch64_expand_prologue): Use aarch64_add_constant.
6279         (aarch64_expand_epilogue): Likewise.
6280         (aarch64_output_mi_thunk): Pass "false" when calling
6281         aarch64_add_constant.
6283 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6285         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
6286         sequences.
6288 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6290         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
6291         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
6292         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
6293         (aarch64_build_constant): Delete.
6295 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
6297         Revert
6298         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
6300         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
6301         flag_toplevel_reorder.
6303 2016-07-25  Richard Biener  <rguenther@suse.de>
6305         * cgraph.c (cgraph_node::verify_node): Compare against builtin
6306         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
6307         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
6308         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
6309         (streamer_get_builtin_tree): Likewise.
6310         (streamer_write_builtin): Likewise.
6311         * lto-streamer.h (LTO_builtin_decl): Remove.
6312         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
6313         (lto_input_scc): Remove LTO_builtin_decl handling.
6314         (lto_input_tree_1): Liekwise.
6315         * lto-streamer-out.c (lto_output_tree_1): Remove special
6316         handling of builtins.
6317         (DFS::DFS): Likewise.
6318         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
6319         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
6320         assert.
6321         (streamer_write_builtin): Remove.
6323 2016-07-25  Martin Liska  <mliska@suse.cz>
6325         * lto-cgraph.c (input_symtab): Don't call get_working_sets
6326         if flag_auto_profile is set to true.
6328 2016-07-25  Martin Liska  <mliska@suse.cz>
6330         PR gcov-profile/71868
6331         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
6332         have a function with multiple latches, count them all.
6334 2016-07-25  Martin Liska  <mliska@suse.cz>
6336         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
6338 2016-07-25  Martin Liska  <mliska@suse.cz>
6340         PR tree-optimization/71987
6341         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
6342         just for SSA_NAMEs. Fix GNU coding style.
6344 2016-07-25  Martin Liska  <mliska@suse.cz>
6346         PR gcov-profile/64874
6347         * gcov-io.h: Update command about file format.
6348         * gcov-iov.c (main): Adapt the numbering scheme.
6350 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
6352         PR middle-end/66726
6353         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
6354         whose result is used in PHI.
6355         (final_range_test_p): Likewise.
6356         (maybe_optimize_range_tests): Likewise.
6358 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
6360         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6361         Reformat two multi-line strings.
6363 2016-07-22  Martin Sebor  <msebor@redhat.com>
6365         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
6367 2016-07-22  Martin Sebor  <msebor@redhat.com>
6369         PR c/71560
6370         * doc/extend.texi (Compound Literals): Correct and clarify.
6371         (Cast to Union): Same.
6373 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6375         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
6376         comments to explain why certain error messages make mention of
6377         undocumented options.
6378         (rs6000_invalid_builtin): Change error messages to replace mention
6379         of undocumented options with mention of the -mcpu=power9 option
6380         that enables those undocumented options.
6381         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
6382         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
6383         definition of this macro to correct an existing error.
6384         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
6385         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
6386         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
6387         descriptions of built-in functions so that they depend on
6388         -mcpu=power9 instead of on the corresponding undocumented flags.
6389         * doc/invoke.texi (Option Summary):  Remove all mention of newly
6390         undocumented flags.
6391         (IBM RS/6000 and PowerPC Options): Likewise.
6392         * doc/md.texi (Constraints for Particuliar Machines): Remove all
6393         mention of newly undocumented flags.
6395 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
6397         * ipa-cp.c (determine_versionability): Do not create constprop clones,
6398         when target_clones attribute is set.
6400 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
6402         * common.opt (funsafe-loop-optimizations): Mark ignore.
6403         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
6404         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
6405         related code.
6406         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
6407         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
6409 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
6411         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
6412         Parameter.
6413         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
6414         Parameter.
6415         (number_of_iterations_exit): Warn missed loop optimization for
6416         possible infinite loops.
6418 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
6420         PR target/71216
6421         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
6422         when to emit a ".machine" pseudo-op.
6424 2016-07-22  Martin Liska  <mliska@suse.cz>
6426         PR gcov-profile/69028
6427         PR gcov-profile/62047
6428         * coverage.c (coverage_compute_lineno_checksum): Do not
6429         calculate checksum for fns w/o xloc.file.
6430         (coverage_compute_profile_id): Likewise.
6432 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
6434         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
6435         (avr_secondary_reload): ...and implementation.
6436         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
6437         * config/avr/avr.md (reload_in<mode>): Remove insns.
6438         (adjust_len) [lpm]: Remove insn attribute value.
6439         * config/avr/predicates.md (flash_operand): Remove insn predicate.
6441 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6443         PR middle-end/71876
6444         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
6445         attribute.
6446         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
6447         * calls.c (special_function_p): Remove the special handling of the
6448         "__builtin_" prefix.
6450 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6452         PR middle-end/71876
6453         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
6454         if STMT may be an alloca call.
6455         (gimple_alloca_call_p, alloca_call_p): Return only true for the
6456         builtin alloca call.
6457         * calls.h (gimple_maybe_alloca_call_p): New function.
6458         * tree-inline.c (inline_forbidden_p_stmt): Use
6459         gimple_maybe_alloca_call_p here.
6461 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
6463         * spellcheck-tree.c (best_macro_match::best_macro_match):
6464         Explictly specify the template arguments when invoking the base
6465         class constructor, to help older C++ compilers.
6467 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
6469         PR sanitizer/71953
6470         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
6471         before builtin_decl_implicit.
6473 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
6475         * optabs.c (emit_condiitonal_move): Short circuit for identical
6476         sources.
6478 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
6480         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
6481         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
6482         (noce_conversion_profitable_p): New.
6483         (noce_try_store_flag_constants): Use it.
6484         (noce_try_addcc): Likewise.
6485         (noce_try_store_flag_mask): Likewise.
6486         (noce_try_cmove): Likewise.
6487         (noce_try_cmove_arith): Likewise.
6488         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
6489         overwriting it.
6490         (noce_convert_multiple_sets): Move cost model to here, from...
6491         (bb_ok_for_noce_convert_multiple_sets) ...here.
6492         (noce_process_if_block): Update calls for above changes.
6493         (noce_find_if_block): Record new noce_if_info parameters.
6495 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
6497         * target.def (max_noce_ifcvt_seq_cost): New.
6498         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
6499         * doc/tm.texi: Regenerate.
6500         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
6501         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
6502         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
6503         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
6504         * doc/invoke.texi: Document new params.
6506 2016-07-21  Richard Biener  <rguenther@suse.de>
6508         PR tree-optimization/71947
6509         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
6510         ranges have useful limit_vr information.
6512 2016-07-21  Richard Biener  <rguenther@suse.de>
6514         * function-tests.c (build_trivial_generic_function): Set
6515         BLOCK_SUPERCONTEXT of DECL_INITIAL.
6516         * omp-low.c (create_omp_child_function): Likewise.
6517         (grid_expand_target_grid_body): Likewise.
6518         * cgraphunit.c (init_lowered_empty_function): Likewise.
6519         (cgraph_node::expand_thunk): Likewise.
6520         * tree-parloops.c (create_loop_fn): Likewise.
6521         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
6523 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6525         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
6526         in comment.
6528 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
6530         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
6531         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
6532         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
6533         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
6534         values for insn attribute.
6535         * config/avr/avr.c (avr_out_insert_notbit): New function.
6536         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
6537         ADJUST_LEN_INSV_NOTBIT_0/_7.
6538         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
6540 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
6542         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
6543         (chrec_convert_1, chrec_convert): Ditto.
6544         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
6545         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
6546         * tree-vrp.c (adjust_range_with_scev): Ditto.
6547         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
6548         (scev_var_range_cant_overflow): New function.
6549         (scev_probably_wraps_p): New parameter.  Call above function.
6550         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
6552 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
6554         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
6555         by removing computation of may_be_zero.
6557 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
6559         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
6561 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
6563         Improving concepts performance and diagnostics.
6564         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
6565         for constraint satisfaction and subsumption.
6566         * timevar.h (auto_timevar): New constructor that matches the push/pop
6567         pattern of usage in pt.c.
6569 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
6571         * hwint.h (HOST_WIDE_INT_0): New define.
6572         (HOST_WIDE_INT_0U): Ditto.
6573         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
6574         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
6575         * simplify-rtx.c: Ditto.
6576         * tree-object-size.c: Ditto.
6578 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6580         * config/s390/s390.c (s390_encode_section_info): Remove mode size
6581         check.
6583 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
6585         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
6586         * combine.c: Use HOST_WIDE_INT_M1U instead of
6587         ~(unsigned HOST_WIDE_INT) 0.
6588         * double-int.h: Ditto.
6589         * dse.c: Ditto.
6590         * dwarf2asm.c:Ditto.
6591         * expmed.c: Ditto.
6592         * genmodes.c: Ditto.
6593         * match.pd: Ditto.
6594         * read-rtl.c: Ditto.
6595         * tree-ssa-loop-ivopts.c: Ditto.
6596         * tree-ssa-loop-prefetch.c: Ditto.
6597         * tree-vect-generic.c: Ditto.
6598         * tree-vect-patterns.c: Ditto.
6599         * tree.c: Ditto.
6601 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6603         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
6604         constant addresses outside [0,0xc0] into a register.
6605         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
6606         cases where the base address register is unused after.
6607         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
6608         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
6609         (avr_out_store_psi_reg_disp_tiny): Same.
6611 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6613         Implement attribute progmem on reduced Tiny cores by adding
6614         flash offset 0x4000 to respective symbols.
6616         PR target/71948
6617         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
6618         documentation how it works on reduced Tiny cores.
6619         (AVR Named Address Spaces): No support for reduced Tiny.
6620         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
6621         (avr_address_tiny_pm_p): New static function.
6622         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
6623         if the address is in progmem.
6624         (avr_assemble_integer): Same.
6625         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
6626         for symbol_ref in progmem.
6627         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
6628         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
6629         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
6631 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
6633         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
6634         * configure: Regenerate.
6635         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
6636         (USE_THIN_ARCHIVES): New variable.
6637         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
6638         this archive as a thin archive.
6640 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
6642         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
6643         same location as last time, don't skip if we have fix-it hints.
6644         Clarify the skipping logic by converting it from one "if" clause
6645         to repeated "if" clauses.
6646         * spellcheck-tree.c: Include "cpplib.h".
6647         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
6648         (best_macro_match::best_macro_match): New constructor.
6649         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
6650         Move here from c/c-decl.c.
6651         (class best_macro_match): Move here from c/c-decl.c, converting
6652         from a typedef to a subclass, gaining a ctor.
6654 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6656         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
6657         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
6658         define...
6659         (avr_addr_space_diagnose_usage): ...and implementation.
6660         (avr_addr_space_supported_p): New function.
6661         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
6662         report bad address space usage if that space is supported.
6663         (avr_insert_attributes): Same.  No more complain about unsupported
6664         address spaces.
6665         * config/avr/avr-c.c (tm_p.h): Include it.
6666         (avr_cpu_cpp_builtins): Only define addr-space related built-in
6667         macro if avr_addr_space_supported_p.
6669 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
6671         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
6672         flag_toplevel_reorder.
6674 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
6676         * gcc-rich-location.c
6677         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
6678         a const char *.
6679         * gcc-rich-location.h
6680         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
6682 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6684         * target.def (addr_space): Add new diagnose_usage to hook vector.
6685         * targhooks.c (default_addr_space_diagnose_usage): Add default
6686         implementation and...
6687         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
6688         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
6689         is some address space, call targetm.addr_space.diagnose_usage.
6690         * doc/tm.texi.in (Named Address Spaces): Add anchor for
6691         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
6692         * doc/tm.texi: Regenerate.
6694 2016-07-20  Martin Liska  <mliska@suse.cz>
6696         PR middle-end/71898
6697         * graphite-isl-ast-to-gimple.c (later_of_the_two):
6698         Properly handly PHI stmts.
6700 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
6702         PR tree-optimization/71503
6703         PR tree-optimization/71683
6704         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
6705         and break.
6707 2016-07-20  Martin Liska  <mliska@suse.cz>
6709         * doc/invoke.texi (-fipa-ra): Document when the option is
6710         disabled. Fix a typo.
6712 2016-07-20  Martin Liska  <mliska@suse.cz>
6714         * Makefile.in: Include fibonacci_heap.c
6715         * fibonacci_heap.c: New file.
6716         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
6717         (fibonacci_heap::union_with): Fix deletion of the second heap.
6718         * selftest-run-tests.c (selftest::run_tests): Incorporate
6719         fibonacci heap tests.
6720         * selftest.h: Declare fibonacci_heap_c_tests.
6722 2016-07-20  Martin Liska  <mliska@suse.cz>
6724         * selftest-run-tests.c (selftest::run_tests): New function.
6725         * selftest.h (sreal_c_tests): Declare.
6726         * sreal.c (sreal_verify_basics): New function.
6727         (verify_aritmetics): Likewise.
6728         (sreal_verify_arithmetics): Likewise.
6729         (verify_shifting): Likewise.
6730         (sreal_verify_shifting): Likewise.
6731         (void sreal_c_tests): Likewise.
6733 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
6735         PR rtl-optimization/71916
6736         * cfgrtl.c (contains_no_active_insn_p): Return false also for
6737         bb which have a single succ fake edge.
6739 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
6741         PR debug/71855
6742         * dwarf2out.c (gen_subprogram_die): Only call
6743         gen_unspecified_parameters_die while dumping early dwarf.
6745 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
6747         PR middle-end/71874
6748         * gimple-fold.c (fold_builtin_memory_op): Use
6749         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
6751 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
6753         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
6754         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
6755         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
6756         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
6757         * combine.c: Ditto.
6758         * cse.c: Ditto.
6759         * dojump.c: Ditto.
6760         * double-int.c: Ditto.
6761         * dse.c: Ditto.
6762         * dwarf2out.c: Ditto.
6763         * expmed.c: Ditto.
6764         * expr.c: Ditto.
6765         * fold-const.c: Ditto.
6766         * function.c: Ditto.
6767         * fwprop.c: Ditto.
6768         * genmodes.c: Ditto.
6769         * hwint.c: Ditto.
6770         * hwint.h: Ditto.
6771         * ifcvt.c: Ditto.
6772         * loop-doloop.c: Ditto.
6773         * loop-invariant.c: Ditto.
6774         * loop-iv.c: Ditto.
6775         * match.pd: Ditto.
6776         * optabs.c: Ditto.
6777         * real.c: Ditto.
6778         * reload.c: Ditto.
6779         * rtlanal.c: Ditto.
6780         * simplify-rtx.c: Ditto.
6781         * stor-layout.c: Ditto.
6782         * toplev.c: Ditto.
6783         * tree-ssa-loop-ivopts.c: Ditto.
6784         * tree-vect-generic.c: Ditto.
6785         * tree-vect-patterns.c: Ditto.
6786         * tree.c: Ditto.
6787         * tree.h: Ditto.
6788         * ubsan.c: Ditto.
6789         * varasm.c: Ditto.
6790         * wide-int-print.cc: Ditto.
6791         * wide-int.cc: Ditto.
6792         * wide-int.h: Ditto.
6794 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
6796         * selftest.c (selftest::assert_streq): Handle NULL values of
6797         val_actual and val_expected.
6799 2016-07-19  Martin Jambor  <mjambor@suse.cz>
6801         PR fortran/71688
6802         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
6803         rather than cgraph_create_node to get a call graph node.
6805 2016-07-19  Richard Biener  <rguenther@suse.de>
6807         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
6808         handle all tcc_constant bases and valueize SSA names.
6809         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
6810         tcc_constant bases.
6812 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
6814         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
6815         the flags of the exit block and bb2, not just the entry block.
6817 2016-07-19  Richard Biener  <rguenther@suse.de>
6819         PR tree-optimization/71901
6820         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
6821         align member, group stuff with the bitfield.
6822         (vn_ref_op_align_unit): New inline.
6823         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
6824         record element alignment and operand 3 unchanged.
6825         (ao_ref_init_from_vn_reference): Adjust.
6826         (valueize_refs_1): Likewise.
6827         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6829 2016-07-19  Richard Biener  <rguenther@suse.de>
6831         PR tree-optimization/71908
6832         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
6833         symbolic constants in a more reliable way.
6835 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
6837         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
6838         comment.
6839         (vect_update_inits_of_drs): Likewise.
6840         (vect_create_cond_for_alias_checks): Likewise.
6841         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
6843 2016-07-19  Richard Biener  <rguenther@suse.de>
6845         PR lto/71907
6846         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
6847         with an abstract origin that is not an inlined function outer
6848         scope add a self-reference as abstract origin.
6849         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
6851 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
6853         PR target/71493
6854         * config/rs6000/rs6000.c (rs6000_function_value): Fix
6855         unintentional System V.4 structure return breakage for structures
6856         with a single floating point element.
6858 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
6860         PR tree-optimization/71734
6861         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
6862         contains REF, use it to check safelen, assume that safelen value
6863         must be greater 1, fix style.
6864         (ref_indep_loop_p_2): Add REF_LOOP argument.
6865         (ref_indep_loop_p): Pass LOOP as additional argument to
6866         ref_indep_loop_p_2.
6868 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6870         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
6871         allocation in the prologue.
6872         * explow.c (get_dynamic_stack_base): New function to return an address
6873         expression for the dynamic stack base.
6874         (get_dynamic_stack_size): New function to do the required dynamic stack
6875         space size calculations.
6876         (allocate_dynamic_stack_space): Use new functions.
6877         (align_dynamic_address): Move some code from
6878         allocate_dynamic_stack_space to new function.
6879         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
6881 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6883         * config/s390/s390.c (s390_encode_section_info): Always set
6884         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
6885         found.
6887 2016-07-18  Richard Biener  <rguenther@suse.de>
6889         PR tree-optimization/71893
6890         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
6891         for sizetype cast added by array_ref_element_size.
6892         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6894 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
6896         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
6897         register parameters.  Remove code to initialize argument pointer
6898         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
6899         using a pc-relative branch.  Cleanup conditional code.
6900         * config/pa/pa.md (call_mcount): New expander.
6901         (call_mcount_nonpic): New insn.
6902         (call_mcount_pic): New insn and split.
6903         (call_mcount_pic_post_reload): New insn.
6904         (call_mcount_64bit): New insn and split.
6905         (call_mcount_64bit_post_reload): New insn.
6907 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
6909         * config/avr/predicates.md (const_m255_to_m1_operand): New.
6910         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
6911         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
6912         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
6913         (*usum_widenqihi3, *udiff_widenqihi3)
6914         (*addhi3_zero_extend.const): New combiner insns.
6915         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
6916         just 1 bit is affected.
6917         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
6918         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
6920 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
6922         * omp-low.c (lower_omp_target): Mark data clauses with
6923         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
6924         zero-length subarrays.
6926 2016-07-15  Richard Biener  <rguenther@suse.de>
6928         PR tree-optimization/71881
6929         * tree-loop-distribution.c (destroy_loop): Remove blocks in
6930         reverse DOM order to make debug temp generation happy.
6932 2016-07-15  Richard Biener  <rguenther@suse.de>
6934         PR tree-optimization/71887
6935         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
6936         verify it is not zero for division / modulo handling.
6937         (value_replacement): Adjust.
6939 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
6940             Julian Brown  <julian@codesourcery.com>
6942         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
6943         * config/aarch64/aarch64-cost-tables.h
6944         (vulcan_extra_costs): New variable.
6945         * config/aarch64/aarch64.c
6946         (vulcan_addrcost_table): Likewise.
6947         (vulcan_regmove_cost): Likewise.
6948         (vulcan_vector_cost): Likewise.
6949         (vulcan_branch_cost): Likewise.
6950         (vulcan_tunings): Likewise.
6952 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
6954         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
6955         (output_in_order): Loop over undefined variables too.  Output them
6956         via assemble_undefined_decl.  Skip variables that correspond to hard
6957         registers or have value-exprs.
6958         * varpool.c (symbol_table::output_variables): Handle undefined
6959         variables together with defined ones.
6961 2016-07-15  Richard Biener  <rguenther@suse.de>
6963         * tree-ssa-pre.c (get_representative_for): Make sure to return
6964         the value number of SSA names.
6965         (phi_translate_1): get_representative_for cannot return NULL.
6966         (do_pre_regular_insertion): Remove redundant call to
6967         fully_constant_expression.
6968         (do_pre_partial_partial_insertion): Likewise.
6970 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
6972         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
6973         (derive_simple_iv_with_niters): New function.
6974         (simple_iv): Rewrite using simple_iv_with_niters.
6975         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
6976         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
6977         function.
6978         (number_of_iterations_exit): Rewrite using above function.
6979         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
6980         Decl.
6982 2016-07-15  Richard Biener  <rguenther@suse.de>
6984         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
6985         vec_construct cost.
6987 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
6989         PR tree-optimization/71872
6990         * tree-data-ref.c (get_references_in_stmt): Ignore references
6991         with is_gimple_constant get_base_address.
6993 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6995         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
6996         (TARGET_HAVE_LDACQD): New macro.
6997         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
6998         than TARGET_HAVE_LDACQ.
6999         (arm_load_acquire_exclusivedi): Likewise.
7000         (arm_store_release_exclusivedi): Likewise.
7002 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7004         PR rtl-optimization/71878
7005         * lra-constraints.c (match_reload): Pass information about other
7006         output operands.  Create new unique register value if matching input
7007         operand shares same register value as output operand being considered.
7008         (curr_insn_transform): Record output operands already processed.
7010 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7012         PR target/65951
7013         PR tree-optimization/70923
7014         * tree-vect-patterns.c: Include mult-synthesis.h.
7015         (target_supports_mult_synth_alg): New function.
7016         (synth_lshift_by_additions): Likewise.
7017         (apply_binop_and_append_stmt): Likewise.
7018         (vect_synth_mult_by_constant): Likewise.
7019         (target_has_vecop_for_code): Likewise.
7020         (vect_recog_mult_pattern): Use above functions to synthesize vector
7021         multiplication by integer constants.
7023 2016-07-14  Alan Modra  <amodra@gmail.com>
7025         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
7026         gpr alternatives.  Correct '*' placement on Y,r alternative.
7027         Add '*' on operand 1 of r,r alternative.
7029 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7031         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
7032         * expmed.h: ... Here.
7034 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
7036         * gimple.h (stmt_can_terminate_bb_p): New function.
7037         * tree-cfg.c (need_fake_edge_p): Rename to ...
7038         (stmt_can_terminate_bb_p): ... this; return true if stmt can
7039         throw external; handle const and pure calls.
7040         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
7042 2016-07-14  Richard Biener  <rguenther@suse.de>
7044         PR tree-optimization/71866
7045         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
7046         (do_hoist_insertion): Avoid endless recursion when we
7047         didn't insert anything because we managed to simplify
7048         things down to a constant or SSA name.
7049         (fully_constant_expression): Re-write in terms of ...
7050         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
7051         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
7052         vn_nary_build_or_lookup_1.
7053         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
7054         (vn_nary_build_or_lookup): ... this which now wraps it.
7056 2016-07-14  Alan Modra  <amodra@gmail.com>
7058         PR target/71733
7059         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
7060         with p9_vector override before power9-dform override.
7062 2016-07-13  Andi Kleen  <ak@linux.intel.com>
7064         * value-prof.c (gimple_value_profile_transformations): Don't run
7065         when auto_profile is on.
7067 2016-07-13  Andi Kleen  <ak@linux.intel.com>
7069         * auto-profile.c (update_inlined_ind_target,
7070         afdo_indirect_call): Print information to dump file.
7072 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7074         * genrecog.c (special_predicate_operand_p): New function.
7075         (predicate_name): Move function.
7076         (validate_pattern): Don't warn about missing mode for all
7077         define_special_predicate predicates.
7079 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
7081         * tree-vect-data-refs.c (vect_no_alias_p): New function.
7082         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
7083         resolve alias checks which are known at compilation time.
7084         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
7085         alias checks are resolved.  Move dump info for too many runtime
7086         alias checks to here...
7087         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
7089 2016-07-13  Richard Biener  <rguenther@suse.de>
7091         PR tree-optimization/24574
7092         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
7093         position and add shift, rotate, divison and modulo support
7094         for left zero.
7095         (value_replacement): Pass in argument position to absorbing_element_p.
7097 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
7099         PR ipa/71633
7100         * ipa-inline-transform.c (inline_call): Support
7101         instrumented thunks.
7103 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7105         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
7106         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
7107         divide feature.
7108         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
7109         Baseline.  Make initial alternative TARGET_32BIT only.
7110         (udivsi3): Likewise.
7111         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
7112         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
7113         target.
7115 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7117         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
7118         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
7119         availability with TARGET_HAVE_MOVT.
7120         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
7121         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
7122         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
7123         UINTVAL.
7124         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
7125         extra instruction if MOVW is available.  Use a cost variable
7126         incremented by COSTS_N_INSNS (1) when the condition match rather than
7127         returning an arithmetic expression based on COSTS_N_INSNS.  Make
7128         constant with bottom half word zero cost 2 instruction if MOVW is
7129         available.
7130         * config/arm/arm.md (define_attr "arch"): Add v8mb.
7131         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
7132         target is ARMv8-M Baseline.
7133         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
7134         (arm_movtas_ze): Likewise.
7135         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
7136         alternative for constants satisfying j constraint.
7137         (thumb1_movsi_insn): Likewise.
7138         (movsi splitter for K alternative): Tighten condition to not trigger
7139         if movt is available and j constraint is satisfied.
7140         (Pe immediate splitter): Likewise.
7141         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
7142         constant fitting in an halfword to use MOVW.
7143         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
7144         effective target.
7146 2016-07-13  Richard Biener  <rguenther@suse.de>
7148         PR middle-end/71104
7149         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
7150         gimplifying the LHS.  Make sure to gimplify a returning twice
7151         call LHS without using SSA names.
7153 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7155         * tree-data-ref.c (find_data_references_in_stmt): Remove
7156         unnecessary call to vec::release.
7157         (graphite_find_data_references_in_stmt): Likewise.
7158         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
7159         * tree-vect-stmts.c (vectorizable_condition): Likewise.
7161 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7163         * cfgexpand.c (expand_used_vars): Make the type of a local
7164         variable auto_vec.
7165         * genmatch.c (lower_for): Likewise.
7166         * haifa-sched.c (haifa_sched_init): Likewise.
7167         (add_to_speculative_block): Likewise.
7168         (create_check_block_twin): Likewise.
7169         * predict.c (handle_missing_profiles): Likewise.
7170         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
7171         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
7172         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
7173         Likewise.
7174         (maybe_lower_iteration_bound): Likewise.
7175         * tree-ssa-sccvn.c (DFS): Likewise.
7176         * tree-stdarg.c (reachable_at_most_once): Likewise.
7177         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
7178         (vectorizable_store): Likewise.
7180 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7182         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
7183         (sccvn_dom_walker): make cond_stack an auto_vec.
7185 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7187         * ree.c (struct ext_state): Make type of members auto_vec.
7188         (find_and_remove_re): Adjust.
7190 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7192         * cfgexpand.c (struct stack_vars_data): Make type of fields
7193         auto_vec.
7194         (expand_used_vars): Adjust.
7196 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7198         * ipa.c (record_cdtor_fn): Adjust.
7199         (build_cdtor_fns): Likewise.
7200         (ipa_cdtor_merge): Make static_ctors and static_dtors local
7201         variables.
7203 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7205         * genextract.c (struct accum_extract): Add constructor and make
7206         members auto_vec.
7207         (gen_insn): Adjust.
7209 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7211         * tree.c (struct free_lang_data_d): Add constructor and change
7212         types of members to ones that automatically manage resources.
7213         (fld_worklist_push): Adjust.
7214         (find_decls_types): Likewise.
7215         (find_decls_types_in_eh_region): Likewise.
7216         (free_lang_data_in_cgraph): Stop manually creating and
7217         destroying members of free_lang_data_d.
7219 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
7221         PR rtl-optimization/68961
7222         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
7223         peephole variant.  Use sse_reg_operand predicates.
7225 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
7227         * config/i386/predicates.md (x86_64_immediate_operand)
7228         <case CONST_INT>: Remove unneeded truncation to DImode.
7229         <case CONST>: Ditto.
7230         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
7232 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
7234         PR target/71805
7235         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
7236         The xxperm and xxpermr instructions require that the 2nd input
7237         operand overlap with the output operand, and not the 1st.
7238         (altivec_vperm_v8hiv16qi): Likewise.
7239         (altivec_vperm_<mode>_uns_internal): Likewise.
7240         (altivec_vpermr_<mode>_internal): Likewise.
7241         (vperm_v8hiv4si): Likewise.
7242         (vperm_v16qiv8hi): Likewise.
7244 2016-07-12  Nathan Sidwell  <nathan@acm.org>
7246         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
7247         when -mno-pic-data-is-text-relative is in effect, by default.
7248         * doc/invoke.texi (mpic-data-is-text-relative): Document new
7249         behavior and clarify.
7251 2016-07-12  Martin Liska  <mliska@suse.cz>
7253         * params.def: Add avg-loop niter.
7254         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
7255         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
7256         * doc/invoke.texi: Document the new parameter.
7258 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7260         PR middle-end/71700
7261         * expr.c (store_constructor): Mask sign-extended bits when widening
7262         sub-word constructor element at the start of a word.
7264 2016-07-12  Martin Liska  <mliska@suse.cz>
7266         * Makefile.in: Append rule for params-options.h.
7267         * params-options.h: New file.
7269 2016-07-12  Martin Liska  <mliska@suse.cz>
7271         * ira-build.c (mark_loops_for_removal): Properly iterate
7272         loops.
7274 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
7275             Richard Biener  <rguenther@suse.de>
7277         PR tree-optimization/23286
7278         PR tree-optimization/70159
7279         * doc/invoke.texi: Document -fcode-hoisting.
7280         * common.opt (fcode-hoisting): New flag.
7281         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
7282         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
7283         (do_regular_insertion): Rename to ...
7284         (do_pre_regular_insertion): ... this and amend general comments
7285         on insertion strathegy.
7286         (do_partial_partial_insertion): Rename to ...
7287         (do_pre_partial_partial_insertion): ... this.
7288         (do_hoist_insertion): New function.
7289         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
7290         and call do_hoist_insertion properly.
7291         (insert): Adjust.
7292         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
7293         (pass_pre::execute): Register hoist_insert stats.
7295 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
7297         PR middle-end/71716
7298         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
7299         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
7300         is different from mode's bitsize.  Small cleanup.
7302 2016-07-12  Richard Biener  <rguenther@suse.de>
7304         PR rtl-optimization/68961
7305         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
7306         to simplify to a non-constant.
7308 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
7310         PR middle-end/71758
7311         * omp-low.c (expand_omp_target): Gimplify device.
7313         PR tree-optimization/71823
7314         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
7315         to get vec_oprnds2 from op2.
7317 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
7319         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
7320         Hoist common subexpressions.
7321         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
7323 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
7325         PR target/71800
7326         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
7327         prevent generation of 'stxsiwx' on pre Power8 hardware.
7329 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
7331         * input.c: Include cpplib.h.
7332         (selftest::temp_source_file): New class.
7333         (selftest::temp_source_file::temp_source_file): New ctor.
7334         (selftest::temp_source_file::~temp_source_file): New dtor.
7335         (selftest::should_have_column_data_p): New function.
7336         (selftest::test_should_have_column_data_p): New function.
7337         (selftest::temp_line_table): New class.
7338         (selftest::temp_line_table::temp_line_table): New ctor.
7339         (selftest::temp_line_table::~temp_line_table): New dtor.
7340         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
7341         it to create a temp_line_table.
7342         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
7343         locations that are known to have column data.
7344         (selftest::line_table_case): New struct.
7345         (selftest::test_reading_source_line): Move tempfile handling
7346         to class temp_source_file.
7347         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
7348         (selftest::assert_token_loc_eq): New function.
7349         (ASSERT_TOKEN_LOC_EQ): New macro.
7350         (selftest::test_lexer): New function.
7351         (selftest::boundary_locations): New array.
7352         (selftest::input_c_tests): Call test_should_have_column_data_p.
7353         Loop over a test matrix of interesting values of location and
7354         default_range_bits, calling test_lexer on each case in the matrix.
7355         Move call to test_accessing_ordinary_linemaps into the matrix.
7356         * selftest.h (ASSERT_EQ): Reimplement in terms of...
7357         (ASSERT_EQ_AT): New macro.
7359 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
7361         PR target/71801
7362         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
7363         Don't convert TImode in debug insn.
7365 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7367         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
7368         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
7369         (tree_type_common::lang_flag_7): New.
7370         (tree_type_common::spare): Reduce size.
7371         * tree.h (TYPE_ALIGN_OK): Remove.
7372         (TYPE_LANG_FLAG_7): New.
7373         (get_inner_reference): Adjust header.
7374         * print-tree.c (print_node): Adjust.
7375         * expr.c (get_inner_reference): Remove parameter keep_aligning.
7376         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
7377         calls to get_inner_reference.
7378         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
7379         handling of TYPE_ALIGN_OK.
7380         * builtins.c (get_object_alignment_2): Adjust call to
7381         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
7382         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
7383         TYPE_ALIGN_OK.
7384         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
7385         * cfgexpand.c (expand_debug_expr): Likewise.
7386         * dbxout.c (dbxout_expand_expr): Likewise.
7387         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
7388         loc_list_from_tree, fortran_common): Likewise.
7389         * fold-const.c (optimize_bit_field_compare,
7390         decode_field_reference, fold_unary_loc, fold_comparison,
7391         split_address_to_core_and_offset): Likewise.
7392         * gimple-laddress.c (execute): Likewise.
7393         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
7394         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
7395         * hsa-gen.c (gen_hsa_addr): Likewise.
7396         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
7397         * tsan.c (instrument_expr): Likewise.
7398         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
7399         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
7400         * tree-affine.c (tree_to_aff_combination,
7401         get_inner_reference_aff): Adjust calls to get_inner_reference.
7402         * tree-data-ref.c (split_constant_offset_1,
7403         dr_analyze_innermost): Likewise.
7404         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
7405         * tree-sra.c (ipa_sra_check_caller): Likewise.
7406         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
7407         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
7408         bswap_replace): Likewise.
7409         * tree-vect-data-refs.c (vect_check_gather,
7410         vect_analyze_data_refs): Likewise.
7411         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
7412         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
7413         TYPE_ALIGN_OK.
7415 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
7417         * Makefile.in (selftest-valgrind): New phony target.
7418         * function-tests.c (selftest::build_cfg): Delete pass instances
7419         created by the test.
7420         (selftest::convert_to_ssa): Likewise.
7421         (selftest::test_expansion_to_rtl): Likewise.
7422         * tree-cfg.c (selftest::test_linear_chain): Release dominator
7423         vectors.
7424         (selftest::test_diamond): Likewise.
7426 2016-07-11  Richard Biener  <rguenther@suse.de>
7428         PR tree-optimization/71816
7429         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
7430         than replacing all of its operands.
7432 2016-07-11  Alan Modra  <amodra@gmail.com>
7434         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
7435         (ctr<mode>): Add unspec.
7436         (ctr<mode>_internal*): Likewise.
7438 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
7440         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
7441         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
7443 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
7445         PR rtl-optimization/71621
7446         * lra-constraints.c (process_alt_operands): Check combination of
7447         reg class and mode.
7449 2016-07-08  Jason Merrill  <jason@redhat.com>
7450             Richard Biener  <rguenther@suse.de>
7452         P0145: Refining Expression Order for C++.
7453         * gimplify.c (initial_rhs_predicate_for): New.
7454         (gimplfy_modify_expr): Gimplify RHS before LHS.
7456 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7458         PR target/71297
7459         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7460         Allow standard error handling to take over when a wrong number
7461         of arguments is presented to __builtin_vec_ld () or
7462         __builtin_vec_st ().
7464 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
7466         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
7467         variants.
7468         (smin): Likewise.
7469         (fmax): New entry.
7470         (fmin): Likewise.
7471         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
7472         __builtin_aarch64_fmaxv2sf.
7473         (vmaxnmq_f32): Likewise.
7474         (vmaxnmq_f64): Likewise.
7475         (vminnm_f32): Likewise.
7476         (vminnmq_f32): Likewise.
7477         (vminnmq_f64): Likewise.
7479 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7481         PR target/71806
7482         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
7483         enable -mfloat128-hardware by default.
7484         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
7485         that IEEE 128-bit hardware support needs.
7486         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
7487         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
7488         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
7489         floating point requires.
7490         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7491         -mfloat128 and -mfloat128-hardware changes.
7493 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
7495         PR tree-optimization/71667
7496         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
7498 2016-07-08  Martin Liska  <mliska@suse.cz>
7500         PR middle-end/71606
7501         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
7502         folding produces SAVE_EXPRs, thus return false for the type.
7504 2016-07-07  Martin Liska  <mliska@suse.cz>
7506         * file-find.c (remove_prefix): New function.
7507         * file-find.h (remove_prefix): Declare the function.
7508         * gcc-ar.c (main): Skip a folder of the wrapper if
7509         a wrapped binary would point to the same file.
7511 2016-07-07  Jan Hubicka  <jh@suse.cz>
7513         * tree-scalar-evolution.c (iv_can_overflow_p): export.
7514         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
7515         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
7517 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
7519         PR ipa/71624
7520         * ipa-inline-analysis.c (compute_inline_parameters): Set
7521         local.can_change_signature to false for intrumentation
7522         thunk callees.
7524 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7526         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
7527         with TARGET_HAVE_MOVT.
7528         (TARGET_HAVE_MOVT): Define.
7529         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
7530         availability with TARGET_HAVE_MOVT.
7531         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
7532         availability.
7533         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
7534         TARGET_THUMB2.
7535         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
7536         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
7537         * config/arm/constraints.md (define_constraint "j"): Use
7538         TARGET_HAVE_MOVT to check MOVT availability.
7540 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7542         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
7544 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7546         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
7547         (armv8-m.main): Likewise.
7548         (armv8-m.main+dsp): Likewise.
7549         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
7550         (FL_FOR_ARCH8M_MAIN): Likewise.
7551         * config/arm/arm-tables.opt: Regenerate.
7552         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
7553         armv8-m.main+dsp to BE8_LINK_SPEC.
7554         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
7555         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
7556         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
7557         Baseline and Mainline.
7558         (arm_option_override_internal): Also disable arm_restrict_it when
7559         !arm_arch_notm.  Update comment for -munaligned-access to also cover
7560         ARMv8-M Baseline.
7561         (arm_file_start): Increase buffer size for printing architecture name.
7562         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
7563         and armv8-m.main+dsp.
7564         (mno-unaligned-access): Clarify that this is disabled by default for
7565         ARMv8-M Baseline architectures as well.
7567 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7569         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
7570         decide whether to prevent some libgcc routines being included for some
7571         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
7572         link between this condition and the one in
7573         libgcc/config/arm/lib1func.S.
7575 2016-07-07  Richard Biener  <rguenther@suse.de>
7577         * tree-ssa-pre.c: Include alias.h.
7578         (compute_avail): If we have multiple VN_REFERENCEs with the
7579         same hashtable entry adjust that to make it a valid replacement
7580         for all of them with respect to alignment and aliasing
7581         when doing insertion.
7582         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
7583         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
7585 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
7587         PR target/70098
7588         PR target/71763
7589         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
7590         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
7591         constraint.
7593 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7595         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
7596         (adjust_mems): Adjust.
7597         (adjust_insn): Likewise.
7598         (prepare_call_arguments): Likewise.
7600 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7602         * gcse.c (struct ls_expr): Make stores field a vector.
7603         (ldst_entry): Adjust.
7604         (free_ldst_entry): Likewise.
7605         (print_ldst_list): Likewise.
7606         (compute_ld_motion_mems): Likewise.
7607         (update_ld_motion_stores): Likewise.
7609 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7611         * gcse.c (struct ls_expr): Remove loads field.
7612         (ldst_entry): Adjust.
7613         (free_ldst_entry): Likewise.
7614         (print_ldst_list): Likewise.
7615         (compute_ld_motion_mems): Likewise.
7617 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7619         * store-motion.c (struct st_expr): Make antic_stores a vector.
7620         (st_expr_entry): Adjust.
7621         (free_st_expr_entry): Likewise.
7622         (print_store_motion_mems): Likewise.
7623         (find_moveable_store): Likewise.
7624         (compute_store_table): Likewise.
7625         (remove_reachable_equiv_notes): Likewise.
7626         (replace_store_insn): Likewise.
7627         (build_store_vectors): Likewise.
7629 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7631         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
7632         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
7634 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
7636         PR tree-optimization/71518
7637         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
7638         misalign also for outer loops with negative step.
7640 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
7642         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
7643         (cortex_a53_shift): Add mov_shift.
7644         (cortex_a53_shift_reg): Add new reservation for register shifts.
7645         (cortex_a53_alu): Remove bfm.
7646         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
7647         (cortex_a53_alu_extr): Add new reservation for EXTR.
7648         (bypasses): Improve bypass modelling.
7650 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7652         PR target/50739
7653         * config/avr/avr.c (avr_asm_select_section): Strip off
7654         SECTION_DECLARED from flags when calling get_section.
7656 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7658         * tree-vectorizer.h (vect_memory_access_type): Add
7659         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
7660         * tree-vect-stmts.c (compare_step_with_zero): New function.
7661         (perm_mask_for_reverse): Move further up file.
7662         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
7663         step is negative.
7664         (get_negative_load_store_type): New function.
7665         (get_load_store_type): Call it.  Add an ncopies argument.
7666         (vectorizable_mask_load_store): Update call accordingly and
7667         remove tests for negative steps.
7668         (vectorizable_store, vectorizable_load): Likewise.  Handle new
7669         memory_access_types.
7671 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7673         * tree-vectorizer.h (vect_memory_access_type): New enum.
7674         (_stmt_vec_info): Add a memory_access_type field.
7675         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
7676         (vect_model_store_cost): Take an access type instead of a boolean.
7677         (vect_model_load_cost): Likewise.
7678         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
7679         vect_model_store_cost and vect_model_load_cost.
7680         * tree-vect-stmts.c (vec_load_store_type): New enum.
7681         (vect_model_store_cost): Take an access type instead of a
7682         store_lanes_p boolean.  Simplify tests.
7683         (vect_model_load_cost): Likewise, but for load_lanes_p.
7684         (get_group_load_store_type, get_load_store_type): New functions.
7685         (vectorizable_store): Use get_load_store_type.  Record the access
7686         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
7687         (vectorizable_load): Likewise.
7688         (vectorizable_mask_load_store): Likewise.  Replace is_store
7689         variable with vls_type.
7691 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7693         * tree-vectorizer.h (vect_grouped_load_supported): Add a
7694         single_element_p parameter.
7695         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
7696         Check the PR65518 case here rather than in vectorizable_load.
7697         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
7698         * tree-vect-stmts.c (vectorizable_load): Likewise.
7700 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7702         * tree-vectorizer.h (gather_scatter_info): New structure.
7703         (vect_check_gather_scatter): Return a bool rather than a decl.
7704         Replace return-by-pointer arguments with a single
7705         gather_scatter_info *.
7706         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
7707         (vect_analyze_data_refs): Update call accordingly.
7708         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7709         (vectorizable_mask_load_store): Likewise.  Also record the
7710         offset dt and vectype in the gather_scatter_info.
7711         (vectorizable_store): Likewise.
7712         (vectorizable_load): Likewise.
7714 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7716         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
7717         strided groups, use the cost of N scalar accesses instead
7718         of ncopies vector accesses.
7719         (vect_model_load_cost): Likewise.
7721 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7723         * tree-vect-stmts.c (vect_cost_group_size): Delete.
7724         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
7725         variable to indicate when once-per-group costs are being used.
7726         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
7728 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7730         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
7731         peeling-for-gaps condition.
7733 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7735         * config/s390/s390.c (s390_expand_vec_init): Force initializer
7736         element to register if it doesn't match general_operand.
7738 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
7739             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7741         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
7742         prototype.
7743         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
7744         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
7745         (SIGNBIT): New mode iterator.
7746         (Fsignbit): New mode attribute.
7747         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
7748         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
7749         when direct moves are available.
7750         (signbit<mode>2_dm): New define_insn_and_split).
7751         (signbit<mode>2_dm2): New define_insn.
7753 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7755         PR rtl-optimization/71594
7756         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
7757         into subregs of appropriate mode before trying to emit a conditional
7758         move.
7760 2016-07-05  Jan Hubicka  <jh@suse.cz>
7762         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
7763         (simple_iv): Use it.
7765 2016-07-05  Jan Hubicka  <jh@suse.cz>
7767         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
7769 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
7771         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
7772         "offmemok".
7774 2016-07-05  Jan Hubicka  <jh@suse.cz>
7776         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
7777         IV can overflow.
7779 2016-07-05  Richard Biener  <rguenther@suse.de>
7781         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
7782         Handle empty else block.
7783         (is_feasible_trace): Likewise.
7784         (split_paths): Likewise.
7786 2016-07-05  Richard Biener  <rguenther@suse.de>
7788         * tree-loop-distribution.c (distribute_loop): Fix issue with
7789         the cost model loop.
7791 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
7793         * config/arm/neon-testgen.ml: Delete.
7794         * config/arm/neon.ml: Delete.
7796 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
7798         PR c++/71739
7799         * tree.c (attribute_value_equal): Use get_attribute_name instead of
7800         directly using TREE_PURPOSE.
7802 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
7804         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
7805         * config/aarch64/aarch64_neon.h: Likewise.
7806         * config/aarch64/arm_neon.h: Likewise.
7807         * config/aarch64/atomics.md: Likewise.
7808         * config/aarch64/aarch64-simd-builtins.def: Likewise.
7809         * doc/invoke.texi: Likewise.
7811 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7813         * config/s390/s390.md: Add "z13" cpu_facility.
7814         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
7815         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
7816         condition" type instructions.
7818 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7819             Jeff Law  <law@redhat.com>
7821         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
7822         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
7824 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
7826         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
7827         permutation for TARGET_AVX512F.
7828         (ix86_expand_vec_one_operand_perm_avx512): New function.
7829         (expand_vec_perm_1): Invoke introduced function.
7830         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
7831         it may be not valid after vectorization.
7833 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7835         PR target/63874
7836         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
7837         typo in comment.  Only force to memory if it is a weak
7838         external reference.
7840 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
7841             Jiong Wang  <jiong.wang@arm.com>
7843         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
7844         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
7845         (AARCH64_FL_F16): New.
7846         (AARCH64_FL_FOR_ARCH8_2): New.
7847         (AARCH64_ISA_8_2): New.
7848         (AARCH64_ISA_F16): New.
7849         (TARGET_FP_F16INST): New.
7850         (TARGET_SIMD_F16INST): New.
7851         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
7852         ("fp"): Disabling "fp" also disables "fp16".
7853         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
7854         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
7855         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
7856         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
7858 2016-07-04  Jan Beulich  <jbeulich@suse.com>
7860         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
7862 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
7864         PR target/71720
7865         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
7866         the insns, use an insn form that does not adjust the offset on
7867         little endian systems.
7869 2016-07-01  Jan Beulich  <jbeulich@suse.com>
7871         * varasm.c (get_variable_section): Validate initializer in
7872         named .bss-like sections.
7874 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7876         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
7877         Exchange the order of the second and third operands in the vpermr
7878         instruction tmeplate.
7880 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
7882         PR target/71698
7883         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
7884         Disallow TDmode values.
7886 2016-07-01  Alan Modra  <amodra@gmail.com>
7888         PR rtl-optimization/71709
7889         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
7890         being set, not referenced.
7892 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
7894         PR tree-optimization/70729
7895         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
7896         of loop since it can be not valid after transformation.
7898 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7900         * config/arm/arm.c (thumb_reload_in_hi): Delete.
7901         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
7903 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
7905         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
7906         for NULL decl.
7908 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
7910         PR target/71677
7911         * config/rs6000/constraints.md (wY constraint): New constraint to
7912         match the requirements for the LXSD and STXSD instructions.
7913         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
7914         predicate to match the requirements for the LXSD and STXSD
7915         instructions.
7916         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
7917         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
7918         to make sure that the bottom 2 bits of offset are 0, the address
7919         form is offsettable, and no updating is done in the address mode.
7920         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
7921         (movdi_internal32): Likewise
7922         (movdi_internal64): Likewise.
7924 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
7926         PR tree-optimization/71707
7927         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
7928         strinfo even for ADDR_EXPR ptr.
7930 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7932         * config/rs6000/altivec.md (darn_32): Change the condition to
7933         TARGET_P9_MISC instead of TARGET_MODULO.
7934         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
7935         condition expression.
7936         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
7937         condition expression.
7938         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
7939         (DFP_TEST): New code iterator.
7940         (dfptstsfi_<code>_mode>): New define_expand.
7941         (*dfp_sgnfcnc_<mode>): New define_insn.
7942         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
7943         definition next to BU_P9_MISC_1 definition and change the MASK
7944         value to RS6000_BTM_P9_MISC.
7945         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
7946         (BU_P9_64BIT_MISC_0): Likewise.
7947         (BU_P9_DFP_MISC_0): New macro definition.
7948         (BU_P9_DFP_MISC_1): New macro definition.
7949         (BU_P9_DFP_MISC_2): New macro definition.
7950         (BU_P9_DFP_OVERLOAD_1): New macro definition.
7951         (BU_P9_DFP_OVERLOAD_2): New macro definition.
7952         (BU_P9_DFP_OVERLOAD_3): New macro definition.
7953         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
7954         (TSTSFI_LT_TD): Likewise.
7955         (TSTSFI_EQ_DD): Likewise.
7956         (TSTSFI_EQ_TD): Likewise.
7957         (TSTSFI_GT_DD): Likewise.
7958         (TSTSFI_GT_TD): Likewise.
7959         (TSTSFI_OV_DD): Likewise.
7960         (TSTSFI_OV_TD): Likewise.
7961         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
7962         (TSTSFI_LT_DD): Likewise.
7963         (TSTSFI_LT_TD): Likewise.
7964         (TSTSFI_EQ): Likewise.
7965         (TSTSFI_EQ_DD): Likewise.
7966         (TSTSFI_EQ_TD): Likewise.
7967         (TSTSFI_GT): Likewise.
7968         (TSTSFI_GT_DD): Likewise.
7969         (TSTSFI_GT_TD): Likewise.
7970         (TSTSFI_OV): Likewise.
7971         (TSTSFI_OV_DD): Likewise.
7972         (TSTSFI_OV_TD): Likewise.
7973         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7974         overloaded test significance functions.
7975         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
7976         OPTION_MASK_P9_MISC into the representation of this mask.
7977         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
7978         of this mask.
7979         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
7980         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
7981         non-zero.
7982         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
7983         argument is a 6-bit unsigned literal value if the icode argument
7984         represents a DFP test significance built-in call.
7985         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
7986         flag used independently and in combination with the
7987         RS6000_BTM_64BIT flag.
7988         (rs6000_opt_masks): Add entry for power9-misc command-line option.
7989         (rs6000_builtin_mask_names): Add entry for power9-misc
7990         command-line option.
7991         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
7992         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
7993         RS6000_BTM_P9_MISC macros.
7994         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
7995         option and change the description of the -mpower9-vector option to
7996         enable only vector instructions, removing its erroneously claimed
7997         support for scalar instructions.
7998         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7999         the ISA 3.0 digital floating point test significance built-in
8000         functions.
8002 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
8004         * config/aarch64/aarch64.c (cortexa35_tunings):
8005         Enable AES fusion.  Use cortexa57_branch_cost.
8006         (cortexa53_tunings): Use cortexa57_branch_cost.
8007         (cortexa72_tunings): Use cortexa57_branch_cost.
8008         Use AUTOPREFETCHER_WEAK.
8009         (cortexa73_tunings): Use cortexa57_branch_cost.
8011 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8012             James Greenhalgh  <james.greenhalgh@arm.com>
8014         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
8015         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
8016         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
8017         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
8018         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
8019         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
8020         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
8021         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
8022         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
8023         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
8024         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
8025         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
8026         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
8027         New intrinsics.
8029 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
8030             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8032         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
8033         New define_insn.
8034         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
8036 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
8038         PR driver/71651
8039         * gcc.c (driver::build_option_suggestions): Pass "option" to
8040         add_misspelling_candidates.
8041         * opts-common.c (add_misspelling_candidates): Add "option" param;
8042         use it to avoid adding negated forms for options marked with
8043         RejectNegative.
8044         * opts.h (add_misspelling_candidates): Add "option" param.
8046 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
8048         PR middle-end/71693
8049         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
8050         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
8051         first when permuting bitwise operation with rotate.  Cast
8052         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
8054 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
8056         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
8057         for misspelled param names.
8058         * params.c: Include spellcheck.h.
8059         (find_param_fuzzy): New function.
8060         * params.h (find_param_fuzzy): New prototype.
8061         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
8062         * spellcheck.h (struct edit_distance_traits<const char *>):
8063         ...here.
8065 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
8067         * config/rs6000/predicates.md (const_0_to_7_operand): New
8068         predicate, recognize 0..7.
8069         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8070         support for doing extracts from V16QImode, V8HImode, V4SImode
8071         under ISA 3.0.
8072         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
8073         vector extract support.
8074         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
8075         for ISA 3.0 vector extract.
8076         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
8077         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
8078         extracts of a constant element number from small integer vectors
8079         on 64-bit ISA 3.0 systems.
8080         (vsx_extract_<mode>_di): Likewise.
8081         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
8082         say when we can do ISA 3.0 vector extracts.
8083         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
8084         registers, using the stxsiwx instruction.
8086 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
8088         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
8089         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
8090         qdf24xx_regmove_cost, qdf24xx_tunings): New.
8091         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
8092         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
8093         * config/arm/arm.c (arm_qdf24xx_tune): New.
8095 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
8097         * config/aarch64/aarch64.c (cortexa53_tunings):
8098         Increase loop alignment to 8.  Set function alignment to 16.
8099         (cortexa35_tunings): Likewise.
8100         (cortexa57_tunings): Increase loop alignment to 8.
8101         (cortexa72_tunings): Likewise.
8102         (cortexa73_tunings): Likewise.
8104 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
8106         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
8107         for arm_fp16_ok and arm_fp16_hw.
8108         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
8109         arm_fp16_alternative.
8111 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
8113         PR tree-optimization/71655
8114         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
8115         types when swapping operands.
8117 2016-06-29  Martin Liska  <mliska@suse.cz>
8119         PR middle-end/71585
8120         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
8121         * ipa-inline-transform.c (inline_call): Remove unnecessary call
8122         of build_optimization_node.
8124 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
8126         PR tree-optimization/70729
8127         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
8128         independent in loops having positive safelen value.
8129         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
8130         it may be not valid after vectorization.
8132 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
8134         PR tree-optimization/71625
8135         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
8136         is sorted by ascending list->offset.  If PTR is non-NULL and there is
8137         previous strinfo, call get_stridx_plus_constant.
8138         (get_stridx): Pass exp as second argument to get_addr_stridx.
8139         (addr_stridxptr): Add missing list = list->next, so that there can be
8140         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
8141         the list is sorted by ascending list->offset.
8142         (get_stridx_plus_constant): Adjust so that it can be also called with
8143         ADDR_EXPR instead of SSA_NAME as PTR.
8144         (handle_char_store): Pass NULL_TREE as second argument to
8145         get_addr_stridx.
8147 2016-06-29  Richard Biener  <rguenther@suse.de>
8149         PR rtl-optimization/68961
8150         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
8152 2016-06-29  Richard Biener  <rguenther@suse.de>
8154         PR middle-end/71002
8155         * alias.c (component_uses_parent_alias_set_from): Handle
8156         type punning through union accesses by using the union alias set.
8157         * gimple.c (gimple_get_alias_set): Remove union type punning case.
8159 2016-07-29  Richard Biener  <rguenther@suse.de>
8161         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
8162         precision not matching mode precision.
8164 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
8166         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
8167         pa_output_arg_descriptor.
8168         (call_val_symref_64bit_post_reload): Likewise.
8169         (call_val_powf_64bit_post_reload): Likewise.
8170         (sibcall_internal_symref_64bit): Likewise.
8171         (sibcall_value_internal_symref_64bit): Likewise.
8173 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
8175         PR middle-end/71626
8176         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
8177         a constant, force its SUBREG_REG into memory or register instead
8178         of whole op1.
8180 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
8182         PR target/58655
8183         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
8184         * doc/invoke.texi (AVR Options): Document it.
8186 2016-06-28  Walter Lee  <walt@tilera.com>
8188         * config/tilegx/linux.h: Do not include arch/icache.h
8189         (CLEAR_INSN_CACHE): Provide inlined definition directly.
8190         * config/tilepro/linux.h: Do not include arch/icache.h
8191         (CLEAR_INSN_CACHE): Provide inlined definition directly.
8193 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
8195         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
8196         for big-endian BIT_FIELD_REF.
8198 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
8200         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
8201         ('size' attribute): Add '128'.
8202         Include power9.md.
8203         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
8204         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
8205         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
8206         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
8207         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
8208         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
8209         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
8210         *trunc<mode>df2_odd): Set size attribute to '128'.
8211         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
8212         * config/rs6000/power6.md (power6-fp): Include dfp type.
8213         * config/rs6000/power7.md (power7-fp): Likewise.
8214         * config/rs6000/power8.md (power8-fp): Likewise.
8215         * config/rs6000/power9.md: New file.
8216         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
8217         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
8218         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
8219         htmsimple.
8220         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
8221         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
8222         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
8223         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
8224         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
8225         dfp_dscri_<mode>): Change type attribute to dfp.
8226         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
8227         attribute to vecsimple.
8228         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
8229         and prefetch streams.
8230         (rs6000_option_override_internal): Remove temporary code setting
8231         tuning to power8.  Don't set rs6000_sched_groups for power9.
8232         (last_scheduled_insn): Change to rtx_insn *.
8233         (divide_cnt, vec_load_pendulum): New variables.
8234         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
8235         (rs6000_issue_rate): Set issue rate for Power9.
8236         (is_power9_pairable_vec_type): New.
8237         (power9_sched_reorder2): New.
8238         (rs6000_sched_reorder2): Call new function for Power9 specific
8239         reordering.
8240         (insn_must_be_first_in_group): Remove Power9.
8241         (insn_must_be_last_in_group): Likewise.
8242         (force_new_group): Likewise.
8243         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
8244         Initialize divide_cnt/vec_load_pendulum.
8245         (_rs6000_sched_context, rs6000_init_sched_context,
8246         rs6000_set_sched_context): Handle context save/restore of new
8247         variables.
8249 2016-06-28  Richard Biener  <rguenther@suse.de>
8251         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8252         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
8253         COMPONENT_REF operand.
8254         (nonoverlapping_component_refs_p): Likewise.
8255         * stor-layout.c (start_bitfield_representative): Mark
8256         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
8258 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
8260         * Makefile.in: Don't cat ../stage_current if it does not exist.
8262         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
8263         last argument is a bit-field.
8265         PR rtl-optimization/71673
8266         * internal-fn.c (expand_arith_overflow_result_store): Use
8267         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
8268         expand_simple_binop.
8270         PR middle-end/66867
8271         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
8272         expand_ifn_atomic_compare_exchange): New functions.
8273         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
8274         * tree.h (build_call_expr_internal_loc): Rename to ...
8275         (build_call_expr_internal_loc_array): ... this.  Fix up type of
8276         last argument.
8277         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
8278         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
8279         ATOMIC_COMPARE_EXCHANGE result.
8280         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
8281         * gimple-fold.h (optimize_atomic_compare_exchange_p,
8282         fold_builtin_atomic_compare_exchange): New prototypes.
8283         * gimple-fold.c (optimize_atomic_compare_exchange_p,
8284         fold_builtin_atomic_compare_exchange): New functions..
8285         * tree-ssa.c (execute_update_addresses_taken): If
8286         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
8287         of call when finding addressable vars, and if such var becomes
8288         non-addressable, call fold_builtin_atomic_compare_exchange.
8290 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
8292         PR target/71670
8293         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
8294         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
8296 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
8298         * config/rs6000/rs6000.md ('type' attribute): Add
8299         veclogical,veccmpfx,vecexts,vecmove insn types.
8300         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
8301         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
8302         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
8303         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
8304         *nabs<mode>2_hw): Change type to vecmove.
8305         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
8306         *boolcc<mode>3_internal, *eqv<mode>3_internal,
8307         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
8308         *ieee_128bit_vsx_abs<mode>2_internal,
8309         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
8310         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
8311         *ieee128_mtvsrd_32bit): Change type to veclogical.
8312         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
8313         *movdi_internal32, *movdi_internal64): Update insn types.
8314         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
8315         vsx_extract_<mode>): Change type to veclogical.
8316         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
8317         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
8318         *vsx_sign_extend_si_v2di): Change type to vecexts.
8319         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
8320         type to veclogical.
8321         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
8322         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
8323         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
8324         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
8325         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
8326         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
8327         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
8328         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
8329         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
8330         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
8331         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
8332         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
8333         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
8334         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
8335         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
8336         (ppc7450-vecsimple): Add veclogical, vecmove.
8337         (ppc7450-veccmp): Add veccmpfx.
8338         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
8339         vecmove.
8340         (ppc8540_vector_compare): Add veccmpfx.
8341         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
8342         * config/rs6000/cell.md (cell-fp): Add fpsimple.
8343         (cell-vecsimple): Add veclogical, vecmove.
8344         (cell-veccmp): Add veccmpfx.
8345         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
8346         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
8347         veccmpfx.
8348         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
8349         * config/rs6000/power4.md (power4-fp): Add fpsimple.
8350         (power4-vecsimple): Add veclogical, vecmove.
8351         (power4-veccmp): Add veccmpfx.
8352         * config/rs6000/power5.md (power5-fp): Add fpsimple.
8353         * config/rs6000/power6.md (power6-fp): Add fpsimple.
8354         (power6-vecsimple): Add veclogical, vecmove.
8355         (power6-veccmp): Add veccmpfx.
8356         * config/rs6000/power7.md (power7-fp): Add fpsimple.
8357         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
8358         * config/rs6000/power8.md (power8-fp): Add fpsimple.
8359         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
8360         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
8361         * config/rs6000/titan.md (titan_fp): Add fpsimple.
8362         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
8363         fpsimple.
8364         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
8366 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
8368         PR target/71656
8369         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
8370         OPTION_MASK_P9_DFORM_VECTOR.
8371         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
8372         disable -mpower9-dform-vector when using reload.
8373         (quad_address_p): Remove 'gpr_p' argument and all associated code.
8374         New 'strict' argument.  Update all callers.  Add strict addressing
8375         support.
8376         (rs6000_legitimate_offset_address_p): Remove call to
8377         virtual_stack_registers_memory_p.
8378         (rs6000_legitimize_reload_address): Add quad address support.
8379         (rs6000_legitimate_address_p): Move call to quad_address_p above
8380         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
8381         to account for new strict usage.
8382         (rs6000_output_move_128bit): Adjust quad_address_p args to account
8383         for new strict usage.
8384         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
8386 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
8388         PR target/70902
8389         PR target/71453
8390         PR target/71555
8391         PR target/71596
8392         PR target/71657
8393         * config/i386/i386.c (ix86_spill_class): Disable condition to
8394         always return NO_REGS.
8396 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
8398         * predict.c: Include gimple-pretty-print.h
8399         (predicted_by_loop_heuristics_p): Check also
8400         PRED_LOOP_EXIT_WITH_RECURSION
8401         (predict_loops): Find self recursive calls and use special purpose
8402         predictors for them; dump log about decisions.
8403         (pass_profile::execute): Dump info about #of iterations.
8404         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
8405         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
8407 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
8409         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
8410         output_asm_insn calls and shorten long lines.  Output .CALL
8411         argument descriptor using pa_output_arg_descriptor.  Add various
8412         inline $$dyncall and other optimizations.
8413         (pa_attr_length_indirect_call): Adjust ordering and lengths.
8415 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
8417         PR tree-optimization/71643
8418         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
8419         EH preds.
8421         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
8422         leak a bitmap if dep_bb is NULL.
8424         PR tree-optimization/71631
8425         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
8426         to rewrite_expr_tree even if negate_result, move new_lhs var
8427         declaration and initialization earlier, for powi_result set afterwards
8428         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
8429         if new_lhs != lhs, and don't shadow gsi var.
8431 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
8433         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
8434         Add in_loop parameter.
8435         (predict_loops): Add loop guard heuristics.
8436         * predict.def (PRED_LOOP_GUARD): New heuristics.
8438 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
8440         * predict.c: Include ipa-utils.h
8441         (tree_bb_level_prediction): Predict recursive calls.
8442         (tree_estimate_probability_bb): Skip inexpensive calls for call
8443         predictor.
8444         * predict.def (PRED_RECURSIVE_CALL): New.
8446 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8448         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
8449         (BU_FLOAT128_1): Likewise.
8450         (FABSQ): Likewise.
8451         (COPYSIGNQ): Likewise.
8452         (RS6000_BUILTIN_NANQ): Likewise.
8453         (RS6000_BUILTIN_NANSQ): Likewise.
8454         (RS6000_BUILTIN_INFQ): Likewise.
8455         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
8456         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
8457         (TARGET_FOLD_BUILTIN): New #define.
8458         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
8459         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
8460         (rs6000_fold_builtin): New target hook implementation, handling
8461         folding of 128-bit NaNs and infinities.
8462         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
8463         entries are filled in to avoid problems during bootstrap
8464         self-test; define builtins for 128-bit NaNs and infinities.
8465         (rs6000_opt_mask): Add entry for float128.
8466         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
8467         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
8468         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
8469         (const_str_type_node): New #define.
8470         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
8471         to a define_expand that dispatches to either copysign<mode>3_soft
8472         or copysign<mode>3_hard.
8473         (copysign<mode>3_hard): Rename from copysign<mode>3.
8474         (copysign<mode>3_soft): New define_insn.
8475         * doc/extend.texi: Document new builtins.
8477 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8479         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
8480         PRIu64 instead of lu.
8482 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
8484         PR debug/71642
8485         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
8486         copy the type name.
8488 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8490         PR tree-optimization/71647
8491         * omp-low.c (lower_rec_input_clauses): Convert
8492         omp_clause_aligned_alignment (c) to size_type_node for the
8493         last argument of __builtin_assume_aligned.
8495 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8497         * configure.ac (calling ___tls_get_addr via GOT): New
8498         assembler/linker check.
8499         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
8500         assembler and linker supports calling ___tls_get_addr via GOT.
8501         Otherise, defined to 0.
8502         * config.in: Regenerated.
8503         * configure: Likewise.
8504         * config/i386/constraints.md (Yb): New constraint.
8505         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
8506         (REG_CLASS_NAMES): Likewise.
8507         (REG_CLASS_CONTENTS): Likewise.
8508         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
8509         the b constraint with the Yb constraint.  Call ___tls_get_addr
8510         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
8511         is 1.
8512         (*tls_local_dynamic_base_32_gnu): Likewise.
8513         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
8514         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
8515         (*tls_local_dynamic_base_64_<mode>): Likewise.
8517 2016-06-24  Martin Liska  <mliska@suse.cz>
8519         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
8520         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
8521         few functions.
8522         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
8523         argument to true if the expected number of iterations is
8524         loop-based.
8526 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
8528         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
8529         assemble for 32bit target.
8530         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
8531         and $ld_ix86_gld_32_opt to link for 32bit target.
8532         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
8533         * configure: Regenerate.
8535 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8537         * config/arm/arm.c (int_log2): Delete definition and prototype.
8538         (shift_op): Use exact_log2 instead of int_log2.
8539         (vfp3_const_double_for_fract_bits): Likewise.
8541 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8543         * internal-fn.c (expand_arith_set_overflow): New function.
8544         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
8545         Use it.
8546         (expand_arith_overflow_result_store): Likewise.  Handle precision
8547         smaller than mode precision.
8548         * tree-vrp.c (extract_range_basic): For imag part, handle
8549         properly signed 1-bit precision result.
8550         * doc/extend.texi (__builtin_add_overflow): Document that last
8551         argument can't be pointer to enumerated or boolean type.
8552         (__builtin_add_overflow_p): Document that last argument can't
8553         have enumerated or boolean type.
8555 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
8556             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8558         * config/rs6000/predicates.md (splat_input_operand): Rework.
8559         Don't allow constants, since the insns that use this predicate
8560         don't support constants.  Constants are handled by other insns
8561         that are created via combine.  During and after register
8562         allocation, only allow indexed or indirect addresses, and not
8563         general addresses.  Only allow modes supported by the hardware.
8564         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
8565         comment.  Move check for using VSPLTIS<x> to a common location,
8566         instead of doing it in two different places.
8568 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
8570         * config/i386/driver-i386.c (host_detect_local_cpu): Set
8571         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
8572         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
8573         signature_CENTAUR_ebx.
8575 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8577         PR target/66232
8578         PR target/67400
8579         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
8580         (as_ix86_gas_32_opt): This.
8581         (ld_ix86_tls_ldm_opt): Renamed to ...
8582         (ld_ix86_gld_32_opt): This.
8583         (R_386_TLS_LDM reloc): Updated.
8584         (R_386_GOT32X reloc): New assembler/linker check.
8585         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
8586         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
8587         defined to 0.
8588         * config.in: Regenerated.
8589         * configure: Likewise.
8590         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
8591         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
8592         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
8593         if ix86_force_load_from_GOT_p returns true.
8594         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
8595         ix86_force_load_from_GOT_p returns true.
8596         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
8597         the external function address via the GOT slot.
8598         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
8599         HAVE_AS_IX86_GOT32X before returning false.
8600         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
8601         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
8603 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
8605         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
8607 2016-06-23  Andi Kleen  <ak@linux.intel.com>
8609         * Makefile.in: Regenerate.
8610         * doc/install.texi: Document autoprofiledbootstrap.
8612 2016-06-23  Andi Kleen  <ak@linux.intel.com>
8614         * config/i386/gcc-auto-profile: New file.
8616 2016-06-23  Martin Liska  <mliska@suse.cz>
8618         PR middle-end/71619
8619         * predict.c (predict_loops): Revert the hunk that was removed
8620         in r237103.
8622 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
8624         * config.gcc: Add support for arm*-*-phoenix* targets.
8625         * config/arm/t-phoenix: New.
8626         * config/phoenix.h: New.
8628 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
8629             H.J. Lu  <hongjiu.lu@intel.com>
8631         PR target/67400
8632         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
8633         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
8634         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
8635         ix86_force_load_from_GOT_p returns true.
8636         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
8637         ix86_force_load_from_GOT_p returns true.
8638         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
8639         ix86_force_load_from_GOT_p returns true.
8640         (ix86_expand_move): Load the external function address via the
8641         GOT slot if ix86_force_load_from_GOT_p returns true.
8642         * config/i386/predicates.md (x86_64_immediate_operand): Return
8643         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
8644         (x86_64_zext_immediate_operand): Ditto.
8646 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
8648         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
8650 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
8652         PR c/70339
8653         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
8654         * diagnostic.c (pedwarn_at_rich_loc): New function.
8655         * spellcheck.h (best_match::best_match): Add a
8656         "best_distance_so_far" optional parameter.
8657         (best_match::set_best_so_far): New method.
8658         (best_match::get_best_distance): New accessor.
8659         (best_match::get_best_candidate_length): New accessor.
8661 2016-06-22  Nick Clifton  <nickc@redhat.com>
8663         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
8664         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
8665         modes are accepted as well.
8666         (ucompare_loc_descriptor): Likewise.
8667         (minmax_loc_descriptor): Likewise.
8668         (clz_loc_descriptor): Likewise.
8669         (popcount_loc_descriptor): Likewise.
8670         (bswap_loc_descriptor): Likewise.
8671         (rotate_loc_descriptor): Likewise.
8672         (mem_loc_descriptor): Likewise.
8673         (loc_descriptor): Likewise.
8675 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
8677         * common.opt (fdiagnostics-parseable-fixits): New option.
8678         * diagnostic.c: Include "selftest.h".
8679         (print_escaped_string): New function.
8680         (print_parseable_fixits): New function.
8681         (diagnostic_report_diagnostic): Call print_parseable_fixits.
8682         (selftest::assert_print_escaped_string): New function.
8683         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
8684         (selftest::test_print_escaped_string): New function.
8685         (selftest::test_print_parseable_fixits_none): New function.
8686         (selftest::test_print_parseable_fixits_insert): New function.
8687         (selftest::test_print_parseable_fixits_remove): New function.
8688         (selftest::test_print_parseable_fixits_replace): New function.
8689         (selftest::diagnostic_c_tests): New function.
8690         * diagnostic.h (struct diagnostic_context): Add field
8691         "parseable_fixits_p".
8692         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8693         -fdiagnostics-parseable-fixits.
8694         (-fdiagnostics-parseable-fixits): New option.
8695         * opts.c (common_handle_option): Handle
8696         -fdiagnostics-parseable-fixits.
8697         * selftest-run-tests.c (selftest::run_tests): Call
8698         selftest::diagnostic_c_tests.
8699         * selftest.h (selftest::diagnostic_c_tests): New prototype.
8701 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
8703         PR tree-optimization/71488
8704         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
8705         comparison of boolean vectors.
8706         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
8707         of boolean vectors using bitwise operations.
8709 2016-06-22  Andreas Schwab  <schwab@suse.de>
8711         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
8712         Remove declaration.
8714 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
8716         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
8718 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8720         * config/i386/i386.c (print_reg): Emit an error message on attempt to
8721         print FLAGS_REG.
8723 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8725         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
8726         * config/arm/arm-cores.def (cortex-a73): New entry.
8727         (cortex-a73.cortex-a35): Likewise.
8728         (cortex-a73.cortex-a53): Likewise.
8729         * config/arm/arm-tables.opt: Regenerate.
8730         * config/arm/arm-tune.md: Likewise.
8731         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
8732         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
8733         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
8734         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
8735         * doc/invoke.texi (ARM Options): Document cortex-a73,
8736         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
8738 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8740         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
8741         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
8742         (cortex-a73.cortex-a35): Likewise.
8743         (cortex-a73.cortex-a53): Likewise.
8744         * config/aarch64/aarch64-tune.md: Regenerate.
8745         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
8746         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
8747         -mcpu and -mtune.
8749 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8751         * configure.ac (gcc_cv_as_compress_debug): Remove
8752         --compress-debug-sections as extra as switch.
8753         Handle gas --compress-debug-sections=type.
8754         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
8755         Handle gld --compress-debug-sections=type.
8756         * configure: Regenerate.
8758 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8760         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
8762 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
8764         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
8765         (do_rewrite): likewise.
8767 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8769         * common/config/mep/mep-common.c: Remove.
8770         * config.gcc: Remove mep-* support.
8771         * config/mep/constraints.md: Remove.
8772         * config/mep/default.h: Remove.
8773         * config/mep/intrinsics.h: Remove.
8774         * config/mep/intrinsics.md: Remove.
8775         * config/mep/ivc2-template.h: Remove.
8776         * config/mep/mep-c5.cpu: Remove.
8777         * config/mep/mep-core.cpu: Remove.
8778         * config/mep/mep-default.cpu: Remove.
8779         * config/mep/mep-ext-cop.cpu: Remove.
8780         * config/mep/mep-intrin.h: Remove.
8781         * config/mep/mep-ivc2.cpu: Remove.
8782         * config/mep/mep-pragma.c: Remove.
8783         * config/mep/mep-protos.h: Remove.
8784         * config/mep/mep.c: Remove.
8785         * config/mep/mep.cpu: Remove.
8786         * config/mep/mep.h: Remove.
8787         * config/mep/mep.md: Remove.
8788         * config/mep/mep.opt: Remove.
8789         * config/mep/predicates.md: Remove.
8790         * config/mep/t-mep: Remove.
8791         * doc/install.texi: Remove mep-* documentation.
8792         * doc/md.texi: Likewise.
8794 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8796         * config.gcc: Remove support for avr-rtems.
8797         * config/avr/gen-avr-mmcu-specs.c: Likewise.
8798         * config/avr/rtems.h: Remove.
8799         * config/avr/t-rtems: Remove.
8801 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8803         * config.gcc: Remove m32r-rtems support.
8804         * config/m32r/rtems.h: Remove.
8806 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8808         * config.gcc: Remove h8300-rtems support.
8809         * config/h8300/rtems.h: Remove.
8810         * config/h8300/t-rtems: Remove.
8812 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8814         * config.gcc: Remove support for knetbsd.
8815         * configure.ac: Likewise.
8816         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
8817         * config/knetbsd-gnu.h: Remove.
8818         * configure: Regenerate.
8820 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8822         * config.gcc: Remove support for openbsd 2 and 3.
8823         * config/openbsd-oldgas.h: Remove.
8825 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8827         * config.gcc: Remove interix support.
8828         * config/i386/i386-interix.h: Remove.
8829         * config/i386/interix.opt: Remove.
8830         * config/i386/t-interix: Remove.
8831         * configure: Regenerate.
8832         * configure.ac: Remove interix support.
8833         * doc/install.texi: Remove interix documentation.
8835 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8837         * config/rs6000/rs6000.h: Add conditional preprocessing directives
8838         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
8839         not defined.
8841 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
8843         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
8844         they are both PLACEHOLDER_EXPRs.
8846 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8848         * stor-layout.c (layout_type): Move setting complex MODE to
8849         layout_type, instead of setting it ahead of time by the caller.
8850         * tree.c (build_complex_type): Likewise.
8852 2016-06-21  Martin Liska  <mliska@suse.cz>
8854         * predict.c (force_edge_cold): Replace imposisble with
8855         impossible.
8857 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
8859         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
8860         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
8862 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
8864         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
8866 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
8867             Ilya Enkovich  <ilya.enkovich@intel.com>
8869         PR target/71549
8870         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
8871         New member function to convert V1TImode register to SUBREG
8872         TImode in debug insn.
8873         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
8874         after changing register mode to V1TImode.
8876 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
8878         * config/aarch64/aarch64-cores.def (vulcan): New core.
8879         * config/aarch64/aarch64-tune.md: Regenerate.
8880         * doc/invoke.texi: Document vulcan as an available option.
8882 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
8884         * cse.c (canon_asm_operands): New function extracted from...
8885         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
8886         either standalone or member of a PARALLEL.
8888 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
8890         PR target/30417
8891         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
8892         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
8893         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
8895 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
8897         PR target/71103
8898         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
8899         constant addresses if can_create_pseudo_p.
8901 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
8903         PR tree-optimization/71588
8904         * tree-ssa-strlen.c (valid_builtin_call): New function.
8905         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
8906         it.
8908 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
8910         PR middle-end/71581
8911         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
8912         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
8913         for conversion of scalar user var to complex type and use the
8914         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
8915         punt.
8917         PR rtl-optimization/71591
8918         * toplev.c (toplev::run_self_tests): If no_backend, complain and
8919         don't run any tests.
8921 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
8923         PR target/71571
8924         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
8925         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
8926         space for PIC with non-v32 and the common non-PIC "jump".
8928 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
8930         PR target/71559
8931         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
8932         returned values and add UN*/LTGT/*ORDERED cases with values matching
8933         D operand modifier on vcmp for AVX.
8935 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
8937         * config/aarch64/aarch64.opt
8938         (mpc-relative-literal-loads): Rename internal option name.
8939         * config/aarch64/aarch64.c
8940         (aarch64_nopcrelative_literal_loads): Rename to
8941         aarch64_pcrelative_literal_loads.
8942         (aarch64_expand_mov_immediate): Likewise.
8943         (aarch64_secondary_reload): Likewise.
8944         (aarch64_can_use_per_function_literal_pools_p): Likewise.
8945         (aarch64_override_options_after_change_1): Rename and simplify logic.
8946         (aarch64_classify_symbol): Merge large model checks into switch,
8947         remove pc-relative load check.
8949 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
8951         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
8952         costs relative to the cost of a register move.
8954 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
8956         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
8957         (vcvt_n_f64_u64): Likewise.
8958         (vcvt_n_s64_f64): Likewise.
8959         (vcvt_n_u64_f64): Likewise.
8960         (vcvt_f64_s64): Likewise.
8961         (vrecpe_f64): Likewise.
8962         (vcvt_f64_u64): Likewise.
8963         (vrecps_f64): Likewise.
8965 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
8967         * config/aarch64/aarch64.md
8968         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
8969         iterators.
8970         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
8971         attributes.
8972         * config/aarch64/aarch64-builtins.c
8973         (aarch64_types_binop_uss_qualifiers): Delete.
8974         (TYPES_BINOP_USS): Likewise.
8975         (aarch64_types_binop_sus_qualifiers): Likewise.
8976         (TYPES_BINOP_SUS): Likewise.
8977         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
8978         (TYPES_FCVTIMM_SUS): Likewise.
8979         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
8980         rather than BINOP.
8981         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
8982         (fcvtzs): Use SHIFTIMM rather than BINOP.
8983         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
8985 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
8987         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
8988         costs relative to the cost of a register move.
8990 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
8992         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
8993         Allow scalar/single vector modes to be tieable.
8995 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
8997         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
8999 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9001         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
9002         "alignement".
9003         * tree.h (TYPE_ALIGN): Likewise.
9005 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
9007         PR target/71103
9008         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
9010 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
9012         * config/avr/avr.c (avr_print_operand): Fix "format not a string
9013         literal" build warnings.
9014         (avr_print_operand_address): Dito.
9016 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
9018         PR target/71375
9019         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
9020         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
9022 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
9024         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
9026 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
9028         PR bootstrap/71435
9029         * reload1.c (reload): Pass 0 to finish_spills when called because
9030         update_eliminables_and_spill returns true and remove did_spill.
9031         (finish_spills): Adjust comment and document GLOBAL parameter.
9033 2016-06-17  DJ Delorie  <dj@redhat.com>
9035         PR target/71338
9036         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
9037         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
9038         (umulqihi3_virt): Likewise.
9039         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
9040         (umulqihi3_real): Likewise.
9042 2016-06-17  Martin Liska  <mliska@suse.cz>
9044         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
9046 2016-06-17  Martin Liska  <mliska@suse.cz>
9048         * predict.def: PRED_LOOP_EXIT from 92 to 85.
9050 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
9052         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
9053         __FAST_MATH__.
9054         (vaddq_f32): Likewise.
9055         (vmul_f32): Likewise.
9056         (vmulq_f32): Likewise.
9057         (vsub_f32): Likewise.
9058         (vsubq_f32): Likewise.
9060 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
9062         PR tree-optimization/71347
9063         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
9064         cost for all uses in group.
9066 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
9068         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
9069         insert gimple seq if it's not empty.
9071 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
9073         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
9074         member OFFSET.
9075         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
9076         rather than OFFSET.
9077         (comp_dr_with_seg_len_pair): Ditto.
9078         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
9079         struct dr_with_seg_len_pair against DR_OFFSET.
9080         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
9081         DR_OFFSET directly.
9083 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9085         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
9087 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
9089         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
9090         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
9091         (pa_output_millicode_call): Likewise.
9092         (pa_output_call): Likewise.
9093         (pa_output_indirect_call): Likewise.
9094         (pa_asm_output_mi_thunk): Likewise.
9096 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9098         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
9100 2016-06-16  Martin Liska  <mliska@suse.cz>
9102         * predict.c (combine_predictions_for_insn): When we find a first
9103         match predictor, we should consider just predictors with
9104         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
9105         DS theory predictor.
9106         (combine_predictions_for_bb): Likewise.
9108 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
9110         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
9111         with base of reference to struct.
9113 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
9115         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
9117 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9119         PR target/71151
9120         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
9121         progmem_swtable_section.
9122         (progmem_swtable_section): Remove.
9123         (avr_asm_function_rodata_section): Remove.
9124         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
9125         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
9127 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
9129         * config/i386/driver-i386.c (host_detect_local_cpu): Set
9130         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
9131         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
9132         signature_CENTAUR_ebx.
9133         * config/i386/i386.c (ix86_option_override_internal): Add
9134         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
9135         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
9136         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
9138 2016-06-16  Martin Liska  <mliska@suse.cz>
9140         * predict.def: Add fortran loop preheader predictor.
9141         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
9142         fold IFN_BUILTIN_EXPECT with a known constant argument.
9144 2016-06-16  Martin Liska  <mliska@suse.cz>
9146         * predict.def: Add 'Fortran' to display text of all
9147         PRED_FORTRAN_* predictors.
9149 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
9151         PR target/71242
9152         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
9153         [IA64_BUILTIN_NANSQ]: Ditto.
9154         (ia64_fold_builtin): New function.
9155         (TARGET_FOLD_BUILTIN): New define.
9156         (ia64_init_builtins) Declare const_string_type node.
9157         Add __builtin_nanq and __builtin_nansq builtin functions.
9158         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
9160 2016-06-16  Nick Clifton  <nickc@redhat.com>
9162         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
9163         MSP430_HWMULT_ prefix to enum values.
9164         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
9165         * config/msp430/msp430.c: Update use of enum values.
9166         * config/msp430/msp430.md: Likewise.
9167         * config/msp430/msp430.opt: Likewise.
9169 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
9171         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
9172         of comparsions in the last iteration.
9174 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
9175             Joern Rennecke  <joern.rennecke@embecosm.com>
9177         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
9178         addresses.
9179         (arc_needs_pcl_p): Add GOTOFFPC.
9180         (arc_legitimate_pic_addr_p): Likewise.
9181         (arc_output_pic_addr_const): Likewise.
9182         (arc_legitimize_pic_address): Generate a pc-relative address using
9183         GOTOFFPC.
9184         (arc_output_libcall): Use @pcl syntax.
9185         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
9186         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
9187         (*movsi_insn): Use @pcl syntax.
9188         (doloop_begin_i): Likewise.
9190 2016-06-16  Martin Liska  <mliska@suse.cz>
9192         * predict.def: Define a new predictor.
9194 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
9196         * config/arc/arc.opt (mtp-regno): Update text.
9198 2016-06-16  Renlin Li  <renlin.li@arm.com>
9200         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
9202 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
9204         PR target/71554
9205         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
9206         (setcc + and peephole2): Likewise.
9208         PR rtl-optimization/71532
9209         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
9210         memory slots.
9212 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
9214         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
9215         DImode constants with XXSPLTIB in vector registers.
9216         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
9217         vsx_extract_<mode>_internal{1,2} into a single insn that handles
9218         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
9219         extraction of the element at the top of the register as a scalar
9220         value.
9221         (vsx_extract_<mode>_internal1): Likewise.
9222         (vsx_extract_<mode>_internal2): Likewise.
9223         * config/rs6000/constraints.md (wi constraint): Remove a comment
9224         about DImode not being allowed in Altivec registers.
9225         (wB constraint): New constraint for constants that can be
9226         generated in Altivec registers with VSPLTISW/VUPKHSW.
9227         * config/rs6000/predicates.md (xxspltib_constant_split): Update
9228         comments.
9229         (xxspltib_constant_nosplit): Likewise.
9230         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
9231         support for -mupper-regs-di to enable DImode to go into Altivec
9232         registers.
9233         (POWERPC_MASKS): Likewise.
9234         (power7 cpu): Likewise.
9235         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
9236         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
9237         for DImode being allowed in Altivec registers.  Update wi/wj
9238         constraints.  Set scalar_in_vmx_p flag.
9239         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
9240         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
9241         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
9242         (rs6000_opt_masks): Add -mupper-regs-di.
9243         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
9244         direct move to use wi and not wj.
9245         (lfiwzx): Likewise.
9246         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
9247         alternative.
9248         (floatunssi<mode>2_lfiwzx_mem): Likewise.
9249         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
9250         any VSX register, instead of just Altivec registers, to allow
9251         either operand to be an Altivec register or both.
9252         (fixuns_trunc<mode>di2_fctiduz): Likewise.
9253         (movdi_internal32): Add support for -mupper-regs-di.  Add support
9254         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
9255         the alternatives and attributes to be lined up to be easier to
9256         read.
9257         (movdi_internal64): Likewise.
9258         (64-bit DImode splitters): Change predicates to only split loading
9259         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
9260         load constants in ISA 3.0 or ISA 2.07 respectively.
9261         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9262         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
9263         mention -mcpu=power9 sets these options.
9264         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
9265         wB constraint.
9267 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9269         PR target/67353
9270         * config/avr/avr.c (avr_set_current_function): Warn misspelled
9271         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
9272         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
9273         by default to warn misspelled interrupt/ signal handler.
9274         * doc/invoke.texi (AVR Options): Document it. Update description
9275         for -nodevicelib option.
9277 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9279         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
9280         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
9281         (aarch64_<sur>shll2_n<mode>): Likewise.
9283 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
9285         PR middle-end/71529
9286         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
9287         DECL_CONTEXT for copied arguments.
9289 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
9291         PR tree-optimization/71483
9292         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
9293         for slp
9295 2016-06-15  Martin Liska  <mliska@suse.cz>
9297         * predict.c (tree_predict_by_opcode): Call predict_edge_def
9298         instead of predict_edge w/o a probability.
9300 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
9302         PR tree-optimization/71439
9303         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
9304         live PHIs.
9306 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9308         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
9309         register subregs in SET_SRC.
9311 2016-06-15  Richard Biener  <rguenther@suse.de>
9313         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
9314         store restrictions.
9316 2016-06-15  Richard Biener  <rguenther@suse.de>
9318         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
9319         not consider dependences between accesses that belong to the
9320         same group.
9321         (vect_analyze_data_ref_dependences): Do not analyze read-read
9322         or self-dependences.
9324 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
9326         * spellcheck-tree.c: Include spellcheck-tree.h rather than
9327         spellcheck.h.
9328         (find_closest_identifier): Reimplement in terms of
9329         best_match<tree,tree>.
9330         * spellcheck-tree.h: New file.
9331         * spellcheck.c (struct edit_distance_traits<const char *>): New
9332         struct.
9333         (find_closest_string): Reimplement in terms of
9334         best_match<const char *, const char *>.
9335         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
9336         overload to spellcheck-tree.h.
9337         (find_closest_identifier): Likewise.
9338         (struct edit_distance_traits<T>): New template.
9339         (class best_match): New class.
9341 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
9343         * selftest-run-tests.c (selftest::run_tests): Call
9344         selftest::spellcheck_tree_c_tests.
9345         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
9346         * spellcheck-tree.c: Include selftest.h and stringpool.h.
9347         (selftest::test_find_closest_identifier): New function.
9348         (selftest::spellcheck_tree_c_tests): New function.
9349         * spellcheck.c (selftest::test_find_closest_string): Verify that
9350         the order of the vec does not affect the results for this case.
9351         (selftest::test_data): New array.
9352         (selftest::test_metric_conditions): New function.
9353         (selftest::spellcheck_c_tests): Add a test of case-comparison.
9354         Call selftest::test_metric_conditions.
9356 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9358         * config/rs6000/rs6000-builtin.def (commentary): Typo.
9359         (BU_P9_MISC_1): Likewise.
9360         (BU_P9_64BIT_MISC_0): Likewise.
9361         (BU_P9_MISC_0): Likewise.
9363 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
9365         * gcc-rich-location.c
9366         (gcc_rich_location::add_fixit_misspelled_id): New method.
9367         * gcc-rich-location.h
9368         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
9370 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
9372         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
9373         FreeBSD 11 and above.
9375 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
9377         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
9379 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9381         * expmed.h: Close parenthesis in "at your option" in copyright
9382         boilerplate.
9383         * lower-subreg.h: Likewise.
9385 2016-06-14  Richard Biener  <rguenther@suse.de>
9387         PR middle-end/71526
9388         * genmatch.c (expr::gen_transform): Use in_type for comparisons
9389         if available.
9391 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9393         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
9394         New function.
9395         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
9396         mask+shift version.
9397         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
9398         New prototype.
9399         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
9400         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
9402 2016-06-14  Richard Biener  <rguenther@suse.de>
9404         PR tree-optimization/71522
9405         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
9406         copying into float copying.
9408 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
9410         PR tree-optimization/71520
9411         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
9412         (replace_block_by): Move user labels from bb1 to bb2.
9414 2016-06-14  Richard Biener  <rguenther@suse.de>
9416         PR middle-end/71310
9417         PR bootstrap/71510
9418         * expr.h (get_bit_range): Declare.
9419         * expr.c (get_bit_range): Export.
9420         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
9421         word_mode again to constrain the bitfield access.
9423 2016-06-14  Richard Biener  <rguenther@suse.de>
9425         PR tree-optimization/71521
9426         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
9427         division int_const_binop against zero divisor.
9429 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
9431         * config/i386/i386.md (signbittf2): New expander.
9432         * config/i386/sse.md (ptesttf2): New insn pattern.
9434 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9436         PR bootstrap/71481
9437         * input.c (selftest::test_reading_source_line): Avoid reading from
9438         __FILE__ by creating a tempfile with known content and reading
9439         from that instead.
9441 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9443         * pretty-print.c (assert_pp_format_colored): Skip the test if
9444         GCC_COLORS is set.
9445         (test_pp_format): Remove comment about GCC_COLORS.
9447 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9449         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
9450         * pretty-print.c (assert_pp_format_va): Add location param and use
9451         it with ASSERT_STREQ_AT.
9452         (assert_pp_format): Add location param and pass it to
9453         assert_pp_format_va.
9454         (assert_pp_format_colored): Likewise.
9455         (ASSERT_PP_FORMAT_1): New.
9456         (ASSERT_PP_FORMAT_2): New.
9457         (ASSERT_PP_FORMAT_3): New.
9458         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
9459         explicitly, or implicitly via the above macros.
9460         * selftest.c (selftest::pass): Use a selftest::location rather
9461         than file and line.
9462         (selftest::fail): Likewise.  Print the function name.
9463         (selftest::fail_formatted): Likewise.
9464         (selftest::assert_streq): Use a selftest::location rather than
9465         file and line.
9466         * selftest.h (selftest::location): New struct.
9467         (SELFTEST_LOCATION): New macro.
9468         (selftest::pass): Accept a const location & rather than file
9469         and line.
9470         (selftest::fail): Likewise.
9471         (selftest::fail_formatted): Likewise.
9472         (selftest::assert_streq): Likewise.
9473         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
9474         (ASSERT_FALSE): Likewise.
9475         (ASSERT_EQ): Likewise.
9476         (ASSERT_NE): Likewise.
9477         (ASSERT_STREQ): Likewise.
9478         (ASSERT_PRED1): Likewise.
9479         (ASSERT_STREQ_AT): New macro.
9481 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9483         * selftest.c (selftest::fail_formatted): New function.
9484         (selftest::assert_streq): New function.
9485         * selftest.h (selftests::fail_formatted): New decl.
9486         (selftest::assert_streq): New decl.
9487         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
9489 2016-06-13  Jeff Law  <law@redhat.com>
9491         PR tree-optimization/71403
9492         * tree-ssa-threadbackward.c
9493         (convert_and_register_jump_thread_path): No longer accept reference
9494         to path.  Do not pop items off the path anymore.
9495         (fsm_find_control_statement_thread_paths): Do not allow threading
9496         to a deeper loop nest.  Pop the last item off the path here rather
9497         than in convert_and_register_jump_thread_path.
9499 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
9500             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
9502         [AArch64] Emit division using the Newton series
9504         * config/aarch64/aarch64-protos.h
9505         (cpu_approx_modes): Add new member "division".
9506         (aarch64_emit_approx_div): Declare new function.
9507         * config/aarch64/aarch64.c
9508         (generic_approx_modes): New member "division".
9509         (exynosm1_approx_modes): Likewise.
9510         (xgene1_approx_modes): Likewise.
9511         (aarch64_emit_approx_div): Define new function.
9512         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
9513         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
9514         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
9515         * doc/invoke.texi (-mlow-precision-div): Describe new option.
9517 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
9518             Wilco Dijkstra  <wilco.dijkstra@arm.com>
9520         [AArch64] Emit square root using the Newton series
9522         * config/aarch64/aarch64-protos.h
9523         (aarch64_emit_approx_rsqrt): Replace with new function
9524         "aarch64_emit_approx_sqrt".
9525         (cpu_approx_modes): New member "sqrt".
9526         * config/aarch64/aarch64.c
9527         (generic_approx_modes): New member "sqrt".
9528         (exynosm1_approx_modes): Likewise.
9529         (xgene1_approx_modes): Likewise.
9530         (aarch64_emit_approx_rsqrt): Replace with new function
9531         "aarch64_emit_approx_sqrt".
9532         (aarch64_override_options_after_change_1): Handle new option.
9533         * config/aarch64/aarch64-simd.md
9534         (rsqrt<mode>2): Use new function instead.
9535         (sqrt<mode>2): New expansion and insn definitions.
9536         * config/aarch64/aarch64.md: Likewise.
9537         * config/aarch64/aarch64.opt
9538         (mlow-precision-sqrt): Add new option description.
9539         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
9541 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
9543         [AArch64] Add more choices for the reciprocal square root approximation
9545         Allow a target to prefer such operation depending on the operation mode.
9547         * config/aarch64/aarch64-protos.h
9548         (AARCH64_APPROX_MODE): New macro.
9549         (AARCH64_APPROX_{NONE,ALL}): Likewise.
9550         (cpu_approx_modes): New structure.
9551         (tune_params): New member "approx_modes".
9552         * config/aarch64/aarch64-tuning-flags.def
9553         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
9554         * config/aarch64/aarch64.c
9555         (generic_approx_modes): New core "cpu_approx_modes" structure.
9556         (exynosm1_approx_modes): Likewise.
9557         (xgene1_approx_modes): Likewise.
9558         (generic_tunings): New member "approx_modes".
9559         (cortexa35_tunings): Likewise.
9560         (cortexa53_tunings): Likewise.
9561         (cortexa57_tunings): Likewise.
9562         (cortexa72_tunings): Likewise.
9563         (exynosm1_tunings): Likewise.
9564         (thunderx_tunings): Likewise.
9565         (xgene1_tunings): Likewise.
9566         (use_rsqrt_p): New argument for the mode and use new member from
9567         "tune_params".
9568         (aarch64_builtin_reciprocal): Devise mode from builtin.
9569         (aarch64_optab_supported_p): New argument for the mode.
9570         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
9572 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9574         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
9575         RS6000_BTM_MODULO flag into the set of flags that are considered
9576         to be part of the common configuration.
9578 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9580         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
9581         difference unsigned.
9582         (vec_absdb): New macro for vector absolute difference unsigned
9583         byte.
9584         (vec_absdh): New macro for vector absolute difference unsigned
9585         half-word.
9586         (vec_absdw): New macro for vector absolute difference unsigned word.
9587         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
9588         (vadu<mode>3): New insn.
9589         (*p9_vadu<mode>3): New insn.
9590         * config/rs6000/rs6000-builtin.def (vadub): New built-in
9591         definition.
9592         (vaduh): New built-in definition.
9593         (vaduw): New built-in definition.
9594         (vadu): New overloaded built-in definition.
9595         (vadub): New overloaded built-in definition.
9596         (vaduh): New overloaded built-in definition.
9597         (vaduw): New overloaded built-in definition.
9598         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9599         overloaded vector absolute difference unsigned functions.
9600         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9601         the ISA 3.0 vector absolute difference unsigned built-in functions.
9603 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
9605         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
9606         update shared_lookup_references only once after changing operands.
9608 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
9610         PR middle-end/71373
9611         * tree-nested.c (convert_nonlocal_omp_clauses)
9612         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
9614         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
9615         * tree.def (CASE_LABEL_EXPR): Likewise.
9617 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9619         PR bootstrap/71481
9620         * input.c (test_builtins): Fix an assertion.
9622 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
9624         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
9625         (paritysi2): Ditto.
9626         (isinfxf2): Ditto.
9627         (isinf<mode>2): Ditto.
9629 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
9631         * ggc-tests.c (test_finalization): Only test need_finalization_p
9632         for GCC_VERSION >= 4003.
9634 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9636         * config/s390/vecintrin.h: Fix file description in comment.
9638 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9640         * config/s390/s390-builtin-types.def: Change builtin type naming
9641         scheme to match builtin-types.def.
9643 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
9645         * fold-const.c (optimize_minmax_comparison): Remove.
9646         (fold_comparison): Remove call to the above.
9647         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
9648         New transformations.
9650 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
9652         PR tree-optimization/71416
9653         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
9654         multiple entries
9656 2016-06-13  Martin Liska  <mliska@suse.cz>
9658         * predict.c (enum predictor_reason): Prefix enum with REASON_.
9659         (combine_predictions_for_insn): Likewise.
9660         (prune_predictions_for_bb): Likewise.
9661         (combine_predictions_for_bb): Likewise.
9663 2016-06-13  Richard Biener  <rguenther@suse.de>
9665         PR tree-optimization/71505
9666         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
9667         assert match comment.
9669 2016-06-13  Marek Polacek  <polacek@redhat.com>
9671         PR middle-end/71476
9672         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
9673         gimplify_switch_expr.
9674         (warn_switch_unreachable_r): New function.
9676 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9678         PR target/71379
9679         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
9680         one.
9682 2016-06-13  Richard Biener  <rguenther@suse.de>
9684         PR middle-end/64516
9685         * fold-const.c (fold_unary_loc): Preserve alignment when
9686         folding a VIEW_CONVERT_EXPR into a MEM_REF.
9688 2016-06-13  Martin Liska  <mliska@suse.cz>
9690         PR sanitizer/71458
9691         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
9692         w/ -fsanitize=bounds.
9694 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
9696         * config/i386/i386.c (ix86_init_builtins): Calculate
9697         FLOAT128_FTYPE_CONST_STRING function type only once.
9698         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
9699         built-in functions are available for x86-32 and x86-64 targets.
9701 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
9703         PR target/71241
9704         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
9705         New primitive type.
9706         (FLOAT128_FTYPE_CONST_STRING): New function type.
9707         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
9708         [IX86_BUILTIN_NANSQ]: Ditto.
9709         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
9710         (ix86_init_builtin_types): Declare const_string_type_node.
9711         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
9712         builtin functions.
9713         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
9714         * doc/extend.texi (x86 Built-in Functions): Document
9715         __builtin_nanq and __builtin_nansq.
9717 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
9719         PR target/71061
9720         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
9721         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
9722         length for pop patterns.
9723         (arm_attr_length_push_multi): Update comments.
9724         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
9725         attribute.
9726         (*pop_multiple_with_writeback_and_return): Likewise.
9727         (*pop_multiple_with_return): Likewise.
9729 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
9731         PR middle-end/71310
9732         * fold-const.c (optimize_bit_field_compare): Don't try to use
9733         word_mode unconditionally for reading the bit field, look at
9734         DECL_BIT_FIELD_REPRESENTATIVE instead.
9736 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
9738         PR middle-end/71478
9739         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
9740         vector integer type.
9742 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
9744         PR middle-end/71494
9745         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
9746         without LABEL_DECL, set *handled_ops_p to false instead of true.
9748 2016-06-10  Martin Sebor  <msebor@redhat.com>
9750         PR c/71392
9751         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
9752         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
9753         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
9754         them.
9755         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
9756         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
9757         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
9758         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
9759         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
9760         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
9761         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
9762         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
9764 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9766         * config/arm/arm.h (pool_vector_label,
9767         return_used_this_function): Remove.
9769 2016-06-10  Jeff Law  <law@redhat.com>
9771         PR tree-optimization/71335
9772         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
9773         zero length paths here.
9774         (convert_and_register_jump_thread_path): Remove hacks related to
9775         duplicated blocks in the jump thread path.
9776         (fsm_find_control_statement_thread_paths): Avoid putting the same
9777         block on the thread path twice, but ensure the thread path is
9778         unchanged from the caller's point of view.
9780 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
9782         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
9783         * predict.def (PRED_LOOP_BRANCH): Remove.
9785 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
9787         * Makefile.in (OBJS): Add ggc-tests.o.
9788         (GTFILES): Add ggc-tests.c.
9789         * ggc-tests.c: New file.
9790         * selftest-run-tests.c (selftest::run_tests): Call
9791         selftest::ggc_tests_c_tests.
9792         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
9794 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
9796         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
9798 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
9800         PR sanitizer/71480
9801         * varasm.c (place_block_symbol): Adjust alignment for asan protected
9802         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
9804 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
9806         * profile.c: Include cfgloop.h.
9807         (branch_prob): Compute estimated number of iterations.
9808         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
9809         recompute estimate number of iterations from profile.
9811 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9813         PR inline-asm/68843
9814         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
9815         must be grouped on top of stack.  Don't force early clobber
9816         on ordinary reg outputs.
9818 2016-06-10  Richard Biener  <rguenther@suse.de>
9820         * targhooks.c (default_builtin_vectorization_cost): Adjust
9821         vec_construct cost.
9823 2016-06-10  Richard Biener  <rguenther@suse.de>
9825         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
9826         to fold the RHS to a constant if possible.
9828 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
9830         PR middle-end/71373
9831         * tree-nested.c (convert_nonlocal_omp_clauses)
9832         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
9833         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
9834         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
9836         * gimplify.c (gimplify_adjust_omp_clauses): Discard
9837         OMP_CLAUSE_TILE.
9838         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
9840         * omp-low.c (scan_sharing_clauses): Don't expect
9841         OMP_CLAUSE__CACHE_.
9843 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
9845         PR tree-optimization/71407
9846         PR tree-optimization/71416
9847         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
9848         BIT_FIELD_REF type.
9850 2016-06-10  Richard Biener  <rguenther@suse.de>
9852         PR middle-end/71477
9853         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
9855 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
9857         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
9859 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
9860             Jiong Wang  <jiong.wang@arm.com>
9862         PR rtl-optimization/70751
9863         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
9864         spilled into memory.
9866 2016-06-09  Jonathan Yong  <10walls@gmail.com>
9868         Revert:
9869         2015-09-21  Jonathan Yong  <10walls@gmail.com>
9871         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
9872         sysroot/usr/lib/32api for additional win32 libraries,
9873         fixes failing Cygwin bootstrapping.
9875 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
9877         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
9878         Delete.
9880 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
9882         PR bootstrap/71471
9883         * pretty-print.c (pp_indent): Specify that %p is printed in a
9884         host-dependent manner.
9885         (test_pp_format): Remove the test for %p.
9887 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
9889         * config/mips/mips.c (mips_output_jump): Fix formatting.
9891 2016-06-09  Richard Biener  <rguenther@suse.de>
9893         PR tree-optimization/71462
9894         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
9895         removed blocks.
9897 2016-06-09  Martin Liska  <mliska@suse.cz>
9899         * predict.c (dump_prediction): Add new argument.
9900         (enum predictor_reason): New enum.
9901         (struct predictor_hash): New struct.
9902         (predictor_hash::hash): New function.
9903         (predictor_hash::equal): Likewise.
9904         (not_removed_prediction_p): New function.
9905         (prune_predictions_for_bb): Likewise.
9906         (combine_predictions_for_bb): Prune predictions.
9908 2016-06-09  Martin Liska  <mliska@suse.cz>
9910         * predict.c (filter_predictions): New function.
9911         (remove_predictions_associated_with_edge): Use the filter
9912         function.
9913         (equal_edge_p): New function.
9915 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
9917         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
9918         Correct usage of @samp vs @option, add @samp where appropriate.
9919         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
9920         Add armv6s-m and document it, as it is no official ARM name.
9922 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9924         * ifcvt.c (struct noce_if_info): Add transform_name field.
9925         (noce_try_move): Set if_info->transform_name to the function name.
9926         (noce_try_ifelse_collapse): Likewise.
9927         (noce_try_store_flag): Likewise.
9928         (noce_try_inverse_constants): Likewise.
9929         (noce_try_store_flag_constants): Likewise.
9930         (noce_try_addcc): Likewise.
9931         (noce_try_store_flag_mask): Likewise.
9932         (noce_try_cmove): Likewise.
9933         (noce_try_cmove_arith): Likewise.
9934         (noce_try_minmax): Likewise.
9935         (noce_try_abs): Likewise.
9936         (noce_try_sign_mask): Likewise.
9937         (noce_try_bitop): Likewise.
9938         (noce_convert_multiple_sets): Likewise.
9939         (noce_process_if_block): Print if_info->transform_name to
9940         dump_file if transformation succeeded.
9942 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9944         * config/arm/cortex-a57.md (cortex_a57_alu):
9945         Handle csel type.
9947 2016-06-08  Martin Sebor  <msebor@redhat.com>
9948             Jakub Jelinek  <jakub@redhat.com>
9950         PR c++/70507
9951         PR c/68120
9952         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
9953         BUILT_IN_MUL_OVERFLOW_P): New builtins.
9954         * builtins.c: Include gimple-fold.h.
9955         (fold_builtin_arith_overflow): Handle
9956         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
9957         (fold_builtin_3): Likewise.
9958         * doc/extend.texi (Integer Overflow Builtins): Document
9959         __builtin_{add,sub,mul}_overflow_p.
9961 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
9963         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
9964         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
9966 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
9968         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
9969         Rewrite, looking one level down for records and arrays.
9971 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
9973         * pretty-print.c: Include "selftest.h".
9974         (pp_format): Fix comment.
9975         (identifier_to_locale): Likewise.
9976         (selftest::test_basic_printing): New function.
9977         (selftest::assert_pp_format): New function.
9978         (selftest::test_pp_format): New function.
9979         (selftest::pretty_print_c_tests): New function.
9980         * selftest-run-tests.c (selftest::run_tests): Call
9981         selftest::pretty_print_c_tests.
9982         * selftest.h (pretty_print_c_tests): New declaration.
9984 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
9986         * invoke.texi (max-loop-headers-insns): Document.
9987         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
9988         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
9989         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
9991 2016-06-08  Richard Biener  <rguenther@suse.de>
9993         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
9994         on strided SLP loads and fall back to scalar loads in case
9995         we can't chunk them.
9997 2016-06-08  Richard Biener  <rguenther@suse.de>
9999         PR tree-optimization/71452
10000         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
10001         type used for the SSA rewrite has enough precision to cover
10002         the dynamic type of the location.
10004 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
10005             Richard Biener  <rguenther@suse.de>
10007         PR c++/71448
10008         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
10009         the same as DECL_P (base0) for indirect_base0.  Use equality_code
10010         in one further place.
10012 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
10014         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
10015         to one word if the field is known to overlap other words.
10016         (extract_bit_field_1): Likewise.
10017         (store_split_bit_field): Remove compensating code.
10018         (extract_split_bit_field): Likewise.
10020 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
10022         PR debug/71432
10023         PR ada/71413
10024         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
10026 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10028         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
10029         VDQF.
10030         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
10031         (arch64_addpv4sf): Delete.
10032         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
10033         "gen_aarch64_addpv4sf".
10034         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
10035         builtin.
10036         (vpadds_f32): Likewise.
10037         (vpaddq_f32): Likewise.
10038         (vpaddq_f64): Likewise.
10040 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10042         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
10043         VALLF.
10044         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
10045         to VALLF.  Rename to "fabd<mode>3".
10046         "*fabd_scalar<mode>3): Delete.
10047         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
10048         Use builtin.
10049         (vabdd_f64): Likewise.
10050         (vabd_f32): Likewise.
10051         (vabd_f64): Likewise.
10052         (vabdq_f32): Likewise.
10053         (vabdq_f64): Likewise.
10055 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10057         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
10058         VALLF.
10059         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
10060         "aarch64_rsqrts<mode>".
10061         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
10062         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
10063         builtin.
10064         (vrsqrtsd_f64): Likewise.
10065         (vrsqrts_f32): Likewise.
10066         (vrsqrts_f64): Likewise.
10067         (vrsqrtsq_f32): Likewise.
10068         (vrsqrtsq_f64): Likewise.
10070 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10072         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
10073         VALLF.
10074         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
10075         "aarch64_rsqrte<mode>".
10076         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
10077         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
10078         builtin.
10079         (vrsqrted_f64): Likewise.
10080         (vrsqrte_f32): Likewise.
10081         (vrsqrte_f64): Likewise.
10082         (vrsqrteq_f32): Likewise.
10083         (vrsqrteq_f64): Likewise.
10085 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10087         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
10088         (ucvtf): Likewise.
10089         (fcvtzs): Likewise.
10090         (fcvtzu): Likewise.
10091         * config/aarch64/aarch64-simd.md
10092         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
10093         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
10094         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
10095         Use builtin.
10096         (vcvt_n_f32_u32): Likewise.
10097         (vcvt_n_s32_f32): Likewise.
10098         (vcvt_n_u32_f32): Likewise.
10099         (vcvtq_n_f32_s32): Likewise.
10100         (vcvtq_n_f32_u32): Likewise.
10101         (vcvtq_n_f64_s64): Likewise.
10102         (vcvtq_n_f64_u64): Likewise.
10103         (vcvtq_n_s32_f32): Likewise.
10104         (vcvtq_n_s64_f64): Likewise.
10105         (vcvtq_n_u32_f32): Likewise.
10106         (vcvtq_n_u64_f64): Likewise.
10107         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
10108         (VSDQ_SDI): Likewise.
10109         (fcvt_target): Support V4DI, V4SI and V2SI.
10110         (FCVT_TARGET): Likewise.
10112 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10114         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
10115         (TYPES_BINOP_SUS): Likewise.
10116         (aarch64_simd_builtin_data): Update include file name.
10117         (aarch64_builtins): Likewise.
10118         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
10119         for conversion between scalar float-point and fixed-point.
10120         (ucvtf): Likewise.
10121         (fcvtzs): Likewise.
10122         (fcvtzu): Likewise.
10123         * config/aarch64/aarch64.md
10124         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
10125         pattern for conversion between scalar float to fixed-pointer.
10126         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
10127         (UNSPEC_FCVTZS): New UNSPEC enumeration.
10128         (UNSPEC_FCVTZU): Likewise.
10129         (UNSPEC_SCVTF): Likewise.
10130         (UNSPEC_UCVTF): Likewise.
10131         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
10132         Use builtin.
10133         (vcvtd_n_f64_u64): Likewise.
10134         (vcvtd_n_s64_f64): Likewise.
10135         (vcvtd_n_u64_f64): Likewise.
10136         (vcvtd_n_f32_s32): Likewise.
10137         (vcvts_n_f32_u32): Likewise.
10138         (vcvtd_n_s32_f32): Likewise.
10139         (vcvts_n_u32_f32): Likewise.
10140         * config/aarch64/iterators.md (fcvt_target): Support integer to float
10141         mapping.
10142         (FCVT_TARGET): Likewise.
10143         (FCVT_FIXED2F): New iterator.
10144         (FCVT_F2FIXED): Likewise.
10145         (fcvt_fixed_insn): New define_int_attr.
10147 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
10149         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
10150         some statements was removed.
10152 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
10154         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
10155         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
10156         (vect_can_advance_ivs_p): likewise.
10157         (vect_update_ivs_after_vectorizer): likewise.
10158         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
10159         (vect_analyze_scalar_cycles_1): likewise.
10160         (vect_analyze_loop_operations): likewise.
10161         (report_vect_op): likewise.
10162         (vect_is_slp_reduction): likewise.
10163         (vect_is_simple_reduction): likewise.
10164         (get_initial_def_for_induction): likewise.
10165         (vect_transform_loop): likewise.
10166         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
10167         (vect_recog_sad_pattern): likewise.
10168         (vect_recog_widen_sum_pattern): likewise.
10169         (vect_recog_widening_pattern): likewise.
10170         (vect_recog_divmod_pattern): likewise.
10171         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
10172         (vect_analyze_slp_instance): likewise.
10173         (vect_transform_slp_perm_load): likewise.
10174         (vect_schedule_slp_instance): likewise.
10176 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
10178         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
10179         (return_prediction): PRED_CONST_RETURN predict return as not taken.
10180         * predict.def (PRED_CONTINUE): Change hitrate 50->67
10181         (PRED_LOOP_BRANCH): Document predictor as broken.
10182         (PRED_LOOP_EXIT): Change hitrate 91->92.
10183         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
10184         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
10185         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
10186         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
10187         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
10188         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
10189         (PRED_CALL): Chane hitrate 71->67.
10190         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
10191         (PRED_GOTO): Document as unused right now.
10192         (PRED_CONST_RETURN): Change hitrate 67->69
10193         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
10194         (PRED_NULL_RETURN): Change hitrate 91->90.
10195         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
10196         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
10197         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
10199 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
10201         * config/rs6000/altivec.h: Add __builtin_vec_mul.
10202         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
10203         special case Altivec builtin.
10204         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
10205         VSX_BUILTIN_VEC_MUL (replaced with special case code).
10206         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
10207         code for ALTIVEC_BUILTIN_VEC_MUL.
10208         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
10209         for __builtin_vec_mul.
10211 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
10213         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
10214         -mno-htm.
10216 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
10218         * spellcheck.c (selftest::test_find_closest_string): New function.
10219         (spellcheck_c_tests): Call the above.
10221 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10223         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
10225 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
10227         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
10228         Yv=Yv,C alternatives.
10230 2016-06-07  Richard Biener  <rguenther@suse.de>
10232         PR c/61564
10233         * common.opt (ffast-math): Make Optimization.
10235 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
10236             Prachi Godbole  <prachi.godbole@imgtec.com>
10238         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
10239         `fabs' and `fneg' type attributes.
10240         (p5600_fpu_fabs): Add `fmove' to the comment.
10242 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
10244         * gimple.c: Include builtins.h
10245         (gimple_inexpensive_call_p): New function.
10246         * gimple.h (gimple_inexpensive_call_p): Declare.
10247         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
10248         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
10249         fix formatting.
10251 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
10253         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
10254         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
10255         warning_at_rich_loc, warning_n, pedwarn, permerror,
10256         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
10257         sorry, fatal_error, internal_error, internal_error_no_backtrace):
10258         Use the above.
10260 2016-06-07  Richard Biener  <rguenther@suse.de>
10262         PR tree-optimization/71428
10263         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
10264         BIT_FIELD_REF op vs. load.
10266 2016-06-07  Richard Biener  <rguenther@suse.de>
10268         PR middle-end/71423
10269         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
10270         for signed ops.
10272 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
10274         * config/pa/pa.md (call): Generate indirect long calls to non-local
10275         functions on TARGET_64BIT.
10276         (call_value): Likewise.
10278 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
10280         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
10281         pattern and subsequent splitters.
10282         (call_val_reg_64bit_post_reload): Likewise.
10284 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
10286         PR middle-end/71408
10287         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
10288         propagate_op_to_single_use.
10290 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
10292         PR middle-end/71281
10293         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
10295 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
10297         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
10298         (enum x86_dirflag_state): New enum.
10299         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
10300         (machine_function): Remove needs_cld.
10301         (ix86_current_function_needs_cld): Remove.
10302         * config/i386/i386.c (ix86_set_func_type): Set
10303         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
10304         (ix86_expand_prologue): Do not emit CLD here.
10305         (ix86_dirflag_mode_needed): New function.
10306         (ix86_dirflag_mode_entry): Ditto.
10307         (ix86_mode_needed): Handle X86_DIRFLAG entity.
10308         (ix86_mode_after): Ditto.
10309         (ix86_mode_entry): Ditto.
10310         (ix86_mode_exit): Ditto.
10311         (ix86_emit_mode_set): Ditto.
10312         * config/i386/i386.md (strmov_singleop): Set
10313         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
10314         Do not set ix86_current_function_needs_cld.
10315         (rep_mov): Ditto.
10316         (strset_singleop): Ditto.
10317         (rep_stos): Ditto.
10318         (cmpstrnqi_nz_1): Ditto.
10319         (cmpstrnqi_1): Ditto.
10320         (strlenqi_1): Ditto.
10322 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
10324         PR tree-optimization/71259
10325         * tree-vect-slp.c (vect_get_constant_vectors): For
10326         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
10327         one for constant op, and use COND_EXPR for non-constant.
10329 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
10331         * Makefile.in (OBJS): Add function-tests.o,
10332         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
10333         selftest-run-tests.o.
10334         (OBJS-libcommon): Add selftest.o.
10335         (OBJS-libcommon-target): Add selftest.o.
10336         (all.internal): Add "selftest".
10337         (all.cross): Likewise.
10338         (selftest): New phony target.
10339         (s-selftest): New target.
10340         (selftest-gdb): New phony target.
10341         (COLLECT2_OBJS): Add selftest.o.
10342         * bitmap.c: Include "selftest.h".
10343         (selftest::test_gc_alloc): New function.
10344         (selftest::test_set_range): New function.
10345         (selftest::test_clear_bit_in_middle): New function.
10346         (selftest::test_copying): New function.
10347         (selftest::test_bitmap_single_bit_set_p): New function.
10348         (selftest::bitmap_c_tests): New function.
10349         * common.opt (fself-test): New.
10350         * diagnostic-show-locus.c: Include "selftest.h".
10351         (make_range): New function.
10352         (test_range_contains_point_for_single_point): New function.
10353         (test_range_contains_point_for_single_line): New function.
10354         (test_range_contains_point_for_multiple_lines): New function.
10355         (assert_eq): New function.
10356         (test_get_line_width_without_trailing_whitespace): New function.
10357         (selftest::diagnostic_show_locus_c_tests): New function.
10358         * et-forest.c: Include "selftest.h".
10359         (selftest::test_single_node): New function.
10360         (selftest::test_simple_tree): New function.
10361         (selftest::test_disconnected_nodes): New function.
10362         (selftest::et_forest_c_tests): New function.
10363         * fold-const.c: Include "selftest.h".
10364         (selftest::assert_binop_folds_to_const): New function.
10365         (selftest::assert_binop_folds_to_nonlvalue): New function.
10366         (selftest::test_arithmetic_folding): New function.
10367         (selftest::fold_const_c_tests): New function.
10368         * function-tests.c: New file.
10369         * gimple.c: Include "selftest.h".
10370         Include "gimple-pretty-print.h".
10371         (selftest::verify_gimple_pp): New function.
10372         (selftest::test_assign_single): New function.
10373         (selftest::test_assign_binop): New function.
10374         (selftest::test_nop_stmt): New function.
10375         (selftest::test_return_stmt): New function.
10376         (selftest::test_return_without_value): New function.
10377         (selftest::gimple_c_tests): New function.
10378         * hash-map-tests.c: New file.
10379         * hash-set-tests.c: New file.
10380         * input.c: Include "selftest.h".
10381         (selftest::assert_loceq): New function.
10382         (selftest::test_accessing_ordinary_linemaps): New function.
10383         (selftest::test_unknown_location): New function.
10384         (selftest::test_builtins): New function.
10385         (selftest::test_reading_source_line): New function.
10386         (selftest::input_c_tests): New function.
10387         * rtl-tests.c: New file.
10388         * selftest-run-tests.c: New file.
10389         * selftest.c: New file.
10390         * selftest.h: New file.
10391         * spellcheck.c: Include "selftest.h".
10392         (selftest::levenshtein_distance_unit_test_oneway): New function,
10393         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
10394         (selftest::levenshtein_distance_unit_test): Likewise.
10395         (selftest::spellcheck_c_tests): Likewise.
10396         * toplev.c: Include selftest.h.
10397         (toplev::run_self_tests): New.
10398         (toplev::main): Handle -fself-test.
10399         * toplev.h (toplev::run_self_tests): New.
10400         * tree.c: Include "selftest.h".
10401         (selftest::test_integer_constants): New function.
10402         (selftest::test_identifiers): New function.
10403         (selftest::test_labels): New function.
10404         (selftest::tree_c_tests): New function.
10405         * tree-cfg.c: Include "selftest.h".
10406         (selftest::push_fndecl): New function.
10407         (selftest::test_linear_chain): New function.
10408         (selftest::test_diamond): New function.
10409         (selftest::test_fully_connected): New function.
10410         (selftest::tree_cfg_c_tests): New function.
10411         * vec.c: Include "selftest.h".
10412         (selftest::safe_push_range): New function.
10413         (selftest::test_quick_push): New function.
10414         (selftest::test_safe_push): New function.
10415         (selftest::test_truncate): New function.
10416         (selftest::test_safe_grow_cleared): New function.
10417         (selftest::test_pop): New function.
10418         (selftest::test_safe_insert): New function.
10419         (selftest::test_ordered_remove): New function.
10420         (selftest::test_unordered_remove): New function.
10421         (selftest::test_block_remove): New function.
10422         (selftest::reverse_cmp): New function.
10423         (selftest::test_qsort): New function.
10424         (selftest::vec_c_tests): New function.c.
10425         * wide-int.cc: Include selftest.h and wide-int-print.h.
10426         (selftest::from_int <wide_int>): New function.
10427         (selftest::from_int <offset_int>): New function.
10428         (selftest::from_int <widest_int>): New function.
10429         (selftest::assert_deceq): New function.
10430         (selftest::assert_hexeq): New function.
10431         (selftest::test_printing <VALUE_TYPE>): New function template.
10432         (selftest::test_ops <VALUE_TYPE>): New function template.
10433         (selftest::test_comparisons <VALUE_TYPE>): New function template.
10434         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
10435         template.
10436         (selftest::wide_int_cc_tests): New function.
10438 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10440         PR middle-end/37780
10441         * ifcvt.c (noce_try_ifelse_collapse): New function.
10442         Declare prototype.
10443         (noce_process_if_block): Call noce_try_ifelse_collapse.
10444         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
10445         (simplify_ternary_operation): Use the above to simplify
10446         conditional CLZ/CTZ expressions.
10448 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10450         PR middle-end/37780
10451         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
10452         define_insn_and_split.
10454 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10456         PR middle-end/37780
10457         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
10459 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10461         PR c/24414
10462         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
10463         Implicitly clobber memory for basic asm with non-empty assembler
10464         string.  Use targetm.md_asm_adjust also here.
10465         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
10466         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
10467         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
10468         non-empty assembler string.
10469         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
10470         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
10471         (decode_asm_operands): Handle basic asm in PARALLEL block.
10472         (extract_insn): Handle basic asm in PARALLEL block.
10473         * doc/extend.texi: Mention new behavior of basic asm.
10474         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
10475         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
10476         branch_needs_nop_p): Use asm_noperands.
10478 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
10480         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
10481         Include the M7 SPARC DFA scheduler.
10482         New attribute v3pipe.
10483         Annotate insns with v3pipe where appropriate.
10484         Define cpu_feature vis4.
10485         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
10486         Add (V8QI "8") to vbits.
10487         Add insns {add,sub}v8qi3
10488         Add insns ss{add,sub}v8qi3
10489         Add insns us{add,sub}{v8qi,v4hi}3
10490         Add insns {min,max}{v8qi,v4hi,v2si}3
10491         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
10492         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
10493         * config/sparc/niagara4.md: Add a comment explaining the
10494         discrepancy between the documented latenty numbers and the
10495         implemented ones.
10496         * config/sparc/niagara7.md: New file.
10497         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
10498         supports SPARC5 and VIS 4.0 instructions.
10499         * configure: Regenerate.
10500         * config.in: Likewise.
10501         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
10502         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
10503         TARGET_CPU_niagara7.
10504         (ASM_CPU64_DEFAULT_SPEC): Likewise.
10505         (CPP_CPU_SPEC): Handle niagara7.
10506         (ASM_CPU_SPEC): Likewise.
10507         * config/sparc/sparc-opts.h (processor_type): Add
10508         PROCESSOR_NIAGARA7.
10509         (mvis4): New option.
10510         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
10511         (AS_NIAGARA7_FLAG): Define.
10512         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
10513         (CPP_CPU64_DEFAULT_SPEC): Likewise.
10514         (CPP_CPU_SPEC): Handle niagara7.
10515         (ASM_CPU_SPEC): Likewise.
10516         * config/sparc/sparc.c (niagara7_costs): Define.
10517         (sparc_option_override): Handle niagara7 and adjust cache-related
10518         parameters with better values for niagara cpus.  Also support VIS4.
10519         (sparc32_initialize_trampoline): Likewise.
10520         (sparc_use_sched_lookahead): Likewise.
10521         (sparc_issue_rate): Likewise.
10522         (sparc_register_move_cost): Likewise.
10523         (dump_target_flag_bits): Support VIS4.
10524         (sparc_vis_init_builtins): Likewise.
10525         (sparc_builtins): Likewise.
10526         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
10527         VIS4 4.0.
10528         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
10529         UltraSparc M7.
10530         * config/sparc/sparc.opt (sparc_processor_type): New value
10531         niagara7.
10532         * config/sparc/visintrin.h (__attribute__): Prototypes for the
10533         VIS4 builtins.
10534         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
10535         -mvis4.
10536         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
10537         VIS4 builtins.
10539 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
10541         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
10543 2016-06-06  Richard Biener  <rguenther@suse.de>
10545         PR tree-optimization/71398
10546         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
10547         remove edges.
10549 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
10551         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
10552         ft32_expand_prolog, ft32_expand_epilogue):
10553         Handle pretend_args.
10554         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
10555         * config/ft32/ft32.md: Add pretend_returner.
10557 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
10559         PR target/71389
10560         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
10561         Copy op1 RTX to avoid invalid sharing.
10562         (ix86_expand_vector_move_misalign): Ditto.
10564 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
10566         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
10567         ATTRIBUTE_UNUSED.
10569 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
10571         * predict.c (predicted_by_loop_heuristics_p): New function.
10572         (predict_iv_comparison): Use it.
10573         (predict_loops): Walk from innermost loops; do not predict edges
10574         leaving multiple loops multiple times; implement
10575         PRED_LOOP_ITERATIONS_MAX heuristics.
10576         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
10578 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
10580         * cfg.c (check_bb_profile): Do not report mismatched profiles when
10581         only edges out of BB are EH edges.
10583 2016-06-04  Martin Sebor  <msebor@redhat.com>
10584             Marcin Baczyński  <marbacz@gmail.com>
10586         PR c/48116
10587         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
10588         a void expression in a void function.
10590 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
10592         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
10593         aux; dump reasons of decisions.
10594         (should_duplicate_loop_header_p): Likewise.
10595         (do_while_loop_p): Likewise.
10596         (ch_base::copy_headers): Dump asi num insns duplicated.
10598 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
10600         PR tree-optimization/71405
10601         * tree-ssa.c (execute_update_addresses_taken): For clobber with
10602         incompatible type, build a new clobber with the right type instead
10603         of building a VIEW_CONVERT_EXPR around it.
10605 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
10607         PR tree-optimization/52171
10608         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
10609         by_pieces_ninsns instead of move_by_pieces_ninsns.
10611 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
10613         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
10614         for reg+reg addressing mode.
10616 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10618         * rs6000-c.c (c/c-tree.h): Add #include.
10619         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
10620         in C++ when found in the base position of vec_ld or vec_st.
10622 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
10624         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
10625         use of profile unless profile status is PROFILE_READ.
10626         * profile.c (compute_branch_probabilities): Set profile status
10627         only after reporting predictor hitrates.
10629 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
10631         PR target/71276
10632         PR target/71277
10633         * common.opt (ffp-int-builtin-inexact): New option.
10634         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
10635         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
10636         (ceil@var{m}2): Document dependence on this option.
10637         * ipa-inline-transform.c (inline_call): Handle
10638         flag_fp_int_builtin_inexact.
10639         * ipa-inline.c (can_inline_edge_p): Likewise.
10640         * config/i386/i386.md (rintxf2): Do not test
10641         flag_unsafe_math_optimizations.
10642         (rint<mode>2_frndint): New define_insn.
10643         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
10644         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
10645         for 387 instead of extending and truncating.
10646         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
10647         !flag_trapping_math instead of flag_unsafe_math_optimizations.
10648         Change to frndint<mode>2_<rounding>.
10649         (frndintxf2_<rounding>_i387): Likewise.  Change to
10650         frndint<mode>2_<rounding>_i387.
10651         (<rounding_insn>xf2): Likewise.
10652         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
10653         !flag_trapping_math instead of flag_unsafe_math_optimizations for
10654         x87.  Test TARGET_ROUND || !flag_trapping_math ||
10655         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
10656         SSE.  Use ROUND_NO_EXC in constant operand of
10657         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
10658         for 387 instead of extending and truncating.
10660 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
10661             Julia Koval  <julia.koval@intel.com>
10663         PR target/66960
10664         PR target/67630
10665         PR target/67634
10666         PR target/67841
10667         PR target/68037
10668         PR target/68618
10669         PR target/68661
10670         PR target/69575
10671         PR target/69596
10672         PR target/69734
10673         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
10674         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
10675         all registers, except for function return registers if there are
10676         no caller-saved registers.
10677         (ix86_set_func_type): New function.
10678         (ix86_set_current_function): Call ix86_set_func_type to set
10679         no_caller_saved_registers and func_type.  Call reinit_regs if
10680         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
10681         nor x87 instructions in interrupt handler nor function with
10682         no_caller_saved_registers attribute.
10683         (ix86_function_ok_for_sibcall): Return false if there are no
10684         caller-saved registers.
10685         (type_natural_mode): Don't warn ABI change for MMX in interrupt
10686         handler.
10687         (ix86_function_arg_advance): Skip for callee in interrupt handler.
10688         (ix86_function_arg): Return special arguments in interrupt handler.
10689         (ix86_promote_function_mode): Promote pointer to word_mode only
10690         for normal functions.
10691         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
10692         interrupt handler.
10693         (ix86_epilogue_uses): New function.
10694         (ix86_hard_regno_scratch_ok): Likewise.
10695         (ix86_save_reg): Preserve all registers in interrupt handler
10696         after reload.  Preserve all registers, except for function return
10697         registers, if there are no caller-saved registers after reload.
10698         (find_drap_reg): Always use callee-saved register if there are
10699         no caller-saved registers.
10700         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
10701         for interrupt handler.
10702         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
10703         Emit cld instruction if stringops are used in interrupt handler
10704         or interrupt handler isn't a leaf function.
10705         (ix86_expand_epilogue): Generate interrupt return for interrupt
10706         handler and pop the 'ERROR_CODE' off the stack before interrupt
10707         return in exception handler.
10708         (ix86_expand_call): Disallow calling interrupt handler directly.
10709         If there are no caller-saved registers, mark all registers that
10710         are clobbered by the call which returns as clobbered.
10711         (ix86_handle_no_caller_saved_registers_attribute): New function.
10712         (ix86_handle_interrupt_attribute): Likewise.
10713         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
10714         attributes.
10715         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
10716         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
10717         accumulation in interrupt function if stack may be realigned to
10718         avoid DRAP.
10719         (EPILOGUE_USES): New.
10720         (function_type): New enum.
10721         (machine_function): Add func_type and no_caller_saved_registers.
10722         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
10723         (interrupt_return): New pattern.
10724         * doc/extend.texi: Document x86 interrupt and
10725         no_caller_saved_registers attributes.
10727 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
10729         PR tree-optimization/52171
10730         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
10731         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
10732         Look for constant strings.  Move some code to emit_block_cmp_hints
10733         and use it.
10734         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
10735         * defaults.h (COMPARE_MAX_PIECES): New macro.
10736         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
10737         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
10738         (clear_by_pieces_1): Don't declare.  Move definition before use.
10739         (can_do_by_pieces): New static function.
10740         (can_move_by_pieces): Use it.  Return bool.
10741         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
10742         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
10743         (class pieces_addr); New.
10744         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
10745         pieces_addr::adjust, pieces_addr::increment_address,
10746         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
10747         functions for it.
10748         (class op_by_pieces_d): New.
10749         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
10750         functions for it.
10751         (class move_by_pieces_d, class compare_by_pieces_d,
10752         class store_by_pieces_d): New subclasses of op_by_pieces_d.
10753         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
10754         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
10755         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
10756         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
10757         compare_by_pieces_d::finish_mode): New member functions.
10758         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
10759         functions.
10760         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
10761         (emit_block_cmp_hints): New function.
10762         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
10763         use the newly defined classes.
10764         * expr.h (by_pieces_constfn): New typedef.
10765         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
10766         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
10767         (move_by_pieces_ninsns): Don't declare.
10768         (can_move_by_pieces): Change return value to bool.
10769         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
10770         (compare_by_pieces_branch_ratio): New hook.
10771         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
10772         (by_pieces_ninsns): Declare.
10773         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
10774         COMPARE_BY_PIECES.
10775         (default_compare_by_pieces_branch_ratio): New function.
10776         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
10777         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
10778         * doc/tm.texi: Regenerate.
10779         * tree-ssa-strlen.c: Include "builtins.h".
10780         (handle_builtin_memcmp): New static function.
10781         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
10782         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
10784 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10786         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
10787         relevant stmts which are simple and invariant.
10788         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
10789         instead of simple and invariant
10791 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10793         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
10794         (vectorizable_reduction): Check for new relevant state.
10795         (vectorizable_live_operation): vectorize live stmts using
10796         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
10797         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
10798         (vect_stmt_relevant_p): Check for stmts which are only used live.
10799         (process_use): Use of a stmt does not inherit it's live value.
10800         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
10801         (vect_analyze_stmt): Check for new relevant state.
10802         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
10803         outside the loop, but not inside it.
10805 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10807         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
10808         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
10809         (vect_get_vec_def_for_operand): Split out code.
10811 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
10813         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
10815 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10817         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
10819 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10821         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
10823 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
10825         PR middle-end/71387
10826         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
10827         to noreturn e->callee->decl that has void return type and void
10828         arguments, adjust gimple_call_fntype and remove lhs even if it had
10829         previously addressable type.
10831 2016-06-02  Jeff Law  <law@redhat.com>
10833         PR tree-optimization/71328
10834         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
10835         error when checking for a jump back onto the copied path.
10837 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
10839         * config/microblaze/microblaze.c (get_branch_target): Add return
10840         NULL_RTX for the non-CALL_P case.
10841         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
10842         (insert_wic): Remove unused local "j".
10844 2016-06-02  Martin Liska  <mliska@suse.cz>
10846         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
10848 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
10849             Julia Koval  <julia.koval@intel.com>
10851         * function.c (assign_parm_setup_stack): Force source into a
10852         register if needed.
10853         * target.def (function_incoming_arg): Update documentation to
10854         allow arbitrary address computation based on hard register.
10855         * doc/tm.texi: Regenerated.
10857 2016-06-02  Martin Liska  <mliska@suse.cz>
10859         * predict.c (combine_predictions_for_bb): Fix first match in
10860         cases where a first predictor contains more than one occurence
10861         in list of predictors.  Take the best value in such case.
10863 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10865         PR rtl-optimization/71295
10866         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
10867         offset would go over the size of the inner mode reject it.
10869 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
10871         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
10872         x=x,x and v=v,m instead of x=x,m.
10874         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
10875         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
10876         alternative to v=rm,C.
10878         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
10879         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
10880         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
10881         instead of vex for the last two above mentioned alternatives.
10883 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10885         PR target/70830
10886         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
10888 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
10890         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
10892 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
10894         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
10895         from int to unsigned.
10897 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
10899         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
10900         alternatives, eliminating preferred register class.  Add support
10901         for the MTVSRDD instruction in ISA 3.0.
10902         (vsx_splat_v4si_internal): Use splat_input_operand instead of
10903         reg_or_indexed_operand.
10904         (vsx_splat_v4sf_internal): Likewise.
10906 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
10908         PR target/71186
10909         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
10910         for loading up all 0's or all 1's.
10912 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10914         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
10916 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
10918         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
10919         extension.
10920         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
10921         * gcc.c (set_source_date_epoch_envvar): New function, sets
10922         the SOURCE_DATE_EPOCH environment variable to the current time.
10924 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
10926         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
10927         the factor for live Phi nodes.
10929 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
10931         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
10932         * tree-parloops.c (parallelize_loops): likewise.
10933         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
10934         tree_unswitch_outer_loop): likewise.
10936 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
10938         PR middle-end/71371
10939         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
10940         around creation of the temporary.
10942 2016-06-01  Richard Biener  <rguenther@suse.de>
10944         PR tree-optimization/71366
10945         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
10946         (unloop_loops): Move removing edges here ...
10947         (try_unroll_loop_completely): ... from here.
10948         (try_peel_loop): ... and here.
10949         (tree_unroll_loops_completely_1): Track parent loops via
10950         bitmap of header BBs.
10951         (tree_unroll_loops_completely): Adjust for that.
10953 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10955         * config/rs6000/altivec.h (vec_slv): New macro.
10956         (vec_srv): New macro.
10957         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
10958         (UNSPEC_VSRV): New value.
10959         (vslv): New insn.
10960         (vsrv): New insn.
10961         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
10962         (vsrv): New builtin definition.
10963         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
10964         define argument types for new builtin.
10965         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
10966         new builtin.
10967         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
10968         functions.
10970 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
10971             Jocelyn Mayer  <l_indien@magic.fr>
10973         PR target/67310
10974         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
10975         detect processor family for signature_CENTAUR_ebx.
10976         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
10977         signature_CENTAUR_ebx.
10978         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
10979         <default>: Pass x86-64 for has_longmode.
10981 2016-06-01  Nathan Sidwell  <nathan@acm.org>
10983         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
10984         undefined weak.
10986 2016-06-01  Richard Biener  <rguenther@suse.de>
10988         PR tree-optimization/71261
10989         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
10990         of stmts successfully put in the bool pattern.  Remove
10991         single-use restriction.
10992         (adjust_bool_pattern_cast): Add cast at the use site via the
10993         pattern def sequence.
10994         (adjust_bool_pattern): Remove recursion, maintain a hash-map
10995         of patterned defs.  Use the pattern def seqence instead of
10996         multiple independent patterns.
10997         (sort_after_uid): New qsort compare function.
10998         (adjust_bool_stmts): New function to process stmts in the bool
10999         pattern in IL order.
11000         (vect_recog_bool_pattern): Adjust.
11001         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
11002         (ifcvt_walk_pattern_tree): Likewise.
11003         (stmt_is_root_of_bool_pattern): Likewise.
11004         (ifcvt_repair_bool_pattern): Likewise.
11005         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
11007 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
11009         * loop-unroll.c (decide_unroll_constant_iterations,
11010         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
11011         likely upper bounds.
11012         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
11014 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
11016         * tree-core.h (enum omp_clause_code): Remove
11017         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
11019 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11021         * config/arm/sync.md (arm_store_exclusive<mode>):
11022         Use 'H' output modifier on operands[2] rather than creating a new
11023         entry in out-of-bounds memory of the operands array.
11024         (arm_store_release_exclusivedi): Likewise.
11026 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11028         * config/arm/arm.c (arm_fusion_enabled_p): New function.
11029         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
11030         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
11031         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
11033 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
11035         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
11036         into account live statements for mask producers.
11038 2016-06-01  Richard Biener  <rguenther@suse.de>
11040         PR tree-optimization/71311
11041         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
11042         restrict to non-INTEGER_CST @0.
11044 2016-06-01  Richard Biener  <rguenther@suse.de>
11046         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
11047         (relational patterns): Use :c to avoid pattern duplications.
11049 2016-06-01  Richard Biener  <rguenther@suse.de>
11051         * genmatch.c (comparison_code_p): New predicate.
11052         (swap_tree_comparison): New function.
11053         (commutate): Add for_vec parameter to append new for entries.
11054         Support commutating relational operators by swapping it alongside
11055         operands.
11056         (lower_commutative): Adjust.
11057         (dt_simplify::gen): Do not pass artificial operators to gen
11058         functions.
11059         (decision_tree::gen): Do not add artificial operators as parameters.
11060         (parser::parse_expr): Verify operator commutativity when :c is
11061         applied.  Allow :C to override this.
11062         * match.pd: Adjust patterns to use :C instead of :c where required.
11064 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
11066         PR tree-optimization/71077
11067         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
11068         the combining step, use boolean_false_node and boolean_true_node
11069         as the designated false/true return values.
11071 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
11073         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
11074         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
11075         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
11076         PRED_LOOP_EXIT.
11078 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
11080         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
11081         of flags impliying the register renaming.
11082         * toplev.c (process_options): Do not imply flag_rename_registers with
11083         loop peeling.
11085 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
11087         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
11088         default implementation.
11090 2016-05-31  Nathan Sidwell  <nathan@acm.org>
11092         * dwarf2out.c (cur_line_info_table): Add GTY marker.
11094 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
11096         * config/sh/constraints.md (b): Remove constraint.
11097         * config/sh/predicates.md (arith_reg_operand): Remove
11098         TARGET_REGISTER_P.
11099         * config/sh/sh-modes.def (PDI): Remove.
11100         * config/sh/sh.c (sh_target_reg_class,
11101         sh_optimize_target_register_callee_saved): Remove functions.
11102         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
11103         (sh_expand_epilogue): Update comment.
11104         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
11105         sh_secondary_reload): Remove TARGET_REGS related code.
11106         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
11107         TARGET_REGISTER_P): Remove macros.
11108         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
11109         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
11110         TR1_REG, TR2_REG): Remove constants.
11111         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
11113 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
11115         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
11116         define_expand patterns.
11117         (adddi3_compact): Rename to adddi3.
11118         (subdi3_compact): Rename to subdi3.
11119         (*negdi2): Rename to negdi2.
11120         (*abs<mode>2): Rename to abs<mode>2.
11122 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
11124         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
11125         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
11126         (atomic_sub_fetchsi): ... this new pattern.
11127         (mvtc): Add CC_REG clobber.
11129 2016-05-31  Marek Polacek  <polacek@redhat.com>
11131         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
11133 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11135         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
11136         aarch64_fusion_enabled_p to check for fusion capabilities.
11138 2016-05-31  Richard Biener  <rguenther@suse.de>
11140         PR tree-optimization/71352
11141         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
11142         minus one and a negate.
11144 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11146         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
11147         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
11148         Delete prototype.
11149         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
11150         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
11151         Remove use of aarch64_simd_attr_length_move, set length attribute
11152         directly.
11153         (*aarch64_be_movoi): Likewise.
11154         (*aarch64_be_movci): Likewise.
11155         (*aarch64_be_movxi): Likewise.
11157 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
11159         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
11160         It no longer does that.
11161         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
11163 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
11165         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
11166         attribute __unused__.
11168 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11170         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
11171         * config/arm/arm.c (arm_arch_thumb1): Define.
11172         (arm_option_override): Initialize arm_arch_thumb1.
11173         * config/arm/arm.h (arm_arch_thumb1): Declare.
11174         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
11175         support Thumb-1 ISA.
11177 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
11179         PR target/71346
11180         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
11181         `Yv' for scalar operand.
11183 2016-05-31  Tom de Vries  <tom@codesourcery.com>
11185         PR tree-optimization/69068
11186         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
11187         phis with more than two args.
11189 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
11191         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
11192         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
11193         target.
11195 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
11197         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
11198         tune_64.
11199         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
11200         support on SPARC.
11201         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
11202         cpu_32, cpu_64, tune_32 and tune_64.
11203         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
11205 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
11207         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
11209 2016-05-30  Andi Kleen  <ak@linux.intel.com>
11211         * auto-profile.c (read_profile): Replace asserts with errors
11212         when file does not exist.
11213         * gcov-io.c (gcov_read_words): Dito.
11215 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11217         * tree-cfg.c (print_loop): Print likely upper bounds.
11219 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11221         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
11222         * opts.c (default_options): Enable peel loops at -O3.
11223         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
11224         (try_peel_loop): Do not re-peel already peeled loops;
11225         use likely upper bounds; fix profile updating.
11226         (pass_complete_unroll::execute): Initialize peeled_loops.
11228 2016-05-30  Martin Liska  <mliska@suse.cz>
11230         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
11231         computed costs by frequency of BB they belong to.
11232         (get_scaled_computation_cost_at): New function.
11234 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
11235             Marc Glisse  <marc.glisse@inria.fr>
11237         PR tree-optimization/71289
11238         * match.pd (-1 / B < A, A > -1 / B): New transformations.
11240 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11242         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
11244 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11246         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
11247         for peeled copies; avoid underflow when updating estimates; correctly
11248         scale loop profile.
11250 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
11252         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
11253         r236875. Corrected oe3 to oe2 as obvious.
11255 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
11257         PR middle-end/71269
11258         PR middle-end/71252
11259         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
11260         that inserted stmt will not dominate stmts that defines its operand.
11261         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
11262         (rewrite_expr_tree_parallel): Likewise.
11264 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
11266         PR middle-end/71252
11267         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
11268         all fields including stmt_to_insert are swapped.
11270 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11272         * predict.h (force_edge_cold): Declare.
11273         * predict.c (force_edge_cold): New function.
11274         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
11275         updating.
11276         (canonicalize_loop_induction_variables): Fix formating.
11278 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
11280         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
11281         (visium_expand_copysign): Use gen_int_mode directly.
11282         (visium_compute_frame_size): Minor tweaks.
11284 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
11286         * tree-vect-loop.c (vect_analyze_loop_2): Use
11287         likely_max_stmt_executions_int.
11289 2016-05-30  Tom de Vries  <tom@codesourcery.com>
11291         PR tree-optimization/69067
11292         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
11294 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
11296         PR target/71245
11297         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
11298         New peepholes to remove unneeded fild/fistp pairs.
11299         (define_peephole2 atomic_loaddi_fpu): Ditto.
11301 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11303         * predict.c (maybe_hot_frequency_p): Avoid division.
11305 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
11307         * doc/install.texi: Use https for shop.fsf.org.
11309 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11311         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
11312         likely_max_stmt_executions_int.
11314 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11316         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
11317         likely_max_stmt_executions_int.
11319 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11321         * profile.c (compute_branch_probabilities): Do not report hitrates
11322         here.
11323         (branch_prob): Report hitrates here.
11324         * predict.c (gimple_predict_edge): Do not assert profile status;
11325         fix formatting issues.
11327 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11329         * predict.c (edge_predicted_by_p): New function.
11330         (predict_paths_for_bb): Do not put multiple predictions of the same type
11331         on one edge.
11333 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11335         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
11336         commit.
11338 2016-05-28  Alan Modra  <amodra@gmail.com>
11340         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
11342 2016-05-28  Alan Modra  <amodra@gmail.com>
11344         PR rtl-optimization/71275
11345         * ira.c (ira): Free dominance info.
11347 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
11349         * doc/sourcebuild.texi: New address for upstream Go repository.
11351 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11353         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
11354         (TARGET_ARM_V7M): Likewise.
11356 2016-05-26  Jeff Law  <law@redhat.com>
11358         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
11359         (thread_across_edge): Remove calls to find_jump_threads_backwards.
11360         * passes.def: Add jump threading passes before DOM/VRP.
11361         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
11362         argument to a basic block from an edge.  Remove tests which are
11363         handled elsewhere.
11364         (pass_data_thread_jumps, class pass_thread_jumps): New.
11365         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
11366         (make_pass_thread_jumps): Likewise.
11367         * tree-pass.h (make_pass_thread_jumps): Declare.
11369 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
11371         * config/visium/visium-protos.h (split_double_move): Rename into...
11372         (visium_split_double_move): ...this.
11373         (visium_split_double_add): Declare.
11374         * config/visium/visium.c (split_double_move): Rename into...
11375         (visium_split_double_move): ...this.
11376         (visium_split_double_add): New function.
11377         (visium_expand_copysign): Renumber operands for consistency.
11378         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
11379         (DFmode move splitter): Likewise.
11380         (*addi3_insn): Split by means of visium_split_double_add.
11381         (*adddi3_insn_flags): Delete.
11382         (*plus_plus_sltu<subst_arith>): New insn.
11383         (*subdi3_insn): Split by means of visium_split_double_add.
11384         (subdi3_insn_flags): Delete.
11385         (*minus_minus_sltu<subst_arith>): New insn.
11386         (*negdi2_insn): Split by means of visium_split_double_add.
11387         (*negdi2_insn_flags): Delete.
11389 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
11391         * configure.ac: Treat a --with-headers option without argument
11392         the same as the default (i.e. consult sys-include directory).
11393         * configure: Regenerate.
11395 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11397         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
11398         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
11399         prototype.
11400         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
11401         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
11403 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
11405         PR target/63596
11406         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
11407         tree-stdarg analysis results.
11408         (aarch64_setup_incoming_varargs): Likewise.
11410 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
11412         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
11413         va_list_gpr_counter_field and va_list_fpr_counter_field.
11415 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
11417         PR67609
11418         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
11419         * config/aarch64/aarch64.c
11420         (aarch64_cannot_change_mode_class): Remove function.
11421         * config/aarch64/aarch64-protos.h
11422         (aarch64_cannot_change_mode_class): Remove.
11424 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11426         * cfgloop.c (record_niter_bound): Record likely upper bounds.
11427         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
11428         get_likely_max_loop_iterations_int): New.
11429         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
11430         any_likely_upper_bound.
11431         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
11432         Declare.
11433         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
11434         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
11435         upper bound.
11436         (unroll_loop_constant_iterations): Likewise.
11437         (unroll_loop_runtime_iterations): Likewise.
11438         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
11439         * lto-streamer-out.c (output_cfg): Likewise.
11440         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
11441         bounds.
11442         (canonicalize_loop_induction_variables): Dump likely upper bounds.
11443         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
11444         (likely_max_loop_iterations): New.
11445         (likely_max_loop_iterations_int): New.
11446         (likely_max_stmt_executions): New.
11447         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
11448         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
11449         likely_max_stmt_executions): Declare.
11451 2016-05-27  Marek Polacek  <polacek@redhat.com>
11453         PR middle-end/71308
11454         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
11456 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11458         * config/s390/s390.md (2x risbg splitters): Use
11459         reg_overlap_mentioned_p instead of rtx_equal_p.
11461 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11463         * combine.c (make_compound_operation): Take known zero bits into
11464         account when checking for possible zero_extend.
11466 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11468         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
11469         Use const_int_operand for operand 2 predicate.  Simplify expand code
11470         as a result.
11472 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
11474         PR middle-end/71279
11475         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
11476         into comparison.
11478 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11480         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
11481         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
11482         that returns CC_SESWPmode and CC_ZESWPmode.
11483         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
11484         and CC_SESWPmode.
11485         (aarch64_rtx_costs): Likewise.
11487 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
11489         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
11490         for ISA 3.0 min/max support.
11491         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
11492         conditional move support.
11493         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
11494         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
11495         available.
11496         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
11497         conditional moves where the comparison type is different from move
11498         type.
11499         (fp_minmax): New code iterator for smin/smax.
11500         (minmax): New code attributes for min/max.
11501         (SMINMAX): Likewise.
11502         (smax<mode>3): Combine min, max insns into one insn using the
11503         fp_minmax code iterator.  Add support for ISA 3.0 min/max
11504         instructions that don't need -ffast-math.
11505         (s<minmax><mode>3): Likewise.
11506         (smax<mode>3_vsx): Likewise.
11507         (smin<mode>3): Likewise.
11508         (s<minmax><mode>3_vsx): Likewise.
11509         (smin<mode>3_vsx): Likewise.
11510         (pre-VSX min/max splitters): Likewise.
11511         (s<minmax><mode>3_fpr): Likewise.
11512         (movsfcc): Rewrite floating point conditional moves to combine
11513         SFmode/DFmode into a single insn.
11514         (mov<mode>cc): Likewise.
11515         (movdfcc): Likewise.
11516         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
11517         SFDF2 iterators to handle all combinations.
11518         (fseldfsf4): Likewise.
11519         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
11520         (fseldfdf4): Likewise.
11521         (fselsfdf4): Likewise.
11522         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
11523         comparison instructions that set a 0/-1 mask, and use it for
11524         floating point conditional move via XXSEL.
11525         (fpmask<mode>): Likewise.
11526         (xxsel<mode>): Likewise.
11527         * config/rs6000/predicates.md (min_max_operator): Delete, no
11528         longer used.
11529         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
11530         instructions that generate a 0/-1 mask for use with XXSEL.
11531         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
11532         say whether floating point min/max is available, either through
11533         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
11534         (TARGET_MINMAX_DF): Likewise.
11536 2016-05-27  Alan Modra  <amodra@gmail.com>
11538         PR rtl-optimization/71275
11539         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
11540         for update_equiv_regs and combine_and_move_insns.
11542 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
11544         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
11545         if_then_else or cond RTXes to calculate attribute value.
11546         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
11547         <attr "length_immediate>: Ditto.
11548         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
11549         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
11550         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
11551         <attr "type">: Ditto.
11552         <attr "prefix_data16">: Ditto.
11553         <attr "prefix_extra">: Ditto.
11554         <attr "length_immediate">: Ditto.
11555         <attr "prefix">: Ditto.
11556         (vec_set<mode>_0) <attr "isa">: Ditto.
11557         <attr "prefix_extra">: Ditto.
11558         <attr "length_immediate">: Ditto.
11559         <attr "prefix">: Ditto.
11560         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
11561         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
11562         (sse2_storelpd) <attr "prefix_data16">: Ditto.
11563         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
11564         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
11565         <attr "length_immediate">: Ditto.
11566         <attr "prefix">: Ditto.
11567         (sse2_movsd) <attr "length_immediate">: Ditto.
11568         <attr "prefix">: Ditto.
11569         (vec_concatv2df)  <attr "isa">: Ditto.
11570         <attr "prefix">: Ditto.
11571         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
11572         (*vec_extractv2di_1) <attr "isa">: Ditto.
11573         <attr "type">: Ditto.
11574         <attr "length_immediate">: Ditto.
11575         <attr "prefix_rex">: Ditto.
11576         <attr "prefix_extra">: Ditto.
11577         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
11578         <attr "prefix_extra">: Ditto.
11579         <attr "length_immediate">: Ditto.
11580         (vec_concatv2di) <attr "isa">: Ditto.
11581         <attr "prefix_extra">: Ditto.
11582         <attr "length_immediate">: Ditto.
11583         <attr "prefix">: Ditto.
11585 2016-05-26  Martin Liska  <mliska@suse.cz>
11587         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
11588         function.
11589         (operator+): Likewise.
11590         (operator-): Likewise.
11591         (comp_cost::operator+=): Likewise.
11592         (comp_cost::operator-=): Likewise.
11593         (comp_cost::operator/=): Likewise.
11594         (comp_cost::operator*=): Likewise.
11595         (operator<): Likewise.
11596         (operator==): Likewise.
11597         (operator<=): Likewise.
11598         (new_cost): Remove.
11599         (infinite_cost_p): Likewise.
11600         (add_costs): Likewise.
11601         (sub_costs): Likewise.
11602         (compare_costs): Likewise.
11603         (set_group_iv_cost): Use the newly introduced functions.
11604         (get_address_cost): Likewise.
11605         (get_shiftadd_cost): Likewise.
11606         (force_expr_to_var_cost): Likewise.
11607         (split_address_cost): Likewise.
11608         (ptr_difference_cost): Likewise.
11609         (difference_cost): Likewise.
11610         (get_computation_cost_at): Likewise.
11611         (determine_group_iv_cost_generic): Likewise.
11612         (determine_group_iv_cost_address): Likewise.
11613         (determine_group_iv_cost_cond): Likewise.
11614         (autoinc_possible_for_pair): Likewise.
11615         (determine_group_iv_costs): Likewise.
11616         (cheaper_cost_pair): Likewise.
11617         (iv_ca_recount_cost): Likewise.
11618         (iv_ca_set_no_cp): Likewise.
11619         (iv_ca_set_cp): Likewise.
11620         (iv_ca_cost): Likewise.
11621         (iv_ca_new): Likewise.
11622         (iv_ca_dump): Likewise.
11623         (iv_ca_narrow): Likewise.
11624         (iv_ca_prune): Likewise.
11625         (iv_ca_replace): Likewise.
11626         (try_add_cand_for): Likewise.
11627         (try_improve_iv_set): Likewise.
11628         (find_optimal_iv_set): Likewise.
11630 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
11632         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
11633         that internal functions will clobber all caller-saved registers.
11635 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
11637         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
11638         Return a better case_values_threshold when optimizing.
11640 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
11642         * config/aarch64/aarch64-simd.md (aarch64_combinez):
11643         Add ? to integer variant.
11644         (aarch64_combinez_be): Likewise.
11646 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
11648         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
11649         instead of x constraint.
11650         (vcvtps2ph256<mask_name>): Likewise.
11652         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
11653         alternative.  Formatting fix.
11655         * config/i386/sse.md
11656         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
11657         to ...
11658         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
11659         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
11660         maybe_evex prefix instead of vex.
11661         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
11662         EXT_REX_SSE_REG_P (op0) case in the splitter.
11664 2016-05-25  Jeff Law  <law@redhat.com>
11666         PR tree-optimization/71272
11667         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
11668         Update comments.  Add test for empty path.
11670 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
11672         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
11673         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
11674         special case builtin.
11675         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11676         code for ALTIVEC_BUILTIN_VEC_CMPNE.
11677         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
11678         for __builtin_vec_cmpne.
11680 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
11682         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
11683         redundant test and bail out if the type of the new operand is not
11684         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
11686 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
11688         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
11689         (x_ix86_target_flags_explicit): Remove.
11690         * config/i386/i386.c (ix86_function_specific_save): Do not copy
11691         x_ix86_target_flags_explicit.
11692         (ix86_function_specific_restore): Ditto.
11694 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
11695             H.J. Lu  <hongjiu.lu@intel.com>
11697         PR target/70738
11698         * common/config/i386/i386-common.c
11699         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
11700         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
11701         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
11702         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
11703         (-mgeneral-regs-only): Add new option.
11704         * config/i386/i386.c (ix86_option_override_internal): Don't enable
11705         x87 instructions if only general registers are allowed.
11706         (ix86_target_string): Add ix86_flags argument. Handle additional
11707         flags options through ix86_flags argument.  Update all callers.
11708         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
11710 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11712         PR rtl-optimization/66940
11713         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
11714         decrementing desired_val will not overflow before performing these
11715         operations.
11717 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
11719         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
11720         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
11721         * config/i386/i386.c (enum ix86_builtins): Add
11722         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
11723         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
11724         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
11725         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
11726         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
11727         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
11728         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
11729         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
11730         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
11731         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
11732         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
11733         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
11734         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
11735         __builtin_ia32_cvtps2dq512_mask.
11736         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
11737         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
11738         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
11739         * config/i386/sse.md
11740         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
11741         Rename to ...
11742         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
11743         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
11744         to ...
11745         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
11746         (avx512f_vec_pack_sfix_v8df): New define_expand.
11747         (avx512f_roundpd512): Rename to ...
11748         (avx512f_round<castmode>512): ... this.  Change iterator.
11749         (avx512f_roundps512_sfix): New define_expand.
11750         (round<mode>2_sfix): Change iterator.
11752 2016-05-25  Nick Clifton  <nickc@redhat.com>
11754         * config/msp430/msp430.c (msp430_attr): Produce an error if a
11755         static interrupt handler is detected.
11756         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
11757         default linker script.
11758         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
11759         the low part of a symbolic pointer.
11761 2016-05-25  Richard Biener  <rguenther@suse.de>
11763         PR tree-optimization/71261
11764         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
11765         interesting stmt instead of immediate uses when looking
11766         for the use operand to replace.
11768 2016-05-25  Martin Liska  <mliska@suse.cz>
11770         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
11772 2016-05-25  Richard Biener  <rguenther@suse.de>
11774         PR tree-optimization/71264
11775         * tree-vect-stmts.c (vect_init_vector): Properly deal with
11776         vector type val.
11778 2016-05-25  Martin Liska  <mliska@suse.cz>
11780         PR tree-optimization/71239
11781         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
11782         if DECL_SIZE is NULL.
11784 2016-05-25  Richard Biener  <rguenther@suse.de>
11786         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
11787         * tree-if-conv.c (pass_data_if_conversion): Use it.
11789 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11791         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
11792         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
11793         * varpool.c (varpool_node::get_availability): Likewise.
11795 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11797         * config/rs6000/altivec.md (VNEG iterator): New iterator for
11798         VNEGW/VNEGD instructions.
11799         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
11800         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
11801         support for ISA 3.0 VNEGW/VNEGD instructions.
11803 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
11805         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
11806         pointers inside OACC_DATA regions.
11807         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
11808         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
11809         (gimplify_adjust_omp_clauses): Fix typo in comment.
11811 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11813         * config/rs6000/altivec.md (VParity): New mode iterator for vector
11814         parity built-in functions.
11815         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
11816         zeros.
11817         (p9v_parity<mode>2): Likewise.
11818         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
11819         parity.
11820         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
11821         (parity<mode>2): ISA 3.0 expander for vector parity.
11822         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
11823         power9 built-ins.
11824         (BU_P9_64BIT_MISC_0): Likewise.
11825         (BU_P9_MISC_0): Likewise.
11826         (BU_P9V_AV_1): Likewise.
11827         (BU_P9V_AV_2): Likewise.
11828         (BU_P9V_AV_3): Likewise.
11829         (BU_P9V_AV_P): Likewise.
11830         (BU_P9V_VSX_1): Likewise.
11831         (BU_P9V_OVERLOAD_1): Likewise.
11832         (BU_P9V_OVERLOAD_2): Likewise.
11833         (BU_P9V_OVERLOAD_3): Likewise.
11834         (VCTZB): Add vector count trailing zeros support.
11835         (VCTZH): Likewise.
11836         (VCTZW): Likewise.
11837         (VCTZD): Likewise.
11838         (VPRTYBD): Add vector parity support.
11839         (VPRTYBQ): Likewise.
11840         (VPRTYBW): Likewise.
11841         (VCTZ): Add overloaded vector count trailing zeros support.
11842         (VPRTYB): Add overloaded vector parity support.
11843         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11844         overloaded vector count trailing zeros and parity instructions.
11845         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
11846         vector parity support.
11847         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
11848         trailing zeros support.
11849         (vec_cntlz): Likewise.
11850         (vec_vctzb): Likewise.
11851         (vec_vctzd): Likewise.
11852         (vec_vctzh): Likewise.
11853         (vec_vctzw): Likewise.
11854         (vec_vprtyb): Add ISA 3.0 vector parity support.
11855         (vec_vprtybd): Likewise.
11856         (vec_vprtybw): Likewise.
11857         (vec_vprtybq): Likewise.
11858         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11859         the ISA 3.0 vector count trailing zeros and vector parity built-in
11860         functions.
11862 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
11864         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
11865         when there is stmt_to_insert.
11867 2016-05-24  Martin Sebor  <msebor@redhat.com>
11869         PR c++/71147
11870         * tree.h (complete_or_array_type_p): New inline function.
11872 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
11874         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
11875         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
11876         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
11878         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
11879         Limit 1st alternative to noavx isa, split 2nd alternative into one
11880         noavx and one avx alternative, use *x and Bm in the former and
11881         x and m in the latter.
11883         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
11884         of sse4 for the first alternative, drop %v from the template
11885         and d operand modifier.  Split second alternative into one sse4_noavx
11886         and one avx alternative, use *x instead of *v in the former and v
11887         instead of *v in the latter.
11888         (*sse4_1_extractps): Use noavx isa instead of * for the first
11889         alternative, drop %v from the template.  Split second alternative into
11890         one noavx and one avx alternative, use *x instead of *v in the
11891         former and v instead of *v in the latter.
11892         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
11893         with noavx and the last one with avx.
11894         (sse4_1_phminposuw): Guard first alternative with noavx isa,
11895         split the second one into one noavx and one avx alternative,
11896         use *x and Bm in the former and x and m in the latter one.
11897         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
11898         alternatives.
11900         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
11901         first two alternatives to noavx, use *x instead of *v in the second
11902         one, add avx alternative without *.
11903         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
11904         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
11905         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
11907 2016-05-24  Jeff Law  <law@redhat.com>
11909         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
11910         New function, extracted from...
11911         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
11912         Allow simple copies and constant initializations in the SSA chain.
11914 2016-05-24  Marek Polacek  <polacek@redhat.com>
11916         PR c/71249
11917         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
11918         scope.
11920 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
11922         PR c++/71257
11923         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
11924         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
11925         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
11926         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
11927         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
11929 2016-05-24  Richard Biener  <rguenther@suse.de>
11931         PR tree-optimization/71240
11932         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
11933         has integral type.
11935 2016-05-24  Richard Biener  <rguenther@suse.de>
11937         PR tree-optimization/71230
11938         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
11940 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
11942         * tree-vectorizer.h (vectorizable_comparison): Delete.
11943         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
11944         PURE_SLP_STMT check.
11945         * tree-vect-stmts.c (vectorizable_call): Likewise.
11946         (vectorizable_simd_clone_call): Likewise.
11947         (vectorizable_conversion): Likewise.
11948         (vectorizable_assignment): Likewise.
11949         (vectorizable_shift): Likewise.
11950         (vectorizable_operation): Likewise.
11951         (vectorizable_load): Likewise.
11952         (vectorizable_condition): Likewise.
11953         (vectorizable_store): Likewise.  Assert that we don't have
11954         hybrid SLP.
11955         (vectorizable_comparison): Make static.  Remove redundant
11956         PURE_SLP_STMT check.
11957         (vect_transform_stmt): Assert that we always have an slp_node
11958         if PURE_SLP_STMT.
11960 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11962         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
11963         operands[2] against 1 with comparison against CONST1_RTX.
11964         (<shift>di3_neon): Likewise.
11965         * config/arm/predicates.md (const0_operand): Replace with comparison
11966         against CONST0_RTX.
11968 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11970         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
11971         operands[2] against 1 with comparison against CONST1_RTX.
11972         (ashrdi3): Likewise.
11973         (lshrdi3): Likewise.
11974         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
11975         UINTVAL.
11976         (ashrsi3): Likewise.
11977         (lshrsi3): Likewise.
11978         (rotrsi3): Likewise.
11979         (define_split above *compareqi_eq0): Likewise.
11980         (define_split above "prologue"): Likewise.
11981         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
11982         * config/arm/predicates.md (shift_operator): Likewise.
11983         (shift_nomul_operator): Likewise.
11984         (sat_shift_operator): Likewise.
11985         (thumb1_cmp_operand): Likewise.
11986         (const_neon_scalar_shift_amount_operand): Replace manual range
11987         check with IN_RANGE.
11988         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
11989         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
11991 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11993         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
11994         with HOST_WIDE_INT_1.
11995         (insv): Likewise.
11996         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
11997         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
11998         (arm_canonicalize_comparison): Likewise.
11999         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
12000         HOST_WIDE_INT_1.
12001         (thumb1_size_rtx_costs): Likewise.
12002         (vfp_const_double_index): Replace cast of 1 to unsigned
12003         HOST_WIDE_INT with HOST_WIDE_INT_1U.
12004         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
12005         HOST_WIDE_INT_1.
12006         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
12007         HOST_WIDE_INT with HOST_WIDE_INT_1U.
12008         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
12009         HOST_WIDE_INT with HOST_WIDE_INT_1.
12011 2016-05-24  Marek Polacek  <polacek@redhat.com>
12013         * tree-cfg.h (should_remove_lhs_p): New predicate.
12014         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
12015         * gimplify.c (gimplify_modify_expr): Likewise.
12016         * tree-cfg.c (verify_gimple_call): Likewise.
12017         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
12018         * gimple-fold.c: Include "tree-cfg.h".
12019         (gimple_fold_call): Use should_remove_lhs_p.
12021 2016-05-24  Richard Biener  <rguenther@suse.de>
12023         PR tree-optimization/71253
12024         * cfganal.h (control_dependences): Make robust against edge
12025         and BB removal.
12026         (control_dependences::control_dependences): Remove edge_list argument.
12027         (control_dependences::get_edge): Remove.
12028         (control_dependences::get_edge_src): Add.
12029         (control_dependences::get_edge_dest): Likewise.
12030         (control_dependences::m_el): Make a vector of edge src/dest index.
12031         * cfganal.c (control_dependences::find_control_dependence): Adjust.
12032         (control_dependences::control_dependences): Likewise.
12033         (control_dependences::~control_dependence): Likewise.
12034         (control_dependences::get_edge): Remove.
12035         (control_dependences::get_edge_src): Add.
12036         (control_dependences::get_edge_dest): Likewise.
12037         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
12038         get_edge_src.
12039         (perform_tree_ssa_dce): Adjust.
12040         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
12041         get_edge_src.
12042         (pass_loop_distribution::execute): Adjust.  Do loop destroying
12043         conditional on changed.
12045 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12047         PR target/69857
12048         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
12049         return.  Reindent transformation comment and mention the ARM state
12050         behavior.
12052 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
12054         PR middle-end/71252
12055         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
12056         after build_and_add_sum creates new use stmt.
12058 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
12060         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
12061         load_lanes/grouped_load classification comes first.  Don't check
12062         whether the vectorization factor is a multiple of the group size
12063         for load_lanes.
12065 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
12067         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
12068         GROUP_GAP for single-element interleaving.
12069         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
12070         variable.
12072 2016-05-24  Richard Biener  <rguenther@suse.de>
12074         PR middle-end/70434
12075         PR c/69504
12076         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
12077         bases which are accessed with non-invariant indices.
12078         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
12079         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
12081 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
12083         PR middle-end/71170
12084         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
12085         (add_to_ops_vec): Add stmt_to_insert.
12086         (add_repeat_to_ops_vec): Init stmt_to_insert.
12087         (insert_stmt_before_use): New.
12088         (transform_add_to_multiply): Remove mult_stmt insertion and add it
12089         to ops vector.
12090         (get_ops): Init stmt_to_insert.
12091         (maybe_optimize_range_tests): Likewise.
12092         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
12093         (rewrite_expr_tree_parallel): Likewise.
12094         (reassociate_bb): Likewise.
12096 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12098         PR target/71201
12099         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
12100         ISA 3.0 xxperm fusion alternative.
12101         (altivec_vperm_v8hiv16qi): Likewise.
12102         (altivec_vperm_<mode>_uns_internal): Likewise.
12103         (vperm_v8hiv4si): Likewise.
12104         (vperm_v16qiv8hi): Likewise.
12106 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12107             Kelvin Nilsen  <kelvin@gcc.gnu.org>
12109         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
12110         vpermr/xxpermr on ISA 3.0.
12111         (altivec_expand_vec_perm_le): Likewise.
12112         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
12113         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
12114         ISA 3.0.
12116 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
12118         * config/i386/i386.h (IS_STACK_MODE): Enable for
12119         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
12120         SSE_FLOAT_MODE_P macros.
12121         * config/i386/i386.c (ix86_preferred_reload_class): Use
12122         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
12123         Cleanup regclass processing for CONST_DOUBLE_P.
12124         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
12125         (ix86_rtx_costs): Remove redundant TARGET_80387 check
12126         with IS_STACK_MODE macro.
12127         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
12128         with TARGET_SSE2.
12129         (*movdf_internal): Use IS_STACK_MODE macro.
12130         (*movsf_internal): Ditto.
12132 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
12134         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
12135         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
12137 2016-05-23  Jeff Law  <law@redhat.com>
12139         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
12140         extracted from ...
12141         (fsm_find_control_statement_thread_paths): Call it.
12143 2016-05-23  Martin Jambor  <mjambor@suse.cz>
12145         PR ipa/71234
12146         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
12147         from_global_constant if t is not NULL.
12149 2016-05-23  Marek Polacek  <polacek@redhat.com>
12151         PR c/49859
12152         * common.opt (Wswitch-unreachable): New option.
12153         * doc/invoke.texi: Document -Wswitch-unreachable.
12154         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
12155         warning.
12157 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
12159         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
12160         TMR_INDEX is non-NULL.
12162 2016-05-23  Richard Biener  <rguenther@suse.de>
12164         PR tree-optimization/71230
12165         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
12166         (try_special_add_to_ops): ... here.  Always test for single-use.
12168 2016-05-23  Martin Jambor  <mjambor@suse.cz>
12170         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
12171         default block if a PHI node in the original one would be resized.
12173 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12175         PR tree-optimization/58135
12176         * tree-vect-slp.c: When group size is not multiple
12177         of vector size, allow splitting of store group at
12178         vector boundary.
12180 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
12182         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
12184 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
12186         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
12187         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
12188         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
12189         of 64x2.
12191         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
12192         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
12193         v constraint instead of x and vinserti32x4 insn.
12195         * config/i386/sse.md (i128vldq): New mode iterator.
12196         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
12197         avx512dq and avx512vl alternatives.
12199         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
12200         constraint, use maybe_evex prefix instead of vex.
12201         (vec_dupv4sf): Use v constraint instead of x for output
12202         operand except for noavx alternative, use Yv constraint
12203         instead of x for input.  Use maybe_evex prefix instead of vex.
12204         (*vec_dupv4si): Likewise.
12205         (*vec_dupv2di): Likewise.
12207 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
12209         PR middle-end/40921
12210         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
12211         (linearize_expr_tree): Call try_special_add_to_ops.
12212         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
12214 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12216         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
12217         to computed stack_usage.
12219 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
12221         PR target/71103
12222         * config/avr/avr.md (define_expand "mov<mode>"): If the source
12223         operand is subreg (symbol_ref) then move the symbol ref to register.
12225 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
12227         * tree.c (array_at_struct_end_p): Look through MEM_REF.
12229 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
12231         PR middle-end/71179
12232         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
12233         VECTOR type.
12235 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
12237         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
12238         ranges by calling get_single_symbol and tidy up.  Look more closely
12239         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
12241 2016-05-20  Jeff Law  <law@redhat.com>
12243         * bitmap.c (bitmap_find_bit): Remove useless test.
12245 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
12247         * function.c (thread_prologue_and_epilogue_insns): Commit the
12248         insertion of the epilogue.
12250 2016-05-20  Martin Jambor  <mjambor@suse.cz>
12252         PR tree-optimization/70884
12253         * tree-sra.c (initialize_constant_pool_replacements): Do not check
12254         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
12255         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
12256         of constant pool data as a reason for scalarization.
12258 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
12260         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
12261         for naked functions.
12262         (thumb1_expand_prologue): Likewise.
12264 2016-05-20  Nathan Sidwell  <nathan@acm.org>
12266         * config/nvptx/nptx.c (nvptx_option_override): Only set
12267         flag_toplevel_reorder, if not explicitly specified.  Set
12268         flag_no_common, unless explicitly specified.
12270 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
12272         * calls.c (can_implement_as_sibling_call_p): Mark param
12273         reg_parm_stack_space with ATTRIBUTE_UNUSED.
12275 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
12277         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
12278         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
12279         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
12280         constants.
12281         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
12282         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
12283         and CASE_CONST_ANY.
12285 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
12287         * config/nvptx/nvptx.md (sincossf3): New pattern.
12289 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
12291         * calls.c (maybe_complain_about_tail_call): New function.
12292         (initialize_argument_information): Call
12293         maybe_complain_about_tail_call when clearing *may_tailcall.
12294         (can_implement_as_sibling_call_p): Call
12295         maybe_complain_about_tail_call when returning false.
12296         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
12297         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
12298         if tail-call optimization fails.
12299         * cfgexpand.c (expand_call_stmt): Initialize
12300         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
12301         * gimple-pretty-print.c (dump_gimple_call): Dump
12302         gimple_call_must_tail_p.
12303         * gimple.c (gimple_build_call_from_tree): Call
12304         gimple_call_set_must_tail with the value of
12305         CALL_EXPR_MUST_TAIL_CALL.
12306         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
12307         (gimple_call_set_must_tail): New function.
12308         (gimple_call_must_tail_p): New function.
12309         * print-tree.c (print_node): Update printing of TREE_STATIC
12310         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
12311         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
12312         trailing comment listing applicable flags.
12313         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
12315 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
12317         * calls.c (expand_call): Move "Rest of purposes for tail call
12318         optimizations to fail" to...
12319         (can_implement_as_sibling_call_p): ...this new function, and
12320         split into multiple "if" statements.
12322 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
12324         * cfgloop.h (expected_loop_iterations_unbounded,
12325         expected_loop_iterations): Unconstify.
12326         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
12327         profile with known upper bound; return 3 when profile is absent.
12328         (expected_loop_iterations): Update.
12330 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
12332         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
12333         and get_max_loop_iterations_int.
12335 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
12337         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
12338         realistic upper bounds here.
12340 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
12342         PR c++/71210
12343         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
12344         calls if the LHS is variable length or has addressable type.
12345         If targets[0]->decl is a noreturn call with void return type and
12346         zero arguments, adjust fntype and remove lhs in that case.
12348 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
12350         PR tree-optimization/71079
12351         PR tree-optimization/71206
12352         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
12354 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12356         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
12357         (get_vec_alignment_for_array_decl): Likewise.
12358         (get_vec_alignment_for_record_decl): Likewise.
12359         (increase_alignment::execute): Move code to find alignment to
12360         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
12361         (type_align_map): New hash_map.
12363 2016-05-20  Richard Guenther  <rguenther@suse.de>
12365         PR tree-optimization/29756
12366         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
12367         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
12368         * fold-const.c (operand_equal_p): Likewise.
12369         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
12370         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
12371         * tree-inline.c (estimate_operator_cost): Likewise.
12372         * tree-pretty-print.c (dump_generic_node): Likewise.
12373         * tree-ssa-operands.c (get_expr_operands): Likewise.
12374         * cfgexpand.c (expand_debug_expr): Likewise.
12375         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
12376         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
12377         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
12378         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
12379         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
12380         (execute_update_addresses_taken): Do it.
12382 2016-05-20  Richard Biener  <rguenther@suse.de>
12384         PR tree-optimization/71185
12385         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
12386         register operations.
12388 2016-05-20  Richard Biener  <rguenther@suse.de>
12390         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
12391         gimple_seq_add_seq_without_update.
12392         (release_bb_predicate): Assert we have no operands to free.
12393         (if_convertible_loop_p_1): Calculate post dominators later.
12394         Do not free BB predicates here.
12395         (combine_blocks): Do not recompute BB predicates.
12396         (version_loop_for_if_conversion): Save BB predicates around
12397         loop versioning.
12399 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
12401         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
12402         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
12403         code.  Ignore sibcalls on EDGE_IGNORE edges.
12404         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
12405         on edges for sibcalls that run without prologue.  The rest of the
12406         function is combined from...
12407         (fix_fake_fallthrough_edge): ... this, and ...
12408         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
12409         function argument, make it a local variable.
12411 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
12413         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
12414         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
12415         for 32-bit mode and SEH for 64-bit.
12416         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
12417         TARGET_64BIT_DEFAULT.
12419 2016-05-19  Ryan Burn  <contact@rnburn.com>
12421         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
12422         * gengtype.c (open_base_files): Add cilk.h to ifiles.
12424 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
12426         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
12427         force pending loads from memory.
12429 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12431         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
12432         (UNSPEC_DARN_32): New unspec constant.
12433         (UNSPEC_DARN_RAW): New unspec constant.
12434         (darn_32): New instruction.
12435         (darn_raw): New instruction.
12436         (darn): New instruction.
12437         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
12438         support and documentation for this macro.
12439         (BU_P9_MISC_1): New macro definition.
12440         (BU_P9_64BIT_MISC_0): New macro definition.
12441         (BU_P9_MISC_0): New macro definition.
12442         (darn_32): New builtin definition.
12443         (darn_raw): New builtin definition.
12444         (darn): New builtin definition.
12445         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
12446         RS6000_BUILTIN_0 directives to surround each occurrence of
12447         #include "rs6000-builtin.def".
12448         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
12449         RS6000_BTM_64BIT flags to the returned mask, depending on
12450         configuration.
12451         (def_builtin): Correct an error in the assignments made to the
12452         debugging variable attr_string.
12453         (rs6000_expand_builtin): Add support for no-operand built-in
12454         functions.
12455         (builtin_function_type): Remove fatal_error assertion that is no
12456         longer valid.
12457         (rs6000_common_init_builtins): Add support for no-operand built-in
12458         functions.
12459         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
12460         definition.
12461         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
12462         definition.
12463         (RS6000_BTM_64BIT): New macro definition.
12464         * doc/extend.texi: Document __builtin_darn (void),
12465         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
12466         functions.
12468 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
12470         * tree-vect-loop.c (vect_analyze_loop_2): Use also
12471         max_loop_iterations_int.
12473 2016-05-19  Marek Polacek  <polacek@redhat.com>
12475         PR tree-optimization/71031
12476         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
12477         condition and adjust the code a bit.
12479 2016-05-19  Martin Liska  <mliska@suse.cz>
12481         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
12482         auto_vec instead of vec.
12484 2016-05-19  Martin Liska  <mliska@suse.cz>
12486         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
12488 2016-05-19  Martin Liska  <mliska@suse.cz>
12490         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
12492 2016-05-19  Martin Liska  <mliska@suse.cz>
12494         * ipa-pure-const.c (set_function_state): Remove an existing
12495         funct_state.
12496         (remove_node_data): Do not free it as it's released
12497         in set_function_state.
12499 2016-05-19  Martin Liska  <mliska@suse.cz>
12501         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
12502         bitmap.
12504 2016-05-19  Martin Liska  <mliska@suse.cz>
12506         * omp-simd-clone.c (simd_clone_adjust): Release vector.
12508 2016-05-19  Martin Liska  <mliska@suse.cz>
12510         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
12511         an auto_vec instead of re-creating it.
12513 2016-05-19  Martin Liska  <mliska@suse.cz>
12515         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
12516         auto_vec instead of vec.
12518 2016-05-19  Martin Liska  <mliska@suse.cz>
12520         * lto-section-in.c (lto_get_section_data): Call
12521         lto_check_version with additional argument.
12522         * lto-streamer.c (lto_check_version): Add new argument.
12523         * lto-streamer.h (lto_check_version): Likewise.
12525 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12527         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
12528         Don't add cost of inner memory when handling sign-extended loads.
12530 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
12532         PR rtl-optimization/71148
12533         * cse.c (cse_main): Free dominance info.
12534         (rest_of_handle_cse): Don't free dominance info.
12535         (rest_of_handle_cse2): Likewise.
12536         (rest_of_handle_cse_after_global_opts): Likewise.
12538 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12540         PR target/71056
12541         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
12542         NULL_TREE early if NEON is not available.  Remove now redundant check
12543         in ARM_CHECK_BUILTIN_MODE.
12545 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
12547         PR sanitizer/64354
12548         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
12549         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
12550         * doc/cpp.texi: Document new macros.
12552 2016-05-19  Bin Cheng  <bin.cheng@arm.com>
12554         PR tree-optimization/69848
12555         * tree-vect-loop.c (vectorizable_reduction): Don't factor
12556         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
12558 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
12560         * function.c (thread_prologue_and_epilogue_insn): Move the
12561         "goto epilogue_done" one block later.
12563 2016-05-19  Richard Biener  <rguenther@suse.de>
12565         PR tree-optimization/70729
12566         * passes.def: Move LIM pass before PRE.  Remove no longer
12567         required copyprop and move first DCE out of the loop pipeline.
12569 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
12571         PR driver/69265
12572         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
12573         (OBJS-libcommon-target): ...here.
12574         * opts-common.c: Include spellcheck.h.
12575         (cmdline_handle_error): Build a vec of valid options and use it
12576         to suggest provide hints for misspelled arguments.
12578 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
12580         PR c++/71100
12581         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
12582         lhs if it has TREE_ADDRESSABLE type.
12584 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
12586         PR target/71145
12587         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
12588         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
12590 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12592         PR ipa/69708
12593         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
12594         input for NOP_EXPR pass-through functions.
12595         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
12596         aggregate global constant VAR_DECLs in constant jump functions.
12598 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12600         PR ipa/69708
12601         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
12602         from TREE_READONLY parameters.
12604 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12606         PR ipa/69708
12607         * cgraph.h (cgraph_indirect_call_info): New field
12608         guaranteed_unmodified.
12609         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
12610         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
12611         appropriate.
12612         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
12613         pass the parameter value to ipa_find_agg_cst_for_param.
12614         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
12615         guaranteed_unmodified, store AA results there instead of bailing out
12616         if present.
12617         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
12618         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
12619         (find_constructor_constant_at_offset): New function.
12620         (ipa_find_agg_cst_from_init): Likewise.
12621         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
12622         static initializers of contants, report back through a new paameter
12623         from_global_constant if that was the case.
12624         (try_make_edge_direct_simple_call): Also pass parameter value to
12625         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
12626         appropriate.
12627         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
12628         (ipa_read_indirect_edge_info): Likewise.
12629         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
12630         (ipa_load_from_parm_agg): Likewise.
12632 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
12634         PR rtl-optimization/71150
12635         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
12636         check.
12638 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
12640         PR target/70915
12641         * config/rs6000/constraints.md (wE constraint): New constraint
12642         for a vector constant that can be loaded with XXSPLTIB.
12643         (wM constraint): New constraint for a vector constant of a 1's.
12644         (wS constraint): New constraint for a vector constant that can be
12645         loaded with XXSPLTIB and a vector sign extend instruction.
12646         * config/rs6000/predicates.md (xxspltib_constant_split): New
12647         predicates for wE/wS constraints.
12648         (xxspltib_constant_nosplit): Likewise.
12649         (easy_vector_constant): Add support for constants that can be
12650         loaded via XXSPLTIB.
12651         (all_ones_constant): New predicate for vector constant with all
12652         1's set.
12653         (splat_input_operand): Add support for ISA 3.0 word splat operations.
12654         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
12655         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
12656         instruction and possibly with a sign extension.
12657         (output_vec_const_move): Add support for XXSPLTIB. If we are
12658         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
12659         instead of XXLXOR/XXLORC.
12660         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
12661         operations.
12662         (rs6000_legitimize_reload_address): Likewise.
12663         (rs6000_output_move_128bit): Use output_vec_const_move to emit
12664         constants.
12665         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
12666         combine VSX_M and VSX_M2 into one iterator.
12667         (VSX_M2): Likewise.
12668         (VSINT_84): New iterators for loading constants with XXSPLTIB.
12669         (VSINT_842): Likewise.
12670         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
12671         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
12672         XXSPLTIB instruction.
12673         (xxspltib_<mode>_nosplit): Likewise.
12674         (xxspltib_<mode>_split): New insn to load up constants with
12675         XXSPLTIB and a sign extend instruction.
12676         (vsx_mov<mode>): Replace single move that handled all vector types
12677         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
12678         moves (when -mvsx-timode is in effect) into the main vector
12679         moves.  Eliminate separate moves for <VSr> <VSa>, where the
12680         preferred register class (<VSr>) is listed first, and the
12681         secondary register class (<VSa>) is listed second with a '?' to
12682         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
12683         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
12684         that if the register was involved in a slow operation, the
12685         clear/set operation does not wait for the slow operation to
12686         finish.  Adjust the length attributes for 32-bit mode.  Use
12687         rs6000_output_move_128bit and drop the use of the string
12688         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
12689         spacing so that the alternatives and attributes don't generate
12690         long lines, and put things in columns, so that it is easier to
12691         match up the operands and attributes with the insn alternatives.
12692         (vsx_mov<mode>_64bit): Likewise.
12693         (vsx_mov<mode>_32bit): Likewise.
12694         (vsx_movti_64bit): Fold movti into normal vector moves.
12695         (vsx_movti_32bit): Likewise.
12696         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
12697         splat instructions.
12698         (vsx_splat_v4si_internal): Likewise.
12699         (vsx_splat_v4sf_internal): Likewise.
12700         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
12701         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
12702         extend vector elements.
12703         (vsx_sign_extend_hi_<mode>): Likewise.
12704         (vsx_sign_extend_si_v2di): Likewise.
12705         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
12706         declaration.
12707         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
12708         constraints.  Add trailing period to wL documentation.
12710 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
12712         PR middle-end/71020
12713         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
12714         * tree-dfa.c (replace_abnormal_ssa_names): New function.
12715         * tree-call-cdce.c: Include tree-dfa.h.
12716         (can_guard_call_p): New function, extracted from...
12717         (can_use_internal_fn): ...here.
12718         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
12719         and return void.
12720         (shrink_wrap_one_built_in_call): Likewise.
12721         (use_internal_fn): Likewise.
12722         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
12723         and return void.  Call replace_abnormal_ssa_names.
12724         (pass_call_cdce::execute): Check can_guard_call_p during the
12725         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
12726         will always change something.
12728 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12730         PR ipa/70646
12731         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
12732         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
12734 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12736         PR ipa/70646
12737         * ipa-inline.h (condition): New field size.
12738         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
12739         for comaprison and store it into the new condition.
12740         (evaluate_conditions_for_known_args): Use condition size to check
12741         access sizes for all but CHANGED conditions.
12742         (unmodified_parm_1): New parameter size_p, store access size into it.
12743         (unmodified_parm): Likewise.
12744         (unmodified_parm_or_parm_agg_item): Likewise.
12745         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
12746         (set_cond_stmt_execution_predicate): Extract access sizes and store
12747         them to conditions.
12748         (set_switch_stmt_execution_predicate): Likewise.
12749         (will_be_nonconstant_expr_predicate): Likewise.
12750         (will_be_nonconstant_predicate): Likewise.
12751         (inline_read_section): Stream condition size.
12752         (inline_write_summary): Likewise.
12754 2016-05-18  Richard Biener  <rguenther@suse.de>
12756         * tree-ssa-loop-im.c (determine_max_movement): Properly add
12757         condition cost to PHI cost instead of total_cost.
12759 2016-05-18  Martin Liska  <mliska@suse.cz>
12761         PR fortran/70856
12762         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
12763         merged variables.
12765 2016-05-18  Richard Biener  <rguenther@suse.de>
12767         * lto-streamer.h (LTO_major_version): Bump to 6.
12769 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
12771         * function.c (make_split_prologue_seq, make_prologue_seq,
12772         make_epilogue_seq): New functions, factored out from...
12773         (thread_prologue_and_epilogue_insns): Here.
12775 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
12777         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12778         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
12779         of before.  Add a comment.
12781 2016-05-18  Bin Cheng  <bin.cheng@arm.com>
12783         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
12784         expression pointer, not pointer to the pointer.
12786 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
12788         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
12789         (avx2_pbroadcast<mode>): Add another alternative with v instead
12790         of x constraints in it, using <pbroadcast_evex_isa> isa.
12791         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
12793         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
12794         constraint x instead of v in second alternative, add avx512bw
12795         alternative.
12797         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
12798         constraint x instead of v in second alternative, add avx512bw
12799         alternative.
12801         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
12802         constraint x instead of v in second alternative, add avx512bw
12803         alternative.
12805         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
12806         avx512bw alternative.
12808 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
12810         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
12811         array to 128 chars.
12812         (define_insn "*andnottf3"): Ditto.
12813         (define_insn "*<code><mode>3"/any_logic): Ditto.
12814         (define_insn "*<code>tf3"/any_logic): Ditto.
12815         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
12816         operand to block AVX-512VL insn variant emit when it is not enabled.
12818 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
12820         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
12821         constraint fot SF mode.
12823 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
12824             Kirill Yukhin  <kirill.yukhin@intel.com>
12826         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
12827         modifiers.
12828         (define_insn "rsqrt14<mode>"): Ditto.
12829         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
12830         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
12831         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
12832         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
12833         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
12834         Ditto.
12835         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
12836         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
12837         * config/i386/i386.c (ix86_print_operand): Expand check for size
12838         override codes for Intel syntax.
12840 2016-05-18  Richard Biener  <rguenther@suse.de>
12842         PR tree-optimization/71168
12843         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
12844         initialization earlier.
12846 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
12848         * config/aarch64/aarch64-simd.md
12849         (aarch64_reduc_plus_internal<mode>): Rename to...
12850         (reduc_plus_scal): ...This, and remove previous implementation.
12852 2016-05-18  Richard Biener  <rguenther@suse.de>
12854         * passes.def: Put late dse and cd_dce in canonical order.
12856 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
12858         * ipa-inline-transform.c (preserve_function_body_p): Look for
12859         first non-thunk clone.
12860         (save_function_body): Save into first non-thunk.
12861         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
12862         up call stmt id.
12863         (lto_output_node): Inline thunks don't need body in every
12864         partition.
12865         * lto-streamer-in.c: Do not fixup thunk clones.
12866         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
12867         thunks.
12868         * tree-inline.c (copy_bb): Be prepared for target node to be new after
12869         folding suceeds.
12871 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
12873         PR middle-end/63586
12874         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
12875         (reassociate_bb): Call transform_add_to_multiply.
12877 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
12879         * config/aarch64/aarch64.c (all_extensions): Removed unused
12880         static variable.
12882 2016-05-17  Nathan Sidwell  <nathan@acm.org>
12884         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
12885         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
12887 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
12889         PR tree-optimization/54579
12890         PR middle-end/55299
12891         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
12893 2016-05-17  Marek Polacek  <polacek@redhat.com>
12895         PR ipa/71146
12896         * tree-inline.c (expand_call_inline): Call
12897         maybe_remove_unused_call_args.
12899 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
12901         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
12902         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
12903         * doc/md.texi (fmin@var{m}3): Likewise.
12905 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
12907         * match.pd (X & C): New transformation.
12909 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
12911         * match.pd (~X & Y): New transformation.
12913 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
12915         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
12916         information for new SSA_NAME.
12917         (simplify_conversion_using_ranges): Get range through get_range_info
12918         instead of get_value_range.
12920 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
12922         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
12923         Remove inline assembly.
12924         (vmvn_s16): Likewise.
12925         (vmvn_s32): Likewise.
12926         (vmvn_u8): Likewise.
12927         (vmvn_u16): Likewise.
12928         (vmvn_u32): Likewise.
12929         (vmvnq_s8): Likewise.
12930         (vmvnq_s16): Likewise.
12931         (vmvnq_s32): Likewise.
12932         (vmvnq_u8): Likewise.
12933         (vmvnq_u16): Likewise.
12934         (vmvnq_u32): Likewise.
12935         (vmvn_p8): Likewise.
12936         (vmvnq_p16): Likewise.
12938 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
12940         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
12941         Use builtin.
12942         (vmul_n_s16): Likewise.
12943         (vmul_n_s32): Likewise.
12944         (vmul_n_u16): Likewise.
12945         (vmul_n_u32): Likewise.
12946         (vmulq_n_f32): Likewise.
12947         (vmulq_n_f64): Likewise.
12948         (vmulq_n_s16): Likewise.
12949         (vmulq_n_s32): Likewise.
12950         (vmulq_n_u16): Likewise.
12951         (vmulq_n_u32): Likewise.
12953 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
12955         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
12956         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
12958 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
12960         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
12961         to *aarch64_fma4_elt_from_dup<mode>.
12962         (*aarch64_fnma4_elt_to_128df): Rename to
12963         *aarch64_fnma4_elt_from_dup<mode>.
12964         * config/aarch64/arm_neon.h (vfma_n_f64): New.
12965         (vfms_n_f32): Likewise.
12966         (vfms_n_f64): Likewise.
12967         (vfmsq_n_f32): Likewise.
12968         (vfmsq_n_f64): Likewise.
12970 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
12972         * wide-int.h: Change fixed_wide_int_storage from class to struct.
12974 2016-05-17  Richard Biener  <rguenther@suse.de>
12976         PR tree-optimization/71132
12977         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
12978         Only add control dependences for blocks in the loop.
12979         (build_rdg): Adjust.
12980         (generate_code_for_partition): Return whether loop should
12981         be destroyed and delay that.
12982         (distribute_loop): Likewise.
12983         (pass_loop_distribution::execute): Record loops to be destroyed
12984         and perform delayed destroying of loops.
12986 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12988         PR target/70809
12989         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
12991 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
12993         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
12995 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
12997         PR target/71114
12998         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
12999         insertion point for instructions generated by validize_mem.
13001 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
13003         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
13004         in brackets.
13006 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
13008         * config/aarch64/aarch64.c
13009         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
13010         rather than a macro.
13012 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
13014         * doc/invoke.texi (AArch64 Options): Various updates.
13016 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13018         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
13019         into instrumentation thunks.
13020         * cif-code.def (CIF_CHKP): New.
13022 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
13024         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
13026 2016-05-16  Martin Jambor  <mjambor@suse.cz>
13028         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
13029         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
13031 2016-05-16  Marek Polacek  <polacek@redhat.com>
13033         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
13034         commentary.
13036 2016-05-16  Martin Jambor  <mjambor@suse.cz>
13038         PR hsa/70857
13039         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
13040         the outlined kernel function.
13042 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
13044         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
13045         (ISA_HAS_DLSA): Ditto.
13047 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
13049         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
13051 2016-05-16  Nathan Sidwell  <nathan@acm.org>
13053         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
13054         (nvptx_name_replacement): Restore.  Add comment.
13055         (write_fn_proto, write_fn_proto_from_insn,
13056         nvptx_output_call_insn): Restore
13057         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
13059 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
13061         * config/aarch64/aarch64.md
13062         (add<mode>3_compareC_cconly_imm): Remove use of %w.
13063         (add<mode>3_compareC_imm): Likewise.
13064         (<optab>si3_uxtw): Split into register and immediate variants.
13065         (andsi3_compare0_uxtw): Likewise.
13066         (and<mode>3_compare0): Likewise.
13067         (and<mode>3nr_compare0): Likewise.
13068         (stack_protect_test_<mode>): Don't use %x for memory operands.
13070 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
13072         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
13074 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
13076         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
13077         Split integer shifts into shift_reg and bfm.
13078         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
13079         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
13080         (ror<mode>3_insn): Likewise.
13081         (<optab>si3_insn_uxtw): Likewise.
13082         (<optab><mode>3_insn): Change to rotate_imm.
13083         (extr<mode>5_insn_alt): Likewise.
13084         (extrsi5_insn_uxtw): Likewise.
13085         (extrsi5_insn_uxtw_alt): Likewise.
13087 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
13089         * doc/tm.texi: Regenerate.
13090         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
13091         (TARGET_INVALID_RETURN_TYPE): Remove.
13092         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
13093         TARGET_INVALID_RETURN_TYPE.
13094         * target.def (invalid_parameter_type): Remove.
13095         (invalid_return_type): Remove.
13097 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13099         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
13100         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
13101         calls from thunk.
13102         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
13103         gimple body.
13104         (preserve_function_body_p): No need to preserve function body
13105         * cif-codes.def (CIF_THUNK): Remove.
13106         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
13108 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13110         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
13112 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13114         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
13115         for thunks.
13117 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13119         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
13120         (inline_small_functions): Do not look for function symbol when
13121         resetting caches.
13123 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13125         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
13126         of inline thunks
13128 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
13129             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13130             Jiong Wang  <jiong.wang@arm.com>
13132         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
13133         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
13134         Define __ARM_FP16_ARGS when appropriate.
13135         * config/arm/arm.c (arm_invalid_parameter_type): Remove
13136         declaration.
13137         (arm_invalid_return_type): Likewise.
13138         (TARGET_INVALID_PARAMETER_TYPE): Remove.
13139         (TARGET_INVALID_RETURN_TYPE): Remove.
13140         (aapcs_vfp_sub_candidate): Allow HFmode.
13141         (aapcs_vfp_allocate): Add comment.  Support HFmode.
13142         (aapcs_vfp_allocate_return_reg): Likewise.
13143         (struct aapcs_cp_arg_layout): Slightly reword comments for
13144         is_return_candidate and allocate_return_reg.
13145         (output_mov_vfp): Update assert.
13146         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
13147         condition.
13148         (arm_invalid_parameter_type): Remove.
13149         (amr_invalid_return_type): Remove.
13150         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
13151         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
13152         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
13154 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
13156         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
13157         * config/aarch64/arch64-protos.h
13158         (aarch64_legitimize_reload_address): Remove.
13159         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
13160         Remove.
13162 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
13164         * configure.ac: Add ACX_NONCANONICAL_HOST.
13165         * configure: Regenerate.
13166         * Makefile.in: Set host_noncanonical.
13168 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
13170         PR target/71097
13171         * config/i386/i386.md (*movtf_internal): Before register allocation,
13172         do not allow FP constants for CM_MEDIUM memory model, allow only
13173         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
13174         (*movxf_internal): Ditto.
13175         (*movdf_internal): Ditto.
13176         (*movsf_internal): Ditto.
13178 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
13180         PR rtl-optimization/67483
13181         * combine.c (make_compound_operation): Don't call extract_left_shift
13182         with negative shift amounts.
13184 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
13186         PR bootstrap/71071
13187         * fold-const.c (fold_checksum_tree): Allow modification
13188         of TYPE_ALIAS_SET during folding.
13190         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
13191         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
13192         (ix86_split_to_parts): Likewise.  Fix up formatting.
13194 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
13196         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
13197         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
13198         printf format.
13200 2016-05-13  Nathan Sidwell  <nathan@acm.org>
13202         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
13203         (nvptx_name_replacement): Delete.
13204         (write_fn_proto, write_fn_proto_from_insn,
13205         nvptx_output_call_insn): Remove nvptx_name_replacement call.
13206         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
13207         * langhooks.c (add_builtin_funcction_common): Call
13208         targetm.mangle_decl_assembler_name.
13210         * config/nvptx/nvptx.c (write_fn_proto): Handle
13211         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
13213 2016-05-13  Martin Liska  <mliska@suse.cz>
13215         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
13216         and PRIu64 in printf format.
13218 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13220         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
13221         comment.
13223 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13225         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
13226         Change --param max-completely-peeled-times to
13227         --param max-completely-peel-times in dump file printing.
13229 2016-05-13  Richard Biener  <rguenther@suse.de>
13231         PR tree-optimization/42587
13232         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
13233         (find_bswap_or_nop_1): Likewise.
13234         (bswap_replace): Likewise.
13236 2016-05-13  Martin Liska  <mliska@suse.cz>
13238         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
13239         Initialize a variable with default value.
13241 2016-05-13  Martin Liska  <mliska@suse.cz>
13243         * doc/invoke.texi: Enhance explanation of error recovery
13244         of sanitizers.
13246 2016-05-13  Martin Liska  <mliska@suse.cz>
13248         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
13249         (struct cost_pair): Change inv_expr_id (int) to inv_expr
13250         (iv_inv_expr_ent *).
13251         (struct iv_inv_expr_ent): Comment struct fields.
13252         (sort_iv_inv_expr_ent): New function.
13253         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
13254         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
13255         a hash_map between iv_inv_expr_ent and number of usages.
13256         (niter_for_exit): Fix coding style.
13257         (tree_ssa_iv_optimize_init): Use renamed variable.
13258         (determine_base_object): Fix coding style.
13259         (alloc_iv): Likewise.
13260         (find_interesting_uses_outside): Likewise.
13261         (add_candidate_1): Likewise.
13262         (add_standard_iv_candidates): Likewise.
13263         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
13264         (prepare_decl_rtl): Fix coding style.
13265         (get_address_cost): Likewise.
13266         (get_shiftadd_cost): Likewise.
13267         (force_expr_to_var_cost): Likewise.
13268         (compare_aff_trees): Likewise.
13269         (get_expr_id): Restructure the function.
13270         (get_loop_invariant_expr_id): Renamed to
13271         get_loop_invariant_expr.
13272         (get_computation_cost_at): Replace usage of inv_expr_id with
13273         inv_expr.
13274         (get_computation_cost): Likewise.
13275         (determine_group_iv_cost_generic): Likewise.
13276         (determine_group_iv_cost_address): Likewise.
13277         (iv_period): Fix coding style.
13278         (iv_elimination_compare_lt): Likewise.
13279         (may_eliminate_iv): Likewise.
13280         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
13281         inv_expr.
13282         (determine_group_iv_costs): Dump invariant expressions.
13283         (iv_ca_recount_cost): Use the newly added hash_map.
13284         (iv_ca_set_remove_invariants): Fix coding style.
13285         (iv_ca_set_add_invariants): Fix coding style.
13286         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
13287         invariants.
13288         (iv_ca_set_cp): Likewise.
13289         (iv_ca_new): Initialize the newly added hash_map and remove
13290         initialization of fields.
13291         (iv_ca_free): Delete the hash_map.
13292         (iv_ca_dump): Dump invariant expressions.
13293         (iv_ca_extend): Fix coding style.
13294         (try_add_cand_for): Likewise.
13295         (create_new_ivs): Dump information about # of avg iterations and
13296         # of used invariant expressions.
13297         (rewrite_use_compare): Fix coding style.
13298         (free_loop_data): Set default value for max_inv_expr_id.
13300 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
13302         * cse.c (rest_of_handle_cse): Use cleanup_cfg
13303         returned value cse_cfg_altered computation.
13304         (rest_of_handle_cse2): Likewise.
13305         (rest_of_handle_cse_after_global_opts): Likewise.
13307 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13309         PR target/53440
13310         * config/arm/arm.c (arm32_output_mi_thunk): New.
13311         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
13312         to split Thumb1 vs TARGET_32BIT functionality.
13313         (arm_thumb1_mi_thunk): New.
13315 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13317         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
13318         to true.
13320 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13322         PR target/71080
13323         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
13325 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
13327         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
13328         (expand_builtin_trap): Emit a regular call.
13329         (set_builtin_user_assembler_name): Remove obsolete cases.
13330         * dse.c (scan_insn): Adjust.
13331         * except.c: Include calls.h.
13332         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
13333         emit a regular call to setjmp.
13334         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
13335         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
13336         (emit_block_move_via_libcall): Delete.
13337         (block_move_fn): Delete.
13338         (init_block_move_fn): Likewise.
13339         (emit_block_move_libcall_fn): Likewise.
13340         (emit_block_op_via_libcall): New function.
13341         (set_storage_via_libcall): Tidy up and use memset builtin.
13342         (block_clear_fn): Delete.
13343         (init_block_clear_fn): Likewise.
13344         (clear_storage_libcall_fn): Likewise.
13345         (expand_assignment): Call emit_block_move_via_libcall.
13346         Do not include gt-expr.h.
13347         * expr.h (emit_block_op_via_libcall): Declare.
13348         (emit_block_copy_via_libcall): New inline function.
13349         (emit_block_move_via_libcall): Likewise.
13350         (emit_block_comp_via_libcall): Likewise.
13351         (block_clear_fn): Delete.
13352         (init_block_move_fn): Likewise.
13353         (init_block_clear_fn): Likewise.
13354         (emit_block_move_via_libcall): Likewise.
13355         (set_storage_via_libcall): Add default parameter value.
13356         * libfuncs.h (enum libfunc_index): Remove obsolete values.
13357         (abort_libfunc): Delete.
13358         (memcpy_libfunc): Likewise.
13359         (memmove_libfunc): Likewise.
13360         (memcmp_libfunc): Likewise.
13361         (memset_libfunc): Likewise.
13362         (setbits_libfunc): Likewise.
13363         (setjmp_libfunc): Likewise.
13364         (longjmp_libfunc): Likewise.
13365         (profile_function_entry_libfunc): Likewise.
13366         (profile_function_exit_libfunc): Likewise.
13367         (gcov_flush_libfunc): Likewise.
13368         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
13369         and DECL_VISIBILITY on the declaration.
13370         (init_optabs): Do not initialize obsolete libfuncs.
13371         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
13372         * tree-core.h (ECF_RET1): Define.
13373         (ECF_TM_PURE): Adjust.
13374         (ECF_TM_BUILTIN): Likewise.
13375         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
13376         (build_common_builtin_nodes): Initialize abort builtin.
13377         Add ECF_RET1 on memcpy, memmove and memset builtins.
13378         Pass final flags for alloca and alloca_with_align builtins.
13379         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
13380         obsolete builtins.
13381         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
13382         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
13383         set_storage_via_libcall and call emit_block_copy_via_libcall.
13385 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
13387         * config/i386/i386.md (*call_got_x32): Change operand 0 to
13388         DImode before it is passed to ix86_output_call_operand.
13389         (*call_value_got_x32): Ditto for operand 1.
13391 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
13393         PR rtl-optimization/70904
13394         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
13395         reload for wide mode.
13397 2016-05-12  Marek Polacek  <polacek@redhat.com>
13399         PR c/70756
13400         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
13401         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
13402         * langhooks.h (incomplete_type_error): Likewise.
13403         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
13404         parameter, pass it down to incomplete_type_error.
13405         * tree.h (size_in_bytes): New inline overload.
13406         (size_in_bytes_loc): Renamed from size_in_bytes.
13408 2016-05-12  Richard Biener  <rguenther@suse.de>
13410         PR tree-optimization/71059
13411         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
13412         nary before looking up or entering the expression into the VN
13413         hashes.
13414         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
13415         Make sure to re-use NARYs without result as inserted by
13416         phi-translation.
13418 2016-05-12  Richard Biener  <rguenther@suse.de>
13420         PR tree-optimization/71062
13421         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
13422         field.
13423         * tree-ssa-structalias.c (set_uids_in_ptset): Set
13424         vars_contains_restrict if the var is a restrict tag.
13425         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
13426         do not disambiguate pointers against it.
13427         (dump_points_to_solution): Re-structure and adjust for new
13428         vars_contains_restrict flag.
13429         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
13431 2016-05-12  Martin Liska  <mliska@suse.cz>
13433         * doc/invoke.texi: Explain connection between
13434         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
13436 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
13438         PR tree-optimization/71006
13439         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
13440         consider COND_EXPR as a mask producer.
13442 2016-05-12  Marek Polacek  <polacek@redhat.com>
13444         PR driver/71063
13445         * opts.c (common_handle_option): Detect missing argument for --help^.
13447 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13449         PR target/70830
13450         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
13451         when popping the PC and within an interrupt handler routine.
13452         Add missing tab to output of "ldmfd".
13453         (output_return_instruction): Output LDMFD with SP update rather
13454         than POP when returning from interrupt handler.
13456 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
13458         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
13459         TARGET_64BIT && TARGET_AVX512DQ.
13460         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
13461         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
13462         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
13463         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
13464         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
13465         (*vec_extractv4si_zext): Add avx512dq alternative.
13466         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
13467         use v instead of x constraint in other alternatives where possible.
13469         * config/i386/sse.md (sse2_loadld): Use v instead of x
13470         constraint in alternatives 0,1,4.
13472         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
13473         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
13474         v constraints instead of x and <pinsr_evex_isa> isa attribute.
13476         PR target/71019
13477         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
13478         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
13479         is not emitted unless TARGET_AVX512BW.
13480         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
13481         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
13482         for the result operand.
13484         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
13485         constraint instead of x in avx alternatives.  Use maybe_evex instead
13486         of vex prefix.
13488         * config/i386/constraints.md (Yv): New constraint.
13489         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
13490         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
13491         * config/i386/i386.md (avx512fvecmode): New mode attr.
13492         (*pushtf): Use v constraint instead of x.
13493         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
13494         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
13495         (*absneg<mode>2): Use Yv constraint instead of x constraint.
13496         (*absnegtf2_sse): Likewise.
13497         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
13498         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
13499         avx512f alternatives.
13500         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
13502 2016-05-12  Richard Biener  <rguenther@suse.de>
13504         PR tree-optimization/71060
13505         * tree-data-ref.c (initialize_data_dependence_relation): Do not
13506         require exact match of DR_BASE_OBJECT but only matching address and
13507         type.
13509 2016-05-12  Richard Biener  <rguenther@suse.de>
13511         PR tree-optimization/70986
13512         * cfganal.c: Include cfgloop.h.
13513         (dfs_find_deadend): Prefer to take edges exiting loops.
13515 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13517         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
13518         compile and run time.
13520 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
13522         PR c/43651
13523         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
13525 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
13527         * config/i386/i386.c (legitimize_pic_address): Use
13528         copy_to_suggested_reg instead of gen_movsi.
13530 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13532         * config/rs6000/predicates.md (quad_memory_operand): Move most of
13533         the code into quad_address_p and call it to share code with
13534         vsx_quad_dform_memory_operand.
13535         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
13536         d-form support.
13537         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
13538         bit instead of being a separate word.  Split -mpower9-dform into
13539         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
13540         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
13541         for the register class supporting 128-bit quad word memory offsets.
13542         (mode_supports_vsx_dform_quad): Helper function to return if the
13543         register class uses quad word memory offsets.
13544         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
13545         (rs6000_debug_reg_global): Always print if we are using LRA or not.
13546         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
13547         instructions are enabled, set up the appropriate addr_masks for
13548         128-bit types.
13549         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
13550         -mpower9-dform-scalar, instead of -mpower9-dform.
13551         (rs6000_option_override_internal): Split -mpower9-dform into two
13552         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
13553         -mpower9-dform switch sets or clears both.  If we are not using
13554         the LRA register allocator, do not enable -mpower9-dform-vector by
13555         default.  If we are using LRA, enable -mpower9-dform-vector and
13556         -mvsx-timode if it is appropriate.  Issue a warning if either
13557         -mpower9-dform-vector or -mvsx-timode are explicitly used without
13558         enabling LRA.
13559         (quad_address_offset_p): New helper function to return if the
13560         offset is legal for quad word memory instructions.
13561         (quad_address_p): New function to determin if GPR or vector
13562         register quad word memory addresses are legal.
13563         (mem_operand_gpr): Validate quad word address offsets.
13564         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
13565         d-form (register + offset) instructions.
13566         (offsettable_ok_by_alignment): Likewise.
13567         (rs6000_legitimate_offset_address_p): Likewise.
13568         (legitimate_lo_sum_address_p): Likewise.
13569         (rs6000_legitimize_address): Likewise.
13570         (rs6000_legitimize_reload_address): Add more debug statements for
13571         -mdebug=addr.
13572         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
13573         d-form instructions.
13574         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
13575         d-form instructions.  Distinguish different cases in debug
13576         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
13577         d-form instructions.
13578         (rs6000_preferred_reload_class): Likewise.
13579         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
13580         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
13581         of the ISA 2.06 indexed memory instructions.
13582         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
13583         use them to save/restore the saved vector registers instead of
13584         using Altivec instructions.
13585         (rs6000_emit_epilogue): Likewise.
13586         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
13587         (rs6000_opt_masks): Split -mpower9-dform into
13588         -mpower9-dform-scalar and -mpower9-dform-vector.
13589         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
13590         was not selected.
13591         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
13592         ISA 3.0 vector indexed memory instructions, and fold the code into
13593         the normal mov<mode> patterns.
13594         (p9_vecstore_<mode>): Likewise.
13595         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
13596         instructions.
13597         (vsx_movti_64bit): Likewise.
13598         (vsx_movti_32bit): Likewise.
13599         * config/rs6000/constraints.md (wO constraint): New constraint for
13600         ISA 3.0 vector d-form support.
13601         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
13602         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
13603         include -mpower9-dform-vector until we switch over to LRA.
13604         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
13605         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
13606         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
13607         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
13608         for -mpower9-dform and -mlra.
13609         * doc/md.texi (wO constraint): Document wO constraint.
13611 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
13613         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
13614         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
13615         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
13616         Move handling of non-insn arguments inline into the sole user:
13617         (output_trans_func): ...here.
13618         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
13619         in emitted function prototype.
13620         (output_internal_insn_latency_func): Ditto.  Simplify.
13621         (output_internal_maximal_insn_latency_func): Ditto.  Delete
13622         always-unused argument.
13623         (output_insn_latency_func): Ditto.
13624         (output_maximal_insn_latency_func): Ditto.
13626 2016-05-11  Richard Biener  <rguenther@suse.de>
13628         PR tree-optimization/71055
13629         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
13630         sth with precision not equal to access size verify we don't chop
13631         off bits.
13633 2016-05-11  Richard Biener  <rguenther@suse.de>
13635         PR debug/71057
13636         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
13637         (dwarf2out_finish): Move retry_incomplete_types call ...
13638         (dwarf2out_early_finish): ... here.
13640 2016-05-11  Richard Biener  <rguenther@suse.de>
13642         PR middle-end/71002
13643         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
13644         if the langhook insists on it.
13645         * fold-const.c (make_bit_field_ref): Add arg for the original
13646         reference and preserve its alias-set.
13647         (decode_field_reference): Take exp by reference and adjust it
13648         to the original memory reference.
13649         (optimize_bit_field_compare): Adjust callers.
13650         (fold_truth_andor_1): Likewise.
13651         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
13653 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
13655         PR middle-end/70807
13656         * cfgrtl.h (delete_insn_and_edges): Now return bool.
13657         * cfgrtl.c (delete_insn_and_edges): Likewise.
13658         * config/i386/i386.c (convert_scalars_to_vector): Remove
13659         redundant code.
13660         * cse.c (cse_insn): Compute cse_cfg_altered.
13661         (delete_trivially_dead_insns): Likewise.
13662         (cse_cc_succs): Likewise.
13663         (rest_of_handle_cse): Free dominance info if required.
13664         (rest_of_handle_cse2): Likewise.
13665         (rest_of_handle_cse_after_global_opts): Likewise.
13667 2016-05-11  Alan Modra  <amodra@gmail.com>
13669         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
13670         abi_v4_pass_in_fpr): New functions.
13671         (rs6000_function_arg_boundary): Exclude complex IBM long double
13672         from 64-bit alignment when ABI_V4.
13673         (rs6000_function_arg, rs6000_function_arg_advance_1,
13674         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
13676 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
13678         PR rtl-optimization/71028
13679         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
13680         jump with just a return in the fallthrough block if the branch
13681         block contains just a return as well.
13683 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
13685         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
13686         * match.pd ((X & Y) ^ Y): ... this.
13687         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
13688         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
13690 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
13692         * read-md.c (require_char_ws): New function.
13693         (read_string): Simplify using require_char_ws.
13694         (handle_constants): Likewise.
13695         (handle_enum): Likewise.
13696         (handle_file): Likewise.
13697         * read-md.h (require_char_ws): New declaration.
13698         * read-rtl.c (read_conditions): Simplify using require_char_ws.
13699         (read_mapping): Likewise.
13700         (read_rtx_code): Likewise.
13701         (read_nested_rtx): Likewise.
13703 2016-05-10  James Norris  <jnorris@codesourcery.com>
13705         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
13706         if offloading is enabled and -fopenacc or -fopenmp is specified.
13707         (CRTOFFLOADEND): Likewise.
13708         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
13709         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
13711 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
13713         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
13714         gotoff_operand code paths.  Use copy_to_suggested_regs and
13715         expand_simple_binop where appropriate.  Cleanup.
13717 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13719         PR target/70799
13720         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
13721         integer constants.
13722         (dimode_scalar_chain::vector_const_cost): New.
13723         (dimode_scalar_chain::compute_convert_gain): Handle constants.
13724         (dimode_scalar_chain::convert_op): Likewise.
13725         (dimode_scalar_chain::convert_insn): Likewise.
13727 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
13729         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
13730         unary operation, not a binary one.
13732 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13734         PR middle-end/70877
13735         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
13736         calls with type casted fndecl.
13738 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13740         PR tree-optimization/70786
13741         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
13742         * calls.c (initialize_argument_information): Bind bounds
13743         with corresponding args passed by reference.
13745 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
13747         PR target/70927
13748         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
13749         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
13750         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
13751         accordingly.
13753 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13755         PR target/70963
13756         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
13757         code for a zero scale factor.
13758         (vsx_xvcvdpuxds_scale): Likewise.
13760 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
13762         * diagnostic-show-locus.c (layout::layout): Call show_ruler
13763         if show_ruler_p was set on the context.
13764         (layout::show_ruler): New method.
13765         * diagnostic.h (struct diagnostic_context): Add field
13766         "show_ruler_p".
13768 2016-05-10  Richard Biener  <rguenther@suse.de>
13770         PR tree-optimization/71039
13771         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
13772         (chk_uses): New function.
13773         (propagate_with_phi): Verify we can safely replicate the lhs of an
13774         aggregate assignment on all incoming edges.
13776 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
13778         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
13779         Forward declare.
13780         (rx_atomic_sequence): New class.
13781         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
13782         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
13783         non-inline.
13784         (rx_atomic_sequence::rx_atomic_sequence,
13785         rx_atomic_sequence::~rx_atomic_sequence): New functions.
13786         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
13787         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
13788         CTRLREG_INTB): New constants.
13789         (FETCHOP): New code iterator.
13790         (fethcop_name, fetchop_name2): New iterator code attributes.
13791         (QIHI): New mode iterator.
13792         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
13793         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
13794         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
13796 2016-05-10  Martin Liska  <mliska@suse.cz>
13798         * tree-inline.c (remap_dependence_clique): Do not remap
13799         debugging statements.
13801 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13803         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
13804         ("*fixuns_truncdfdi2_z13")
13805         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
13806         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
13807         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
13809 2016-05-10  Richard Biener  <rguenther@suse.de>
13811         PR tree-optimization/70497
13812         PR tree-optimization/28367
13813         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
13814         split out from ...
13815         (visit_reference_op_load): ... here.
13816         (vn_reference_lookup_3): Use it to handle subreg-like accesses
13817         with simplified BIT_FIELD_REFs.
13818         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
13819         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
13820         correctly.
13822 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
13824         * dwarf2out.c (add_abstract_origin_attribute): Adjust
13825         documentation comment.  For BLOCK nodes, add a
13826         DW_AT_abstract_origin attribute that points to the DIE generated
13827         for the origin BLOCK.
13828         (gen_lexical_block_die): Call add_abstract_origin_attribute for
13829         blocks from inlined functions.
13831 2016-05-10  Alan Modra  <amodra@gmail.com>
13833         PR target/70947
13834         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
13835         regrename modifying insns saving lr before __morestack call.
13836         * config/rs6000/rs6000.md (split_stack_return): Similarly for
13837         insns restoring lr after __morestack call.
13839 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
13841         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
13842         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
13843         expanders.
13844         * config/i386/sse.md (vec_interleave_high<mode>,
13845         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
13846         <avx512>_vpermt2var<mode>3_maskz): Likewise.
13848 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
13850         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
13851         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
13852         parallel reassociation for power8 and forward.
13854 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
13856         * config/i386/i386.md (absneg splitters with general regs): Use
13857         general_reg_operand predicate.
13858         (btsq peephole2): Use x86_64_immediate_operand to check if new
13859         value is suitable for immediate operand.  Generate emitted insn
13860         using RTL expressions.
13861         (btcq peephole2): Ditto.
13862         (btrq peephole2): Ditto.  Generate correct immediate operand
13863         for AND masking.
13865 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
13867         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
13868         bitpos.
13870 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
13872         * tree-affine.c (wide_int_constant_multiple_p): Add missing
13873         pointer dereference.
13875 2016-05-09  Richard Biener  <rguenther@suse.de>
13877         PR tree-optimization/70985
13878         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
13879         op0 isn't a gimple register.
13881 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
13883         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
13884         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
13885         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
13886         (i6400_fpu_mult): New cpu units.
13887         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
13888         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
13889         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
13890         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
13891         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
13892         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
13893         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
13894         (i6400_msa_long_float4, i6400_msa_long_float5)
13895         (i6400_msa_long_float8, i6400_msa_fdiv_df)
13896         (i6400_msa_fdiv_sf): New reservations.
13897         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
13898         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
13899         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
13900         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
13901         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
13902         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
13903         (msa_short_cmp, msa_short_float2, msa_short_logic3)
13904         (msa_short_store4, msa_long_load, msa_short_store)
13905         (msa_long_logic, msa_long_float2, msa_long_float4)
13906         (msa_long_float5, msa_long_float8, msa_long_mult)
13907         (msa_long_fdiv, msa_long_div): New reservations.
13909 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
13910             Sameera Deshpande  <sameera.deshpande@imgtec.com>
13911             Matthew Fortune  <matthew.fortune@imgtec.com>
13912             Graham Stott  <graham.stott@imgtec.com>
13913             Chao-ying Fu  <chao-ying.fu@imgtec.com>
13915         * config.gcc: Add MSA header file for mips*-*-* target.
13916         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
13917         (Ubv8i, Urv8):  New constraints.
13918         * config/mips/mips-ftypes.def: Add function types for MSA
13919         builtins.
13920         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
13921         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
13922         * config/mips/mips-msa.md: New file.
13923         * config/mips/mips-protos.h
13924         (mips_split_128bit_const_insns): New prototype.
13925         (mips_msa_idiv_insns): Likewise.
13926         (mips_split_128bit_move): Likewise.
13927         (mips_split_128bit_move_p): Likewise.
13928         (mips_split_msa_copy_d): Likewise.
13929         (mips_split_msa_insert_d): Likewise.
13930         (mips_split_msa_fill_d): Likewise.
13931         (mips_expand_msa_branch): Likewise.
13932         (mips_const_vector_same_val_p): Likewise.
13933         (mips_const_vector_same_bytes_p): Likewise.
13934         (mips_const_vector_same_int_p): Likewise.
13935         (mips_const_vector_shuffle_set_p): Likewise.
13936         (mips_const_vector_bitimm_set_p): Likewise.
13937         (mips_const_vector_bitimm_clr_p): Likewise.
13938         (mips_msa_vec_parallel_const_half): Likewise.
13939         (mips_msa_output_division): Likewise.
13940         (mips_ldst_scaled_shift): Likewise.
13941         (mips_expand_vec_cond_expr): Likewise.
13942         * config/mips/mips.c (enum mips_builtin_type): Add
13943         MIPS_BUILTIN_MSA_TEST_BRANCH.
13944         (mips_gen_const_int_vector_shuffle): New prototype.
13945         (mips_const_vector_bitimm_set_p): New function.
13946         (mips_const_vector_bitimm_clr_p): Likewise.
13947         (mips_const_vector_same_val_p): Likewise.
13948         (mips_const_vector_same_bytes_p): Likewise.
13949         (mips_const_vector_same_int_p): Likewise.
13950         (mips_const_vector_shuffle_set_p): Likewise.
13951         (mips_symbol_insns): Forbid loading symbols via immediate for
13952         MSA.
13953         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
13954         stores.
13955         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
13956         MSA.
13957         (mips_lx_address_p): Add support load indexed address for MSA.
13958         (mips_address_insns): Add calculation of instructions needed for
13959         stores and loads for MSA.
13960         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
13961         CONST_VECTOR for MSA and let it fall through.
13962         (mips_ldst_scaled_shift): New function.
13963         (mips_subword_at_byte): Likewise.
13964         (mips_msa_idiv_insns): Likewise.
13965         (mips_legitimize_move): Validate MSA moves.
13966         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
13967         calculation of costs for MSA division.
13968         (mips_split_move_p): Check if MSA moves need splitting.
13969         (mips_split_move): Split MSA moves if necessary.
13970         (mips_split_128bit_move_p): New function.
13971         (mips_split_128bit_move): Likewise.
13972         (mips_split_msa_copy_d): Likewise.
13973         (mips_split_msa_insert_d): Likewise.
13974         (mips_split_msa_fill_d): Likewise.
13975         (mips_output_move): Handle MSA moves.
13976         (mips_expand_msa_branch): New function.
13977         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
13978         Reinstate 'y' modifier.
13979         (mips_file_start): Add MSA .gnu_attribute.
13980         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
13981         FPRs.
13982         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
13983         (mips_class_max_nregs): Add register size for MSA supported mode.
13984         (mips_cannot_change_mode_class): Allow conversion between MSA
13985         vector modes and TImode.
13986         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
13987         instruction.
13988         (mips_secondary_reload_class): Force MSA loads/stores via memory.
13989         (mips_preferred_simd_mode): Add preffered modes for MSA.
13990         (mips_vector_mode_supported_p): Add MSA supported modes.
13991         (mips_autovectorize_vector_sizes): New function.
13992         (mips_msa_output_division): Likewise.
13993         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
13994         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
13995         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
13996         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
13997         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
13998         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
13999         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
14000         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
14001         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
14002         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
14003         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
14004         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
14005         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
14006         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
14007         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
14008         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
14009         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
14010         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
14011         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
14012         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
14013         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
14014         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
14015         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
14016         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
14017         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
14018         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
14019         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
14020         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
14021         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
14022         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
14023         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
14024         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
14025         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
14026         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
14027         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
14028         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
14029         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
14030         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
14031         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
14032         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
14033         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
14034         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
14035         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
14036         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
14037         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
14038         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
14039         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
14040         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
14041         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
14042         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
14043         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
14044         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
14045         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
14046         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
14047         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
14048         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
14049         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
14050         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
14051         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
14052         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
14053         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
14054         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
14055         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
14056         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
14057         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
14058         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
14059         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
14060         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
14061         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
14062         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
14063         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
14064         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
14065         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
14066         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
14067         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
14068         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
14069         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
14070         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
14071         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
14072         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
14073         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
14074         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
14075         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
14076         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
14077         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
14078         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
14079         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
14080         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
14081         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
14082         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
14083         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
14084         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
14085         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
14086         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
14087         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
14088         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
14089         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
14090         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
14091         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
14092         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
14093         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
14094         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
14095         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
14096         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
14097         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
14098         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
14099         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
14100         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
14101         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
14102         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
14103         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
14104         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
14105         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
14106         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
14107         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
14108         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
14109         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
14110         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
14111         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
14112         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
14113         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
14114         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
14115         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
14116         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
14117         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
14118         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
14119         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
14120         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
14121         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
14122         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
14123         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
14124         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
14125         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
14126         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
14127         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
14128         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
14129         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
14130         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
14131         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
14132         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
14133         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
14134         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
14135         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
14136         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
14137         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
14138         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
14139         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
14140         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
14141         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
14142         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
14143         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
14144         move_v builtins.
14145         (mips_get_builtin_decl_index): New array.
14146         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
14147         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
14148         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
14149         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
14150         (mips_init_builtins): Initialize mips_get_builtin_decl_index
14151         array.
14152         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
14153         hook.
14154         (mips_expand_builtin_insn): Prepare operands for
14155         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
14156         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
14157         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
14158         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
14159         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
14160         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
14161         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
14162         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
14163         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
14164         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
14165         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
14166         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
14167         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
14168         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
14169         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
14170         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
14171         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
14172         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
14173         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
14174         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
14175         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
14176         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
14177         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
14178         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
14179         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
14180         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
14181         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
14182         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
14183         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
14184         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
14185         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
14186         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
14187         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
14188         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
14189         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
14190         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
14191         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
14192         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
14193         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
14194         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
14195         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
14196         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
14197         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
14198         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
14199         These are set implicitly and an error is reported if overridden.
14200         (mips_expand_builtin_msa_test_branch): New function.
14201         (mips_expand_msa_shuffle): Likewise.
14202         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
14203         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
14204         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
14205         (mips_expand_vec_unpack): Add support for MSA.
14206         (mips_expand_vector_init): Likewise.
14207         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
14208         instead of const0_rtx.
14209         (mips_msa_vec_parallel_const_half): New function.
14210         (mips_gen_const_int_vector): Likewise.
14211         (mips_gen_const_int_vector_shuffle): Likewise.
14212         (mips_expand_msa_cmp): Likewise.
14213         (mips_expand_vec_cond_expr): Likewise.
14214         * config/mips/mips.h
14215         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
14216         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
14217         specified.
14218         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
14219         (ISA_HAS_MSA): New macro.
14220         (UNITS_PER_MSA_REG): Likewise.
14221         (BITS_PER_MSA_REG): Likewise.
14222         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
14223         (MSA_REG_FIRST): New macro.
14224         (MSA_REG_LAST): Likewise.
14225         (MSA_REG_NUM): Likewise.
14226         (MSA_REG_P): Likewise.
14227         (MSA_REG_RTX_P): Likewise.
14228         (MSA_SUPPORTED_MODE_P): Likewise.
14229         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
14230         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
14231         * config/mips/mips.md: Include mips-msa.md.
14232         (alu_type): Add simd_add.
14233         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
14234         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
14235         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
14236         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
14237         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
14238         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
14239         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
14240         simd_move, simd_load, simd_store.  Choose "multi" for moves
14241         for "qword_mode".
14242         (qword_mode): New attribute.
14243         (insn_count): Add instruction count for quad moves.
14244         Increase the count for MIPS SIMD division.
14245         (UNITMODE): Add UNITMODEs for vector types.
14246         (addsub): New code iterator.
14247         * config/mips/mips.opt (mmsa): New option.
14248         * config/mips/msa.h: New file.
14249         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
14250         specified.
14251         * config/mips/mti-linux.h: Likewise.
14252         * config/mips/predicates.md
14253         (const_msa_branch_operand): New constraint.
14254         (const_uimm3_operand): Likewise.
14255         (const_uimm4_operand): Likewise.
14256         (const_uimm5_operand): Likewise.
14257         (const_uimm8_operand): Likewise.
14258         (const_imm5_operand): Likewise.
14259         (aq10b_operand): Likewise.
14260         (aq10h_operand): Likewise.
14261         (aq10w_operand): Likewise.
14262         (aq10d_operand): Likewise.
14263         (const_m1_operand): Likewise.
14264         (reg_or_m1_operand): Likewise.
14265         (const_exp_2_operand): Likewise.
14266         (const_exp_4_operand): Likewise.
14267         (const_exp_8_operand): Likewise.
14268         (const_exp_16_operand): Likewise.
14269         (const_vector_same_val_operand): Likewise.
14270         (const_vector_same_simm5_operand): Likewise.
14271         (const_vector_same_uimm5_operand): Likewise.
14272         (const_vector_same_uimm6_operand): Likewise.
14273         (const_vector_same_uimm8_operand): Likewise.
14274         (par_const_vector_shf_set_operand): Likewise.
14275         (reg_or_vector_same_val_operand): Likewise.
14276         (reg_or_vector_same_simm5_operand): Likewise.
14277         (reg_or_vector_same_uimm6_operand): Likewise.
14278         * doc/extend.texi (MIPS SIMD Architecture Functions): New
14279         section.
14280         * doc/invoke.texi (-mmsa): Document new option.
14282 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14284         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
14285         * configure: Regenerate.
14286         * config.in: Regenerate.
14287         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
14288         on -fvtable-verify.
14289         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
14290         (ENDFILE_VTV_SPEC): Define.
14292 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
14294         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
14295         registers in all interrupt handlers if necessary.
14296         (rl78_option_override): Add warning.
14297         (MUST_SAVE_MDUC_REGISTERS): New macro.
14298         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
14299         * config/rl78/rl78.c (check_mduc_usage): New function.
14300         (mduc_regs): New structure to hold MDUC register data.
14301         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
14302         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
14303         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
14304         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
14305         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
14306         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
14308 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
14310         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
14311         (tree-ssa-loop-niter.h): Ditto.
14312         (idx_within_array_bound, ref_within_array_bound): New functions.
14313         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
14314         Factor out check on writable base object to ...
14315         (base_object_writable): ... here.
14317 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14319         * config/arm/arm.md (probe_stack): Add modes to set source
14320         and destination.
14322 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
14324         * regrename.c (base_reg_class_for_rename): New static function.
14325         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
14327 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
14329         * cgraph.c (thunk_adjust): Export.
14330         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
14331         * cgraphunit.c (thunk_adjust): Export.
14332         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
14333         thunks.
14334         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
14335         inlinable.
14336         * tree-inline.c (expand_call_inline): Expand thunks inline.
14338 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
14340         PR target/70998
14341         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
14342         (*sse2_vd_cvtss2sd): Ditto.
14343         * config/i386/i386.md
14344         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
14345         Generate *sse2_vd_cvtsd2ss pattern.
14346         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
14347         Generate *sse2_vd_cvtss2sd pattern.
14349 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
14351         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
14352         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
14353         users.
14355 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
14357         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
14358         * config/sh/sh.c: Define and declare variables on first use throughout
14359         the file.
14360         (current_function_interrupt): Change to bool type.
14361         (frame_insn): Rename to emit_frame_insn and update users.
14362         (push_regs): Use bool for 'interrupt_handler' argument.
14363         (save_schedule_s): Remove.
14364         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
14365         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
14366         targetm.asm_out.unaligned_op.di.
14367         (gen_far_branch): Remove redundant forward declaration.
14368         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
14369         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
14370         (sh_set_return_address, sh_function_ok_for_sibcall,
14371         scavenge_reg): Update comments.
14372         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
14373         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
14374         (sh_attr_renesas_p): Remove unnecessary parentheses.
14375         (branch_dest): Simplify.
14376         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
14377         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
14378         (CUMULATIVE_ARGS): Change macro to typedef.
14379         (current_function_interrupt): Change to bool type.
14380         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
14381         Surround with __cplusplus ifdef.
14382         (sh_compare_op0, sh_compare_op1): Remove.
14383         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
14385 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
14387         * config/arm/arm.md: (arch): Add neon.
14388         (arch_enabled): Return yes for arch neon when TARGET_NEON.
14389         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
14390         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
14391         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
14392         attributes for alt renumbering.  Mark alt 3 as non-predicable.
14393         (thumb2_movdf_vfp): Likewise.
14395 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
14397         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
14398         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
14399         (*andqi_1): Add preferred_for_speed attribute to disparage
14400         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
14401         (*<code>qi_1): Ditto.
14402         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
14403         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
14404         (*ashlqi3_1): Ditto.
14405         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
14406         Add preferred_for_size attribute to disparage alternative 0 and
14407         preferred_for_speed attribute to disparage alternative 1 for
14408         TARGET_PARTIAL_REG_STALL targets.
14410 2016-05-07  Tom de Vries  <tom@codesourcery.com>
14412         PR tree-optimization/70956
14413         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
14414         def.
14416 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
14418         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
14419         * config/sh/sh.c (sh_cbranch_distance): Implement it.
14420         * config/sh/sh.md (branch_zero): Remove define_attr.
14421         (define_delay): Disable delay slot if branch distance is one insn.
14423 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
14425         * config/i386/i386.md (LEAMODE): New mode attribute.
14426         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
14427         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
14428         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
14429         operand 2 predicate.
14430         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
14431         (*lea<mode>_general_3): Ditto.
14432         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
14434 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
14436         * genmddump.c (main): Convert argv from char ** to const char **.
14438 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
14440         * coretypes.h (OVERRIDE): New macro.
14441         (FINAL): New macro.
14443 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
14445         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
14446         allow coalescing if the types are compatible.
14448 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
14450         * pass_manager.h (pass_manager::register_pass_name): New method.
14451         (pass_manager::get_pass_by_name): New method.
14452         (pass_manager::create_pass_tab): New method.
14453         (pass_manager::m_name_to_pass_map): New field.
14454         * passes.c (name_to_pass_map): Delete global in favor of field
14455         "m_name_to_pass_map" of pass_manager.
14456         (register_pass_name): Rename from a function to...
14457         (pass_manager::register_pass_name): ...this method, updating
14458         for renaming of global "name_to_pass_map" to field
14459         "m_name_to_pass_map".
14460         (create_pass_tab): Rename from a function to...
14461         (pass_manager::create_pass_tab): ...this method, updating
14462         for renaming of global "name_to_pass_map" to field.
14463         (get_pass_by_name): Rename from a function to...
14464         (pass_manager::get_pass_by_name): ...this method.
14465         (enable_disable_pass): Convert use of get_pass_by_name to
14466         a method call, locating the pass_manager singleton.
14468 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
14470         * genattr-common.c (main): Convert argv from char ** to const char **.
14471         * genattr.c (main): Likewise.
14472         * genattrtab.c (main): Likewise.
14473         * genautomata.c (initiate_automaton_gen): Likewise.
14474         (main): Likewise.
14475         * gencodes.c (main): Likewise.
14476         * genconditions.c (main): Likewise.
14477         * genconfig.c (main): Likewise.
14478         * genconstants.c (main): Likewise.
14479         * genemit.c (main): Likewise.
14480         * genenums.c (main): Likewise.
14481         * genextract.c (main): Likewise.
14482         * genflags.c (main): Likewise.
14483         * genmddeps.c (main): Likewise.
14484         * genopinit.c (main): Likewise.
14485         * genoutput.c (main): Likewise.
14486         * genpeep.c (main): Likewise.
14487         * genpreds.c (main): Likewise.
14488         * genrecog.c (main): Likewise.
14489         * gensupport.c (init_rtx_reader_args_cb): Likewise.
14490         (init_rtx_reader_args): Likewise.
14491         * gensupport.h (init_rtx_reader_args_cb): Likewise.
14492         (init_rtx_reader_args): Likewise.
14493         * gentarget-def.c (main): Likewise.
14494         * read-md.c (read_md_files): Likewise.
14495         * read-md.h (read_md_files): Likewise.
14497 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
14499         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
14500         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
14501         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
14502         Remove unused predicate.
14503         (register_and_not_fp_reg_operand): Ditto.
14505 2016-05-06  Martin Liska  <mliska@suse.cz>
14507         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
14508         instead of vec as the vector is local to the function.
14510 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
14512         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
14513         avx512bw alternative.
14515         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
14516         before the ashr<mode>3 pattern.
14518         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
14519         v instead of x in vex or maybe_vex alternatives, use
14520         maybe_evex instead of vex in prefix.
14522         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
14523         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
14524         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
14525         in vex or maybe_vex alternatives, use maybe_evex instead of vex
14526         in prefix.
14528         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
14529         v instead of x in vex or maybe_vex alternatives, use
14530         maybe_evex instead of vex in prefix.
14532         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
14533         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
14534         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
14535         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
14536         alternatives, use maybe_evex instead of vex in prefix.
14538         * config/i386/sse.md (vec_interleave_lowv4sf,
14539         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
14540         v instead of x in vex or maybe_vex alternatives, use
14541         maybe_evex instead of vex in prefix.
14543         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
14544         v instead of x in vex or maybe_vex alternatives, use
14545         maybe_evex instead of vex in prefix.
14547         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
14548         v constraint instead of x.
14550 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
14552         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
14553         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
14554         equality first.
14556 2016-05-06  Richard Biener  <rguenther@suse.de>
14558         PR tree-optimization/70948
14559         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14560         Properly clobber all fields of va_list for __builtin_va_start.
14562 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
14564         PR debug/70935
14565         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
14566         loop latch destination.
14568 2016-05-06  Martin Liska  <mliska@suse.cz>
14570         * tree-ssa-uninit.c: Apply manual changes
14571         to the GNU coding style.
14572         (prune_uninit_phi_opnds): Rename from
14573         prune_uninit_phi_opnds_in_unrealizable_paths.
14575 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14577         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
14578         mspace): Remove deprecated options.
14579         * doc/invoke.texi (SH options): Remove -mspace.
14581 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14583         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
14585 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14587         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
14588         corresponding combine split pattern.
14590 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14592         PR target/58219
14593         * config/sh/predicates.md (long_displacement_mem_operand): New.
14594         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
14595         Add movi20, movi20s alternatives.  Adjust length attribute for
14596         alternatives.
14597         (movsi_ie): Allow for any FPU.  Adjust length attribute for
14598         alternatives.
14599         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
14600         attribute for alternatives.
14601         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
14602         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
14603         length attribute for alternatives.
14605 2016-05-06  Richard Biener  <rguenther@suse.de>
14607         PR tree-optimization/70960
14608         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
14610 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14612         PR target/52933
14613         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
14614         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
14616 2016-05-06  Marek Polacek  <polacek@redhat.com>
14618         PR sanitizer/70875
14619         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
14621 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14623         PR target/54089
14624         * config/sh/sh.md (*rotcr): Add another variant.
14626 2016-05-06  Richard Biener  <rguenther@suse.de>
14628         PR middle-end/70931
14629         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
14631 2016-05-06  Richard Biener  <rguenther@suse.de>
14633         PR middle-end/70941
14634         * fold-const.c (split_tree): Always convert to the original type
14635         before negating.
14637 2016-05-06  Richard Biener  <rguenther@suse.de>
14639         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
14640         (fwprop_addr): Likewise.
14642 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
14644         PR target/70873
14645         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
14646         New prototype.
14647         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
14648         * config/i386/i386.md (push mem splitter): Use find_constant_src in
14649         the splitter condition.
14650         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
14651         the splitter condition.
14652         (FP float_extend load splitter): Ditto.
14654 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
14656         * config/i386/i386.md (peehole2 patterns): Change true_regnum
14657         to REGNO in all peephole2 patterns.
14658         (post-reload splitters): Change true_regnum to REGNO in
14659         post-reload splitters.
14660         (zero_extend splitters): Use general_reg_operand and
14661         nonimmediate_gr_operand predicates.
14663 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
14665         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
14666         v constraint instead of x.
14668 2016-05-05  Alan Modra  <amodra@gmail.com>
14670         PR target/68662
14671         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
14672         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
14673         TARGET_NO_FP_IN_TOC for -mrelocatable.
14674         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
14675         TARGET_RELOCATABLE test.
14676         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14677         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14678         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14679         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14680         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14681         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14682         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14683         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14684         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
14685         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
14686         Likewise.
14687         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
14688         (rs6000_stack_info): Likewise.
14689         (rs6000_elf_asm_out_constructor): Likewise.
14690         (rs6000_elf_asm_out_destructor): Likewise.
14691         (rs6000_elf_declare_function_name): Likewise.
14692         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
14693         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
14694         Don't define.
14696 2016-05-05  Alan Modra  <amodra@gmail.com>
14698         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
14700 2016-05-05  Alan Modra  <amodra@gmail.com>
14702         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
14703         out-of-line gpr restore for one or two regs if that would add
14704         a save of lr.
14706 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
14708         PR target/70873
14709         * config/i386/i386.md
14710         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
14711         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
14712         as operand 0 predicate.
14713         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
14714         Ditto.
14715         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
14716         Ditto.  Emit the pattern using RTX.
14718         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
14719         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
14720         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
14721         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
14722         Ditto.
14723         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
14724         sse_reg_operand as operand 0 predicate.
14726         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
14727         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
14728         instead of gen_rtx_REG.
14729         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
14730         Ditto.
14732 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
14734         * function.c (emit_use_return_register_into_block): Delete.
14735         (gen_return_pattern): Delete.
14736         (emit_return_into_block): Delete.
14737         (active_insn_between): Delete.
14738         (convert_jumps_to_returns): Delete.
14739         (emit_return_for_exit): Delete.
14740         (thread_prologue_and_epilogue_insns): Delete all code dealing with
14741         simple_return for shrink-wrapped blocks.
14742         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
14743         end of blocks that need one.
14744         (get_unconverted_simple_return): Delete.
14745         (convert_to_simple_return): Delete.
14746         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
14747         (convert_to_simple_return): Ditto.
14749 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
14751         * cfgcleanup.c (bb_is_just_return): New function.
14752         (try_optimize_cfg): Simplify jumps to return, branches to return,
14753         and branches around return.
14755 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
14757         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
14758         branch to a return.
14760 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
14762         PR c++/70906
14763         PR c++/70933
14764         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
14765         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
14766         assert flags & OEP_HASH_CHECK, instead of asserting it
14767         never happens.  Handle TARGET_EXPR.
14768         * fold-const.c (operand_equal_p): For hash verification,
14769         or in OEP_HASH_CHECK into flags.
14771 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
14773         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
14774         comment.
14775         (compute_samebase_partition_bases): Fix typo.
14777 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
14779         * config/i386/sse.md (vec_interleave_highv8sf,
14780         vec_interleave_lowv8sf, vec_interleave_highv4df,
14781         vec_interleave_lowv4df): Remove constraints from expanders.
14783         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
14785 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
14787         * tree-inline.c (expand_call_inline): Fix path dealing with
14788         making lhs of call statement undefined.
14790 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
14792         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
14793         Check availability on NODE, too.
14794         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
14795         (cgraph_node::call_for_symbol_and_aliases): Likewise.
14796         (varpool_node::call_for_symbol_and_aliase): Likewise.
14797         * ipa-pure-const.c (add_new_function): Analyze all bodies.
14798         (propagate_pure_const): Propagate across interposable functions, too.
14799         (skip_function_for_local_pure_const): Do not skip interposable bodies
14800         with aliases.
14801         (pass_local_pure_const::execute): Update.
14803 2016-05-04  Marek Polacek  <polacek@redhat.com>
14805         * doc/invoke.texi: Document -Wdangling-else.
14807 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14809         * config.gcc: Error out when conflicting multilib is detected.  Do not
14810         loop over multilibs since no combination is legal.
14812 2016-05-04  Alan Modra  <amodra@gmail.com>
14814         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
14815         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
14816         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
14817         Align .toc.
14819 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
14821         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
14822         Clean up p5600 comments.
14824 2016-05-04  Richard Biener  <rguenther@suse.de>
14826         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
14827         constructor simplifications.
14828         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
14830 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
14832         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
14833         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
14834         result.set_rtx is null instead of aborting.
14835         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
14836         Always enable.
14837         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
14838         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
14839         *mov<mode>_store_postinc): New patterns.
14841 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
14843         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
14844         as commutative.  Check both conversions are NOP.
14845         ((A & B) OP (C & B)): Remove.
14847 2016-05-04  Alan Modra  <amodra@gmail.com>
14849         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
14851 2016-05-04  Alan Modra  <amodra@gmail.com>
14853         PR target/70866
14854         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
14855         when cr2,3,4 are all fixed regs.
14857 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
14859         PR rtl-optimization/57193
14860         * opts.c (default_options_table): Revert OPT_frename_registers change.
14861         * doc/invoke.texi (-frename-registers, -O2): Likewise.
14863 2016-05-03  Martin Sebor  <msebor@redhat.com>
14865         PR c++/66561
14866         * builtins.c (fold_builtin_FILE): New function.
14867         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
14868         (fold_builtin_0): Call them.
14869         * gimplify.c (gimplify_call_expr): Remove the handling of
14870         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
14872         PR c++/66561
14873         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
14874         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
14875         constants.
14877         PR c++/66639
14878         * doc/extend.texi (Function Names as Strings): Update __func__,
14879         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
14880         constants.
14882 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
14883             Richard Biener  <rguenther@suse.de>
14885         PR tree-optimization/70916
14886         * tree-if-conv.c: Include cfganal.h.
14887         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
14888         and remove_fake_exit_edges around the optimization pass.
14890 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
14892         * cgraph.c (symbol_table::create_edge): Set inline_failed.
14893         (cgraph_edge::make_direct): Likewise.
14894         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
14895         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
14896         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
14897         (CIF_THUNK): New code.
14898         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
14899         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
14900         (compute_inline_parameters): Set inline_failed for thunks.
14901         (inline_analyze_function): Cleanup.
14902         * ipa-inline.c (can_inline_edge_p): Do not deal with
14903         call_stmt_cannot_inline_p.
14904         (can_early_inline_edge_p): Likewise.
14905         (early_inliner): Initialize inline_failed.
14906         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
14908 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
14910         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
14911         from nonimm_ssenomem_operand.
14912         (nonimm_ssenomem_operand): New predicate.
14913         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
14914         as operand 0 predicate.
14915         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
14916         Disable unsupported alternatives using "enabled" attribute.
14917         Use register_ssemem_operand as operand 0 predicate.
14918         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
14920 2016-05-03  Marek Polacek  <polacek@redhat.com>
14922         PR c/70859
14923         * input.c (expansion_point_location): New function.
14924         * input.h (expansion_point_location): Declare.
14926 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
14928         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
14929         occurence with frame_offset_ ones.
14931 2016-05-03  Alan Modra  <amodra@gmail.com>
14933         PR rtl-optimization/70890
14934         * ira.c (combine_and_move_insns): When moving def_insn, remove
14935         equivs on use_insn.
14937 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14939         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
14940         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
14941         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
14942         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
14944 2016-05-03  Alan Modra  <amodra@gmail.com>
14946         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
14947         for SAVE_MULTIPLE/STORE_MULTIPLE.
14949 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
14951         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
14952         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
14954 2016-05-03  Richard Biener  <rguenther@suse.de>
14956         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
14957         default true.
14958         (gimplify_arg): Likewise.
14959         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
14960         re-writing the result to a decl if required.
14961         (internal_get_tmp_var): Add allow_ssa parameter
14962         and override into_ssa with it.
14963         (get_formal_tmp_var): Adjust.
14964         (get_initialized_tmp_var): Add allow_ssa parameter.
14965         (gimplify_arg): Add allow_ssa parameter and avoid generating
14966         SSA names for the result false.
14967         (gimplify_call_expr): If the call may return twice do not
14968         gimplify parameters into SSA.
14969         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
14970         (gimplify_modify_expr): Adjust assert.  For noreturn calls
14971         with a SSA name LHS adjust its def.
14972         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
14973         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
14974         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
14975         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
14976         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
14977         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
14978         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
14979         (optimize_target_teams): Do not allow SSA names for clause operands.
14980         (gimplify_expr): Likewise for where we mark the result addressable.
14981         * passes.def (pass_init_datastructures): Remove.
14982         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
14983         (rewrite_stmt): Likewise.
14984         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
14985         (replace_locals_op): Replace SSA names.
14986         (copy_gimple_seq_and_replace_locals): Init src_cfun.
14987         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
14988         * cgraph.c (release_function_body): Free CFG annotations only
14989         when we have a CFG.  Simplify.
14990         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
14991         force_gimple_operand instead of get_initialized_tmp_var.
14992         * tree-pass.h (make_pass_init_datastructures): Remove.
14993         * tree-ssa.c (execute_init_datastructures): Remove.
14994         (pass_data_init_datastructures): Likewise.
14995         (class pass_init_datastructures): Likewise.
14996         (make_pass_init_datastructures): Likewise.
14997         * omp-low.c (create_omp_child_function): Init SSA data structures.
14998         (grid_expand_target_grid_body): Likewise.
14999         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
15000         name before adding it to names_to_release.
15001         (remove_bb): Always release SSA defs.
15002         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
15003         before dereferencing it.
15004         * cgraphunit.c (init_lowered_empty_function): Always
15005         int SSA data structures.
15006         * tree-ssanames.c (release_defs): Remove assert that we are in
15007         SSA form.
15008         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
15010 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
15011             Uros Bizjak  <ubizjak@gmail.com>
15013         PR rtl-optimization/70467
15014         * config/i386/predicates.md (x86_64_hilo_int_operand,
15015         x86_64_hilo_general_operand): New predicates.
15016         * config/i386/constraints.md (Wd): New constraint.
15017         * config/i386/i386.md (mode attr di): Use Wd instead of e.
15018         (general_hilo_operand): New mode attr.
15019         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
15020         instead of <general_operand>.
15021         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
15022         x86_64_hilo_general_operand instead of <general_operand>.
15024 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
15026         PR tree-optimization/70916
15027         * tree-if-conv.c (constant_or_ssa_name): Removed.
15028         (fold_build_cond_expr): Use is_gimple_val instead of
15029         constant_or_ssa_name.
15031         PR tree-optimization/70916
15032         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
15033         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
15035         PR target/49244
15036         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
15037         (optimize_atomic_bit_test_and): New function.
15038         (pass_fold_builtins::execute): Use it.
15039         * optabs.def (atomic_bit_test_and_set_optab,
15040         atomic_bit_test_and_complement_optab,
15041         atomic_bit_test_and_reset_optab): New optabs.
15042         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
15043         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
15044         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
15045         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
15046         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
15047         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
15048         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
15049         * doc/md.texi (atomic_bit_test_and_set@var{mode},
15050         atomic_bit_test_and_complement@var{mode},
15051         atomic_bit_test_and_reset@var{mode}): Document.
15052         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
15053         atomic_bit_test_and_complement<mode>,
15054         atomic_bit_test_and_reset<mode>): New expanders.
15055         (atomic_bit_test_and_set<mode>_1,
15056         atomic_bit_test_and_complement<mode>_1,
15057         atomic_bit_test_and_reset<mode>_1): New insns.
15059 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
15061         PR rtl-optimization/70687
15062         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
15063         instead of unsigned HOST_WIDE_INT.
15065 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
15067         PR rtl-optimization/44281
15068         * hard-reg-set.h (struct target_hard_regs): New field
15069         x_fixed_nonglobal_reg_set.
15070         (fixed_nonglobal_reg_set): New macro.
15071         * reginfo.c (init_reg_sets_1): Initialize it.
15072         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
15073         of fixed_reg_set.
15074         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
15076 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
15078         PR tree-optimization/56541
15079         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
15080         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
15081         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
15082         (any_complicated_phi): new static variable.
15083         (aggressive_if_conv): delete.
15084         (if_convertible_phi_p): support phis with more than two arguments.
15085         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
15086         critical pred edges.
15087         (ifcvt_split_critical_edges): support phis with more than two
15088         arguments by checking new parameter.  only split critical edges
15089         if needed.
15090         (tree_if_conversion): handle simd pragma marked loop using new
15091         local variable aggressive_if_conv.  check any_complicated_phi.
15093 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
15095         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
15096         before using it.
15098 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
15100         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
15101         cbase.
15103 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
15105         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
15106         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
15107         define_insn_and_split.
15108         (mulsi3_i): New define_insn_and_split.
15109         (mulsi3_call): Convert to define_insn.
15110         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
15111         Remove constraints.
15113 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
15115         * machmode.h (mode_complex): Add support to give the complex mode
15116         for a given mode.
15117         (GET_MODE_COMPLEX_MODE): Likewise.
15118         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
15119         stored by build_complex_type and gfc_build_complex_type instead of
15120         trying to figure out the appropriate mode based on the size. Raise
15121         an assertion error, if the type was not set.
15122         * genmodes.c (struct mode_data): Add field for the complex type of
15123         the given type.
15124         (blank_mode): Likewise.
15125         (make_complex_modes): Remember the complex mode created in the
15126         base type.
15127         (emit_mode_complex): Write out the mode_complex array to map a
15128         type mode to the complex version.
15129         (emit_insn_modes_c): Likewise.
15130         * tree.c (build_complex_type): Set the complex type to use before
15131         calling layout_type.
15132         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
15133         support for __float128 complex datatypes.
15134         (rs6000_hard_regno_mode_ok): Likewise.
15135         (rs6000_setup_reg_addr_masks): Likewise.
15136         (rs6000_complex_function_value): Likewise.
15137         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
15138         __float128 and __ibm128 complex.
15139         (FLOAT128_IBM_P): Likewise.
15140         (ALTIVEC_ARG_MAX_RETURN): Likewise.
15141         * doc/extend.texi (Additional Floating Types): Document that
15142         -mfloat128 must be used to enable __float128.  Document complex
15143         __float128 and __ibm128 support.
15145 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
15147         PR target/49244
15148         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
15149         char/short arguments promoted to int because of promote_prototypes.
15151 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
15153         * config/i386/predicates.md (register_ssemem_operand): New predicate.
15154         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
15155         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
15156         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
15157         alternatives using "enabled" attribute.  Use register_ssemem_operand
15158         as operand 1 predicate.
15159         (*cmpi<unord>xf_i387): Split XFmode pattern from
15160         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
15161         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
15162         *absneg<mode>2_i387.  Disable unsupported alternatives using
15163         "enabled" attribute.
15164         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
15166 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
15168         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
15169         marker.
15170         (oacc_loop_process): Check mask for loop termination.
15172 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
15174         * cif-code.def (CIF_THUNK): Add.
15175         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
15176         accidental change.
15178 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
15180         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
15181         (dump_inline_summary): Dump it.
15182         (fp_expression_p): New predicate.
15183         (estimate_function_body_sizes): Use it.
15184         (inline_merge_summary): Merge fp_expressions.
15185         (inline_read_section): Read fp_expressions.
15186         (inline_write_summary): Write fp_expressions.
15187         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
15188         codegen boundary if either caller or callee is !fp_expressions.
15189         * ipa-inline.h (inline_summary): Add fp_expressions.
15190         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
15191         to fp_expressions be sure the fp generation flags are updated.
15193 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
15195         PR rtl-optimization/70467
15196         * cse.c (cse_insn): Handle no-op MEM moves after folding.
15198         PR rtl-optimization/70467
15199         * ipa-pure-const.c (check_call): Handle internal calls even in
15200         ipa mode like in local mode.
15202 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15204         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
15206 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
15208         * match.pd (X u< X, X u> X): New transformations.
15210 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
15212         * flag-types.h (enum warn_strict_overflow_code): Move ...
15213         * coretypes.h: ... here.
15214         * fold-const.h (fold_overflow_warning): Declare.
15215         * fold-const.c (fold_overflow_warning): Make non-static.
15216         (fold_comparison): Move the transformation of X +- C1 CMP C2
15217         into X CMP C2 -+ C1 ...
15218         * match.pd: ... here.
15219         * gimple-fold.c (fold_stmt_1): Protect with
15220         fold_defer_overflow_warnings.
15222 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
15224         * omp-low.c (struct oacc_loop): Add 'inner' field.
15225         (new_oacc_loop_raw): Initialize it to zero.
15226         (oacc_loop_fixed_partitions): Initialize it.
15227         (oacc_loop_auto_partitions): Partition outermost loop to outermost
15228         available partitioning.
15230 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
15232         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
15233         register_operand.
15234         (umulsidi3): Likewise.
15235         (indirect_jump): Fix jump instruction assembly patterns.
15237 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
15239         PR target/70860
15240         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
15241         (nvptx_function_value): Assert non-NULL cfun.
15243 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
15245         PR rtl-optimization/70886
15246         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
15248         * cselib.h (rtx_equal_for_cselib_1): Declare.
15249         (rtx_equal_for_cselib_p: New inline function.
15250         * cselib.c (rtx_equal_for_cselib_p): Delete.
15251         (rtx_equal_for_cselib_1): Make public.
15253 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
15255         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
15256         (register_mixssei387nonimm_operand): Remove predicate.
15257         * config/i386/i386.md (*fop_<mode>_comm): Merge from
15258         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
15259         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
15260         for TARGET_MIX_SSE_I387 alternatives.
15261         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
15262         Disable unsupported alternatives using "enabled" attribute.  Use
15263         nonimm_ssenomem_operand as operand 1 predicate.  Also check
15264         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
15266 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
15268         * tree.c (cst_and_fits_in_hwi): Simplify.
15270 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
15272         * tree.h (wi::to_wide): New function.
15273         * expr.c (expand_expr_real_1): Use wi::to_wide.
15274         * fold-const.c (int_const_binop_1): Likewise.
15275         (extract_muldiv_1): Likewise.
15277 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
15279         * wide-int.h: Update offset_int and widest_int documentation.
15280         (WI_SIGNED_SHIFT_RESULT): New macro.
15281         (wi::binary_shift): Define signed_shift_result_type for
15282         shifts on offset_int- and widest_int-like types.
15283         (generic_wide_int): Support <<= and >>= if << and >> are supported.
15284         * tree.h (int_bit_position): Use shift operators instead of wi::
15285          shifts.
15286         * alias.c (adjust_offset_for_component_ref): Likewise.
15287         * expr.c (get_inner_reference): Likewise.
15288         * fold-const.c (fold_comparison): Likewise.
15289         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
15290         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
15291         * tree-dfa.c (get_ref_base_and_extent): Likewise.
15292         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
15293         (stmt_kills_ref_p): Likewise.
15294         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
15295         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
15296         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15297         (ao_ref_init_from_vn_reference): Likewise.
15299 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
15301         * wide-int.h: Update offset_int and widest_int documentation.
15302         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
15303         (wi::binary_traits): Allow ordered comparisons between offset_int and
15304         offset_int, between widest_int and widest_int, and between either
15305         of these types and basic C types.
15306         (operator <, <=, >, >=): Define for the same combinations.
15307         * tree.h (tree_int_cst_lt): Use comparison operators instead
15308         of wi:: comparisons.
15309         (tree_int_cst_le): Likewise.
15310         * gimple-fold.c (fold_array_ctor_reference): Likewise.
15311         (fold_nonarray_ctor_reference): Likewise.
15312         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
15313         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
15314         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
15315         * tree-sra.c (completely_scalarize): Likewise.
15316         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
15317         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
15318         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
15319         (check_for_binary_op_overflow): Likewise.
15320         (search_for_addr_array): Likewise.
15321         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
15323 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
15325         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
15326         (arc_save_restore): Likewise.
15327         (arc_dwarf_register_span): Likewise.
15328         (arc_output_pic_addr_const): Initialize suffix variable.
15330 2016-05-02  Martin Liska  <mliska@suse.cz>
15332         * symbol-summary.h (function_summary::function_summary):
15333         Remove checking assert for all cgraph nodes.
15334         (function_summary::get): Check summary_uid.
15335         (symtab_insertion): Check summary_uid.
15337 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
15339         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
15340         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
15341         bmaskn instruction.
15342         (arc_dwarf_register_span): Remove enum keyword.
15343         (compact_memory_operand_p): New function.
15344         * config/arc/arc.h (reg_class): Add code density register classes.
15345         (REG_CLASS_NAMES): Likewise.
15346         (REG_CLASS_CONTENTS): Likewise.
15347         * config/arc/arc.md (*movqi_insn): Add code density instructions.
15348         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
15349         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
15350         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
15351         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
15352         constraints.
15353         (h, Rcd, Rsd, Rzd): New register constraints.
15354         (T): Use compact_memory_operand_p function.
15355         * config/arc/predicates.md (compact_load_memory_operand): Remove.
15357 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
15359         * config/sh/sh.md (*negnegt, *movtt): Remove.
15361 2016-05-02  Marek Polacek  <polacek@redhat.com>
15362             Tom de Vries  <tom@codesourcery.com>
15364         PR tree-optimization/70700
15365         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
15366         bigger than FIRST_REF_NODE.
15368 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
15370         PR target/52898
15371         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
15372         TARGET_CMPEQDI_T.
15373         (prepare_cbranch_operands): Don't use scratch register.  Assume that
15374         function is used when pseudos can be created.
15375         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
15376         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
15377         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
15378         define_expand.  Allow it only when pseudos can be created.
15379         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
15381 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
15383         * config/i386/constraints.md (BC): Only allow -1 operands.
15384         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
15385         Add "enabled" attribute.  Update XI mode attribute calculation.
15386         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
15387         (*movoi_internal_avx): Update XI mode attribute calculation.
15388         (*movti_internal): Ditto.
15390 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
15392         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
15393         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
15395 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
15397         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
15398         statement on instruction code.  Remove trailing spaces.
15399         (altivec_expand_stv_builtin): Likewise.
15401 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
15403         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
15404         (TARGET_FPU_DOUBLE): Simplify.
15405         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
15406         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
15407         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
15408         with 'TARGET_FPU_DOUBLE'.
15409         * config/sh/sh.md: Likewise.
15411 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
15413         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
15414         SH_DIV_STR_FOR_SIZE): Remove.
15415         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
15416         SH_DIV_STR_FOR_SIZE): Remove.
15418 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
15420         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
15421         logical_reg_operand): Delete.
15422         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
15423         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
15424         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
15425         match_operand and match_test.
15426         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
15427         variables on their first use.  Return bool values.
15428         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
15429         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
15430         arith_reg_operand for input operand.  Remove empty constraints.
15431         (xorsi3): Delete.
15432         (*xorsi3_compact): Rename to xorsi3.
15433         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
15434         (*zero_extend<mode>si2_disp_mem): Update comment.
15435         (mov_nop): Delete.
15437 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
15439         * config/sh/t-sh: Remove SH5 support.
15440         * config.gcc: Likewise.
15441         * configure: Likewise.
15443 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15445         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
15447 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
15449         * config/sh/sh.c (register_sh_passes, sh_option_override,
15450         sh_print_operand, prepare_move_operands,
15451         sh_can_follow_jump): Remove TARGET_SH1 checks.
15452         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
15453         PROMOTE_MODE): Likewise.
15454         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
15455         movdi): Likewise.
15457 2016-04-30  Alan Modra  <amodra@gmail.com>
15459         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
15460         restoring when fixed_reg_p, but allow out-of-line or stmw save.
15461         Check for user regs later to avoid unnecessary looping over regs.
15462         Merge user reg check with non-saved reg check.  Don't force
15463         inline VR restore when static chain used.
15464         (rs6000_frame_related): Omit eh_frame info for user regs when
15465         saving.
15466         (fixed_regs_p): Delete.
15468 2016-04-30  Alan Modra  <amodra@gmail.com>
15470         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
15471         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
15472         Update all uses.
15474 2016-04-30  Alan Modra  <amodra@gmail.com>
15476         PR target/69645
15477         * config/rs6000/rs6000.c (fixed_reg_p): New function.
15478         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
15479         Update all uses.
15481 2016-04-30  Alan Modra  <amodra@gmail.com>
15483         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
15484         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
15485         flag_pic test for Darwin.
15487 2016-04-30  Alan Modra  <amodra@gmail.com>
15489         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
15490         throw_calls_crossed.
15491         (REG_FREQ_CALLS_CROSSED): Delete.
15492         (REG_N_THROWING_CALLS_CROSSED): Delete.
15493         * regstat.c (regstat_bb_compute_ri): Don't calculate
15494         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
15495         (dump_reg_info): Don't print call cross frequency.
15496         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
15497         and REG_N_THROWING_CALLS_CROSSED.
15499 2016-04-30  Alan Modra  <amodra@gmail.com>
15501         * regs.h (struct reg_info_t): Delete live_length.
15502         (REG_LIVE_LENGTH): Delete macro.
15503         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
15504         local_live, local_processed and local_live_last_luid params.
15505         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
15506         Formatting fixes.
15507         (regstat_compute_ri): Adjust for above.  Don't set
15508         REG_LIVE_LENGTH.
15509         (dump_reg_info): Don't print live length.
15510         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
15511         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
15512         Localize loop_depth var.
15514 2016-04-30  Alan Modra  <amodra@gmail.com>
15516         * ira.c (enum valid_equiv): New.
15517         (validate_equiv_mem): Return enum.
15518         (update_equiv_mem): Create replacement in more cases.
15519         (add_store_equivs): Update validate_equiv_mem call.
15521 2016-04-30  Alan Modra  <amodra@gmail.com>
15523         * ira.c (combine_and_move_insns): Rather than scanning insns,
15524         use DF infrastucture to find use and def insns.
15526 2016-04-30  Alan Modra  <amodra@gmail.com>
15528         ira.c (combine_and_move_insns): Move invariant conditions..
15529         (ira.c): ..to here.  Call combine_and_move_insns before
15530         add_store_equivs.  Call grow_reg_equivs later.  Allocate
15531         req_equiv later using max_reg_num() rather than global max_regno.
15532         (contains_replace_regs): Delete.
15533         (add_store_equivs): Remove contains_replace_regs test.
15535 2016-04-30  Alan Modra  <amodra@gmail.com>
15537         * ira.c (struct equiv_mem_data): New.
15538         (equiv_mem, equiv_mem_modified): Delete static vars.
15539         (validate_equiv_mem_from_store): Use "data" param to communicate..
15540         (validate_equiv_mem): ..from here.
15542 2016-04-30  Alan Modra  <amodra@gmail.com>
15544         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
15545         split out from..
15546         (update_reg_equivs): ..here.  Move allocation and freeing of
15547         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
15548         end_alias_analysis to..
15549         (ira): ..here.
15551 2016-04-30  Alan Modra  <amodra@gmail.com>
15553         * ira.c (pdx_subregs): Delete.
15554         (struct equivalence): Add pdx_subregs field.
15555         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
15556         pdx_subregs access.
15557         (update_equiv_regs): Don't create or free pdx_subregs.  Update
15558         pdx_subregs access.
15560 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15562         * config/rs6000/altivec.h: Change definitions of vec_xl and
15563         vec_xst.
15564         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
15565         (LD_ELEMREV_V2DI): New.
15566         (LD_ELEMREV_V4SF): New.
15567         (LD_ELEMREV_V4SI): New.
15568         (LD_ELEMREV_V8HI): New.
15569         (LD_ELEMREV_V16QI): New.
15570         (ST_ELEMREV_V2DF): New.
15571         (ST_ELEMREV_V2DI): New.
15572         (ST_ELEMREV_V4SF): New.
15573         (ST_ELEMREV_V4SI): New.
15574         (ST_ELEMREV_V8HI): New.
15575         (ST_ELEMREV_V16QI): New.
15576         (XL): New.
15577         (XST): New.
15578         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15579         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
15580         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
15581         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
15582         (altivec_expand_builtin): Add handling for
15583         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
15584         (rs6000_invalid_builtin): Add error-checking for
15585         RS6000_BTM_P9_VECTOR.
15586         (altivec_init_builtins): Define builtins used to implement vec_xl
15587         and vec_xst.
15588         (rs6000_builtin_mask_names): Define power9-vector.
15589         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
15590         (RS6000_BTM_P9_VECTOR): Define.
15591         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
15592         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
15593         (vsx_ld_elemrev_v2df): Likewise.
15594         (vsx_ld_elemrev_v4sf): Likewise.
15595         (vsx_ld_elemrev_v4si): Likewise.
15596         (vsx_ld_elemrev_v8hi): Likewise.
15597         (vsx_ld_elemrev_v16qi): Likewise.
15598         (vsx_st_elemrev_v2df): Likewise.
15599         (vsx_st_elemrev_v2di): Likewise.
15600         (vsx_st_elemrev_v4sf): Likewise.
15601         (vsx_st_elemrev_v4si): Likewise.
15602         (vsx_st_elemrev_v8hi): Likewise.
15603         (vsx_st_elemrev_v16qi): Likewise.
15604         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
15605         grammar.
15607 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
15609         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
15610         out into ...
15611         (simplify_control_stmt_condition_1): ... here.  Recurse into
15612         BIT_AND_EXPRs and BIT_IOR_EXPRs.
15614 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
15616         PR target/69810
15617         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
15618         (zero_extendqi<mode>2_dot): Revert earlier conversion from
15619         define_insn_and_split to define_insn.
15620         (zero_extendqi<mode>2_dot2): Same.
15621         (extendqi<mode>2_dot): Same.
15622         (extendqi<mode>2_dot2): Same.
15624 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15626         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
15627         (probe_stack): New expander.
15628         (probe_stack_<mode>): New insn pattern.
15630 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15632         * config/i386/i386.md
15633         (operations with memory inputs setting flags peephole2):
15634         Remove uneeded REG_P checks.  Cleanup pattern generation.
15636 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
15638         * tree-vect-loop.c (vect_transform_loop): Fix
15639         nb_iterations_upper_bound computation for vectorized loop.
15641 2016-04-29  Marek Polacek  <polacek@redhat.com>
15642             Jakub Jelinek  <jakub@redhat.com>
15644         PR sanitizer/70342
15645         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
15646         TARGET_EXPR_SLOT as a base.
15648 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
15650         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
15651         with 'rCm2' constraints to limit possible immediate size.
15652         (*load_zeroextendqisi_update): Likewise.
15653         (*load_signextendqisi_update): Likewise.
15654         (*loadhi_update): Likewise.
15655         (*load_zeroextendhisi_update): Likewise.
15656         (*load_signextendhisi_update): Likewise.
15657         (*loadsi_update): Likewise.
15658         (*loadsf_update): Likewise.
15660 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15662         * config/i386/predicates.md (constm1_operand): Fix comparison.
15664 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
15666         * testsuite/gcc.target/arc/ieee_eq.c: New test.
15668 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
15670         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
15671         remaining SH5 related settings.
15672         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
15673         shmedia_prepare_call_address): Delete.
15674         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
15675         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
15676         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
15677         UNSUPPORTED_SH2A): Remove m5 checks.
15678         (sh_divide_strategy_e): Remove SH5 division strategies.
15679         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
15680         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
15682 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15684         * config/s390/s390.c (s390_rtx_costs): Update documentation.
15686 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15688         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
15689         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
15690         Change lder to ldr.
15691         * config/s390/vector.md ("mov<mode>"): Likewise.
15693 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
15695         * config/s390/constraints.md ("U", "W"): Invoke
15696         s390_mem_constraint with "ZR" and "ZT".
15697         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
15698         addresses when using LRA.  Accept also short displacements for S
15699         and T constraints.  Do not check for long displacement target for
15700         S and T constraints.
15701         (s390_mem_constraint): Remove handling of U and W constraints.
15702         * config/s390/s390.md (various patterns): Remove the short
15703         displacement constraints (Q and R) if a long displacement
15704         constraint is present.  Add longdisp as required CPU capability.
15705         * config/s390/vector.md: Likewise.
15706         * config/s390/vx-builtins.md: Likewise.
15708 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15710         PR target/60040
15711         * reload1.c (reload): Call finish_spills before
15712         restarting reload loop. Skip select_reload_regs
15713         if update_eliminables_and_spill returns true.
15715 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
15717         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
15718         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
15719         (umulhisi3_imm): Update predicates and constraint letters.
15720         (umulhisi3_reg): Declare instruction as commutative.
15721         * config/arc/constraints.md (J12, J16): New constraints.
15722         * config/arc/predicates.md (short_unsigned_const_operand): New
15723         predicate.
15724         (arc_short_operand): Likewise.
15725         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
15727 2016-04-29  Richard Biener  <rguenther@suse.de>
15729         PR tree-optimization/13962
15730         PR tree-optimization/65686
15731         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
15732         * tree-ssa-alias.c (ptrs_compare_unequal): New function
15733         using PTA to compare pointers.
15734         * match.pd: Add pattern for pointer equality compare simplification
15735         using ptrs_compare_unequal.
15737 2016-04-29  Richard Biener  <rguenther@suse.de>
15739         * stor-layout.c (layout_type): Do not build a pointer-to-element
15740         type for arrays.
15742 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15744         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
15745         Use SWI mode iterator.  Use general_reg_operand predicate.
15746         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
15747         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
15748         predicates.
15750 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
15752         PR middle-end/70843
15753         * fold-const.c (operand_equal_p): Don't verify hash value equality
15754         if arg0 == arg1.
15755         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
15756         and OMP_CLAUSE.
15758 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
15760         PR target/70858
15761         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
15762         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
15763         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
15764         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
15765         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
15767 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
15769         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
15770         to info.  Don't initialize separate fields to 0.  Clean up
15771         formatting a bit.
15773 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
15775         * config/i386/i386.md (peephole2s for operations with memory inputs):
15776         Use SWI mode iterator.
15777         (peephole2s for operations with memory outputs): Ditto.
15778         Do not check for stack checking probe.
15780         (probe_stack): Remove expander.
15782 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
15783             Andrew Burgess  <andrew.burgess@embecosm.com>
15785         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
15786         operands as 32-bits.
15788 2016-04-28  Jason Merrill  <jason@redhat.com>
15790         * gdbinit.in: Skip line-map.h.
15792 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
15793             Andrew Burgess  <andrew.burgess@embecosm.com>
15795         * config/arc/arc.c (arc_conditional_register_usage): Take
15796         TARGET_RRQ_CLASS into account.
15797         (arc_print_operand): Support printing 'p' and 's' operands.
15798         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
15799         as 0.
15800         (TARGET_RRQ_CLASS): Define.
15801         (IS_POWEROF2_OR_0_P): Define.
15802         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
15803         alternatives.
15804         (*tst_movb): New define_insn.
15805         (*tst): Avoid recognition if it could prevent '*tst_movb'
15806         combination; replace c/CnL with c/Chs alternative.
15807         (*tst_bitfield_tst): New define_insn.
15808         (*tst_bitfield_asr): New define_insn.
15809         (*tst_bitfield): New define_insn.
15810         (andsi3_i): Add Rrq variant.
15811         (extzv): New define_expand.
15812         (insv): New define_expand.
15813         (*insv_i): New define_insn.
15814         (*movb): New define_insn.
15815         (*movb_signed): New define_insn.
15816         (*movb_high): New define_insn.
15817         (*movb_high_signed): New define_insn.
15818         (*movb_high_signed + 1): New define_split pattern.
15819         (*mrgb): New define_insn.
15820         (*mrgb + 1): New define_peephole2 pattern.
15821         (*mrgb + 2): New define_peephole2 pattern.
15822         * config/arc/arc.opt (mbitops): New option for nps400, uses
15823         TARGET_NPS_BITOPS_DEFAULT.
15824         * config/arc/constraints.md (q): Make register class conditional.
15825         (Rrq): New register constraint.
15826         (Chs): New constraint.
15827         (Clo): New constraint.
15828         (Chi): New constraint.
15829         (Cbf): New constraint.
15830         (Cbn): New constraint.
15831         (C18): New constraint.
15832         (Cbi): New constraint.
15834 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
15836         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
15837         dst->popcount.
15838         (bitmap_intersection_of_preds): Ditto.
15839         (bitmap_union_of_succs): Ditto.
15840         (bitmap_union_of_preds): Ditto.
15841         * sbitmap.c (do_popcount): Delete.
15842         (BITMAP_DEBUGGING): Delete.
15843         (sbitmap_verify_popcount): Delete.
15844         (sbitmap_alloc): Don't initialize the popcount field.
15845         (sbitmap_alloc_with_popcount): Delete.
15846         (sbitmap_resize): Don't resize the popcount array.
15847         (sbitmap_vector_alloc): Don't initialize the popcount field.
15848         (bitmap_copy): Don't copy the popcount array.
15849         (bitmap_clear): Don't clear the popcount array.
15850         (bitmap_clear): Delete the popcount array handling.
15851         (bitmap_ior_and_compl): Delete the popcount assert.
15852         (bitmap_not): Ditto.
15853         (bitmap_and_compl): Ditto.
15854         (bitmap_and): Delete the popcount array handling.
15855         (bitmap_xor): Ditto.
15856         (bitmap_ior): Ditto.
15857         (bitmap_or_and): Delete the popcount assert.
15858         (bitmap_and_or): Ditto.
15859         (popcount_table): Delete.
15860         (sbitmap_elt_popcount): Delete.
15861         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
15862         (bitmap_set_bit): Delete the popcount assert.
15863         (bitmap_clear_bit): Ditto.
15864         (sbitmap_free): Don't free the popcount array.
15865         (sbitmap_alloc_with_popcount): Delete declaration.
15866         (sbitmap_popcount): Ditto.
15868 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
15869             Andrew Burgess  <andrew.burgess@embecosm.com>
15871         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
15872         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
15873         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
15874         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
15875         * config/arc/arc.opt (mcmem): New option.
15876         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
15877         supply length for r/m alternative.
15878         (*extendqisi2_ac): Likewise.
15879         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
15880         r/Uex alternative.
15881         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
15882         (movhi_insn): Likewise.
15883         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
15884         (*zero_extendqihi2_i): Add r/Ucm alternative.
15885         (*zero_extendqisi2_ac): Likewise.
15886         (*zero_extendhisi2_i): Likewise.
15887         * config/arc/constraints.md (Uex): New memory constraint.
15888         (Ucm): New define_constraint.
15889         * config/arc/predicates.md (long_immediate_loadstore_operand):
15890         Return 0 for MEM with cmem_address address.
15891         (cmem_address_0): New predicates.
15892         (cmem_address_1): Likewise.
15893         (cmem_address_2): Likewise.
15894         (cmem_address): Likewise.
15896 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
15898         * config/rs6000/rs6000.c (machine_function): Rename
15899         insn_chain_scanned_p to spe_insn_chain_scanned_p.
15900         (rs6000_stack_info): Adjust.
15902 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
15903             Andrew Burgess  <andrew.burgess@embecosm.com>
15905         * config/arc/constraints.md (Usd): Convert to define_constraint.
15906         (Us<): Likewise.
15907         (Us>): Likewise.
15909 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
15911         PR target/70821
15912         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
15913         Add new peephole2 where the first insn is *mov<mode>_or instead of
15914         *mov<mode>_internal.
15916 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
15918         * tracer.c (bb_seen): Make static.
15920 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
15922         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
15923         support, setup defaults.
15924         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
15925         * config/arc/arc.c (arc_init): Add NPS400 support.
15926         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
15927         (TARGET_ARC700): NPS400 is also an ARC700.
15928         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
15930 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
15932         PR target/70668
15933         * config/nds32/nds32.md (casesi): Don't access the operands array
15934         out of bounds.
15936 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
15938         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
15939         (or $-1,reg peephole2): Ditto.
15940         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
15942 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
15944         * doc/extend.texi (Common Function Attributes) [optimize]:
15945         Discourage use of the optimize attribute.
15947 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
15949         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
15950         special case builtin.
15951         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
15952         ALTIVEC_BUILTIN_VEC_ADDE.
15953         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
15954         support for ALTIVEC_BUILTIN_VEC_ADDE.
15955         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
15956         for __builtin_vec_adde.
15958 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
15960         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
15961         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
15963 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15965         PR testsuite/70595
15966         * doc/sourcebuild.texi (Effective-Target Keywords, Other
15967         attributes): Document cilkplus_runtime.
15969 2016-04-28  Martin Jambor  <mjambor@suse.cz>
15971         * tree-cfg.c (verify_expr): Verify that local declarations belong to
15972         this function.  Call verify_expr on MEM_REFs and bases of other
15973         handled_components.
15975 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15977         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
15978         for WORD_REGISTER_OPERATIONS to runtime check.
15980 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
15982         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
15984 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
15986         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
15987         big-endian compilation.
15988         * config/arc/arc.md (addf3): Likewise.
15989         (subdf3): Likewise.
15990         (muldf3): Likewise.
15992 2016-04-28  Richard Biener  <rguenther@suse.de>
15994         PR tree-optimization/70840
15995         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
15996         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
15997         Mark x * pow(x,c) -> pow(x,c+1) commutative.
15998         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
16000 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16002         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
16003         and explain why in a comment.
16005 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16007         * config/arc/arc.md (cpu_facility): Add fpx variant.
16008         (subdf3): Prohibit use reverse sub when assist operations option
16009         is enabled.
16010         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
16011         instructions only when FPX is enabled.
16012         * testsuite/gcc.target/arc/trsub.c: New test.
16014 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
16016         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
16017         mult_operator when calculating "type" attribute.
16018         (*fop_<mode>_1_i387): Ditto.
16019         (*fop_xf_1_i387): Ditto.
16020         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
16021         Use std::swap to swap operands.  Use RTL expressions to generate
16022         converted pattern.
16024 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16025             Joern Rennecke  <joern.rennecke@embecosm.com>
16027         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
16028         declaration.
16029         (emit_pic_move): Remove.
16030         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
16031         * config/arc/arc.c (emit_pic_move): Removed.
16032         (TARGET_HAVE_TLS): Define.
16033         (arc_conditional_register_usage): Test for arc_tp_regno.
16034         (arc_print_operand, arc_print_operand_address): Handle TLS
16035         unspecs.
16036         (arc_needs_pcl_p): New function.
16037         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
16038         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
16039         (arc_raw_symbolic_reference_mentioned_p): Likewise.
16040         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
16041         (arc_legitimize_tls_address): Likewise.
16042         (DTPOFF_ZERO_SYM): Define.
16043         (arc_legitimize_pic_address): Make it static, handle TLS cases.
16044         (arc_output_pic_addr_const): Print TLS unspecs.
16045         (prepare_pic_move): New function, replaces emit_pic_move.
16046         (arc_legitimate_constant_p): Handle TLS unspecs.
16047         (arc_legitimate_address_p): Likewise.
16048         (arc_rewrite_small_data_p): Use assert for TLS constants.
16049         (prepare_move_operands): Use prepare_pic_move.
16050         (arc_legitimize_address): Legitimize tls addresses.
16051         (arc_epilogue_uses): Check for arc_tp_regno.
16052         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
16053         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
16054         Define.
16055         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
16056         Likewise.
16057         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
16058         %(arc_tls_extra_start_spec).
16059         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
16060         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
16061         (EH_USES): Define.
16062         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
16063         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
16064         (UNSPEC_TLS_OFF): Add.
16065         (R10_REG): Define.
16066         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
16067         (get_thread_pointersi): New patterns.
16068         * config/arc/arc.opt (mtp-regno): New option.
16069         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
16070         (move_dest_operand): Likewise.
16071         * configure: Regenerate.
16072         * configure.ac: Add arc*-*-* case to test for tls.
16073         * doc/invoke.texi (ARC options): Document mtp-regno.
16075 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16077         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
16078         the new ARC HS SIMD instructions.
16079         (arc_preferred_simd_mode): New function.
16080         (arc_autovectorize_vector_sizes): Likewise.
16081         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
16082         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
16083         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
16084         (arc_init_builtins): Add new SIMD builtin types.
16085         (arc_split_move): Handle 64 bit vector moves.
16086         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
16087         (TARGET_PLUS_QMACW): Define.
16088         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
16089         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
16090         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
16091         (VSUBADD4H): New builtins.
16092         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
16093         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
16095 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
16096             Matthias Klose  <doko@debian.org>
16098         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
16100 2016-04-28  Richard Biener  <rguenther@suse.de>
16102         PR middle-end/70777
16103         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
16104         canonicalization.
16106 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
16108         * common/config/sh/sh-common.c: Remove SH5 support.
16109         * config/sh/constraints.md: Likewise.
16110         * config/sh/config/sh/elf.h: Likewise.
16111         * config/sh/linux.h: Likewise.
16112         * config/sh/netbsd-elf.h: Likewise.
16113         * config/sh/predicates.md: Likewise.
16114         * config/sh/sh-c.c: Likewise.
16115         * config/sh/sh-protos.h: Likewise.
16116         * config/sh/sh.c: Likewise.
16117         * config/sh/sh.h: Likewise.
16118         * config/sh/sh.md: Likewise.
16119         * config/sh/sh.opt: Likewise.
16120         * config/sh/sync.md: Likewise.
16121         * config/sh/sh64.h: Delete.
16122         * config/sh/shmedia.h: Likewise.
16123         * config/sh/shmedia.md: Likewise.
16124         * config/sh/sshmedia.h: Likewise.
16125         * config/sh/t-netbsd-sh5-64: Likewise.
16126         * config/sh/t-sh64: Likewise.
16127         * config/sh/ushmedia.h: Likewise.
16129 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
16131         * config/i386/i386.md (sign_extend to memory peephole2s): Use
16132         general_reg_operand instead of register_operand predicate.
16134 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16136         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
16138 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
16140         * match.pd (A - B > A, A + B < A): New transformations.
16142 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
16144         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
16145         which defaults to true.  Emit an outer pair of parentheses only if
16146         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
16147         don't emit parentheses for the right-hand operand.
16149 2016-04-27  Jeff Law  <law@redhat.com>
16151         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
16153 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16155         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
16156         (altivec_lvx_<mode>_internal): Document.
16157         (altivec_lvx_<mode>_2op): New define_insn.
16158         (altivec_lvx_<mode>_1op): Likewise.
16159         (altivec_lvx_<mode>_2op_si): Likewise.
16160         (altivec_lvx_<mode>_1op_si): Likewise.
16161         (altivec_stvx_<mode>): Remove.
16162         (altivec_stvx_<mode>_internal): Document.
16163         (altivec_stvx_<mode>_2op): New define_insn.
16164         (altivec_stvx_<mode>_1op): Likewise.
16165         (altivec_stvx_<mode>_2op_si): Likewise.
16166         (altivec_stvx_<mode>_1op_si): Likewise.
16167         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16168         Expand vec_ld and vec_st during parsing.
16169         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
16170         changes.
16171         (altivec_expand_stvx_be): Likewise.
16172         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
16173         address-masking behavior in RTL.
16174         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
16175         address-masking behavior in RTL.
16176         (altivec_expand_builtin): Change builtin code arguments for calls
16177         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
16178         (insn_is_swappable_p): Avoid incorrect swap optimization in the
16179         presence of lvx/stvx patterns.
16180         (alignment_with_canonical_addr): New function.
16181         (alignment_mask): Likewise.
16182         (find_alignment_op): Likewise.
16183         (recombine_lvx_pattern): Likewise.
16184         (recombine_stvx_pattern): Likewise.
16185         (recombine_lvx_stvx_patterns): Likewise.
16186         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
16187         stvx patterns from expand.
16188         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
16189         expansions.
16190         (vector_altivec_store_<mode>): Likewise.
16192 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
16194         * config/aarch64/aarch64.md
16195         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
16196         remove the "fp" attributes.
16197         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
16198         add the "simd" attributes.
16199         (*movdf_aarch64): Likewise.
16200         (*movtf_aarch64): Remove the "fp" attributes.
16201         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
16202         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
16204 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
16206         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
16207         rtx to rtx_code_label *.
16208         * rtl.h (maybe_set_first_label_num): Likewise.
16210 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
16212         * df-core.c (df_add_problem): Make the problem param be const.
16213         (df_remove_problem): Make local "problem" be const.
16214         * df-problems.c (problem_RD): Make const.
16215         (problem_LR): Likewise.
16216         (problem_LIVE): Likewise.
16217         (problem_MIR): Likewise.
16218         (problem_CHAIN): Likewise.
16219         (problem_WORD_LR): Likewise.
16220         (problem_NOTE): Likewise.
16221         (problem_MD): Likewise.
16222         * df-scan.c (problem_SCAN): Likewise.
16223         * df.h (struct df_problem): Make field "dependent_problem" be
16224         const.
16225         (struct dataflow): Likewise for field "problem".
16226         (df_add_problem): Make param const.
16228 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
16230         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
16231         inter-unit moves to/from vector registers are enabled.  Do not disable
16232         for TARGET_MMX.
16234 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
16236         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
16237         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
16238         #define to...
16239         (enum df_problem_id): ...this new enum.
16240         (struct df_problem): Convert field "id" from "int" to
16241         enum df_problem_id.
16243 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
16245         * rtl.def: Update comment for "things in the instruction chain" to
16246         reflect the removal of the leading "i" field for INSN_UID in
16247         r210360.  Fix bogus apostrophe.
16249 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
16251         * config/i386/i386.md
16252         (lea arith with mem operand + setcc peephole2): Set operator mode.
16254 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
16256         PR target/70155
16257         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
16258         (dimode_scalar_to_vector_candidate_p): This.
16259         (timode_scalar_to_vector_candidate_p): New function.
16260         (scalar_to_vector_candidate_p): Likewise.
16261         (timode_check_non_convertible_regs): Likewise.
16262         (timode_remove_non_convertible_regs): Likewise.
16263         (remove_non_convertible_regs): Likewise.
16264         (remove_non_convertible_regs): Renamed to ...
16265         (dimode_remove_non_convertible_regs): This.
16266         (scalar_chain::~scalar_chain): Make it virtual.
16267         (scalar_chain::compute_convert_gain): Make it pure virtual.
16268         (scalar_chain::mark_dual_mode_def): Likewise.
16269         (scalar_chain::convert_insn): Likewise.
16270         (scalar_chain::convert_registers): Likewise.
16271         (scalar_chain::add_to_queue): Make it protected.
16272         (scalar_chain::emit_conversion_insns): Likewise.
16273         (scalar_chain::replace_with_subreg): Likewise.
16274         (scalar_chain::replace_with_subreg_in_insn): Likewise.
16275         (scalar_chain::convert_op): Likewise.
16276         (scalar_chain::convert_reg): Likewise.
16277         (scalar_chain::make_vector_copies): Likewise.
16278         (scalar_chain::convert_registers): New pure virtual function.
16279         (class dimode_scalar_chain): New class.
16280         (class timode_scalar_chain): Likewise.
16281         (scalar_chain::mark_dual_mode_def): Renamed to ...
16282         (dimode_scalar_chain::mark_dual_mode_def): This.
16283         (timode_scalar_chain::mark_dual_mode_def): New function.
16284         (timode_scalar_chain::convert_insn): Likewise.
16285         (dimode_scalar_chain::convert_registers): Likewise.
16286         (scalar_chain::compute_convert_gain): Renamed to ...
16287         (dimode_scalar_chain::compute_convert_gain): This.
16288         (scalar_chain::replace_with_subreg): Renamed to ...
16289         (dimode_scalar_chain::replace_with_subreg): This.
16290         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
16291         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
16292         (scalar_chain::make_vector_copies): Renamed to ...
16293         (dimode_scalar_chain::make_vector_copies): This.
16294         (scalar_chain::convert_reg): Renamed to ...
16295         (dimode_scalar_chain::convert_reg ): This.
16296         (scalar_chain::convert_op): Renamed to ...
16297         (dimode_scalar_chain::convert_op): This.
16298         (scalar_chain::convert_insn): Renamed to ...
16299         (dimode_scalar_chain::convert_insn): This.
16300         (scalar_chain::convert): Call convert_registers.
16301         (convert_scalars_to_vector): Change to scalar_chain pointer to
16302         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
16303         in 32-bit mode.  Delete scalar_chain pointer.  Call
16304         free_dominance_info in 64-bit mode.
16305         (pass_stv::gate): Remove TARGET_64BIT check.
16306         (ix86_option_override): Put the 64-bit STV pass before the CSE
16307         pass.
16309 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
16311         * dwarf2out.h (struct dw_loc_descr_node): Remove the
16312         dw_loc_frame_offset field.
16313         * dwarf2out.c (new_loc_descr): Likewise.
16314         (resolve_args_picking_1): Turn the VISITED hash set into a
16315         FRAME_OFFSET hash map. Use it to associate a frame offset to
16316         visited nodes. Remove uses of the CHECKING_P macro.
16317         (resolve_args_picking): Update call to resolve_args_picking_1.
16319 2016-04-27  Martin Liska  <mliska@suse.cz>
16321         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
16322         (free_loop_data): Release vuses of groups.
16324 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
16326         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
16327         instead of redundant use_id and boolean have_use_for.
16328         (struct iv_use): Change sub_id into group_id.  Remove field next.
16329         Move fields: related_cands, n_map_members, cost_map and selected
16330         to ...
16331         (struct iv_group): ... here.  New structure.
16332         (struct iv_common_cand): Use structure declaration directly.
16333         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
16334         (MAX_CONSIDERED_USES): Rename macro to ...
16335         (MAX_CONSIDERED_GROUPS): ... here.
16336         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
16337         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
16338         (dump_uses): Rename to ...
16339         (dump_groups): ... here.  Update all uses.
16340         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
16341         (find_induction_variables): Refactor format of dump information.
16342         (record_sub_use): Delete.
16343         (record_use): Update all uses.
16344         (record_group): New function.
16345         (record_group_use, find_interesting_uses_op): Call above functions.
16346         Update all uses.
16347         (find_interesting_uses_cond): Ditto.
16348         (group_compare_offset): New function.
16349         (split_all_small_groups): Rename to ...
16350         (split_small_address_groups_p): ... here.  Update all uses.
16351         (split_address_groups):  Update all uses.
16352         (find_interesting_uses): Refactor format of dump information.
16353         (add_candidate_1): Update all uses.  Remove redundant check on iv,
16354         base and step.
16355         (add_candidate, record_common_cand): Remove redundant assert.
16356         (add_iv_candidate_for_biv): Update use.
16357         (add_iv_candidate_derived_from_uses): Update all uses.
16358         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
16359         (alloc_use_cost_map): Ditto.
16360         (set_use_iv_cost, get_use_iv_cost): Rename to ...
16361         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
16362         (determine_use_iv_cost_generic): Ditto.
16363         (determine_group_iv_cost_generic): Ditto.
16364         (determine_use_iv_cost_address): Ditto.
16365         (determine_group_iv_cost_address): Ditto.
16366         (determine_use_iv_cost_condition): Ditto.
16367         (determine_group_iv_cost_cond): Ditto.
16368         (determine_use_iv_cost): Ditto.
16369         (determine_group_iv_cost): Ditto.
16370         (set_autoinc_for_original_candidates): Update all uses.
16371         (find_iv_candidates): Update all uses.  Refactor dump information.
16372         (determine_use_iv_costs): Ditto.
16373         (determine_iv_costs): Ditto.
16374         (iv_ca_cand_for_use): Rename to ...
16375         (iv_ca_cand_for_group): ... here.  Update all uses.
16376         (iv_ca_add_use, iv_ca_add_group): Ditto.
16377         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
16378         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
16379         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
16380         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
16381         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
16382         (create_new_iv, adjust_iv_update_pos): Ditto.
16383         (rewrite_use_address): Delete.
16384         (rewrite_use_address_1): Rename to ...
16385         (rewrite_use_address): ... here.
16386         (rewrite_use_compare): Update all uses.
16387         (rewrite_use): Delete.
16388         (rewrite_uses): Rename to ...
16389         (rewrite_groups): ... here.  Update all uses.
16390         (remove_unused_ivs, free_loop_data): Update all uses.
16391         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
16393 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16395         * rtlanal.c (nonzero_bits1): Convert preprocessor check
16396         for WORD_REGISTER_OPERATIONS to runtime check.
16398 2016-04-27  Richard Biener  <rguenther@suse.de>
16400         PR ipa/70760
16401         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
16402         aggregate_value_p to determine if a function result is
16403         returned by reference.
16404         (ipa_pta_execute): Functions having their address taken are
16405         not automatically nonlocal.
16407 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
16409         PR sanitizer/70683
16410         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
16411         * fold-const.c (operand_equal_p): If flag_checking and
16412         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
16413         and if it returns non-zero, assert iterative_hash_expr on both
16414         args is the same.
16416 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
16418         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
16420 2016-04-27  Nick Clifton  <nickc@redhat.com>
16422         PR middle-end/49889
16423         * varasm.c (merge_weak): Generate an error if an attempt is made
16424         to convert a non-weak static function into a weak, public function.
16426 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16428         * params.def (MAX_PARTITION_SIZE): New param.
16429         * doc/invoke.texi: Document lto-max-partition.
16431 2016-04-27  Richard Biener  <rguenther@suse.de>
16433         PR ipa/70785
16434         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
16435         function cummulating used_from_other_partition, externally_visible
16436         and force_output from aliases.
16437         (refered_from_nonlocal_var): Likewise.
16438         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
16439         node flags properly.
16441 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
16443         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
16444         (-Wmemset-elt-size): New item.
16446 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
16448         PR ada/70759
16449         * stor-layout.h (internal_reference_types): Delete.
16450         * stor-layout.c (reference_types_internal): Likewise.
16451         (internal_reference_types): Likewise.
16452         (layout_type) <REFERENCE_TYPE>: Adjust.
16454 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
16456         PR sanitizer/70683
16457         * tree.h (inchash::add_expr): Add FLAGS argument.
16458         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
16459         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
16460         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
16461         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
16462         if swap_tree_comparison (code) is smaller than code, hash that
16463         and arguments in the other order.  Hash CONVERT_EXPR the same
16464         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
16465         of ADDR_EXPR of decl as the decl itself.  Add or remove
16466         OEP_ADDRESS_OF from recursive flags as needed.  For
16467         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
16468         operands commutatively and only the third one normally.
16469         For internal CALL_EXPR hash in CALL_EXPR_IFN.
16471 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16473         * config/rtems.h (LIB_SPEC): Add -latomic.
16475 2016-04-27  Joel Sherrill  <joel@rtems.org>
16477         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
16478         xilink.ld and flags not relevant to RTEMS.
16480 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
16482         * toplev.c (backend_init_target): Avoid calling init_reload when using
16483         LRA.
16485 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
16487         * reorg.c (try_merge_delay_insns): Declare i and j inside the
16488         for loops rather than one for the whole function.
16490 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
16492         * match.pd (X + CST CMP X): New transformation.
16494 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
16496         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
16497         * fold-const.c (fold_binary_loc): Remove 2 transformations
16498         superseded by match.pd.
16499         * match.pd (x+x -> x*2): Generalize to integers.
16501 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
16503         * config/i386/i386.md (operation on memory peephole): Duplicate an
16504         existing peephole and adapt it to match lea rather than an operation
16505         that clobbers CC.
16507         PR rtl-optimization/57193
16508         * opts.c (default_options_table): Add OPT_frename_registers at -O2
16509         and above.
16510         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
16512 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
16514         * tree-if-conv.c (any_pred_load_store): New static variable.
16515         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
16516         any_pred_load_store instead of and_mask_load_store.
16517         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
16518         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
16519         (combine_blocks, tree_if_conversion): Ditto.
16521 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
16523         PR tree-optimization/70771
16524         PR tree-optimization/70775
16525         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
16526         virtual PHI nodes.  Delete parameter.
16527         (if_convertible_loop_p_1): Delete argument to above function.
16528         (predicate_all_scalar_phis): Delete code handling single-argument
16529         PHIs.
16530         (tree_if_conversion): Mark and update virtual SSA.
16532 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16534         PR target/61821
16535         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
16536         (x86_elf_aligned_common): Rename to ...
16537         (x86_elf_aligned_decl_common): ... this.
16538         Add decl arg.  Switch to .lbss for largecomm object.  Use
16539         LARGECOMM_SECTION_ASM_OP.
16540         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
16541         renaming.
16542         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
16543         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
16544         Pass new decl arg.
16545         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16546         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
16548 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16550         PR target/59407
16551         * config/i386/i386.c (SECTION_LARGE): Define.
16552         (x86_64_elf_select_section): Set it for large data/bss sections.
16553         Only clear SECTION_WRITE for .lrodata.
16554         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
16555         data/bss sections.
16556         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
16557         * varasm.c (default_elf_asm_named_section): Grow flagchars.
16558         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
16559         SECTION_MACH_DEP.
16560         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
16561         * doc/tm.texi: Regenerate.
16563 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
16565         PR bootstrap/70704
16566         * configure.ac (--enable-checking): Document extra flag, for
16567         non-release builds default to --enable-checking=yes,extra.
16568         If misc checking and extra checking, define CHECKING_P to 2 instead
16569         of 1.
16570         * common.opt (fchecking=): Add.
16571         * doc/invoke.texi (-fchecking=): Document.
16572         * doc/install.texi: Document --enable-checking changes.
16573         * configure: Regenerated.
16574         * config.in: Regenerated.
16576 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16578         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
16579         attribute instead of which_alternative.
16580         * config/i386/sse.md (*mov<mode>_internal): Ditto.
16581         Use EXT_REX_SSE_REG_P where appropriate.
16583 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16585         * config/i386/predicates.md (const0_operand): Do not match
16586         const_wide_int code.
16587         (const1_operand): Ditto.
16589 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16591         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
16592         for SSE constm1 operands and TARGET_AVX512VL.
16593         (*movti_internal): Ditto.
16594         (*mov<mode>_or): Use constm1_operand predicate.
16595         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
16596         for SSE vector_all_ones operands and TARGET_AVX512VL.
16597         * config/i386/predicates.md (constm1_operand): New predicate.
16598         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
16599         emission of constant -1 load.
16601 2016-04-25  Jason Merrill  <jason@redhat.com>
16603         * gdbinit.in: Skip is-a.h.
16605         * attribs.c (register_scoped_attributes): Fix logic.
16606         * attribs.h: Declare register_scoped_attributes.
16608 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16610         * config/rs6000/rs6000-builtin.def: Correct pasto error for
16611         stxvd2x and stxvw4x built-in functions.
16613 2016-04-25  DJ Delorie  <dj@redhat.com>
16615         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
16616         (ashrhi3): Likewise.
16617         (lshrhi3): Likewise.
16619 2016-04-25  Richard Biener  <rguenther@suse.de>
16621         PR tree-optimization/70780
16622         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
16623         wasn't visited yet.
16624         (compute_antic): Mark blocks with abnormal preds as visited as
16625         they have a final empty antic-in solution already.
16627 2016-04-25  Michael Collison  <michael.collison@linaro.org>
16629         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
16631 2016-04-25  Michael Collison  <michael.collison@linaro.org>
16633         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
16634         mode is VQI to improve mixed mode vectorization.
16635         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
16636         define_insn to match low half of signed vaddw.
16637         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
16638         define_insn to match high half of signed vaddw.
16639         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
16640         define_insn to match low half of unsigned vaddw.
16641         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
16642         define_insn to match high half of unsigned vaddw.
16643         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
16644         (arm_simd_check_vect_par_cnst_half_p): Likewise.
16645         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
16646         for new function.
16647         (arm_simd_check_vect_par_cnst_half_p): Likewise.
16648         * config/arm/predicates.md (vect_par_constant_high): Support
16649         big endian and simplify by calling
16650         arm_simd_check_vect_par_cnst_half
16651         (vect_par_constant_low): Likewise.
16653 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16655         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
16656         predicate for operand 2.
16658 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
16659             H.J. Lu  <hongjiu.lu@intel.com>
16661         * config/i386/i386-protos.h (standard_sse_constant_p): Add
16662         machine_mode argument.
16663         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
16664         constm1_rtx operands.  For VOIDmode constants, get mode from
16665         pred_mode.  Check mode size if the mode is supported by ABI.
16666         (standard_sse_constant_opcode): Do not use standard_constant_p.
16667         Strictly check ABI support for all-ones operands.
16668         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
16669         immediates. Update calls to standard_sse_constant_p.
16670         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
16671         (ix86_rtx_costs): Ditto.
16672         * config/i386/i386.md (*movxi_internal_avx512f): Use
16673         nonimmediate_or_sse_const_operand instead of vector_move_operand.
16674         Use (v,BC) alternative instead of (v,C). Use register_operand
16675         checks instead of MEM_P.
16676         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
16677         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
16678         isa attribute.  Use register_operand checks instead of MEM_P.
16679         (*movti_internal): Use nonimmediate_or_sse_const_operand for
16680         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
16681         alternative and corresponding sse2 isa attribute.
16682         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
16683         to standard_sse_constant_p.
16684         (FP constant splitters): Ditto.
16685         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
16686         (C): Ditto.
16687         * config/i386/predicates.md (constm1_operand): Remove.
16688         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
16689         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
16690         vector_all_ones_operand instead of constm1_operand.
16692 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16694         * print-rtl.c (print_rtx_insn_vec): New function.
16695         * print-rtl.h: New prototype.
16696         * store-motion.c (struct st_expr): Make avail_stores a vector.
16697         (st_expr_entry): Adjust.
16698         (free_st_expr_entry): Likewise.
16699         (print_store_motion_mems): Likewise.
16700         (find_moveable_store): Likewise.
16701         (compute_store_table): Likewise.
16702         (delete_store): Likewise.
16703         (build_store_vectors): Likewise.
16705 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16707         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
16709 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16711         * vec.h (vec_safe_contains): New function.
16712         (vec::contains): Likewise.
16713         (vec::begin): Likewise.
16714         (vec::end): Likewise.
16716 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
16718         PR sanitizer/70712
16719         * cfgexpand.c (expand_stack_vars): Fix typo.
16721 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16723         * system.h (list, map, set, vector): Include conditionally.
16724         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
16725         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
16726         * ipa-icf.c (INCLUDE_LIST): Define.
16727         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
16728         * config/sh/sh.c (INCLUDE_VECTOR): Define.
16729         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
16730         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
16731         * cp/logic.cc (INCLUDE_LIST): Define.
16732         * fortran/trans-common.c (INCLUDE_MAP): Define.
16734 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16736         * auto-profile.c: Remove <string.h> include.
16737         * ipa-icf-gimple.c: Remove <list> include.
16738         * diagnostic.c: Remove <new> include.
16739         * genmatch.c: Likewise.
16740         * pretty-print.c: Likewise.
16741         * toplev.c: Likewise
16742         * c/c-objc-common.c: Likewise.
16743         * cp/error.c: Likewise.
16744         * fortran/error.c: Likewise.
16746 2016-04-22  Richard Biener  <rguenther@suse.de>
16748         * lto-streamer-in.c (input_ssa_names): Do not allocate
16749         GIMPLE_NOP for all SSA names.
16750         * lto-streamer-out.c (output_ssa_names): Do not output
16751         SSA names that should have been released.
16753 2016-04-22  Richard Biener  <rguenther@suse.de>
16755         PR tree-optimization/70740
16756         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
16757         VDEF.
16759 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
16761         PR target/70750
16762         * config/i386/predicates.md (call_insn_operand): Replace
16763         sibcall_memory_operand with memory_operand.
16765 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
16767         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
16768         has_single_use() tests.
16769         (register_edge_assert_for_1): Likewise.
16770         (find_assert_locations_1): Check the liveness bitmap instead of
16771         checking has_single_use().
16773 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
16775         PR target/70728
16776         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
16777         Extract AVX-512BW constraint from AVX.
16779 2016-04-21  Richard Biener  <rguenther@suse.de>
16781         PR tree-optimization/70725
16782         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
16783         for phi_convertible_by_degenerating_args.
16784         (predicate_all_scalar_phis): Handle single-argument PHIs.
16786 2016-04-21  Richard Biener  <rguenther@suse.de>
16788         PR middle-end/70747
16789         * fold-const.c (fold_comparison): Return properly typed
16790         constant boolean.
16792 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
16794         PR tree-optimization/70715
16795         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
16796         after expanding BASE using expand_simple_operations.
16798 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
16800         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
16801         New transformations.
16803 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
16805         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
16807 2016-04-20  Jan Hubicka  <jh@suse.cz>
16809         * ipa-inline.c (can_inline_edge_p): Pass caller info to
16810         ultiimate_alias_target.
16811         (update_callee_keys): Likewise.
16812         (lookup_recursive_calls): Likewise.
16813         (speculation_useful_p): Likewise.
16815 2016-04-20  Jan Hubicka  <jh@suse.cz>
16817         PR ipa/70018
16818         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
16819         (set_nothrow_flag_1): ... this; handle interposition correctly;
16820         recurse on aliases and thunks.
16821         (cgraph_node::set_nothrow_flag): New.
16822         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
16823         functions compiled with non-call exceptions that binds to current
16824         def.
16825         (propagate_nothrow): Be safe WRT interposition.
16826         * cgraph.h (set_nothrow_flag): Update prototype.
16828 2016-04-18  Jan Hubicka  <jh@suse.cz>
16830         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
16831         max_loop_iterations_int.
16832         (tree_unswitch_outer_loop): Likewise.
16834 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
16836         PR tree-optimization/69489
16837         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
16838         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
16839         Revise dump message.
16840         (if_convertible_bb_p): Remove check on edge count of basic block's
16841         predecessors.
16843 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
16845         PR tree-optimization/56625
16846         PR tree-optimization/69489
16847         * tree-data-ref.h (DR_INNERMOST): New macro.
16848         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
16849         hashing struct innermost_loop_behavior.
16850         (ref_DR_map): Remove.
16851         (innermost_DR_map): New map.
16852         (baseref_DR_map): Revise comment.
16853         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
16854         to innermost_DR_map accroding to its innermost loop behavior.
16855         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
16856         to its innermost loop behavior.
16857         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
16858         Add initialization for innermost_DR_map.  Record memory reference
16859         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
16860         have innermost loop behavior.
16861         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
16862         innermost_DR_map.
16864 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
16866         * config/i386/i386.md (*lea<mode>_general_1): Rename from
16867         *lea_general_1.  Use explicit SWI12 mode interator.
16868         (*lea<mode>_general_2): Rename from *lea_general_2.
16869         Use explicit SWI12 mode interator.
16870         (*lea<mode>_general_3): Rename from *lea_general_3.
16871         Use explicit SWI12 mode interator.
16872         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
16873         Use explicit SWI12 mode interator.
16874         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
16875         Use explicit SWI48 mode interator.
16877 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
16879         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
16880         Short-cut unaligned load and store cases.  Handle all integer
16881         vector modes.
16882         (ix86_expand_vector_move_misalign): Short-cut unaligned load
16883         and store cases.  Call ix86_avx256_split_vector_move_misalign
16884         directly without checking mode class.
16886 2016-04-20  Andrew Pinski  <apinski@cavium.com>
16887             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16889         PR target/64971
16890         * config/aarch64/aarch64.md (sibcall): Force call
16891         address to be DImode for ILP32.
16892         (sibcall_value): Likewise.
16894 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
16896         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
16898 2016-04-20  Richard Biener  <rguenther@suse.de>
16900         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
16901         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
16902         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
16903         (maybe_push_res_to_seq): Adjust.
16904         * gimple-fold.c (maybe_build_generic_op): Likewise.
16906 2016-04-20  Marek Polacek  <polacek@redhat.com>
16908         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
16909         rather than true.
16911 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
16913         * config/i386/sse.md (vec_unpacks_lo_hi): Always
16914         use kmovw to support AVX512F target.
16916 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
16918         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
16920 2016-04-20  Marek Polacek  <polacek@redhat.com>
16922         PR tree-optimization/70725
16923         * tree-if-conv.c (is_false_predicate): New function.
16924         (predicate_mem_writes): Use it.
16926 2016-04-20  Richard Biener  <rguenther@suse.de>
16928         PR tree-optimization/70726
16929         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
16930         shift amounts from a pattern stmt operand.
16932 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16934         PR target/70674
16935         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
16936         stack_restore_from_fpr pattern when restoring r15.
16937         (s390_optimize_prologue): Strip away the memory barrier in the
16938         parallel when trying to get rid of restore insns.
16939         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
16940         definition for loading the stack pointer from an FPR.  Compared to
16941         the normal move insn this pattern includes a full memory barrier.
16943 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
16945         PR middle-end/70680
16946         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
16947         implicitly linear or lastprivate iterator on the outer context.
16949 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
16951         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
16952         alignment check.
16953         * config/i386/i386.md (ssememalign): Removed.
16954         * config/i386/sse.md: Remove ssememalign attribute from patterns.
16956 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
16958         PR target/69201
16959         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
16960         const short * to __builtin_ia32_loaddquhi512_mask.
16961         (_mm512_maskz_loadu_epi16): Likewise.
16962         (_mm512_mask_storeu_epi16): Pass short * to
16963         __builtin_ia32_storedquhi512_mask.
16964         (_mm512_mask_loadu_epi8): Pass const char * to
16965         __builtin_ia32_loaddquqi512_mask.
16966         (_mm512_maskz_loadu_epi8): Likewise.
16967         (_mm512_mask_storeu_epi8): Pass char * to
16968         __builtin_ia32_storedquqi512_mask.
16969         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
16970         const double * to __builtin_ia32_loadupd512_mask.
16971         (_mm512_mask_loadu_pd): Likewise.
16972         (_mm512_maskz_loadu_pd): Likewise.
16973         (_mm512_storeu_pd): Pass double * to
16974         __builtin_ia32_storeupd512_mask.
16975         (_mm512_mask_storeu_pd): Likewise.
16976         (_mm512_loadu_ps): Pass const float * to
16977         __builtin_ia32_loadups512_mask.
16978         (_mm512_mask_loadu_ps): Likewise.
16979         (_mm512_maskz_loadu_ps): Likewise.
16980         (_mm512_storeu_ps): Pass float * to
16981         __builtin_ia32_storeups512_mask.
16982         (_mm512_mask_storeu_ps): Likewise.
16983         (_mm512_mask_loadu_epi64): Pass const long long * to
16984         __builtin_ia32_loaddqudi512_mask.
16985         (_mm512_maskz_loadu_epi64): Likewise.
16986         (_mm512_mask_storeu_epi64): Pass long long *
16987         to __builtin_ia32_storedqudi512_mask.
16988         (_mm512_loadu_si512): Pass const int * to
16989         __builtin_ia32_loaddqusi512_mask.
16990         (_mm512_mask_loadu_epi32): Likewise.
16991         (_mm512_maskz_loadu_epi32): Likewise.
16992         (_mm512_storeu_si512): Pass int * to
16993         __builtin_ia32_storedqusi512_mask.
16994         (_mm512_mask_storeu_epi32): Likewise.
16995         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
16996         char * to __builtin_ia32_storedquqi256_mask.
16997         (_mm_mask_storeu_epi8): Likewise.
16998         (_mm256_mask_loadu_epi16): Pass const short * to
16999         __builtin_ia32_loaddquhi256_mask.
17000         (_mm256_maskz_loadu_epi16): Likewise.
17001         (_mm_mask_loadu_epi16): Pass const short * to
17002         __builtin_ia32_loaddquhi128_mask.
17003         (_mm_maskz_loadu_epi16): Likewise.
17004         (_mm256_mask_loadu_epi8): Pass const char * to
17005         __builtin_ia32_loaddquqi256_mask.
17006         (_mm256_maskz_loadu_epi8): Likewise.
17007         (_mm_mask_loadu_epi8): Pass const char * to
17008         __builtin_ia32_loaddquqi128_mask.
17009         (_mm_maskz_loadu_epi8): Likewise.
17010         (_mm256_mask_storeu_epi16): Pass short * to.
17011         __builtin_ia32_storedquhi256_mask.
17012         (_mm_mask_storeu_epi16): Pass short * to.
17013         __builtin_ia32_storedquhi128_mask.
17014         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
17015         const double * to __builtin_ia32_loadupd256_mask.
17016         (_mm256_maskz_loadu_pd): Likewise.
17017         (_mm_mask_loadu_pd): Pass onst double * to
17018         __builtin_ia32_loadupd128_mask.
17019         (_mm_maskz_loadu_pd): Likewise.
17020         (_mm256_mask_storeu_pd): Pass double * to
17021         __builtin_ia32_storeupd256_mask.
17022         (_mm_mask_storeu_pd): Pass double * to
17023         __builtin_ia32_storeupd128_mask.
17024         (_mm256_mask_loadu_ps): Pass const float * to
17025         __builtin_ia32_loadups256_mask.
17026         (_mm256_maskz_loadu_ps): Likewise.
17027         (_mm_mask_loadu_ps): Pass const float * to
17028         __builtin_ia32_loadups128_mask.
17029         (_mm_maskz_loadu_ps): Likewise.
17030         (_mm256_mask_storeu_ps): Pass float * to
17031         __builtin_ia32_storeups256_mask.
17032         (_mm_mask_storeu_ps): ass float * to
17033         __builtin_ia32_storeups128_mask.
17034         (_mm256_mask_loadu_epi64): Pass const long long * to
17035         __builtin_ia32_loaddqudi256_mask.
17036         (_mm256_maskz_loadu_epi64): Likewise.
17037         (_mm_mask_loadu_epi64): Pass const long long * to
17038         __builtin_ia32_loaddqudi128_mask.
17039         (_mm_maskz_loadu_epi64): Likewise.
17040         (_mm256_mask_storeu_epi64): Pass long long * to
17041         __builtin_ia32_storedqudi256_mask.
17042         (_mm_mask_storeu_epi64): Pass long long * to
17043         __builtin_ia32_storedqudi128_mask.
17044         (_mm256_mask_loadu_epi32): Pass const int * to
17045         __builtin_ia32_loaddqusi256_mask.
17046         (_mm256_maskz_loadu_epi32): Likewise.
17047         (_mm_mask_loadu_epi32): Pass const int * to
17048         __builtin_ia32_loaddqusi128_mask.
17049         (_mm_maskz_loadu_epi32): Likewise.
17050         (_mm256_mask_storeu_epi32): Pass int * to
17051         __builtin_ia32_storedqusi256_mask.
17052         (_mm_mask_storeu_epi32): Pass int * to
17053         __builtin_ia32_storedqusi128_mask.
17054         * config/i386/i386-builtin-types.def (PCSHORT): New.
17055         (PINT64): Likewise.
17056         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
17057         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
17058         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
17059         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
17060         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
17061         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
17062         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
17063         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
17064         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
17065         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
17066         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
17067         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
17068         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
17069         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
17070         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
17071         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
17072         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
17073         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
17074         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
17075         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
17076         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
17077         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
17078         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
17079         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
17080         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
17081         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
17082         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
17083         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
17084         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
17085         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
17086         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
17087         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
17088         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
17089         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
17090         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
17091         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
17092         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
17093         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
17094         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
17095         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
17096         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
17097         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
17098         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
17099         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
17100         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
17101         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
17102         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
17103         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
17104         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
17105         use UNSPEC_STOREU.
17106         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
17107         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
17108         load nor store.
17109         (ix86_expand_vector_move_misalign): Likewise.
17110         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
17111         to scalar function prototype for unaligned load/store builtins.
17112         (ix86_expand_special_args_builtin): Updated.
17113         * config/i386/sse.md (UNSPEC_LOADU): Removed.
17114         (UNSPEC_STOREU): Likewise.
17115         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
17116         (VI_ULOADSTORE_F_AVX512VL): Likewise.
17117         (ssescalarsize): Handle V4TI, V2TI and V1TI.
17118         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
17119         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
17120         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
17121         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
17122         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
17123         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
17124         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
17125         (<avx512>_storedqu<mode>_mask): Likewise.
17126         (*sse4_2_pcmpestr_unaligned): Likewise.
17127         (*sse4_2_pcmpistr_unaligned): Likewise.
17128         (*mov<mode>_internal): Renamed to ...
17129         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
17130         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
17131         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
17132         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
17134 2016-04-19  Richard Biener  <rguenther@suse.de>
17136         PR tree-optimization/70171
17137         * tree-ssa-phiprop.c: Include stor-layout.h.
17138         (phiprop_insert_phi): Handle the aggregate copy case.
17139         (propagate_with_phi): Likewise.
17141 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
17143         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
17144         instead of simplify_gen_subreg (... , 0).
17145         (ix86_delegitimize_address): Ditto.
17146         (ix86_split_divmod): Ditto.
17147         (ix86_split_copysign_const): Ditto.
17148         (ix86_split_copysign_var): Ditto.
17149         (ix86_expand_args_builtin): Ditto.
17150         (ix86_expand_round_builtin): Ditto.
17151         (ix86_expand_special_args_builtin): Ditto.
17152         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
17153         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
17154         (udivmodqi4): Ditto.
17155         (absneg splitters): Ditto.
17156         (*jcc_bt<mode>_1): Ditto.
17158 2016-04-19  Richard Biener  <rguenther@suse.de>
17160         PR tree-optimization/70724
17161         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
17162         restoring out from ...
17163         (free_scc_vn): ... here.
17164         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
17165         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
17166         tail merging.
17167         (pass_fre::execute): Restore SSA info.
17169 2016-04-19  Richard Biener  <rguenther@suse.de>
17171         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
17172         * gimple-walk.c (walk_gimple_op): Initialize it.
17173         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
17174         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
17175         remapping SSA names of defs.
17176         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
17177         adjustment.
17179 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
17181         PR middle-end/70689
17182         * lra-constraints.c (equiv_substition_p): New.
17183         (process_alt_operands): Use it.
17184         (swap_operands): Swap it.
17185         (curr_insn_transform): Update it.
17187 2016-04-18  Michael Matz  <matz@suse.de>
17189         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
17190         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
17191         * tree-core.h (tree_type_common.align): Use bit-field.
17192         (tree_type_common.spare): New.
17193         (tree_decl_common.off_align): Make smaller.
17194         (tree_decl_common.align): Use bit-field.
17196         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
17197         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
17198         (scan_sharing_clauses): Ditto.
17199         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
17200         (omp_finish_file): Ditto.
17201         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
17202         (layout_decl): Ditto.
17203         (relayout_decl): Ditto.
17204         (finalize_record_size): Use SET_TYPE_ALIGN.
17205         (finalize_type_size): Ditto.
17206         (finish_builtin_struct): Ditto.
17207         (layout_type): Ditto.
17208         (initialize_sizetypes): Ditto.
17209         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
17210         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
17211         (lookup_field_for_decl): Use SET_DECL_ALIGN.
17212         (get_chain_field): Ditto.
17213         (get_trampoline_type): Ditto.
17214         (get_nl_goto_field): Ditto.
17215         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
17216         SET_DECL_ALIGN.
17217         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
17218         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
17219         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
17220         (build_qualified_type): Use SET_TYPE_ALIGN.
17221         (build_aligned_type, build_range_type_1): Ditto.
17222         (build_atomic_base): Ditto.
17223         (build_common_tree_nodes): Ditto.
17224         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
17225         (expand_one_stack_var_at): Ditto.
17226         * coverage.c (build_var): Use SET_DECL_ALIGN.
17227         * except.c (init_eh): Ditto.
17228         * function.c (assign_parm_setup_block): Ditto.
17229         * symtab.c (increase_alignment_1): Ditto.
17230         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
17231         * tree-vect-stmts.c (ensure_base_align): Ditto.
17232         * varasm.c (align_variable): Ditto.
17233         (assemble_variable): Ditto.
17234         (build_constant_desc): Ditto.
17235         (output_constant_def_contents): Ditto.
17237         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
17238         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
17239         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
17240         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
17241         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
17243 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
17245         PR target/70708
17246         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
17247         replace %vmovsd with "%vmovq".
17248         (vec_concatv2df): Likewise.
17250 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
17252         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
17253         (*vec_extractv2si_0): Ditto.
17254         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
17255         (zero_extended_scalar_load_operand splitters): Ditto.
17256         (vec_extract splitters): Ditto.
17257         (*vec_extractv4si_0_zext): Ditto.
17258         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
17259         and lowpart_subreg.
17260         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
17261         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
17262         (*sse4_1_extractps): Use lowpart_subreg.
17263         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
17265 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17267         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
17268         gld requirements.
17269         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
17270         Mention Solaris 11 packaging changes.
17271         Update gas and gld requirements.
17272         Remove reference to pre-Solaris 10 bug.
17273         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
17274         systems and bugs.
17275         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
17276         with cc.
17278 2016-04-17  Jan Hubicka  <jh@suse.cz>
17280         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
17281         max_loop_iterations_int.
17283 2016-04-18  Richard Biener  <rguenther@suse.de>
17285         PR tree-optimization/43434
17286         * tree-ssa-structalias.c (struct vls_data): New.
17287         (visit_loadstore): Handle all pointer-based accesses.
17288         (compute_dependence_clique): Compute a bitmap of restrict tags
17289         assigned bases and pass it to visit_loadstore.
17291 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
17293         PR target/70711
17294         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
17295         armv8.1-a and armv8.1-a+crc.
17297 2016-04-18  Richard Biener  <rguenther@suse.de>
17299         PR tree-optimization/70701
17300         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
17301         references after translating through a memcpy.
17303 2016-04-18  Richard Biener  <rguenther@suse.de>
17305         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
17306         (compute_antic): ... here.  For partial antic use regular
17307         postorder and scrap iteration.
17308         (compute_partial_antic_aux): Remove unused return value.
17309         (init_pre): Do not allocate postorder.
17310         (fini_pre): Do not free postorder.
17312 2016-04-18  Richard Biener  <rguenther@suse.de>
17314         PR middle-end/37870
17315         * expmed.c (extract_bit_field_1): Remove broken case
17316         using a wider MODE_INT mode.
17318 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
17320         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
17321         unless compiling with at least GCC-4.8.
17323 2016-04-17  Jan Hubicka  <jh@suse.cz>
17325         PR bootstrap/70706
17326         * graphite.c (graphite_finalize): Update call to
17327         tree_estimate_probability.
17328         * predict.h (tree_estimate_probability): Update prototype.
17330 2016-04-17  Jan Hubicka  <jh@suse.cz>
17332         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
17333         (tree_estimate_probability): Likewise.
17334         (pass_profile::execute): Update.
17335         (report_predictor_hitrates): New function.
17336         * profile.c (compute_branch_probabilities): Use it.
17337         * predict.h (report_predictor_hitrates): Declare.
17339 2016-04-17  Jan Hubicka  <jh@suse.cz>
17341         PR ipa/70018
17342         * cgraph.h (cgraph_node::set_const_flag,
17343         cgraph_node::set_pure_flag): Update prototype to return bool;
17344         update comment.
17345         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
17346         of interposable symbol are interposable, too.
17347         (cgraph_set_const_flag_1): Rename to ...
17348         (set_const_flag_1): ... this one; change to self recursive function
17349         instead of call_for_symbol_thunks_and_aliases. Handle correctly
17350         clearnig the flag in all variants and also virtual thunks of const
17351         functions are pure; track if any change was done.
17352         (cgraph_node::set_const_flag): Update.
17353         (struct set_pure_flag_info): New struct.
17354         (cgraph_set_pure_flag_1): Rename to ...
17355         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
17356         rather than pointer encoded flags; track if any changes was done;
17357         handle correctly clearning flag and setting flag of aliases already
17358         declared const.
17359         (cgraph_node::set_pure_flag): Update.
17360         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
17362 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17364         PR other/70433
17365         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
17366         backslash in label.
17368 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17370         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
17371         '{}<> ' as escape-for-record.
17373 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17375         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
17376         structure.
17378 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17380         PR other/70185
17381         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
17382         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
17383         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
17384         * passes.c (finish_optimization_passes): Only call
17385         finish_graph_dump_file if dfi->graph_dump_initialized.
17386         (execute_function_dump, pass_init_dump_file): Use
17387         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
17389 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17391         PR tree-optimization/70256
17392         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
17393         (debug_varmap): New function.
17395 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17397         PR other/70183
17398         * passes.c (pass_manager::register_pass): Propagate pflags.
17400 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17402         PR other/68875
17403         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
17404         * passes.c (pass_manager::pass_manager): Declare and init p_start in
17405         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
17406         check if it's equal to p_start.
17407         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
17409 2016-04-15  Jan Hubicka  <jh@suse.cz>
17411         PR ipa/70018
17412         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
17413         function does not bind to current def.
17414         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
17415         handle conservatively calls to functions that does not need to bind
17416         to current def.
17417         (check_call): Update call of worse_state.
17418         (ignore_edge_for_nothrow): Update.
17419         (ignore_edge_for_pure_const): Likewise.
17420         (propagate_pure_const): Update calls to worse_state.
17421         (skip_function_for_local_pure_const): Reformat comments.
17423 2016-04-15  Jan Hubicka  <jh@suse.cz>
17425         PR ipa/70018
17426         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
17427         (cgraph_node::function_symbol): Likewise.
17428         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
17429         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
17430         (symtab_node::ultimate_alias_target): Add REF parameter.
17431         (symtab_node::binds_to_current_def_p): Declare.
17432         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
17433         (cgraph_node::function_symbol): Likewise.
17434         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
17435         (cgraph_node::get_availability): Likewise.
17436         (cgraph_edge::binds_to_current_def_p): New inline function.
17437         (varpool_node::get_availability): Add REF parameter.
17438         (varpool_node::ultimate_alias_target): Likewise.
17439         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
17440         (symtab_node::binds_to_current_def_p): Likewise.
17441         * varpool.c (varpool_node::get_availability): Likewise.
17443 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
17445         PR target/70662
17446         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
17447         Fix mode size check.
17449 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
17451         * BASE-VER: Set to 7.0.0.
17453 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
17455         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
17457 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17459         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
17460         architecture revisions.
17462 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
17464         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
17465         * config/i386/i386.c (ix86_using_red_zone): No longer static.
17466         * config/i386/i386.md (stack decrement to push peepholes): Guard
17467         with !x86_using_red_zone ().
17469 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
17471         PR c++/70675
17472         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
17473         to dump_generic_node.
17474         (NIY): Pass also flags to do_niy.
17476 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
17478         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
17479         (simd_clone_vector_of_formal_parm_types)
17480         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
17481         (simd_clone_mangle, simd_clone_create)
17482         (simd_clone_adjust_return_type, create_tmp_simd_array)
17483         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
17484         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
17485         (ipa_simd_modify_function_body, simd_clone_linear_addend)
17486         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
17487         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
17488         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
17489         * omp-simd-clone.c: ... this new file.
17490         (simd_clone_vector_of_formal_parm_types): Make it static.
17491         * Makefile.in (OBJS): Add omp-simd-clone.o.
17493 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
17495         PR target/70662
17496         * config/i386/sse.md: Use proper memory operand modifiers.
17499 2016-04-15  Richard Biener  <rguenther@suse.de>
17500         Alan Modra  <amodra@gmail.com>
17502         PR tree-optimization/70130
17503         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
17504         when alignment stays not the same and no not use the realign
17505         scheme then.
17507 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17509         PR target/70669
17510         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
17511         direct move handlers for KFmode. Change TFmode handlers test from
17512         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
17514 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
17516         PR c++/70594
17517         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
17518         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
17519         (inlined_polymorphic_ctor_dtor_block_p): Use it.
17520         * tree-ssa-live.c (remove_unused_scope_block_p): When
17521         in_ctor_dtor_block, avoid discarding not just BLOCKs with
17522         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
17523         block_ultimate_origin is FUNCTION_DECL.
17524         (remove_unused_locals): If current_function_decl is
17525         polymorphic_ctor_dtor_p, pass initial true to
17526         remove_unused_scope_block_p' is_ctor_dtor_block.
17528 2016-04-14  Martin Sebor  <msebor@redhat.com>
17530         PR c++/69517
17531         PR c++/70019
17532         PR c++/70588
17533         * doc/extend.texi (Variable Length): Revert.
17535 2016-04-14  Marek Polacek  <polacek@redhat.com>
17536             Jan Hubicka  <hubicka@ucw.cz>
17538         PR c++/70029
17539         * tree.c (verify_type): Disable the canonical type of main variant
17540         check.
17542 2016-04-14  Jason Merrill  <jason@redhat.com>
17544         * cfgexpand.c, expr.c: Revert previous change.
17546 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
17548         PR middle-end/70643
17549         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
17550         when building a mem ref for the incoming reduction variable.
17552 2016-04-14  Richard Biener  <rguenther@suse.de>
17554         PR tree-optimization/70614
17555         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
17556         loop if the evolution dropped to chrec_dont_know.
17557         (interpret_condition_phi): Likewise.
17559 2016-04-14  Richard Biener  <rguenther@suse.de>
17561         PR tree-optimization/70623
17562         * tree-ssa-pre.c (changed_blocks): Make global ...
17563         (compute_antic): ... local here.  Move and fix worklist
17564         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
17565         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
17566         worklist handling, dump when ANTIC_IN changed.
17567         (compute_partial_antic_aux): Remove worklist handling.
17568         (init_pre): Do not compute post dominators.  Add a comment about
17569         the CFG order chosen.
17570         (fini_pre): Do not free post dominators.
17572 2016-04-13  Martin Sebor  <msebor@redhat.com>
17574         PR c++/69517
17575         PR c++/70019
17576         PR c++/70588
17577         * doc/extend.texi (Variable Length): Document C++ specifics.
17579 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
17581         PR c++/70641
17582         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
17583         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
17584         eh edges have been purged.
17586         PR c++/70594
17587         * tree-sra.c (create_access_replacement,
17588         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
17589         gets fancy name.
17590         * tree-pretty-print.c (dump_fancy_name): New function.
17591         (dump_decl_name, dump_generic_node): Use it.
17593 2016-04-13  Jason Merrill  <jason@redhat.com>
17595         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
17596         * expr.c (expand_expr_real_1): Likewise.
17598 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
17600         * config/i386/i386.md (kunpckhi): Swap operands.
17601         (kunpcksi): Likewise.
17602         (kunpckdi): Likewise.
17603         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
17604         (vec_pack_trunc_<mode>): Likewise.
17606 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
17608         PR debug/70628
17609         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
17611         PR middle-end/70633
17612         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
17613         gimplification turns some element into non-constant.
17615         PR debug/70628
17616         * rtl.h (convert_memory_address_addr_space_1): New prototype.
17617         * explow.c (convert_memory_address_addr_space_1): No longer static,
17618         add NO_EMIT argument and don't call convert_modes if true, pass
17619         it down recursively, remove break after return.
17620         (convert_memory_address_addr_space): Adjust caller.
17621         * simplify-rtx.c (simplify_unary_operation_1): Call
17622         convert_memory_address_addr_space_1 instead of convert_memory_address,
17623         if it returns NULL, don't simplify.
17625 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
17627         PR target/70630
17628         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
17630 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
17632         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17633         Bump the upper SIMDLEN limits, so that if the return type or
17634         characteristic type if the return type is void can be passed in
17635         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
17636         allowed.
17638 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
17640         PR target/70640
17641         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
17642         Do not use "=" constraint on an input constraint.
17643         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
17644         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
17645         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
17646         generates (neg (abs ...)) instead of (abs ...).
17648 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
17650         PR rtl-optimization/70596
17651         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
17652         just invalidate LRA data and reset them.  Adjust dump wording.
17654 2016-04-12  Martin Liska  <mliska@suse.cz>
17656         Revert
17657         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
17659         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
17660         estimates here.
17661         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
17662         max_loop_iterations_int.
17663         (tree_unswitch_outer_loop): Likewise.
17664         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
17665         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
17667 2016-04-12  Tom de Vries  <tom@codesourcery.com>
17669         PR tree-optimization/68756
17670         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
17671         instead of new_name.
17673 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
17675         PR tree-optimization/70602
17676         * tree-sra.c (generate_subtree_copies): Don't write anything into
17677         constant pool decls.
17679         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
17680         regardless whether there are depend clauses or not.
17682 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
17684         PR target/70381
17685         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
17686         target attribute and pragma from changing the -mfloat128
17687         and -mfloat128-hardware options.
17689         * doc/extend.texi (Additional Floating Types): Document PowerPC
17690         __float128 restrictions.
17692 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
17694         PR target/70133
17695         * config/aarch64/driver-aarch64.c
17696         (aarch64_get_extension_string_for_isa_flags): New.
17697         (arch_extension): Rename to...
17698         (aarch64_arch_extension): ...This.
17699         (ext_to_feat_string): Rename to...
17700         (aarch64_extensions): ...This.
17701         (aarch64_core_data): Keep track of architecture extension flags.
17702         (cpu_data): Rename to...
17703         (aarch64_cpu_data): ...This.
17704         (aarch64_arch_driver_info): Keep track of architecture extension
17705         flags.
17706         (get_arch_name_from_id): Rename to...
17707         (get_arch_from_id): ...This, change return type.
17708         (host_detect_local_cpu): Update and reformat for renames, handle
17709         extensions through common infrastructure.
17711 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
17713         PR target/70133
17714         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
17715         track of a canonical flag name.
17716         (all_extensions): Likewise.
17717         (arch_to_arch_name): Also track extension flags enabled by the arch.
17718         (all_architectures): Likewise.
17719         (aarch64_parse_extension): Move to here.
17720         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
17721         rework.
17722         (aarch64_rewrite_selected_cpu): Update for above change.
17723         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
17724         are handled, such that the single explicit value enabled by an
17725         extension is kept seperate from the implicit values it also enables.
17726         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
17727         to here.
17728         (aarch64_parse_extension): New.
17729         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
17730         here to config/aarch64/aarch64-protos.h.
17731         (aarch64_parse_extension): Move from here to
17732         common/config/aarch64/aarch64-common.c.
17733         (aarch64_option_print): Update.
17734         (aarch64_declare_function_name): Likewise.
17735         (aarch64_start_file): Likewise.
17736         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
17737         the canonical flag for extensions.
17738         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
17739         flags.
17741 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
17743         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
17744         AARCH64_FL_CRC.
17746 2016-04-09  Tom de Vries  <tom@codesourcery.com>
17748         PR tree-optimization/68953
17749         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
17750         first to last subscript.
17752 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
17754         PR tree-optimization/70586
17755         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
17756         for any calls.
17758 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
17760         PR lto/70289
17761         PR ipa/70348
17762         PR tree-optimization/70373
17763         PR middle-end/70533
17764         PR middle-end/70534
17765         PR middle-end/70535
17766         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
17767         clauses for acc parallel reductions as necessary.  Error on those
17768         that are private.
17769         * omp-low.c (scan_sharing_clauses): Don't install variables which
17770         are used in acc parallel reductions.
17771         (lower_rec_input_clauses): Remove dead code.
17772         (lower_oacc_reductions): Add support for reference reductions.
17773         (lower_reduction_clauses): Remove dead code.
17774         (lower_omp_target): Don't remap variables appearing in acc parallel
17775         reductions.
17776         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
17778 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
17780         PR middle-end/70593
17781         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
17782         with multiple SSA_NAME defs, force the outputs other than first
17783         to be live before calling live_track_process_def on each output.
17785         PR rtl-optimization/70574
17786         * fwprop.c (forward_propagate_and_simplify): Don't add
17787         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
17788         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
17789         paradoxical subregs within *loc.
17791 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
17793         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
17794         -ftree-parallelize-loops={0,1}.
17795         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
17796         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
17797         * config/ia64/hpux.h (LIB_SPEC): Likewise.
17798         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17799         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
17801 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
17803         PR sanitizer/70541
17804         * asan.c (instrument_derefs): If we get unknown location, extract it
17805         with EXPR_LOCATION.
17806         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
17808 2016-04-08  Tom de Vries  <tom@codesourcery.com>
17810         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
17811         implicit firstprivate clause.
17813 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17815         PR target/70566
17816         * config/arm/thumb2.md (tst + branch-> lsls + branch
17817         peephole below *orsi_not_shiftsi_si): Require that condition
17818         register is dead after the peephole.
17819         (second peephole after the above): Likewise.
17821 2016-04-08  Alan Modra  <amodra@gmail.com>
17823         PR target/70117
17824         * builtins.c (fold_builtin_classify): For IBM extended precision,
17825         look at just the high-order double to test for NaN.
17826         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
17827         test just the high double for Inf but both doubles for subnormal
17828         limit.
17830 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
17832         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
17833         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
17834         node->simdclone->mask_mode != VOIDmode masks.
17835         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
17836         earlier, use it instead of node->simdclone.
17837         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17838         Set clonei->mask_mode.
17840 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
17842         PR c/70436
17843         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
17844         Pass it through to cp_parser_already_scoped_statement.
17845         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
17846         it through to cp_parser_statement.
17847         (cp_parser_statement): Pass IF_P through to
17848         cp_parser_iteration_statement.
17849         (cp_parser_pragma): Adjust call to
17850         cp_parser_iteration_statement.
17852 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
17854         PR c/70436
17855         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
17856         resolve a future -Wparentheses warning.
17857         * omp-low.c (scan_sharing_clauses): Likewise.
17858         * tree-parloops.c (eliminate_local_variables): Likewise.
17860 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
17862         PR rtl-optimization/70398
17863         * lra-constraints.c (process_address_1): Check zero scale and code
17864         for reloading with zero scale.
17866 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
17868         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
17869         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
17871 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
17873         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17874         Add support for AVX512F clones, include them by default for
17875         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
17876         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
17877         up to 128.
17879         PR middle-end/70550
17880         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
17881         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
17882         firstprivate clauses.
17883         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
17884         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
17885         (lower_omp_target): Set TREE_NO_WARNING for
17886         non-addressable possibly uninitialized vars which are copied into
17887         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
17889 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
17891         * config/pa/predicates.md (integer_store_memory_operand): Accept
17892         REG+D operands with a large offset when reload_in_progress is true.
17893         (floating_point_store_memory_operand): Likewise.
17895 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
17897         PR c++/70336
17898         * match.pd (nested int casts): Limit to GIMPLE.
17900 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
17902         PR ipa/66223
17903         * ipa-devirt.c (maybe_record_node): Fix comment; use
17904         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
17906 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
17908         PR rtl-optimization/70542
17909         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
17910         if there are any uses other than insn or debug insns.
17912 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
17913             Jakub Jelinek  <jakub@redhat.com>
17915         PR tree-optimization/70509
17916         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
17917         Shift HOST_WIDE_INT_1U instead of 1.
17919 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
17921         PR tree-optimization/70509
17922         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
17923         of the vector base type for index.
17925 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
17927         PR target/70510
17928         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
17930 2016-04-05  Richard Biener  <rguenther@suse.de>
17932         PR tree-optimization/70526
17933         * tree-sra.c (build_ref_for_offset): Use prev_base to
17934         extract the alias pointer type.
17936 2016-04-05  Richard Biener  <rguenther@suse.de>
17938         * dse.c (struct store_info): Remove alias_set member.
17939         (struct read_info_type): Likewise.
17940         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
17941         spill_deleted, clear_alias_set_lookup): Remove.
17942         (get_group_info): Remove dead base == NULL_RTX case.
17943         (dse_step0): Remove initialization of removed variables.
17944         (delete_dead_store_insn): Reomve alias set dumping.
17945         (free_read_records): Remove alias_set handling.
17946         (canon_address): Remove alias_set_out parameter.
17947         (record_store): Remove spill_alias_set, it's always zero.
17948         (check_mem_read_rtx): Likewise.
17949         (dse_step2): Rename from ...
17950         (dse_step2_nospill): ... this.  Adjust.
17951         (scan_stores): Rename from ...
17952         (scan_stores_nospill): ... this.
17953         (scan_reads): Rename from ...
17954         (scan_reads_nospill): ... this.
17955         (scan_stores_spill, scan_reads_spill): Remove.
17956         (dse_step3_scan): Remove for_spills argument which is always false.
17957         (dse_step3): Likewise.
17958         (dse_step5): Rename from ...
17959         (dse_step5_nospill): ... this.  Remove alias_set handling.
17960         (rest_of_handle_dse): Adjust.
17962 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
17964         PR target/70525
17965         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
17966         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
17967         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
17968         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
17970 2016-04-05  Richard Biener  <rguenther@suse.de>
17972         PR middle-end/70499
17973         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
17974         non-register type temporaries into SSA.
17976 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
17978         PR ipa/66223
17979         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
17980         calls when sanitizing.
17981         (possible_polymorphic_call_target_p): Fix formatting.
17983 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17984             Jakub Jelinek  <jakub@redhat.com>
17986         PR middle-end/70457
17987         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
17988         to ensure a call statement is compatible with a built-in's
17989         prototype.
17990         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
17991         Likewise.
17993 2016-04-04  Richard Biener  <rguenther@suse.de>
17995         PR rtl-optimization/70484
17996         * rtl.h (canon_output_dependence): Declare.
17997         * alias.c (canon_output_dependence): New function.
17998         * dse.c (record_store): Use canon_output_dependence rather
17999         than canon_true_dependence.
18001 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
18003         PR ipa/68881
18004         * cgraph.h (symtab_node::copy_visibility_from): New function.
18005         * symtab.c (symtab_node::copy_visibility_from): New function.
18006         * ipa-visibility.c (optimize_weakref): New function.
18007         (function_and_variable_visibility): Use it.
18009 2016-04-04  Martin Liska  <mliska@suse.cz>
18011         PR hsa/70402
18012         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
18013         value that is really in range handled by SBR instruction.
18014         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
18015         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
18016         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
18018 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
18020         PR target/70416
18021         PR target/67391
18022         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
18023         set, but not for SP_REG operands.
18025 2016-04-02  Martin Sebor  <msebor@redhat.com>
18027         PR c++/67376
18028         * fold-const.c (maybe_nonzero_address): New function.
18029         (fold_comparison): Call it.  Fold equality and relational
18030         expressions involving null pointers.
18031         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
18033 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
18035         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
18036         the "Y" constraint (scalar FP 0.0 immediate).
18038         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
18039         Add the "const_double" to the list of operand constraints.
18041 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
18043         PR rtl-optimization/70467
18044         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
18045         If low word of the last operand is 0, just emit addition/subtraction
18046         for the high word.
18048 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18050         PR target/70404
18051         * config/s390/s390.c (s390_expand_insv): Check for everything
18052         constant instead of just VOIDmode stuff.
18054 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18056         PR target/70496
18057         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
18059 2016-04-01  Nathan Sidwell  <nathan@acm.org>
18061         * tree.def (TRY_CATCH_EXPR): Correct documentation.
18063 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
18065         PR rtl-optimization/70461
18066         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
18067         is necessary.
18069 2016-03-31  Martin Liska  <mliska@suse.cz>
18071         PR hsa/70399
18072         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
18073         a tree value or an immediate integer value to a buffer
18074         that is eventually copied to a BRIG section.
18075         (emit_immediate_operand): Call the function here.
18076         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
18077         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
18078         of class' fields that are removed.
18079         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
18080         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
18081         m_brig_repr_size fields.
18083 2016-03-31  Martin Liska  <mliska@suse.cz>
18085         PR hsa/70391
18086         * hsa-gen.c (hsa_function_representation::update_dominance): New
18087         function.
18088         (convert_addr_to_flat_segment): Likewise.
18089         (gen_hsa_memory_set): New alignment argument.
18090         (gen_hsa_ctor_assignment): Likewise.
18091         (gen_hsa_insns_for_single_assignment): Provide alignment
18092         to gen_hsa_ctor_assignment.
18093         (gen_hsa_insns_for_direct_call): Add new argument.
18094         (expand_lhs_of_string_op): New function.
18095         (expand_string_operation_builtin): Likewise.
18096         (expand_memory_copy): New function.
18097         (expand_memory_set): New function.
18098         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
18099         (convert_switch_statements): Change signature.
18100         (generate_hsa): Use a return value of the function.
18101         (pass_gen_hsail::execute): Do not call
18102         convert_switch_statements here.
18103         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
18104         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
18105         (hsa_function_representation::update_dominance): New function.
18107 2016-03-31  Martin Liska  <mliska@suse.cz>
18109         PR hsa/70391
18110         * hsa-brig.c (emit_directive_variable): Emit alignment
18111         according to hsa_symbol::m_align.
18112         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
18113         (dump_hsa_symbol): Dump alignment of HSA symbols.
18114         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
18115         (gen_hsa_addr_with_align): New function.
18116         (hsa_bitmemref_alignment): Use newly added function.
18117         (gen_hsa_insns_for_load): Likewise.
18118         (gen_hsa_insns_for_store): Likewise.
18119         (gen_hsa_memory_copy): New argument added.
18120         (gen_hsa_insns_for_single_assignment): Respect
18121         alignment for assignments processed via gen_hsa_memory_copy.
18122         (gen_hsa_insns_for_direct_call): Likewise.
18123         (gen_hsa_insns_for_return): Likewise.
18124         (gen_function_def_parameters): Set default alignment.
18125         * hsa.c (hsa_object_alignment): New function.
18126         (hsa_byte_alignment): Pasted function.
18127         * hsa.h (hsa_symbol::m_align): New field.
18129 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
18131         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
18132         scratch field for goto case.
18134 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
18136         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
18138 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
18140         PR target/70442
18141         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
18142         (scalar_chain::convert_insn): Call convert_op for reg
18143         moves to handle undefined registers.
18145 2016-03-31  Nathan Sidwell  <nathan@acm.org>
18147         PR c++/70393
18148         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
18149         Assert we don't want to move backwards.
18151 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
18153         PR target/70453
18154         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
18156 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
18158         PR rtl-optimization/70460
18159         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
18160         with operand from REG_LABEL_OPERAND, instead substitute
18161         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
18162         Don't do anything for REG_NON_LOCAL_GOTO jumps.
18164 2016-03-31  Martin Liska  <mliska@suse.cz>
18166         * passes.c (execute_one_pass): Do not call
18167         todo_after for a discarded function.
18169 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
18171         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
18172         (no_cost, infinite_cost): Initialize the new field.
18173         (get_computation_cost_at): Record setup cost.
18174         (determine_use_iv_cost_address): Skip cost computation for sub
18175         uses if we can estimate it without losing accuracy.
18177 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
18179         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
18180         estimates here.
18181         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
18182         max_loop_iterations_int.
18183         (tree_unswitch_outer_loop): Likewise.
18184         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
18185         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
18187 2016-03-30  Richard Biener  <rguenther@suse.de>
18189         PR middle-end/70450
18190         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
18192 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
18194         PR target/70421
18195         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
18196         in gen_blendm expander.
18198 2016-03-30  Nick Clifton  <nickc@redhat.com>
18200         PR target/62254
18201         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
18202         case where we are already provided with an SImode SUBREG.
18204 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
18206         PR target/70439
18207         * config/i386/i386.c (ix86_expand_epilogue): Properly check
18208         conflict between DRAP register and __builtin_eh_return.
18210 2016-03-30  Michael Matz  <matz@suse.de>
18211             Richard Biener  <rguenther@suse.de>
18213         PR ipa/12392
18214         * ipa-polymorphic-call.c (struct type_change_info): Change
18215         speculative to an unsigned allowing to limit the work we do.
18216         (csftc_abort_walking_p): New inline function..
18217         (check_stmt_for_type_change): Limit the number of may-defs
18218         skipped for speculative devirtualization to
18219         max-speculative-devirt-maydefs.
18220         * params.def (max-speculative-devirt-maydefs): New param.
18221         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
18223 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
18225         PR target/63890
18226         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
18227         and TARGET_MACHO.
18229 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
18231         PR tree-optimization/59124
18232         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
18233         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
18235 2016-03-29  Jeff Law  <law@redhat.com>
18237         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
18239 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
18241         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
18242         to HOST_WIDE_INT.
18244 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
18246         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
18247         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
18248         gcrt0.o if linking dynamically.
18250 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
18252         PR ipa/70283
18253         * ipa-devirt.c (methods_equal_p): New function.
18254         (compare_virtual_tables): Use it.
18255         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
18256         * cgraphclones.c (clone_function_name_1): Use
18257         symbol_table::symbol_suffix_separator.
18258         * coverage.c (build_var): Likewise.
18259         * symtab.c (symbol_table::symbol_suffix_separator): New.
18261 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
18263         PR rtl-optimization/70429
18264         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
18265         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
18266         mode != result_mode.
18268         PR c++/70353
18269         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
18271         PR tree-optimization/70405
18272         * ssa-iterators.h (num_imm_uses): Add missing braces.
18274 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
18276         PR rtl-optimization/68695
18277         * ira-color.c (allocno_copy_cost_saving): New.
18278         (improve_allocation): Use it.
18280 2016-03-29  Richard Henderson  <rth@redhat.com>
18282         PR middle-end/70355
18283         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
18285 2016-03-29  Richard Biener  <rguenther@suse.de>
18287         PR middle-end/70424
18288         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
18289         use alignment returned by get_pointer_alignment_1 if it is
18290         bigger than BITS_PER_UNIT.
18291         * builtins.c (get_pointer_alignment_1): Do not return true
18292         for alignment extracted from SSA info.
18294 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
18296         * config/ft32/ft32.opt (mnodiv): New.
18297         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
18298         * doc/invoke.texi (FT32 Options -mnodiv): New.
18300 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
18302         PR target/70406
18303         * config/i386/i386.md (define_split, andn): Fix modes.
18305 2016-03-26  Richard Biener  <rguenther@suse.de>
18306             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18308         PR ipa/70366
18309         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
18310         instead of
18311         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
18312         as 2nd argument to cl_optimization_restore().
18314 2016-03-25  Richard Henderson  <rth@redhat.com>
18316         PR target/70120
18317         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
18318         * config/aarch64/aarch64-protos.h: Declare it.
18319         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
18321 2016-03-25  Alan Modra  <amodra@gmail.com>
18323         PR target/70052
18324         * config/rs6000/constraints.md (j): Simplify.
18325         * config/rs6000/predicates.md (easy_fp_constant): Exclude
18326         decimal float 0.D.
18327         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
18328         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
18329          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
18330         in all constraint alternatives.
18331         (movtd_64bit_nodm): Delete "j" constraint alternative.
18333 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
18335         * tree-ssa-propagate.c: Enhance docs for
18336         SSA_PROP_NOT_INTERESTING.
18338 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
18340         * doc/extend.texi: Fix typo in documentation to pure attribute.
18342 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
18344         PR target/70319
18345         * config/pa/pa.md (bswapdi2): Use a scratch register.
18347 2016-03-24  Richard Henderson  <rth@redhat.com>
18349         PR middle-end/69845
18350         * fold-const.c (extract_muldiv_1): Correct test for multiplication
18351         overflow.
18353 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
18355         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
18356         using ix86_expand_binary_operator instead of gen_andsi3.
18358 2016-03-24  Richard Biener  <rguenther@suse.de>
18360         PR tree-optimization/70396
18361         * tree-vect-stmts.c (vectorizable_comparison): Use
18362         get_vectype_for_scalar_type.
18364 2016-03-24  Richard Biener  <rguenther@suse.de>
18366         PR middle-end/70370
18367         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
18368         with register bases.
18370 2016-03-24  Richard Biener  <rguenther@suse.de>
18372         PR tree-optimization/70372
18373         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
18374         build_all_ones_cst to also handle vector types correctly.
18376 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
18378         PR target/70381
18379         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
18380         -mfloat128 here.
18382 2016-03-23  Marek Polacek  <polacek@redhat.com>
18384         PR c++/69884
18385         * doc/invoke.texi: Document -Wignored-attributes.
18387 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
18389         PR tree-optimization/69042
18390         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
18391         parameter from 30 to 40.
18393 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
18395         PR tree-optimization/69042
18396         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
18397         for use with constant offset stripped in base.
18399 2016-03-23  Richard Biener  <rguenther@suse.de>
18401         PR middle-end/70251
18402         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
18403         mode compatibility check.
18404         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18406 2016-03-23  Jeff Law  <law@redhat.com>
18408         PR tree-optimization/64058
18409         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
18410         CONFLICT_COUNT.
18411         (struct ssa_conflicts): Move up earlier in the file.
18412         (conflicts_, var_map_): New static variables.
18413         (initialize_conflict_count): New function to initialize the
18414         CONFLICT_COUNT field for each conflict pair.
18415         (compare_pairs): Lazily initialize the conflict count and use it
18416         as the first tie-breaker.
18417         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
18418         and wipe conflicts_ and map_ around the call to qsort.  Remove
18419         special case for 2 coalesce pairs.
18420         * bitmap.c (bitmap_count_unique_bits): New function.
18421         (bitmap_count_bits_in_word): New function, extracted from
18422         bitmap_count_bits.
18423         (bitmap_count_bits): Use bitmap_count_bits_in_word.
18424         * bitmap.h (bitmap_count_unique_bits): Declare it.
18426 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
18428         PR target/69917
18429         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
18430         transparent alias chain for decl assembler name.
18431         * config/sol2.c (solaris_assemble_visibility): Likewise.
18433 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18435         * config/arm/arm1020e.md (1020call_op): Reduce reservation
18436         duration.
18437         (v10_fdivs): Likewise.
18438         (v10_fdivd): Likewise.
18440 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18442         PR driver/70132
18443         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
18444         to not call fclose twice on file.
18446 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
18448         PR tree-optimization/70354
18449         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
18450         oprnd0 is wider than oprnd1 and there is a cast from the wider
18451         type to oprnd1, mask it with the mask of the narrower type.
18453         PR target/70321
18454         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
18455         Optimize TARGET_STV splitters, if high or low word of last argument
18456         is 0 or -1.
18458 2016-03-22  Jeff Law  <law@redhat.com>
18460         PR target/70232
18461         tree-ssa-threadbackward.c
18462         (fsm_find_control_statement_thread_paths): Correctly distinguish
18463         between old style jump threads vs FSM jump threads.
18465 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
18467         PR target/70302
18468         * config/i386/i386.c (scalar_chain::convert_op): Support
18469         uninitialized register usage case.
18471 2016-03-22  Richard Biener  <rguenther@suse.de>
18473         PR middle-end/70251
18474         * genmatch.c (gen_transform): Adjust last parameter to a three-state
18475         int...
18476         (capture::gen_transform): ... to change behavior when substituting
18477         a condition into cond or not-cond expr context.
18478         (dt_simplify::gen_1): Adjust.
18479         * gimple-match-head.c: Include gimplify.h for unshare_expr.
18480         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
18481         last change and instead change to
18482         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
18483         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18485 2016-03-22  Anthony Green  <green@moxielogic.com>
18487         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
18488         issue for moxiebox targets.
18489         (CC1PLUS_SPEC): Ditto.
18491 2016-03-22  Richard Biener  <rguenther@suse.de>
18493         PR middle-end/70333
18494         * fold-const.c (extract_muldiv_1): Properly perform multiplication
18495         in the wide type.
18497 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
18499         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
18501 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
18503         PR target/70325
18504         * config/i386/i386.c (def_builtin): Handle
18505         OPTION_MASK_ISA_AVX512VL to be and-ed with other
18506         bits.
18507         (const struct builtin_description bdesc_special_args[]):
18508         Remove duplicate ISA bits.
18510 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
18512         PR target/70329
18513         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
18514         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
18515         in a way that works also for AVX512BW.
18517         PR target/70300
18518         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
18519         instead of source if operands[1] is xmm16 and above and
18520         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
18521         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
18523         PR c++/70295
18524         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
18525         on assign if (*from_p) is a comparison, set it to
18526         TREE_NO_WARNING (*from_p).
18528 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
18530         PR middle-end/70326
18531         * lra.c (restore_scratches): Ignore deleted insns.
18533 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
18534             Jakub Jelinek  <jakub@redhat.com>
18536         PR tree-optimization/70317
18537         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
18538         to HONOR_NANS.
18540 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
18542         PR target/70327
18543         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
18544         of ix86_expand_move.
18545         (movoi): Ditto.
18546         (movti): Use general_operand for operand 1 predicate.
18548 2016-03-21  Martin Liska  <mliska@suse.cz>
18550         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
18551         insns.
18552         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
18554 2016-03-21  Martin Liska  <mliska@suse.cz>
18556         PR ipa/70306
18557         * ipa-icf.c (sem_function::parse): Skip static
18558         constructors and destructors.
18560 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
18562         PR target/70296
18563         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
18564         function-like macro, peek following token(s) if it is followed
18565         by CPP_OPEN_PAREN token with optional padding in between, and
18566         if not, don't treat it like a macro.
18568 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18569             Alexander Monakov  <amonakov@ispras.ru>
18571         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
18572         for the stabs debug format.
18574 2016-03-21  Richard Biener  <rguenther@suse.de>
18576         PR tree-optimization/70310
18577         * tree-vect-generic.c (expand_vector_condition): Fold the built
18578         condition.
18580 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
18582         PR target/70293
18583         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
18584         Block third alternative for AVX-512VL target,
18586 2016-03-21  Martin Liska  <mliska@suse.cz>
18588         PR hsa/70234
18589         * hsa-brig.c (emit_function_directives): Mark unemitted
18590         global variables for emission.
18591         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
18592         (get_symbol_for_decl): Likewise.
18593         * hsa.h (struct hsa_symbol): New flag.
18595 2016-03-21  Richard Biener  <rguenther@suse.de>
18597         PR tree-optimization/70288
18598         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
18599         we do not estimate unsimplified all-constant conditionals or
18600         switches as optimized away.
18602 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
18604         PR rtl-optimization/69102
18605         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
18606         when we have a readonly dependency context.
18608 2016-03-18  Jeff Law  <law@redhat.com>
18610         PR rtl-optimization/70263
18611         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
18612         (update_equiv_regs): When trying to move a store to after the insn
18613         that sets the source of the store, make sure the store occurs after
18614         the insn that sets the source of the store.  When successful note
18615         the REG_EQUIV note created in the dump file.
18617 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
18618             Bernd Schmidt  <bschmidt@redhat.com>
18620         * doc/extend.texi: Document more potential problems with basic asms.
18622 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
18624         PR rtl-optimization/70278
18625         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
18626         VOIDmode.
18628 2016-03-18  Jason Merrill  <jason@redhat.com>
18630         * calls.c (load_register_parameters): Fix zero size sibcall logic.
18632 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
18634         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
18635         values to 128b regs.
18637 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
18639         PR tree-optimization/70252
18640         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
18641         boolean vector has a proper number of elements.
18642         (supportable_narrowing_operation): Likewise.
18644 2016-03-18  Tom de Vries  <tom@codesourcery.com>
18646         PR ipa/70269
18647         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
18649 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
18651         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
18652         instead of replace_rtx for DEBUG_INSNs.
18654 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18656         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
18657         load type reservations.
18659 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
18661         PR target/70188
18662         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
18663         define_constraint for "Q" and "T" constraints.
18665 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
18667         Tweak the pipeline model for Exynos M1
18669         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
18670         model.
18672 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
18674         PR c/70264
18675         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
18676         where one or both locations aren't within a line_map.
18678 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
18680         PR driver/70192
18681         * opts.c (finish_options): Don't set flag_pie to the default if
18682         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
18683         if it is -1.
18685 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
18687         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
18688         true as ALL_REGS argument to replace_rtx.
18690 2016-03-17  Richard Biener  <rguenther@suse.de>
18692         PR debug/70271
18693         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
18694         last.
18696 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
18698         PR target/70245
18699         * rtl.h (replace_rtx): Add ALL_REGS argument.
18700         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
18701         equality and assert mode is the same, instead of just rtx pointer
18702         equality.
18703         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
18704         true as ALL_REGS argument to replace_rtx.
18706 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
18708         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
18709         for boolean vector with vector mode only.
18710         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18712 2016-03-17  Nick Clifton  <nickc@redhat.com>
18714         PR target/70162
18715         * config/rx/rx.c (rx_print_integer): Print negative constants in
18716         decimal.
18718 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
18720         PR target/70261
18721         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
18723 2016-03-16  Richard Henderson  <rth@redhat.com>
18724             Richard Biener  <rguenth@suse.de>
18726         PR middle-end/70240
18727         PR middle-end/68215
18728         PR tree-opt/68714
18729         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
18730         first operand as is_gimple_condexpr.
18732         PR middle-end/70240
18733         PR middle-end/68215
18734         Revert r231575
18735         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
18736         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
18737         Do not gimplify the result.
18738         (do_unop): Adjust call to tree_vec_extract.
18739         (do_binop): Likewise.
18740         (do_compare): Likewise.
18741         (do_plus_minus): Likewise.
18742         (do_negate): Likewise.
18743         (expand_vector_condition): Likewise.
18744         (do_cond): Likewise.
18746 2016-03-16  Richard Henderson  <rth@redhat.com>
18748         PR target/70048
18749         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
18750         (aarch64_classify_address): Use it.
18751         (aarch64_legitimize_address): Force all subexpressions of PLUS
18752         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
18754 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
18755             Richard Biener  <rguenth@suse.de>
18757         PR target/70245
18758         * rtlanal.c (replace_rtx): For REG, if from is a REG,
18759         return to even if only REGNO is equal, and assert
18760         mode is the same.
18762 2016-03-11  Jeff Law  <law@redhat.com>
18764         PR rtl-optimization/70224
18765         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
18767 2016-03-16  Richard Henderson  <rth@redhat.com>
18769         PR middle-end/70199
18770         * function.h (struct function): Add has_forced_label_in_static.
18771         * gimplify.c (force_labels_r): Set it.
18772         * lto-streamer-in.c (input_struct_function_base): Read it.
18773         * lto-streamer-out.c (output_struct_function_base): Write it.
18774         * tree-inline.c (has_label_address_in_static_1): Remove.
18775         (copy_forbidden): Remove fndecl parameter; test
18776         has_forced_label_in_static.
18777         (inline_forbidden_p): Update call to copy_forbidden.
18778         (tree_versionable_function_p): Likewise.
18779         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
18780         (chkp_versioning): Likewise.
18781         * tree-inline.h (copy_forbidden): Update decl.
18783 2016-03-16  Marek Polacek  <polacek@redhat.com>
18785         PR c/70093
18786         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
18787         function being thunked if the result type doesn't have fixed size.
18788         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
18789         doesn't have fixed size.
18791 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
18793         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
18794         reporting malformed loop nest.
18796 2016-03-16  Tom de Vries  <tom@codesourcery.com>
18798         PR lto/70187
18799         * ipa-devirt.c (possible_polymorphic_call_targets): Move
18800         nodes.length () == 1 test to before first nodes[0] access.
18802 2016-03-16  Tom de Vries  <tom@codesourcery.com>
18804         PR tree-optimization/68715
18805         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
18806         single_pred_p test.
18808 2016-03-16  Tom de Vries  <tom@codesourcery.com>
18810         PR tree-optimization/68809
18811         * graphite-scop-detection.c (same_close_phi_node): Test if result types
18812         are the same.
18814 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
18815             Sandra Loosemore  <sandra@codesourcery.com>
18817         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
18818         on leaf attribute. Mention ELF interposition problems.
18820 2016-03-16  Alan Modra  <amodra@gmail.com>
18822         PR rtl-optimization/69195
18823         PR rtl-optimization/47992
18824         * ira.c (indirect_jump_optimize): Ignore artificial defs.
18825         Add comments.
18827 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
18829         PR bootstrap/69513
18830         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
18832 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18834         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
18836 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
18838         PR rtl-optimization/70222
18839         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
18840         optimization if mode is different from result_mode, queue up masking
18841         of the result in outer_op.  Formatting fix.
18843         PR middle-end/70239
18844         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
18845         of safe_grow.
18847 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
18849         PR rtl-optimization/69032
18850         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
18851         looping backwards over basic block insns.
18853 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
18855         PR target/66660
18856         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
18857         to non-speculative when propagating trap bits.
18859 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
18861         PR rtl-optimization/63384
18862         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
18863         DEBUG_INSN_P insns.
18865 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
18867         PR target/64411
18868         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
18869         factored out from ...
18870         (sched_analyze_insn): ... here.
18871         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
18872         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
18873         get_implicit_reg_pending_clobbers in it.
18874         (setup_id_reg_sets): Use setup_id_implicit_regs.
18875         (deps_init_id): Ditto.
18877 2016-03-15  Tom de Vries  <tom@codesourcery.com>
18879         PR ipa/70161
18880         * cgraph.c (cgraph_node::get_body): Save, reset and restore
18881         dump_file_name.
18882         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
18883         execute_function_dump.
18884         (execute_one_pass): Don't dump function if it will be dumped after ipa
18885         transform.
18887 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
18889         * genrecog.c (match_pattern_2): If pred is NULL don't call
18890         safe_predicate_mode on it.
18892 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
18894         PR middle-end/70219
18895         * lra-constraints.c (delete_move_and_clobber): Change assertion
18896         to also allow dregno == 0.
18898 2016-03-14  Richard Henderson  <rth@redhat.com>
18900         PR tree-opt/68714
18901         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
18902         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
18903         (reassociate_bb): Use optimize_vec_cond_expr; avoid
18904         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
18905         on vectors.
18907 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
18909         PR target/70083
18910         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
18911         regs.
18912         (lra_create_live_ranges_1): initialize hard register biggest_mode to
18913         VOIDmode.
18914         * lra-constraints.c (split_reg): For hard regs, try to find the
18915         biggest single-register mode used in the function.
18917 2016-03-14  Richard Biener  <rguenther@suse.de>
18919         PR tree-optimization/56365
18920         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
18921         constants to compare against.
18923 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
18925         PR target/70098
18926         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
18927         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
18928         (define_split for the GPR case): Use int_reg_operand instead of
18929         gpc_reg_operand for the output.
18931 2016-03-14  Tom de Vries  <tom@codesourcery.com>
18933         PR tree-optimization/70045
18934         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
18935         create_empty_if_region_on_edge argument.
18937 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
18939         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
18940         (STACK_CHECK_PROTECT): Likewise.
18941         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
18942         (STACK_CHECK_PROTECT): Likewise.
18943         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
18944         (STACK_CHECK_PROTECT): Likewise.
18945         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
18946         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18947         (STACK_CHECK_PROTECT): Likewise.
18949 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
18951         PR rtl-optimization/69307
18952         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
18953         registers in modes that span more than one register.
18955 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
18957         PR target/69614
18958         * lra-constraints.c (delete_move_and_clobber): New.
18959         (remove_inheritance_pseudos): Use it.
18961 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
18963         PR ada/70017
18964         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
18965         the libcall is LCT_THROW.
18966         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
18967         for the checking routine.
18969 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
18971         PR target/70131
18972         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
18973         optimization if we have direct move.
18974         (roundu32<mode>2_fprs): Likewise.
18976 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
18978         PR target/70123
18979         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
18980         be rematerialized.
18981         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
18982         Arguments swapped.  All callers changed.  Take reg_renumber into
18983         account, and Calculate and compare register ranges for hard regs.
18985 2016-03-11  Jeff Law  <law@redhat.com>
18987         PR tree-optimization/70190
18988         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
18989         Handle cases where we can not extract the taken edge, even though we
18990         found a constant value.
18992         PR tree-optimization/64058
18993         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
18994         (num_coalesce_pairs): Move up earlier in file.
18995         (find_coalesce_pair): Initialize the INDEX field for each pair
18996         discovered.
18997         (compare_pairs): No longer sort on the elements in each pair.
18998         Instead break ties with the index of the coalesce pair.
19000 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19002         PR target/70002
19003         * config/aarch64/aarch64-protos.h
19004         (aarch64_save_restore_target_globals): New prototype.
19005         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
19006         Call the above when popping pragma.
19007         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
19008         New function.
19009         (aarch64_set_current_function): Rewrite using the above.
19011 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
19013         PR tree-optimization/70177
19014         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
19015         (extract_ops_from_tree): ... this.  In the 2 argument
19016         overload remove _1 suffix.
19017         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
19018         (extract_ops_from_tree): ... this.
19019         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
19020         Adjust callers.
19021         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
19022         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
19023         extract_ops_from_tree instead of 2 operand one.
19025 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
19027         PR tree-optimization/70013
19028         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
19029         for constant-pool entries.
19031 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
19033         PR rtl-optimization/70174
19034         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
19035         followed by gen_lowpart on force_reg instead of just gen_lowpart.
19037         PR tree-optimization/70169
19038         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
19039         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
19040         for unknown codes.
19042 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
19043             Jakub Jelinek  <jakub@redhat.com>
19045         PR target/70160
19046         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
19047         of uninitialized values.
19049 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19051         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
19052         define_expand.
19053         ("*trunctddd2"): New pattern definition.
19054         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
19055         TD->DD truncation.
19057 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19059         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
19060         definitions for BFP and DFP rounding modes.
19061         ("fixuns_truncdddi2", "fixuns_trunctddi2")
19062         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
19063         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
19064         ("fix_trunctf<mode>2"): Use the new constants instead of magic
19065         numbers.
19067 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19069         * config/s390/constraints.md: Adjust comment.
19070         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
19071         s390_decompose_addrstyle_without_index.
19072         * config/s390/predicates.md (shift_count_or_setmem_operand):
19073         Rename to setmem_operand.
19074         * config/s390/s390-protos.h
19075         (s390_decompose_shift_count): Rename to
19076         s390_decompose_addrstyle_without_index.
19077         * config/s390/s390.c (s390_decompose_shift_count)
19078         (s390_mem_constraint, print_shift_count_operand)
19079         (print_operand_address, print_operand): Rename
19080         s390_decompose_shift_count to
19081         s390_decompose_addrstyle_without_index and rename
19082         print_shift_count_operand to print_addrstyle_operand troughout the
19083         file.
19084         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
19085         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
19086         Rename shift_count_or_setmem_operand to setmem_operand.
19087         * config/s390/vx-builtins.md ("vec_insert<mode>")
19088         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
19089         nonmemory_operand.
19091 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19093         PR target/70168
19094         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
19095         Handle overlapping retval and newval.
19097 2016-03-10  Nick Clifton  <nickc@redhat.com>
19099         PR target/7044
19100         * config/aarch64/aarch64.c
19101         (aarch64_override_options_after_change_1): When forcing
19102         flag_omit_frame_pointer to be true, use a special value that can
19103         be detected if this function is called again, thus preventing
19104         flag_omit_leaf_frame_pointer from being forced to be false.
19106 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19108         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
19109         Set x_flag_omit_leaf_frame_pointer when handling
19110         -momit-leaf-frame-pointer.
19112 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19114         PR lto/69589
19115         * cgraph.c (cgraph_node::dump): Dump split_part and
19116         indirect_call_target.
19117         * cgraph.h (cgraph_node): Add indirect_call_target flag.
19118         * ipa.c (has_addr_references_p): Cleanup.
19119         (is_indirect_call_target_p): New.
19120         (walk_polymorphic_call_targets): Do not mark virtuals that may be
19121         called indirectly as local.
19122         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
19124 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19126         PR ipa/69630
19127         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
19128         on cxa_pure_virtual.
19130 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19132         PR lto/69589
19133         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
19135 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19137         PR lto/69589
19138         * tree.c (need_assembler_name_p): Only record main variant type names.
19140 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
19142         PR target/70113.
19143         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
19144         Always define to 0 or 1.
19145         (TARGET_FIX_ERR_A53_843419): New macro.
19146         * config/aarch64/aarch64-elf-raw.h
19147         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
19148         * config/aarch64/aarch64-linux.h: Likewise.
19149         * config/aarch64/aarch64.c
19150         (aarch64_override_options_after_change_1): Do not default
19151         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
19152         843419 is on.
19153         (aarch64_attributes): Handle fix-cortex-a53-843419.
19154         (aarch64_can_inline_p): Likewise.
19155         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
19157 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
19158             Jakub Jelinek  <jakub@redhat.com>
19160         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
19161         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
19162         DECL_COMMONS if flag_unconstrained_commons is set.
19163         * tree-dfa.c (get_ref_base_and_extent): Likewise.
19164         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
19165         (funconstrained-commons): Document.
19167 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
19169         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
19170         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
19172 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
19174         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
19175         has a proper number of elements.
19177 2016-03-10  Alan Modra  <amodra@gmail.com>
19179         PR rtl-optimization/69195
19180         PR rtl-optimization/47992
19181         * ira.c (recorded_label_ref): Delete.
19182         (update_equiv_regs): Return void.
19183         (indirect_jump_optimize): New function.
19184         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
19185         before regstat_compute_ri.  Don't rebuild_jump_labels here.
19186         Delete update_regstat.
19188 2016-03-10  Richard Biener  <rguenther@suse.de>
19190         PR tree-optimization/70128
19191         * tree-ssa-structalias.c (set_uids_in_ptset): Set
19192         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
19194 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
19196         PR tree-optimization/70152
19197         * tree-sra.c (replace_removed_params_ssa_names): Copy over
19198         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
19200         PR target/70086
19201         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
19202         instead of gen_sse2_loadlpd.
19203         * config/i386/sse.md (*vec_concatv2df): Rename to...
19204         (vec_concatv2df): ... this.
19206         PR tree-optimization/70127
19207         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
19209 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
19211         PR c/68473
19212         PR c++/70105
19213         * diagnostic-show-locus.c (compatible_locations_p): New function.
19214         (layout::layout): Sanitize ranges using compatible_locations_p.
19216 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
19218         PR c/68473
19219         PR c++/70105
19220         * diagnostic-show-locus.c (layout_range::layout_range): Replace
19221         location_range param with three const expanded_locations * and a
19222         bool.
19223         (layout::layout): Replace call to
19224         rich_location::lazily_expand_location with get_expanded_location.
19225         Extract the range and perform location expansion here, passing
19226         the results to the layout_range ctor.
19227         * diagnostic.c (source_range::debug): Delete.
19228         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
19229         of rich_location::get_expanded_location.
19230         * gcc-rich-location.c (get_range_for_expr): Delete.
19231         (gcc_rich_location::add_expr): Reimplement to avoid the
19232         rich_location::add_range overload that took a location_range,
19233         passing a location_t instead.
19235 2016-03-09  Richard Biener  <rguenther@suse.de>
19236         Jakub Jelinek  <jakub@redhat.com>
19238         PR tree-optimization/70138
19239         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
19240         Also skip vect_double_reduction_def.
19242 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
19244         PR target/70049
19245         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
19246         if the operand is "m".
19248 2016-03-09  Nathan Sidwell  <nathan@acm.org>
19250         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
19252 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
19254         * config/i386/i386.c (processor_target_table): Fix cost table
19255         intialization order for znver1.
19257 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
19259         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
19260         - becuase -> because.
19261         * ipa-reference.c (ignore_module_statics): Likewise.
19262         * cgraph.c (cgraph_node::get_body): Likewise.
19263         * ipa-inline.c (early_inliner): Likewise.
19264         * ipa-devirt.c (types_same_for_odr): Likewise.
19265         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
19266         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
19268 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19270         * tree-ssa-math-opts.c: Fix typo in comment.
19272 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
19274         PR target/70110
19275         * config/i386/i386.c (scalar_chain::make_vector_copies,
19276         scalar_chain::convert_reg): Call end_sequence in between
19277         get_insns and emit_conversion_insns rather than after both
19278         calls.
19280 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
19282         PR target/70064
19283         * config/i386/i386.h (machine_function): Add
19284         pc_thunk_call_expanded flag.
19285         (ix86_pc_thunk_call_expanded): New define.
19286         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
19287         (*set_got): Rename insn pattern from set_got.
19288         (*set_got_labelled): Rename inst pattern from set_got_labelled.
19289         * config/i386/i386.c (ix86_compute_frame_layout): Use
19290         ix86_pc_thunk_call_expanded to prevent red-zone.
19292 2016-03-07  Martin Jambor  <mjambor@suse.cz>
19294         * hsa.h (hsa_get_ctor_statements): Declare.
19295         (hsa_get_dtor_statements): Likewise.
19296         (hsa_get_kernel_dispatch_type): Likewise.
19297         * hsa.c (hsa_get_ctor_statements): New function.
19298         (hsa_get_dtor_statements): Likewise.
19299         (hsa_get_kernel_dispatch_type): Likewise.
19300         * hsa-brig.c (hsa_cdtor_statements): Removed.
19301         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
19302         hsa_get_dtor_statements.
19303         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
19304         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
19306 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
19308         * config/arm/arm-cores.def (cortex-r8): New.
19309         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
19310         * config/arm/arm-tune.md: Likewise.
19311         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
19313 2016-03-07  Martin Sebor  <msebor@redhat.com>
19315         PR rtl-optimization/19705
19316         * doc/invoke.texi (Options That Control Optimization): Clarify
19317         -fno-branch-count-reg.
19319 2016-02-26  Richard Biener  <rguenther@suse.de>
19320             Jeff Law  <law@redhat.com>
19322         PR tree-optimization/69740
19323         * cfghooks.c (remove_edge): Request loop fixups if we delete
19324         an edge that might turn an irreducible loop into a natural
19325         loop.
19326         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
19327         Move after definition of loops_state_clear.
19329 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
19331         PR rtl-optimization/69052
19332         * rtlanal.c (commutative_operand_precedence): Set higher precedence
19333         to CONST_WIDE_INT.
19335 2016-03-07  Tom de Vries  <tom@codesourcery.com>
19337         PR tree-optimization/70116
19338         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
19339         is_tm_ending stmts and ubsan/asan internal functions.
19340         (find_duplicate): Use it.  Don't test is_tm_ending here.
19342 2016-03-07  Richard Biener  <rguenther@suse.de>
19344         PR tree-optimization/70115
19345         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
19346         (propagate_constants_for_unrolling): Use replace_uses_by.
19348 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
19350         PR middle-end/69916
19351         * omp-low.c (struct oacc_loop): Add ifns.
19352         (new_oacc_loop_raw): Initialize it.
19353         (finish_oacc_loop): Clear mask & flags if no ifns.
19354         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
19355         (oacc_loop_xform_loop): Add ifns arg & adjust.
19356         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
19358 2016-03-07  Richard Henderson  <rth@redhat.com>
19360         PR rtl-opt/70061
19361         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
19362         (insert_value_copy_on_edge): Likewise.
19364 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19366         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
19368 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19370         PR target/62281
19371         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
19373 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
19375         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
19377 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
19379         Fix sseimul type attribute.
19380         * config/i386/znver1.md
19381         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
19382         znver1_sseimul_avx256_load) : Fix the type attribute.
19383         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
19384         pipe usage and latency.
19386 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
19388         PR c++/70084
19389         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
19390         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
19391         to the right type.
19393 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
19395         PR c/69973
19396         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
19398         PR rtl-optimization/69941
19399         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
19400         the reg share its mode.
19402 2016-03-04  Jeff Law  <law@redhat.com>
19404         PR tree-optimization/69196
19405         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19406         If the both SSA_NAMEs are anonymous, then consider them unassociated
19407         and include the PHI in the statement count.
19409 2016-03-05  Tom de Vries  <tom@codesourcery.com>
19411         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
19412         construct in oacc routine.  Check for oacc region in oacc routine.
19414 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
19416         PR target/70062
19417         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
19418         2016-02-22 changes, instead don't recurse if RECUR is already true.
19419         Don't change *dynamic_check if RECUR.  Adjust recursive caller
19420         to pass true to the new argument.
19421         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
19423         PR target/70059
19424         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
19425         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
19426         fixes.
19427         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
19429 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
19431         PR rtl-optimization/57676
19432         * lra-assigns.c (lra_assign): Guard test for maximum iterations
19433         with flag_checking.
19435 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
19437         * tree-vect-patterns.c (search_type_for_mask): Handle
19438         comparison of booleans.
19440 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
19442         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
19443         Fix @xref usage.
19445         PR debug/69947
19446         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
19447         all other ops that have dw_val_class_die_ref operands,
19448         and DW_OP_GNU_entry_value.
19450 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19452         PR rtl-optimization/69904
19453         * config/arm/arm.c (arm_cannot_copy_insn_p):
19454         Return true for load-exclusive instructions.
19456 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
19458         PR target/70021
19459         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
19460         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
19461         the pattern no matter if it is used just by non-pattern, pattern
19462         or mix thereof.
19463         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
19464         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
19465         oprnd1 def_stmt is in pattern, don't look through it.
19467 2016-03-03  Marek Polacek  <polacek@redhat.com>
19469         PR middle-end/70050
19470         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
19472 2016-03-03  Martin Liska  <mliska@suse.cz>
19474         PR tree-optimization/70043
19475         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
19476         previous statement if we see a debug statement.
19478 2016-03-03  Richard Biener  <rguenther@suse.de>
19480         PR tree-optimization/55936
19481         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
19482         parameter and guard unsafe equivalence use.
19483         (vrp_evaluate_conditional_warnv_with_ops): Always use
19484         safe equivalences but not via the quadratic compare_names
19485         helper.
19487 2016-03-03  Michael Collison  <michael.collison@linaro.org>
19489         PR target/70014
19490         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
19491         for operand 1 to s_register_operand. Change predicate for operand
19492         2 to arm_not_immediate_operand.
19494 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
19496         * doc/tm.texi: Regenerated.
19498 2016-03-02  Richard Henderson  <rth@redhat.com>
19500         PR rtl-opt/67145
19501         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
19502         simplification when all args are positive non-fixed registers.
19504 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19506         * target.def (lra_p): Specify that new ports should use LRA.
19508 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
19510         PR libgomp/69555
19511         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
19512         gimplify_type_sizes the type they refer to.
19513         (omp_notice_variable): Handle reference vars to VLAs.
19514         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
19515         reference to VLA decls in the second pass instead of first pass.
19517 2016-03-02  Tom de Vries  <tom@codesourcery.com>
19519         PR tree-optimization/68659
19520         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
19521         new_expr == NULL_TREE.
19522         (get_new_name): Handle ADDR_EXPR.
19524 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
19526         PR rtl-optimization/69052
19527         * loop-invariant.c (canonicalize_address): New function.
19528         (inv_can_prop_to_addr_use): Check validity of address expression
19529         which is canonicalized by above function.
19531 2016-03-02  Alan Modra  <amodra@gmail.com>
19533         PR ipa/69990
19534         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
19535         larger alignment.
19537 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
19539         PR target/70028
19540         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
19541         (*movhi_internal): Put mask moves from and to memory separately
19542         from moves from/to GPRs.
19544 2016-03-02  Richard Biener  <rguenther@suse.de>
19546         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
19547         GENERIC expressions in GIMPLE.
19549 2016-03-02  Richard Biener  <rguenther@suse.de>
19551         * config/i386/i386.c (type_natural_mode): Fix typo.
19553 2016-03-02  Nick Clifton  <nickc@redhat.com>
19555         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
19557 2016-03-02  Richard Biener  <rguenther@suse.de>
19558             Uros Bizjak  <ubizjak@gmail.com>
19560         PR target/67278
19561         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
19563 2016-03-02  Richard Biener  <rguenther@suse.de>
19565         PR middle-end/67278
19566         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
19568 2016-03-02  Marek Polacek  <polacek@redhat.com>
19570         PR c/67854
19571         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
19572         "is promoted to" warning.
19574 2016-03-01  DJ Delorie  <dj@redhat.com>
19576         * config.gcc: Deprecate mep-*.
19578 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
19580         PR middle-end/70025
19581         * lra-constraints.c (regno_val_use_in): New.
19582         (match_reload): Use it instead of regno_use_in.
19584 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
19586         PR rtl-optimization/70007
19587         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
19588         references present in REG_EQUAL notes attached to non-SET patterns.
19590 2016-03-01  Jeff Law  <law@redhat.com>
19592         PR tree-optimization/69196
19593         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19594         Appropriately clamp the number of statements to copy when the
19595         thread path does not traverse a loop backedge.
19597         PR tree-optimization/69196
19598         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19599         Do count some PHIs in the thread path against the insn count.  Decrease
19600         final statement count by one as the control statement in the last
19601         block will get removed.  Remove special cased code for handling PHIs
19602         in the last block.
19604 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
19606         PR target/70027
19607         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
19608         asm dialect alternatives to explicit GOTPCREL calls.
19610 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
19612         PR ada/70017
19613         * ira.c (do_reload): Issue warning for generic stack checking here...
19614         * reload1.c (reload): ...instead of here and streamline it.
19616 2016-03-01  Nick Clifton  <nickc@redhat.com>
19618         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
19620 2016-03-01  Richard Biener  <rguenther@suse.de>
19622         PR tree-optimization/69983
19623         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
19624         types and fall back to operand_equal_p.
19626 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19628         Revert
19629         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19631         * config/s390/constraints.md ("jm8"): New constraint.
19632         * config/s390/predicates.md ("const_int_8bitset_operand"): New
19633         predicate.
19634         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
19635         into ...
19636         ("*setmem_long<setmem_and>"): New pattern.
19637         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
19638         into ...
19639         ("*setmem_long_31z<setmem_and>"): New pattern.
19640         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
19641         New substitution rules with the required attributes.
19644 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19646         Revert
19647         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19649         * gensupport.c (process_substs_on_one_elem): Split loop to
19650         complete mark_operands_used_in_match_dup on all expressions in the
19651         vector first.
19652         (adjust_operands_numbers): Inline into process_substs_on_one_elem
19653         and remove function.
19655 2016-03-01  Richard Biener  <rguenther@suse.de>
19657         PR middle-end/70022
19658         * fold-const.c (fold_indirect_ref_1): Fix range checking for
19659         vector BIT_FIELD_REF extract.
19661 2016-03-01  Richard Biener  <rguenther@suse.de>
19663         PR tree-optimization/69994
19664         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
19666 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
19668         PR tree-optimization/69956
19669         * tree-vect-stmts.c (supportable_widening_operation): Support
19670         multi-step conversion of boolean vectors.
19671         (supportable_narrowing_operation): Likewise.
19673 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19675         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
19676         anymore.
19678 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19680         * config/s390/subst.md (DSI_VI): New mode iterator.
19681         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
19682         * config/s390/vector.md ("vec_set<mode>"): Move expander before
19683         the insn definition.
19684         ("*vec_set<mode>"): Change predicate and add alternative to
19685         support only either register or const_int operands as element
19686         selector.
19687         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
19688         operands.
19689         ("vec_extract<mode>"): New expander.
19690         ("*vec_extract<mode>"): New insn definition supporting reg and
19691         const_int element selectors.
19692         ("*vec_extract<mode>_plus"): New insn definition supporting
19693         reg+const_int element selectors.
19694         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
19695         following expander+insn definition.
19696         ("<vec_shifts_name><mode>3"): New expander.
19697         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
19699 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19701         * config/s390/s390.md ("*tabort_1"): Change predicate to
19702         nonmemory_operand.  Add a second alternative to cover
19703         register as well as const int operands.
19704         ("*tabort_1_plus"): New pattern definition.
19706 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19708         * config/s390/s390.md ("*ashrdi3_cc_31")
19709         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
19710         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
19711         Merge insn definitions into ...
19712         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
19713         New pattern definition.
19714         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
19715         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
19716         ("*ashr<mode>3_and"): Merge insn definitions into ...
19717         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
19718         New pattern definition.
19719         * config/s390/subst.md ("addr_style_op_cc_subst")
19720         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
19721         substitutions patterns plus attributes.
19722         Add ashiftrt to SUBST iterator.
19724 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19726         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
19727         op2 to nonmemory_operand.
19728         ("*<shift>di3_31", "*<shift>di3_31_and"):
19729         Merge into single pattern definition ...
19730         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
19731         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
19732         pattern definition ...
19733         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
19734         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
19735         iterator.
19737 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19739         * config/s390/predicates.md (const_int_6bitset_operand): New
19740         predicate.
19741         * config/s390/s390.md: Include subst.md.
19742         ("rotl<mode>3"): New expander.
19743         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
19744         ...
19745         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
19746         * config/s390/subst.md: New file.
19748 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19750         * config/s390/s390.md ("op_type", "atype", "length" attributes):
19751         Remove RRR type.  It doesn't really exist.
19752         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
19753         attributes.
19754         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
19755         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
19756         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
19757         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
19758         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
19759         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
19760         `enabled' attribute.
19762 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19764         * gensupport.c (process_substs_on_one_elem): Split loop to
19765         complete mark_operands_used_in_match_dup on all expressions in the
19766         vector first.
19767         (adjust_operands_numbers): Inline into process_substs_on_one_elem
19768         and remove function.
19770 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
19772         PR target/69706
19773         * config/sparc/sparc.c (NWORDS_UP): Rename to...
19774         (CEIL_NWORDS): ...this.  Use CEIL macro.
19775         (compute_fp_layout): Adjust to above renaming.
19776         (function_arg_union_value): Likewise.
19777         (sparc_arg_partial_bytes): Likewise.
19778         (sparc_function_arg_advance): Likewise.
19780 2016-02-29  Jeff Law  <law@redhat.com>
19782         PR tree-optimization/70005
19783         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
19784         where an object with a boolean range is compared against a value
19785         outside [0..1].
19787         PR tree-optimization/69999
19788         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
19789         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
19790         loop cleanups.
19792 2016-02-29  Richard Biener  <rguenther@suse.de>
19794         PR tree-optimization/69994
19795         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
19796         (get_unary_op): Look through nop conversions.
19797         (ops_equal_values_p): New function, look for equality diregarding
19798         nop conversions.
19799         (eliminate_plus_minus_pair): Use ops_equal_values_p
19800         (repropagate_negates): Do not use get_unary_op here.
19802 2016-02-29  Martin Liska  <mliska@suse.cz>
19804         * system.h: Poison ENABLE_CHECKING macro.
19806 2016-02-29  Martin Liska  <mliska@suse.cz>
19808         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
19809         is presented in dump flags.
19810         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
19811         (hsa_regalloc): Likewise.
19813 2016-02-19  Richard Biener  <rguenther@suse.de>
19815         PR tree-optimization/69980
19816         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
19817         permutation of those we need to keep.
19819 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
19821         PR target/69706
19822         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
19823         (NWORDS_UP): ...this
19824         (init_cumulative_args): Minor tweaks.
19825         (sparc_promote_function_mode): Likewise.
19826         (scan_record_type): Delete.
19827         (traverse_record_type): New function template.
19828         (classify_data_t): New structure type.
19829         (classify_registers): New inline function.
19830         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
19831         exhausted.  Instantiate traverse_record_type on classify_registers and
19832         deal with the case of a structure passed in slot #15 with no FP field
19833         in the first word.
19834         (assign_data_t): New structure type.
19835         (compute_int_layout): New static function.
19836         (compute_fp_layout): Likewise.
19837         (count_registers): New inline function.
19838         (assign_int_registers): New static function.
19839         (assign_fp_registers): Likewise.
19840         (assign_registers): New inline function.
19841         (function_arg_record_value_1): Delete.
19842         (function_arg_record_value_2): Likewise.
19843         (function_arg_record_value_3): Likewise.
19844         (function_arg_record_value): Adjust to above changes.  Instantiate
19845         traverse_record_type on count_registers to first count the number of
19846         registers to be used and then on assign_registers to assign them.
19847         (function_arg_union_value): Adjust to above renaming.
19848         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
19849         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
19850         case of a structure passed in slot #15
19851         (sparc_function_arg_advance): Likewise.
19852         (function_arg_padding): Minor tweak.
19854 2016-02-29  Richard Biener  <rguenther@suse.de>
19856         PR tree-optimization/69720
19857         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
19858         the adjustment_def path for possibly vectorized defs.
19859         (vect_create_epilog_for_reduction): Handle vectorized initial
19860         defs properly.
19862 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
19864         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
19866 2016-02-27  Jeff Law  <law@redhat.com>
19868         Revert
19869         2016-02-26  Richard Biener  <rguenther@suse.de>
19870                     Jeff Law  <law@redhat.com>
19872         PR tree-optimization/69740
19873         * cfghooks.c (remove_edge): Request loop fixups if we delete
19874         an edge that might turn an irreducible loop into a natural
19875         loop.
19877 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
19879         PR rtl-optimization/69896
19880         * tree-vect-generic.c (get_compute_type): Avoid single element
19881         vector types.
19883 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
19885         Rename the AArch64 tuning option and related functions to enable the
19886         Newton series for the reciprocal square root to reflect its
19887         approximative characteristic.
19889         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
19890         function to "aarch64_emit_approx_rsqrt".
19891         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
19892         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
19893         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
19894         (xgene1_tunings): Likewise.
19895         (use_rsqrt_p): Likewise.
19896         (aarch64_emit_swrsqrt): Use new function name.
19897         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
19898         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
19899         text explaining this option.
19900         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
19902 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
19904         PR target/69969
19905         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
19906         complain about -mallow-movmisalign without -mvsx if
19907         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
19909 2016-02-26  Joel Sherrill  <joel@rtems.org>
19911         * config.gcc: Add x86_64-*-rtems*.
19912         * config/i386/rtems-64.h: New file.
19914 2016-02-26  Joel Sherrill  <joel@rtems.org>
19916         * config.gcc: Add aarch64-*-rtems*.
19917         * config/aarch64/rtems.h: New file.
19919 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
19921         PR target/69946
19922         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
19923         shift amount using %h.  Add comment.
19925 2016-02-26  Richard Biener  <rguenther@suse.de>
19926             Jeff Law  <law@redhat.com>
19928         PR tree-optimization/69740
19929         * cfghooks.c (remove_edge): Request loop fixups if we delete
19930         an edge that might turn an irreducible loop into a natural
19931         loop.
19933 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19935         PR middle-end/69920
19936         * tree-sra.c (sra_modify_assign): Do not remove loads of
19937         uninitialized aggregates to SSA_NAMEs.
19939 2016-02-26  Richard Henderson  <rth@redhat.com>
19941         PR target/69709
19942         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
19943         pseudo in case the target rtx matches the source of the left
19944         shift.
19946 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19948         PR hsa/69568
19949         * hsa.h (hsa_type_packed_p): Declare.
19950         * hsa.c (hsa_type_packed_p): New function.
19951         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
19952         loads.
19953         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
19954         * hsa-brig.c (emit_basic_insn): Likewise.
19956 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19958         pr hsa/69674
19959         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
19960         pointers.
19961         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
19963 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19965         * hsa.h (is_a_helper): New overload for hsa_op_immed for
19966         hsa_op_with_type operands.
19967         (hsa_unsigned_type_for_type): Declare.
19968         * hsa.c (hsa_unsigned_type_for_type): New function.
19969         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
19970         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
19971         the finalizer.  Do not emit extra move.
19973 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19975         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
19976         atomic operations in private segment.
19978 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19980         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
19981         statements to wi->info.  Also disallow omp simd constructs.
19982         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
19983         for not gridifying.  Dump special string for omp_for.
19985 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19987         PR target/69245
19988         * config/aarch64/aarch64.c (aarch64_set_current_function):
19989         Save/restore target globals when switching to
19990         target_option_default_node.
19992 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19994         PR target/69613
19995         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
19996         Return 0 if !SHIFT_COUNT_TRUNCATED.
19998 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
19999             Eric Botcazou  <ebotcazou@adacore.com>
20001         PR rtl-optimization/69891
20002         * dse.c (scan_insn): If we can't figure out memset arguments
20003         or they are non-constant, call clear_rhs_from_active_local_stores.
20005 2016-02-26  Martin Liska  <mliska@suse.cz>
20007         * doc/extend.texi: Mention clog10, clog10f an clog10l
20008         in Builtins section.
20010 2016-02-26  Martin Liska  <mliska@suse.cz>
20012         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
20013         CHECKING_P.
20014         (resolve_args_picking_1): Likewise.
20015         * dwarf2out.h (struct GTY): Likewise.
20017 2016-02-26  Martin Liska  <mliska@suse.cz>
20019         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
20020         with flag_checking.
20021         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
20023 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
20024             Martin Liska  <mliska@suse.cz>
20026         * doc/install.texi: Mention --enable-valgrind-annotations.
20028 2016-02-26  Richard Biener  <rguenther@suse.de>
20030         PR tree-optimization/69551
20031         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
20032         looking through aliases adjust DECL_PT_UID to refer to the
20033         ultimate alias target.
20035 2016-02-25  Martin Liska  <mliska@suse.cz>
20037         PR middle-end/69919
20038         * alloc-pool.c (after_memory_report): New variable.
20039         * alloc-pool.h (base_pool_allocator ::release): Do not use
20040         the infrastructure if after_memory_report.
20041         * toplev.c (toplev::main): Mark after memory report.
20043 2016-02-25  Richard Biener  <rguenther@suse.de>
20045         PR tree-optimization/48795
20046         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
20048 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
20050         PR driver/68463
20051         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
20052         offloading is enabled and -fopenacc or -fopenmp is specified.
20053         (CRTOFFLOADEND): Likewise.
20054         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
20055         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
20056         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
20057         (offload_objects_file_name): New static var.
20058         (tool_cleanup): Remove offload_objects_file_name file.
20059         (find_offloadbeginend): Replace with ...
20060         (find_crtoffloadtable): ... this.
20061         (run_gcc): Remove offload_argc and offload_argv.
20062         Get offload_objects_file_name from -foffload-objects=... option.
20063         Read names of object files with offload from this file, pass them to
20064         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
20065         don't pass offloadbegin and offloadend to the linker.  Don't pass
20066         offload non-LTO files to the linker, because now they're not claimed.
20068 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
20070         PR ipa/69630
20071         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
20072         on builtin_unreachable.
20074 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
20076         PR rtl-optimization/69896
20077         * regcprop.c: Include cfgrtl.h.
20078         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
20079         than remembered mode, either delete it (if noop_move_p), or
20080         treat like copy_p but not noop_p instruction.
20082 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
20084         PR debug/69705
20085         * dwarf2out.c (gen_variable_die): Work around buggy LTO
20086         - allow NULL decl for Fortran DW_TAG_common_block variables.
20088 2016-02-24  Jason Merrill  <jason@redhat.com>
20090         * common.opt (flifetime-dse): Add -flifetime-dse=1.
20092 2016-02-24  Richard Biener  <rguenther@suse.de>
20093             Jakub Jelinek  <jakub@redhat.com>
20095         PR middle-end/69760
20096         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
20097         conditionally executed ops to well-defined overflow behavior.
20099 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
20101         PR middle-end/69915
20102         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
20103         elements.
20105 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20107         PR rtl-optimization/69886
20108         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
20109         argument.  Use it when checking validity of set instructions.
20110         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
20111         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
20112         callsite.
20113         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
20114         * store-motion.c (find_moveable_store): Update
20115         can_assign_to_reg_without_clobbers_p callsite.
20117 2016-02-24  Richard Biener  <rguenther@suse.de>
20119         PR middle-end/68963
20120         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
20121         bogus check.
20122         (record_nonwrapping_iv): Do not fall back to the low/high bound
20123         for non-constant IV bases if the stmt is not always executed.
20125 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20127         * config/arm/arm-cores.def (cortex-a32): New entry.
20128         * config/arm/arm-tables.opt: Regenerate.
20129         * config/arm/arm-tune.md: Regenerate.
20130         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
20131         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
20132         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
20133         for -mcpu and -mtune.
20135 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20137         PR target/69875
20138         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
20139         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
20140         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
20141         (atomic_loaddi_1): Delete.
20142         (atomic_loaddi): Rewrite expander using the above changes.
20144 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
20146         PR c/69918
20147         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
20148         2 to 3.
20150 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
20151             Richard Biener  <rguenth@suse.de>
20153         PR middle-end/69909
20154         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
20155         set_mem_attributes if tem is SSA_NAME which got expanded
20156         as a MEM.
20158 2016-02-24  Richard Biener  <rguenther@suse.de>
20160         PR tree-optimization/69907
20161         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
20162         end of permutations for BB vectorization.
20164 2016-02-24  Christian Bruel  <christian.bruel@st.com>
20166         * config/arm/arm-c.c (arm_option_override): Initialize
20167         target_option_current_node.
20168         * config/arm/arm.c (arm_pragma_target_parse): Replace
20169         build_target_option_node call by target_option_current_node.
20170         Set target_option_current_node.
20171         Fix comments.
20173 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
20175         PR target/69810
20176         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
20177         define_insn_and_split to define_insn.
20178         (zero_extendqi<mode>2_dot2): Same.
20179         (extendqi<mode>2_dot): Same.
20180         (extendqi<mode>2_dot2): Same.
20182 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
20184         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
20185         and add bypass for AES{D,E} and AESMC pairs.
20186         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
20187         and AESMC pairs.
20189 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
20191         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
20192         series for reciprocal square root in Exynos M1.
20194 2016-02-23  Martin Sebor  <msebor@redhat.com>
20196         PR c/69759
20197         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
20198         __builtin_alloca_with_align.
20200 2016-02-23  Richard Henderson  <rth@redhat.com>
20202         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
20203         (ix86_register_pragmas): Remove __seg_tls.
20204         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
20205         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
20206         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
20207         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
20208         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
20209         * doc/extend.texi (__seg_tls): Remove item.
20211 2016-02-23  Richard Biener  <rguenther@suse.de>
20213         * alloc-pool.h (struct allocation_object): Make id member
20214         conditional on CHECKING_P again.
20215         (get_instance): Adjust.
20216         (base_pool_allocator): Likewise.
20218 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
20220         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
20221         (parallelize_loops): In OpenACC kernels mode, set n_threads to
20222         zero.
20223         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
20224         flag_openacc.
20225         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
20227 2016-02-23  Richard Biener  <rguenther@suse.de>
20229         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
20230         * bitmap.h (struct bitmap_usage): Likewise.
20231         (bitmap_move): Declare.
20232         * bitmap.c (register_overhead): Take size_t argument.
20233         (bitmap_move): New function.
20234         * df-problems.c (df_rd_transfer_function): Use bitmap_move
20235         to properly account overhead.
20236         * tree.c (free_node): Use tree_size.
20238 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
20240         PR c++/69902
20241         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
20242         when inverting comparison.
20244         PR c/69900
20245         * common.opt (Wunreachable-code): Add Warning flag.
20247 2016-02-23  Mark Wielaard  <mjw@redhat.com>
20248             Jakub Jelinek  <jakub@redhat.com>
20250         PR c/69911
20251         * cgraphunit.c (check_global_declaration): Check main_input_filename
20252         and DECL_SOURCE_FILE are not NULL.
20254 2016-02-23  Martin Jambor  <mjambor@suse.cz>
20256         PR tree-optimization/69666
20257         * tree-sra.c (sra_modify_assign): Do not attempt to create
20258         default_def replacements for unscalarizable regions.
20260 2016-02-20  Mark Wielaard  <mjw@redhat.com>
20262         PR c/28901
20263         * cgraphunit.c (check_global_declaration): Check level of
20264         warn_unused_const_variable and main_input_filename.
20265         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
20266         (-Wunused-variable): For C implies -Wunused-const-variable=1.
20267         (-Wunused-const-variable): Explain levels 1 and 2.
20269 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
20271         PR target/69888
20272         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
20273         identical arguments.  Formatting and spelling fixes.
20275         PR target/69885
20276         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
20277         be specified.
20279         PR target/69894
20280         PR target/69895
20281         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
20282         and m68k-devices.def.
20283         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
20284         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
20286 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
20288         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
20289         and HImode registers.
20291 2016-02-22  Richard Biener  <rguenther@suse.de>
20293         PR tree-optimization/69882
20294         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
20295         preserve permutations present because of gaps.
20296         (vect_supported_load_permutation_p): Always continue checking
20297         permutations after vect_attempt_slp_rearrange_stmts.
20299 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
20301         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
20302         min_profitable_estimate, rather than min_profitable_iters.
20304 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
20306         PR target/69885
20307         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
20308         SImode for last match_operand.
20310 2016-02-22  Martin Liska  <mliska@suse.cz>
20312         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
20313         return bitsize - 1 as the return value.
20315 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
20317         PR target/69806
20318         PR target/54089
20319         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
20320         Handle negative shift counts.
20321         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
20322         force_reg on the shift constant.
20323         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
20324         (lshrsi3_d): Handle negative shift counts.
20326 2016-02-22  Richard Biener  <rguenther@suse.de>
20327             Tom de Vries  <tom@codesourcery.com>
20329         * graph.c: Include dumpfile.h.
20330         (print_graph_cfg): Split into three overloads.
20331         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
20333 2016-02-22  Tom de Vries  <tom@codesourcery.com>
20335         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
20336         dump-fn.
20338 2016-02-22  Richard Biener  <rguenther@suse.de>
20340         PR ipa/37448
20341         * ipa-inline-transform.c (inline_call): When not updating
20342         overall summaries adjust self size by the growth estimate.
20343         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
20344         hash-set, do not update overall summaries here.  Renamed from ...
20345         (inline_to_all_callers): ... this which is now wrapping the
20346         above and performing delayed overall summary update.
20347         (early_inline_small_functions): Delay updating of the overall
20348         summary.
20350 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
20352         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
20353         variable.
20355 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
20357         PR driver/69805
20358         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
20359         :%* in %:gt() argument.
20360         (greater_than_spec_func): Adjust for expecting only numbers,
20361         if there are more than two numbers, compare the last two.
20363 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
20365         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
20366         -Wnarrowing with -std.
20368 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
20370         PR c++/69851
20371         * expr.c (store_field): Don't use bit-field path if exp is
20372         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
20373         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
20374         and the assignment can be performed by bitwise copy.  Formatting
20375         fix.
20377         PR middle-end/69838
20378         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
20379         call copy_reg_eh_region_note_forward on before and/or after sequences
20380         and remove note from insn if it no longer can throw.
20382         PR target/69820
20383         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
20384         if TARGET_AVX512BW.
20386 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20388         * config/s390/vector.md: Add missing commutative operand markers
20389         to the patterns which qualify for one.
20390         * config/s390/vx-builtins.md: Likewise.
20392 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20394         * config/s390/vector.md (VI, VI_QHS): Add single element vector
20395         types to mode iterators.
20396         (vec_double): ... and mode attribute.
20397         * config/s390/vx-builtins.md (non_vec_int): Likewise.
20399 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20401         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
20402         Change the predicate of op2 from nonimmediate to general and let
20403         reload fix it if necessary.
20405 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20407         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
20409 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20411         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
20412         mode.
20414 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20416         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
20417         * config/s390/s390.c (s390_expand_vec_movstr): New function.
20418         * config/s390/s390.md ("movstr<P:mode>"): Call
20419         s390_expand_vec_movstr.
20421 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20423         * config/s390/s390.md: Add missing output modifier for operand 1
20424         to print it as address properly.
20426 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20428         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
20429         * config/s390/2964.md: New file.
20430         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
20431         of insn grouping attributes depending on the CPU level.
20432         (s390_get_unit_mask): New function.
20433         (s390_sched_score): Remove the OOO from the scheduling macros.
20434         Add loop to calculate a score for the instruction mix.
20435         (s390_sched_reorder): Likewise plus improve debug output.
20436         (s390_sched_variable_issue): Rename macros as above.  Calculate
20437         the unit distances after actually scheduling an insn.  Improve
20438         debug output.
20439         (s390_sched_init): Clear last_scheduled_unit_distance array.
20440         * config/s390/s390.md: Include 2964.md.
20442 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
20444         PR target/69671
20445         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
20446         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
20447         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
20448         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
20449         *avx512f_<code>v8div16qi2_mask_1): New insns.
20451 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
20453         PR target/68404
20454         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
20455         2016-02-09 change.
20457         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
20458         earlyclobber from target.  Use wF constraint for fused memory
20459         address.
20460         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
20462 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
20463             Martin Liska  <mliska@suse.cz>
20465         PR sanitizer/69863
20466         * cfgexpand.c (asan_sanitize_stack_p): New function.
20467         (partition_stack_vars): Use the function.
20468         (expand_stack_vars): Likewise.
20469         (defer_stack_allocation): Likewise.
20470         (expand_used_vars): Likewise.
20472 2016-02-18  Richard Biener  <rguenther@suse.de>
20474         PR middle-end/69553
20475         * fold-const.c (operand_equal_p): Properly compare offsets for
20476         IMAGPART_EXPR and ARRAY_REF.
20478 2016-02-18  Nick Clifton  <nickc@redhat.com>
20480         PR target/62254
20481         PR target/69610
20482         * config/arm/arm.c (arm_option_override_internal): Disable
20483         interworking if the target does not support thumb instructions.
20484         (arm_reload_in_hi): Handle the case where a register to register
20485         move needs reloading because there is no simple pattern to handle
20486         it.
20487         (arm_reload_out_hi): Likewise.
20489 2016-02-18  Richard Biener  <rguenther@suse.de>
20491         PR middle-end/69854
20492         * match.pd: Don't use fold_binary or fold_unary for folding
20493         constants.
20495 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
20497         PR c++/69850
20498         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
20499         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
20500         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
20501         warn on gimple_no_warning_p statements.
20503 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
20505         * doc/extend.texi (C++ Attributes): Correct description of
20506         warn_unused type attribute.
20508 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20510         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
20511         correct instruction.
20513 2016-02-17  Richard Biener  <rguenther@suse.de>
20515         PR rtl-optimization/69609
20516         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
20517         (find_traces_1_round): When ending a trace update cached priority
20518         of successors.
20519         (bb_to_key): Use cached priority when available.
20520         (copy_bb): Initialize cached priority.
20521         (reorder_basic_blocks_software_trace_cache): Likewise.
20523 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20525         PR target/69161
20526         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
20527         New predicate.
20528         (aarch64_comparison_operator): Break overly long line into two.
20529         (aarch64_comparison_operation): Likewise.
20530         * config/aarch64/aarch64.md (cstorecc4): Use
20531         aarch64_comparison_operator_mode instead of
20532         aarch64_comparison_operator.
20533         (cstore<mode>4): Likewise.
20534         (aarch64_cstore<mode>): Likewise.
20535         (*cstoresi_insn_uxtw): Likewise.
20536         (cstore<mode>_neg): Likewise.
20537         (*cstoresi_neg_uxtw): Likewise.
20539 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20541         PR target/69161
20542         * config/arm/predicates.md (arm_comparison_operator_mode):
20543         New predicate.
20544         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
20545         instead of arm_comparison_operator.
20546         (*mov_negscc): Likewise.
20547         (*mov_notscc): Likewise.
20548         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
20549         (*thumb2_mov_negscc): Likewise.
20550         (*thumb2_mov_negscc_strict_it): Likewise.
20551         (*thumb2_mov_notscc): Likewise.
20552         (*thumb2_mov_notscc_strict_it): Likewise.
20554 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
20556         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
20557         Add missing return.
20559 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
20561         * config/visium/visium.c (machine_libfunc_index): New enum.
20562         (machine_libfuncs): New structure.
20563         (visium_libfuncs): New static variable.
20564         (TARGET_INIT_LIBFUNCS): Define to...
20565         (visium_init_libfuncs): ...this.  New function.
20566         (expand_block_move_4): Use the appropriate libfunc.
20567         (expand_block_move_2): Likewise.
20568         (expand_block_move_1): Likewise.
20569         (expand_block_set_4): Likewise.
20570         (expand_block_set_2): Likewise.
20571         (expand_block_set_1): Likewise.
20572         (visium_trampoline_init): Likewise.
20574 2016-02-17  Nick Clifton  <nickc@redhat.com>
20576         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
20577         TI's devices.csv file as of March 2016.
20579 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
20581         PR Target/48344
20582         * opts-global.c (handle_common_deferred_options): Introduce and
20583         initialize two global variables to remember command-line options
20584         specifying a stack-limiting register.
20585         * opts.h: Add extern declarations of the two new global variables.
20586         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
20587         variable based on the values of the two new global variables.
20589 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20591         PR c/69835
20592         * common.opt (Wnonnull-compare): New warning.
20593         * doc/invoke.texi (-Wnonnull): Remove text about comparison
20594         of arguments against NULL.
20595         (-Wnonnull-compare): Document.
20596         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
20597         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
20598         * passes.def (pass_warn_nonnull_compare): Add.
20599         * gimple-ssa-nonnull-compare.c: New file.
20601 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20603         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
20604         AARCH64_EXTRA_TUNE_RECIP_SQRT.
20606 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20608         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
20609         reciprocal sqrt for -mlow-precision-recip-sqrt.
20611 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20612             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20614         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
20615         always use lane loads to construct non-constant vectors.
20617 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20619         * config/aarch64/aarch64.md
20620         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
20621         constraints for operand 3.
20622         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
20624 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20625             Richard Biener  <rguenther@suse.de>
20627         PR tree-optimization/69820
20628         * tree-vect-patterns.c (type_conversion_p): Return false if
20629         *orig_type is unsigned single precision or boolean.
20630         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
20631         Formatting fix.
20633 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20635         PR rtl-optimization/69764
20636         PR rtl-optimization/69771
20637         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
20638         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
20640 2016-02-16  Richard Biener  <rguenther@suse.de>
20642         PR tree-optimization/69776
20643         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
20644         sets from caller.
20645         (indirect_refs_may_alias_p): Likewise.
20646         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
20647         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
20648         according to tbaa_p.
20649         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
20650         (optimize_stmt): For redundant store discovery do not allow tbaa.
20652 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
20654         PR tree-optimization/69714
20655         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
20656         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
20658 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
20660         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
20661         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
20662         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
20663         * config/arc/arc.c (arc_init): Check FPU options.
20664         (get_arc_condition_code): Handle new CC_FPU* modes.
20665         (arc_select_cc_mode): Likewise.
20666         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
20667         register pair only. Allow access for ARCv2 accumulator.
20668         (gen_compare_reg): Whenever we have FPU support use FPU compare
20669         instructions.
20670         (arc_reorg): Don't generate brcc insns when FPU compare
20671         instructions are involved.
20672         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
20673         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
20674         floating point emulation.
20675         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
20676         (REVERSE_CONDITION): Add new CC_FPU* modes.
20677         (TARGET_FP_SP_BASE): Define.
20678         (TARGET_FP_DP_BASE): Likewise.
20679         (TARGET_FP_SP_FUSED): Likewise.
20680         (TARGET_FP_DP_FUSED): Likewise.
20681         (TARGET_FP_SP_CONV): Likewise.
20682         (TARGET_FP_DP_CONV): Likewise.
20683         (TARGET_FP_SP_SQRT): Likewise.
20684         (TARGET_FP_DP_SQRT): Likewise.
20685         (TARGET_FP_DP_AX): Likewise.
20686         * config/arc/arc.md (ARCV2_ACC): New constant.
20687         (type): New fpu type attribute.
20688         (SDF): Conditional iterator.
20689         (cstore<mode>, cbranch<mode>): Change expand condition.
20690         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
20691         handles FPU/FPX cases as well.
20692         * config/arc/arc.opt (mfpu): New option.
20693         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
20694         Renamed.
20695         (adddf3, muldf3, subdf3): Removed.
20696         * config/arc/predicates.md (proper_comparison_operator): Recognize
20697         CC_FPU* modes.
20698         * config/arc/fpu.md: New file.
20699         * doc/invoke.texi (ARC Options): Document mfpu option.
20701 2016-02-16  Richard Biener  <rguenther@suse.de>
20703         PR rtl-optimization/69291
20704         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
20705         noce_operand_ok check.
20707 2016-02-16  Tom de Vries  <tom@codesourcery.com>
20709         PR lto/67709
20710         * omp-low.c (simd_clone_create): Remove call to
20711         symtab->call_cgraph_insertion_hooks.
20713 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20715         PR tree-optimization/69802
20716         * tree-ssa-reassoc.c (update_range_test): If op is
20717         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
20718         op == 1 test of precision 1 integral op, otherwise handle
20719         that case as op itself.  Fix up formatting.
20720         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
20721         up formatting.
20723 2016-02-16  Richard Biener  <rguenther@suse.de>
20725         PR tree-optimization/69586
20726         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
20727         types for conversion sources.
20729 2016-02-16  Richard Biener  <rguenther@suse.de>
20731         PR middle-end/69801
20732         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
20733         mask OEP_ADDRESS_OF.
20735 2016-02-16  Alan Modra  <amodra@gmail.com>
20737         PR target/68973
20738         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
20739         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
20740         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
20741         (p8_mtvsrwz): New.
20742         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
20743         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
20744         (p8_fmrgow_<mode>): Likewise.
20745         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
20746         changes.
20747         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
20748         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
20749         to use movdi_internal64.  Remove op0_di.
20750         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
20752 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
20754         Add support for the FCCMP insn types
20756         * config/aarch64/aarch64.md (fccmp): Change insn type.
20757         (fccmpe): Likewise.
20758         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
20759         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
20760         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
20761         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
20762         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
20763         * config/arm/types.md (fccmps): Add new insn type.
20764         (fccmpd): Likewise.
20766 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20768         * alias.c (get_alias_set): Fix a typo in comment.
20770 2016-02-15  Richard Biener  <rguenther@suse.de>
20772         PR tree-optimization/69595
20773         * match.pd: Complete range test simplification to true.
20775 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
20777         PR rtl-optimization/69648
20778         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
20779         pic_offset_table_rtx.
20781         PR rtl-optimization/69752
20782         * ira.c (update_equiv_regs): When looking for more than a single SET,
20783         also take other side effects into account.
20785 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
20787         * config/s390/s390.c (s390_function_profiler): Add a new sequence
20788         for z900+ CPUs in 31-bit mode.
20790 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
20792         * common/config/s390/s390-common.c (s390_supports_split_stack):
20793         New function.
20794         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
20795         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
20796         * config/s390/s390.c (struct machine_function): New field
20797         split_stack_varargs_pointer.
20798         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
20799         in s390_emit_prologue.
20800         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
20801         vararg pointer.
20802         (morestack_ref): New global.
20803         (SPLIT_STACK_AVAILABLE): New macro.
20804         (s390_expand_split_stack_prologue): New function.
20805         (s390_live_on_entry): New function.
20806         (s390_va_start): Use split-stack vararg pointer if appropriate.
20807         (s390_asm_file_end): Emit the split-stack note sections.
20808         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
20809         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
20810         (UNSPECV_SPLIT_STACK_CALL): New unspec.
20811         (UNSPECV_SPLIT_STACK_DATA): New unspec.
20812         (split_stack_prologue): New expand.
20813         (split_stack_space_check): New expand.
20814         (split_stack_data): New insn.
20815         (split_stack_call): New expand.
20816         (split_stack_call_*): New insn.
20817         (split_stack_cond_call): New expand.
20818         (split_stack_cond_call_*): New insn.
20820 2016-02-15  Richard Biener  <rguenther@suse.de>
20822         PR tree-optimization/69783
20823         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
20824         Add trivially correct cases.
20826 2016-02-15  Tom de Vries  <tom@codesourcery.com>
20828         PR lto/69655
20829         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
20830         do_force_output.
20831         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
20833 2016-02-15  Richard Biener  <rguenther@suse.de>
20835         PR tree-optimization/69776
20836         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
20837         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
20838         indicate whether we can use TBAA to disambiguate against stores.
20839         Use alias-set zero if not.
20840         (visit_reference_op_store): Do not use TBAA when looking up
20841         redundant stores.
20842         * tree-ssa-pre.c (compute_avail): Use TBAA here.
20843         (eliminate_dom_walker::before_dom_children): But not when looking
20844         up redundant stores.
20846 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
20848         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
20850 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20852         *  config/i386/znver1.md
20853         (znver1_pop, znver1_pop_mem,
20854         znver1_load_imov_double_store,
20855         znver1_load_imov_direct_store,
20856         znver1_load_imov_direct_load,
20857         znver1_load_imov_double_load): Add new.
20858         (znver1_insn, znver1_insn_load): Add icmov type.
20859         (znver1_sseavx_fma,
20860         znver1_sseavx_fma_load,
20861         znver1_avx256_fma,
20862         znver1_avx256_fma_load): Fix pipe usage.
20864 2016-02-14  Alan Modra  <amodra@gmail.com>
20866         PR target/68973
20867         * reload.c (find_reloads_address_1): For pre/post-inc/dec
20868         with an invalid hard reg, reload just the reg not the entire
20869         pre/post-inc/dec address expression.
20871 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
20873         PR target/67260
20874         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
20875         fixed R1_REG scratch reg.
20876         (sibcall_value_pcrel_fdpic): Likewise.
20878 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
20880         PR target/67636
20881         PR target/64345
20882         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
20884 2016-02-12  Walter Lee  <walt@tilera.com>
20886         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
20887         * config/tilegx/t-tilegx: Likewise.
20889 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
20891         PR other/69554
20892         * diagnostic-show-locus.c (struct line_span): New struct.
20893         (layout::get_first_line): Delete.
20894         (layout::get_last_line): Delete.
20895         (layout::get_num_line_spans): New member function.
20896         (layout::get_line_span): Likewise.
20897         (layout::print_heading_for_line_span_index_p): Likewise.
20898         (layout::get_expanded_location): Likewise.
20899         (layout::calculate_line_spans): Likewise.
20900         (layout::m_first_line): Delete.
20901         (layout::m_last_line): Delete.
20902         (layout::m_line_spans): New field.
20903         (layout::layout): Update comment.  Replace m_first_line and
20904         m_last_line with m_line_spans, replacing their initialization
20905         with a call to calculate_line_spans.
20906         (diagnostic_show_locus): When printing source lines and
20907         annotations, rather than looping over a single span
20908         of lines, instead loop over each line_span within
20909         the layout, with an inner loop over the lines within them.
20910         Call the context's start_span callback when changing line spans.
20911         * diagnostic.c (diagnostic_initialize): Initialize start_span.
20912         (diagnostic_build_prefix): Break out the building of the location
20913         part of the string into...
20914         (diagnostic_get_location_text): ...this new function, rewriting
20915         it from nested ternary expressions to a sequence of "if"
20916         statements.
20917         (default_diagnostic_start_span_fn): New function.
20918         * diagnostic.h (diagnostic_start_span_fn): New typedef.
20919         (diagnostic_context::start_span): New field.
20920         (default_diagnostic_start_span_fn): New prototype.
20922 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
20924         PR driver/69779
20925         * gcc.c (driver::finalize): Fix cleanup of "specs".
20927 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
20929         PR driver/69265
20930         PR driver/69453
20931         * gcc.c (driver::driver): Initialize m_option_suggestions.
20932         (driver::~driver): Clean up m_option_suggestions.
20933         (suggest_option): Convert to...
20934         (driver::suggest_option): ...this, and split out into
20935         driver::build_option_suggestions and find_closest_string.
20936         (driver::build_option_suggestions): New function, from
20937         first half of suggest_option.  Special-case
20938         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
20939         the sanitizer_opts array.  For options of enum types, add the
20940         various enum values to the candidate strings.
20941         (driver::handle_unrecognized_options): Remove "const".
20942         * gcc.h (driver::handle_unrecognized_options): Likewise.
20943         (driver::build_option_suggestions): New decl.
20944         (driver::suggest_option): New decl.
20945         (driver::m_option_suggestions): New field.
20946         * opts-common.c (add_misspelling_candidates): New function.
20947         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
20948         and make non-static.
20949         * opts.h (sanitizer_opts): New array decl.
20950         (add_misspelling_candidates): New function decl.
20951         * spellcheck.c (find_closest_string): New function.
20952         * spellcheck.h (find_closest_string): New function decl.
20954 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
20956         PR rtl-optimization/69764
20957         PR rtl-optimization/69771
20958         * optabs.c (expand_binop_directly): For shift_optab_p, force
20959         convert_modes with VOIDmode if xop1 has VOIDmode.
20961 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
20963         PR target/69729
20964         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
20965         to correctly determine instrumentation thunks.
20967 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
20969         PR ipa/69241
20970         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
20971         type by reference, force lhs on the call.
20973         PR ipa/68672
20974         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
20975         Compute retval and retbnd early in all cases if split_part_return_p
20976         and return_bb is not EXIT.  Remove all clobber stmts and reset
20977         all debug stmts that refer to SSA_NAMEs defined in split part,
20978         except if it is retval, in that case replace the old retval with the
20979         lhs of the call to the split part.
20981 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
20983         revert:
20984         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
20986         PR middle-end/66726
20987         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
20988         whose result is used in PHI.
20989         (maybe_optimize_range_tests): Likewise.
20990         (final_range_test_p): Likweise.
20992 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
20994         PR middle-end/66726
20995         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
20996         whose result is used in PHI.
20997         (maybe_optimize_range_tests): Likewise.
20998         (final_range_test_p): Likweise.
21000 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
21002         * cgraph.c: Spelling fixes - behaviour -> behavior and
21003         neighbour -> neighbor.
21004         * target.def: Likewise.
21005         * sel-sched.c: Likewise.
21006         * config/mips/mips.c: Likewise.
21007         * config/arc/arc.md: Likewise.
21008         * config/arm/cortex-a57.md: Likewise.
21009         * config/arm/arm.c: Likewise.
21010         * config/arm/neon.md: Likewise.
21011         * config/arm/arm-c.c: Likewise.
21012         * config/vms/vms-c.c: Likewise.
21013         * config/s390/s390.c: Likewise.
21014         * config/i386/znver1.md: Likewise.
21015         * config/i386/i386.c: Likewise.
21016         * config/ia64/hpux-unix2003.h: Likewise.
21017         * config/msp430/msp430.md: Likewise.
21018         * config/rx/rx.c: Likewise.
21019         * config/rx/rx.md: Likewise.
21020         * config/aarch64/aarch64-simd.md: Likewise.
21021         * config/aarch64/aarch64.c: Likewise.
21022         * config/nvptx/nvptx.c: Likewise.
21023         * config/bfin/bfin.c: Likewise.
21024         * config/cris/cris.opt: Likewise.
21025         * config/rs6000/rs6000.c: Likewise.
21026         * target.h: Likewise.
21027         * spellcheck.c: Likewise.
21028         * ira-build.c: Likewise.
21029         * tree-inline.c: Likewise.
21030         * builtins.c: Likewise.
21031         * lra-constraints.c: Likewise.
21032         * explow.c: Likewise.
21033         * hwint.h: Likewise.
21034         * targhooks.c: Likewise.
21035         * tree-vect-data-refs.c: Likewise.
21036         * expr.c: Likewise.
21037         * doc/tm.texi: Likewise.
21038         * doc/extend.texi: Likewise.
21039         * doc/install.texi: Likewise.
21040         * doc/md.texi: Likewise.
21041         * tree-ssa-tail-merge.c: Likewise.
21042         * sched-int.h: Likewise.
21043         * match.pd: Likewise.
21044         * sched-ebb.c: Likewise.
21045         * target.def (omit_struct_return_reg): Likewise.
21046         * gimple-ssa-isolate-paths.c: Likewise.
21047         (find_implicit_erroneous_behaviour): Renamed to...
21048         (find_implicit_erroneous_behavior): ... this.
21049         (find_explicit_erroneous_behaviour): Renamed to...
21050         (find_explicit_erroneous_behavior): ... this.
21051         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
21053 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
21055         PR rtl-optimization/64682
21056         PR rtl-optimization/69567
21057         PR rtl-optimization/69737
21058         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
21059         in I2 as well, just lose it.
21061 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21063         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
21064         New variable.
21065         (aarch64_last_printed_tune_string): Likewise.
21066         (aarch64_declare_function_name): Only output .arch assembler
21067         directive if it will be different from the previously output
21068         directive.  Same for .tune comment but only if -dA is set.
21069         (aarch64_start_file): New function.
21070         (TARGET_ASM_FILE_START): Define.
21072 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
21074         PR plugins/69758
21075         * Makefile.in (PLUGIN_HEADERS): Add params.list.
21077 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
21079         PR target/65313
21080         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
21081         -Wmaybe-uninitialized warning.
21083 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
21085         PR target/69713
21086         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
21088 2016-02-11  Richard Biener  <rguenther@suse.de>
21090         PR rtl-optimization/69291
21091         * ifcvt.c (noce_try_store_flag_constants): Do not allow
21092         subexpressions affected by changing the result.
21094 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
21096         PR target/69148
21097         * lra-constraints.c (curr_insn_transform): Find in/out operands
21098         for secondary memory moves.  Update dups.
21100 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
21102         PR tree-optimization/69652
21103         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
21104         to nested loop, did source re-formatting, skip debug statements,
21105         add check on statement with volatile operand, remove dead scalar
21106         statements.
21108 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
21109             Patrick Palka  <ppalka@gcc.gnu.org>
21111         PR ipa/69241
21112         PR c++/69649
21113         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
21114         calls if the return type is TREE_ADDRESSABLE.
21115         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
21116         * ipa-split.c (split_function): Fix doubled "we" in comment.
21117         Use void return type for the split part even if
21118         !split_point->split_part_set_retval.
21120 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
21122         PR tree-optimization/68021
21123         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
21124         when computing the value of biv cand by itself.
21126 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
21128         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
21129         (cortexa57_tunings): Likewise.
21130         (cortexa72_tunings): Likewise.
21131         (arch_macro_fusion_pair_p): Add support for AES fusion.
21132         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
21133         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
21134         Allow virtual registers before reload so early scheduling works.
21135         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
21136         correct latency and pipeline.
21137         (cortex_a57_crypto_complex): Likewise.
21138         (cortex_a57_crypto_xor): Likewise.
21139         (define_bypass): Add AES bypass.
21141 2016-02-10  Richard Biener  <rguenther@suse.de>
21143         PR tree-optimization/69726
21144         * passes.def: Add DCE pass before late uninit.
21145         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
21146         really fixup if-conversions job.
21148 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
21150         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
21151         (arm_cortex_a57_tune): Likewise.
21152         (aarch_macro_fusion_pair_p): Add support for AES fusion.
21153         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
21155 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
21157         * timevar.def (TV_PHASE_DBGINFO): Delete.
21158         (TV_PHASE_CHECK_DBGINFO): Likewise.
21159         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
21161 2016-02-10  Richard Biener  <rguenther@suse.de>
21163         PR tree-optimization/69719
21164         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21165         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
21167 2016-02-09  Andrew Pinski  <apinski@cavium.com>
21169         PR tree-opt/69282
21170         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
21171         get_vcond_mask_icode returns false.
21173 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
21175         PR target/68404
21176         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
21177         an ADDIS that adds a pointer to a large constant that sets the
21178         upper16 bits with a load operation.
21180 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
21182         PR target/68532
21183         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
21184         order.
21185         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
21186         endian.
21187         (vzipq_s16): Likewise.
21188         (vzipq_s32): Likewise.
21189         (vzipq_f32): Likewise.
21190         (vzipq_u8): Likewise.
21191         (vzipq_u16): Likewise.
21192         (vzipq_u32): Likewise.
21193         (vzipq_p8): Likewise.
21194         (vzipq_p16): Likewise.
21196 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
21198         PR target/68532
21199         * config/arm/arm.c (neon_endian_lane_map): New function.
21200         (neon_vector_pair_endian_lane_map): New function.
21201         (arm_evpc_neon_vuzp): Allow for big endian lane order.
21202         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
21203         endian.
21204         (vuzpq_s16): Likewise.
21205         (vuzpq_s32): Likewise.
21206         (vuzpq_f32): Likewise.
21207         (vuzpq_u8): Likewise.
21208         (vuzpq_u16): Likewise.
21209         (vuzpq_u32): Likewise.
21210         (vuzpq_p8): Likewise.
21211         (vuzpq_p16): Likewise.
21213 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
21215         PR target/69634
21216         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
21217         debug insns.
21219 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
21221         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
21222         truncate const_int operand 1 to QImode.
21224 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
21226         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
21227         corresponding to an abnormal edge.
21229 2016-02-09  Tom de Vries  <tom@codesourcery.com>
21231         PR tree-optimization/69599
21232         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
21233         function.
21234         (find_func_aliases_for_builtin_call, find_func_clobbers)
21235         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
21236         partition.
21238 2016-02-09  Richard Biener  <rguenther@suse.de>
21240         PR tree-optimization/69715
21241         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
21242         LHS on calls as non-rewritable.
21244 2016-02-09  Tom de Vries  <tom@codesourcery.com>
21246         PR lto/69707
21247         * lto-wrapper.c (append_diag_options): New function.
21248         (compile_offload_image): Call append_diag_options.
21250 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
21252         PR other/69722
21253         * doc/extend.texi (Flag Output Operands): Correct sectioning.
21254         Minor copy-edit to fix verb tenses.
21256 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
21258         PR tree-optimization/69209
21259         * ipa-split.c (split_function): If split part is not
21260         returning retval, retval has gimple type but is not
21261         gimple value, force it into a SSA_NAME first.
21263 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
21265         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
21266         outdated section.
21268 2016-02-08  Jason Merrill  <jason@redhat.com>
21270         PR c++/69631
21271         * convert.c (convert_to_integer_1): Check dofold on truncation
21272         distribution.
21273         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
21274         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
21275         Rename from *_nofold.
21276         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
21277         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
21279 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
21281         PR target/60410
21282         * tree.c (build_common_tree_nodes): Remove short_double argument.
21283         All callers changed.
21284         * tree.h (build_common_tree_nodes): Adjust declaration.
21285         * doc/invoke.texi (-fshort-double): Remove documentation.
21286         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
21287         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
21288         * lto-wrapper.c (merge_and_complain, append_compiler_options)
21289         (append_linker_options): Don't handle OPT_fshort_double.
21291         PR rtl-optimization/68730
21292         * lra-remat.c (insn_to_cand_activation): New static variable.
21293         (lra_remat): Allocate and free it.
21294         (create_cand): New arg activation. Initialize a field in
21295         insn_to_cand_activation if it is nonnull.
21296         (create_cands): Pass the activation insn to create_cand when making
21297         a candidate involving an output reload.  Reorganize code a little.
21298         (do_remat): Keep track of active status of candidates in a separate
21299         bitmap.
21301 2016-02-08  Richard Biener  <rguenther@suse.de>
21303         PR tree-optimization/69719
21304         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21305         Properly use absolute of the difference of the two offsets to
21306         compare or adjust the segment length.
21308 2016-02-08  Richard Biener  <rguenther@suse.de>
21309             Jeff Law  <law@redhat.com>
21311         PR target/68273
21312         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
21313         types for anonymous SSA names.
21315 2016-02-08   Richard Biener  <rguenther@suse.de>
21317         PR rtl-optimization/69274
21318         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
21320 2016-02-08  Jeff Law  <law@redhat.com>
21322         PR tree-optimization/65917
21323         * tree-ssa-dom.c (record_temporary_equivalences): Record both
21324         equivalences from if (x == y) style conditionals.
21325         (loop_depth_of_name): Remove.
21326         (record_equality): Remove loop depth check.
21327         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
21328         (const_and_copies::record_const_or_copy_raw): New member function.
21329         * tree-ssa-scopedtables.c
21330         (const_and_copies::record_const_or_copy_raw): New, factored out of
21331         (const_and_copies::record_const_or_copy): Call new member function.
21333 2016-02-05  Jeff Law  <law@redhat.com>
21335         PR tree-optimization/68541
21336         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
21337         (count_stmts_in_block): New function.
21338         (poor_ifcvt_candidate_code): Likewise.
21339         (is_feasible_trace): Add some heuristics to determine when path
21340         splitting is profitable.
21341         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
21342         is a diamond with a single exit.
21344 2016-02-05  Martin Sebor  <msebor@redhat.com>
21346         PR c++/69662
21347         * doc/invoke.texi: Update -Wplacement-new to take an optional
21348         argument.
21350 2016-02-06  Richard Henderson  <rth@redhat.com>
21352         PR c/69643
21353         * tree.c (tree_nop_conversion_p): Do not strip casts into or
21354         out of non-standard address spaces.
21356 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
21358         PR rtl-optimization/69691
21359         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
21361 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
21363         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
21364         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
21365         (*ieee128_mfvsrd_64bit): Likewise.
21366         (*ieee128_mfvsrd_32bit): Likewise.
21368 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
21370         PR target/69369
21371         Revert r232560:
21372         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
21374         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
21375         instrumented_version.
21377 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
21379         * doc/invoke.texi (Optimize Options): In table of --param options
21380         rename second occurrence of tracer-min-branch-ratio to
21381         tracer-min-branch-probability, rename
21382         tracer-min-branch-ratio-feedback to
21383         tracer-min-branch-probability-feedback and clarify description,
21384         rename sched-spec-state-edge-prob-cutoff to
21385         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
21386         to selsched-insns-to-rename, rename lto-minpartition to
21387         lto-min-partition, delete reorder-blocks-duplicate and
21388         reorder-blocks-duplicate-feedback.
21390 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21392         * config/s390/s390.c (s390_register_info_set_ranges): Remove
21393         superfluous loops.
21395 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21397         * doc/extend.texi: S/390: Correct some typos.
21399 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21401         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
21403 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21405         PR target/69625
21406         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
21407         (s390_register_info_gprtofpr): Use new macros above.
21408         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
21409         its name.
21410         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
21411         its name.  Adjust restore and save gpr ranges.
21412         (s390_register_info_set_ranges): New function.
21413         (s390_register_info): Use new macros above.  Call
21414         s390_register_info_set_ranges.
21415         (s390_optimize_register_info): Likewise.
21416         (s390_hard_regno_rename_ok): Use new macros.
21417         (s390_hard_regno_scratch_ok): Likewise.
21418         (s390_emit_epilogue): Likewise.
21419         (s390_can_use_return_insn): Likewise.
21420         (s390_optimize_prologue): Likewise.
21421         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
21423 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
21425         PR bootstrap/69677
21426         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
21427         alignment fixes.
21428         (ix86_option_override_internal): Disable TARGET_STV even for
21429         -m{incoming,preferred}-stack-boundary=3.
21431 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21433         * config.gcc: Mark deprecated rtems targets as obsolete.
21435 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
21437         PR rtl-optimization/64682
21438         PR rtl-optimization/69567
21439         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
21440         before I2 only if the register is both used and set in I2.
21442 2016-02-04  DJ Delorie  <dj@redhat.com>
21444         * config/msp430/msp430.c (msp430_start_function): Add function type.
21446 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
21448         PR fortran/69368
21449         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
21451 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
21453         PR rtl-optimization/69577
21454         Revert:
21455         2015-10-29  Richard Henderson  <rth@redhat.com>
21457         PR target/68124
21458         PR rtl-opt/67609
21459         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
21460         sse check to the exact conditions of PR 67609.
21462 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
21464         PR target/69667
21465         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
21466         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
21467         not allowed into the traditional Altivec registers.
21468         (movtd_64bit_nodm): Likewise.
21469         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
21471 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
21473         * config/aarch64/cortex-a57-fma-steering.c
21474         (aarch64_register_fma_steering): Remove "static" from arguments
21475         to register_pass.
21477 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
21479         PR target/69619
21480         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
21481         twice when complex.
21483 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
21485         * doc/invoke.texi: Delete -mno-fma4.
21487 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
21489         PR rtl-optimization/69577
21490         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
21491         (find_subregs_of_mode): Update accordingly.  Iterate over partial
21492         definitions.
21494 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
21496         * config/arm/arm-protos.h (neon_reinterpret): Remove.
21497         * config/arm/arm.c (neon_reinterpret): Remove.
21498         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
21499         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
21500         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
21501         vreinterpretti): Remove.
21502         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
21503         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
21504         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
21505         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
21506         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
21507         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
21508         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
21509         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
21510         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
21511         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
21512         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
21513         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
21514         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
21515         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
21516         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
21517         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
21518         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
21519         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
21520         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
21521         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
21522         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
21523         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
21524         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
21525         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
21526         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
21527         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
21528         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
21529         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
21530         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
21531         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
21532         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
21533         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
21534         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
21535         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
21536         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
21537         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
21538         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
21539         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
21540         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
21541         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
21542         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
21543         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
21544         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
21545         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
21546         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
21547         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
21548         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
21549         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
21550         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
21551         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
21552         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
21553         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
21554         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
21555         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
21556         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
21557         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
21558         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
21559         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
21560         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
21561         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
21562         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
21563         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
21564         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
21565         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
21566         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
21567         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
21568         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
21569         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
21570         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
21571         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
21572         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
21573         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
21574         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
21575         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
21576         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
21577         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
21578         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
21579         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
21580         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
21581         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
21582         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
21583         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
21584         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
21585         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
21586         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
21587         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
21588         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
21589         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
21590         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
21591         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
21592         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
21593         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
21594         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
21595         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
21596         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
21597         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
21598         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
21599         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
21600         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
21601         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
21602         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
21603         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
21604         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
21606 2016-02-04  Martin Liska  <mliska@suse.cz>
21608         PR sanitizer/69276
21609         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
21610         that are gimple_store_p.
21611         (maybe_instrument_call): Likewise.
21613 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
21615         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
21616         register scaling out of memory reference and comment why.
21618 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21620         PR target/65932
21621         PR target/67714
21622         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
21623         folding the source of a SET.
21625 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21627         PR target/65932
21628         PR target/67714
21629         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
21630         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
21632 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
21634         PR target/65932
21635         PR target/67714
21636         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
21637         HImode.
21639 2016-02-04  Christian Bruel  <christian.bruel@st.com>
21641         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
21642         * config/arm/arm.c (arm_set_current_function): Likewise.
21644 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
21645             Ilya Enkovich  <enkovich.gnu@gmail.com>
21646             H.J. Lu  <hongjiu.lu@intel.com>
21648         PR target/69454
21649         * config/i386/i386.c (convert_scalars_to_vector): Remove
21650         stack alignment fixes.
21651         (ix86_option_override_internal): Disable TARGET_STV if stack
21652         might not be aligned enough.
21653         (ix86_minimum_alignment): Assert that TARGET_STV is false.
21655 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
21657         * config/i386/x86-tune.def: Disable default prefetching
21658         for -march=znver1.
21660 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
21661             Vladimir Makarov  <vmakarov@redhat.com>
21663         PR target/69461
21664         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
21665         in validating fused toc addresses.
21667 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
21669         PR c/69627
21670         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
21671         range->m_caret fields if range->m_show_caret_p is false.
21673         PR target/69644
21674         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
21675         Force oldval into register if it does not satisfy reg_or_short_operand
21676         predicate.  Fix up formatting.
21678 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
21679             Alexandre Oliva  <aoliva@redhat.com>
21681         PR target/69461
21682         * lra-constraints.c (simplify_operand_subreg): Check additionally
21683         address validity after potential reloading.
21684         (process_address_1): Check insns validity.  In case of failure do
21685         nothing.
21687 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
21689         PR target/69118
21690         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
21691         Fix target.
21693 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
21695         * wide-int.cc (canonize_uhwi): New function.
21696         (wi::divmod_internal): Use it.
21698 2016-02-02  James Norris  <jnorris@codesourcery.com>
21700         * gimplify.c (omp_notice_variable): Add usage check.
21702 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
21704         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
21705         like LE, GE, LT, GT when emitting relational operator.
21707 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
21709         * ira-costs.c (find_costs_and_classes): Add extra argument.
21710         * target.def (ira_change_pseudo_allocno_class): Add parameter.
21711         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
21712         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
21713         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
21714         Add best_class parameter, and return it if not ALL_REGS.
21715         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
21716         Add parameter.
21717         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
21718         Update target hook.
21720 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
21722         * config/aarch64/aarch64.c
21723         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
21724         (aarch64_ira_change_pseudo_allocno_class): New function.
21726 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
21728         PR target/67032
21729         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
21731 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
21733         * config/avr/avr.c (avr_option_override): Set
21734         PARAM_ALLOW_STORE_DATA_RACES to 1.
21736 2016-02-02  Richard Biener  <rguenther@suse.de>
21738         PR tree-optimization/69595
21739         * match.pd: Add range test simplifications to true/false.
21741 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
21743         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
21744         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
21745         instead.
21747 2016-02-02  Richard Biener  <rguenther@suse.de>
21749         PR tree-optimization/69606
21750         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
21751         info on the result before moving a stmt.
21753 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
21755         PR middle-end/68542
21756         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
21757         branch with vector comparison.
21758         * config/i386/sse.md (VI48_AVX): New mode iterator.
21759         (define_expand "cbranch<mode>4): Add support for conditional branch
21760         with vector comparison.
21761         * tree-vect-loop.c (optimize_mask_stores): New function.
21762         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
21763         has_mask_store field of vect_info.
21764         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
21765         vectorized loops having masked stores after vec_info destroy.
21766         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
21767         correspondent macros.
21768         (optimize_mask_stores): Add prototype.
21770 2016-02-02  Alan Modra  <amodra@gmail.com>
21772         PR target/69548
21773         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
21774         allow subregs.
21776 2016-02-02  Alan Modra  <amodra@gmail.com>
21778         PR target/68662
21779         * config/rs6000/rs6000.c (need_toc_init): New var, set it
21780         whenever toc_label_name used.
21781         (rs6000_file_start): Don't set up toc section here,
21782         (rs6000_output_function_epilogue): do so here instead,
21783         (rs6000_xcoff_file_start): and here.
21784         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
21785         (load_toc_aix_di): Likewise.
21787 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
21789         PR rtl-optimization/69592
21790         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
21791         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
21792         (num_sign_bit_copies_binary_arith_p): New inline function.
21793         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
21795 2016-02-01  Jeff Law  <law@redhat.com>
21797         PR tree-optimization/69580
21798         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
21799         * tree-ssa-threadbackward.c
21800         (fsm_find_control_statement_thread_paths): Do not try to walk
21801         through large PHI nodes.
21803 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
21805         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
21806         when count is incremented above limit, don't analyze further
21807         insns afterwards.
21809         * omp-low.c (oacc_parse_default_dims): Avoid
21810         -Wsign-compare warning, make sure value fits into int
21811         rather than just unsigned int.
21813 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
21815         PR tree-optimization/67921
21816         * fold-const.c (split_tree): New parameters.  Convert pointer
21817         type variable part to proper type before negating.
21818         (fold_binary_loc): Pass new arguments to split_tree.
21820 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
21822         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
21823         (nvptx_goacc_validate_dims): Extend to handle global defaults.
21824         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
21825         * doc/tm.texti: Rebuilt.
21826         * doc/invoke.texi (fopenacc-dim): Document.
21827         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
21828         (append_compiler_options): Likewise.
21829         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
21830         (oacc_parse_default_dims): New.
21831         (oacc_validate_dims): Add USED arg.  Select non-unity default when
21832         possible.
21833         (oacc_loop_fixed_partitions): Return mask of used partitions.
21834         (oacc_loop_auto_partitions): Emit dump info.
21835         (oacc_loop_partition): Return mask of used partitions.
21836         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
21837         loop partitioning and validation calls.
21839 2016-02-01  Richard Biener  <rguenther@suse.de>
21841         PR middle-end/69556
21842         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
21844 2016-02-01  Richard Biener  <rguenther@suse.de>
21846         PR tree-optimization/69574
21847         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
21848         of asserting return chrec_dont_know.
21850 2016-02-01  Martin Liska  <mliska@suse.cz>
21852         * mem-stats-traits.h: Add copyright header.
21853         * mem-stats.h: Likewise.
21855 2016-02-01  Richard Biener  <rguenther@suse.de>
21857         PR tree-optimization/69579
21858         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
21859         Do not propagate through abnormal PHI results.
21861 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
21863         * postreload.c (reload_cse_simplify): Remove dead code.
21865 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
21867         PR rtl-optimization/69570
21868         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
21869         if there is more than one set, not if there is a single set.
21871 2016-02-01  Richard Henderson  <rth@redhat.com>
21873         PR rtl-opt/69535
21874         * combine.c (make_compound_operation): When looking through a
21875         subreg, make sure to re-extend to the width of the outer mode.
21877 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
21879         PR tree-optimization/69546
21880         * wide-int.cc (wi::divmod_internal): For unsigned division
21881         where both operands fit into uhwi, if o1 is 1 and o0 has
21882         msb set, if divident_prec is larger than bits per hwi,
21883         clear another quotient word and return 2 instead of 1.
21884         Similarly for remainder with msb in HWI set, if dividend_prec
21885         is larger than bits per hwi.
21887 2016-01-29  Martin Jambor  <mjambor@suse.cz>
21889         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
21890         Use short lowercase names.
21891         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
21892         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
21893         acq_rel one.  Protect warning agains segfaults if
21894         get_memory_order_name returns NULL.
21895         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
21896         with release semantics.  Do not warn if get_memory_order already did.
21897         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
21898         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
21899         if get_memory_order already did.
21901 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
21903         * doc/install.texi: Document that isl-0.16 is supported.
21905 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
21907         PR target/69299
21908         * config/i386/constraints.md (Bm): Describe as special memory
21909         constraint.
21910         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
21911         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
21912         * genpreds.c (struct constraint_data): Add is_special_memory.
21913         (have_special_memory_constraints, special_memory_start): New
21914         static vars.
21915         (special_memory_end): Ditto.
21916         (add_constraint): Add new arg is_special_memory.  Add code to
21917         process its true value.  Update have_special_memory_constraints.
21918         (process_define_constraint): Pass the new arg.
21919         (process_define_register_constraint): Ditto.
21920         (choose_enum_order): Process special memory.
21921         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
21922         function insn_extra_special_memory_constraint.
21923         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
21924         * gensupport.c (process_rtx): Process
21925         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
21926         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
21927         * ira-lives.c (single_reg_class): Use
21928         insn_extra_special_memory_constraint.
21929         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
21930         * lra-constraints.c (process_alt_operands): Ditto.
21931         (curr_insn_transform): Use insn_extra_special_memory_constraint.
21932         * recog.c (asm_operand_ok, preprocess_constraints): Process
21933         CT_SPECIAL_MEMORY.
21934         * reload.c (find_reloads): Ditto.
21935         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
21936         * stmt.c (parse_input_constraint): Use
21937         insn_extra_special_memory_constraint.
21939 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
21941         PR target/69530
21942         * lra-splill.c (lra_final_code_change): Revert r229087 by
21943         removing all sub-registers.
21945 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
21947         PR target/65604
21948         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
21950 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
21952         PR target/69551
21953         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
21954         SSE1, copy target into the temporary reg first before recursing
21955         on it.
21957 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
21959         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
21960         with vm.
21962 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
21964         * ginclude/stdarg.h: Test __cplusplus instead of
21965         __GXX_EXPERIMENTAL_CXX0X__.
21967 2016-01-29  Richard Biener  <rguenther@suse.de>
21969         PR tree-optimization/69547
21970         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
21971         Do not mark clobbers necessary.
21972         (mark_all_reaching_defs_necessary_1): Likewise.
21974 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21976         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
21977         declaration name with %qs and print it in both error messages.
21978         Also fix indentation.
21980 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21982         PR other/69006
21983         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
21984         trailing blank line from error message.
21986 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
21988         PR c++/69462
21989         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
21990         for C++-11.
21992 2016-01-29  Richard Biener  <rguenther@suse.de>
21994         PR middle-end/69537
21995         * match.pd: Allow all integral types when simplifying a
21996         widening or sign-changing conversion.
21998 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
22000         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
22001         back to setting codegen_error to fail codegen.
22003 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
22005         PR target/69459
22006         * config/i386/constraints.md (C): Only accept constant zero operand.
22007         (BC): New constraint.
22008         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
22009         instead of C constraint.
22010         * doc/md.texi (Machine Constraints): Update description
22011         of C constraint.
22013 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
22015         PR target/68400
22016         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
22018 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
22020         PR middle-end/69542
22021         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
22022         non-debug insns.
22024 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
22026         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
22027         branches if using guessed profile.
22029 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
22031         * graphite-optimize-isl.c (optimize_isl): Fix dump.
22033 2016-01-28  Richard Henderson  <rth@redhat.com>
22035         PR target/69305
22036         * config/aarch64/aarch64-modes.def (CC_Cmode): New
22037         * config/aarch64/aarch64-protos.h: Update.
22038         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
22039         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
22040         (aarch64_get_condition_code_1): Handle CC_Cmode.
22041         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
22042         (*add<mode>3_compareC_cconly_imm): New.
22043         (*add<mode>3_compareC_cconly): New.
22044         (*add<mode>3_compareC_imm): New.
22045         (add<mode>3_compareC): New.
22046         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
22047         to be first.  Use aarch64_carry_operation.
22048         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
22049         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
22050         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
22051         (subti3): Use subdi3_compare1.
22052         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
22053         (sub<mode>3_compare1): New.
22054         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
22055         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
22056         (*subsi3_carryin_uxtw): Likewise.
22057         (*ngc<mode>, *ngcsi_uxtw): Likewise.
22058         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
22059         * config/aarch64/iterators.md (DWI): New.
22060         * config/aarch64/predicates.md (aarch64_carry_operation): New.
22061         (aarch64_borrow_operation): New.
22063 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
22065         * graphite-optimize-isl.c (optimize_isl): Print a different debug
22066         message when isl does not return a valid schedule.
22068 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
22070         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
22071         Remove comments from class declarations: they are already in the code
22072         close by the defs.
22074 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
22076         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
22077         codegen_error_p.
22078         (ternary_op_to_tree): Same.
22079         (unary_op_to_tree): Same.
22080         (nary_op_to_tree): Same.
22081         (gcc_expression_from_isl_expr_op): Same.
22082         (gcc_expression_from_isl_expression): Same.
22083         (graphite_create_new_loop): Same.
22084         (graphite_create_new_loop_guard): Same.
22085         (build_iv_mapping): Same.
22086         (graphite_create_new_guard): Same.
22087         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
22088         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
22090 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
22092         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
22093         instead of setting codegen_error to fail codegen.
22095 2016-01-28  Jason Merrill  <jason@redhat.com>
22097         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
22099 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
22101         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
22102         Remove CONST_INT_P check in CCMP cost calculation.
22104 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
22106         * config/aarch64/aarch64.c (generic_vector_cost):
22107         Set vec_permute_cost.
22108         (cortexa57_vector_cost): Likewise.
22109         (exynosm1_vector_cost): Likewise.
22110         (xgene1_vector_cost): Likewise.
22111         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
22112         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
22113         Add vec_permute_cost entry.
22115 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
22117         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
22118         immediate as %1.
22119         (add<mode>3_compare0): Likewise.
22120         (addsi3_compare0_uxtw): Likewise.
22121         (add<mode>3nr_compare0): Likewise.
22122         (compare_neg<mode>): Likewise.
22123         (<optab><mode>3): Likewise.
22125 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
22127         * tree-vect-stmts.c (vectorizable_comparison): Add
22128         NULL check for vectype.
22130 2016-01-28  Richard Biener  <rguenther@suse.de>
22132         PR tree-optimization/69466
22133         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
22134         Account for PHIs we couldn't duplicate.
22136 2016-01-28  Martin Liska  <mliska@suse.cz>
22138         PR pch/68758
22139         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
22140         instead of ENABLE_VALGRIND_CHECKING.
22142 2016-01-27  Richard Henderson  <rth@redhat.com>
22144         PR rtl-opt/69447
22145         * lra-remat.c (subreg_regs): New.
22146         (dump_candidates_and_remat_bb_data): Dump it.
22147         (operand_to_remat): Reject if operand in subreg_regs.
22148         (set_bb_regs): Collect subreg_regs.
22149         (lra_remat): Init and free subreg_regs.  Compute
22150         calculate_local_reg_remat_bb_data before create_cands.
22152 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
22154         PR target/68986
22155         * config/i386/i386.c (ix86_update_stack_boundary): Don't
22156         change stack_alignment_needed for __tls_get_addr call.
22158 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
22160         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
22162 2016-01-27  Jeff Law  <law@redhat.com>
22164         PR tree-optimization/68398
22165         PR tree-optimization/69196
22166         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
22167         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
22168         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
22169         Only count PHIs in the last block in the path.  The others will
22170         const/copy propagate away.  Add heuristic to allow more irreducible
22171         subloops to be created when it is likely profitable to do so.
22173         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
22174         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
22175         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
22177 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
22179         PR lto/69254
22180         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
22181         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
22182         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
22183         * tree-streamer-in.c: Include asan.h.
22184         (streamer_get_builtin_tree): For builtins in sanitizer
22185         range call initialize_sanitizer_builtins and retry.
22187 2016-01-27  Ian Lance Taylor  <iant@google.com>
22189         * common.opt (fkeep-gc-roots-live): New undocumented option.
22190         * tree-ssa-loop-ivopts.c (add_candidate_1): If
22191         -fkeep-gc-roots-live, skip pointers.
22192         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
22193         NULL.
22195 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
22197         PR target/69512
22198         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
22199         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
22201 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
22203         PR target/68380
22204         * configure.ac: NetBSD provides SSP in its C library.
22205         * configure: Updated.
22207 2016-01-27  Richard Biener  <rguenther@suse.de>
22209         PR tree-optimization/69166
22210         * tree-vect-loop.c (vect_is_simple_reduction): Always check
22211         reduction code for commutativity / associativity.
22213 2016-01-27  Martin Jambor  <mjambor@suse.cz>
22215         PR tree-optimization/69355
22216         * tree-sra.c (analyze_access_subtree): Correct hole detection when
22217         total_scalarization fails.
22219 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
22221         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
22222         power9.
22224 2016-01-27  Christian Bruel  <christian.bruel@st.com>
22226         PR target/69245
22227         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
22228         Move arm_reset_previous_fndecl and set_target_option_current_node in
22229         the conditional part.  Call save_restore_target_globals.
22230         * config/arm/arm.c (arm_set_current_function):
22231         Refactor to better support #pragma target and attribute mix.
22232         Call save_restore_target_globals.
22233         * config/arm/arm-protos.h (save_restore_target_globals): New function.
22235 2016-01-27  Martin Liska  <mliska@suse.cz>
22237         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
22238         reference for an HSA kernel and its host function.
22240 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
22242         PR tree-optimization/69399
22243         * wide-int.h (wi::lrshift): For larger precisions, only
22244         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
22246 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
22248         * config/arc/predicates.md (proper_comparison_operator): Reject
22249         constant-constant comparison.
22251 2016-01-26  Tom de Vries  <tom@codesourcery.com>
22253         PR tree-optimization/69110
22254         * tree-data-ref.c (initialize_data_dependence_relation): Handle
22255         DR_NUM_DIMENSIONS == 0.
22257 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
22258             Sebastian Pop  <s.pop@samsung.com>
22260         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
22261         isl_ast_op_cond and isl_ast_op_select.
22262         (gcc_expression_from_isl_expr_op): Same.
22264 2016-01-26  Jason Merrill  <jason@redhat.com>
22266         PR c++/68782
22267         * tree.c (recompute_constructor_flags): Split out from
22268         build_constructor.
22269         (verify_constructor_flags): New.
22270         * tree.h: Declare them.
22272 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
22274         PR rtl-optimization/69217
22275         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
22276         are no TYPE_FIELDS set for the record type.
22278 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22280         PR target/68662
22281         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
22282         toc_label_name unconditionally.
22283         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
22284         SYMBOL_REF string.  Use toc_label_name instead of constructing
22285         LCTOC1.
22286         (rs6000_elf_declare_function_name): Use toc_label_name instead of
22287         constructing LCTOC1.
22289 2016-01-26  Martin Sebor  <msebor@redhat.com>
22291         PR other/69477
22292         * doc/extend.texi (Common Type Attributes): Move text that talks about
22293         attribute packed from attribute aligned to the section discussing
22294         the former attribute for clarity.
22296 2016-01-26  Richard Henderson  <rth@redhat.com>
22298         PR middle-end/60908
22299         * trans-mem.c (tm_region_init): Mark entry block as visited.
22301 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
22303         PR other/69006
22304         * diagnostic-show-locus.c (layout::print_source_line): Replace
22305         call to pp_newline with call to layout::print_newline.
22306         (layout::print_annotation_line): Likewise.
22307         (layout::move_to_column): Likewise.
22308         (layout::print_any_fixits): After printing any fixits, print a
22309         trailing newline, if necessary.
22310         (layout::print_newline): New method, resetting any colorization
22311         before a newline.
22312         (diagnostic_show_locus): Move the pp_newline to before the
22313         early bailout.  Remove dummy block enclosing the layout instance.
22314         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
22315         of pp_newline_and_flush with pp_flush.
22316         (diagnostic_append_note): Delete use of pp_newline.
22317         (diagnostic_append_note_at_rich_loc): Delete.
22318         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
22319         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
22320         when newline characters are added to the buffer.
22322 2016-01-26  Michael Matz  <matz@suse.de>
22324         * configure.ac (ac_cv_std_swap_in_utility): New test.
22325         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
22326         * configure: Regenerate.
22327         * config.in: Regenerate.
22329 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
22331         * config/arc/arc.md (cstoresi4): Force operand into register.
22332         (arcset<code>): Fix predicate.
22333         (arcsetltu): Likewise.
22334         (arcsetgeu): Likewise.
22335         (arcsethi): Likewise.
22336         (arcsetls): Likewise.
22338 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22340         PR tree-optimization/69483
22341         * gimple-fold.c (canonicalize_constructor_val): Return NULL
22342         if base has error_mark_node type.
22344 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
22346         PR target/68620
22347         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
22348         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
22349         New helper macros.
22350         (vget_lane_f16): Handle big-endian.
22351         (vgetq_lane_f16): Likewise.
22352         (vset_lane_f16): Likewise.
22353         (vsetq_lane_f16): Likewise.
22354         * config/arm/iterators.md (VQXMOV): Add V8HF.
22355         (VDQ): Add V4HF and V8HF.
22356         (V_reg): Handle V4HF and V8HF.
22357         (Is_float_mode): Likewise.
22358         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
22359         neon_vdup_nv8hf): New patterns.
22360         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
22361         Use VD_LANE iterator.
22362         (neon_vld1_dup<mode>): Use VQ2 iterator.
22364 2016-01-26  Nathan Sidwell  <nathan@acm.org>
22366         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
22367         (set_oacc_fn_attrib): Add IS_KERNEL arg.
22368         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
22369         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
22370         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
22371         (oacc_validate_dims): Add LEVEL arg, don't return level.
22372         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
22373         oacc_validate_dims.
22374         (execute_oacc_device_lower): Adjust, add more dump output.
22375         * tree-ssa-loop.c (gate_oacc_kernels): Use
22376         oacc_fn_attrib_kernels_p.
22377         * tree-parloops.c (create_parallel_loop): Adjust
22378         set_oacc_fn_attrib call.
22380 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22382         PR lto/69254
22383         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
22384         (append_compiler_options): Handle -fcilkplus.
22385         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
22387 2016-01-26  Nick Clifton  <nickc@redhat.com>
22389         PR target/66655
22390         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
22391         been marked as DECL_ONE_ONLY but we do not the means to make it
22392         so, then do not allow it to bind locally.
22394 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22396         PR lto/69254
22397         * opts.h (parse_sanitizer_options): New prototype.
22398         * opts.c (sanitizer_opts): New array.
22399         (parse_sanitizer_options): New function.
22400         (common_handle_option): Use parse_sanitizer_options.
22402 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
22404         PR target/68986
22405         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
22406         alignment adjustment to ...
22407         (ix86_update_stack_boundary): Here.  Don't over-align stack for
22408         __tls_get_addr.
22409         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
22410         if __tls_get_addr is called.
22412 2016-01-26  Christian Bruel  <christian.bruel@st.com>
22414         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
22416 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
22418         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
22420 2016-01-26  Richard Biener  <rguenther@suse.de>
22422         PR middle-end/69467
22423         * match.pd: Guard X * CST CMP 0 pattern with single_use.
22425 2016-01-26  Richard Biener  <rguenther@suse.de>
22427         PR tree-optimization/69452
22428         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
22429         (move_computations_dom_walker::before_dom_children): Rename
22430         to ...
22431         (move_computations_worker): This.
22432         (move_computations): Perform an RPO rather than a DOM walk.
22434 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22436         PR target/69442
22437         * combine.c (combine_instructions): For REG_EQUAL note with
22438         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
22439         to the underlying register.
22440         * doc/rtl.texi (REG_EQUAL): Document the behavior of
22441         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
22443 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
22445         PR target/67896
22446         * config/aarch64/aarch64-builtins.c
22447         (aarch64_init_simd_builtin_types): Do not set structural
22448         equality to __Poly{8,16,64,128}_t types.
22450 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
22452         PR tree-optimization/69400
22453         * wide-int.cc (wi_pack): Take the precision as argument and
22454         perform canonicalization here rather than in the callers.
22455         Use the main loop to handle all full-width HWIs.  Add a
22456         zero HWI if in_len isn't a full result.
22457         (wi::divmod_internal): Update accordingly.
22458         (wi::mul_internal): Likewise.  Simplify.
22460 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
22461             Sebastian Pop  <s.pop@samsung.com>
22463         * graphite-poly.c (apply_poly_transforms): Simplify.
22464         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
22465         (print_isl_map): Same.
22466         (print_isl_union_map): Same.
22467         (print_isl_schedule): New.
22468         (debug_isl_schedule): New.
22469         * graphite-dependences.c (scop_get_reads): Do not call
22470         isl_union_map_add_map that is undocumented isl functionality.
22471         (scop_get_must_writes): Same.
22472         (scop_get_may_writes): Same.
22473         (scop_get_original_schedule): Remove.
22474         (scop_get_dependences): Do not call isl_union_map_compute_flow that
22475         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
22476         (compute_deps): Remove.
22477         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
22478         (debug_schedule_ast): New.
22479         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
22480         set_separate_option.
22481         (graphite_regenerate_ast_isl): Add dump.
22482         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
22483         from scop->transformed_schedule.
22484         (graphite_regenerate_ast_isl): Add more dump.
22485         * graphite-optimize-isl.c (optimize_isl): Set
22486         scop->transformed_schedule.  Check whether schedules are equal.
22487         (apply_poly_transforms): Move here.
22488         * graphite-poly.c (apply_poly_transforms): ... from here.
22489         (free_poly_bb): Static.
22490         (free_scop): Static.
22491         (pbb_number_of_iterations_at_time): Remove.
22492         (print_isl_ast): New.
22493         (debug_isl_ast): New.
22494         (debug_scop_pbb): New.
22495         * graphite-scop-detection.c (print_edge): Move.
22496         (print_sese): Move.
22497         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
22498         (build_scop_scattering): Remove.
22499         (create_pw_aff_from_tree): Assert instead of bailing out.
22500         (add_condition_to_pbb): Remove unused code, do not fail.
22501         (add_conditions_to_domain): Same.
22502         (add_conditions_to_constraints): Remove.
22503         (build_scop_context): New.
22504         (add_iter_domain_dimension): New.
22505         (build_iteration_domains): Initialize pbb->iterators.
22506         Call add_conditions_to_domain.
22507         (nested_in): New.
22508         (loop_at): New.
22509         (index_outermost_in_loop): New.
22510         (index_pbb_in_loop): New.
22511         (outermost_pbb_in): New.
22512         (add_in_sequence): New.
22513         (add_outer_projection): New.
22514         (outer_projection_mupa): New.
22515         (add_loop_schedule): New.
22516         (build_schedule_pbb): New.
22517         (build_schedule_loop): New.
22518         (embed_in_surrounding_loops): New.
22519         (build_schedule_loop_nest): New.
22520         (build_original_schedule): New.
22521         (build_poly_scop): Call build_original_schedule.
22522         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
22523         (free_poly_dr): Remove.
22524         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
22525         (free_poly_bb): Remove.
22526         (debug_loop_vec): Remove.
22527         (print_isl_ast): Declare.
22528         (debug_isl_ast): Declare.
22529         (scop_do_interchange): Remove.
22530         (scop_do_strip_mine): Remove.
22531         (scop_do_block): Remove.
22532         (flatten_all_loops): Remove.
22533         (optimize_isl): Remove.
22534         (pbb_number_of_iterations_at_time): Remove.
22535         (debug_scop_pbb): Declare.
22536         (print_schedule_ast): Declare.
22537         (debug_schedule_ast): Declare.
22538         (struct scop): Remove schedule.  Add original_schedule,
22539         transformed_schedule.
22540         (free_gimple_poly_bb): Remove.
22541         (print_generated_program): Remove.
22542         (debug_generated_program): Remove.
22543         (unify_scattering_dimensions): Remove.
22544         * sese.c (print_edge): ... here.
22545         (print_sese): ... here.
22546         (debug_edge): ... here.
22547         (debug_sese): ... here.
22548         * sese.h (print_edge): Declare.
22549         (print_sese): Declare.
22550         (dump_edge): Declare.
22551         (dump_sese): Declare.
22553 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
22554             Sebastian Pop  <s.pop@samsung.com>
22556         * Makefile.in: Set ISLVER in site.exp.
22558 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
22560         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
22561         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
22562         through DECL_VALUE_EXPR for expansion.
22564 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22566         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
22567         the frame info after reload completed.
22569 2016-01-25  Jeff Law  <law@redhat.com>
22571         PR tree-optimization/69196
22572         PR tree-optimization/68398
22573         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
22574         tree-ssa-threadupdate.c.
22575         (determine_bb_domination_status): Prototype
22576         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
22577         (determine_bb_domination_status): No longer static.
22578         (valid_jump_thread_path): Remove code to detect characteristics
22579         of the jump thread path not associated with correctness.
22580         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
22581         Correct test for thread path length.  Count PHIs for real operands as
22582         statements that need to be copied.  Do not count ASSERT_EXPRs.
22583         Look at all the blocks in the thread path.  Compute and selectively
22584         filter thread paths based on threading through the latch, threading
22585         a multiway branch or crossing a multiway branch.
22587 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22589         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
22590         decl with __attribute__ ((unused)) annotation.
22592 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
22594         PR target/69421
22595         * tree-vect-stmts.c (vectorizable_condition): Check vectype
22596         of operands is compatible with a statement vectype.
22598 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
22600         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
22601         improve wording for mixed storage order support.
22603 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
22605         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
22606         (vcvt_u64_f64): Likewise.
22607         (vcvta_s64_f64): Likewise.
22608         (vcvta_u64_f64): Likewise.
22609         (vcvtm_s64_f64): Likewise.
22610         (vcvtm_u64_f64): Likewise.
22611         (vcvtn_s64_f64): Likewise.
22612         (vcvtn_u64_f64): Likewise.
22613         (vcvtp_s64_f64): Likewise.
22614         (vcvtp_u64_f64): Likewise.
22616 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
22618         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
22619         (arc_init): Check validity mll64 option.
22620         (arc_save_restore): Use double load/store instruction.
22621         (arc_expand_movmem): Likewise.
22622         (arc_split_move): Don't split if we have double load/store
22623         instructions. Returns a boolean.
22624         (arc_process_double_reg_moves): Change function to return boolean
22625         instead of a sequence of instructions.
22626         (arc_dwarf_register_span): New function.
22627         * config/arc/arc-protos.h (arc_split_move): Change prototype.
22628         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
22629         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
22630         (*movdf_insn): Likewise.
22631         * config/arc/arc.opt (mll64): New option.
22632         * config/arc/predicates.md (even_register_operand): New predicate.
22633         * doc/invoke.texi (ARC Options): Add mll64 documentation.
22635 2016-01-25  Richard Biener  <rguenther@suse.de>
22637         PR lto/69393
22638         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
22639         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
22640         DECL_NAMELESS.
22641         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
22643 2016-01-25  Richard Biener  <rguenther@suse.de>
22645         PR tree-optimization/69376
22646         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
22647         flag.
22648         (VN_INFO_ANTI_RANGE_P): New inline.
22649         (VN_INFO_RANGE_TYPE): Likewise.
22650         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
22651         SSA_NAME_ANTI_RANGE_P.
22652         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
22653         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
22654         Properly query VN_INFO_RANGE_TYPE.
22656 2016-01-25  Nick Clifton  <nickc@redhat.com>
22658         PR target/66655
22659         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
22661 2016-01-23  Tom de Vries  <tom@codesourcery.com>
22663         PR tree-optimization/69426
22664         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
22665         removed clobber.
22667 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
22669         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
22670         "the the" with "the" in the comments.
22671         * ipa-devirt.c (build_type_inheritance_graph,
22672         update_type_inheritance_graph): Likewise.
22673         * tree.c (build_function_type_list_1): Likewise.
22674         * cfgloopmanip.c (scale_loop_profile): Likewise.
22675         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
22676         * gimple-ssa-split-paths.c
22677         (find_block_to_duplicate_for_splitting_paths): Likewise.
22678         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
22679         * expr.c (convert_move): Likewise.
22680         * var-tracking.c (vt_stack_adjustments): Likewise.
22681         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
22682         * tree-vrp.c (test_for_singularity): Likewise.
22684         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
22685         directly instead of building a temporary tree.
22687         PR bootstrap/69434
22688         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
22689         remove <algorithm> include.
22691 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
22693         PR target/69432
22694         * config/i386/i386.c: Include dojump.h.
22695         (expand_small_movmem_or_setmem,
22696         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
22697         fixes.
22698         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
22699         if dynamic_check != -1.
22701 2016-01-21  Jeff Law  <law@redhat.com>
22703         PR middle-end/69347
22704         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
22705         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
22706         into dominated_by_p.
22707         (cprop_into_successor_phis): Avoid unnecessary tests.
22709 2016-01-22  Richard Henderson  <rth@redhat.com>
22711         PR target/69416
22712         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
22713         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
22715 2016-01-22  Michael Matz  <matz@suse.de>
22717         * system.h (string, algorithm): Include only conditionally.
22718         (new): Include always under C++.
22719         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
22720         * final.c (toplevel): Ditto.
22721         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
22722         * genconditions.c (write_header): Make gencondmd.c define
22723         INCLUDE_STRING.
22724         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
22726         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
22727         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
22729 2016-01-22  Christian Bruel  <christian.bruel@st.com>
22731         PR target/68674
22732         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
22734 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22736         PR target/69403
22737         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
22738         define_insn_and_split.  Ensure operands[1] and operands[0] do not
22739         get assigned the same register.
22741 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
22743         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
22745 2016-01-22  Christian Bruel  <christian.bruel@st.com>
22747         * config/arm/arm-c.c (arm_pragma_target_parse):
22748         Remove warn_builtin_macro_redefined overwrite.
22750 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
22752         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
22753         flag_non_call_exceptions compatibility.
22755 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
22757         PR debug/66668
22758         * dwarf2out.c (add_child_die_after): New function.
22759         (dwarf_qual_info_t): New type.
22760         (dwarf_qual_info): New variable.
22761         (qualified_die_p): New function.
22762         (modified_type_die): For -fdebug-types-section, ensure
22763         canonical order of qualifiers.  Put qualified DIEs adjacent
22764         to the corresponding non-qualified type DIE and search there
22765         for existing qualified DIEs.
22767 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
22769         * doc/extend.texi (scalar_storage_order type attribute): Document
22770         restriction on type punning and aliasing, and remove future tense.
22772 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
22774         PR target/69252
22775         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
22776         first stage.
22778 2016-01-21  Jeff Law  <law@redhat.com>
22780         PR middle-end/69347
22781         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
22782         useless call to record_temporary_equivalences.
22783         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
22784         allocate 10 slots in the bb_path vector and let it grow as needed.
22785         (fsm_find_control_statement_thread_paths): Similarly for the next_path
22786         vector.
22788 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
22790         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
22791         Detangle.
22792         * configure: Regenerate.
22794 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
22796         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
22797         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
22799 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
22801         PR middle-end/66178
22802         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
22803         drop EXPAND_INITIALIZER.
22804         * rtl.h (contains_symbolic_reference_p): Declare.
22805         * rtlanal.c (contains_symbolic_reference_p): New function.
22806         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
22807         a subtraction into a NOT if symbolic constants are involved.
22809 2016-01-21  Anton Blanchard  <anton@samba.org>
22810             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22812         PR target/63354
22813         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
22814         #define.
22815         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
22816         function.
22818 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
22820         * config/microblaze/microblaze.c
22821         (get_branch_target): New.
22822         (insert_wic_for_ilb_runout): New.
22823         (insert_wic): New.
22824         (microblaze_machine_dependent_reorg): New.
22825         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
22826         * config/microblaze/microblaze.md
22827         (UNSPEC_IPREFETCH): Define.
22828         (iprefetch): New pattern
22829         * config/microblaze/microblaze.opt
22830         (mxl-prefetch): New flag.
22832 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
22834         * config/microblaze/microblaze.h
22835         (FIXED_REGISTERS): Update in macro.
22836         (CALL_USED_REGISTERS): Update in macro.
22838 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
22840         PR rtl-optimization/68920
22841         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
22842         moves.
22844 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
22846         PR rtl-optimization/68990
22847         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
22848         pseudo instead of inheritance ones.
22850 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22851             Nick Clifton  <nickc@redhat.com>
22853         PR target/69129
22854         PR target/69012
22855         * config/mips/mips.c (mips_compute_frame_info): Initialise
22856         args_size and hard_frame_pointer_offset fields of the frame
22857         structure before calling mips_global_pointer.
22859 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
22861         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
22862         label reference.
22863         * configure: Regenerate.
22865 2016-01-21  Richard Biener  <rguenther@suse.de>
22867         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
22869 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
22871         * config/s390/s390.c (s390_asm_declare_function_size): Add code
22872         to actually emit the .size directive.
22874 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
22875              Jakub Jelinek  <jakub@redhat.com>
22877         PR target/69187
22878         PR target/65624
22879         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
22880         args array size by one to avoid buffer overflow.
22882 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
22884         * config/s390/s390.md (pool_section_start): Use switch_to_section
22885         to select proper read-only data section instead of hardcoding
22886         .rodata.
22887         (pool_section_end): Use switch_to_section to match the above.
22889 2016-01-21  Richard Biener  <rguenther@suse.de>
22891         PR tree-optimization/69378
22892         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
22893         (set_ssa_val_to): Use it for dominance checks taking into
22894         account not executable edges.
22896 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
22898         PR c++/69355
22899         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
22900         for bitsize instead of GET_MODE_PRECISION (mode).
22902 2016-01-20  Martin Sebor  <msebor@redhat.com>
22904         PR c/52291
22905         * extend.texi (__sync Builtins): Clarify the semantics of
22906         __sync_fetch_and_OP built-ins on pointers.
22907         (__atomic Builtins): Same.
22909 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22910             Sebastian Pop  <s.pop@samsung.com>
22912         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
22913         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
22914         (is_valid_rename): Same.
22915         (translate_isl_ast_to_gimple::get_rename): Same.
22916         (translate_isl_ast_to_gimple::rename_all_uses): Same.
22917         (translate_isl_ast_to_gimple::rename_uses): Same.
22918         (get_new_name): Check for close_phi nodes.
22919         (copy_loop_phi_args): Use phi_node_kind.
22920         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
22921         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
22923 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22924             Sebastian Pop  <s.pop@samsung.com>
22926         Revert commit r229783.
22927         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
22928         Remove use of parameter_rename_map.
22929         (copy_def): Remove.
22930         (copy_internal_parameters): Remove.
22931         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
22932         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
22933         (free_sese_info): Do not free parameter_rename_map.
22934         (set_rename): Do not use parameter_rename_map.
22935         (rename_uses): Update call to set_rename.
22936         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
22937         * sese.h (parameter_rename_map_t): Remove.
22938         (struct sese_info_t): Remove field parameter_rename_map.
22940 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22941             Sebastian Pop  <s.pop@samsung.com>
22943         * graphite-isl-ast-to-gimple.c: Fix comment.
22944         * graphite-scop-detection.c (defined_in_loop_p): New.
22945         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
22946         names defined in loop.
22948 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22949             Sebastian Pop  <s.pop@samsung.com>
22951         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
22952         Discard unstructured if-then-else regions.
22954 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22955             Sebastian Pop  <s.pop@samsung.com>
22957         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
22958         (cleanup_loop_iter_dom): Remove.
22959         (build_loop_iteration_domains): Remove.
22960         (build_scop_context): Remove.
22961         (build_scop_iteration_domain): Remove.
22962         (add_loop_constraints): New.
22963         (build_iteration_domains): New.
22964         (build_poly_scop): Call build_iteration_domains.
22966 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22967             Sebastian Pop  <s.pop@samsung.com>
22969         * graphite-scop-detection.c
22970         (scop_detection::harmful_loop_in_region): Free dom and loops.
22971         (scop_detection::loop_body_is_valid_scop): Free bbs.
22973 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22974             Sebastian Pop  <s.pop@samsung.com>
22976         * graphite-scop-detection.c (record_loop_in_sese): New.
22977         (gather_bbs::before_dom_children): Call record_loop_in_sese.
22978         (build_scops): Remove call to build_sese_loop_nests.
22979         * sese.c (sese_record_loop): Remove.
22980         (build_sese_loop_nests): Remove.
22981         (new_sese_info): Remove region->loops.
22982         (free_sese_info): Same.
22983         * sese.h (sese_contains_loop): Same.
22984         (build_sese_loop_nests): Remove.
22985         (sese_contains_loop): Remove.
22987 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22988             Sebastian Pop  <s.pop@samsung.com>
22990         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
22991         loop_is_valid_in_scop.
22992         (scop_detection::harmful_stmt_in_region): Renamed
22993         harmful_loop_in_region.
22994         Call loop_is_valid_in_scop.
22996 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22997             Sebastian Pop  <s.pop@samsung.com>
22999         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
23000         isl_ast_node_mark.
23002 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23003             Sebastian Pop  <s.pop@samsung.com>
23005         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
23006         * graphite.h (struct poly_bb): Remove field is_reduction.
23007         (PBB_IS_REDUCTION): Remove.
23009 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23010             Sebastian Pop  <s.pop@samsung.com>
23012         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
23013         (add_pdr_constraints): Same.
23014         (scop_get_reads): Same.
23015         (scop_get_must_writes): Same.
23016         (scop_get_may_writes): Same.
23017         (scop_get_original_schedule): Same.
23018         (extend_schedule): Same.
23019         (apply_schedule_on_deps): Same.
23020         (carries_deps): Same.
23021         (compute_deps): Same.
23022         (scop_get_dependences): Same.
23023         * graphite-isl-ast-to-gimple.c
23024         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
23025         * graphite-optimize-isl.c (get_schedule_for_band): Same.
23026         (get_schedule_for_band_list): Same.
23027         (get_schedule_map): Same.
23028         (apply_schedule_map_to_scop): Same.
23029         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
23030         (build_loop_iteration_domains): Same.
23031         (add_condition_to_pbb): Same.
23032         (add_param_constraints): Same.
23033         (pdr_add_memory_accesses): Same.
23034         (pdr_add_data_dimensions): Same.
23036 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
23038         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
23039         requirements.
23041 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
23043         * common.opt (feliminate-dwarf2-dups): Replace references to
23044         "DWARF 2" with just "DWARF".
23045         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
23046         * doc/extend.texi: Likewise.
23047         * doc/cpp.texi: Likewise.
23048         * doc/invoke.texi: Likewise.
23049         (Option Summary): Add -gdwarf to list of Debugging Options.
23050         (Debugging Options): Document -gdwarf.
23051         * doc/contrib.texi: Spell "DWARF" like that.
23053 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
23055         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
23056         warning.  Fix up formatting.
23058         PR middle-end/67653
23059         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
23060         attempt to mark memory input operand addressable and
23061         call prepare_gimple_addressable in that case.  Don't adjust
23062         input_location for diagnostics, use error_at instead.
23064 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
23066         * config/rs6000/ppc-auxv.h: New file.
23067         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
23068         (cpu_is): Likewise.
23069         (cpu_supports): Likewise.
23070         * config/rs6000/rs6000.c: include "ppc-auxv.h".
23071         (cpu_is_info): New variable.
23072         (cpu_supports_info): Likewise.
23073         (tcb_verification_symbol): Likewise.
23074         (cpu_builtin_p): Likewise.
23075         (cpu_expand_builtin): New function.
23076         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
23077         (rs6000_init_builtins): Likewise.
23078         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
23079         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
23080         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
23081         * configure: Regenerate.
23082         * config.in: Likewise.
23083         * doc/extend.texi (PowerPC Built-in Functions): Document
23084         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
23086 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
23088         PR target/68609
23089         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
23090         domain check.
23091         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
23092         for V4SFmode.
23094 2016-01-20  Richard Henderson  <rth@redhat.com>
23096         PR bootstrap/69343
23097         PR bootstrap/69339
23098         PR tree-opt/68964
23099         Revert:
23100         * tree.c (tm_define_builtin): New.
23101         (find_tm_vector_type): New.
23102         (build_tm_vector_builtins): New.
23103         (build_common_builtin_nodes): Call it.
23105 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
23107         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
23108         (arm_fp_ok): Likewise.
23109         (arm_fp): Likewise.
23110         (arm_crypto): Likewise.
23112 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
23113             Richard Biener  <rguenther@suse.de>
23115         PR tree-optimization/69328
23116         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
23117         vectors have same number of elements.
23118         (vectorizable_condition): Fix masked version recognition.
23120 2016-01-20  Richard Biener  <rguenther@suse.de>
23122         PR tree-optimization/69345
23123         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
23124         (VN_INFO_PTR_INFO): Likewise.
23125         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
23126         info when it is equal between non-dominating SSA names.
23127         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
23128         Make sure to look at original SSA infos.
23130 2016-01-20  Jeff Law  <law@redhat.com>
23132         PR target/25114
23133         * config/m68k/predicates.md (pow2_m1_operand): New predicate
23134         extracted from ...
23135         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
23136         (pc_or_label_operand): New predicate.
23137         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
23138         tests for small integers that are 2^n - 1.
23140 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
23142         * doc/invoke.texi (Options Summary): Add '.' after @xref.
23144 2016-01-19  Jeff Law  <law@redhat.com>
23146         PR middle-end/69347
23147         * tree-ssa-threadbackwards.c
23148         (fsm_find_control_statement_thread_paths): Do not try to lookup
23149         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
23151 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
23153         * doc/lto.texi: Remove text that says only Gold has linker plugin
23154         support.
23156 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
23158         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
23159         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
23160         the DIE accordingly.
23161         (modified_type_die): Add REVERSE parameter and pass it recursively,
23162         as well as to base_type_die.  Adjust presence check accordingly.
23163         (base_type_for_mode): Adjust call to modified_type_die.
23164         (add_type_attribute): Add REVERSE parameter and pass it to
23165         modified_type_die.
23166         (generic_parameter_die): Adjust call to add_type_attribute.
23167         (add_scalar_info): Likewise.
23168         (add_subscript_info): Likewise.
23169         (gen_array_type_die): Likewise.
23170         (gen_descr_array_type_die): Likewise.
23171         (gen_entry_point_die): Likewise.
23172         (gen_enumeration_type_die): Likewise.
23173         (gen_formal_parameter_die): Likewise.
23174         (gen_subprogram_die): Likewise.
23175         (gen_variable_die ): Likewise.
23176         (gen_const_die): Likewise.
23177         (gen_field_die): Likewise.
23178         (gen_pointer_type_die): Likewise.
23179         (gen_reference_type_die): Likewise.
23180         (gen_ptr_to_mbr_type_die): Likewise.
23181         (gen_inheritance_die): Likewise.
23182         (gen_subroutine_type_die): Likewise.
23183         (gen_typedef_die): Likewise.
23184         (force_type_die): Adjust call to modified_type_die.
23186 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
23188         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
23189         flow throughout the file.  Fix broken link to Objective-C 2.0
23190         documentation.
23191         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
23192         errors.
23194 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23196         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
23198 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23200         PR ipa/66223
23201         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
23202         (maybe_record_node): Record cxa_pure_virtual as the only possible
23203         target if there are not ohter candidates.
23204         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
23206 2016-01-19  Richard Biener  <rguenther@suse.de>
23208         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
23209         (get_memory_order): Likewise.
23211 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
23213         * tree-vect-stmts.c (vectorizable_store): Check
23214         rhs vectype.
23216 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
23218         PR jit/68446
23219         * gcc.c (driver::decode_argv): Add call to
23220         init_opts_obstack before init_options_struct.
23221         * opts.c (init_opts_obstack): Remove idempotency.
23222         (init_options_struct): Replace call to init_opts_obstack
23223         with a gcc_assert to verify that it has already been called.
23224         * toplev.c (toplev::main): Add call to init_opts_obstack before
23225         calls to init_options_struct.
23226         (toplev::finalize): Move cleanup of opts_obstack next to
23227         cleanup of save_decoded_options, clearing the latter, and
23228         save_decoded_options_count.
23230 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23232         PR target/69135
23233         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
23234         attribute to unconditional.  Remove %? from output template.
23236 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23237             Jiong Wang  <jiong.wang@arm.com>
23239         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
23240         generated from different expand order.
23242 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23244         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
23245         Add support for CCMP costing.
23247 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23249         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
23250         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
23251         (fccmpe<mode>): Likewise.
23252         (fcmp): Rename to fcmp and globalize pattern.
23253         (fcmpe): Likewise.
23254         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
23255         (aarch64_gen_ccmp_next): Add FP support.
23257 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
23259         * target.def (gen_ccmp_first): Update documentation.
23260         (gen_ccmp_next): Likewise.
23261         * doc/tm.texi (gen_ccmp_first): Update documentation.
23262         (gen_ccmp_next): Likewise.
23263         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
23264         expand_ccmp_expr_1.  Improve comments.
23265         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
23266         (ccmp_ior<mode>): Remove pattern.
23267         (cmp<mode>): Remove expand.
23268         (cmp): Globalize pattern.
23269         (cstorecc4): Use cc_register.
23270         (mov<mode>cc): Remove ccmp_cc_register check.
23271         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
23272         Simplify after removal of CC_DNE/* modes.
23273         (aarch64_ccmp_mode_to_code): Remove.
23274         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
23275         In 'k' case use integer as condition.
23276         (aarch64_nzcv_codes): Remove inverted cases.
23277         (aarch64_code_to_ccmode): Remove.
23278         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
23279         comparison with CC register to be used in folowing CCMP/branch/CSEL.
23280         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
23281         pattern.  Return the comparison with CC register.  Invert conditions
23282         when bitcode is OR.
23283         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
23284         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
23286 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23288         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
23289         instrumented_version.
23291 2016-01-19  Richard Biener  <rguenther@suse.de>
23293         PR tree-optimization/69336
23294         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
23295         handled components with get_ref_base_and_extent.
23296         (equal_mem_array_ref_p): Adjust.
23298 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
23300         PR debug/65779
23301         * shrink-wrap.c: Include valtrack.h.
23302         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
23303         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
23304         in between insn and where it will be moved to.  Call
23305         dead_debug_insert_temp.
23306         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
23307         first and dead_debug_local_finish at the end.
23308         For uses and defs bitmap, handle all regs in between REGNO and
23309         END_REGNO, not just the first one.
23311 2016-01-19  Richard Biener  <rguenther@suse.de>
23313         PR tree-optimization/69352
23314         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
23315         (equal_mem_array_ref_p): Constrain size and max size properly.
23316         Compare the reverse flag.
23318 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
23320         * ira.c (ira): Update regstat data if we deleted insns.
23322 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
23324         PR rtl-optimization/68955
23325         PR rtl-optimization/64557
23326         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
23327         here.  Fix up formatting.
23328         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
23330 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23332         PR lto/69133
23333         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
23334         assume that the node has body.
23335         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
23336         check.
23338 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23340         * lto-streamer-out.c (lto_output): Do not stream instrumentation
23341         thunks.
23343 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23345         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
23346         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
23348 2016-01-19  Martin Jambor  <mjambor@suse.cz>
23349             Martin Liska  <mliska@suse.cz>
23350             Michael Matz  <matz@suse.de>
23352         * Makefile.in (OBJS): Add new source files.
23353         (GTFILES): Add hsa.c.
23354         * common.opt (disable_hsa): New variable.
23355         (-Whsa): New warning.
23356         * config.in (ENABLE_HSA): New.
23357         * configure.ac: Treat hsa differently from other accelerators.
23358         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
23359         $enable_offloading.
23360         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
23361         * doc/install.texi (Configuration): Document --with-hsa-runtime,
23362         --with-hsa-runtime-include, --with-hsa-runtime-lib and
23363         --with-hsa-kmt-lib.
23364         * doc/invoke.texi (-Whsa): Document.
23365         (hsa-gen-debug-stores): Likewise.
23366         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
23367         to invoke offload compiler for hsa acclerator.
23368         * opts.c (common_handle_option): Determine whether HSA offloading
23369         should be performed.
23370         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
23371         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
23372         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
23373         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
23374         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
23375         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
23376         GF_OMP_FOR_KIND_GRID_LOOP.
23377         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
23378         (pp_gimple_stmt_1): Likewise.
23379         * gimple-walk.c (walk_gimple_stmt): Likewise.
23380         * gimple.c (gimple_build_omp_grid_body): New function.
23381         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
23382         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
23383         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
23384         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
23385         GF_OMP_TEAMS_GRID_PHONY.
23386         (gimple_statement_omp_single_layout): Updated comments.
23387         (gimple_build_omp_grid_body): New function.
23388         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
23389         (gimple_omp_for_grid_phony): New function.
23390         (gimple_omp_for_set_grid_phony): Likewise.
23391         (gimple_omp_parallel_grid_phony): Likewise.
23392         (gimple_omp_parallel_set_grid_phony): Likewise.
23393         (gimple_omp_teams_grid_phony): Likewise.
23394         (gimple_omp_teams_set_grid_phony): Likewise.
23395         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
23396         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
23397         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
23398         (BUILT_IN_GOMP_TARGET): Updated type.
23399         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
23400         (adjust_for_condition): New function.
23401         (get_omp_for_step_from_incr): Likewise.
23402         (extract_omp_for_data): Moved parts to adjust_for_condition and
23403         get_omp_for_step_from_incr.
23404         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
23405         (fixup_child_record_type): Bail out if receiver_decl is NULL.
23406         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
23407         (scan_omp_parallel): Do not create child functions for phony
23408         constructs.
23409         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
23410         (scan_omp_1_op): Checking assert we are not remapping to
23411         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
23412         (parallel_needs_hsa_kernel_p): New function.
23413         (expand_parallel_call): Register apprpriate parallel child
23414         functions as HSA kernels.
23415         (grid_launch_attributes_trees): New type.
23416         (grid_attr_trees): New variable.
23417         (grid_create_kernel_launch_attr_types): New function.
23418         (grid_insert_store_range_dim): Likewise.
23419         (grid_get_kernel_launch_attributes): Likewise.
23420         (get_target_argument_identifier_1): Likewise.
23421         (get_target_argument_identifier): Likewise.
23422         (get_target_argument_value): Likewise.
23423         (push_target_argument_according_to_value): Likewise.
23424         (get_target_arguments): Likewise.
23425         (expand_omp_target): Call get_target_arguments instead of looking
23426         up for teams and thread limit.
23427         (grid_expand_omp_for_loop): New function.
23428         (grid_arg_decl_map): New type.
23429         (grid_remap_kernel_arg_accesses): New function.
23430         (grid_expand_target_kernel_body): New function.
23431         (expand_omp): Call it.
23432         (lower_omp_for): Do not emit phony constructs.
23433         (lower_omp_taskreg): Do not emit phony constructs but create for them
23434         a temporary variable receiver_decl.
23435         (lower_omp_taskreg): Do not emit phony constructs.
23436         (lower_omp_teams): Likewise.
23437         (lower_omp_grid_body): New function.
23438         (lower_omp_1): Call it.
23439         (grid_reg_assignment_to_local_var_p): New function.
23440         (grid_seq_only_contains_local_assignments): Likewise.
23441         (grid_find_single_omp_among_assignments_1): Likewise.
23442         (grid_find_single_omp_among_assignments): Likewise.
23443         (grid_find_ungridifiable_statement): Likewise.
23444         (grid_target_follows_gridifiable_pattern): Likewise.
23445         (grid_remap_prebody_decls): Likewise.
23446         (grid_copy_leading_local_assignments): Likewise.
23447         (grid_process_kernel_body_copy): Likewise.
23448         (grid_attempt_target_gridification): Likewise.
23449         (grid_gridify_all_targets_stmt): Likewise.
23450         (grid_gridify_all_targets): Likewise.
23451         (execute_lower_omp): Call grid_gridify_all_targets.
23452         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
23453         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
23454         (tree_omp_clause): Added union field dimension.
23455         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
23456         * tree.c (omp_clause_num_ops): Added number of arguments of
23457         OMP_CLAUSE__GRIDDIM_.
23458         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
23459         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
23460         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
23461         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
23462         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
23463         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
23464         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
23465         * tree-pass.h (make_pass_gen_hsail): Declare.
23466         (make_pass_ipa_hsa): Likewise.
23467         * ipa-hsa.c: New file.
23468         * lto-section-in.c (lto_section_name): Add hsa section name.
23469         * lto-streamer.h (lto_section_type): Add hsa section.
23470         * timevar.def (TV_IPA_HSA): New.
23471         * hsa-brig-format.h: New file.
23472         * hsa-brig.c: New file.
23473         * hsa-dump.c: Likewise.
23474         * hsa-gen.c: Likewise.
23475         * hsa.c: Likewise.
23476         * hsa.h: Likewise.
23477         * toplev.c (compile_file): Call hsa_output_brig.
23478         * hsa-regalloc.c: New file.
23480 2016-01-18  Jeff Law  <law@redhat.com>
23482         PR tree-optimization/69320
23483         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
23484         ranged object, do nothing if the RHS constant is not [0..1].
23485         (optimize_stmt): Comparing a boolean ranged object against a
23486         constant outside [0..1] results in a compile-time constant.
23488         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
23489         test.
23491 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
23493         * doc/invoke.texi (Invoking GCC): Add new section to menu.
23494         (Option Summary): Update to reflect new section and moved options.
23495         (C++ Dialect Options): Move -fstats to new section.
23496         (Debugging Options): Move all dump, statistics, and other GCC
23497         developer options to new section.  Rewrite section introduction
23498         and re-order remaining options to put the more basic ones first.
23499         (Optimization Options): Move -fira-verbose and -flto-report* to
23500         new section.
23501         (Developer Options): New section incorporating moved options.
23502         * doc/cppopts.texi (-dM): Update cross-reference.
23504 2016-01-18  Richard Henderson  <rth@redhat.com>
23506         PR target/69176
23507         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
23508         operands to pseudo only if CSE is expected.  Split long immediate
23509         operands only after reload, and for the stack pointer.
23510         (*add<GPI>3_pluslong): Remove.
23511         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
23512         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
23513         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
23514         (*add<GPI>3 peepholes): New.
23515         (*add<GPI>3 splitters): New.
23516         * config/aarch64/constraints.md (Upl): New.
23517         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
23519 2016-01-18  Richard Biener  <rguenther@suse.de>
23521         PR tree-optimization/69297
23522         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
23523         stmt at most once.
23524         (vect_bb_vectorization_profitable_p): Clear visited flag again.
23526 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
23528         PR middle-end/68542
23529         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
23530         of mixind vector and scalar types.
23531         (fold_relational_const): Add handling of vector
23532         comparison with boolean result.
23533         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
23534         comparison of vector operands with boolean result for EQ/NE only.
23535         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
23536         (verify_gimple_cond): Likewise.
23537         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
23538         valid type of VAL.
23540 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
23542         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
23543         !TARGET_OCTEON.
23545 2016-01-18  Richard Biener  <rguenther@suse.de>
23547         PR middle-end/69308
23548         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
23550 2016-01-18  Tom de Vries  <tom@codesourcery.com>
23552         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
23554 2016-01-18  Tom de Vries  <tom@codesourcery.com>
23556         * omp-low.c (set_oacc_fn_attrib): Make extern.
23557         * omp-low.h (set_oacc_fn_attrib): Declare.
23558         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
23559         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
23560         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
23561         Add and handle function parameter oacc_kernels_p.
23562         (find_reduc_addr, get_omp_data_i_param): New function.
23563         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
23564         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
23565         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
23566         Calculate dominance info.  Skip loops that are not in a kernels region
23567         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
23568         (pass_parallelize_loops::execute): Call parallelize_loops with
23569         oacc_kernels_p argument.
23570         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
23571         New member function.
23572         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
23573         * passes.def: Add argument to pass_parallelize_loops instantation.
23575 2016-01-18  Tom de Vries  <tom@codesourcery.com>
23577         * tree-parloops.c (pass_parallelize_loops::execute): Allow
23578         pass_parallelize_loops to be run outside the loop pipeline.
23580 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
23582         * tree-scalar-evolution.c (follow_copies_to_constant): New.
23583         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
23585 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
23587         PR target/63679
23588         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
23589         using get_ref_base_and_extent.
23590         (equal_mem_array_ref_p): New.
23591         (hashable_expr_equal_p): Add call to previous.
23593 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
23595         PR target/63679
23596         * tree-sra.c (disqualified_constants, constant_decl_p): New.
23597         (sra_initialize): Allocate disqualified_constants.
23598         (sra_deinitialize): Free disqualified_constants.
23599         (disqualify_candidate): Update disqualified_constants when appropriate.
23600         (create_access): Scan for constant-pool entries as we go along.
23601         (scalarizable_type_p): Add check against type_contains_placeholder_p.
23602         (maybe_add_sra_candidate): Allow constant-pool entries.
23603         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
23604         (initialize_constant_pool_replacements): New.
23605         (sra_modify_assign): Avoid mangling assignments created by previous,
23606         and don't generate writes into constant pool.
23607         (sra_modify_function_body): Call initialize_constant_pool_replacements.
23609 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
23611         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
23612         andnot instruction.
23613         (scalar_chain::convert_op): Likewise.
23614         * config/i386/i386.md (*andndi3_doubleword): New.
23616 2016-01-18  Richard Biener  <rguenther@suse.de>
23618         PR tree-optimization/69170
23619         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
23620         building a vector from scalar results of a pattern stmt.
23622 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
23624         * haifa-sched.c (autopref_multipass_init): Work around
23625         -Wmaybe-uninitialized warning.
23627 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23629         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
23630         against the constant 0.
23632 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23634         PR tree-optimization/68799
23635         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
23636         look up phi candidates in the statement-candidate map.
23637         (phi_add_costs): Likewise.
23638         (record_phi_increments): Likewise.
23639         (phi_incr_cost): Likewise.
23640         (ncd_with_phi): Likewise.
23641         (all_phi_incrs_profitable): Likewise.
23643 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
23645         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
23646         -Wmaybe-uninitialized warning.
23648 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
23650         * doc/invoke.texi (Invoking GCC): Add new section to menu.
23651         (Option Summary): Update to reflect new section and moved options.
23652         (C++ Dialect Options): Move -fvtable-verify and related options.
23653         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
23654         and profiling-related options.
23655         (Optimization Options): Move profile generation options and
23656         -fstack-protector and related options.
23657         (Instrumentation Options): New section incorporating moved options.
23658         (Code Generation Options): Move -finstrument-functions and
23659         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
23661 2016-01-16  Tom de Vries  <tom@codesourcery.com>
23663         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
23665 2016-01-16  Tom de Vries  <tom@codesourcery.com>
23667         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
23669 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
23671         * hash-table.h (hash_table::empty): Turn into an inline wrapper
23672         that checks whether the table is already empty.  Rename the
23673         original implementation to...
23674         (hash_table::empty_slot): ...this new private function.
23676 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
23678         PR diagnostic/68899
23679         * diagnostic-show-locus.c (layout::print_source_line): Move x
23680         offset of line until after call to
23681         get_line_width_without_trailing_whitespace.
23683 2016-01-15  Jeff Law  <law@redhat.com>
23685         PR tree-optimization/69270
23686         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
23687         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
23688         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
23689         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
23690         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
23691         ssa_name_has_boolean_range and constant_boolean_node.
23693 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
23695         PR rtl-optimization/69030
23696         * lra-spills.c (remove_pseudos): Check nrefs and make the function
23697         returning bool.
23698         (spill_pseudos): Delete debug insn for dead pseudo.
23699         (lra_spill): Initiate spill_hard_reg and slots memory separately.
23701 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
23703         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
23704         New.
23705         (TYPES_UNOPUS): Likewise.
23706         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
23707         builtin type, from UNOP to UNOPUS.
23708         (lbtruncuv4sf): Likewise.
23709         (lbtruncuv2df): Likewise.
23710         (lrounduv2sf): Likewise.
23711         (lrounduv4sf): Likewise.
23712         (lrounduv2df): Likewise.
23713         (lroundusf): Likewise.
23714         (lroundusf): Likewise.
23715         (lceiluv2sf): Likewise.
23716         (lceiluv4sf): Likewise.
23717         (lceiluv2df): Likewise.
23718         (lceilusf): Likewise.
23719         (lceiludf): Likewise.
23720         (lflooruv2sf): Likewise.
23721         (lflooruv4sf): Likewise.
23722         (lflooruv2df): Likewise.
23723         (lfloorusf): Likewise.
23724         (lfloorudf): Likewise.
23725         (lfrintnuv2sf): Likewise.
23726         (lfrintnuv4sf): Likewise.
23727         (lfrintnuv2df): Likewise.
23728         (lfrintnusf): Likewise.
23729         (lfrintnudf): Likewise.
23730         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
23731         conversion.
23732         (vcvtq_u32_f32): Likewise.
23733         (vcvtq_u64_f64): Likewise.
23734         (vcvta_u32_f32): Likewise.
23735         (vcvtaq_u32_f32): Likewise.
23736         (vcvtaq_u64_f64): Likewise.
23737         (vcvtm_u32_f32): Likewise.
23738         (vcvtmq_u32_f32): Likewise.
23739         (vcvtmq_u64_f64): Likewise.
23740         (vcvtn_u32_f32): Likwise.
23741         (vcvtnq_u32_f32): Likewise.
23742         (vcvtnq_u64_f64): Likewise.
23743         (vcvtp_u32_f32): Likewise.
23744         (vcvtpq_u32_f32): Likewise.
23745         (vcvtpq_u64_f64): Likewise.
23746         (vcvtmd_u64_f64): Likewise.
23747         (vcvtms_u32_f32): Likewise.
23748         (vcvtad_u64_f64): Likewise.
23749         (vcvtas_u32_f32): Likewise.
23750         (vcvtnd_u64_f64): Likewise.
23751         (vcvtns_u32_f32): Likewise.
23752         (vcvtpd_u64_f64): Likewise.
23753         (vcvtps_u32_f32): Likewise.
23755 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23757         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
23758         CSEL of zero_extended registers.
23760 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23762         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
23763         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
23765 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23767         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
23768         false when argument string is not found in the attributes table
23769         at all.
23771 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
23773         PR target/68609
23774         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
23775         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
23776         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
23777         precision estimate.
23779 2016-01-15  Richard Biener  <rguenther@suse.de>
23781         PR tree-optimization/66856
23782         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
23783         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
23784         (vect_create_new_slp_node): Increment stmt reference count.
23785         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
23786         an SLP tree before swapping operands.
23787         (vect_build_slp_tree): Likewise.
23788         (destroy_bb_vec_info): Free stmt info after SLP instances.
23789         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
23790         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
23791         (STMT_VINFO_NUM_SLP_USES): New macro.
23793 2016-01-15  Richard Biener  <rguenther@suse.de>
23795         PR debug/69137
23796         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
23797         (add_linkage_name): ... here.
23798         (gen_typedef_die): Use add_linkage_name_raw instead of
23799         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
23800         if necessary.
23802 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
23804         * gimplify.c (oacc_default_clause): Decode reference and pointer
23805         types for both kernels and parallel regions.
23807 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
23809         PR middle-end/69246
23810         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
23812 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
23814         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
23815         (convert_scalars_to_vector): Likewise.
23817 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
23819         * doc/extend.texi (Type Traits): Fix grammar.
23821 2016-01-15  Martin Jambor  <mjambor@suse.cz>
23823         * tree-inline.c (remap_decl): Use existing dclarations if
23824         remapping a type and prevent_decl_creation_for_types.
23825         (replace_locals_stmt): Do an initial remapping of non-VLA typed
23826         decls first.  Do real remapping with
23827         prevent_decl_creation_for_types set.
23828         * tree-inline.h (copy_body_data): New field
23829         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
23830         padding.
23832 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23834         * config/s390/s390.opt (mmvcle): More verbose help text.
23836 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23838         * config/s390/s390.opt: Add period to -mzvector option text.
23840 2016-01-15  Richard Biener  <rguenther@suse.de>
23842         PR tree-optimization/68961
23843         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
23844         of invariants in stores again.
23846 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23848         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
23850 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
23852         * config/i386/i386.c (ix86_expand_branch): Don't split
23853         DI mode xor instruction to SI mode.
23855 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
23857         PR ipa/68148
23858         * ipa-icf.c (sem_function::merge): Virtual functions may become
23859         reachable even if they address is not taken and there are no
23860         idrect calls.
23862 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
23864         * lto-streamer-out.c (subtract_estimated_size): New function.
23865         (get_symbol_initial_value): Use it.
23867 2016-01-15  Christian Bruel  <christian.bruel@st.com>
23869         PR target/65837
23870         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
23871         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
23872         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
23873         use add_builtin_function_ext_scope instead of add_builtin_function.
23874         (neon_set_p, neon_crypto_set_p): Remove.
23875         (arm_init_builtins): Always call arm_init_neon_builtins and
23876         arm_init_crypto_builtins.
23877         (arm_expand_builtin): Check that builtins are allowed for the arch.
23878         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
23879         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
23880         arm_init_neon_builtins call.
23882 2016-01-15  Richard Biener  <rguenther@suse.de>
23884         PR tree-optimization/69117
23885         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
23886         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
23887         of the leader conservatively.
23888         (free_scc_vn): Restore original SSA name infos.
23890 2016-01-14  Jeff Law  <law@redhat.com>
23892         PR tree-optimization/69270
23893         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
23894         single bit of precision, verify it's also unsigned.
23895         (record_edge_info): Use constant_boolean_node rather than fold_convert
23896         to convert boolean_true/boolean_false to the right type.
23898 2016-01-14  Richard Henderson  <rth@redhat.com>
23900         PR rtl-opt/69014
23901         * loop-doloop.c (record_reg_sets): New.
23902         (doloop_optimize): Reject the transform if the sequence
23903         clobbers registers live at the end of the loop block.
23904         (doloop_optimize_loops): Enable df_live if needed.
23906 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23908         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
23909         * config/rs6000/rs6000.c: Likewise.
23910         * config/rs6000/rs6000.h: Likewise.
23911         * config/rs6000/rs6000.md: Likewise.
23912         * doc/extend.texi: Likewsie.
23914 2016-01-14  Jeff Law  <law@redhat.com>
23916         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
23917         typo.
23919 2016-01-14  Richard Henderson  <rth@redhat.com>
23921         PR c/69272
23922         PR tree-opt/68964
23923         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
23924         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
23925         instead of builtin_decl_declared_p to test for declaration.
23927 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
23929         * doc/loop.texi (Loop Analysis and Representation): Document
23930         loop_depth function.
23932 2016-01-14  Tom de Vries  <tom@codesourcery.com>
23934         PR tree-optimization/68773
23935         * omp-low.c (expand_omp_target): Don't set force_output.
23936         * varpool.c (varpool_node::get_create): Same.
23937         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
23938         offload_funcs with force_output.
23940 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
23942         PR debug/69244
23943         * lra-eliminations.c (move_plus_up): Don't change anything if either
23944         the outer or inner subreg mode is not MODE_INT.
23945         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
23946         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
23948 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
23950         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
23951         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
23952         reduc_uplus_@var{m}): Remove.
23953         * expr.c (expand_expr_real_2): Remove expansion path for
23954         reduc_[us](min|max|plus) optabs.
23955         * optabs-tree.c (scalar_reduc_to_vector): Remove.
23956         * optabs-tree.h (scalar_reduc_to_vector): Remove.
23957         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
23958         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
23959         * tree-vect-loop.c (vectorizable_reduction): Remove test for
23960         reduc_[us](min|max|plus) optabs.
23962 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
23964         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
23965         (reduc_plus_scal_v2sf): New.
23966         (reduc_smax_v2sf): Rename to...
23967         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
23968         (reduc_smin_v2sf): Rename to...
23969         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
23971 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
23973         * alias.c (compare_base_symbol_refs): New function.
23974         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
23975         it.
23977 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
23979         PR middle-end/68146
23980         PR tree-optimization/69155
23981         * tree-complex.c: Include cfganal.h.
23982         (phis_to_revisit): New variable.
23983         (extract_component): Add phiarg_p argument.  Assert that returned
23984         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
23985         (update_phi_components): Partly rewrite to use loop over real/imag
23986         components instead of code duplication.  If extract_component returns
23987         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
23988         create_tmp_reg into the PHI node instead, and mention the phi triplet
23989         in phis_to_revisit.
23990         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
23991         in phis_to_revisit at the end.
23993 2016-01-14  Richard Biener  <rguenther@suse.de>
23995         PR tree-optimization/68060
23996         * tree-vect-loop.c (vect_is_simple_reduction): Check the
23997         outer loop reduction is only used in the inner loop before
23998         detecting a double reduction.
24000 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
24002         PR target/68269
24003         * combine.c (expand_field_assignment): Punt if compute_mode is
24004         unsupported scalar mode.
24006 2016-01-14  Richard Biener  <rguenther@suse.de>
24008         PR tree-optimization/66856
24009         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
24010         SLP node only if it built successfully.
24011         (vect_analyze_slp_instance): Adjust.
24013 2016-01-14  Jeff Law  <law@redhat.com>
24015         PR tree-optimization/69270
24016         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
24017         (record_edge_info): Use it.  Convert boolean_{true,false}_node
24018         to the type of op0.
24020 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
24022         PR ipa/66487
24023         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
24024         use block_ultimate_origin
24025         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
24027 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
24029         * doc/invoke.texi (Submodel Options): Rename section to
24030         "Machine-Dependent Options" to better reflect its content.
24031         Rewrite introductory text to remove archaic CPU names.
24032         Update references.
24034 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
24036         * doc/invoke.texi (Code Gen Options): Move section up in file,
24037         before target-specific options.  Update menu and option summary
24038         to reflect the new section ordering.
24040 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
24042         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
24043         (C++ Dialect Options): Add cross-reference to -std option.
24044         * doc/standards.texi (C++ Language): Document C++14 support.
24046 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
24048         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
24049         for pack/unpack functions for __ibm128.
24050         (PACK_IF): Likewise.
24051         (UNPACK_IF): Likewise.
24053         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
24054         support for __ibm128 pack/unpack functions.
24055         (rs6000_invalid_builtin): Likewise.
24056         (rs6000_init_builtins): Likewise.
24057         (rs6000_opt_masks): Likewise.
24059         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
24060         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
24061         functions
24062         (RS6000_BTM_COMMON): Likewise.
24064         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
24065         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
24066         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
24067         128-bit floating point.  Add support for the double values to be
24068         in Altivec registers for TF/IF packing and unpacking, but restrict
24069         TD packing sub-fields to be FPR registers.  Don't allow overlapped
24070         register support for packing.  Allow pack inputs to be memory
24071         locations.  Don't build generator functions for unpack<mode>_dm
24072         and unpack<mode>_nodm.
24073         (unpack<mode>_dm): Likewise.
24074         (unpack<mode>_nodm): Likewise.
24075         (pack<mode>): Likewise.
24077         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
24078         built-in functions to pack/unpack explicit __ibm128 values.
24079         (__builtin_unpack_ibm128): Likewise.
24081         * doc/extend.texi (PowerPC Built-in Functions): Document
24082         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
24084 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
24086         PR c/66208
24087         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
24088         Add new arg loc and pass it down as context.
24089         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
24090         to the location to use for the warning.
24091         (check_function_arguments): New arg loc.  All callers changed.  Pass
24092         it to check_function_nonnull.
24093         * c-common.h (check_function_arguments): Adjust declaration.
24095 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
24097         PR tree-optimization/69156
24098         * gimple.c (validate_type): Removed.
24099         (gimple_builtin_call_types_compatible_p): Use
24100         useless_type_conversion_p instead of validate_type.
24101         * value-prof.c (gimple_stringop_fixed_value): Fold
24102         icall_size to correct type.
24104 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
24106         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
24107         effects.
24109 2016-01-13  Richard Henderson  <rth@redhat.com>
24111         PR tree-opt/68964
24112         * target.def (builtin_tm_load, builtin_tm_store): Remove.
24113         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
24114         (ix86_builtin_tm_store): Remove.
24115         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
24116         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
24117         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
24118         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
24119         * doc/tm.texi: Rebuild.
24121         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
24122         (BUILT_IN_TM_MEMCPY_RTWN): New.
24123         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
24124         fallback from vector to integer helpers.
24125         (build_tm_load): Handle vector types directly, instead of
24126         via target hook.
24127         (build_tm_store): Likewise.
24128         (expand_assign_tm): Prepare for register types not handled by
24129         the above.  Copy them to memory and use memcpy.
24130         * tree.c (tm_define_builtin): New.
24131         (find_tm_vector_type): New.
24132         (build_tm_vector_builtins): New.
24133         (build_common_builtin_nodes): Call it.
24135 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
24137         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
24138         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
24140 2016-01-13  Tom de Vries  <tom@codesourcery.com>
24142         PR tree-optimization/69169
24143         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
24144         handled_struct_type param.
24145         (create_variable_info_for, intra_create_variable_infos): Call
24146         create_variable_info_for_1 with extra arg.
24148 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
24150         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
24151         and "armv8.1-a+crc" entries.
24153 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
24155         PR target/69228
24156         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
24157         Change first operand predicate from register_or_constm1_operand
24158         to register_operand.
24159         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
24160         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
24161         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
24162         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
24163         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
24164         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
24165         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
24166         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
24167         comparison with constm1_rtx from vec_prefetch_gen part.
24169 2016-01-13  Richard Biener  <rguenther@suse.de>
24171         PR tree-optimization/69013
24172         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
24173         Exchange assert for a test.
24175 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24177         PR target/69247
24178         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
24180 2016-01-13  Richard Biener  <rguenther@suse.de>
24182         PR tree-optimization/69242
24183         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
24184         assert with a check.
24186 2016-01-13  Richard Biener  <rguenther@suse.de>
24188         PR tree-optimization/69186
24189         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
24190         Properly guard vect_update_misalignment_for_peel call.
24192 2016-01-12  Jeff Law  <law@redhat.com>
24194         PR tree-optimization/pr67755
24195         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
24196         "need_profile_correction".
24197         (thread_block_1): Initialize new field to false by default.  If we
24198         have multiple thread paths through a common joiner to different
24199         final targets, then set new field to true.
24200         (compute_path_counts): Only do count adjustment when it's really
24201         needed.
24203 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
24205         * doc/invoke.texi (Spec Files): Move section down in file, past
24206         all command-line option descriptions.
24208 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24210         PR middle-end/54809
24211         * doc/gty.texi: Remove documentation of mark_hook.
24212         * gengtype.c (struct write_types_data): Remove code to support
24213         mark_hook attribute.
24214         (walk_type): Likewise.
24215         (write_func_for_structure): Likewise.
24217 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
24219         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
24220         Directory Options, and -specs= to Overall Options.
24221         (Overall Options): Adjust similarly.  Reorder to group related
24222         options together.  Make -specs= cross-reference the spec file details.
24223         (Directory Options): Adjust similarly.
24225 2016-01-12  Jeff Law  <law@redhat.com>
24227         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
24229 2016-01-12  Olivier Hainque  <hainque@adacore.com>
24231         * gcc.c (spec_undefvar_allowed): New global.
24232         (process_command): Set to true when running for --version or --help,
24233         alone or together.
24234         (getenv_spec_function): When the variable is not defined, use the
24235         variable name as the variable value if we're allowed not to issue
24236         a fatal error.
24238 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
24240         PR tree-optimization/68911
24241         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
24242         information computed for expression "init + nit * step".
24244 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
24246         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
24247         about name of GCC executable.  Remove deleted node from menu.
24248         (Directory Options) <-B>: Remove cross-reference to deleted node.
24249         (Target Options): Delete section.
24251 2016-01-12  Christian Bruel  <christian.bruel@st.com>
24253         PR target/69180
24254         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
24255         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
24257 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
24259         PR target/69198
24260         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
24261         aligned_mem is properly set for AVX512-VL floating point masked
24262         stores.
24264         PR target/69175
24265         * ifcvt.c (cond_exec_process_if_block): When removing the last
24266         insn from then_bb, remove also any possible barriers that follow it.
24268 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
24270         PR target/68456
24271         PR target/69226
24272         * config/i386/iamcu.h (SIZE_TYPE): New macro.
24273         (PTRDIFF_TYPE): Likewise.
24274         (WCHAR_TYPE): Likewise.
24275         (WCHAR_TYPE_SIZE): Likewise.
24276         (STDINT_LONG32): Likewise.
24278 2016-01-12  Richard Biener  <rguenther@suse.de>
24280         PR tree-optimization/69053
24281         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
24282         convert initial value for cond reductions.
24284 2016-01-12  Richard Biener  <rguenther@suse.de>
24286         PR tree-optimization/69007
24287         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
24288         widen_sum after dot_prod and sad.
24290 2016-01-12  Richard Biener  <rguenther@suse.de>
24292         PR tree-optimization/69168
24293         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
24294         pattern stmt SLP type.
24295         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
24296         end up unused so cope with that case.
24298 2016-01-12  Richard Biener  <rguenther@suse.de>
24300         PR tree-optimization/69157
24301         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
24302         stmts def type only during analyze phase.
24303         (vectorizable_call): Likewise.
24304         (vectorizable_simd_clone_call): Likewise.
24305         (vectorizable_conversion): Likewise.
24306         (vectorizable_assignment): Likewise.
24307         (vectorizable_shift): Likewise.
24308         (vectorizable_operation): Likewise.
24309         (vectorizable_store): Likewise.
24310         (vectorizable_load): Likewise.
24312 2016-01-12  Richard Biener  <rguenther@suse.de>
24314         PR tree-optimization/69174
24315         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
24316         space.
24317         (vectorizable_load): Properly compute the number of loads needed
24318         for permuted strided SLP loads and do not spuriously assign
24319         to SLP_TREE_VEC_STMTS.
24321 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
24323         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
24324         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
24325         (MD_EXEC_PREFIX): Remove.
24326         (MD_STARTFILE_PREFIX) Removee.
24327         (FILE_NAME_ABSOLUTE_P): Remove.
24328         (CPP_SPEC): Do not read macros from sys/version.h.
24329         (LINK_COMMAND_SPEC): Remove.
24330         (LOCAL_INCLUDE_DIR): Remove.
24331         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
24332         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
24333         (POST_LINK_SPEC): Define to invoke stubify after linker
24334         (LIBSTDCXX): Remove define
24335         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
24336         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
24337         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
24338         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
24339         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
24340         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
24341         (i386_djgpp_asm_named_section): Add propotype of new procedure
24343         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
24344         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
24345         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
24346         in config/i386/djgpp.h).
24347         (STANDARD_STARTFILE_PREFIX_2): Define identical to
24348         STANDARD_STARTFILE_PREFIX_1.
24349         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
24350         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
24351         installation errors.
24352         (MAX_OFILE_ALIGNMENT): Define to 128.
24353         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
24355         * config/i386/djgpp.c: New file. Add implementation of
24356         i386_djgpp_asm_named_section.
24358         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
24360         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
24361         Add rule for building djgpp.o.
24363 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24365         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
24366         (rtx_is_swappable_p): Reductions are swappable.
24367         (insn_is_swappable_p): V2DF reductions are swappable.
24369 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
24371         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
24372         reloads for other unsupported memory operands.
24374 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
24375             Jim Wilson  <jim.wilson@linaro.org>
24377         PR target/69194
24378         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
24379         copy_to_mode_reg instead of force_reg.
24381 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
24383         PR target/69225
24384         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
24385         TARGET_80387 is true.
24387 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
24389         PR target/69071
24390         * lra-eliminations.c (move_plus_up): Only move plus up
24391         if subreg of the constant can be simplified into constant
24392         and use the simplified subreg of the constant instead of
24393         the original constant.
24395         * fold-const.c (fold_convertible_p): Don't return true
24396         for conversion of VECTOR_TYPE to same sized integral type.
24397         (fold_convert_loc): Fix up formatting.  Fold conversion of
24398         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
24399         instead of NOP_EXPR.
24401         PR tree-optimization/69214
24402         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
24403         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
24404         Formatting fix.
24406         PR tree-optimization/69207
24407         * tree-vect-slp.c (vect_get_constant_vectors): For
24408         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
24409         fold_convertible_p to vector_type's element type, and always
24410         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
24412 2016-01-11  Richard Biener  <rguenther@suse.de>
24414         PR tree-optimization/69173
24415         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
24416         fixup the cycle if all stmts are in a pattern.
24418 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
24420         PR middle-end/68999
24421         * alias.c (base_alias_check): Move check for addresses with
24422         alignment ANDs before the call for compare_base_decls.
24423         (memrefs_conflict_p): Return -1 for different decls
24424         that went through alignment adjustments.
24426 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24428         PR rtl-optimization/68796
24429         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
24430         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
24431         and QImode comparisons against zero with CC_NZmode.
24432         * config/aarch64/iterators.md (short_mask): New mode_attr.
24434 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
24436         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
24437         (<avx512>_store<mode>_mask): Likewise.
24439 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
24440             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24442         PR rtl-optimization/68841
24443         * ifcvt.c (struct noce_if_info): Add orig_x field.
24444         (bbs_ok_for_cmove_arith): Add to_rename parameter.
24445         Don't record conflicts on to_rename if it's present.
24446         Allow memory destinations in sets.
24447         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
24448         blocks, passing orig_x to the checks.
24449         (noce_process_if_block): Set if_info->orig_x appropriately.
24451 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24453         PR tree-optimization/69069
24454         * tree-parloops.c (create_parallel_loop): Add missing phi args.
24456 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
24458         PR rtl-optimization/68920
24459         * config/i386/i386.c (ix86_option_override_internal): Restrict number
24460         of conditional moves for  RTL if-conversion to 1 for
24461         TARGET_ONE_IF_CONV_INSN.
24462         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
24463         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
24464         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
24465         parameter to restirct number of conditional moves for
24466         RTL if-conversion.
24467         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
24468         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
24469         conditionl moves.
24471 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
24473         PR bootstrap/69123
24474         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
24475         onepart vars.  Fix typo in comment.  Fix reversed condition in
24476         unshare test.
24477         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
24479         PR bootstrap/69123
24480         * var-tracking.c (dump_onepart_variable_differences): New.
24481         (dataflow_set_different): If a detailed dump is requested,
24482         delay early returns and dump differences between onepart
24483         variables present before and after, and added variables.
24485 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
24487         PR target/69010
24488         * expr.c (expand_expr_real_1): For boolean vector constants
24489         with a scalar mode use const_scalar_mask_from_tree.
24490         (const_scalar_mask_from_tree): New.
24491         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
24492         assigned to a mask type to handle constants.
24494 2016-01-11  Martin Jambor  <mjambor@suse.cz>
24496         PR ipa/69044
24497         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
24498         useless parameters if we cannot change function signature.
24500 2016-01-11  Martin Jambor  <mjambor@suse.cz>
24502         PR ipa/66616
24503         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
24504         flag.
24506 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24508         PR tree-optimization/69109
24509         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
24510         latch with phi.
24512 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24514         PR tree-optimization/69108
24515         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
24516         res is not used in a phi.
24518 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
24520         PR 67425
24521         * common.opt (frandom-seed): Fix parameter name.
24522         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
24524 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24526         PR tree-optimization/69058
24527         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
24528         not supported.
24530 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
24532         * config/arc/arc.opt (mdiv-rem): Add period to the end.
24533         (mcode-density): Likewise.
24535 2016-01-10  Tom de Vries  <tom@codesourcery.com>
24537         PR tree-optimization/69062
24538         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
24539         (parallelize_loops): Don't paralelize loop that has phi with address
24540         arg.
24542 2016-01-10  Tom de Vries  <tom@codesourcery.com>
24544         PR tree-optimization/69039
24545         * tree-parloops.c (try_create_reduction_list): Only allow single exit
24546         phi for reduction.
24548 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
24550         PR middle-end/68743
24551         * match.pd: Require target has function_c99_misc before doing
24552         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
24554 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
24556         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
24557         use GMPINC.
24558         * configure: Regenerate.
24560 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
24562         PR middle-end/50865
24563         PR tree-optimization/69097
24564         * fold-const.h (expr_not_equal_to): New prototype.
24565         * fold-const.c: Include stringpool.h and tree-ssanames.h.
24566         (expr_not_equal_to): New function.
24567         * match.pd (X % -Y is the same as X % Y): Don't optimize
24568         unless X is known not to be equal to minimum or Y is known
24569         not to be equal to -1.
24570         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
24571         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
24572         (simplify_stmt_using_ranges): Adjust caller.
24573         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
24574         substitute_and_fold.
24576 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
24578         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
24579         w/o DECL_NAME.
24581 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
24583         PR tree-optimization/69167
24584         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
24585         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
24586         ops[0] comparison.
24587         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
24589 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
24590             Richard Biener  <rguenther@suse.de>
24592         PR tree-optimization/68707
24593         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
24594         instances that can be handled via vect_load_lanes.
24596 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
24598         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
24599         if we can't determine address equivalence.
24600         * alias.c (compare_base_decl): Update for changed return value of
24601         symtab_node::equal_address_to.
24603 2016-01-08  Jason Merrill  <jason@redhat.com>
24605         PR c++/68983
24606         PR c++/67557
24607         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
24608         * expr.c (store_field): Not here.
24609         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
24610         call with TREE_ADDRESSABLE type.
24611         * tree-cfg.c (verify_gimple_call): Adjust.
24613 2016-01-08  Olivier Hainque  <hainque@adacore.com>
24615         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
24616         libc_internal.
24618 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
24620         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
24621         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
24622         (reduc_smin_v2sf): Rename to...
24623         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
24624         (reduc_splus_v2sf): Rename to...
24625         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
24627 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
24629         PR tree-optimization/69162
24630         * gimplify.c (gimplify_va_arg_expr): Encode original type of
24631         valist argument in another argument.
24632         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
24633         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
24634         to determine the va_list type, build a MEM_REF instead of
24635         build_fold_indirect_ref.
24637         PR tree-optimization/69172
24638         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
24639         gimple_build.
24641 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24643         PR tree-optimization/67781
24644         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
24645         and cmpnop in two steps: first the ones not accessed in original
24646         gimple expression in a endian independent way and then the ones not
24647         accessed in the final result in an endian-specific way.
24649 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
24651         PR tree-optimization/69083
24652         * tree-vect-slp.c (vect_get_constant_vectors): For
24653         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
24654         element type.  If op is fold_convertible_p to vector_type's element
24655         type, use NOP_EXPR instead of VCE.
24657 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
24659         PR rtl-optimization/67778
24660         PR rtl-optimization/68634
24661         PR rtl-optimization/68909
24662         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
24663         block from the stack until done with it.  Remove a superfluous
24664         bitmap set.  Remove a superfluous bitmap test.
24666 2016-01-07  Martin Sebor  <msebor@redhat.com>
24668         PR c/68966
24669         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
24670         constraint on the type of arguments.
24672 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
24674         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
24675         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
24676         unaligned_access on the gcc_options set.
24677         * config/arm/arm.c (arm_option_override_internal): Use
24678         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
24680 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
24682         PR target/69140
24683         * config/i386/i386.c (ix86_frame_pointer_required): Enable
24684         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
24686 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
24688         Revert
24689         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
24691         PR target/69140
24692         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
24693         depending on frame_pointer_needed before remaining integer and SSE
24694         registers are saved.
24696 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
24698         PR 1078
24699         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
24701 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
24703         PR target/69171
24704         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
24705         Use the "xBm" constraint.
24706         (float<sseintvecmodelower><mode>2<mask_name><round_name):
24707         Likewise.
24708         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
24709         (sse_cvtsi2ssq<round_name>): Likewise.
24710         (sse_cvtss2si<round_name>): Likewise.
24711         (sse_cvtss2siq<round_name>): Likewise.
24712         (sse2_cvtsi2sdq<round_name>): Likewise.
24713         (sse2_cvtsd2si<round_name>): Likewise.
24714         (sse2_cvtsd2siq<round_name>): Likewise.
24715         * config/i386/subst.md (round_nimm_scalar_predicate): New
24716         predicate.
24718 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
24720         PR middle-end/67639
24721         * varasm.c (make_decl_rtl): Mark invalid register vars as
24722         DECL_EXTERNAL.
24724         PR rtl-optimization/66206
24725         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
24726         All callers changed.
24728 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
24730         PR tree-optimization/69141
24731         * tree-ssa-pre.c: Include langhooks.h.
24732         (eliminate_dom_walker::before_dom_children): Use
24733         lang_hooks.decl_printable_name instead of
24734         cgraph_node::get ()->name ().
24736         PR middle-end/68960
24737         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
24738         it and DECL_ALIGN too.
24740 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
24742         * config/mips/mips-ftypes.def: Sort to lexicographical order.
24744 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
24746         PR target/69140
24747         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
24748         depending on frame_pointer_needed before remaining integer and SSE
24749         registers are saved.
24751 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24753         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
24754         mode iterator with VSX_M2.
24755         (*p9_vecstore_<mode>): Likewise.
24756         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
24757         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
24758         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
24759         (define_split for VSX_LE128 stores): Likewise.
24760         (define_peephole2 for TImode LE swaps): Likewise.
24761         (define_split for VSX_LE128 post-reload stores): Likewise.
24763 2016-01-06  Marek Polacek  <polacek@redhat.com>
24765         PR sanitizer/69099
24766         * convert.c (convert_to_integer_1): Adjust call to
24767         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
24768         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
24769         EXPR instead of ARG.
24770         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
24772 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24774         PR 1078
24775         * doc/extend.texi (RL78 Variable Attributes): New section.
24777 2016-01-05  Marek Polacek  <polacek@redhat.com>
24779         PR c/69104
24780         * builtins.c (get_memmodel): Use expansion point location rather than
24781         the input location.  Call warning_at rather than warning.
24782         (expand_builtin_atomic_compare_exchange): Likewise.
24783         (expand_builtin_atomic_load): Likewise.
24784         (expand_builtin_atomic_store): Likewise.
24785         (expand_builtin_atomic_clear): Likewise.
24787 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
24789         PR target/68991
24790         * config/i386/i386.c (ix86_expand_vector_logical_operator):
24791         Replace nonimmediate_operand with vector_operand.
24792         * config/i386/predicates.md (vector_operand): New predicate.
24793         (general_vector_operand): Replace nonimmediate_operand with
24794         vector_operand.
24795         * config/i386/sse.md: Replace nonimmediate_operand with
24796         vector_operand and m constraint with Bm constraint on SSE
24797         patterns with 16-byte memory operand.
24798         * config/i386/subst.md (round_nimm_predicate): Replace
24799         nonimmediate_operand with vector_operand.
24800         (round_saeonly_nimm_predicate): Likewise.
24801         (round_saeonly_nimm_scalar_predicate): New.
24803 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
24805         PR target/68991
24806         * config/i386/constraints.md (Bm): New constraint.
24807         * config/i386/predicates.md (vector_memory_operand): New
24808         predicate.
24809         * config/i386/sse.md: Replace xm with xBm in plusminus and
24810         any_logic patterns.
24812 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24814         PR 1078
24815         * doc/extend.texi (V850 Function Attributes): New section.
24816         (V850 Variable Attributes): New section.
24818 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24820         PR 1078
24821         * doc/extend.texi (MicroBlaze Function Attributes): Document
24822         interrupt_handler and fast_interrupt attributes.
24824 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
24826         PR other/60465
24827         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
24828         for local symbolic operands.
24829         * config/ia64/predicates.md (local_symbolic_operand64): New
24830         predicate.
24832 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24834         PR rtl-optimization/68651
24835         * combine.c (combine_simplify_rtx): Canonicalize x + x into
24836         x << 1.
24838 2016-01-05  Nathan Sidwell  <nathan@acm.org>
24840         * alias.c (compare_base_decls): Use symtab_node::get.
24842 2016-01-05  Nick Clifton  <nickc@redhat.com>
24844         PR target/68770
24845         * ira-costs.c (copy_cost): Initialise the t_icode field of the
24846         secondary_reload_info structure.
24848         PR target/66655
24849         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
24850         decls if weak support is available.
24852 2016-01-04  Martin Sebor  <msebor@redhat.com>
24854         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
24856 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
24858         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
24859         OPTION_MASK_P9_DFORM.
24861         * config/rs6000/constraints.md (wo constraint): New constraint for
24862         ISA 3.0 (power9).
24864         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
24865         for wo constraint.
24866         (rs6000_init_hard_regno_mode_ok): Likewise.
24868         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
24869         wo constraint.
24871         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
24872         expanders not to have constraints.  Add support for ISA 3.0 xxperm
24873         instruction.  Add support for fusing xxlor with xxperm.
24874         (altivec_vperm_<mode>_internal): Likewise.
24875         (altivec_vperm_v8hiv16qi): Likewise.
24876         (altivec_vperm_<mode>v16q): Likewise.
24877         (altivec_vperm_<mode>_uns): Likewise.
24878         (vperm_v8hiv4si): Likewise.
24879         (vperm_v16qiv8hi): Likewise.
24881         * doc/md.texi (RS/6000 constraints): Document wo constraint.
24883 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
24885         Update copyright years.
24887         * gcc.c (process_command): Update copyright notice dates.
24888         * gcov-dump.c (print_version): Ditto.
24889         * gcov.c (print_version): Ditto.
24890         * gcov-tool.c (print_version): Ditto.
24891         * gengtype.c (create_file): Ditto.
24892         * doc/cpp.texi: Bump @copying's copyright year.
24893         * doc/cppinternals.texi: Ditto.
24894         * doc/gcc.texi: Ditto.
24895         * doc/gccint.texi: Ditto.
24896         * doc/gcov.texi: Ditto.
24897         * doc/install.texi: Ditto.
24898         * doc/invoke.texi: Ditto.
24900 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
24902         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
24903         modes larger than TImode as TImode if NEON is not enabled.
24905 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
24907         PR target/69100
24908         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
24909         mode for %f0-%f31 only if TARGET_FPU.
24911 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
24913         PR target/69072
24914         * config/sparc/sparc.c (scan_record_type): Take into account subfields
24915         to compute the PACKED_P predicate.
24916         (function_arg_record_value): Minor tweaks.
24918 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24920         * doc/install.texi (--with-multilib-list): Describe the meaning of the
24921         option for arm*-*-* targets.
24923 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
24925         * doc/extend.texi (Common Function Attributes): Move docs for
24926         MSP430-specific attributes to....
24927         (MSP430 Function Attributes): ...here.  Delete the redundant
24928         entries and copy-edit the remaining text.
24929         (MSP430 Variable Attributes): Use uniform format for index
24930         entries and add a cross-reference to the corresponding function
24931         attribute docs.
24933 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
24935         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
24936         -finite-math typo.
24937         (x86 Options): Likewise.
24939 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
24941         PR 1078
24943         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
24944         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
24945         to corresponding attribute.
24947 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
24949         * doc/extend.texi (Common Function Attributes) <noplt>: Move
24950         to correct alphabetization of table.  Copy-edit and correct
24951         markup.
24952         <stack_protect>: Likewise.
24953         <target_clones>: Likewise.
24954         <simd>: Likewise.
24955         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
24956         Correct punctuation.
24957         (Code Gen Options) <-fno-plt>: Copy-edit.
24959 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24961         PR target/68917
24962         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
24963         SI values.  Explicitly convert SI to DI and vice-versa.
24965 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
24967         PR tree-optimization/69070
24968         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
24969         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
24971         PR sanitizer/69055
24972         * ubsan.c (ubsan_instrument_float_cast): Call
24973         initialize_sanitizer_builtins.
24975         PR target/69015
24976         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
24978 Copyright (C) 2016 Free Software Foundation, Inc.
24980 Copying and distribution of this file, with or without modification,
24981 are permitted in any medium without royalty provided the copyright
24982 notice and this notice are preserved.